!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("FamousSlider",[],e):"object"==typeof exports?exports.FamousSlider=e():t.FamousSlider=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(i[r])return i[r].exports;var s=i[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,r){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="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},s=function(){function t(t,e){for(var i=0;i=t&&(this.perPage=this.config.perPage[t])}},{key:"prev",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments[1];if(!(this.inr.length0&&void 0!==arguments[0]?arguments[0]:1,e=arguments[1];if(!(this.inr.lengththis.inr.length-this.perPage){this.disableTransition();var r=this.cur-this.inr.length,s=r+this.perPage,n=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(n+o)+"px, 0, 0)",this.cur=r+t}else this.cur=this.cur+t;else this.cur=Math.min(this.cur+t,this.inr.length-this.perPage);i!==this.cur&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),e&&e.call(this))}this.bullets()}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(t,e){if(!(this.inr.length0&&this.cur-ithis.inr.length-this.perPage;t>0&&e>this.config.threshold&&this.inr.length>this.perPage?this.prev(i):tthis.config.threshold&&this.inr.length>this.perPage&&this.next(i),this.slideToCurrent(r||s)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.cur+this.perPage>this.inr.length&&(this.cur=this.inr.length=this.inr.length)throw new Error("item doesnt exist");var i=tthis.inr.length+1)throw new Error("cant insent");if(-1!==this.inr.indexOf(t))throw new Error("dupe item");var r=e0&&this.inr.length;this.cur=r?this.cur+1:this.cur,this.inr.splice(e,0,t),this.buildSliderFrame(),i&&i.call(this)}},{key:"prepend",value:function(t,e){this.insert(t,0),e&&e.call(this)}},{key:"append",value:function(t,e){this.insert(t,this.inr.length+1),e&&e.call(this)}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",t){for(var i=document.createDocumentFragment(),r=0;r