react-slick
Version:
React port of slick carousel
6 lines • 61.8 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.Slider=t(require("react")):e.Slider=t(e.React)}(window,(function(e){return r={},t.m=n=[function(t,n){t.exports=e},function(e,t,n){var r;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r)&&r.length){var s=o.apply(null,r);s&&e.push(s)}else if("object"==i)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){function r(e){var t="",n=Object.keys(e);return n.forEach((function(r,i){var s=e[r];r=o(r),/[height|width]$/.test(r)&&"number"==typeof s&&(s+="px"),t+=!0===s?r:!1===s?"not "+r:"("+r+": "+s+")",i<n.length-1&&(t+=" and ")})),t}var o=n(7);e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,o){t+=r(n),o<e.length-1&&(t+=", ")})),t):r(e)}},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);}}},function(e,t,n){(function(t){function n(){return l.Date.now()}var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,l=(t="object"==typeof self&&self&&self.Object===Object&&self,c||t||Function("return this")()),u=Object.prototype.toString,d=Math.max,p=Math.min;function f(e){var t=typeof e;return e&&("object"==t||"function"==t)}function h(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==u.call(t))return NaN;var t,n;if(f(e)&&(e=f(c="function"==typeof e.valueOf?e.valueOf():e)?c+"":c),"string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var c=i.test(e);return c||s.test(e)?a(e.slice(2),c?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,r){var o,i,s,a,c,l,u=0,y=!1,v=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=o,r=i;return o=i=void 0,u=t,a=e.apply(r,n)}function m(e){var n=e-l;return void 0===l||t<=n||n<0||v&&s<=e-u}function w(){var e,r=n();if(m(r))return S(r);c=setTimeout(w,(r=t-((e=r)-l),v?p(r,s-(e-u)):r))}function S(e){return c=void 0,b&&o?g(e):(o=i=void 0,a)}function O(){var e=n(),r=m(e);if(o=arguments,i=this,l=e,r){if(void 0===c)return u=r=l,c=setTimeout(w,t),y?g(r):a;if(v)return c=setTimeout(w,t),g(l)}return void 0===c&&(c=setTimeout(w,t)),a}return t=h(t)||0,f(r)&&(y=!!r.leading,s=(v="maxWait"in r)?d(h(r.maxWait)||0,t):s,b="trailing"in r?!!r.trailing:b),O.cancel=function(){void 0!==c&&clearTimeout(c),o=l=i=c=void(u=0)},O.flush=function(){return void 0===c?a:S(n())},O}}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof Map?Map:(Object.defineProperty(o.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),o.prototype.get=function(e){return e=r(this.__entries__,e),(e=this.__entries__[e])&&e[1]},o.prototype.set=function(e,t){var n=r(this.__entries__,e);~n?this.__entries__[n][1]=t:this.__entries__.push([e,t])},o.prototype.delete=function(e){var t=this.__entries__;~(e=r(t,e))&&t.splice(e,1)},o.prototype.has=function(e){return!!~r(this.__entries__,e)},o.prototype.clear=function(){this.__entries__.splice(0)},o.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},o);function r(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}function o(){this.__entries__=[]}var i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,s=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=(d.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},d.prototype.removeObserver=function(e){var t=this.observers_;~(e=t.indexOf(e))&&t.splice(e,1),!t.length&&this.connected_&&this.disconnect_()},d.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},d.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),0<e.length},d.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},d.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},d.prototype.onTransitionEnd_=function(e){var t=void 0===(e=e.propertyName)?"":e;c.some((function(e){return!!~t.indexOf(e)}))&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d);function d(){function e(){i&&(i=!1,r()),s&&n()}function t(){a(e)}function n(){var e=Date.now();if(i){if(e-c<2)return;s=!0}else s=!(i=!0),setTimeout(t,o);c=e}var r,o,i,s,c;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(r=this.refresh.bind(this),s=i=!(o=20),c=0,n)}var p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||s},h=m(0,0,0,0);function y(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+y(e["border-"+n+"-width"])}),0)}var b="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return i?b(e)?m(0,0,(t=(t=e).getBBox()).width,t.height):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=y(i)}return t}(r),i=o.left+o.right,s=o.top+o.bottom,a=y(r.width),c=y(r.height);return"border-box"===r.boxSizing&&(Math.round(a+i)!==t&&(a-=v(r,"left","right")+i),Math.round(c+s)!==n&&(c-=v(r,"top","bottom")+s)),(e=e)!==f(e).document.documentElement&&(t=Math.round(a+i)-t,n=Math.round(c+s)-n,1!==Math.abs(t)&&(a-=t),1!==Math.abs(n)&&(c-=n)),m(o.left,o.top,a,c)}(e):h;var t}function m(e,t,n,r){return{x:e,y:t,width:n,height:r}}var w=(S.prototype.isActive=function(){var e=g(this.target);return(this.contentRect_=e).width!==this.broadcastWidth||e.height!==this.broadcastHeight},S.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},S);function S(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=e}var O=function(e,t){var n,r,o,i=(n=(i=t).x,r=i.y,o=i.width,t=i.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,i=Object.create(i.prototype),p(i,{x:n,y:r,width:o,height:t,top:r,right:n+o,bottom:t+r,left:n}),i);p(this,{target:e,contentRect:i})},k=(j.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new w(e)),this.controller_.addObserver(this),this.controller_.refresh())}},j.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},j.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},j.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},j.prototype.broadcastActive=function(){var e,t;this.hasActive()&&(e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new O(e.target,e.broadcastRect())})),this.callback_.call(e,t,e),this.clearActive())},j.prototype.clearActive=function(){this.activeObservations_.splice(0)},j.prototype.hasActive=function(){return 0<this.activeObservations_.length},j);function j(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}var T=new("undefined"!=typeof WeakMap?WeakMap:n),P=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance();n=new k(t,n,this);T.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){P.prototype[e]=function(){var t;return(t=T.get(this))[e].apply(t,arguments)}})),e=void 0!==s.ResizeObserver?s.ResizeObserver:P,t.a=e}).call(this,n(3))},function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},function(e,t,n){n=n(9),e.exports=new n},function(e,t,n){var r=n(10),o=(n=n(4)).each,i=n.isFunction,s=n.isArray;function a(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}a.prototype={constructor:a,register:function(e,t,n){var a=this.queries;n=n&&this.browserIsIncapable;return a[e]||(a[e]=new r(e,n)),i(t)&&(t={match:t}),s(t)||(t=[t]),o(t,(function(t){i(t)&&(t={match:t}),a[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=a},function(e,t,n){var r=n(11),o=n(4).each;function i(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}i.prototype={constuctor:i,addHandler:function(e){e=new r(e),this.handlers.push(e),this.matches()&&e.on()},removeHandler:function(e){var t=this.handlers;o(t,(function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";o(this.handlers,(function(t){t[e]()}))}},e.exports=i},function(e,t){function n(e){(this.options=e).deferSetup||this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){this.initialised||this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},s=(r=n(5),n.n(r)),a=(r=n(1),n.n(r)),c={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return o.a.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return o.a.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){var r,o;r=e,t=n[o=t],(o=function(e){return e=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=l(t=n.call(e,t||"default")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string"),"symbol"==l(e)?e:String(e)}(o))in r?Object.defineProperty(r,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[o]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return Math.max(t,Math.min(e,n))}function f(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()}function h(e){return e&&e.offsetWidth||0}function y(e,t){var n=1<arguments.length&&void 0!==t&&t;t=e.startX-e.curX,e=e.startY-e.curY,t=Math.atan2(e,t);return(t=Math.round(180*t/Math.PI))<0&&(t=360-Math.abs(t)),t<=45&&0<=t||t<=360&&315<=t?"left":135<=t&&t<=225?"right":!0===n?35<=t&&t<=135?"up":"down":"vertical"}function v(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)}function b(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var g=function(e){for(var t=[],n=m(e),r=w(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},m=function(e){return e.currentSlide-S(e)},w=function(e){return e.currentSlide+O(e)},S=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(0<parseInt(e.centerPadding)?1:0):0},O=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(0<parseInt(e.centerPadding)?1:0):e.slidesToShow},k=function(e){return e&&e.offsetHeight||0},j=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},T=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},P=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,i=e.index,s=e.slideCount,a=e.lazyLoad,c=e.currentSlide,l=e.centerMode,u=e.slidesToScroll,f=e.slidesToShow,h=e.useCSS,y=e.lazyLoadedList;if(t&&n)return{};var v=i,b={};t={},n=o?i:p(i,0,s-1);if(r){if(!o&&(i<0||s<=i))return{};i<0?v=i+s:s<=i&&(v=i-s),a&&y.indexOf(v)<0&&(y=y.concat(v)),t={animating:!(b={animating:!0,currentSlide:v,lazyLoadedList:y,targetSlide:v}),targetSlide:v}}else(i=v)<0?(i=v+s,o?s%u!=0&&(i=s-s%u):i=0):!j(e)&&c<v?v=i=c:l&&s<=v?(v=o?s:s-1,i=o?0:s-1):s<=v&&(i=v-s,o?s%u!=0&&(i=0):i=s-f),!o&&s<=v+f&&(i=s-f),s=C(d(d({},e),{},{slideIndex:v})),f=C(d(d({},e),{},{slideIndex:i})),o||(s===f&&(v=i),s=f),a&&(y=y.concat(g(d(d({},e),{},{currentSlide:v})))),h?t={animating:!(b={animating:!0,currentSlide:i,trackStyle:M(d(d({},e),{},{left:s})),lazyLoadedList:y,targetSlide:n}),currentSlide:i,trackStyle:L(d(d({},e),{},{left:f})),swipeLeft:null,targetSlide:n}:b={currentSlide:i,trackStyle:L(d(d({},e),{},{left:f})),lazyLoadedList:y,targetSlide:n};return{state:b,nextState:t}},E=function(e,t){var n,r,o=e.slidesToScroll,i=e.slidesToShow,s=e.slideCount,a=e.currentSlide,c=e.targetSlide,l=e.lazyLoad,u=e.infinite,p=s%o!=0?0:(s-a)%o;return"previous"===t.message?(r=a-(n=0==p?o:i-p),l&&!u&&(r=-1==(i=a-n)?s-1:i),u||(r=c-o)):"next"===t.message?(r=a+(n=0==p?o:p),l&&!u&&(r=(a+o)%s+p),u||(r=c+o)):"dots"===t.message?r=t.index*t.slidesToScroll:"children"===t.message?(r=t.index,u&&(e=D(d(d({},e),{},{targetSlide:r})),r>t.currentSlide&&"left"===e?r-=s:r<t.currentSlide&&"right"===e&&(r+=s))):"index"===t.message&&(r=Number(t.index)),r},_=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o}(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t},x=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=(r=e.listRef).querySelectorAll&&r.querySelectorAll(".slick-slide")||[];return Array.from(r).every((function(r){if(e.vertical){if(r.offsetTop+k(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+h(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),n?(r=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide,Math.abs(n.dataset.index-r)||1):0}return e.slidesToScroll},L=function(e){var t,n;v(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=W(e)*e.slideWidth;var o,i,s={opacity:1,transition:"",WebkitTransition:""};return e.useTransform?(o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",r=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)",s=d(d({},s),{},{WebkitTransform:o,transform:i,msTransform:r})):e.vertical?s.top=e.left:s.left=e.left,e.fade&&(s={opacity:1}),t&&(s.width=t),n&&(s.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?s.marginTop=e.left+"px":s.marginLeft=e.left+"px"),s},M=function(e){v(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=L(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},C=function(e){if(e.unslick)return 0;v(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t=e.slideIndex,n=e.trackRef,r=e.infinite,o=e.centerMode,i=e.slideCount,s=e.slidesToShow,a=e.slidesToScroll,c=e.slideWidth,l=e.listWidth,u=e.variableWidth,d=e.slideHeight,p=e.fade,f=e.vertical;if(p||1===e.slideCount)return 0;if(p=0,r?(p=-z(e),i%a!=0&&i<t+a&&(p=-(i<t?s-(t-i):i%a)),o&&(p+=parseInt(s/2))):(i%a!=0&&i<t+a&&(p=s-i%a),o&&(p=parseInt(s/2))),b=f?t*d*-1+p*d:t*c*-1+p*c,!0===u){var h=n&&n.node,y=t+z(e),b=(n=h&&h.childNodes[y])?-1*n.offsetLeft:0;if(!0===o){y=r?t+z(e):t,n=h&&h.children[y];for(var g=b=0;g<y;g++)b-=h&&h.children[g]&&h.children[g].offsetWidth;b-=parseInt(e.centerPadding),b+=n&&(l-n.offsetWidth)/2}}return b},z=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},R=function(e){return e.unslick||!e.infinite?0:e.slideCount},W=function(e){return 1===e.slideCount?1:z(e)+e.slideCount+R(e)},D=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+H(e)?"left":"right":e.targetSlide<e.currentSlide-I(e)?"right":"left"},H=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl;e=e.centerPadding;return n?(n=(t-1)/2+1,0<parseInt(e)&&(n+=1),r&&t%2==0&&(n+=1),n):r?0:t-1},I=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl;e=e.centerPadding;return n?(n=(t-1)/2+1,0<parseInt(e)&&(n+=1),r||t%2!=0||(n+=1),n):r?t-1:0},A=Object.keys(c);function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function q(){return(q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K(r.key),r)}}function B(e,t){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function X(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,r=G(e);return function(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Y(e)}(this,t?(n=G(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function U(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return(t=K(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e){return e=function(e,t){if("object"!=N(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=N(t=n.call(e,t||"default")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string"),"symbol"==N(e)?e:String(e)}function Z(e){var t,n,r,o=e.rtl?e.slideCount-1-e.index:e.index,i=o<0||o>=e.slideCount;return e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-r-1&&o<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":i,"slick-current":o===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}}function J(e,t){return e.key||t}var Q=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(r,o.a.PureComponent);var e,t,n=X(r);function r(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return $(Y(e=n.call.apply(n,[this].concat(o))),"node",null),$(Y(e),"handleRef",(function(t){e.node=t})),e}return e=r,(t=[{key:"render",value:function(){var e=function(e){var t,n=[],r=[],i=[],s=o.a.Children.count(e.children),c=m(e),l=w(e);return o.a.Children.forEach(e.children,(function(u,d){var p,f={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide},h=!e.lazyLoad||e.lazyLoad&&0<=e.lazyLoadedList.indexOf(d)?u:o.a.createElement("div",null),y=(p={},void 0!==(b=V(V({},e),{},{index:d})).variableWidth&&!1!==b.variableWidth||(p.width=b.slideWidth),b.fade&&(p.position="relative",b.vertical?p.top=-b.index*parseInt(b.slideHeight):p.left=-b.index*parseInt(b.slideWidth),p.opacity=b.currentSlide===b.index?1:0,p.zIndex=b.currentSlide===b.index?999:998,b.useCSS&&(p.transition="opacity "+b.speed+"ms "+b.cssEase+", visibility "+b.speed+"ms "+b.cssEase)),p),v=h.props.className||"",b=Z(V(V({},e),{},{index:d}));n.push(o.a.cloneElement(h,{key:"original"+J(h,d),"data-index":d,className:a()(b,v),tabIndex:"-1","aria-hidden":!b["slick-active"],style:V(V({outline:"none"},h.props.style||{}),y),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&!1===e.fade&&((p=s-d)<=z(e)&&(c<=(t=-p)&&(h=u),b=Z(V(V({},e),{},{index:t})),r.push(o.a.cloneElement(h,{key:"precloned"+J(h,t),"data-index":t,tabIndex:"-1",className:a()(b,v),"aria-hidden":!b["slick-active"],style:V(V({},h.props.style||{}),y),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}}))),(t=s+d)<l&&(h=u),b=Z(V(V({},e),{},{index:t})),i.push(o.a.cloneElement(h,{key:"postcloned"+J(h,t),"data-index":t,tabIndex:"-1",className:a()(b,v),"aria-hidden":!b["slick-active"],style:V(V({},h.props.style||{}),y),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}})))})),e.rtl?r.concat(n,i).reverse():r.concat(n,i)}(this.props),t={onMouseEnter:(t=this.props).onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return o.a.createElement("div",q({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},t),e)}}])&&F(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,re(r.key),r)}}function re(e){return e=function(e,t){if("object"!=ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=ee(t=n.call(e,t||"default")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string"),"symbol"==ee(e)?e:String(e)}function oe(e,t){return(oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ie(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,r=se(e);return function(e,t){if(t&&("object"===ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,t?(n=se(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ae=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oe(e,t)}(r,o.a.PureComponent);var e,t,n=ie(r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n.apply(this,arguments)}return e=r,(t=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e=this.props,t=e.onMouseEnter,n=e.onMouseOver,r=e.onMouseLeave,i=e.infinite,s=e.slidesToScroll,c=e.slidesToShow,l=e.slideCount,u=e.currentSlide,d=function(e){return e=e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1}({slideCount:l,slidesToScroll:s,slidesToShow:c,infinite:i}),f=(r={onMouseEnter:t,onMouseOver:n,onMouseLeave:r},[]),h=0;h<d;h++){var y=(h+1)*s-1,v=(y=(v=i?y:p(y,0,l-1))-(s-1),y=i?y:p(y,0,l-1),a()({"slick-active":i?y<=u&&u<=v:u===y}));y={message:"dots",index:h,slidesToScroll:s,currentSlide:u},y=this.clickHandler.bind(this,y),f=f.concat(o.a.createElement("li",{key:h,className:v},o.a.cloneElement(this.props.customPaging(h),{onClick:y})))}return o.a.cloneElement(this.props.appendDots(f),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){var r,o;r=e,t=n[o=t],(o=re(o))in r?Object.defineProperty(r,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[o]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:this.props.dotsClass},r))}}])&&ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),r}();function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(){return(le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ue(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){var r,o;r=e,t=n[o=t],(o=ye(o))in r?Object.defineProperty(r,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[o]=t})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ye(r.key),r)}}function he(e,t,n){return t&&fe(e.prototype,t),n&&fe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ye(e){return e=function(e,t){if("object"!=ce(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=ce(t=n.call(e,t||"default")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string"),"symbol"==ce(e)?e:String(e)}function ve(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&function(e,t){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function be(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,r=ge(e);return function(e,t){if(t&&("object"===ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,t?(n=ge(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var me=function(){ve(t,o.a.PureComponent);var e=be(t);function t(){return pe(this,t),e.apply(this,arguments)}return he(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});return!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null),e={key:"0","data-role":"none",className:a()(e),style:{display:"block"},onClick:t},t={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},e=this.props.prevArrow?o.a.cloneElement(this.props.prevArrow,de(de({},e),t)):o.a.createElement("button",le({key:"0",type:"button"},e)," ","Previous")}}]),t}(),we=function(){ve(t,o.a.PureComponent);var e=be(t);function t(){return pe(this,t),e.apply(this,arguments)}return he(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});return j(this.props)||(e["slick-disabled"]=!0,t=null),e={key:"1","data-role":"none",className:a()(e),style:{display:"block"},onClick:t},t={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},e=this.props.nextArrow?o.a.cloneElement(this.props.nextArrow,de(de({},e),t)):o.a.createElement("button",le({key:"1",type:"button"},e)," ","Next")}}]),t}(),Se=n(6);function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ke(){return(ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function je(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function Te(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){Ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ze(r.key),r)}}function _e(e,t){return(_e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xe(e){var t=function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}();return function(){var n,r=Me(e);return function(e,t){if(t&&("object"===Oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Le(e)}(this,t?(n=Me(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function Le(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Me(e){return(Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ce(e,t,n){return(t=ze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(e){return e=function(e,t){if("object"!=Oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=Oe(t=n.call(e,t||"default")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string"),"symbol"==Oe(e)?e:String(e)}var Re=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_e(e,t)}(r,o.a.Component);var e,t,n=xe(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Ce(Le(t=n.call(this,e)),"listRefHandler",(function(e){return t.list=e})),Ce(Le(t),"trackRefHandler",(function(e){return t.track=e})),Ce(Le(t),"adaptHeight",(function(){var e;t.props.adaptiveHeight&&t.list&&(e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]')),t.list.style.height=k(e)+"px")})),Ce(Le(t),"componentDidMount",(function(){var e;t.props.onInit&&t.props.onInit(),!t.props.lazyLoad||0<(e=g(Pe(Pe({},t.props),t.state))).length&&(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e));var n=Pe({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,(function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")})),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new Se.a((function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout((function(){return t.onWindowResized()}),t.props.speed))):t.onWindowResized()})),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)})),Ce(Le(t),"componentWillUnmount",(function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach((function(e){return clearTimeout(e)})),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()})),Ce(Le(t),"componentDidUpdate",(function(e){var n;t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),!t.props.lazyLoad||0<(n=g(Pe(Pe({},t.props),t.state))).length&&(t.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}})),t.props.onLazyLoad&&t.props.onLazyLoad(n)),t.adaptHeight();var r=Pe(Pe({listRef:t.list,trackRef:t.track},t.props),t.state);(e=t.didPropsChange(e))&&t.updateState(r,e,(function(){t.state.currentSlide>=o.a.Children.count(t.props.children)&&t.changeSlide({message:"index",index:o.a.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")}))})),Ce(Le(t),"onWindowResized",(function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=s()((function(){return t.resizeWindow(e)}),50),t.debouncedResize()})),Ce(Le(t),"resizeWindow",(function(){var e,n=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];Boolean(t.track&&t.track.node)&&(e=Pe(Pe({listRef:t.list,trackRef:t.track},t.props),t.state),t.updateState(e,n,(function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")})),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback)})),Ce(Le(t),"updateState",(function(e,n,r){var i=function(e){var t=o.a.Children.count(e.children),n=e.listRef,r=Math.ceil(h(n)),i=e.trackRef&&e.trackRef.node,s=Math.ceil(h(i)),a=e.vertical?r:(u=e.centerMode&&2*parseInt(e.centerPadding),"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(u*=r/100),Math.ceil((r-u)/e.slidesToShow)),c=n&&k(n.querySelector('[data-index="0"]')),l=c*e.slidesToShow;i=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(i=t-1-e.initialSlide);var u=e.lazyLoadedList||[];n=g(d(d({},e),{},{currentSlide:i,lazyLoadedList:u})),u={slideCount:t,slideWidth:a,listWidth:r,trackWidth:s,currentSlide:i,slideHeight:c,listHeight:l,lazyLoadedList:u=u.concat(n)};return null===e.autoplaying&&e.autoplay&&(u.autoplaying="playing"),u}(e);e=Pe(Pe(Pe({},e),i),{},{slideIndex:i.currentSlide});var s=C(e);e=Pe(Pe({},e),{},{left:s}),s=L(e),!n&&o.a.Children.count(t.props.children)===o.a.Children.count(e.children)||(i.trackStyle=s),t.setState(i,r)})),Ce(Le(t),"ssrInit",(function(){if(t.props.variableWidth){var e=0,n=0,r=[],i=z(Pe(Pe(Pe({},t.props),t.state),{},{slideCount:t.props.children.length})),s=R(Pe(Pe(Pe({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach((function(t){r.push(t.props.style.width),e+=t.props.style.width}));for(var a=0;a<i;a++)n+=r[r.length-1-a],e+=r[r.length-1-a];for(var c=0;c<s;c++)e+=r[c];for(var l=0;l<t.state.currentSlide;l++)n+=r[l];var u={width:e+"px",left:-n+"px"};return t.props.centerMode&&(p="".concat(r[t.state.currentSlide],"px"),u.left="calc(".concat(u.left," + (100% - ").concat(p,") / 2 ) ")),{trackStyle:u}}var d=o.a.Children.count(t.props.children),p=Pe(Pe(Pe({},t.props),t.state),{},{slideCount:d});u=z(p)+R(p)+d,d=100/t.props.slidesToShow*u,p=-(u=100/u)*(z(p)+t.state.currentSlide)*d/100;return t.props.centerMode&&(p+=(100-u*d/100)/2),{slideWidth:u+"%",trackStyle:{width:d+"%",left:p+"%"}}})),Ce(Le(t),"checkImagesLoad",(function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,r=0;Array.prototype.forEach.call(e,(function(e){function o(){return++r&&n<=r&&t.onWindowResized()}var i;e.onclick?(i=e.onclick,e.onclick=function(t){i(t),e.parentNode.focus()}):e.onclick=function(){return e.parentNode.focus()},e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=o,e.onerror=function(){o(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))}))})),Ce(Le(t),"progressiveLazyLoad",(function(){for(var e=[],n=Pe(Pe({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+R(n);r++)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var o=t.state.currentSlide-1;o>=-z(n);o--)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}0<e.length?(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)})),Ce(Le(t),"slideHandler",(function(e){var n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=(c=t.props).asNavFor,o=c.beforeChange,i=c.onLazyLoad,s=c.speed,a=c.afterChange,c=t.state.currentSlide,l=(n=P(Pe(Pe(Pe({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n}))).state,u=n.nextState;l&&(o&&o(c,l.currentSlide),o=l.lazyLoadedList.filter((function(e){return t.state.lazyLoadedList.indexOf(e)<0})),i&&0<o.length&&i(o),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),a&&a(c),delete t.animationEndCallback),t.setState(l,(function(){r&&t.asNavForIndex!==e&&(t.asNavForIndex=e,r.innerSlider.slideHandler(e)),u&&(t.animationEndCallback=setTimeout((function(){var e=u.animating,n=je(u,["animating"]);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),a&&a(l.currentSlide),delete t.animationEndCallback}))}),s))})))})),Ce(Le(t),"changeSlide",(function(e){var n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=Pe(Pe({},t.props),t.state);0!==(e=E(r,e))&&!e||(!0===n?t.slideHandler(e,n):t.slideHandler(e),t.props.autoplay&&t.autoPlay("update"),!t.props.focusOnSelect||(e=t.list.querySelectorAll(".slick-current"))[0]&&e[0].focus())})),Ce(Le(t),"clickHandler",(function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0})),Ce(Le(t),"keyHandler",(function(e){""!==(e=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,t.props.accessibility,t.props.rtl))&&t.changeSlide({message:e})})),Ce(Le(t),"selectHandler",(function(e){t.changeSlide(e)})),Ce(Le(t),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),Ce(Le(t),"enableBodyScroll",(function(){window.ontouchmove=null})),Ce(Le(t),"swipeStart",(function(e){t.props.verticalSwiping&&t.disableBodyScroll(),""!==(e=function(e,t,n){return"IMG"===e.target.tagName&&f(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,t.props.swipe,t.props.draggable))&&t.setState(e)})),Ce(Le(t),"swipeMove",(function(e){(e=function(e,t){var n=t.scrolling,r=t.animating,o=t.vertical,i=t.swipeToSlide,s=t.verticalSwiping,a=t.rtl,c=t.currentSlide,l=t.edgeFriction,u=t.edgeDragged,p=t.onEdge,h=t.swiped,v=t.swiping,b=t.slideCount,g=t.slidesToScroll,m=t.infinite,w=t.touchObject,S=t.swipeEvent,O=t.listHeight,k=t.listWidth;if(!n){if(r)return f(e);if(o&&i&&s&&f(e),n={},r=C(t),w.curX=e.touches?e.touches[0].pageX:e.clientX,w.curY=e.touches?e.touches[0].pageY:e.clientY,w.swipeLength=Math.round(Math.sqrt(Math.pow(w.curX-w.startX,2))),i=Math.round(Math.sqrt(Math.pow(w.curY-w.startY,2))),!s&&!v&&10<i)return{scrolling:!0};s&&(w.swipeLength=i);v=(a?-1:1)*(w.curX>w.startX?1:-1);return s&&(v=w.curY>w.startY?1:-1),i=Math.ceil(b/g),b=y(t.touchObject,s),g=w.swipeLength,m||(0===c&&("right"===b||"down"===b)||i<=c+1&&("left"===b||"up"===b)||!j(t)&&("left"===b||"up"===b))&&(g=w.swipeLength*l,!1===u&&p&&(p(b),n.edgeDragged=!0)),!h&&S&&(S(b),n.swiped=!0),v=s?r+g*v:o?r+g*(O/k)*v:a?r-g*v:r+g*v,n=d(d({},n),{},{touchObject:w,swipeLeft:v,trackStyle:L(d(d({},t),{},{left:v}))}),Math.abs(w.curX-w.startX)<.8*Math.abs(w.curY-w.startY)||10<w.swipeLength&&(n.swiping=!0,f(e)),n}}(e,Pe(Pe(Pe({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide})))&&(e.swiping&&(t.clickable=!1),t.setState(e))})),Ce(Le(t),"swipeEnd",(function(e){var n=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,i=t.listWidth,s=t.touchThreshold,a=t.verticalSwiping,c=t.listHeight,l=t.swipeToSlide,u=t.scrolling,p=t.onSwipe,h=t.targetSlide,v=t.currentSlide,b=t.infinite;if(!n)return r&&f(e),{};var g;i=a?c/s:i/s,s=y(o,a),a={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return a;if(!o.swipeLength)return a;if(o.swipeLength>i){switch(f(e),p&&p(s),h=b?v:h,s){case"left":case"up":g=h+x(t),m=l?_(t,g):g,a.currentDirection=0;break;case"right":case"down":g=h-x(t),m=l?_(t,g):g,a.currentDirection=1;break;default:m=h}a.triggerSlideHandler=m}else{var m=C(t);a.trackStyle=M(d(d({},t),{},{left:m}))}return a}(e,Pe(Pe(Pe({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(e=n.triggerSlideHandler,delete n.triggerSlideHandler,t.setState(n),void 0!==e&&(t.slideHandler(e),t.props.verticalSwiping&&t.enableBodyScroll()))})),Ce(Le(t),"touchEnd",(function(e){t.swipeEnd(e),t.clickable=!0})),Ce(Le(t),"slickPrev",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message