!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function o(e){return e&&e.__esmodule?e:{"default":e}}function i(e,t){function n(e,t){var n=d,o=n.classnameactiveslide;e.foreach(function(e,t){e.classlist.contains(o)&&e.classlist.remove(o)}),e[t].classlist.add(o)}function o(e){var t=d,n=t.infinite,o=e.slice(0,n),i=e.slice(e.length-n,e.length);return o.foreach(function(e){var t=e.clonenode(!0);b.appendchild(t)}),i.reverse().foreach(function(e){var t=e.clonenode(!0);b.insertbefore(t,b.firstchild)}),b.addeventlistener(o.transitionend,y),v.call(b.children)}function i(t,n,o){(0,c["default"])(e,t+".lory."+n,o)}function a(e,t,n){var o=b&&b.style;o&&(o[o.transition+"timingfunction"]=n,o[o.transition+"duration"]=t+"ms",o.hastranslate3d?o[o.transform]="translate3d("+e+"px, 0, 0)":o[o.transform]="translate("+e+"px, 0)")}function d(e,t){var o=d,r=o.slidespeed,s=o.slidestoscroll,d=o.infinite,c=o.rewind,l=o.rewindspeed,u=o.ease,f=o.classnameactiveslide,m=r,p=t?a+1:a-1,h=math.round(n-s);i("before","slide",{index:a,nextslide:p}),"number"!=typeof e&&(e=t?a+s:a-s),e=math.min(math.max(e,0),_.length-1),d&&void 0===t&&(e+=d);var b=math.min(math.max(-1*_[e].offsetleft,-1*h),0);c&&math.abs(m.x)===h&&t&&(b=0,e=0,m=l),a(b,m,u),m.x=b,_[e].offsetleft<=h&&(a=e),!d||math.abs(b)!==h&&0!==math.abs(b)||(t&&(a=d),t||(a=_.length-2*d),m.x=-1*_[a].offsetleft,p=function(){a(-1*_[a].offsetleft,0,void 0)}),f&&n(v.call(_),a),i("after","slide",{currentslide:a})}function l(){i("before","init"),o=(0,s["default"])(),d=r({},u["default"],t);var a=d,d=a.classnameframe,c=a.classnameslidecontainer,l=a.classnameprevctrl,m=a.classnamenextctrl,p=a.enablemouseevents,e=a.classnameactiveslide;j=e.getelementsbyclassname(d)[0],b=j.getelementsbyclassname(c)[0],k=e.getelementsbyclassname(l)[0],t=e.getelementsbyclassname(m)[0],m={x:b.offsetleft,y:b.offsettop},_=d.infinite?o(v.call(b.children)):v.call(b.children),f(),e&&n(_,a),k&&t&&(k.addeventlistener("click",h),t.addeventlistener("click",b)),b.addeventlistener("touchstart",x),p&&(b.addeventlistener("mousedown",x),b.addeventlistener("click",g)),d.window.addeventlistener("resize",c),i("after","init")}function f(){var e=d,t=e.infinite,n=e.ease,o=e.rewindspeed;n=b.getboundingclientrect().width||b.offsetwidth,s=j.getboundingclientrect().width||j.offsetwidth,s===n&&(n=_.reduce(function(e,t){return e+t.getboundingclientrect().width||t.offsetwidth},0)),a=0,t?(a(-1*_[a+t].offsetleft,0,null),a+=t,m.x=-1*_[a].offsetleft):a(0,o,n)}function m(e){d(e)}function p(){return a-d.infinite||0}function h(){d(!1,!1)}function b(){d(!1,!0)}function e(){i("before","destroy"),b.removeeventlistener(o.transitionend,y),b.removeeventlistener("touchstart",x),b.removeeventlistener("touchmove",l),b.removeeventlistener("touchend",w),b.removeeventlistener("mousemove",l),b.removeeventlistener("mousedown",x),b.removeeventlistener("mouseup",w),b.removeeventlistener("mouseleave",w),b.removeeventlistener("click",g),d.window.removeeventlistener("resize",c),k&&k.removeeventlistener("click",h),t&&t.removeeventlistener("click",b),i("after","destroy")}function y(){p&&(p(),p=void 0)}function x(e){var t=d,n=t.enablemouseevents,o=e.touches?e.touches[0]:e;n&&(b.addeventlistener("mousemove",l),b.addeventlistener("mouseup",w),b.addeventlistener("mouseleave",w)),b.addeventlistener("touchmove",l),b.addeventlistener("touchend",w);var r=o.pagex,a=o.pagey;z={x:r,y:a,time:date.now()},r=void 0,f={},i("on","touchstart",{event:e})}function l(e){var t=e.touches?e.touches[0]:e,n=t.pagex,o=t.pagey;f={x:n-z.x,y:o-z.y},"undefined"==typeof r&&(r=!!(r||math.abs(f.x)25||math.abs(f.x)>s/3,o=!a&&f.x>0||a===_.length-1&&f.x<0,r=f.x<0;r||(n&&!o?d(!1,r):a(m.x,d.snapbackspeed)),z=void 0,b.removeeventlistener("touchmove",l),b.removeeventlistener("touchend",w),b.removeeventlistener("mousemove",l),b.removeeventlistener("mouseup",w),b.removeeventlistener("mouseleave",w),i("on","touchend",{event:e})}function g(e){f.x&&e.preventdefault()}function c(e){f(),i("on","resize",{event:e})}var m=void 0,n=void 0,s=void 0,_=void 0,j=void 0,b=void 0,k=void 0,t=void 0,o=void 0,p=void 0,a=0,d={};"undefined"!=typeof jquery&&e instanceof jquery&&(e=e[0]);var z=void 0,f=void 0,r=void 0;return l(),{setup:l,reset:f,slideto:m,returnindex:p,prev:h,next:b,destroy:e}}object.defineproperty(t,"__esmodule",{value:!0});var r=object.assign||function(e){for(var t=1;t