text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.rexsliderplugin=e():t.rexsliderplugin=e()}(window,function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.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 r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));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=276)}({2:function(t,e,n){"use strict";var i=Phaser.Scene;e.a=function(t){return t instanceof i}},276:function(t,e,n){"use strict";n.r(e);var i=n(6),r=n(3);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var s=Phaser.Utils.Objects.GetValue,a=Phaser.Math.Angle.BetweenPoints,u=Phaser.Math.Distance.Between,c=Phaser.Math.RotateAroundDistance,h=Phaser.Math.Clamp,l=Phaser.Math.Linear,f=Phaser.Math.Percent,v=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.gameObject=e,this.scene=Object(i.a)(e),this.setEventEmitter(s(n,"eventEmitter",void 0)),this._value=void 0,this.endPoints=[{x:0,y:0},{x:0,y:0}];var r=s(n,"valuechangeCallback",null);if(null!==r){var o=s(n,"valuechangeCallbackScope",void 0);this.on("valuechange",r,o)}this.gameObject.setInteractive(s(n,"inputConfig",void 0)),this.resetFromJSON(n),this.boot()}var e,n,r;return e=t,(n=[{key:"resetFromJSON",value:function(t){this.setValue(s(t,"value",0));var e=s(t,"endPoints",void 0);return void 0!==e&&this.setEndPoints(e),this.setEnable(s(t,"enable",!0)),this}},{key:"toJSON",value:function(){return{value:this.value,endPoints:this.endPoints,enable:this.enable}}},{key:"boot",value:function(){this.gameObject.on("drag",this.onDragging,this),this.gameObject.on("destroy",this.destroy,this)}},{key:"shutdown",value:function(){this.destroyEventEmitter(),this.gameObject=void 0,this.scene=void 0}},{key:"destroy",value:function(){this.shutdown()}},{key:"setEnable",value:function(t){return void 0===t&&(t=!0),this.enable===t?this:(this.enable=t,this.scene.input.setDraggable(this.gameObject,t),this)}},{key:"setEndPoints",value:function(t,e,n,i){var r=this.endPoints;return"number"==typeof t?(r[0].x=t,r[0].y=e,r[1].x=n,r[1].y=i):Array.isArray(t)?(r[0]=t[0],r[1]=t[1]):(r[0]=t,r[1]=e),this.axisRotation=a(r[0],r[1]),this.updatePos(),this}},{key:"setValue",value:function(t,e,n){return void 0!==e&&(t=f(t,e,n)),this.value=t,this}},{key:"addValue",value:function(t,e,n){return void 0!==e&&(t=f(t,e,n)),this.value+=t,this}},{key:"getValue",value:function(t,e){var n=this.value;return void 0!==t&&(n=l(t,e,n)),n}},{key:"onDragging",value:function(t,e,n){var i,r=this.endPoints;if(r[0].y===r[1].y){var o=Math.min(r[0].x,r[1].x),s=Math.max(r[0].x,r[1].x);i=f(e,o,s)}else if(r[0].x===r[1].x){o=Math.min(r[0].y,r[1].y),s=Math.max(r[0].y,r[1].y);i=f(n,o,s)}else{var a,h=this.gameObject;y.x=e,y.y=n,a=u(y.x,y.y,h.x,h.y),(y=c(y,h.x,h.y,-this.axisRotation,a)).y=h.y,a=u(y.x,y.y,h.x,h.y),y=c(y,h.x,h.y,this.axisRotation,a);o=Math.min(r[0].x,r[1].x),s=Math.max(r[0].x,r[1].x);i=f(y.x,o,s)}this.value=i}},{key:"updatePos",value:function(){var t=this.gameObject,e=this.endPoints;return t.x=l(e[0].x,e[1].x,this._value),t.y=l(e[0].y,e[1].y,this._value),this}},{key:"value",get:function(){return this._value},set:function(t){if((t=h(t,0,1))!==this._value){var e=this._value;this._value=t,this.updatePos(this._value),this.emit("valuechange",this._value,e)}}},{key:"isDragging",get:function(){return this.gameObject.input.dragState>0}}])&&o(e.prototype,n),r&&o(e,r),t}(),y={};Object.assign(v.prototype,r.a);var p=v;function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function b(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var g=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),b(this,E(e).call(this,t))}var n,i,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(e,Phaser.Plugins.BasePlugin),n=e,(i=[{key:"start",value:function(){this.game.events.on("destroy",this.destroy,this)}},{key:"add",value:function(t,e){return new p(t,e)}}])&&d(n.prototype,i),r&&d(n,r),e}();e.default=g},3:function(t,e,n){"use strict";e.a={setEventEmitter:function(t,e){return void 0===e&&(e=Phaser.Events.EventEmitter),this._privateEE=void 0===t,this._eventEmitter=this._privateEE?new e:t,this},destroyEventEmitter:function(){return this._eventEmitter&&this._privateEE&&this._eventEmitter.shutdown(),this},getEventEmitter:function(){return this._eventEmitter},on:function(){return this._eventEmitter&&this._eventEmitter.on.apply(this._eventEmitter,arguments),this},once:function(){return this._eventEmitter&&this._eventEmitter.once.apply(this._eventEmitter,arguments),this},off:function(){return this._eventEmitter&&this._eventEmitter.off.apply(this._eventEmitter,arguments),this},emit:function(t){return this._eventEmitter&&t&&this._eventEmitter.emit.apply(this._eventEmitter,arguments),this},addListener:function(){return this._eventEmitter&&this._eventEmitter.addListener.apply(this._eventEmitter,arguments),this},removeListener:function(){return this._eventEmitter&&this._eventEmitter.removeListener.apply(this._eventEmitter,arguments),this},removeAllListeners:function(){return this._eventEmitter&&this._eventEmitter.removeAllListeners.apply(this._eventEmitter,arguments),this},listenerCount:function(){return this._eventEmitter?this._eventEmitter.listenerCount.apply(this._eventEmitter,arguments):0},listeners:function(){return this._eventEmitter?this._eventEmitter.listeners.apply(this._eventEmitter,arguments):[]}}},6:function(t,e,n){"use strict";var i=n(2);e.a=function(t){return Object(i.a)(t)?t:t.scene&&Object(i.a)(t.scene)?t.scene:t.parent&&t.parent.scene&&Object(i.a)(t.parent.scene)?t.parent.scene:void 0}}}).default});