text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.rexclockplugin=e():t.rexclockplugin=e()}(window,function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(i,s,function(e){return t[e]}.bind(null,s));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=239)}({239:function(t,e,n){"use strict";n.r(e);var i=n(66);e.default=class extends Phaser.Plugins.BasePlugin{constructor(t){super(t)}start(){this.game.events.once("destroy",this.destroy,this)}add(t,e){return new i.a(t,e)}}},3:function(t,e,n){"use strict";const i=Phaser.Scene;var s=function(t){return t instanceof i};e.a=function(t){return s(t)?t:t.scene&&s(t.scene)?t.scene:t.parent&&t.parent.scene&&s(t.parent.scene)?t.parent.scene:void 0}},66:function(t,e,n){"use strict";var i=n(8),s=n(3);const r=Phaser.Utils.Objects.GetValue;var o=class extends i.a{constructor(t,e){super(t,e),this.parent=t,this.scene=Object(s.a)(t),this.resetFromJSON(e),this.boot()}resetFromJSON(t){return this.isRunning=r(t,"isRunning",!1),this.timeScale=r(t,"timeScale",1),this.now=r(t,"now",0),this}toJSON(){return{isRunning:this.isRunning,timeScale:this.timeScale,now:this.now,tickingMode:this.tickingMode}}boot(){super.boot(),this.parent.on&&this.parent.on("destroy",this.destroy,this)}shutdown(){super.shutdown(),this.parent=void 0,this.scene=void 0}destroy(){this.shutdown()}startTicking(){super.startTicking(),this.scene.events.on("update",this.update,this)}stopTicking(){super.stopTicking(),this.scene&&this.scene.events.off("update",this.update,this)}start(t){return void 0===t&&(t=0),this.now=t,super.start(),this}seek(t){return this.now=t,this}update(t,e){return this.isRunning&&0!==this.timeScale?(this.now+=e*this.timeScale,this):this}};e.a=o},8:function(t,e,n){"use strict";const i=Phaser.Events.EventEmitter,s=Phaser.Utils.Objects.GetValue;const r={no:0,lazy:1,always:2};e.a=class extends i{constructor(t,e){super(),this.parent=t,this._isRunning=!1,this.tickingState=!1,this.setTickingMode(s(e,"tickingMode",1))}boot(){2!==this.tickingMode||this.tickingState||this.startTicking()}shutdown(){super.shutdown(),this.tickingState&&this.stopTicking()}setTickingMode(t){"string"==typeof t&&(t=r[t]),this.tickingMode=t}startTicking(){this.tickingState=!0}stopTicking(){this.tickingState=!1}get isRunning(){return this._isRunning}set isRunning(t){this._isRunning!==t&&(this._isRunning=t,1===this.tickingMode&&t!=this.tickingState&&(t?this.startTicking():this.stopTicking()))}start(){return this.isRunning=!0,this}pause(){return this.isRunning=!1,this}resume(){return this.isRunning=!0,this}stop(){return this.isRunning=!1,this}complete(){this.isRunning=!1,0!==this.tickingMode&&this.emit("complete",this.parent,this)}}}}).default});