/**
 * Minified by jsDelivr using Terser v5.19.2.
 * Original file: /npm/phaser-plugin-debug-body-colors@4.0.0/dist/phaser-debug-body-colors-plugin.umd.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(e,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s(require("phaser")):"function"==typeof define&&define.amd?define(["phaser"],s):(e="undefined"!=typeof globalThis?globalThis:e||self).PhaserDebugBodyColorsPlugin=s(e.Phaser)}(this,(function(e){"use strict";class s extends e.Plugins.ScenePlugin{boot(){this.systems.events.on("update",this.sceneUpdate,this).once("destroy",this.sceneDestroy,this)}sceneUpdate(){for(const e of this.systems.arcadePhysics.world.bodies.entries)this.updateBody(e)}sceneDestroy(){this.systems.events.off("update",this.sceneUpdate,this).off("destroy",this.sceneDestroy,this),this.gameObjects=null,this.scene=null,this.systems=null}updateBody(e){e.debugBodyColor=this.getColor(e)}getColor(e){switch(!1){case e.enable:return this.disabled;case e.blocked.none:return this.blocked;case e.touching.none:return this.touching;case!e.embedded:return this.embedded;default:return this.default}}}return Object.assign(s.prototype,{blocked:16711680,default:16711935,disabled:6710886,embedded:39423,touching:16776960}),s}));
//# sourceMappingURL=/sm/b0ed480f52188d7db7cfa39374d83515d363c2aa59aec9785496bbdf83a4f39f.map