diff --git a/dist/react-slick.js b/dist/react-slick.js index 3795d41ce..2e9235e37 100644 --- a/dist/react-slick.js +++ b/dist/react-slick.js @@ -170,192 +170,185 @@ 8 ); - function _typeof(obj) { + function _typeof(o) { "@babel/helpers - typeof"; return ( (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator - ? function(obj) { - return typeof obj; + ? function(o) { + return typeof o; } - : function(obj) { - return obj && + : function(o) { + return o && "function" == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype + o.constructor === Symbol && + o !== Symbol.prototype ? "symbol" - : typeof obj; + : typeof o; }), - _typeof(obj) + _typeof(o) ); } function _extends() { - _extends = Object.assign - ? Object.assign.bind() - : function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } + return ( + (_extends = Object.assign + ? Object.assign.bind() + : function(n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) + ({}.hasOwnProperty.call(t, r) && (n[r] = t[r])); } - } - return target; - }; - return _extends.apply(this, arguments); + return n; + }), + _extends.apply(null, arguments) + ); } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); + function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); + function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) + e, + r, + Object.getOwnPropertyDescriptor(t, r) ); }); } - return target; + return e; } - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { + function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); - } } - function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); + function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + (o.enumerable = o.enumerable || !1), + (o.configurable = !0), + "value" in o && (o.writable = !0), + Object.defineProperty(e, _toPropertyKey(o.key), o); } } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError( - "Super expression must either be null or a function" - ); - } - subClass.prototype = Object.create( - superClass && superClass.prototype, - { - constructor: { - value: subClass, - writable: true, - configurable: true - } - } + function _createClass(e, r, t) { + return ( + r && _defineProperties(e.prototype, r), + t && _defineProperties(e, t), + Object.defineProperty(e, "prototype", { writable: !1 }), + e ); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) _setPrototypeOf(subClass, superClass); - } - function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); } - function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return _possibleConstructorReturn(this, result); - }; + function _callSuper(t, o, e) { + return ( + (o = _getPrototypeOf(o)), + _possibleConstructorReturn( + t, + _isNativeReflectConstruct() + ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) + : o.apply(t, e) + ) + ); } - function _possibleConstructorReturn(self, call) { - if ( - call && - (_typeof(call) === "object" || typeof call === "function") - ) { - return call; - } else if (call !== void 0) { + function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError( "Derived constructors may only return object or undefined" ); - } - return _assertThisInitialized(self); + return _assertThisInitialized(t); } - function _assertThisInitialized(self) { - if (self === void 0) { + function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); - } - return self; + return e; } function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) - return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call( + var t = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function() {}) ); - return true; - } catch (e) { - return false; - } + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); } - function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); + function _getPrototypeOf(t) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf.bind() + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + _getPrototypeOf(t) + ); } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; + function _inherits(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 } + })), + Object.defineProperty(t, "prototype", { writable: !1 }), + e && _setPrototypeOf(t, e); + } + function _setPrototypeOf(t, e) { + return ( + (_setPrototypeOf = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function(t, e) { + return (t.__proto__ = e), t; + }), + _setPrototypeOf(t, e) + ); + } + function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); + } + function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; + } + function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); } var enquire = @@ -363,65 +356,40 @@ _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__["canUseDOM"] )() && __webpack_require__(16); var Slider = /*#__PURE__*/ (function(_React$Component) { - _inherits(Slider, _React$Component); - var _super = _createSuper(Slider); function Slider(props) { var _this; _classCallCheck(this, Slider); - _this = _super.call(this, props); - _defineProperty( - _assertThisInitialized(_this), - "innerSliderRefHandler", - function(ref) { - return (_this.innerSlider = ref); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "slickPrev", - function() { - return _this.innerSlider.slickPrev(); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "slickNext", - function() { - return _this.innerSlider.slickNext(); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "slickGoTo", - function(slide) { - var dontAnimate = - arguments.length > 1 && arguments[1] !== undefined - ? arguments[1] - : false; - return _this.innerSlider.slickGoTo(slide, dontAnimate); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "slickPause", - function() { - return _this.innerSlider.pause("paused"); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "slickPlay", - function() { - return _this.innerSlider.autoPlay("play"); - } - ); + _this = _callSuper(this, Slider, [props]); + _defineProperty(_this, "innerSliderRefHandler", function(ref) { + return (_this.innerSlider = ref); + }); + _defineProperty(_this, "slickPrev", function() { + return _this.innerSlider.slickPrev(); + }); + _defineProperty(_this, "slickNext", function() { + return _this.innerSlider.slickNext(); + }); + _defineProperty(_this, "slickGoTo", function(slide) { + var dontAnimate = + arguments.length > 1 && arguments[1] !== undefined + ? arguments[1] + : false; + return _this.innerSlider.slickGoTo(slide, dontAnimate); + }); + _defineProperty(_this, "slickPause", function() { + return _this.innerSlider.pause("paused"); + }); + _defineProperty(_this, "slickPlay", function() { + return _this.innerSlider.autoPlay("play"); + }); _this.state = { breakpoint: null }; _this._responsiveMediaHandlers = []; return _this; } - _createClass(Slider, [ + _inherits(Slider, _React$Component); + return _createClass(Slider, [ { key: "media", value: function media(query, handler) { @@ -699,7 +667,6 @@ } } ]); - return Slider; })(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); /***/ @@ -759,955 +726,848 @@ ); var _excluded = ["animating"]; - function _typeof(obj) { + function _typeof(o) { "@babel/helpers - typeof"; return ( (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator - ? function(obj) { - return typeof obj; + ? function(o) { + return typeof o; } - : function(obj) { - return obj && + : function(o) { + return o && "function" == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype + o.constructor === Symbol && + o !== Symbol.prototype ? "symbol" - : typeof obj; + : typeof o; }), - _typeof(obj) + _typeof(o) ); } function _extends() { - _extends = Object.assign - ? Object.assign.bind() - : function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } + return ( + (_extends = Object.assign + ? Object.assign.bind() + : function(n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) + ({}.hasOwnProperty.call(t, r) && (n[r] = t[r])); } - } - return target; - }; - return _extends.apply(this, arguments); + return n; + }), + _extends.apply(null, arguments) + ); } - function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = _objectWithoutPropertiesLoose(source, excluded); - var key, i; + function _objectWithoutProperties(e, t) { + if (null == e) return {}; + var o, + r, + i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) - continue; - target[key] = source[key]; - } + var s = Object.getOwnPropertySymbols(e); + for (r = 0; r < s.length; r++) + (o = s[r]), + t.includes(o) || + ({}.propertyIsEnumerable.call(e, o) && (i[o] = e[o])); } - return target; + return i; } - function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; + function _objectWithoutPropertiesLoose(r, e) { + if (null == r) return {}; + var t = {}; + for (var n in r) + if ({}.hasOwnProperty.call(r, n)) { + if (e.includes(n)) continue; + t[n] = r[n]; + } + return t; } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); + function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); + function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) + e, + r, + Object.getOwnPropertyDescriptor(t, r) ); }); } - return target; + return e; } - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { + function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); - } } - function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); + function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + (o.enumerable = o.enumerable || !1), + (o.configurable = !0), + "value" in o && (o.writable = !0), + Object.defineProperty(e, _toPropertyKey(o.key), o); } } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError( - "Super expression must either be null or a function" - ); - } - subClass.prototype = Object.create( - superClass && superClass.prototype, - { - constructor: { - value: subClass, - writable: true, - configurable: true - } - } + function _createClass(e, r, t) { + return ( + r && _defineProperties(e.prototype, r), + t && _defineProperties(e, t), + Object.defineProperty(e, "prototype", { writable: !1 }), + e ); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) _setPrototypeOf(subClass, superClass); - } - function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); } - function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return _possibleConstructorReturn(this, result); - }; + function _callSuper(t, o, e) { + return ( + (o = _getPrototypeOf(o)), + _possibleConstructorReturn( + t, + _isNativeReflectConstruct() + ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) + : o.apply(t, e) + ) + ); } - function _possibleConstructorReturn(self, call) { - if ( - call && - (_typeof(call) === "object" || typeof call === "function") - ) { - return call; - } else if (call !== void 0) { + function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError( "Derived constructors may only return object or undefined" ); - } - return _assertThisInitialized(self); + return _assertThisInitialized(t); } - function _assertThisInitialized(self) { - if (self === void 0) { + function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); - } - return self; + return e; } function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) - return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call( + var t = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function() {}) ); - return true; - } catch (e) { - return false; - } + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); } - function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); + function _getPrototypeOf(t) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf.bind() + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + _getPrototypeOf(t) + ); } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; + function _inherits(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 } + })), + Object.defineProperty(t, "prototype", { writable: !1 }), + e && _setPrototypeOf(t, e); + } + function _setPrototypeOf(t, e) { + return ( + (_setPrototypeOf = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function(t, e) { + return (t.__proto__ = e), t; + }), + _setPrototypeOf(t, e) + ); + } + function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); + } + function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; + } + function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); } var InnerSlider = /*#__PURE__*/ (function(_React$Component) { - _inherits(InnerSlider, _React$Component); - var _super = _createSuper(InnerSlider); function InnerSlider(props) { var _this; _classCallCheck(this, InnerSlider); - _this = _super.call(this, props); - _defineProperty( - _assertThisInitialized(_this), - "listRefHandler", - function(ref) { - return (_this.list = ref); + _this = _callSuper(this, InnerSlider, [props]); + _defineProperty(_this, "listRefHandler", function(ref) { + return (_this.list = ref); + }); + _defineProperty(_this, "trackRefHandler", function(ref) { + return (_this.track = ref); + }); + _defineProperty(_this, "adaptHeight", function() { + if (_this.props.adaptiveHeight && _this.list) { + var elem = _this.list.querySelector( + '[data-index="'.concat(_this.state.currentSlide, '"]') + ); + _this.list.style.height = + Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "getHeight" + ] + )(elem) + "px"; } - ); - _defineProperty( - _assertThisInitialized(_this), - "trackRefHandler", - function(ref) { - return (_this.track = ref); + }); + _defineProperty(_this, "componentDidMount", function() { + _this.props.onInit && _this.props.onInit(); + if (_this.props.lazyLoad) { + var slidesToLoad = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "getOnDemandLazySlides" + ] + )(_objectSpread(_objectSpread({}, _this.props), _this.state)); + if (slidesToLoad.length > 0) { + _this.setState(function(prevState) { + return { + lazyLoadedList: prevState.lazyLoadedList.concat( + slidesToLoad + ) + }; + }); + if (_this.props.onLazyLoad) { + _this.props.onLazyLoad(slidesToLoad); + } + } } - ); - _defineProperty( - _assertThisInitialized(_this), - "adaptHeight", - function() { - if (_this.props.adaptiveHeight && _this.list) { - var elem = _this.list.querySelector( - '[data-index="'.concat(_this.state.currentSlide, '"]') + var spec = _objectSpread( + { + listRef: _this.list, + trackRef: _this.track + }, + _this.props + ); + _this.updateState(spec, true, function() { + _this.adaptHeight(); + _this.props.autoplay && _this.autoPlay("update"); + }); + if (_this.props.lazyLoad === "progressive") { + _this.lazyLoadTimer = setInterval( + _this.progressiveLazyLoad, + 1000 + ); + } + _this.ro = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_8__[ + "default" + ](function() { + if (_this.state.animating) { + _this.onWindowResized(false); // don't set trackStyle hence don't break animation + _this.callbackTimers.push( + setTimeout(function() { + return _this.onWindowResized(); + }, _this.props.speed) ); - _this.list.style.height = - Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "getHeight" - ] - )(elem) + "px"; + } else { + _this.onWindowResized(); } + }); + _this.ro.observe(_this.list); + document.querySelectorAll && + Array.prototype.forEach.call( + document.querySelectorAll(".slick-slide"), + function(slide) { + slide.onfocus = _this.props.pauseOnFocus + ? _this.onSlideFocus + : null; + slide.onblur = _this.props.pauseOnFocus + ? _this.onSlideBlur + : null; + } + ); + if (window.addEventListener) { + window.addEventListener("resize", _this.onWindowResized); + } else { + window.attachEvent("onresize", _this.onWindowResized); } - ); - _defineProperty( - _assertThisInitialized(_this), - "componentDidMount", - function() { - _this.props.onInit && _this.props.onInit(); - if (_this.props.lazyLoad) { - var slidesToLoad = Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "getOnDemandLazySlides" - ] - )(_objectSpread(_objectSpread({}, _this.props), _this.state)); - if (slidesToLoad.length > 0) { - _this.setState(function(prevState) { - return { - lazyLoadedList: prevState.lazyLoadedList.concat( - slidesToLoad - ) - }; - }); - if (_this.props.onLazyLoad) { - _this.props.onLazyLoad(slidesToLoad); - } + }); + _defineProperty(_this, "componentWillUnmount", function() { + if (_this.animationEndCallback) { + clearTimeout(_this.animationEndCallback); + } + if (_this.lazyLoadTimer) { + clearInterval(_this.lazyLoadTimer); + } + if (_this.callbackTimers.length) { + _this.callbackTimers.forEach(function(timer) { + return clearTimeout(timer); + }); + _this.callbackTimers = []; + } + if (window.addEventListener) { + window.removeEventListener("resize", _this.onWindowResized); + } else { + window.detachEvent("onresize", _this.onWindowResized); + } + if (_this.autoplayTimer) { + clearInterval(_this.autoplayTimer); + } + _this.ro.disconnect(); + }); + _defineProperty(_this, "componentDidUpdate", function(prevProps) { + _this.checkImagesLoad(); + _this.props.onReInit && _this.props.onReInit(); + if (_this.props.lazyLoad) { + var slidesToLoad = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "getOnDemandLazySlides" + ] + )(_objectSpread(_objectSpread({}, _this.props), _this.state)); + if (slidesToLoad.length > 0) { + _this.setState(function(prevState) { + return { + lazyLoadedList: prevState.lazyLoadedList.concat( + slidesToLoad + ) + }; + }); + if (_this.props.onLazyLoad) { + _this.props.onLazyLoad(slidesToLoad); } } - var spec = _objectSpread( + } + // if (this.props.onLazyLoad) { + // this.props.onLazyLoad([leftMostSlide]) + // } + _this.adaptHeight(); + var spec = _objectSpread( + _objectSpread( { listRef: _this.list, trackRef: _this.track }, _this.props - ); - _this.updateState(spec, true, function() { - _this.adaptHeight(); - _this.props.autoplay && _this.autoPlay("update"); - }); - if (_this.props.lazyLoad === "progressive") { - _this.lazyLoadTimer = setInterval( - _this.progressiveLazyLoad, - 1000 - ); - } - _this.ro = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_8__[ - "default" - ](function() { - if (_this.state.animating) { - _this.onWindowResized(false); // don't set trackStyle hence don't break animation - _this.callbackTimers.push( - setTimeout(function() { - return _this.onWindowResized(); - }, _this.props.speed) - ); + ), + _this.state + ); + var setTrackStyle = _this.didPropsChange(prevProps); + setTrackStyle && + _this.updateState(spec, setTrackStyle, function() { + if ( + _this.state.currentSlide >= + react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count( + _this.props.children + ) + ) { + _this.changeSlide({ + message: "index", + index: + react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count( + _this.props.children + ) - _this.props.slidesToShow, + currentSlide: _this.state.currentSlide + }); + } + if (_this.props.autoplay) { + _this.autoPlay("update"); } else { - _this.onWindowResized(); + _this.pause("paused"); } }); - _this.ro.observe(_this.list); - document.querySelectorAll && - Array.prototype.forEach.call( - document.querySelectorAll(".slick-slide"), - function(slide) { - slide.onfocus = _this.props.pauseOnFocus - ? _this.onSlideFocus - : null; - slide.onblur = _this.props.pauseOnFocus - ? _this.onSlideBlur - : null; - } - ); - if (window.addEventListener) { - window.addEventListener("resize", _this.onWindowResized); - } else { - window.attachEvent("onresize", _this.onWindowResized); - } - } - ); - _defineProperty( - _assertThisInitialized(_this), - "componentWillUnmount", - function() { - if (_this.animationEndCallback) { - clearTimeout(_this.animationEndCallback); - } - if (_this.lazyLoadTimer) { - clearInterval(_this.lazyLoadTimer); - } - if (_this.callbackTimers.length) { - _this.callbackTimers.forEach(function(timer) { - return clearTimeout(timer); - }); - _this.callbackTimers = []; - } - if (window.addEventListener) { - window.removeEventListener("resize", _this.onWindowResized); - } else { - window.detachEvent("onresize", _this.onWindowResized); + }); + _defineProperty(_this, "onWindowResized", function(setTrackStyle) { + if (_this.debouncedResize) _this.debouncedResize.cancel(); + _this.debouncedResize = lodash_debounce__WEBPACK_IMPORTED_MODULE_2___default()( + function() { + return _this.resizeWindow(setTrackStyle); + }, + 50 + ); + _this.debouncedResize(); + }); + _defineProperty(_this, "resizeWindow", function() { + var setTrackStyle = + arguments.length > 0 && arguments[0] !== undefined + ? arguments[0] + : true; + var isTrackMounted = Boolean(_this.track && _this.track.node); + // prevent warning: setting state on unmounted component (server side rendering) + if (!isTrackMounted) return; + var spec = _objectSpread( + _objectSpread( + { + listRef: _this.list, + trackRef: _this.track + }, + _this.props + ), + _this.state + ); + _this.updateState(spec, setTrackStyle, function() { + if (_this.props.autoplay) _this.autoPlay("update"); + else _this.pause("paused"); + }); + // animating state should be cleared while resizing, otherwise autoplay stops working + _this.setState({ + animating: false + }); + clearTimeout(_this.animationEndCallback); + delete _this.animationEndCallback; + }); + _defineProperty(_this, "updateState", function( + spec, + setTrackStyle, + callback + ) { + var updatedState = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "initializedState" + ] + )(spec); + spec = _objectSpread( + _objectSpread(_objectSpread({}, spec), updatedState), + {}, + { + slideIndex: updatedState.currentSlide } - if (_this.autoplayTimer) { - clearInterval(_this.autoplayTimer); + ); + var targetLeft = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "getTrackLeft" + ] + )(spec); + spec = _objectSpread( + _objectSpread({}, spec), + {}, + { + left: targetLeft } - _this.ro.disconnect(); + ); + var trackStyle = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "getTrackCSS" + ] + )(spec); + if ( + setTrackStyle || + react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count( + _this.props.children + ) !== + react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count( + spec.children + ) + ) { + updatedState["trackStyle"] = trackStyle; } - ); - _defineProperty( - _assertThisInitialized(_this), - "componentDidUpdate", - function(prevProps) { - _this.checkImagesLoad(); - _this.props.onReInit && _this.props.onReInit(); - if (_this.props.lazyLoad) { - var slidesToLoad = Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "getOnDemandLazySlides" - ] - )(_objectSpread(_objectSpread({}, _this.props), _this.state)); - if (slidesToLoad.length > 0) { - _this.setState(function(prevState) { - return { - lazyLoadedList: prevState.lazyLoadedList.concat( - slidesToLoad - ) - }; - }); - if (_this.props.onLazyLoad) { - _this.props.onLazyLoad(slidesToLoad); - } - } - } - // if (this.props.onLazyLoad) { - // this.props.onLazyLoad([leftMostSlide]) - // } - _this.adaptHeight(); - var spec = _objectSpread( + _this.setState(updatedState, callback); + }); + _defineProperty(_this, "ssrInit", function() { + if (_this.props.variableWidth) { + var _trackWidth = 0, + _trackLeft = 0; + var childrenWidths = []; + var preClones = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "getPreClones" + ] + )( _objectSpread( + _objectSpread(_objectSpread({}, _this.props), _this.state), + {}, { - listRef: _this.list, - trackRef: _this.track - }, - _this.props - ), - _this.state - ); - var setTrackStyle = _this.didPropsChange(prevProps); - setTrackStyle && - _this.updateState(spec, setTrackStyle, function() { - if ( - _this.state.currentSlide >= - react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count( - _this.props.children - ) - ) { - _this.changeSlide({ - message: "index", - index: - react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count( - _this.props.children - ) - _this.props.slidesToShow, - currentSlide: _this.state.currentSlide - }); + slideCount: _this.props.children.length } - if (_this.props.autoplay) { - _this.autoPlay("update"); - } else { - _this.pause("paused"); - } - }); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "onWindowResized", - function(setTrackStyle) { - if (_this.debouncedResize) _this.debouncedResize.cancel(); - _this.debouncedResize = lodash_debounce__WEBPACK_IMPORTED_MODULE_2___default()( - function() { - return _this.resizeWindow(setTrackStyle); - }, - 50 + ) ); - _this.debouncedResize(); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "resizeWindow", - function() { - var setTrackStyle = - arguments.length > 0 && arguments[0] !== undefined - ? arguments[0] - : true; - var isTrackMounted = Boolean(_this.track && _this.track.node); - // prevent warning: setting state on unmounted component (server side rendering) - if (!isTrackMounted) return; - var spec = _objectSpread( + var postClones = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "getPostClones" + ] + )( _objectSpread( + _objectSpread(_objectSpread({}, _this.props), _this.state), + {}, { - listRef: _this.list, - trackRef: _this.track - }, - _this.props - ), - _this.state + slideCount: _this.props.children.length + } + ) ); - _this.updateState(spec, setTrackStyle, function() { - if (_this.props.autoplay) _this.autoPlay("update"); - else _this.pause("paused"); - }); - // animating state should be cleared while resizing, otherwise autoplay stops working - _this.setState({ - animating: false + _this.props.children.forEach(function(child) { + childrenWidths.push(child.props.style.width); + _trackWidth += child.props.style.width; }); - clearTimeout(_this.animationEndCallback); - delete _this.animationEndCallback; + for (var i = 0; i < preClones; i++) { + _trackLeft += childrenWidths[childrenWidths.length - 1 - i]; + _trackWidth += childrenWidths[childrenWidths.length - 1 - i]; + } + for (var _i = 0; _i < postClones; _i++) { + _trackWidth += childrenWidths[_i]; + } + for (var _i2 = 0; _i2 < _this.state.currentSlide; _i2++) { + _trackLeft += childrenWidths[_i2]; + } + var _trackStyle = { + width: _trackWidth + "px", + left: -_trackLeft + "px" + }; + if (_this.props.centerMode) { + var currentWidth = "".concat( + childrenWidths[_this.state.currentSlide], + "px" + ); + _trackStyle.left = "calc(" + .concat(_trackStyle.left, " + (100% - ") + .concat(currentWidth, ") / 2 ) "); + } + return { + trackStyle: _trackStyle + }; } - ); - _defineProperty( - _assertThisInitialized(_this), - "updateState", - function(spec, setTrackStyle, callback) { - var updatedState = Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "initializedState" - ] - )(spec); - spec = _objectSpread( - _objectSpread(_objectSpread({}, spec), updatedState), - {}, - { - slideIndex: updatedState.currentSlide - } - ); - var targetLeft = Object( + var childrenCount = react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count( + _this.props.children + ); + var spec = _objectSpread( + _objectSpread(_objectSpread({}, _this.props), _this.state), + {}, + { + slideCount: childrenCount + } + ); + var slideCount = + Object( _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "getTrackLeft" + "getPreClones" ] - )(spec); - spec = _objectSpread( - _objectSpread({}, spec), - {}, - { - left: targetLeft - } - ); - var trackStyle = Object( + )(spec) + + Object( _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "getTrackCSS" + "getPostClones" ] - )(spec); - if ( - setTrackStyle || - react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count( - _this.props.children - ) !== - react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count( - spec.children - ) - ) { - updatedState["trackStyle"] = trackStyle; - } - _this.setState(updatedState, callback); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "ssrInit", - function() { - if (_this.props.variableWidth) { - var _trackWidth = 0, - _trackLeft = 0; - var childrenWidths = []; - var preClones = Object( + )(spec) + + childrenCount; + var trackWidth = (100 / _this.props.slidesToShow) * slideCount; + var slideWidth = 100 / slideCount; + var trackLeft = + (-slideWidth * + (Object( _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ "getPreClones" ] - )( - _objectSpread( - _objectSpread( - _objectSpread({}, _this.props), - _this.state - ), - {}, - { - slideCount: _this.props.children.length - } - ) - ); - var postClones = Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "getPostClones" - ] - )( - _objectSpread( - _objectSpread( - _objectSpread({}, _this.props), - _this.state - ), - {}, - { - slideCount: _this.props.children.length - } - ) + )(spec) + + _this.state.currentSlide) * + trackWidth) / + 100; + if (_this.props.centerMode) { + trackLeft += (100 - (slideWidth * trackWidth) / 100) / 2; + } + var trackStyle = { + width: trackWidth + "%", + left: trackLeft + "%" + }; + return { + slideWidth: slideWidth + "%", + trackStyle: trackStyle + }; + }); + _defineProperty(_this, "checkImagesLoad", function() { + var images = + (_this.list && + _this.list.querySelectorAll && + _this.list.querySelectorAll(".slick-slide img")) || + []; + var imagesCount = images.length, + loadedCount = 0; + Array.prototype.forEach.call(images, function(image) { + var handler = function handler() { + return ( + ++loadedCount && + loadedCount >= imagesCount && + _this.onWindowResized() ); - _this.props.children.forEach(function(child) { - childrenWidths.push(child.props.style.width); - _trackWidth += child.props.style.width; - }); - for (var i = 0; i < preClones; i++) { - _trackLeft += childrenWidths[childrenWidths.length - 1 - i]; - _trackWidth += - childrenWidths[childrenWidths.length - 1 - i]; - } - for (var _i = 0; _i < postClones; _i++) { - _trackWidth += childrenWidths[_i]; - } - for (var _i2 = 0; _i2 < _this.state.currentSlide; _i2++) { - _trackLeft += childrenWidths[_i2]; - } - var _trackStyle = { - width: _trackWidth + "px", - left: -_trackLeft + "px" + }; + if (!image.onclick) { + image.onclick = function() { + return image.parentNode.focus(); }; - if (_this.props.centerMode) { - var currentWidth = "".concat( - childrenWidths[_this.state.currentSlide], - "px" - ); - _trackStyle.left = "calc(" - .concat(_trackStyle.left, " + (100% - ") - .concat(currentWidth, ") / 2 ) "); - } - return { - trackStyle: _trackStyle + } else { + var prevClickHandler = image.onclick; + image.onclick = function(e) { + prevClickHandler(e); + image.parentNode.focus(); }; } - var childrenCount = react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.count( - _this.props.children - ); - var spec = _objectSpread( - _objectSpread(_objectSpread({}, _this.props), _this.state), - {}, - { - slideCount: childrenCount - } - ); - var slideCount = - Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "getPreClones" - ] - )(spec) + - Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "getPostClones" - ] - )(spec) + - childrenCount; - var trackWidth = (100 / _this.props.slidesToShow) * slideCount; - var slideWidth = 100 / slideCount; - var trackLeft = - (-slideWidth * - (Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "getPreClones" - ] - )(spec) + - _this.state.currentSlide) * - trackWidth) / - 100; - if (_this.props.centerMode) { - trackLeft += (100 - (slideWidth * trackWidth) / 100) / 2; - } - var trackStyle = { - width: trackWidth + "%", - left: trackLeft + "%" - }; - return { - slideWidth: slideWidth + "%", - trackStyle: trackStyle - }; - } - ); - _defineProperty( - _assertThisInitialized(_this), - "checkImagesLoad", - function() { - var images = - (_this.list && - _this.list.querySelectorAll && - _this.list.querySelectorAll(".slick-slide img")) || - []; - var imagesCount = images.length, - loadedCount = 0; - Array.prototype.forEach.call(images, function(image) { - var handler = function handler() { - return ( - ++loadedCount && - loadedCount >= imagesCount && - _this.onWindowResized() - ); - }; - if (!image.onclick) { - image.onclick = function() { - return image.parentNode.focus(); + if (!image.onload) { + if (_this.props.lazyLoad) { + image.onload = function() { + _this.adaptHeight(); + _this.callbackTimers.push( + setTimeout(_this.onWindowResized, _this.props.speed) + ); }; } else { - var prevClickHandler = image.onclick; - image.onclick = function(e) { - prevClickHandler(e); - image.parentNode.focus(); + image.onload = handler; + image.onerror = function() { + handler(); + _this.props.onLazyLoadError && + _this.props.onLazyLoadError(); }; } - if (!image.onload) { - if (_this.props.lazyLoad) { - image.onload = function() { - _this.adaptHeight(); - _this.callbackTimers.push( - setTimeout(_this.onWindowResized, _this.props.speed) - ); - }; - } else { - image.onload = handler; - image.onerror = function() { - handler(); - _this.props.onLazyLoadError && - _this.props.onLazyLoadError(); - }; - } - } - }); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "progressiveLazyLoad", - function() { - var slidesToLoad = []; - var spec = _objectSpread( - _objectSpread({}, _this.props), - _this.state - ); - for ( - var index = _this.state.currentSlide; - index < - _this.state.slideCount + - Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "getPostClones" - ] - )(spec); - index++ - ) { - if (_this.state.lazyLoadedList.indexOf(index) < 0) { - slidesToLoad.push(index); - break; - } } - for ( - var _index = _this.state.currentSlide - 1; - _index >= - -Object( + }); + }); + _defineProperty(_this, "progressiveLazyLoad", function() { + var slidesToLoad = []; + var spec = _objectSpread( + _objectSpread({}, _this.props), + _this.state + ); + for ( + var index = _this.state.currentSlide; + index < + _this.state.slideCount + + Object( _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "getPreClones" + "getPostClones" ] )(spec); - _index-- - ) { - if (_this.state.lazyLoadedList.indexOf(_index) < 0) { - slidesToLoad.push(_index); - break; - } - } - if (slidesToLoad.length > 0) { - _this.setState(function(state) { - return { - lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad) - }; - }); - if (_this.props.onLazyLoad) { - _this.props.onLazyLoad(slidesToLoad); - } - } else { - if (_this.lazyLoadTimer) { - clearInterval(_this.lazyLoadTimer); - delete _this.lazyLoadTimer; - } - } - } - ); - _defineProperty( - _assertThisInitialized(_this), - "slideHandler", - function(index) { - var dontAnimate = - arguments.length > 1 && arguments[1] !== undefined - ? arguments[1] - : false; - var _this$props = _this.props, - asNavFor = _this$props.asNavFor, - beforeChange = _this$props.beforeChange, - onLazyLoad = _this$props.onLazyLoad, - speed = _this$props.speed, - afterChange = _this$props.afterChange; - // capture currentslide before state is updated - var currentSlide = _this.state.currentSlide; - var _slideHandler = Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "slideHandler" - ] - )( - _objectSpread( - _objectSpread( - _objectSpread( - { - index: index - }, - _this.props - ), - _this.state - ), - {}, - { - trackRef: _this.track, - useCSS: _this.props.useCSS && !dontAnimate - } - ) - ), - state = _slideHandler.state, - nextState = _slideHandler.nextState; - if (!state) return; - beforeChange && beforeChange(currentSlide, state.currentSlide); - var slidesToLoad = state.lazyLoadedList.filter(function(value) { - return _this.state.lazyLoadedList.indexOf(value) < 0; - }); - onLazyLoad && - slidesToLoad.length > 0 && - onLazyLoad(slidesToLoad); - if (!_this.props.waitForAnimate && _this.animationEndCallback) { - clearTimeout(_this.animationEndCallback); - afterChange && afterChange(currentSlide); - delete _this.animationEndCallback; + index++ + ) { + if (_this.state.lazyLoadedList.indexOf(index) < 0) { + slidesToLoad.push(index); + break; } - _this.setState(state, function() { - // asNavForIndex check is to avoid recursive calls of slideHandler in waitForAnimate=false mode - if (asNavFor && _this.asNavForIndex !== index) { - _this.asNavForIndex = index; - asNavFor.innerSlider.slideHandler(index); - } - if (!nextState) return; - _this.animationEndCallback = setTimeout(function() { - var animating = nextState.animating, - firstBatch = _objectWithoutProperties( - nextState, - _excluded - ); - _this.setState(firstBatch, function() { - _this.callbackTimers.push( - setTimeout(function() { - return _this.setState({ - animating: animating - }); - }, 10) - ); - afterChange && afterChange(state.currentSlide); - delete _this.animationEndCallback; - }); - }, speed); - }); } - ); - _defineProperty( - _assertThisInitialized(_this), - "changeSlide", - function(options) { - var dontAnimate = - arguments.length > 1 && arguments[1] !== undefined - ? arguments[1] - : false; - var spec = _objectSpread( - _objectSpread({}, _this.props), - _this.state - ); - var targetSlide = Object( + for ( + var _index = _this.state.currentSlide - 1; + _index >= + -Object( _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "changeSlide" + "getPreClones" ] - )(spec, options); - if (targetSlide !== 0 && !targetSlide) return; - if (dontAnimate === true) { - _this.slideHandler(targetSlide, dontAnimate); - } else { - _this.slideHandler(targetSlide); - } - _this.props.autoplay && _this.autoPlay("update"); - if (_this.props.focusOnSelect) { - var nodes = _this.list.querySelectorAll(".slick-current"); - nodes[0] && nodes[0].focus(); + )(spec); + _index-- + ) { + if (_this.state.lazyLoadedList.indexOf(_index) < 0) { + slidesToLoad.push(_index); + break; } } - ); - _defineProperty( - _assertThisInitialized(_this), - "clickHandler", - function(e) { - if (_this.clickable === false) { - e.stopPropagation(); - e.preventDefault(); + if (slidesToLoad.length > 0) { + _this.setState(function(state) { + return { + lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad) + }; + }); + if (_this.props.onLazyLoad) { + _this.props.onLazyLoad(slidesToLoad); } - _this.clickable = true; - } - ); - _defineProperty( - _assertThisInitialized(_this), - "keyHandler", - function(e) { - var dir = Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "keyHandler" - ] - )(e, _this.props.accessibility, _this.props.rtl); - dir !== "" && - _this.changeSlide({ - message: dir - }); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "selectHandler", - function(options) { - _this.changeSlide(options); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "disableBodyScroll", - function() { - var preventDefault = function preventDefault(e) { - e = e || window.event; - if (e.preventDefault) e.preventDefault(); - e.returnValue = false; - }; - window.ontouchmove = preventDefault; - } - ); - _defineProperty( - _assertThisInitialized(_this), - "enableBodyScroll", - function() { - window.ontouchmove = null; - } - ); - _defineProperty( - _assertThisInitialized(_this), - "swipeStart", - function(e) { - if (_this.props.verticalSwiping) { - _this.disableBodyScroll(); + } else { + if (_this.lazyLoadTimer) { + clearInterval(_this.lazyLoadTimer); + delete _this.lazyLoadTimer; } - var state = Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "swipeStart" - ] - )(e, _this.props.swipe, _this.props.draggable); - state !== "" && _this.setState(state); } - ); - _defineProperty( - _assertThisInitialized(_this), - "swipeMove", - function(e) { - var state = Object( + }); + _defineProperty(_this, "slideHandler", function(index) { + var dontAnimate = + arguments.length > 1 && arguments[1] !== undefined + ? arguments[1] + : false; + var _this$props = _this.props, + asNavFor = _this$props.asNavFor, + beforeChange = _this$props.beforeChange, + onLazyLoad = _this$props.onLazyLoad, + speed = _this$props.speed, + afterChange = _this$props.afterChange; + // capture currentslide before state is updated + var currentSlide = _this.state.currentSlide; + var _slideHandler = Object( _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "swipeMove" + "slideHandler" ] )( - e, _objectSpread( - _objectSpread(_objectSpread({}, _this.props), _this.state), + _objectSpread( + _objectSpread( + { + index: index + }, + _this.props + ), + _this.state + ), {}, { trackRef: _this.track, - listRef: _this.list, - slideIndex: _this.state.currentSlide + useCSS: _this.props.useCSS && !dontAnimate } ) - ); - if (!state) return; - if (state["swiping"]) { - _this.clickable = false; + ), + state = _slideHandler.state, + nextState = _slideHandler.nextState; + if (!state) return; + beforeChange && beforeChange(currentSlide, state.currentSlide); + var slidesToLoad = state.lazyLoadedList.filter(function(value) { + return _this.state.lazyLoadedList.indexOf(value) < 0; + }); + onLazyLoad && slidesToLoad.length > 0 && onLazyLoad(slidesToLoad); + if (!_this.props.waitForAnimate && _this.animationEndCallback) { + clearTimeout(_this.animationEndCallback); + afterChange && afterChange(currentSlide); + delete _this.animationEndCallback; + } + _this.setState(state, function() { + // asNavForIndex check is to avoid recursive calls of slideHandler in waitForAnimate=false mode + if (asNavFor && _this.asNavForIndex !== index) { + _this.asNavForIndex = index; + asNavFor.innerSlider.slideHandler(index); } - _this.setState(state); + if (!nextState) return; + _this.animationEndCallback = setTimeout(function() { + var animating = nextState.animating, + firstBatch = _objectWithoutProperties(nextState, _excluded); + _this.setState(firstBatch, function() { + _this.callbackTimers.push( + setTimeout(function() { + return _this.setState({ + animating: animating + }); + }, 10) + ); + afterChange && afterChange(state.currentSlide); + delete _this.animationEndCallback; + }); + }, speed); + }); + }); + _defineProperty(_this, "changeSlide", function(options) { + var dontAnimate = + arguments.length > 1 && arguments[1] !== undefined + ? arguments[1] + : false; + var spec = _objectSpread( + _objectSpread({}, _this.props), + _this.state + ); + var targetSlide = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "changeSlide" + ] + )(spec, options); + if (targetSlide !== 0 && !targetSlide) return; + if (dontAnimate === true) { + _this.slideHandler(targetSlide, dontAnimate); + } else { + _this.slideHandler(targetSlide); } - ); - _defineProperty(_assertThisInitialized(_this), "swipeEnd", function( - e - ) { + _this.props.autoplay && _this.autoPlay("update"); + if (_this.props.focusOnSelect) { + var nodes = _this.list.querySelectorAll(".slick-current"); + nodes[0] && nodes[0].focus(); + } + }); + _defineProperty(_this, "clickHandler", function(e) { + if (_this.clickable === false) { + e.stopPropagation(); + e.preventDefault(); + } + _this.clickable = true; + }); + _defineProperty(_this, "keyHandler", function(e) { + var dir = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "keyHandler" + ] + )(e, _this.props.accessibility, _this.props.rtl); + dir !== "" && + _this.changeSlide({ + message: dir + }); + }); + _defineProperty(_this, "selectHandler", function(options) { + _this.changeSlide(options); + }); + _defineProperty(_this, "disableBodyScroll", function() { + var preventDefault = function preventDefault(e) { + e = e || window.event; + if (e.preventDefault) e.preventDefault(); + e.returnValue = false; + }; + window.ontouchmove = preventDefault; + }); + _defineProperty(_this, "enableBodyScroll", function() { + window.ontouchmove = null; + }); + _defineProperty(_this, "swipeStart", function(e) { + if (_this.props.verticalSwiping) { + _this.disableBodyScroll(); + } + var state = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "swipeStart" + ] + )(e, _this.props.swipe, _this.props.draggable); + state !== "" && _this.setState(state); + }); + _defineProperty(_this, "swipeMove", function(e) { + var state = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "swipeMove" + ] + )( + e, + _objectSpread( + _objectSpread(_objectSpread({}, _this.props), _this.state), + {}, + { + trackRef: _this.track, + listRef: _this.list, + slideIndex: _this.state.currentSlide + } + ) + ); + if (!state) return; + if (state["swiping"]) { + _this.clickable = false; + } + _this.setState(state); + }); + _defineProperty(_this, "swipeEnd", function(e) { var state = Object( _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__["swipeEnd"] )( @@ -1732,66 +1592,52 @@ _this.enableBodyScroll(); } }); - _defineProperty(_assertThisInitialized(_this), "touchEnd", function( - e - ) { + _defineProperty(_this, "touchEnd", function(e) { _this.swipeEnd(e); _this.clickable = true; }); - _defineProperty( - _assertThisInitialized(_this), - "slickPrev", - function() { - // this and fellow methods are wrapped in setTimeout - // to make sure initialize setState has happened before - // any of such methods are called - _this.callbackTimers.push( - setTimeout(function() { - return _this.changeSlide({ - message: "previous" - }); - }, 0) - ); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "slickNext", - function() { - _this.callbackTimers.push( - setTimeout(function() { - return _this.changeSlide({ - message: "next" - }); - }, 0) - ); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "slickGoTo", - function(slide) { - var dontAnimate = - arguments.length > 1 && arguments[1] !== undefined - ? arguments[1] - : false; - slide = Number(slide); - if (isNaN(slide)) return ""; - _this.callbackTimers.push( - setTimeout(function() { - return _this.changeSlide( - { - message: "index", - index: slide, - currentSlide: _this.state.currentSlide - }, - dontAnimate - ); - }, 0) - ); - } - ); - _defineProperty(_assertThisInitialized(_this), "play", function() { + _defineProperty(_this, "slickPrev", function() { + // this and fellow methods are wrapped in setTimeout + // to make sure initialize setState has happened before + // any of such methods are called + _this.callbackTimers.push( + setTimeout(function() { + return _this.changeSlide({ + message: "previous" + }); + }, 0) + ); + }); + _defineProperty(_this, "slickNext", function() { + _this.callbackTimers.push( + setTimeout(function() { + return _this.changeSlide({ + message: "next" + }); + }, 0) + ); + }); + _defineProperty(_this, "slickGoTo", function(slide) { + var dontAnimate = + arguments.length > 1 && arguments[1] !== undefined + ? arguments[1] + : false; + slide = Number(slide); + if (isNaN(slide)) return ""; + _this.callbackTimers.push( + setTimeout(function() { + return _this.changeSlide( + { + message: "index", + index: slide, + currentSlide: _this.state.currentSlide + }, + dontAnimate + ); + }, 0) + ); + }); + _defineProperty(_this, "play", function() { var nextIndex; if (_this.props.rtl) { nextIndex = @@ -1812,9 +1658,7 @@ } _this.slideHandler(nextIndex); }); - _defineProperty(_assertThisInitialized(_this), "autoPlay", function( - playType - ) { + _defineProperty(_this, "autoPlay", function(playType) { if (_this.autoplayTimer) { clearInterval(_this.autoplayTimer); } @@ -1844,9 +1688,7 @@ autoplaying: "playing" }); }); - _defineProperty(_assertThisInitialized(_this), "pause", function( - pauseType - ) { + _defineProperty(_this, "pause", function(pauseType) { if (_this.autoplayTimer) { clearInterval(_this.autoplayTimer); _this.autoplayTimer = null; @@ -1871,287 +1713,259 @@ } } }); - _defineProperty( - _assertThisInitialized(_this), - "onDotsOver", - function() { - return _this.props.autoplay && _this.pause("hovered"); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "onDotsLeave", - function() { - return ( - _this.props.autoplay && - _this.state.autoplaying === "hovered" && - _this.autoPlay("leave") - ); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "onTrackOver", - function() { - return _this.props.autoplay && _this.pause("hovered"); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "onTrackLeave", - function() { - return ( - _this.props.autoplay && - _this.state.autoplaying === "hovered" && - _this.autoPlay("leave") - ); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "onSlideFocus", - function() { - return _this.props.autoplay && _this.pause("focused"); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "onSlideBlur", - function() { - return ( - _this.props.autoplay && - _this.state.autoplaying === "focused" && - _this.autoPlay("blur") - ); - } - ); - _defineProperty( - _assertThisInitialized(_this), - "render", - function() { - var _this$props$classes, _this$props$classes2; - var className = classnames__WEBPACK_IMPORTED_MODULE_3___default()( - "slick-slider", - _this.props.className, - (_this$props$classes = _this.props.classes) === null || - _this$props$classes === void 0 - ? void 0 - : _this$props$classes.slider, - { - "slick-vertical": _this.props.vertical, - "slick-initialized": true - } - ); - var spec = _objectSpread( - _objectSpread({}, _this.props), - _this.state - ); - var trackProps = Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "extractObject" - ] - )(spec, [ - "fade", - "cssEase", - "speed", - "infinite", - "centerMode", - "focusOnSelect", - "currentSlide", - "lazyLoad", - "lazyLoadedList", - "rtl", - "slideWidth", - "slideHeight", - "listHeight", - "vertical", - "slidesToShow", - "slidesToScroll", - "slideCount", - "trackStyle", - "variableWidth", - "unslick", - "centerPadding", - "targetSlide", - "useCSS", - "omitLazyForSlides", - "classes" - ]); - var pauseOnHover = _this.props.pauseOnHover; - trackProps = _objectSpread( - _objectSpread({}, trackProps), - {}, - { - onMouseEnter: pauseOnHover ? _this.onTrackOver : null, - onMouseLeave: pauseOnHover ? _this.onTrackLeave : null, - onMouseOver: pauseOnHover ? _this.onTrackOver : null, - focusOnSelect: - _this.props.focusOnSelect && _this.clickable - ? _this.selectHandler - : null - } - ); - var dots; - if ( - _this.props.dots === true && - _this.state.slideCount >= _this.props.slidesToShow - ) { - var dotProps = Object( - _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ - "extractObject" - ] - )(spec, [ - "dotsClass", - "slideCount", - "slidesToShow", - "currentSlide", - "slidesToScroll", - "clickHandler", - "children", - "customPaging", - "infinite", - "appendDots", - "classes" - ]); - var pauseOnDotsHover = _this.props.pauseOnDotsHover; - dotProps = _objectSpread( - _objectSpread({}, dotProps), - {}, - { - clickHandler: _this.changeSlide, - onMouseEnter: pauseOnDotsHover ? _this.onDotsLeave : null, - onMouseOver: pauseOnDotsHover ? _this.onDotsOver : null, - onMouseLeave: pauseOnDotsHover ? _this.onDotsLeave : null - } - ); - dots = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement( - _dots__WEBPACK_IMPORTED_MODULE_6__["Dots"], - dotProps - ); + _defineProperty(_this, "onDotsOver", function() { + return _this.props.autoplay && _this.pause("hovered"); + }); + _defineProperty(_this, "onDotsLeave", function() { + return ( + _this.props.autoplay && + _this.state.autoplaying === "hovered" && + _this.autoPlay("leave") + ); + }); + _defineProperty(_this, "onTrackOver", function() { + return _this.props.autoplay && _this.pause("hovered"); + }); + _defineProperty(_this, "onTrackLeave", function() { + return ( + _this.props.autoplay && + _this.state.autoplaying === "hovered" && + _this.autoPlay("leave") + ); + }); + _defineProperty(_this, "onSlideFocus", function() { + return _this.props.autoplay && _this.pause("focused"); + }); + _defineProperty(_this, "onSlideBlur", function() { + return ( + _this.props.autoplay && + _this.state.autoplaying === "focused" && + _this.autoPlay("blur") + ); + }); + _defineProperty(_this, "render", function() { + var _this$props$classes, _this$props$classes2; + var className = classnames__WEBPACK_IMPORTED_MODULE_3___default()( + "slick-slider", + _this.props.className, + (_this$props$classes = _this.props.classes) === null || + _this$props$classes === void 0 + ? void 0 + : _this$props$classes.slider, + { + "slick-vertical": _this.props.vertical, + "slick-initialized": true } - var prevArrow, nextArrow; - var arrowProps = Object( + ); + var spec = _objectSpread( + _objectSpread({}, _this.props), + _this.state + ); + var trackProps = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "extractObject" + ] + )(spec, [ + "fade", + "cssEase", + "speed", + "infinite", + "centerMode", + "focusOnSelect", + "currentSlide", + "lazyLoad", + "lazyLoadedList", + "rtl", + "slideWidth", + "slideHeight", + "listHeight", + "vertical", + "slidesToShow", + "slidesToScroll", + "slideCount", + "trackStyle", + "variableWidth", + "unslick", + "centerPadding", + "targetSlide", + "useCSS", + "omitLazyForSlides", + "classes" + ]); + var pauseOnHover = _this.props.pauseOnHover; + trackProps = _objectSpread( + _objectSpread({}, trackProps), + {}, + { + onMouseEnter: pauseOnHover ? _this.onTrackOver : null, + onMouseLeave: pauseOnHover ? _this.onTrackLeave : null, + onMouseOver: pauseOnHover ? _this.onTrackOver : null, + focusOnSelect: + _this.props.focusOnSelect && _this.clickable + ? _this.selectHandler + : null + } + ); + var dots; + if ( + _this.props.dots === true && + _this.state.slideCount >= _this.props.slidesToShow + ) { + var dotProps = Object( _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ "extractObject" ] )(spec, [ - "infinite", - "centerMode", - "currentSlide", + "dotsClass", "slideCount", "slidesToShow", - "prevArrow", - "nextArrow", + "currentSlide", + "slidesToScroll", + "clickHandler", + "children", + "customPaging", + "infinite", + "appendDots", "classes" - ]); - arrowProps.clickHandler = _this.changeSlide; - if (_this.props.arrows) { - prevArrow = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement( - _arrows__WEBPACK_IMPORTED_MODULE_7__["PrevArrow"], - arrowProps - ); - nextArrow = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement( - _arrows__WEBPACK_IMPORTED_MODULE_7__["NextArrow"], - arrowProps - ); - } - var verticalHeightStyle = null; - if (_this.props.vertical) { - verticalHeightStyle = { - height: _this.state.listHeight + ]); + var pauseOnDotsHover = _this.props.pauseOnDotsHover; + dotProps = _objectSpread( + _objectSpread({}, dotProps), + {}, + { + clickHandler: _this.changeSlide, + onMouseEnter: pauseOnDotsHover ? _this.onDotsLeave : null, + onMouseOver: pauseOnDotsHover ? _this.onDotsOver : null, + onMouseLeave: pauseOnDotsHover ? _this.onDotsLeave : null + } + ); + dots = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement( + _dots__WEBPACK_IMPORTED_MODULE_6__["Dots"], + dotProps + ); + } + var prevArrow, nextArrow; + var arrowProps = Object( + _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__[ + "extractObject" + ] + )(spec, [ + "infinite", + "centerMode", + "currentSlide", + "slideCount", + "slidesToShow", + "prevArrow", + "nextArrow", + "classes" + ]); + arrowProps.clickHandler = _this.changeSlide; + if (_this.props.arrows) { + prevArrow = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement( + _arrows__WEBPACK_IMPORTED_MODULE_7__["PrevArrow"], + arrowProps + ); + nextArrow = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement( + _arrows__WEBPACK_IMPORTED_MODULE_7__["NextArrow"], + arrowProps + ); + } + var verticalHeightStyle = null; + if (_this.props.vertical) { + verticalHeightStyle = { + height: _this.state.listHeight + }; + } + var centerPaddingStyle = null; + if (_this.props.vertical === false) { + if (_this.props.centerMode === true) { + centerPaddingStyle = { + padding: "0px " + _this.props.centerPadding }; } - var centerPaddingStyle = null; - if (_this.props.vertical === false) { - if (_this.props.centerMode === true) { - centerPaddingStyle = { - padding: "0px " + _this.props.centerPadding - }; - } - } else { - if (_this.props.centerMode === true) { - centerPaddingStyle = { - padding: _this.props.centerPadding + " 0px" - }; - } + } else { + if (_this.props.centerMode === true) { + centerPaddingStyle = { + padding: _this.props.centerPadding + " 0px" + }; } - var listStyle = _objectSpread( - _objectSpread({}, verticalHeightStyle), - centerPaddingStyle - ); - var touchMove = _this.props.touchMove; - var listProps = { + } + var listStyle = _objectSpread( + _objectSpread({}, verticalHeightStyle), + centerPaddingStyle + ); + var touchMove = _this.props.touchMove; + var listProps = { + className: classnames__WEBPACK_IMPORTED_MODULE_3___default()( + (_this$props$classes2 = _this.props.classes) === null || + _this$props$classes2 === void 0 + ? void 0 + : _this$props$classes2.list, + "slick-list" + ), + style: listStyle, + onClick: _this.clickHandler, + onMouseDown: touchMove ? _this.swipeStart : null, + onMouseMove: + _this.state.dragging && touchMove ? _this.swipeMove : null, + onMouseUp: touchMove ? _this.swipeEnd : null, + onMouseLeave: + _this.state.dragging && touchMove ? _this.swipeEnd : null, + onTouchStart: touchMove ? _this.swipeStart : null, + onTouchMove: + _this.state.dragging && touchMove ? _this.swipeMove : null, + onTouchEnd: touchMove ? _this.touchEnd : null, + onTouchCancel: + _this.state.dragging && touchMove ? _this.swipeEnd : null, + onKeyDown: _this.props.accessibility ? _this.keyHandler : null + }; + var innerSliderProps = { + className: className, + dir: "ltr", + style: _this.props.style + }; + if (_this.props.unslick) { + var _this$props$classes3; + listProps = { className: classnames__WEBPACK_IMPORTED_MODULE_3___default()( - (_this$props$classes2 = _this.props.classes) === null || - _this$props$classes2 === void 0 + (_this$props$classes3 = _this.props.classes) === null || + _this$props$classes3 === void 0 ? void 0 - : _this$props$classes2.list, + : _this$props$classes3.list, "slick-list" - ), - style: listStyle, - onClick: _this.clickHandler, - onMouseDown: touchMove ? _this.swipeStart : null, - onMouseMove: - _this.state.dragging && touchMove ? _this.swipeMove : null, - onMouseUp: touchMove ? _this.swipeEnd : null, - onMouseLeave: - _this.state.dragging && touchMove ? _this.swipeEnd : null, - onTouchStart: touchMove ? _this.swipeStart : null, - onTouchMove: - _this.state.dragging && touchMove ? _this.swipeMove : null, - onTouchEnd: touchMove ? _this.touchEnd : null, - onTouchCancel: - _this.state.dragging && touchMove ? _this.swipeEnd : null, - onKeyDown: _this.props.accessibility ? _this.keyHandler : null + ) }; - var innerSliderProps = { - className: className, - dir: "ltr", - style: _this.props.style + innerSliderProps = { + className: className }; - if (_this.props.unslick) { - var _this$props$classes3; - listProps = { - className: classnames__WEBPACK_IMPORTED_MODULE_3___default()( - (_this$props$classes3 = _this.props.classes) === null || - _this$props$classes3 === void 0 - ? void 0 - : _this$props$classes3.list, - "slick-list" - ) - }; - innerSliderProps = { - className: className - }; - } - return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement( + } + return /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement( + "div", + innerSliderProps, + !_this.props.unslick ? prevArrow : "", + /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement( "div", - innerSliderProps, - !_this.props.unslick ? prevArrow : "", + _extends( + { + ref: _this.listRefHandler + }, + listProps + ), /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement( - "div", + _track__WEBPACK_IMPORTED_MODULE_5__["Track"], _extends( { - ref: _this.listRefHandler + ref: _this.trackRefHandler }, - listProps + trackProps ), - /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement( - _track__WEBPACK_IMPORTED_MODULE_5__["Track"], - _extends( - { - ref: _this.trackRefHandler - }, - trackProps - ), - _this.props.children - ) - ), - !_this.props.unslick ? nextArrow : "", - !_this.props.unslick ? dots : "" - ); - } - ); + _this.props.children + ) + ), + !_this.props.unslick ? nextArrow : "", + !_this.props.unslick ? dots : "" + ); + }); _this.list = null; _this.track = null; _this.state = _objectSpread( @@ -2177,7 +1991,8 @@ ); return _this; } - _createClass(InnerSlider, [ + _inherits(InnerSlider, _React$Component); + return _createClass(InnerSlider, [ { key: "didPropsChange", value: function didPropsChange(prevProps) { @@ -2215,7 +2030,6 @@ } } ]); - return InnerSlider; })(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component); /***/ @@ -2704,44 +2518,61 @@ "use strict"; var hasOwn = {}.hasOwnProperty; - var nativeCodeString = "[native code]"; function classNames() { - var classes = []; + var classes = ""; for (var i = 0; i < arguments.length; i++) { var arg = arguments[i]; - if (!arg) continue; + if (arg) { + classes = appendClass(classes, parseValue(arg)); + } + } - var argType = typeof arg; + return classes; + } - if (argType === "string" || argType === "number") { - classes.push(arg); - } else if (Array.isArray(arg)) { - if (arg.length) { - var inner = classNames.apply(null, arg); - if (inner) { - classes.push(inner); - } - } - } else if (argType === "object") { - if ( - arg.toString !== Object.prototype.toString && - !arg.toString.toString().includes("[native code]") - ) { - classes.push(arg.toString()); - continue; - } + function parseValue(arg) { + if (typeof arg === "string" || typeof arg === "number") { + return arg; + } - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } + if (typeof arg !== "object") { + return ""; + } + + if (Array.isArray(arg)) { + return classNames.apply(null, arg); + } + + if ( + arg.toString !== Object.prototype.toString && + !arg.toString.toString().includes("[native code]") + ) { + return arg.toString(); + } + + var classes = ""; + + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes = appendClass(classes, key); } } - return classes.join(" "); + return classes; + } + + function appendClass(value, newClass) { + if (!newClass) { + return value; + } + + if (value) { + return value + " " + newClass; + } + + return value + newClass; } if (true && module.exports) { @@ -3009,52 +2840,82 @@ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n( react__WEBPACK_IMPORTED_MODULE_0__ ); - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); + function _typeof(o) { + "@babel/helpers - typeof"; + return ( + (_typeof = + "function" == typeof Symbol && "symbol" == typeof Symbol.iterator + ? function(o) { + return typeof o; + } + : function(o) { + return o && + "function" == typeof Symbol && + o.constructor === Symbol && + o !== Symbol.prototype + ? "symbol" + : typeof o; + }), + _typeof(o) + ); + } + function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); + function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) + e, + r, + Object.getOwnPropertyDescriptor(t, r) ); }); } - return target; + return e; } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; + function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); + } + function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; + } + function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); } function clamp(number, lowerBound, upperBound) { @@ -4048,197 +3909,190 @@ 8 ); - function _typeof(obj) { + function _typeof(o) { "@babel/helpers - typeof"; return ( (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator - ? function(obj) { - return typeof obj; + ? function(o) { + return typeof o; } - : function(obj) { - return obj && + : function(o) { + return o && "function" == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype + o.constructor === Symbol && + o !== Symbol.prototype ? "symbol" - : typeof obj; + : typeof o; }), - _typeof(obj) + _typeof(o) ); } function _extends() { - _extends = Object.assign - ? Object.assign.bind() - : function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } + return ( + (_extends = Object.assign + ? Object.assign.bind() + : function(n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) + ({}.hasOwnProperty.call(t, r) && (n[r] = t[r])); } - } - return target; - }; - return _extends.apply(this, arguments); + return n; + }), + _extends.apply(null, arguments) + ); } - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { + function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); - } } - function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); + function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + (o.enumerable = o.enumerable || !1), + (o.configurable = !0), + "value" in o && (o.writable = !0), + Object.defineProperty(e, _toPropertyKey(o.key), o); } } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError( - "Super expression must either be null or a function" - ); - } - subClass.prototype = Object.create( - superClass && superClass.prototype, - { - constructor: { - value: subClass, - writable: true, - configurable: true - } - } + function _createClass(e, r, t) { + return ( + r && _defineProperties(e.prototype, r), + t && _defineProperties(e, t), + Object.defineProperty(e, "prototype", { writable: !1 }), + e ); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) _setPrototypeOf(subClass, superClass); - } - function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); } - function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return _possibleConstructorReturn(this, result); - }; + function _callSuper(t, o, e) { + return ( + (o = _getPrototypeOf(o)), + _possibleConstructorReturn( + t, + _isNativeReflectConstruct() + ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) + : o.apply(t, e) + ) + ); } - function _possibleConstructorReturn(self, call) { - if ( - call && - (_typeof(call) === "object" || typeof call === "function") - ) { - return call; - } else if (call !== void 0) { + function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError( "Derived constructors may only return object or undefined" ); - } - return _assertThisInitialized(self); + return _assertThisInitialized(t); } - function _assertThisInitialized(self) { - if (self === void 0) { + function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); - } - return self; + return e; } function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) - return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call( + var t = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function() {}) ); - return true; - } catch (e) { - return false; - } + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); } - function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); + function _getPrototypeOf(t) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf.bind() + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + _getPrototypeOf(t) + ); } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); + function _inherits(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 } + })), + Object.defineProperty(t, "prototype", { writable: !1 }), + e && _setPrototypeOf(t, e); + } + function _setPrototypeOf(t, e) { + return ( + (_setPrototypeOf = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function(t, e) { + return (t.__proto__ = e), t; + }), + _setPrototypeOf(t, e) + ); + } + function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); + function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) + e, + r, + Object.getOwnPropertyDescriptor(t, r) ); }); } - return target; + return e; } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; + function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); + } + function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; + } + function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); } // given specifications/props for a slide, fetch all the classes that need to be applied to the slide var getSlideClasses = function getSlideClasses(spec) { - var _spec$classes, _spec$classes2, _ref; + var _spec$classes, _spec$classes2; var slickActive, slickCenter, slickCloned; var centerOffset, index; if (spec.rtl) { @@ -4270,15 +4124,14 @@ focusedSlide = spec.targetSlide; } var slickCurrent = index === focusedSlide; - return ( - (_ref = { - "slick-slide": true, - "slick-active": slickActive, - "slick-center": slickCenter, - "slick-cloned": slickCloned - }), + return _defineProperty( _defineProperty( - _ref, + { + "slick-slide": true, + "slick-active": slickActive, + "slick-center": slickCenter, + "slick-cloned": slickCloned + }, "slick-cloned ".concat( (_spec$classes = spec.classes) === null || _spec$classes === void 0 @@ -4291,8 +4144,8 @@ ? void 0 : _spec$classes2.cloned) ), - _defineProperty(_ref, "slick-current", slickCurrent), - _ref + "slick-current", + slickCurrent ); }; var getSlideStyle = function getSlideStyle(spec) { @@ -4550,8 +4403,6 @@ } }; var Track = /*#__PURE__*/ (function(_React$PureComponent) { - _inherits(Track, _React$PureComponent); - var _super = _createSuper(Track); function Track() { var _this; _classCallCheck(this, Track); @@ -4562,18 +4413,15 @@ ) { args[_key] = arguments[_key]; } - _this = _super.call.apply(_super, [this].concat(args)); - _defineProperty(_assertThisInitialized(_this), "node", null); - _defineProperty( - _assertThisInitialized(_this), - "handleRef", - function(ref) { - _this.node = ref; - } - ); + _this = _callSuper(this, Track, [].concat(args)); + _defineProperty(_this, "node", null); + _defineProperty(_this, "handleRef", function(ref) { + _this.node = ref; + }); return _this; } - _createClass(Track, [ + _inherits(Track, _React$PureComponent); + return _createClass(Track, [ { key: "render", value: function render() { @@ -4609,7 +4457,6 @@ } } ]); - return Track; })(react__WEBPACK_IMPORTED_MODULE_0___default.a.PureComponent); /***/ @@ -4641,176 +4488,170 @@ 8 ); - function _typeof(obj) { + function _typeof(o) { "@babel/helpers - typeof"; return ( (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator - ? function(obj) { - return typeof obj; + ? function(o) { + return typeof o; } - : function(obj) { - return obj && + : function(o) { + return o && "function" == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype + o.constructor === Symbol && + o !== Symbol.prototype ? "symbol" - : typeof obj; + : typeof o; }), - _typeof(obj) + _typeof(o) ); } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); + function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); + function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) + e, + r, + Object.getOwnPropertyDescriptor(t, r) ); }); } - return target; + return e; } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; + function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); } - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { + function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); - } } - function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); + function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + (o.enumerable = o.enumerable || !1), + (o.configurable = !0), + "value" in o && (o.writable = !0), + Object.defineProperty(e, _toPropertyKey(o.key), o); } } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError( - "Super expression must either be null or a function" - ); - } - subClass.prototype = Object.create( - superClass && superClass.prototype, - { - constructor: { - value: subClass, - writable: true, - configurable: true - } - } + function _createClass(e, r, t) { + return ( + r && _defineProperties(e.prototype, r), + t && _defineProperties(e, t), + Object.defineProperty(e, "prototype", { writable: !1 }), + e ); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) _setPrototypeOf(subClass, superClass); } - function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); + function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; } - function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return _possibleConstructorReturn(this, result); - }; + function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); } - function _possibleConstructorReturn(self, call) { - if ( - call && - (_typeof(call) === "object" || typeof call === "function") - ) { - return call; - } else if (call !== void 0) { + function _callSuper(t, o, e) { + return ( + (o = _getPrototypeOf(o)), + _possibleConstructorReturn( + t, + _isNativeReflectConstruct() + ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) + : o.apply(t, e) + ) + ); + } + function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError( "Derived constructors may only return object or undefined" ); - } - return _assertThisInitialized(self); + return _assertThisInitialized(t); } - function _assertThisInitialized(self) { - if (self === void 0) { + function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); - } - return self; + return e; } function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) - return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call( + var t = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function() {}) ); - return true; - } catch (e) { - return false; - } + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); } - function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); + function _getPrototypeOf(t) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf.bind() + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + _getPrototypeOf(t) + ); + } + function _inherits(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 } + })), + Object.defineProperty(t, "prototype", { writable: !1 }), + e && _setPrototypeOf(t, e); + } + function _setPrototypeOf(t, e) { + return ( + (_setPrototypeOf = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function(t, e) { + return (t.__proto__ = e), t; + }), + _setPrototypeOf(t, e) + ); } var getDotCount = function getDotCount(spec) { @@ -4826,13 +4667,12 @@ return dots; }; var Dots = /*#__PURE__*/ (function(_React$PureComponent) { - _inherits(Dots, _React$PureComponent); - var _super = _createSuper(Dots); function Dots() { _classCallCheck(this, Dots); - return _super.apply(this, arguments); + return _callSuper(this, Dots, arguments); } - _createClass(Dots, [ + _inherits(Dots, _React$PureComponent); + return _createClass(Dots, [ { key: "clickHandler", value: function clickHandler(options, e) { @@ -4945,7 +4785,6 @@ } } ]); - return Dots; })(react__WEBPACK_IMPORTED_MODULE_0___default.a.PureComponent); /***/ @@ -4984,202 +4823,194 @@ 8 ); - function _typeof(obj) { + function _typeof(o) { "@babel/helpers - typeof"; return ( (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator - ? function(obj) { - return typeof obj; + ? function(o) { + return typeof o; } - : function(obj) { - return obj && + : function(o) { + return o && "function" == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype + o.constructor === Symbol && + o !== Symbol.prototype ? "symbol" - : typeof obj; + : typeof o; }), - _typeof(obj) + _typeof(o) ); } function _extends() { - _extends = Object.assign - ? Object.assign.bind() - : function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } + return ( + (_extends = Object.assign + ? Object.assign.bind() + : function(n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) + ({}.hasOwnProperty.call(t, r) && (n[r] = t[r])); } - } - return target; - }; - return _extends.apply(this, arguments); + return n; + }), + _extends.apply(null, arguments) + ); } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); + function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); + function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) + e, + r, + Object.getOwnPropertyDescriptor(t, r) ); }); } - return target; + return e; } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; + function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); } - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { + function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); - } } - function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); + function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + (o.enumerable = o.enumerable || !1), + (o.configurable = !0), + "value" in o && (o.writable = !0), + Object.defineProperty(e, _toPropertyKey(o.key), o); } } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; - } - function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError( - "Super expression must either be null or a function" - ); - } - subClass.prototype = Object.create( - superClass && superClass.prototype, - { - constructor: { - value: subClass, - writable: true, - configurable: true - } - } + function _createClass(e, r, t) { + return ( + r && _defineProperties(e.prototype, r), + t && _defineProperties(e, t), + Object.defineProperty(e, "prototype", { writable: !1 }), + e ); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) _setPrototypeOf(subClass, superClass); } - function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); + function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; } - function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return _possibleConstructorReturn(this, result); - }; + function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); } - function _possibleConstructorReturn(self, call) { - if ( - call && - (_typeof(call) === "object" || typeof call === "function") - ) { - return call; - } else if (call !== void 0) { + function _callSuper(t, o, e) { + return ( + (o = _getPrototypeOf(o)), + _possibleConstructorReturn( + t, + _isNativeReflectConstruct() + ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) + : o.apply(t, e) + ) + ); + } + function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError( "Derived constructors may only return object or undefined" ); - } - return _assertThisInitialized(self); + return _assertThisInitialized(t); } - function _assertThisInitialized(self) { - if (self === void 0) { + function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); - } - return self; + return e; } function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) - return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call( + var t = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function() {}) ); - return true; - } catch (e) { - return false; - } + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); } - function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); + function _getPrototypeOf(t) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf.bind() + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + _getPrototypeOf(t) + ); + } + function _inherits(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 } + })), + Object.defineProperty(t, "prototype", { writable: !1 }), + e && _setPrototypeOf(t, e); + } + function _setPrototypeOf(t, e) { + return ( + (_setPrototypeOf = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function(t, e) { + return (t.__proto__ = e), t; + }), + _setPrototypeOf(t, e) + ); } var PrevArrow = /*#__PURE__*/ (function(_React$PureComponent) { - _inherits(PrevArrow, _React$PureComponent); - var _super = _createSuper(PrevArrow); function PrevArrow() { _classCallCheck(this, PrevArrow); - return _super.apply(this, arguments); + return _callSuper(this, PrevArrow, arguments); } - _createClass(PrevArrow, [ + _inherits(PrevArrow, _React$PureComponent); + return _createClass(PrevArrow, [ { key: "clickHandler", value: function clickHandler(options, e) { @@ -5269,16 +5100,14 @@ } } ]); - return PrevArrow; })(react__WEBPACK_IMPORTED_MODULE_0___default.a.PureComponent); var NextArrow = /*#__PURE__*/ (function(_React$PureComponent2) { - _inherits(NextArrow, _React$PureComponent2); - var _super2 = _createSuper(NextArrow); function NextArrow() { _classCallCheck(this, NextArrow); - return _super2.apply(this, arguments); + return _callSuper(this, NextArrow, arguments); } - _createClass(NextArrow, [ + _inherits(NextArrow, _React$PureComponent2); + return _createClass(NextArrow, [ { key: "clickHandler", value: function clickHandler(options, e) { @@ -5370,7 +5199,6 @@ } } ]); - return NextArrow; })(react__WEBPACK_IMPORTED_MODULE_0___default.a.PureComponent); /***/ diff --git a/dist/react-slick.js.map b/dist/react-slick.js.map index 0570b5d56..792f82b4d 100644 --- a/dist/react-slick.js.map +++ b/dist/react-slick.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://Slider/webpack/universalModuleDefinition","webpack://Slider/webpack/bootstrap","webpack://Slider/./src/index.js","webpack://Slider/./src/slider.js","webpack://Slider/external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack://Slider/./src/inner-slider.js","webpack://Slider/./src/initial-state.js","webpack://Slider/./node_modules/lodash.debounce/index.js","webpack://Slider/(webpack)/buildin/global.js","webpack://Slider/./node_modules/classnames/index.js","webpack://Slider/./src/utils/innerSliderUtils.js","webpack://Slider/./src/track.js","webpack://Slider/./src/dots.js","webpack://Slider/./src/arrows.js","webpack://Slider/./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js","webpack://Slider/./node_modules/json2mq/index.js","webpack://Slider/./node_modules/string-convert/camel2hyphen.js","webpack://Slider/./src/default-props.js","webpack://Slider/./node_modules/enquire.js/src/index.js","webpack://Slider/./node_modules/enquire.js/src/MediaQueryDispatch.js","webpack://Slider/./node_modules/enquire.js/src/MediaQuery.js","webpack://Slider/./node_modules/enquire.js/src/QueryHandler.js","webpack://Slider/./node_modules/enquire.js/src/Util.js"],"names":["Slider","enquire","canUseDOM","require","props","ref","innerSlider","slickPrev","slickNext","slide","dontAnimate","slickGoTo","pause","autoPlay","state","breakpoint","_responsiveMediaHandlers","query","handler","register","push","responsive","breakpoints","map","breakpt","sort","x","y","forEach","index","bQuery","json2mq","minWidth","maxWidth","media","setState","slice","obj","unregister","settings","newProps","filter","resp","defaultProps","centerMode","slidesToScroll","process","console","warn","fade","slidesToShow","children","React","Children","toArray","child","trim","variableWidth","rows","slidesPerRow","newChildren","currentWidth","i","length","newSlide","j","row","k","style","width","cloneElement","key","tabIndex","display","className","unslick","innerSliderRefHandler","Component","InnerSlider","list","track","adaptiveHeight","elem","querySelector","currentSlide","height","getHeight","onInit","lazyLoad","slidesToLoad","getOnDemandLazySlides","prevState","lazyLoadedList","concat","onLazyLoad","spec","listRef","trackRef","updateState","adaptHeight","autoplay","lazyLoadTimer","setInterval","progressiveLazyLoad","ro","ResizeObserver","animating","onWindowResized","callbackTimers","setTimeout","speed","observe","document","querySelectorAll","Array","prototype","call","onfocus","pauseOnFocus","onSlideFocus","onblur","onSlideBlur","window","addEventListener","attachEvent","animationEndCallback","clearTimeout","clearInterval","timer","removeEventListener","detachEvent","autoplayTimer","disconnect","prevProps","checkImagesLoad","onReInit","setTrackStyle","didPropsChange","count","changeSlide","message","debouncedResize","cancel","debounce","resizeWindow","isTrackMounted","Boolean","node","callback","updatedState","initializedState","slideIndex","targetLeft","getTrackLeft","left","trackStyle","getTrackCSS","trackWidth","trackLeft","childrenWidths","preClones","getPreClones","slideCount","postClones","getPostClones","childrenCount","slideWidth","images","imagesCount","loadedCount","image","onclick","parentNode","focus","prevClickHandler","e","onload","onerror","onLazyLoadError","indexOf","asNavFor","beforeChange","afterChange","slideHandler","useCSS","nextState","value","waitForAnimate","asNavForIndex","firstBatch","options","targetSlide","focusOnSelect","nodes","clickable","stopPropagation","preventDefault","dir","keyHandler","accessibility","rtl","event","returnValue","ontouchmove","verticalSwiping","disableBodyScroll","swipeStart","swipe","draggable","swipeMove","swipeEnd","triggerSlideHandler","undefined","enableBodyScroll","Number","isNaN","nextIndex","canGoNext","playType","autoplaying","play","autoplaySpeed","pauseType","classnames","classes","slider","vertical","trackProps","extractObject","pauseOnHover","onMouseEnter","onTrackOver","onMouseLeave","onTrackLeave","onMouseOver","selectHandler","dots","dotProps","pauseOnDotsHover","clickHandler","onDotsLeave","onDotsOver","prevArrow","nextArrow","arrowProps","arrows","verticalHeightStyle","listHeight","centerPaddingStyle","padding","centerPadding","listStyle","touchMove","listProps","onClick","onMouseDown","onMouseMove","dragging","onMouseUp","onTouchStart","onTouchMove","onTouchEnd","touchEnd","onTouchCancel","onKeyDown","innerSliderProps","listRefHandler","trackRefHandler","initialState","initialSlide","ssrState","ssrInit","Object","keys","hasOwnProperty","currentDirection","currentLeft","direction","edgeDragged","initialized","listWidth","scrolling","slideHeight","swipeLeft","swiped","swiping","touchObject","startX","startY","curX","curY","clamp","number","lowerBound","upperBound","Math","max","min","safePreventDefault","passiveEvents","includes","_reactName","onDemandSlides","startIndex","lazyStartIndex","endIndex","lazyEndIndex","getRequiredLazySlides","requiredSlides","lazySlidesOnLeft","lazySlidesOnRight","floor","parseInt","getWidth","offsetWidth","offsetHeight","getSwipeDirection","xDist","yDist","r","swipeAngle","atan2","round","PI","abs","canGo","infinite","newObject","listNode","ceil","trackNode","centerPaddingAdj","animationSlide","finalSlide","animationLeft","finalLeft","getTrackAnimateCSS","indexOffset","previousInt","slideOffset","unevenOffset","previousTargetSlide","siblingDirection","target","tagName","match","keyCode","type","touches","pageX","clientX","pageY","clientY","swipeToSlide","edgeFriction","onEdge","swipeEvent","curLeft","swipeLength","sqrt","pow","verticalSwipeLength","positionOffset","dotCount","swipeDirection","touchSwipeLength","touchThreshold","onSwipe","minSwipe","activeSlide","getSlideCount","checkNavigable","getNavigableIndexes","counter","indexes","navigables","prevNavigable","n","centerOffset","swipedSlide","slickList","slides","from","every","offsetLeft","offsetTop","currentIndex","slidesTraversed","dataset","checkSpecKeys","keysArray","reduce","error","trackHeight","trackChildren","getTotalSlides","opacity","transition","WebkitTransition","useTransform","WebkitTransform","transform","msTransform","marginLeft","marginTop","cssEase","verticalOffset","slidesToOffset","targetSlideIndex","trackElem","childNodes","slidesOnRight","slidesOnLeft","right","createElement","getSlideClasses","slickActive","slickCenter","slickCloned","focusedSlide","slickCurrent","cloned","getSlideStyle","position","top","getKey","fallbackKey","shouldOmitLazy","omitLazyForSlides","renderSlides","preCloneSlides","postCloneSlides","childOnClickOptions","childStyle","slideClass","slideClasses","outline","preCloneNo","reverse","Track","mouseEvents","handleRef","PureComponent","getDotCount","Dots","_rightBound","rightBound","_leftBound","leftBound","dot","activeDot","dotOptions","bind","customPaging","appendDots","dotsClass","PrevArrow","prevClasses","prevHandler","disabled","prevArrowProps","arrow","prev","customProps","NextArrow","nextClasses","nextHandler","nextArrowProps","next","easing"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QAC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AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,OAAO,YAAY;AAC9B,WAAW,QAAQ;AACnB;AACA,WAAW,OAAO;AAClB;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,8CAA8C,kBAAkB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxXA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB;AAChB;;AAEA;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,KAAK,KAA6B;AAClC;AACA;AACA,EAAE,UAAU,IAA4E;AACxF;AACA,EAAE,iCAAqB,EAAE,mCAAE;AAC3B;AACA,GAAG;AAAA,oGAAC;AACJ,EAAE,MAAM,EAEN;AACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3DyB;AAEnB,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E;AACjB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA,mBAAmB,EAAE;AACrB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB,mBAAmB,EAAE;AACrB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,EAAE;AACrB,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B,mBAAmB,EAAE;AACrB,qBAAqB;AACrB;AACA;AACA,iCAAiC,YAAY;AAC7C,mDAAmD,gBAAgB;AACnE;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,gCAAgC,6BAA6B,EAAE,aAAa;AAC5G,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,qDAAqD,mCAAmC,EAAE;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA,6CAA6C,gBAAgB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B,WAAW,UAAU;AACrB,aAAa;AACb;AACA;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,6CAA6C,yBAAyB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,mBAAmB;AAC9B;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,kCAAkC,iEAAiE;AACnG;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,8CAA8C;AAC9C,CAAC;AACD;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,2CAA2C;AAC7E;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC;AACA,eAAe,yBAAyB;AACxC;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAEc,oEAAK,EAAC;;;;;;;;AC/5BrB,mBAAmB,mBAAO,CAAC,EAA6B;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA,yB;;;;;;AClDA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA,8B;;;;;;;ACRA;AAAA;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ACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;ACpFA,mBAAmB,mBAAO,CAAC,EAAgB;AAC3C,WAAW,mBAAO,CAAC,EAAQ;;AAE3B;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,SAAS;AACxB,eAAe,SAAS;AACxB,eAAe,QAAQ;AACvB;AACA;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,iCAAiC;AACjC,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;;;;;;AC5FA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU,YAAY;AACtB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA","file":"react-slick.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Slider\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"Slider\"] = factory(root[\"React\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__2__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","import Slider from \"./slider\";\n\nexport default Slider;\n","\"use strict\";\n\nimport React from \"react\";\nimport { InnerSlider } from \"./inner-slider\";\nimport json2mq from \"json2mq\";\nimport defaultProps from \"./default-props\";\nimport { canUseDOM } from \"./utils/innerSliderUtils\";\nconst enquire = canUseDOM() && require(\"enquire.js\");\n\nexport default class Slider extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n breakpoint: null\n };\n this._responsiveMediaHandlers = [];\n }\n\n innerSliderRefHandler = ref => (this.innerSlider = ref);\n\n media(query, handler) {\n // javascript handler for css media query\n enquire.register(query, handler);\n this._responsiveMediaHandlers.push({ query, handler });\n }\n\n // handles responsive breakpoints\n componentDidMount() {\n // performance monitoring\n //if (process.env.NODE_ENV !== 'production') {\n //const { whyDidYouUpdate } = require('why-did-you-update')\n //whyDidYouUpdate(React)\n //}\n if (this.props.responsive) {\n let breakpoints = this.props.responsive.map(\n breakpt => breakpt.breakpoint\n );\n // sort them in increasing order of their numerical value\n breakpoints.sort((x, y) => x - y);\n\n breakpoints.forEach((breakpoint, index) => {\n // media query for each breakpoint\n let bQuery;\n if (index === 0) {\n bQuery = json2mq({ minWidth: 0, maxWidth: breakpoint });\n } else {\n bQuery = json2mq({\n minWidth: breakpoints[index - 1] + 1,\n maxWidth: breakpoint\n });\n }\n // when not using server side rendering\n canUseDOM() &&\n this.media(bQuery, () => {\n this.setState({ breakpoint: breakpoint });\n });\n });\n\n // Register media query for full screen. Need to support resize from small to large\n // convert javascript object to media query string\n let query = json2mq({ minWidth: breakpoints.slice(-1)[0] });\n\n canUseDOM() &&\n this.media(query, () => {\n this.setState({ breakpoint: null });\n });\n }\n }\n\n componentWillUnmount() {\n this._responsiveMediaHandlers.forEach(function(obj) {\n enquire.unregister(obj.query, obj.handler);\n });\n }\n\n slickPrev = () => this.innerSlider.slickPrev();\n\n slickNext = () => this.innerSlider.slickNext();\n\n slickGoTo = (slide, dontAnimate = false) =>\n this.innerSlider.slickGoTo(slide, dontAnimate);\n\n slickPause = () => this.innerSlider.pause(\"paused\");\n\n slickPlay = () => this.innerSlider.autoPlay(\"play\");\n\n render() {\n var settings;\n var newProps;\n if (this.state.breakpoint) {\n newProps = this.props.responsive.filter(\n resp => resp.breakpoint === this.state.breakpoint\n );\n settings =\n newProps[0].settings === \"unslick\"\n ? \"unslick\"\n : { ...defaultProps, ...this.props, ...newProps[0].settings };\n } else {\n settings = { ...defaultProps, ...this.props };\n }\n\n // force scrolling by one if centerMode is on\n if (settings.centerMode) {\n if (\n settings.slidesToScroll > 1 &&\n process.env.NODE_ENV !== \"production\"\n ) {\n console.warn(\n `slidesToScroll should be equal to 1 in centerMode, you are using ${settings.slidesToScroll}`\n );\n }\n settings.slidesToScroll = 1;\n }\n // force showing one slide and scrolling by one if the fade mode is on\n if (settings.fade) {\n if (settings.slidesToShow > 1 && process.env.NODE_ENV !== \"production\") {\n console.warn(\n `slidesToShow should be equal to 1 when fade is true, you're using ${settings.slidesToShow}`\n );\n }\n if (\n settings.slidesToScroll > 1 &&\n process.env.NODE_ENV !== \"production\"\n ) {\n console.warn(\n `slidesToScroll should be equal to 1 when fade is true, you're using ${settings.slidesToScroll}`\n );\n }\n settings.slidesToShow = 1;\n settings.slidesToScroll = 1;\n }\n\n // makes sure that children is an array, even when there is only 1 child\n let children = React.Children.toArray(this.props.children);\n\n // Children may contain false or null, so we should filter them\n // children may also contain string filled with spaces (in certain cases where we use jsx strings)\n children = children.filter(child => {\n if (typeof child === \"string\") {\n return !!child.trim();\n }\n return !!child;\n });\n\n // rows and slidesPerRow logic is handled here\n if (\n settings.variableWidth &&\n (settings.rows > 1 || settings.slidesPerRow > 1)\n ) {\n console.warn(\n `variableWidth is not supported in case of rows > 1 or slidesPerRow > 1`\n );\n settings.variableWidth = false;\n }\n let newChildren = [];\n let currentWidth = null;\n for (\n let i = 0;\n i < children.length;\n i += settings.rows * settings.slidesPerRow\n ) {\n let newSlide = [];\n for (\n let j = i;\n j < i + settings.rows * settings.slidesPerRow;\n j += settings.slidesPerRow\n ) {\n let row = [];\n for (let k = j; k < j + settings.slidesPerRow; k += 1) {\n if (settings.variableWidth && children[k].props.style) {\n currentWidth = children[k].props.style.width;\n }\n if (k >= children.length) break;\n row.push(\n React.cloneElement(children[k], {\n key: 100 * i + 10 * j + k,\n tabIndex: -1,\n style: {\n width: `${100 / settings.slidesPerRow}%`,\n display: \"inline-block\"\n }\n })\n );\n }\n newSlide.push(
{row}
);\n }\n if (settings.variableWidth) {\n newChildren.push(\n
\n {newSlide}\n
\n );\n } else {\n newChildren.push(
{newSlide}
);\n }\n }\n\n if (settings === \"unslick\") {\n const className = \"regular slider \" + (this.props.className || \"\");\n return
{children}
;\n } else if (newChildren.length <= settings.slidesToShow) {\n settings.unslick = true;\n }\n return (\n <>\n \n {newChildren}\n \n \n );\n }\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__2__;","\"use strict\";\n\nimport React from \"react\";\nimport initialState from \"./initial-state\";\nimport debounce from \"lodash.debounce\";\nimport classnames from \"classnames\";\nimport {\n getOnDemandLazySlides,\n extractObject,\n initializedState,\n getHeight,\n canGoNext,\n slideHandler,\n changeSlide,\n keyHandler,\n swipeStart,\n swipeMove,\n swipeEnd,\n getPreClones,\n getPostClones,\n getTrackLeft,\n getTrackCSS\n} from \"./utils/innerSliderUtils\";\n\nimport { Track } from \"./track\";\nimport { Dots } from \"./dots\";\nimport { PrevArrow, NextArrow } from \"./arrows\";\nimport ResizeObserver from \"resize-observer-polyfill\";\n\nexport class InnerSlider extends React.Component {\n constructor(props) {\n super(props);\n this.list = null;\n this.track = null;\n this.state = {\n ...initialState,\n currentSlide: this.props.initialSlide,\n slideCount: React.Children.count(this.props.children)\n };\n this.callbackTimers = [];\n this.clickable = true;\n this.debouncedResize = null;\n const ssrState = this.ssrInit();\n this.state = { ...this.state, ...ssrState };\n }\n listRefHandler = ref => (this.list = ref);\n trackRefHandler = ref => (this.track = ref);\n adaptHeight = () => {\n if (this.props.adaptiveHeight && this.list) {\n const elem = this.list.querySelector(\n `[data-index=\"${this.state.currentSlide}\"]`\n );\n this.list.style.height = getHeight(elem) + \"px\";\n }\n };\n componentDidMount = () => {\n this.props.onInit && this.props.onInit();\n if (this.props.lazyLoad) {\n let slidesToLoad = getOnDemandLazySlides({\n ...this.props,\n ...this.state\n });\n if (slidesToLoad.length > 0) {\n this.setState(prevState => ({\n lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)\n }));\n if (this.props.onLazyLoad) {\n this.props.onLazyLoad(slidesToLoad);\n }\n }\n }\n let spec = { listRef: this.list, trackRef: this.track, ...this.props };\n this.updateState(spec, true, () => {\n this.adaptHeight();\n this.props.autoplay && this.autoPlay(\"update\");\n });\n if (this.props.lazyLoad === \"progressive\") {\n this.lazyLoadTimer = setInterval(this.progressiveLazyLoad, 1000);\n }\n this.ro = new ResizeObserver(() => {\n if (this.state.animating) {\n this.onWindowResized(false); // don't set trackStyle hence don't break animation\n this.callbackTimers.push(\n setTimeout(() => this.onWindowResized(), this.props.speed)\n );\n } else {\n this.onWindowResized();\n }\n });\n this.ro.observe(this.list);\n document.querySelectorAll &&\n Array.prototype.forEach.call(\n document.querySelectorAll(\".slick-slide\"),\n slide => {\n slide.onfocus = this.props.pauseOnFocus ? this.onSlideFocus : null;\n slide.onblur = this.props.pauseOnFocus ? this.onSlideBlur : null;\n }\n );\n if (window.addEventListener) {\n window.addEventListener(\"resize\", this.onWindowResized);\n } else {\n window.attachEvent(\"onresize\", this.onWindowResized);\n }\n };\n componentWillUnmount = () => {\n if (this.animationEndCallback) {\n clearTimeout(this.animationEndCallback);\n }\n if (this.lazyLoadTimer) {\n clearInterval(this.lazyLoadTimer);\n }\n if (this.callbackTimers.length) {\n this.callbackTimers.forEach(timer => clearTimeout(timer));\n this.callbackTimers = [];\n }\n if (window.addEventListener) {\n window.removeEventListener(\"resize\", this.onWindowResized);\n } else {\n window.detachEvent(\"onresize\", this.onWindowResized);\n }\n if (this.autoplayTimer) {\n clearInterval(this.autoplayTimer);\n }\n this.ro.disconnect();\n };\n\n didPropsChange(prevProps) {\n let setTrackStyle = false;\n for (let key of Object.keys(this.props)) {\n if (!prevProps.hasOwnProperty(key)) {\n setTrackStyle = true;\n break;\n }\n if (\n typeof prevProps[key] === \"object\" ||\n typeof prevProps[key] === \"function\"\n ) {\n continue;\n }\n if (prevProps[key] !== this.props[key]) {\n setTrackStyle = true;\n break;\n }\n }\n return (\n setTrackStyle ||\n React.Children.count(this.props.children) !==\n React.Children.count(prevProps.children)\n );\n }\n\n componentDidUpdate = prevProps => {\n this.checkImagesLoad();\n this.props.onReInit && this.props.onReInit();\n if (this.props.lazyLoad) {\n let slidesToLoad = getOnDemandLazySlides({\n ...this.props,\n ...this.state\n });\n if (slidesToLoad.length > 0) {\n this.setState(prevState => ({\n lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)\n }));\n if (this.props.onLazyLoad) {\n this.props.onLazyLoad(slidesToLoad);\n }\n }\n }\n // if (this.props.onLazyLoad) {\n // this.props.onLazyLoad([leftMostSlide])\n // }\n this.adaptHeight();\n let spec = {\n listRef: this.list,\n trackRef: this.track,\n ...this.props,\n ...this.state\n };\n const setTrackStyle = this.didPropsChange(prevProps);\n setTrackStyle &&\n this.updateState(spec, setTrackStyle, () => {\n if (\n this.state.currentSlide >= React.Children.count(this.props.children)\n ) {\n this.changeSlide({\n message: \"index\",\n index:\n React.Children.count(this.props.children) -\n this.props.slidesToShow,\n currentSlide: this.state.currentSlide\n });\n }\n if (this.props.autoplay) {\n this.autoPlay(\"update\");\n } else {\n this.pause(\"paused\");\n }\n });\n };\n onWindowResized = setTrackStyle => {\n if (this.debouncedResize) this.debouncedResize.cancel();\n this.debouncedResize = debounce(() => this.resizeWindow(setTrackStyle), 50);\n this.debouncedResize();\n };\n resizeWindow = (setTrackStyle = true) => {\n const isTrackMounted = Boolean(this.track && this.track.node);\n // prevent warning: setting state on unmounted component (server side rendering)\n if (!isTrackMounted) return;\n let spec = {\n listRef: this.list,\n trackRef: this.track,\n ...this.props,\n ...this.state\n };\n this.updateState(spec, setTrackStyle, () => {\n if (this.props.autoplay) this.autoPlay(\"update\");\n else this.pause(\"paused\");\n });\n // animating state should be cleared while resizing, otherwise autoplay stops working\n this.setState({\n animating: false\n });\n clearTimeout(this.animationEndCallback);\n delete this.animationEndCallback;\n };\n updateState = (spec, setTrackStyle, callback) => {\n let updatedState = initializedState(spec);\n spec = { ...spec, ...updatedState, slideIndex: updatedState.currentSlide };\n let targetLeft = getTrackLeft(spec);\n spec = { ...spec, left: targetLeft };\n let trackStyle = getTrackCSS(spec);\n if (\n setTrackStyle ||\n React.Children.count(this.props.children) !==\n React.Children.count(spec.children)\n ) {\n updatedState[\"trackStyle\"] = trackStyle;\n }\n this.setState(updatedState, callback);\n };\n\n ssrInit = () => {\n if (this.props.variableWidth) {\n let trackWidth = 0,\n trackLeft = 0;\n let childrenWidths = [];\n let preClones = getPreClones({\n ...this.props,\n ...this.state,\n slideCount: this.props.children.length\n });\n let postClones = getPostClones({\n ...this.props,\n ...this.state,\n slideCount: this.props.children.length\n });\n this.props.children.forEach(child => {\n childrenWidths.push(child.props.style.width);\n trackWidth += child.props.style.width;\n });\n for (let i = 0; i < preClones; i++) {\n trackLeft += childrenWidths[childrenWidths.length - 1 - i];\n trackWidth += childrenWidths[childrenWidths.length - 1 - i];\n }\n for (let i = 0; i < postClones; i++) {\n trackWidth += childrenWidths[i];\n }\n for (let i = 0; i < this.state.currentSlide; i++) {\n trackLeft += childrenWidths[i];\n }\n let trackStyle = {\n width: trackWidth + \"px\",\n left: -trackLeft + \"px\"\n };\n if (this.props.centerMode) {\n let currentWidth = `${childrenWidths[this.state.currentSlide]}px`;\n trackStyle.left = `calc(${trackStyle.left} + (100% - ${currentWidth}) / 2 ) `;\n }\n return {\n trackStyle\n };\n }\n let childrenCount = React.Children.count(this.props.children);\n const spec = { ...this.props, ...this.state, slideCount: childrenCount };\n let slideCount = getPreClones(spec) + getPostClones(spec) + childrenCount;\n let trackWidth = (100 / this.props.slidesToShow) * slideCount;\n let slideWidth = 100 / slideCount;\n let trackLeft =\n (-slideWidth *\n (getPreClones(spec) + this.state.currentSlide) *\n trackWidth) /\n 100;\n if (this.props.centerMode) {\n trackLeft += (100 - (slideWidth * trackWidth) / 100) / 2;\n }\n let trackStyle = {\n width: trackWidth + \"%\",\n left: trackLeft + \"%\"\n };\n return {\n slideWidth: slideWidth + \"%\",\n trackStyle: trackStyle\n };\n };\n checkImagesLoad = () => {\n let images =\n (this.list &&\n this.list.querySelectorAll &&\n this.list.querySelectorAll(\".slick-slide img\")) ||\n [];\n let imagesCount = images.length,\n loadedCount = 0;\n Array.prototype.forEach.call(images, image => {\n const handler = () =>\n ++loadedCount && loadedCount >= imagesCount && this.onWindowResized();\n if (!image.onclick) {\n image.onclick = () => image.parentNode.focus();\n } else {\n const prevClickHandler = image.onclick;\n image.onclick = e => {\n prevClickHandler(e);\n image.parentNode.focus();\n };\n }\n if (!image.onload) {\n if (this.props.lazyLoad) {\n image.onload = () => {\n this.adaptHeight();\n this.callbackTimers.push(\n setTimeout(this.onWindowResized, this.props.speed)\n );\n };\n } else {\n image.onload = handler;\n image.onerror = () => {\n handler();\n this.props.onLazyLoadError && this.props.onLazyLoadError();\n };\n }\n }\n });\n };\n progressiveLazyLoad = () => {\n let slidesToLoad = [];\n const spec = { ...this.props, ...this.state };\n for (\n let index = this.state.currentSlide;\n index < this.state.slideCount + getPostClones(spec);\n index++\n ) {\n if (this.state.lazyLoadedList.indexOf(index) < 0) {\n slidesToLoad.push(index);\n break;\n }\n }\n for (\n let index = this.state.currentSlide - 1;\n index >= -getPreClones(spec);\n index--\n ) {\n if (this.state.lazyLoadedList.indexOf(index) < 0) {\n slidesToLoad.push(index);\n break;\n }\n }\n if (slidesToLoad.length > 0) {\n this.setState(state => ({\n lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad)\n }));\n if (this.props.onLazyLoad) {\n this.props.onLazyLoad(slidesToLoad);\n }\n } else {\n if (this.lazyLoadTimer) {\n clearInterval(this.lazyLoadTimer);\n delete this.lazyLoadTimer;\n }\n }\n };\n slideHandler = (index, dontAnimate = false) => {\n const {\n asNavFor,\n beforeChange,\n onLazyLoad,\n speed,\n afterChange\n } = this.props;\n // capture currentslide before state is updated\n const currentSlide = this.state.currentSlide;\n let { state, nextState } = slideHandler({\n index,\n ...this.props,\n ...this.state,\n trackRef: this.track,\n useCSS: this.props.useCSS && !dontAnimate\n });\n if (!state) return;\n beforeChange && beforeChange(currentSlide, state.currentSlide);\n let slidesToLoad = state.lazyLoadedList.filter(\n value => this.state.lazyLoadedList.indexOf(value) < 0\n );\n onLazyLoad && slidesToLoad.length > 0 && onLazyLoad(slidesToLoad);\n if (!this.props.waitForAnimate && this.animationEndCallback) {\n clearTimeout(this.animationEndCallback);\n afterChange && afterChange(currentSlide);\n delete this.animationEndCallback;\n }\n this.setState(state, () => {\n // asNavForIndex check is to avoid recursive calls of slideHandler in waitForAnimate=false mode\n if (asNavFor && this.asNavForIndex !== index) {\n this.asNavForIndex = index;\n asNavFor.innerSlider.slideHandler(index);\n }\n if (!nextState) return;\n this.animationEndCallback = setTimeout(() => {\n const { animating, ...firstBatch } = nextState;\n this.setState(firstBatch, () => {\n this.callbackTimers.push(\n setTimeout(() => this.setState({ animating }), 10)\n );\n afterChange && afterChange(state.currentSlide);\n delete this.animationEndCallback;\n });\n }, speed);\n });\n };\n changeSlide = (options, dontAnimate = false) => {\n const spec = { ...this.props, ...this.state };\n let targetSlide = changeSlide(spec, options);\n if (targetSlide !== 0 && !targetSlide) return;\n if (dontAnimate === true) {\n this.slideHandler(targetSlide, dontAnimate);\n } else {\n this.slideHandler(targetSlide);\n }\n this.props.autoplay && this.autoPlay(\"update\");\n if (this.props.focusOnSelect) {\n const nodes = this.list.querySelectorAll(\".slick-current\");\n nodes[0] && nodes[0].focus();\n }\n };\n clickHandler = e => {\n if (this.clickable === false) {\n e.stopPropagation();\n e.preventDefault();\n }\n this.clickable = true;\n };\n keyHandler = e => {\n let dir = keyHandler(e, this.props.accessibility, this.props.rtl);\n dir !== \"\" && this.changeSlide({ message: dir });\n };\n selectHandler = options => {\n this.changeSlide(options);\n };\n disableBodyScroll = () => {\n const preventDefault = e => {\n e = e || window.event;\n if (e.preventDefault) e.preventDefault();\n e.returnValue = false;\n };\n window.ontouchmove = preventDefault;\n };\n enableBodyScroll = () => {\n window.ontouchmove = null;\n };\n swipeStart = e => {\n if (this.props.verticalSwiping) {\n this.disableBodyScroll();\n }\n let state = swipeStart(e, this.props.swipe, this.props.draggable);\n state !== \"\" && this.setState(state);\n };\n swipeMove = e => {\n let state = swipeMove(e, {\n ...this.props,\n ...this.state,\n trackRef: this.track,\n listRef: this.list,\n slideIndex: this.state.currentSlide\n });\n if (!state) return;\n if (state[\"swiping\"]) {\n this.clickable = false;\n }\n this.setState(state);\n };\n swipeEnd = e => {\n let state = swipeEnd(e, {\n ...this.props,\n ...this.state,\n trackRef: this.track,\n listRef: this.list,\n slideIndex: this.state.currentSlide\n });\n if (!state) return;\n let triggerSlideHandler = state[\"triggerSlideHandler\"];\n delete state[\"triggerSlideHandler\"];\n this.setState(state);\n if (triggerSlideHandler === undefined) return;\n this.slideHandler(triggerSlideHandler);\n if (this.props.verticalSwiping) {\n this.enableBodyScroll();\n }\n };\n touchEnd = e => {\n this.swipeEnd(e);\n this.clickable = true;\n };\n slickPrev = () => {\n // this and fellow methods are wrapped in setTimeout\n // to make sure initialize setState has happened before\n // any of such methods are called\n this.callbackTimers.push(\n setTimeout(() => this.changeSlide({ message: \"previous\" }), 0)\n );\n };\n slickNext = () => {\n this.callbackTimers.push(\n setTimeout(() => this.changeSlide({ message: \"next\" }), 0)\n );\n };\n slickGoTo = (slide, dontAnimate = false) => {\n slide = Number(slide);\n if (isNaN(slide)) return \"\";\n this.callbackTimers.push(\n setTimeout(\n () =>\n this.changeSlide(\n {\n message: \"index\",\n index: slide,\n currentSlide: this.state.currentSlide\n },\n dontAnimate\n ),\n 0\n )\n );\n };\n play = () => {\n var nextIndex;\n if (this.props.rtl) {\n nextIndex = this.state.currentSlide - this.props.slidesToScroll;\n } else {\n if (canGoNext({ ...this.props, ...this.state })) {\n nextIndex = this.state.currentSlide + this.props.slidesToScroll;\n } else {\n return false;\n }\n }\n\n this.slideHandler(nextIndex);\n };\n\n autoPlay = playType => {\n if (this.autoplayTimer) {\n clearInterval(this.autoplayTimer);\n }\n const autoplaying = this.state.autoplaying;\n if (playType === \"update\") {\n if (\n autoplaying === \"hovered\" ||\n autoplaying === \"focused\" ||\n autoplaying === \"paused\"\n ) {\n return;\n }\n } else if (playType === \"leave\") {\n if (autoplaying === \"paused\" || autoplaying === \"focused\") {\n return;\n }\n } else if (playType === \"blur\") {\n if (autoplaying === \"paused\" || autoplaying === \"hovered\") {\n return;\n }\n }\n this.autoplayTimer = setInterval(this.play, this.props.autoplaySpeed + 50);\n this.setState({ autoplaying: \"playing\" });\n };\n pause = pauseType => {\n if (this.autoplayTimer) {\n clearInterval(this.autoplayTimer);\n this.autoplayTimer = null;\n }\n const autoplaying = this.state.autoplaying;\n if (pauseType === \"paused\") {\n this.setState({ autoplaying: \"paused\" });\n } else if (pauseType === \"focused\") {\n if (autoplaying === \"hovered\" || autoplaying === \"playing\") {\n this.setState({ autoplaying: \"focused\" });\n }\n } else {\n // pauseType is 'hovered'\n if (autoplaying === \"playing\") {\n this.setState({ autoplaying: \"hovered\" });\n }\n }\n };\n onDotsOver = () => this.props.autoplay && this.pause(\"hovered\");\n onDotsLeave = () =>\n this.props.autoplay &&\n this.state.autoplaying === \"hovered\" &&\n this.autoPlay(\"leave\");\n onTrackOver = () => this.props.autoplay && this.pause(\"hovered\");\n onTrackLeave = () =>\n this.props.autoplay &&\n this.state.autoplaying === \"hovered\" &&\n this.autoPlay(\"leave\");\n onSlideFocus = () => this.props.autoplay && this.pause(\"focused\");\n onSlideBlur = () =>\n this.props.autoplay &&\n this.state.autoplaying === \"focused\" &&\n this.autoPlay(\"blur\");\n\n render = () => {\n var className = classnames(\n \"slick-slider\",\n this.props.className,\n this.props.classes?.slider,\n {\n \"slick-vertical\": this.props.vertical,\n \"slick-initialized\": true\n }\n );\n let spec = { ...this.props, ...this.state };\n let trackProps = extractObject(spec, [\n \"fade\",\n \"cssEase\",\n \"speed\",\n \"infinite\",\n \"centerMode\",\n \"focusOnSelect\",\n \"currentSlide\",\n \"lazyLoad\",\n \"lazyLoadedList\",\n \"rtl\",\n \"slideWidth\",\n \"slideHeight\",\n \"listHeight\",\n \"vertical\",\n \"slidesToShow\",\n \"slidesToScroll\",\n \"slideCount\",\n \"trackStyle\",\n \"variableWidth\",\n \"unslick\",\n \"centerPadding\",\n \"targetSlide\",\n \"useCSS\",\n \"omitLazyForSlides\",\n \"classes\"\n ]);\n const { pauseOnHover } = this.props;\n trackProps = {\n ...trackProps,\n onMouseEnter: pauseOnHover ? this.onTrackOver : null,\n onMouseLeave: pauseOnHover ? this.onTrackLeave : null,\n onMouseOver: pauseOnHover ? this.onTrackOver : null,\n focusOnSelect:\n this.props.focusOnSelect && this.clickable ? this.selectHandler : null\n };\n\n var dots;\n if (\n this.props.dots === true &&\n this.state.slideCount >= this.props.slidesToShow\n ) {\n let dotProps = extractObject(spec, [\n \"dotsClass\",\n \"slideCount\",\n \"slidesToShow\",\n \"currentSlide\",\n \"slidesToScroll\",\n \"clickHandler\",\n \"children\",\n \"customPaging\",\n \"infinite\",\n \"appendDots\",\n \"classes\"\n ]);\n const { pauseOnDotsHover } = this.props;\n dotProps = {\n ...dotProps,\n clickHandler: this.changeSlide,\n onMouseEnter: pauseOnDotsHover ? this.onDotsLeave : null,\n onMouseOver: pauseOnDotsHover ? this.onDotsOver : null,\n onMouseLeave: pauseOnDotsHover ? this.onDotsLeave : null\n };\n dots = ;\n }\n\n var prevArrow, nextArrow;\n let arrowProps = extractObject(spec, [\n \"infinite\",\n \"centerMode\",\n \"currentSlide\",\n \"slideCount\",\n \"slidesToShow\",\n \"prevArrow\",\n \"nextArrow\",\n \"classes\"\n ]);\n arrowProps.clickHandler = this.changeSlide;\n\n if (this.props.arrows) {\n prevArrow = ;\n nextArrow = ;\n }\n\n var verticalHeightStyle = null;\n\n if (this.props.vertical) {\n verticalHeightStyle = {\n height: this.state.listHeight\n };\n }\n\n var centerPaddingStyle = null;\n\n if (this.props.vertical === false) {\n if (this.props.centerMode === true) {\n centerPaddingStyle = {\n padding: \"0px \" + this.props.centerPadding\n };\n }\n } else {\n if (this.props.centerMode === true) {\n centerPaddingStyle = {\n padding: this.props.centerPadding + \" 0px\"\n };\n }\n }\n\n const listStyle = { ...verticalHeightStyle, ...centerPaddingStyle };\n const touchMove = this.props.touchMove;\n let listProps = {\n className: classnames(this.props.classes?.list, \"slick-list\"),\n style: listStyle,\n onClick: this.clickHandler,\n onMouseDown: touchMove ? this.swipeStart : null,\n onMouseMove: this.state.dragging && touchMove ? this.swipeMove : null,\n onMouseUp: touchMove ? this.swipeEnd : null,\n onMouseLeave: this.state.dragging && touchMove ? this.swipeEnd : null,\n onTouchStart: touchMove ? this.swipeStart : null,\n onTouchMove: this.state.dragging && touchMove ? this.swipeMove : null,\n onTouchEnd: touchMove ? this.touchEnd : null,\n onTouchCancel: this.state.dragging && touchMove ? this.swipeEnd : null,\n onKeyDown: this.props.accessibility ? this.keyHandler : null\n };\n\n let innerSliderProps = {\n className: className,\n dir: \"ltr\",\n style: this.props.style\n };\n\n if (this.props.unslick) {\n listProps = { className: classnames(this.props.classes?.list, \"slick-list\"), };\n innerSliderProps = { className };\n }\n return (\n
\n {!this.props.unslick ? prevArrow : \"\"}\n
\n \n {this.props.children}\n \n
\n {!this.props.unslick ? nextArrow : \"\"}\n {!this.props.unslick ? dots : \"\"}\n
\n );\n };\n}\n","const initialState = {\n animating: false,\n autoplaying: null,\n currentDirection: 0,\n currentLeft: null,\n currentSlide: 0,\n direction: 1,\n dragging: false,\n edgeDragged: false,\n initialized: false,\n lazyLoadedList: [],\n listHeight: null,\n listWidth: null,\n scrolling: false,\n slideCount: null,\n slideHeight: null,\n slideWidth: null,\n swipeLeft: null,\n swiped: false, // used by swipeEvent. differentites between touch and swipe.\n swiping: false,\n touchObject: { startX: 0, startY: 0, curX: 0, curY: 0 },\n trackStyle: {},\n trackWidth: 0,\n targetSlide: 0\n};\n\nexport default initialState;\n","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React from \"react\";\n\nexport function clamp(number, lowerBound, upperBound) {\n return Math.max(lowerBound, Math.min(number, upperBound));\n}\n\nexport const safePreventDefault = event => {\n const passiveEvents = [\"onTouchStart\", \"onTouchMove\", \"onWheel\"];\n if (!passiveEvents.includes(event._reactName)) {\n event.preventDefault();\n }\n};\n\nexport const getOnDemandLazySlides = spec => {\n let onDemandSlides = [];\n let startIndex = lazyStartIndex(spec);\n let endIndex = lazyEndIndex(spec);\n for (let slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {\n if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {\n onDemandSlides.push(slideIndex);\n }\n }\n return onDemandSlides;\n};\n\n// return list of slides that need to be present\nexport const getRequiredLazySlides = spec => {\n let requiredSlides = [];\n let startIndex = lazyStartIndex(spec);\n let endIndex = lazyEndIndex(spec);\n for (let slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {\n requiredSlides.push(slideIndex);\n }\n return requiredSlides;\n};\n\n// startIndex that needs to be present\nexport const lazyStartIndex = spec => {\n let startIndex = spec.currentSlide - lazySlidesOnLeft(spec);\n if (spec.lazyLoad === \"anticipated\") startIndex -= 1;\n return startIndex;\n};\nexport const lazyEndIndex = spec => {\n let endIndex = spec.currentSlide + lazySlidesOnRight(spec);\n if (spec.lazyLoad === \"anticipated\") endIndex += 1;\n return endIndex;\n};\nexport const lazySlidesOnLeft = spec =>\n spec.centerMode\n ? Math.floor(spec.slidesToShow / 2) +\n (parseInt(spec.centerPadding) > 0 ? 1 : 0)\n : 0;\nexport const lazySlidesOnRight = spec =>\n spec.centerMode\n ? Math.floor((spec.slidesToShow - 1) / 2) +\n 1 +\n (parseInt(spec.centerPadding) > 0 ? 1 : 0)\n : spec.slidesToShow;\n\n// get width of an element\nexport const getWidth = elem => (elem && elem.offsetWidth) || 0;\nexport const getHeight = elem => (elem && elem.offsetHeight) || 0;\nexport const getSwipeDirection = (touchObject, verticalSwiping = false) => {\n var xDist, yDist, r, swipeAngle;\n xDist = touchObject.startX - touchObject.curX;\n yDist = touchObject.startY - touchObject.curY;\n r = Math.atan2(yDist, xDist);\n swipeAngle = Math.round((r * 180) / Math.PI);\n if (swipeAngle < 0) {\n swipeAngle = 360 - Math.abs(swipeAngle);\n }\n if (\n (swipeAngle <= 45 && swipeAngle >= 0) ||\n (swipeAngle <= 360 && swipeAngle >= 315)\n ) {\n return \"left\";\n }\n if (swipeAngle >= 135 && swipeAngle <= 225) {\n return \"right\";\n }\n if (verticalSwiping === true) {\n if (swipeAngle >= 35 && swipeAngle <= 135) {\n return \"up\";\n } else {\n return \"down\";\n }\n }\n\n return \"vertical\";\n};\n\n// whether or not we can go next\nexport const canGoNext = spec => {\n let canGo = true;\n if (!spec.infinite) {\n if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {\n canGo = false;\n } else if (\n spec.slideCount <= spec.slidesToShow ||\n spec.currentSlide >= spec.slideCount - spec.slidesToShow\n ) {\n canGo = false;\n }\n }\n return canGo;\n};\n\n// given an object and a list of keys, return new object with given keys\nexport const extractObject = (spec, keys) => {\n let newObject = {};\n keys.forEach(key => (newObject[key] = spec[key]));\n return newObject;\n};\n\n// get initialized state\nexport const initializedState = spec => {\n // spec also contains listRef, trackRef\n let slideCount = React.Children.count(spec.children);\n const listNode = spec.listRef;\n let listWidth = Math.ceil(getWidth(listNode));\n const trackNode = spec.trackRef && spec.trackRef.node;\n let trackWidth = Math.ceil(getWidth(trackNode));\n let slideWidth;\n if (!spec.vertical) {\n let centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;\n if (\n typeof spec.centerPadding === \"string\" &&\n spec.centerPadding.slice(-1) === \"%\"\n ) {\n centerPaddingAdj *= listWidth / 100;\n }\n slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);\n } else {\n slideWidth = listWidth;\n }\n let slideHeight =\n listNode && getHeight(listNode.querySelector('[data-index=\"0\"]'));\n let listHeight = slideHeight * spec.slidesToShow;\n let currentSlide =\n spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide;\n if (spec.rtl && spec.currentSlide === undefined) {\n currentSlide = slideCount - 1 - spec.initialSlide;\n }\n let lazyLoadedList = spec.lazyLoadedList || [];\n let slidesToLoad = getOnDemandLazySlides({\n ...spec,\n currentSlide,\n lazyLoadedList\n });\n lazyLoadedList = lazyLoadedList.concat(slidesToLoad);\n\n let state = {\n slideCount,\n slideWidth,\n listWidth,\n trackWidth,\n currentSlide,\n slideHeight,\n listHeight,\n lazyLoadedList\n };\n\n if (spec.autoplaying === null && spec.autoplay) {\n state[\"autoplaying\"] = \"playing\";\n }\n\n return state;\n};\n\nexport const slideHandler = spec => {\n const {\n waitForAnimate,\n animating,\n fade,\n infinite,\n index,\n slideCount,\n lazyLoad,\n currentSlide,\n centerMode,\n slidesToScroll,\n slidesToShow,\n useCSS\n } = spec;\n let { lazyLoadedList } = spec;\n if (waitForAnimate && animating) return {};\n let animationSlide = index,\n finalSlide,\n animationLeft,\n finalLeft;\n let state = {},\n nextState = {};\n const targetSlide = infinite ? index : clamp(index, 0, slideCount - 1);\n if (fade) {\n if (!infinite && (index < 0 || index >= slideCount)) return {};\n if (index < 0) {\n animationSlide = index + slideCount;\n } else if (index >= slideCount) {\n animationSlide = index - slideCount;\n }\n if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) {\n lazyLoadedList = lazyLoadedList.concat(animationSlide);\n }\n state = {\n animating: true,\n currentSlide: animationSlide,\n lazyLoadedList,\n targetSlide: animationSlide\n };\n nextState = { animating: false, targetSlide: animationSlide };\n } else {\n finalSlide = animationSlide;\n if (animationSlide < 0) {\n finalSlide = animationSlide + slideCount;\n if (!infinite) finalSlide = 0;\n else if (slideCount % slidesToScroll !== 0)\n finalSlide = slideCount - (slideCount % slidesToScroll);\n } else if (!canGoNext(spec) && animationSlide > currentSlide) {\n animationSlide = finalSlide = currentSlide;\n } else if (centerMode && animationSlide >= slideCount) {\n animationSlide = infinite ? slideCount : slideCount - 1;\n finalSlide = infinite ? 0 : slideCount - 1;\n } else if (animationSlide >= slideCount) {\n finalSlide = animationSlide - slideCount;\n if (!infinite) finalSlide = slideCount - slidesToShow;\n else if (slideCount % slidesToScroll !== 0) finalSlide = 0;\n }\n\n if (!infinite && animationSlide + slidesToShow >= slideCount) {\n finalSlide = slideCount - slidesToShow;\n }\n\n animationLeft = getTrackLeft({ ...spec, slideIndex: animationSlide });\n finalLeft = getTrackLeft({ ...spec, slideIndex: finalSlide });\n if (!infinite) {\n if (animationLeft === finalLeft) animationSlide = finalSlide;\n animationLeft = finalLeft;\n }\n if (lazyLoad) {\n lazyLoadedList = lazyLoadedList.concat(\n getOnDemandLazySlides({ ...spec, currentSlide: animationSlide })\n );\n }\n if (!useCSS) {\n state = {\n currentSlide: finalSlide,\n trackStyle: getTrackCSS({ ...spec, left: finalLeft }),\n lazyLoadedList,\n targetSlide\n };\n } else {\n state = {\n animating: true,\n currentSlide: finalSlide,\n trackStyle: getTrackAnimateCSS({ ...spec, left: animationLeft }),\n lazyLoadedList,\n targetSlide\n };\n nextState = {\n animating: false,\n currentSlide: finalSlide,\n trackStyle: getTrackCSS({ ...spec, left: finalLeft }),\n swipeLeft: null,\n targetSlide\n };\n }\n }\n return { state, nextState };\n};\n\nexport const changeSlide = (spec, options) => {\n var indexOffset, previousInt, slideOffset, unevenOffset, targetSlide;\n const {\n slidesToScroll,\n slidesToShow,\n slideCount,\n currentSlide,\n targetSlide: previousTargetSlide,\n lazyLoad,\n infinite\n } = spec;\n unevenOffset = slideCount % slidesToScroll !== 0;\n indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll;\n if (options.message === \"previous\") {\n slideOffset =\n indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset;\n targetSlide = currentSlide - slideOffset;\n if (lazyLoad && !infinite) {\n previousInt = currentSlide - slideOffset;\n targetSlide = previousInt === -1 ? slideCount - 1 : previousInt;\n }\n if (!infinite) {\n targetSlide = previousTargetSlide - slidesToScroll;\n }\n } else if (options.message === \"next\") {\n slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset;\n targetSlide = currentSlide + slideOffset;\n if (lazyLoad && !infinite) {\n targetSlide =\n ((currentSlide + slidesToScroll) % slideCount) + indexOffset;\n }\n if (!infinite) {\n targetSlide = previousTargetSlide + slidesToScroll;\n }\n } else if (options.message === \"dots\") {\n // Click on dots\n targetSlide = options.index * options.slidesToScroll;\n } else if (options.message === \"children\") {\n // Click on the slides\n targetSlide = options.index;\n if (infinite) {\n let direction = siblingDirection({ ...spec, targetSlide });\n if (targetSlide > options.currentSlide && direction === \"left\") {\n targetSlide = targetSlide - slideCount;\n } else if (targetSlide < options.currentSlide && direction === \"right\") {\n targetSlide = targetSlide + slideCount;\n }\n }\n } else if (options.message === \"index\") {\n targetSlide = Number(options.index);\n }\n return targetSlide;\n};\nexport const keyHandler = (e, accessibility, rtl) => {\n if (e.target.tagName.match(\"TEXTAREA|INPUT|SELECT\") || !accessibility)\n return \"\";\n if (e.keyCode === 37) return rtl ? \"next\" : \"previous\";\n if (e.keyCode === 39) return rtl ? \"previous\" : \"next\";\n return \"\";\n};\n\nexport const swipeStart = (e, swipe, draggable) => {\n e.target.tagName === \"IMG\" && safePreventDefault(e);\n if (!swipe || (!draggable && e.type.indexOf(\"mouse\") !== -1)) return \"\";\n return {\n dragging: true,\n touchObject: {\n startX: e.touches ? e.touches[0].pageX : e.clientX,\n startY: e.touches ? e.touches[0].pageY : e.clientY,\n curX: e.touches ? e.touches[0].pageX : e.clientX,\n curY: e.touches ? e.touches[0].pageY : e.clientY\n }\n };\n};\nexport const swipeMove = (e, spec) => {\n // spec also contains, trackRef and slideIndex\n const {\n scrolling,\n animating,\n vertical,\n swipeToSlide,\n verticalSwiping,\n rtl,\n currentSlide,\n edgeFriction,\n edgeDragged,\n onEdge,\n swiped,\n swiping,\n slideCount,\n slidesToScroll,\n infinite,\n touchObject,\n swipeEvent,\n listHeight,\n listWidth\n } = spec;\n if (scrolling) return;\n if (animating) return safePreventDefault(e);\n if (vertical && swipeToSlide && verticalSwiping) safePreventDefault(e);\n let swipeLeft,\n state = {};\n let curLeft = getTrackLeft(spec);\n touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX;\n touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY;\n touchObject.swipeLength = Math.round(\n Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2))\n );\n let verticalSwipeLength = Math.round(\n Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2))\n );\n if (!verticalSwiping && !swiping && verticalSwipeLength > 10) {\n return { scrolling: true };\n }\n if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength;\n let positionOffset =\n (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1);\n if (verticalSwiping)\n positionOffset = touchObject.curY > touchObject.startY ? 1 : -1;\n\n let dotCount = Math.ceil(slideCount / slidesToScroll);\n let swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping);\n let touchSwipeLength = touchObject.swipeLength;\n if (!infinite) {\n if (\n (currentSlide === 0 &&\n (swipeDirection === \"right\" || swipeDirection === \"down\")) ||\n (currentSlide + 1 >= dotCount &&\n (swipeDirection === \"left\" || swipeDirection === \"up\")) ||\n (!canGoNext(spec) &&\n (swipeDirection === \"left\" || swipeDirection === \"up\"))\n ) {\n touchSwipeLength = touchObject.swipeLength * edgeFriction;\n if (edgeDragged === false && onEdge) {\n onEdge(swipeDirection);\n state[\"edgeDragged\"] = true;\n }\n }\n }\n if (!swiped && swipeEvent) {\n swipeEvent(swipeDirection);\n state[\"swiped\"] = true;\n }\n if (!vertical) {\n if (!rtl) {\n swipeLeft = curLeft + touchSwipeLength * positionOffset;\n } else {\n swipeLeft = curLeft - touchSwipeLength * positionOffset;\n }\n } else {\n swipeLeft =\n curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset;\n }\n if (verticalSwiping) {\n swipeLeft = curLeft + touchSwipeLength * positionOffset;\n }\n state = {\n ...state,\n touchObject,\n swipeLeft,\n trackStyle: getTrackCSS({ ...spec, left: swipeLeft })\n };\n if (\n Math.abs(touchObject.curX - touchObject.startX) <\n Math.abs(touchObject.curY - touchObject.startY) * 0.8\n ) {\n return state;\n }\n if (touchObject.swipeLength > 10) {\n state[\"swiping\"] = true;\n safePreventDefault(e);\n }\n return state;\n};\nexport const swipeEnd = (e, spec) => {\n const {\n dragging,\n swipe,\n touchObject,\n listWidth,\n touchThreshold,\n verticalSwiping,\n listHeight,\n swipeToSlide,\n scrolling,\n onSwipe,\n targetSlide,\n currentSlide,\n infinite\n } = spec;\n if (!dragging) {\n if (swipe) safePreventDefault(e);\n return {};\n }\n let minSwipe = verticalSwiping\n ? listHeight / touchThreshold\n : listWidth / touchThreshold;\n let swipeDirection = getSwipeDirection(touchObject, verticalSwiping);\n // reset the state of touch related state variables.\n let state = {\n dragging: false,\n edgeDragged: false,\n scrolling: false,\n swiping: false,\n swiped: false,\n swipeLeft: null,\n touchObject: {}\n };\n if (scrolling) {\n return state;\n }\n if (!touchObject.swipeLength) {\n return state;\n }\n if (touchObject.swipeLength > minSwipe) {\n safePreventDefault(e);\n if (onSwipe) {\n onSwipe(swipeDirection);\n }\n let slideCount, newSlide;\n let activeSlide = infinite ? currentSlide : targetSlide;\n switch (swipeDirection) {\n case \"left\":\n case \"up\":\n newSlide = activeSlide + getSlideCount(spec);\n slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;\n state[\"currentDirection\"] = 0;\n break;\n case \"right\":\n case \"down\":\n newSlide = activeSlide - getSlideCount(spec);\n slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;\n state[\"currentDirection\"] = 1;\n break;\n default:\n slideCount = activeSlide;\n }\n state[\"triggerSlideHandler\"] = slideCount;\n } else {\n // Adjust the track back to it's original position.\n let currentLeft = getTrackLeft(spec);\n state[\"trackStyle\"] = getTrackAnimateCSS({ ...spec, left: currentLeft });\n }\n return state;\n};\nexport const getNavigableIndexes = spec => {\n let max = spec.infinite ? spec.slideCount * 2 : spec.slideCount;\n let breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0;\n let counter = spec.infinite ? spec.slidesToShow * -1 : 0;\n let indexes = [];\n while (breakpoint < max) {\n indexes.push(breakpoint);\n breakpoint = counter + spec.slidesToScroll;\n counter += Math.min(spec.slidesToScroll, spec.slidesToShow);\n }\n return indexes;\n};\nexport const checkNavigable = (spec, index) => {\n const navigables = getNavigableIndexes(spec);\n let prevNavigable = 0;\n if (index > navigables[navigables.length - 1]) {\n index = navigables[navigables.length - 1];\n } else {\n for (let n in navigables) {\n if (index < navigables[n]) {\n index = prevNavigable;\n break;\n }\n prevNavigable = navigables[n];\n }\n }\n return index;\n};\nexport const getSlideCount = spec => {\n const centerOffset = spec.centerMode\n ? spec.slideWidth * Math.floor(spec.slidesToShow / 2)\n : 0;\n if (spec.swipeToSlide) {\n let swipedSlide;\n const slickList = spec.listRef;\n const slides =\n (slickList.querySelectorAll &&\n slickList.querySelectorAll(\".slick-slide\")) ||\n [];\n Array.from(slides).every(slide => {\n if (!spec.vertical) {\n if (\n slide.offsetLeft - centerOffset + getWidth(slide) / 2 >\n spec.swipeLeft * -1\n ) {\n swipedSlide = slide;\n return false;\n }\n } else {\n if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) {\n swipedSlide = slide;\n return false;\n }\n }\n\n return true;\n });\n\n if (!swipedSlide) {\n return 0;\n }\n const currentIndex =\n spec.rtl === true\n ? spec.slideCount - spec.currentSlide\n : spec.currentSlide;\n const slidesTraversed =\n Math.abs(swipedSlide.dataset.index - currentIndex) || 1;\n return slidesTraversed;\n } else {\n return spec.slidesToScroll;\n }\n};\n\nexport const checkSpecKeys = (spec, keysArray) =>\n keysArray.reduce((value, key) => value && spec.hasOwnProperty(key), true)\n ? null\n : console.error(\"Keys Missing:\", spec);\n\nexport const getTrackCSS = spec => {\n checkSpecKeys(spec, [\n \"left\",\n \"variableWidth\",\n \"slideCount\",\n \"slidesToShow\",\n \"slideWidth\"\n ]);\n let trackWidth, trackHeight;\n const trackChildren = spec.slideCount + 2 * spec.slidesToShow;\n if (!spec.vertical) {\n trackWidth = getTotalSlides(spec) * spec.slideWidth;\n } else {\n trackHeight = trackChildren * spec.slideHeight;\n }\n let style = {\n opacity: 1,\n transition: \"\",\n WebkitTransition: \"\"\n };\n if (spec.useTransform) {\n let WebkitTransform = !spec.vertical\n ? \"translate3d(\" + spec.left + \"px, 0px, 0px)\"\n : \"translate3d(0px, \" + spec.left + \"px, 0px)\";\n let transform = !spec.vertical\n ? \"translate3d(\" + spec.left + \"px, 0px, 0px)\"\n : \"translate3d(0px, \" + spec.left + \"px, 0px)\";\n let msTransform = !spec.vertical\n ? \"translateX(\" + spec.left + \"px)\"\n : \"translateY(\" + spec.left + \"px)\";\n style = {\n ...style,\n WebkitTransform,\n transform,\n msTransform\n };\n } else {\n if (spec.vertical) {\n style[\"top\"] = spec.left;\n } else {\n style[\"left\"] = spec.left;\n }\n }\n if (spec.fade) style = { opacity: 1 };\n if (trackWidth) style.width = trackWidth;\n if (trackHeight) style.height = trackHeight;\n\n // Fallback for IE8\n if (window && !window.addEventListener && window.attachEvent) {\n if (!spec.vertical) {\n style.marginLeft = spec.left + \"px\";\n } else {\n style.marginTop = spec.left + \"px\";\n }\n }\n\n return style;\n};\nexport const getTrackAnimateCSS = spec => {\n checkSpecKeys(spec, [\n \"left\",\n \"variableWidth\",\n \"slideCount\",\n \"slidesToShow\",\n \"slideWidth\",\n \"speed\",\n \"cssEase\"\n ]);\n let style = getTrackCSS(spec);\n // useCSS is true by default so it can be undefined\n if (spec.useTransform) {\n style.WebkitTransition =\n \"-webkit-transform \" + spec.speed + \"ms \" + spec.cssEase;\n style.transition = \"transform \" + spec.speed + \"ms \" + spec.cssEase;\n } else {\n if (spec.vertical) {\n style.transition = \"top \" + spec.speed + \"ms \" + spec.cssEase;\n } else {\n style.transition = \"left \" + spec.speed + \"ms \" + spec.cssEase;\n }\n }\n return style;\n};\nexport const getTrackLeft = spec => {\n if (spec.unslick) {\n return 0;\n }\n\n checkSpecKeys(spec, [\n \"slideIndex\",\n \"trackRef\",\n \"infinite\",\n \"centerMode\",\n \"slideCount\",\n \"slidesToShow\",\n \"slidesToScroll\",\n \"slideWidth\",\n \"listWidth\",\n \"variableWidth\",\n \"slideHeight\"\n ]);\n\n const {\n slideIndex,\n trackRef,\n infinite,\n centerMode,\n slideCount,\n slidesToShow,\n slidesToScroll,\n slideWidth,\n listWidth,\n variableWidth,\n slideHeight,\n fade,\n vertical\n } = spec;\n\n var slideOffset = 0;\n var targetLeft;\n var targetSlide;\n var verticalOffset = 0;\n\n if (fade || spec.slideCount === 1) {\n return 0;\n }\n\n let slidesToOffset = 0;\n if (infinite) {\n slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area\n // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children\n if (\n slideCount % slidesToScroll !== 0 &&\n slideIndex + slidesToScroll > slideCount\n ) {\n slidesToOffset = -(slideIndex > slideCount\n ? slidesToShow - (slideIndex - slideCount)\n : slideCount % slidesToScroll);\n }\n // shift current slide to center of the frame\n if (centerMode) {\n slidesToOffset += parseInt(slidesToShow / 2);\n }\n } else {\n if (\n slideCount % slidesToScroll !== 0 &&\n slideIndex + slidesToScroll > slideCount\n ) {\n slidesToOffset = slidesToShow - (slideCount % slidesToScroll);\n }\n if (centerMode) {\n slidesToOffset = parseInt(slidesToShow / 2);\n }\n }\n slideOffset = slidesToOffset * slideWidth;\n verticalOffset = slidesToOffset * slideHeight;\n\n if (!vertical) {\n targetLeft = slideIndex * slideWidth * -1 + slideOffset;\n } else {\n targetLeft = slideIndex * slideHeight * -1 + verticalOffset;\n }\n\n if (variableWidth === true) {\n var targetSlideIndex;\n const trackElem = trackRef && trackRef.node;\n targetSlideIndex = slideIndex + getPreClones(spec);\n targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];\n targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0;\n if (centerMode === true) {\n targetSlideIndex = infinite\n ? slideIndex + getPreClones(spec)\n : slideIndex;\n targetSlide = trackElem && trackElem.children[targetSlideIndex];\n targetLeft = 0;\n for (let slide = 0; slide < targetSlideIndex; slide++) {\n targetLeft -=\n trackElem &&\n trackElem.children[slide] &&\n trackElem.children[slide].offsetWidth;\n }\n targetLeft -= parseInt(spec.centerPadding);\n targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2;\n }\n }\n\n return targetLeft;\n};\n\nexport const getPreClones = spec => {\n if (spec.unslick || !spec.infinite) {\n return 0;\n }\n if (spec.variableWidth) {\n return spec.slideCount;\n }\n return spec.slidesToShow + (spec.centerMode ? 1 : 0);\n};\n\nexport const getPostClones = spec => {\n if (spec.unslick || !spec.infinite) {\n return 0;\n }\n return spec.slideCount;\n};\n\nexport const getTotalSlides = spec =>\n spec.slideCount === 1\n ? 1\n : getPreClones(spec) + spec.slideCount + getPostClones(spec);\nexport const siblingDirection = spec => {\n if (spec.targetSlide > spec.currentSlide) {\n if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) {\n return \"left\";\n }\n return \"right\";\n } else {\n if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) {\n return \"right\";\n }\n return \"left\";\n }\n};\n\nexport const slidesOnRight = ({\n slidesToShow,\n centerMode,\n rtl,\n centerPadding\n}) => {\n // returns no of slides on the right of active slide\n if (centerMode) {\n let right = (slidesToShow - 1) / 2 + 1;\n if (parseInt(centerPadding) > 0) right += 1;\n if (rtl && slidesToShow % 2 === 0) right += 1;\n return right;\n }\n if (rtl) {\n return 0;\n }\n return slidesToShow - 1;\n};\n\nexport const slidesOnLeft = ({\n slidesToShow,\n centerMode,\n rtl,\n centerPadding\n}) => {\n // returns no of slides on the left of active slide\n if (centerMode) {\n let left = (slidesToShow - 1) / 2 + 1;\n if (parseInt(centerPadding) > 0) left += 1;\n if (!rtl && slidesToShow % 2 === 0) left += 1;\n return left;\n }\n if (rtl) {\n return slidesToShow - 1;\n }\n return 0;\n};\n\nexport const canUseDOM = () =>\n !!(\n typeof window !== \"undefined\" &&\n window.document &&\n window.document.createElement\n );\n","\"use strict\";\n\nimport React from \"react\";\nimport classnames from \"classnames\";\nimport {\n lazyStartIndex,\n lazyEndIndex,\n getPreClones\n} from \"./utils/innerSliderUtils\";\n\n// given specifications/props for a slide, fetch all the classes that need to be applied to the slide\nconst getSlideClasses = spec => {\n let slickActive, slickCenter, slickCloned;\n let centerOffset, index;\n\n if (spec.rtl) {\n index = spec.slideCount - 1 - spec.index;\n } else {\n index = spec.index;\n }\n slickCloned = index < 0 || index >= spec.slideCount;\n if (spec.centerMode) {\n centerOffset = Math.floor(spec.slidesToShow / 2);\n slickCenter = (index - spec.currentSlide) % spec.slideCount === 0;\n if (\n index > spec.currentSlide - centerOffset - 1 &&\n index <= spec.currentSlide + centerOffset\n ) {\n slickActive = true;\n }\n } else {\n slickActive =\n spec.currentSlide <= index &&\n index < spec.currentSlide + spec.slidesToShow;\n }\n\n let focusedSlide;\n if (spec.targetSlide < 0) {\n focusedSlide = spec.targetSlide + spec.slideCount;\n } else if (spec.targetSlide >= spec.slideCount) {\n focusedSlide = spec.targetSlide - spec.slideCount;\n } else {\n focusedSlide = spec.targetSlide;\n }\n let slickCurrent = index === focusedSlide;\n return {\n \"slick-slide\": true,\n \"slick-active\": slickActive,\n \"slick-center\": slickCenter,\n \"slick-cloned\": slickCloned,\n [`slick-cloned ${spec.classes?.cloned}`]:\n slickCloned && spec.classes?.cloned,\n \"slick-current\": slickCurrent // dubious in case of RTL\n };\n};\n\nconst getSlideStyle = spec => {\n let style = {};\n\n if (spec.variableWidth === undefined || spec.variableWidth === false) {\n style.width = spec.slideWidth;\n }\n\n if (spec.fade) {\n style.position = \"relative\";\n if (spec.vertical) {\n style.top = -spec.index * parseInt(spec.slideHeight);\n } else {\n style.left = -spec.index * parseInt(spec.slideWidth);\n }\n style.opacity = spec.currentSlide === spec.index ? 1 : 0;\n if (spec.useCSS) {\n style.transition =\n \"opacity \" +\n spec.speed +\n \"ms \" +\n spec.cssEase +\n \", \" +\n \"visibility \" +\n spec.speed +\n \"ms \" +\n spec.cssEase;\n }\n }\n\n return style;\n};\n\nconst getKey = (child, fallbackKey) => child.key || fallbackKey;\n\nconst shouldOmitLazy = (omitLazyForSlides = [], index) =>\n omitLazyForSlides.includes(index);\n\nconst renderSlides = spec => {\n let key;\n let slides = [];\n let preCloneSlides = [];\n let postCloneSlides = [];\n let childrenCount = React.Children.count(spec.children);\n let startIndex = lazyStartIndex(spec);\n let endIndex = lazyEndIndex(spec);\n\n React.Children.forEach(spec.children, (elem, index) => {\n let child;\n let childOnClickOptions = {\n message: \"children\",\n index: index,\n slidesToScroll: spec.slidesToScroll,\n currentSlide: spec.currentSlide\n };\n\n // in case of lazyLoad, whether or not we want to fetch the slide\n if (\n !spec.lazyLoad ||\n (spec.lazyLoad && spec.lazyLoadedList.indexOf(index) >= 0) ||\n shouldOmitLazy(spec.omitLazyForSlides, index)\n ) {\n child = elem;\n } else {\n child =
;\n }\n let childStyle = getSlideStyle({ ...spec, index });\n let slideClass = child.props.className || \"\";\n let slideClasses = getSlideClasses({ ...spec, index });\n // push a cloned element of the desired slide\n slides.push(\n React.cloneElement(child, {\n key: \"original\" + getKey(child, index),\n \"data-index\": index,\n className: classnames(slideClasses, slideClass, spec.classes?.slide),\n tabIndex: \"-1\",\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: { outline: \"none\", ...(child.props.style || {}), ...childStyle },\n onClick: e => {\n child.props && child.props.onClick && child.props.onClick(e);\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n })\n );\n\n // if slide needs to be precloned or postcloned\n if (spec.infinite && spec.fade === false) {\n let preCloneNo = childrenCount - index;\n if (\n preCloneNo <= getPreClones(spec) &&\n childrenCount !== spec.slidesToShow\n ) {\n key = -preCloneNo;\n if (key >= startIndex) {\n child = elem;\n }\n slideClasses = getSlideClasses({ ...spec, index: key });\n preCloneSlides.push(\n React.cloneElement(child, {\n key: \"precloned\" + getKey(child, key),\n \"data-index\": key,\n tabIndex: \"-1\",\n className: classnames(\n slideClasses,\n slideClass,\n spec.classes?.slide\n ),\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: { ...(child.props.style || {}), ...childStyle },\n onClick: e => {\n child.props && child.props.onClick && child.props.onClick(e);\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n })\n );\n }\n\n if (childrenCount !== spec.slidesToShow) {\n key = childrenCount + index;\n if (key < endIndex) {\n child = elem;\n }\n slideClasses = getSlideClasses({ ...spec, index: key });\n postCloneSlides.push(\n React.cloneElement(child, {\n key: \"postcloned\" + getKey(child, key),\n \"data-index\": key,\n tabIndex: \"-1\",\n className: classnames(\n slideClasses,\n slideClass,\n spec.classes?.slide\n ),\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: { ...(child.props.style || {}), ...childStyle },\n onClick: e => {\n child.props && child.props.onClick && child.props.onClick(e);\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n })\n );\n }\n }\n });\n\n if (spec.rtl) {\n return preCloneSlides.concat(slides, postCloneSlides).reverse();\n } else {\n return preCloneSlides.concat(slides, postCloneSlides);\n }\n};\n\nexport class Track extends React.PureComponent {\n node = null;\n\n handleRef = ref => {\n this.node = ref;\n };\n\n render() {\n const slides = renderSlides(this.props);\n const { onMouseEnter, onMouseOver, onMouseLeave } = this.props;\n const mouseEvents = { onMouseEnter, onMouseOver, onMouseLeave };\n return (\n \n {slides}\n
\n );\n }\n}\n","\"use strict\";\n\nimport React from \"react\";\nimport classnames from \"classnames\";\nimport { clamp } from \"./utils/innerSliderUtils\";\n\nconst getDotCount = spec => {\n let dots;\n\n if (spec.infinite) {\n dots = Math.ceil(spec.slideCount / spec.slidesToScroll);\n } else {\n dots =\n Math.ceil((spec.slideCount - spec.slidesToShow) / spec.slidesToScroll) +\n 1;\n }\n\n return dots;\n};\n\nexport class Dots extends React.PureComponent {\n clickHandler(options, e) {\n // In Autoplay the focus stays on clicked button even after transition\n // to next slide. That only goes away by click somewhere outside\n e.preventDefault();\n this.props.clickHandler(options);\n }\n render() {\n const {\n onMouseEnter,\n onMouseOver,\n onMouseLeave,\n infinite,\n slidesToScroll,\n slidesToShow,\n slideCount,\n currentSlide,\n classes\n } = this.props;\n let dotCount = getDotCount({\n slideCount,\n slidesToScroll,\n slidesToShow,\n infinite\n });\n\n const mouseEvents = { onMouseEnter, onMouseOver, onMouseLeave };\n let dots = [];\n for (let i = 0; i < dotCount; i++) {\n let _rightBound = (i + 1) * slidesToScroll - 1;\n let rightBound = infinite\n ? _rightBound\n : clamp(_rightBound, 0, slideCount - 1);\n let _leftBound = rightBound - (slidesToScroll - 1);\n let leftBound = infinite\n ? _leftBound\n : clamp(_leftBound, 0, slideCount - 1);\n\n let className = classnames(classes?.dot, {\n [classes?.activeDot\n ? `slick-active ${classes?.activeDot}`\n : \"slick-active\"]: infinite\n ? currentSlide >= leftBound && currentSlide <= rightBound\n : currentSlide === leftBound\n });\n\n let dotOptions = {\n message: \"dots\",\n index: i,\n slidesToScroll,\n currentSlide\n };\n\n let onClick = this.clickHandler.bind(this, dotOptions);\n dots = dots.concat(\n
  • \n {React.cloneElement(this.props.customPaging(i), { onClick })}\n
  • \n );\n }\n\n return React.cloneElement(this.props.appendDots(dots), {\n className: classnames(this.props.dotsClass, classes?.dots),\n ...mouseEvents\n });\n }\n}\n","\"use strict\";\n\nimport React from \"react\";\nimport classnames from \"classnames\";\nimport { canGoNext } from \"./utils/innerSliderUtils\";\n\nexport class PrevArrow extends React.PureComponent {\n clickHandler(options, e) {\n if (e) {\n e.preventDefault();\n }\n this.props.clickHandler(options, e);\n }\n render() {\n let prevClasses = { \"slick-arrow\": true, \"slick-prev\": true };\n let prevHandler = this.clickHandler.bind(this, { message: \"previous\" });\n\n if (\n !this.props.infinite &&\n (this.props.currentSlide === 0 ||\n this.props.slideCount <= this.props.slidesToShow)\n ) {\n prevClasses[\"slick-disabled\"] = true;\n prevClasses[this.props.classes?.disabled] = !!this.props.classes\n ?.disabled;\n prevHandler = null;\n }\n\n let prevArrowProps = {\n key: \"0\",\n \"data-role\": \"none\",\n className: classnames(\n prevClasses,\n this.props.classes?.arrow,\n this.props.classes?.prev\n ),\n style: { display: \"block\" },\n onClick: prevHandler\n };\n let customProps = {\n currentSlide: this.props.currentSlide,\n slideCount: this.props.slideCount\n };\n let prevArrow;\n\n if (this.props.prevArrow) {\n prevArrow = React.cloneElement(this.props.prevArrow, {\n ...prevArrowProps,\n ...customProps\n });\n } else {\n prevArrow = (\n \n );\n }\n\n return prevArrow;\n }\n}\n\nexport class NextArrow extends React.PureComponent {\n clickHandler(options, e) {\n if (e) {\n e.preventDefault();\n }\n this.props.clickHandler(options, e);\n }\n render() {\n let nextClasses = { \"slick-arrow\": true, \"slick-next\": true };\n let nextHandler = this.clickHandler.bind(this, { message: \"next\" });\n\n if (!canGoNext(this.props)) {\n nextClasses[\"slick-disabled\"] = true;\n nextClasses[this.props.classes?.disabled] = !!this.props.classes\n ?.disabled;\n nextHandler = null;\n }\n\n let nextArrowProps = {\n key: \"1\",\n \"data-role\": \"none\",\n className: classnames(\n nextClasses,\n this.props.classes?.arrow,\n this.props.classes?.next\n ),\n style: { display: \"block\" },\n onClick: nextHandler\n };\n let customProps = {\n currentSlide: this.props.currentSlide,\n slideCount: this.props.slideCount\n };\n let nextArrow;\n\n if (this.props.nextArrow) {\n nextArrow = React.cloneElement(this.props.nextArrow, {\n ...nextArrowProps,\n ...customProps\n });\n } else {\n nextArrow = (\n \n );\n }\n\n return nextArrow;\n }\n}\n","/**\r\n * A collection of shims that provide minimal functionality of the ES6 collections.\r\n *\r\n * These implementations are not meant to be used outside of the ResizeObserver\r\n * modules as they cover only a limited range of use cases.\r\n */\r\n/* eslint-disable require-jsdoc, valid-jsdoc */\r\nvar MapShim = (function () {\r\n if (typeof Map !== 'undefined') {\r\n return Map;\r\n }\r\n /**\r\n * Returns index in provided array that matches the specified key.\r\n *\r\n * @param {Array} arr\r\n * @param {*} key\r\n * @returns {number}\r\n */\r\n function getIndex(arr, key) {\r\n var result = -1;\r\n arr.some(function (entry, index) {\r\n if (entry[0] === key) {\r\n result = index;\r\n return true;\r\n }\r\n return false;\r\n });\r\n return result;\r\n }\r\n return /** @class */ (function () {\r\n function class_1() {\r\n this.__entries__ = [];\r\n }\r\n Object.defineProperty(class_1.prototype, \"size\", {\r\n /**\r\n * @returns {boolean}\r\n */\r\n get: function () {\r\n return this.__entries__.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * @param {*} key\r\n * @returns {*}\r\n */\r\n class_1.prototype.get = function (key) {\r\n var index = getIndex(this.__entries__, key);\r\n var entry = this.__entries__[index];\r\n return entry && entry[1];\r\n };\r\n /**\r\n * @param {*} key\r\n * @param {*} value\r\n * @returns {void}\r\n */\r\n class_1.prototype.set = function (key, value) {\r\n var index = getIndex(this.__entries__, key);\r\n if (~index) {\r\n this.__entries__[index][1] = value;\r\n }\r\n else {\r\n this.__entries__.push([key, value]);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.delete = function (key) {\r\n var entries = this.__entries__;\r\n var index = getIndex(entries, key);\r\n if (~index) {\r\n entries.splice(index, 1);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.has = function (key) {\r\n return !!~getIndex(this.__entries__, key);\r\n };\r\n /**\r\n * @returns {void}\r\n */\r\n class_1.prototype.clear = function () {\r\n this.__entries__.splice(0);\r\n };\r\n /**\r\n * @param {Function} callback\r\n * @param {*} [ctx=null]\r\n * @returns {void}\r\n */\r\n class_1.prototype.forEach = function (callback, ctx) {\r\n if (ctx === void 0) { ctx = null; }\r\n for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {\r\n var entry = _a[_i];\r\n callback.call(ctx, entry[1], entry[0]);\r\n }\r\n };\r\n return class_1;\r\n }());\r\n})();\n\n/**\r\n * Detects whether window and document objects are available in current environment.\r\n */\r\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;\n\n// Returns global object of a current environment.\r\nvar global$1 = (function () {\r\n if (typeof global !== 'undefined' && global.Math === Math) {\r\n return global;\r\n }\r\n if (typeof self !== 'undefined' && self.Math === Math) {\r\n return self;\r\n }\r\n if (typeof window !== 'undefined' && window.Math === Math) {\r\n return window;\r\n }\r\n // eslint-disable-next-line no-new-func\r\n return Function('return this')();\r\n})();\n\n/**\r\n * A shim for the requestAnimationFrame which falls back to the setTimeout if\r\n * first one is not supported.\r\n *\r\n * @returns {number} Requests' identifier.\r\n */\r\nvar requestAnimationFrame$1 = (function () {\r\n if (typeof requestAnimationFrame === 'function') {\r\n // It's required to use a bounded function because IE sometimes throws\r\n // an \"Invalid calling object\" error if rAF is invoked without the global\r\n // object on the left hand side.\r\n return requestAnimationFrame.bind(global$1);\r\n }\r\n return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };\r\n})();\n\n// Defines minimum timeout before adding a trailing call.\r\nvar trailingTimeout = 2;\r\n/**\r\n * Creates a wrapper function which ensures that provided callback will be\r\n * invoked only once during the specified delay period.\r\n *\r\n * @param {Function} callback - Function to be invoked after the delay period.\r\n * @param {number} delay - Delay after which to invoke callback.\r\n * @returns {Function}\r\n */\r\nfunction throttle (callback, delay) {\r\n var leadingCall = false, trailingCall = false, lastCallTime = 0;\r\n /**\r\n * Invokes the original callback function and schedules new invocation if\r\n * the \"proxy\" was called during current request.\r\n *\r\n * @returns {void}\r\n */\r\n function resolvePending() {\r\n if (leadingCall) {\r\n leadingCall = false;\r\n callback();\r\n }\r\n if (trailingCall) {\r\n proxy();\r\n }\r\n }\r\n /**\r\n * Callback invoked after the specified delay. It will further postpone\r\n * invocation of the original function delegating it to the\r\n * requestAnimationFrame.\r\n *\r\n * @returns {void}\r\n */\r\n function timeoutCallback() {\r\n requestAnimationFrame$1(resolvePending);\r\n }\r\n /**\r\n * Schedules invocation of the original function.\r\n *\r\n * @returns {void}\r\n */\r\n function proxy() {\r\n var timeStamp = Date.now();\r\n if (leadingCall) {\r\n // Reject immediately following calls.\r\n if (timeStamp - lastCallTime < trailingTimeout) {\r\n return;\r\n }\r\n // Schedule new call to be in invoked when the pending one is resolved.\r\n // This is important for \"transitions\" which never actually start\r\n // immediately so there is a chance that we might miss one if change\r\n // happens amids the pending invocation.\r\n trailingCall = true;\r\n }\r\n else {\r\n leadingCall = true;\r\n trailingCall = false;\r\n setTimeout(timeoutCallback, delay);\r\n }\r\n lastCallTime = timeStamp;\r\n }\r\n return proxy;\r\n}\n\n// Minimum delay before invoking the update of observers.\r\nvar REFRESH_DELAY = 20;\r\n// A list of substrings of CSS properties used to find transition events that\r\n// might affect dimensions of observed elements.\r\nvar transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];\r\n// Check if MutationObserver is available.\r\nvar mutationObserverSupported = typeof MutationObserver !== 'undefined';\r\n/**\r\n * Singleton controller class which handles updates of ResizeObserver instances.\r\n */\r\nvar ResizeObserverController = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserverController.\r\n *\r\n * @private\r\n */\r\n function ResizeObserverController() {\r\n /**\r\n * Indicates whether DOM listeners have been added.\r\n *\r\n * @private {boolean}\r\n */\r\n this.connected_ = false;\r\n /**\r\n * Tells that controller has subscribed for Mutation Events.\r\n *\r\n * @private {boolean}\r\n */\r\n this.mutationEventsAdded_ = false;\r\n /**\r\n * Keeps reference to the instance of MutationObserver.\r\n *\r\n * @private {MutationObserver}\r\n */\r\n this.mutationsObserver_ = null;\r\n /**\r\n * A list of connected observers.\r\n *\r\n * @private {Array}\r\n */\r\n this.observers_ = [];\r\n this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);\r\n this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);\r\n }\r\n /**\r\n * Adds observer to observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be added.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.addObserver = function (observer) {\r\n if (!~this.observers_.indexOf(observer)) {\r\n this.observers_.push(observer);\r\n }\r\n // Add listeners if they haven't been added yet.\r\n if (!this.connected_) {\r\n this.connect_();\r\n }\r\n };\r\n /**\r\n * Removes observer from observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be removed.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.removeObserver = function (observer) {\r\n var observers = this.observers_;\r\n var index = observers.indexOf(observer);\r\n // Remove observer if it's present in registry.\r\n if (~index) {\r\n observers.splice(index, 1);\r\n }\r\n // Remove listeners if controller has no connected observers.\r\n if (!observers.length && this.connected_) {\r\n this.disconnect_();\r\n }\r\n };\r\n /**\r\n * Invokes the update of observers. It will continue running updates insofar\r\n * it detects changes.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.refresh = function () {\r\n var changesDetected = this.updateObservers_();\r\n // Continue running updates if changes have been detected as there might\r\n // be future ones caused by CSS transitions.\r\n if (changesDetected) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Updates every observer from observers list and notifies them of queued\r\n * entries.\r\n *\r\n * @private\r\n * @returns {boolean} Returns \"true\" if any observer has detected changes in\r\n * dimensions of it's elements.\r\n */\r\n ResizeObserverController.prototype.updateObservers_ = function () {\r\n // Collect observers that have active observations.\r\n var activeObservers = this.observers_.filter(function (observer) {\r\n return observer.gatherActive(), observer.hasActive();\r\n });\r\n // Deliver notifications in a separate cycle in order to avoid any\r\n // collisions between observers, e.g. when multiple instances of\r\n // ResizeObserver are tracking the same element and the callback of one\r\n // of them changes content dimensions of the observed target. Sometimes\r\n // this may result in notifications being blocked for the rest of observers.\r\n activeObservers.forEach(function (observer) { return observer.broadcastActive(); });\r\n return activeObservers.length > 0;\r\n };\r\n /**\r\n * Initializes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.connect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already added.\r\n if (!isBrowser || this.connected_) {\r\n return;\r\n }\r\n // Subscription to the \"Transitionend\" event is used as a workaround for\r\n // delayed transitions. This way it's possible to capture at least the\r\n // final state of an element.\r\n document.addEventListener('transitionend', this.onTransitionEnd_);\r\n window.addEventListener('resize', this.refresh);\r\n if (mutationObserverSupported) {\r\n this.mutationsObserver_ = new MutationObserver(this.refresh);\r\n this.mutationsObserver_.observe(document, {\r\n attributes: true,\r\n childList: true,\r\n characterData: true,\r\n subtree: true\r\n });\r\n }\r\n else {\r\n document.addEventListener('DOMSubtreeModified', this.refresh);\r\n this.mutationEventsAdded_ = true;\r\n }\r\n this.connected_ = true;\r\n };\r\n /**\r\n * Removes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.disconnect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already removed.\r\n if (!isBrowser || !this.connected_) {\r\n return;\r\n }\r\n document.removeEventListener('transitionend', this.onTransitionEnd_);\r\n window.removeEventListener('resize', this.refresh);\r\n if (this.mutationsObserver_) {\r\n this.mutationsObserver_.disconnect();\r\n }\r\n if (this.mutationEventsAdded_) {\r\n document.removeEventListener('DOMSubtreeModified', this.refresh);\r\n }\r\n this.mutationsObserver_ = null;\r\n this.mutationEventsAdded_ = false;\r\n this.connected_ = false;\r\n };\r\n /**\r\n * \"Transitionend\" event handler.\r\n *\r\n * @private\r\n * @param {TransitionEvent} event\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {\r\n var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;\r\n // Detect whether transition may affect dimensions of an element.\r\n var isReflowProperty = transitionKeys.some(function (key) {\r\n return !!~propertyName.indexOf(key);\r\n });\r\n if (isReflowProperty) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Returns instance of the ResizeObserverController.\r\n *\r\n * @returns {ResizeObserverController}\r\n */\r\n ResizeObserverController.getInstance = function () {\r\n if (!this.instance_) {\r\n this.instance_ = new ResizeObserverController();\r\n }\r\n return this.instance_;\r\n };\r\n /**\r\n * Holds reference to the controller's instance.\r\n *\r\n * @private {ResizeObserverController}\r\n */\r\n ResizeObserverController.instance_ = null;\r\n return ResizeObserverController;\r\n}());\n\n/**\r\n * Defines non-writable/enumerable properties of the provided target object.\r\n *\r\n * @param {Object} target - Object for which to define properties.\r\n * @param {Object} props - Properties to be defined.\r\n * @returns {Object} Target object.\r\n */\r\nvar defineConfigurable = (function (target, props) {\r\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\r\n var key = _a[_i];\r\n Object.defineProperty(target, key, {\r\n value: props[key],\r\n enumerable: false,\r\n writable: false,\r\n configurable: true\r\n });\r\n }\r\n return target;\r\n});\n\n/**\r\n * Returns the global object associated with provided element.\r\n *\r\n * @param {Object} target\r\n * @returns {Object}\r\n */\r\nvar getWindowOf = (function (target) {\r\n // Assume that the element is an instance of Node, which means that it\r\n // has the \"ownerDocument\" property from which we can retrieve a\r\n // corresponding global object.\r\n var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;\r\n // Return the local global object if it's not possible extract one from\r\n // provided element.\r\n return ownerGlobal || global$1;\r\n});\n\n// Placeholder of an empty content rectangle.\r\nvar emptyRect = createRectInit(0, 0, 0, 0);\r\n/**\r\n * Converts provided string to a number.\r\n *\r\n * @param {number|string} value\r\n * @returns {number}\r\n */\r\nfunction toFloat(value) {\r\n return parseFloat(value) || 0;\r\n}\r\n/**\r\n * Extracts borders size from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @param {...string} positions - Borders positions (top, right, ...)\r\n * @returns {number}\r\n */\r\nfunction getBordersSize(styles) {\r\n var positions = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n positions[_i - 1] = arguments[_i];\r\n }\r\n return positions.reduce(function (size, position) {\r\n var value = styles['border-' + position + '-width'];\r\n return size + toFloat(value);\r\n }, 0);\r\n}\r\n/**\r\n * Extracts paddings sizes from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @returns {Object} Paddings box.\r\n */\r\nfunction getPaddings(styles) {\r\n var positions = ['top', 'right', 'bottom', 'left'];\r\n var paddings = {};\r\n for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {\r\n var position = positions_1[_i];\r\n var value = styles['padding-' + position];\r\n paddings[position] = toFloat(value);\r\n }\r\n return paddings;\r\n}\r\n/**\r\n * Calculates content rectangle of provided SVG element.\r\n *\r\n * @param {SVGGraphicsElement} target - Element content rectangle of which needs\r\n * to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getSVGContentRect(target) {\r\n var bbox = target.getBBox();\r\n return createRectInit(0, 0, bbox.width, bbox.height);\r\n}\r\n/**\r\n * Calculates content rectangle of provided HTMLElement.\r\n *\r\n * @param {HTMLElement} target - Element for which to calculate the content rectangle.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getHTMLElementContentRect(target) {\r\n // Client width & height properties can't be\r\n // used exclusively as they provide rounded values.\r\n var clientWidth = target.clientWidth, clientHeight = target.clientHeight;\r\n // By this condition we can catch all non-replaced inline, hidden and\r\n // detached elements. Though elements with width & height properties less\r\n // than 0.5 will be discarded as well.\r\n //\r\n // Without it we would need to implement separate methods for each of\r\n // those cases and it's not possible to perform a precise and performance\r\n // effective test for hidden elements. E.g. even jQuery's ':visible' filter\r\n // gives wrong results for elements with width & height less than 0.5.\r\n if (!clientWidth && !clientHeight) {\r\n return emptyRect;\r\n }\r\n var styles = getWindowOf(target).getComputedStyle(target);\r\n var paddings = getPaddings(styles);\r\n var horizPad = paddings.left + paddings.right;\r\n var vertPad = paddings.top + paddings.bottom;\r\n // Computed styles of width & height are being used because they are the\r\n // only dimensions available to JS that contain non-rounded values. It could\r\n // be possible to utilize the getBoundingClientRect if only it's data wasn't\r\n // affected by CSS transformations let alone paddings, borders and scroll bars.\r\n var width = toFloat(styles.width), height = toFloat(styles.height);\r\n // Width & height include paddings and borders when the 'border-box' box\r\n // model is applied (except for IE).\r\n if (styles.boxSizing === 'border-box') {\r\n // Following conditions are required to handle Internet Explorer which\r\n // doesn't include paddings and borders to computed CSS dimensions.\r\n //\r\n // We can say that if CSS dimensions + paddings are equal to the \"client\"\r\n // properties then it's either IE, and thus we don't need to subtract\r\n // anything, or an element merely doesn't have paddings/borders styles.\r\n if (Math.round(width + horizPad) !== clientWidth) {\r\n width -= getBordersSize(styles, 'left', 'right') + horizPad;\r\n }\r\n if (Math.round(height + vertPad) !== clientHeight) {\r\n height -= getBordersSize(styles, 'top', 'bottom') + vertPad;\r\n }\r\n }\r\n // Following steps can't be applied to the document's root element as its\r\n // client[Width/Height] properties represent viewport area of the window.\r\n // Besides, it's as well not necessary as the itself neither has\r\n // rendered scroll bars nor it can be clipped.\r\n if (!isDocumentElement(target)) {\r\n // In some browsers (only in Firefox, actually) CSS width & height\r\n // include scroll bars size which can be removed at this step as scroll\r\n // bars are the only difference between rounded dimensions + paddings\r\n // and \"client\" properties, though that is not always true in Chrome.\r\n var vertScrollbar = Math.round(width + horizPad) - clientWidth;\r\n var horizScrollbar = Math.round(height + vertPad) - clientHeight;\r\n // Chrome has a rather weird rounding of \"client\" properties.\r\n // E.g. for an element with content width of 314.2px it sometimes gives\r\n // the client width of 315px and for the width of 314.7px it may give\r\n // 314px. And it doesn't happen all the time. So just ignore this delta\r\n // as a non-relevant.\r\n if (Math.abs(vertScrollbar) !== 1) {\r\n width -= vertScrollbar;\r\n }\r\n if (Math.abs(horizScrollbar) !== 1) {\r\n height -= horizScrollbar;\r\n }\r\n }\r\n return createRectInit(paddings.left, paddings.top, width, height);\r\n}\r\n/**\r\n * Checks whether provided element is an instance of the SVGGraphicsElement.\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\nvar isSVGGraphicsElement = (function () {\r\n // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement\r\n // interface.\r\n if (typeof SVGGraphicsElement !== 'undefined') {\r\n return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };\r\n }\r\n // If it's so, then check that element is at least an instance of the\r\n // SVGElement and that it has the \"getBBox\" method.\r\n // eslint-disable-next-line no-extra-parens\r\n return function (target) { return (target instanceof getWindowOf(target).SVGElement &&\r\n typeof target.getBBox === 'function'); };\r\n})();\r\n/**\r\n * Checks whether provided element is a document element ().\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\nfunction isDocumentElement(target) {\r\n return target === getWindowOf(target).document.documentElement;\r\n}\r\n/**\r\n * Calculates an appropriate content rectangle for provided html or svg element.\r\n *\r\n * @param {Element} target - Element content rectangle of which needs to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getContentRect(target) {\r\n if (!isBrowser) {\r\n return emptyRect;\r\n }\r\n if (isSVGGraphicsElement(target)) {\r\n return getSVGContentRect(target);\r\n }\r\n return getHTMLElementContentRect(target);\r\n}\r\n/**\r\n * Creates rectangle with an interface of the DOMRectReadOnly.\r\n * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly\r\n *\r\n * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.\r\n * @returns {DOMRectReadOnly}\r\n */\r\nfunction createReadOnlyRect(_a) {\r\n var x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n // If DOMRectReadOnly is available use it as a prototype for the rectangle.\r\n var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;\r\n var rect = Object.create(Constr.prototype);\r\n // Rectangle's properties are not writable and non-enumerable.\r\n defineConfigurable(rect, {\r\n x: x, y: y, width: width, height: height,\r\n top: y,\r\n right: x + width,\r\n bottom: height + y,\r\n left: x\r\n });\r\n return rect;\r\n}\r\n/**\r\n * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.\r\n * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit\r\n *\r\n * @param {number} x - X coordinate.\r\n * @param {number} y - Y coordinate.\r\n * @param {number} width - Rectangle's width.\r\n * @param {number} height - Rectangle's height.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction createRectInit(x, y, width, height) {\r\n return { x: x, y: y, width: width, height: height };\r\n}\n\n/**\r\n * Class that is responsible for computations of the content rectangle of\r\n * provided DOM element and for keeping track of it's changes.\r\n */\r\nvar ResizeObservation = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObservation.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n */\r\n function ResizeObservation(target) {\r\n /**\r\n * Broadcasted width of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastWidth = 0;\r\n /**\r\n * Broadcasted height of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastHeight = 0;\r\n /**\r\n * Reference to the last observed content rectangle.\r\n *\r\n * @private {DOMRectInit}\r\n */\r\n this.contentRect_ = createRectInit(0, 0, 0, 0);\r\n this.target = target;\r\n }\r\n /**\r\n * Updates content rectangle and tells whether it's width or height properties\r\n * have changed since the last broadcast.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObservation.prototype.isActive = function () {\r\n var rect = getContentRect(this.target);\r\n this.contentRect_ = rect;\r\n return (rect.width !== this.broadcastWidth ||\r\n rect.height !== this.broadcastHeight);\r\n };\r\n /**\r\n * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data\r\n * from the corresponding properties of the last observed content rectangle.\r\n *\r\n * @returns {DOMRectInit} Last observed content rectangle.\r\n */\r\n ResizeObservation.prototype.broadcastRect = function () {\r\n var rect = this.contentRect_;\r\n this.broadcastWidth = rect.width;\r\n this.broadcastHeight = rect.height;\r\n return rect;\r\n };\r\n return ResizeObservation;\r\n}());\n\nvar ResizeObserverEntry = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObserverEntry.\r\n *\r\n * @param {Element} target - Element that is being observed.\r\n * @param {DOMRectInit} rectInit - Data of the element's content rectangle.\r\n */\r\n function ResizeObserverEntry(target, rectInit) {\r\n var contentRect = createReadOnlyRect(rectInit);\r\n // According to the specification following properties are not writable\r\n // and are also not enumerable in the native implementation.\r\n //\r\n // Property accessors are not being used as they'd require to define a\r\n // private WeakMap storage which may cause memory leaks in browsers that\r\n // don't support this type of collections.\r\n defineConfigurable(this, { target: target, contentRect: contentRect });\r\n }\r\n return ResizeObserverEntry;\r\n}());\n\nvar ResizeObserverSPI = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback function that is invoked\r\n * when one of the observed elements changes it's content dimensions.\r\n * @param {ResizeObserverController} controller - Controller instance which\r\n * is responsible for the updates of observer.\r\n * @param {ResizeObserver} callbackCtx - Reference to the public\r\n * ResizeObserver instance which will be passed to callback function.\r\n */\r\n function ResizeObserverSPI(callback, controller, callbackCtx) {\r\n /**\r\n * Collection of resize observations that have detected changes in dimensions\r\n * of elements.\r\n *\r\n * @private {Array}\r\n */\r\n this.activeObservations_ = [];\r\n /**\r\n * Registry of the ResizeObservation instances.\r\n *\r\n * @private {Map}\r\n */\r\n this.observations_ = new MapShim();\r\n if (typeof callback !== 'function') {\r\n throw new TypeError('The callback provided as parameter 1 is not a function.');\r\n }\r\n this.callback_ = callback;\r\n this.controller_ = controller;\r\n this.callbackCtx_ = callbackCtx;\r\n }\r\n /**\r\n * Starts observing provided element.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.observe = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is already being observed.\r\n if (observations.has(target)) {\r\n return;\r\n }\r\n observations.set(target, new ResizeObservation(target));\r\n this.controller_.addObserver(this);\r\n // Force the update of observations.\r\n this.controller_.refresh();\r\n };\r\n /**\r\n * Stops observing provided element.\r\n *\r\n * @param {Element} target - Element to stop observing.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.unobserve = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is not being observed.\r\n if (!observations.has(target)) {\r\n return;\r\n }\r\n observations.delete(target);\r\n if (!observations.size) {\r\n this.controller_.removeObserver(this);\r\n }\r\n };\r\n /**\r\n * Stops observing all elements.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.disconnect = function () {\r\n this.clearActive();\r\n this.observations_.clear();\r\n this.controller_.removeObserver(this);\r\n };\r\n /**\r\n * Collects observation instances the associated element of which has changed\r\n * it's content rectangle.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.gatherActive = function () {\r\n var _this = this;\r\n this.clearActive();\r\n this.observations_.forEach(function (observation) {\r\n if (observation.isActive()) {\r\n _this.activeObservations_.push(observation);\r\n }\r\n });\r\n };\r\n /**\r\n * Invokes initial callback function with a list of ResizeObserverEntry\r\n * instances collected from active resize observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.broadcastActive = function () {\r\n // Do nothing if observer doesn't have active observations.\r\n if (!this.hasActive()) {\r\n return;\r\n }\r\n var ctx = this.callbackCtx_;\r\n // Create ResizeObserverEntry instance for every active observation.\r\n var entries = this.activeObservations_.map(function (observation) {\r\n return new ResizeObserverEntry(observation.target, observation.broadcastRect());\r\n });\r\n this.callback_.call(ctx, entries, ctx);\r\n this.clearActive();\r\n };\r\n /**\r\n * Clears the collection of active observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.clearActive = function () {\r\n this.activeObservations_.splice(0);\r\n };\r\n /**\r\n * Tells whether observer has active observations.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObserverSPI.prototype.hasActive = function () {\r\n return this.activeObservations_.length > 0;\r\n };\r\n return ResizeObserverSPI;\r\n}());\n\n// Registry of internal observers. If WeakMap is not available use current shim\r\n// for the Map collection as it has all required methods and because WeakMap\r\n// can't be fully polyfilled anyway.\r\nvar observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();\r\n/**\r\n * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation\r\n * exposing only those methods and properties that are defined in the spec.\r\n */\r\nvar ResizeObserver = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback that is invoked when\r\n * dimensions of the observed elements change.\r\n */\r\n function ResizeObserver(callback) {\r\n if (!(this instanceof ResizeObserver)) {\r\n throw new TypeError('Cannot call a class as a function.');\r\n }\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n var controller = ResizeObserverController.getInstance();\r\n var observer = new ResizeObserverSPI(callback, controller, this);\r\n observers.set(this, observer);\r\n }\r\n return ResizeObserver;\r\n}());\r\n// Expose public methods of ResizeObserver.\r\n[\r\n 'observe',\r\n 'unobserve',\r\n 'disconnect'\r\n].forEach(function (method) {\r\n ResizeObserver.prototype[method] = function () {\r\n var _a;\r\n return (_a = observers.get(this))[method].apply(_a, arguments);\r\n };\r\n});\n\nvar index = (function () {\r\n // Export existing implementation if available.\r\n if (typeof global$1.ResizeObserver !== 'undefined') {\r\n return global$1.ResizeObserver;\r\n }\r\n return ResizeObserver;\r\n})();\n\nexport default index;\n","var camel2hyphen = require('string-convert/camel2hyphen');\n\nvar isDimension = function (feature) {\n var re = /[height|width]$/;\n return re.test(feature);\n};\n\nvar obj2mq = function (obj) {\n var mq = '';\n var features = Object.keys(obj);\n features.forEach(function (feature, index) {\n var value = obj[feature];\n feature = camel2hyphen(feature);\n // Add px to dimension features\n if (isDimension(feature) && typeof value === 'number') {\n value = value + 'px';\n }\n if (value === true) {\n mq += feature;\n } else if (value === false) {\n mq += 'not ' + feature;\n } else {\n mq += '(' + feature + ': ' + value + ')';\n }\n if (index < features.length-1) {\n mq += ' and '\n }\n });\n return mq;\n};\n\nvar json2mq = function (query) {\n var mq = '';\n if (typeof query === 'string') {\n return query;\n }\n // Handling array of media queries\n if (query instanceof Array) {\n query.forEach(function (q, index) {\n mq += obj2mq(q);\n if (index < query.length-1) {\n mq += ', '\n }\n });\n return mq;\n }\n // Handling single media query\n return obj2mq(query);\n};\n\nmodule.exports = json2mq;","var camel2hyphen = function (str) {\n return str\n .replace(/[A-Z]/g, function (match) {\n return '-' + match.toLowerCase();\n })\n .toLowerCase();\n};\n\nmodule.exports = camel2hyphen;","import React from \"react\";\n\nlet defaultProps = {\n accessibility: true,\n adaptiveHeight: false,\n afterChange: null,\n appendDots: dots =>
      {dots}
    ,\n arrows: true,\n autoplay: false,\n autoplaySpeed: 3000,\n beforeChange: null,\n centerMode: false,\n centerPadding: \"50px\",\n className: \"\",\n cssEase: \"ease\",\n classes: {\n arrow: null,\n prev: null,\n next: null,\n slide: null,\n disabled: null,\n track: null,\n slider: null,\n list: null,\n dot: null,\n dots: null,\n activeDot: null,\n cloned: null\n },\n customPaging: i => ,\n dots: false,\n dotsClass: \"slick-dots\",\n draggable: true,\n easing: \"linear\",\n edgeFriction: 0.35,\n fade: false,\n focusOnSelect: false,\n infinite: true,\n initialSlide: 0,\n lazyLoad: null,\n nextArrow: null,\n onEdge: null,\n onInit: null,\n onLazyLoadError: null,\n onReInit: null,\n pauseOnDotsHover: false,\n pauseOnFocus: false,\n pauseOnHover: true,\n prevArrow: null,\n responsive: null,\n rows: 1,\n rtl: false,\n slide: \"div\",\n slidesPerRow: 1,\n slidesToScroll: 1,\n slidesToShow: 1,\n speed: 500,\n swipe: true,\n swipeEvent: null,\n swipeToSlide: false,\n touchMove: true,\n touchThreshold: 5,\n useCSS: true,\n useTransform: true,\n variableWidth: false,\n vertical: false,\n waitForAnimate: true\n};\n\nexport default defaultProps;\n","var MediaQueryDispatch = require('./MediaQueryDispatch');\nmodule.exports = new MediaQueryDispatch();\n","var MediaQuery = require('./MediaQuery');\nvar Util = require('./Util');\nvar each = Util.each;\nvar isFunction = Util.isFunction;\nvar isArray = Util.isArray;\n\n/**\n * Allows for registration of query handlers.\n * Manages the query handler's state and is responsible for wiring up browser events\n *\n * @constructor\n */\nfunction MediaQueryDispatch () {\n if(!window.matchMedia) {\n throw new Error('matchMedia not present, legacy browsers require a polyfill');\n }\n\n this.queries = {};\n this.browserIsIncapable = !window.matchMedia('only all').matches;\n}\n\nMediaQueryDispatch.prototype = {\n\n constructor : MediaQueryDispatch,\n\n /**\n * Registers a handler for the given media query\n *\n * @param {string} q the media query\n * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers\n * @param {function} options.match fired when query matched\n * @param {function} [options.unmatch] fired when a query is no longer matched\n * @param {function} [options.setup] fired when handler first triggered\n * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched\n * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers\n */\n register : function(q, options, shouldDegrade) {\n var queries = this.queries,\n isUnconditional = shouldDegrade && this.browserIsIncapable;\n\n if(!queries[q]) {\n queries[q] = new MediaQuery(q, isUnconditional);\n }\n\n //normalise to object in an array\n if(isFunction(options)) {\n options = { match : options };\n }\n if(!isArray(options)) {\n options = [options];\n }\n each(options, function(handler) {\n if (isFunction(handler)) {\n handler = { match : handler };\n }\n queries[q].addHandler(handler);\n });\n\n return this;\n },\n\n /**\n * unregisters a query and all it's handlers, or a specific handler for a query\n *\n * @param {string} q the media query to target\n * @param {object || function} [handler] specific handler to unregister\n */\n unregister : function(q, handler) {\n var query = this.queries[q];\n\n if(query) {\n if(handler) {\n query.removeHandler(handler);\n }\n else {\n query.clear();\n delete this.queries[q];\n }\n }\n\n return this;\n }\n};\n\nmodule.exports = MediaQueryDispatch;\n","var QueryHandler = require('./QueryHandler');\nvar each = require('./Util').each;\n\n/**\n * Represents a single media query, manages it's state and registered handlers for this query\n *\n * @constructor\n * @param {string} query the media query string\n * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design\n */\nfunction MediaQuery(query, isUnconditional) {\n this.query = query;\n this.isUnconditional = isUnconditional;\n this.handlers = [];\n this.mql = window.matchMedia(query);\n\n var self = this;\n this.listener = function(mql) {\n // Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly\n self.mql = mql.currentTarget || mql;\n self.assess();\n };\n this.mql.addListener(this.listener);\n}\n\nMediaQuery.prototype = {\n\n constuctor : MediaQuery,\n\n /**\n * add a handler for this query, triggering if already active\n *\n * @param {object} handler\n * @param {function} handler.match callback for when query is activated\n * @param {function} [handler.unmatch] callback for when query is deactivated\n * @param {function} [handler.setup] callback for immediate execution when a query handler is registered\n * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?\n */\n addHandler : function(handler) {\n var qh = new QueryHandler(handler);\n this.handlers.push(qh);\n\n this.matches() && qh.on();\n },\n\n /**\n * removes the given handler from the collection, and calls it's destroy methods\n *\n * @param {object || function} handler the handler to remove\n */\n removeHandler : function(handler) {\n var handlers = this.handlers;\n each(handlers, function(h, i) {\n if(h.equals(handler)) {\n h.destroy();\n return !handlers.splice(i,1); //remove from array and exit each early\n }\n });\n },\n\n /**\n * Determine whether the media query should be considered a match\n *\n * @return {Boolean} true if media query can be considered a match, false otherwise\n */\n matches : function() {\n return this.mql.matches || this.isUnconditional;\n },\n\n /**\n * Clears all handlers and unbinds events\n */\n clear : function() {\n each(this.handlers, function(handler) {\n handler.destroy();\n });\n this.mql.removeListener(this.listener);\n this.handlers.length = 0; //clear array\n },\n\n /*\n * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match\n */\n assess : function() {\n var action = this.matches() ? 'on' : 'off';\n\n each(this.handlers, function(handler) {\n handler[action]();\n });\n }\n};\n\nmodule.exports = MediaQuery;\n","/**\n * Delegate to handle a media query being matched and unmatched.\n *\n * @param {object} options\n * @param {function} options.match callback for when the media query is matched\n * @param {function} [options.unmatch] callback for when the media query is unmatched\n * @param {function} [options.setup] one-time callback triggered the first time a query is matched\n * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?\n * @constructor\n */\nfunction QueryHandler(options) {\n this.options = options;\n !options.deferSetup && this.setup();\n}\n\nQueryHandler.prototype = {\n\n constructor : QueryHandler,\n\n /**\n * coordinates setup of the handler\n *\n * @function\n */\n setup : function() {\n if(this.options.setup) {\n this.options.setup();\n }\n this.initialised = true;\n },\n\n /**\n * coordinates setup and triggering of the handler\n *\n * @function\n */\n on : function() {\n !this.initialised && this.setup();\n this.options.match && this.options.match();\n },\n\n /**\n * coordinates the unmatch event for the handler\n *\n * @function\n */\n off : function() {\n this.options.unmatch && this.options.unmatch();\n },\n\n /**\n * called when a handler is to be destroyed.\n * delegates to the destroy or unmatch callbacks, depending on availability.\n *\n * @function\n */\n destroy : function() {\n this.options.destroy ? this.options.destroy() : this.off();\n },\n\n /**\n * determines equality by reference.\n * if object is supplied compare options, if function, compare match callback\n *\n * @function\n * @param {object || function} [target] the target for comparison\n */\n equals : function(target) {\n return this.options === target || this.options.match === target;\n }\n\n};\n\nmodule.exports = QueryHandler;\n","/**\n * Helper function for iterating over a collection\n *\n * @param collection\n * @param fn\n */\nfunction each(collection, fn) {\n var i = 0,\n length = collection.length,\n cont;\n\n for(i; i < length; i++) {\n cont = fn(collection[i], i);\n if(cont === false) {\n break; //allow early exit\n }\n }\n}\n\n/**\n * Helper function for determining whether target object is an array\n *\n * @param target the object under test\n * @return {Boolean} true if array, false otherwise\n */\nfunction isArray(target) {\n return Object.prototype.toString.apply(target) === '[object Array]';\n}\n\n/**\n * Helper function for determining whether target object is a function\n *\n * @param target the object under test\n * @return {Boolean} true if function, false otherwise\n */\nfunction isFunction(target) {\n return typeof target === 'function';\n}\n\nmodule.exports = {\n isFunction : isFunction,\n isArray : isArray,\n each : each\n};\n"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://Slider/webpack/universalModuleDefinition","webpack://Slider/webpack/bootstrap","webpack://Slider/./src/index.js","webpack://Slider/./src/slider.js","webpack://Slider/external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack://Slider/./src/inner-slider.js","webpack://Slider/./src/initial-state.js","webpack://Slider/./node_modules/lodash.debounce/index.js","webpack://Slider/(webpack)/buildin/global.js","webpack://Slider/./node_modules/classnames/index.js","webpack://Slider/./src/utils/innerSliderUtils.js","webpack://Slider/./src/track.js","webpack://Slider/./src/dots.js","webpack://Slider/./src/arrows.js","webpack://Slider/./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js","webpack://Slider/./node_modules/json2mq/index.js","webpack://Slider/./node_modules/string-convert/camel2hyphen.js","webpack://Slider/./src/default-props.js","webpack://Slider/./node_modules/enquire.js/src/index.js","webpack://Slider/./node_modules/enquire.js/src/MediaQueryDispatch.js","webpack://Slider/./node_modules/enquire.js/src/MediaQuery.js","webpack://Slider/./node_modules/enquire.js/src/QueryHandler.js","webpack://Slider/./node_modules/enquire.js/src/Util.js"],"names":["Slider","_typeof","o","Symbol","iterator","constructor","prototype","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","ownKeys","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","_objectSpread","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_classCallCheck","a","TypeError","_defineProperties","configurable","writable","_toPropertyKey","key","_createClass","_callSuper","_getPrototypeOf","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","_assertThisInitialized","ReferenceError","Boolean","valueOf","setPrototypeOf","getPrototypeOf","__proto__","_inherits","create","value","_setPrototypeOf","i","_toPrimitive","toPrimitive","String","Number","enquire","canUseDOM","require","_React$Component","props","_this","ref","innerSlider","slickPrev","slickNext","slide","dontAnimate","undefined","slickGoTo","pause","autoPlay","state","breakpoint","_responsiveMediaHandlers","media","query","handler","register","componentDidMount","_this2","responsive","breakpoints","map","breakpt","sort","x","y","index","bQuery","json2mq","minWidth","maxWidth","setState","slice","componentWillUnmount","obj","unregister","render","_this3","settings","newProps","resp","defaultProps","centerMode","slidesToScroll","process","console","warn","concat","fade","slidesToShow","children","React","Children","toArray","child","trim","variableWidth","rows","slidesPerRow","newChildren","currentWidth","newSlide","j","row","k","style","width","cloneElement","tabIndex","display","createElement","className","unslick","Fragment","InnerSlider","innerSliderRefHandler","Component","_excluded","_objectWithoutProperties","_objectWithoutPropertiesLoose","s","includes","propertyIsEnumerable","list","track","adaptiveHeight","elem","querySelector","currentSlide","height","getHeight","onInit","lazyLoad","slidesToLoad","getOnDemandLazySlides","prevState","lazyLoadedList","onLazyLoad","spec","listRef","trackRef","updateState","adaptHeight","autoplay","lazyLoadTimer","setInterval","progressiveLazyLoad","ro","ResizeObserver","animating","onWindowResized","callbackTimers","setTimeout","speed","observe","document","querySelectorAll","Array","onfocus","pauseOnFocus","onSlideFocus","onblur","onSlideBlur","window","addEventListener","attachEvent","animationEndCallback","clearTimeout","clearInterval","timer","removeEventListener","detachEvent","autoplayTimer","disconnect","prevProps","checkImagesLoad","onReInit","setTrackStyle","didPropsChange","count","changeSlide","message","debouncedResize","cancel","debounce","resizeWindow","isTrackMounted","node","callback","updatedState","initializedState","slideIndex","targetLeft","getTrackLeft","left","trackStyle","getTrackCSS","trackWidth","trackLeft","childrenWidths","preClones","getPreClones","slideCount","postClones","getPostClones","childrenCount","slideWidth","images","imagesCount","loadedCount","image","onclick","parentNode","focus","prevClickHandler","onload","onerror","onLazyLoadError","indexOf","_this$props","asNavFor","beforeChange","afterChange","_slideHandler","slideHandler","useCSS","nextState","waitForAnimate","asNavForIndex","firstBatch","options","targetSlide","focusOnSelect","nodes","clickable","stopPropagation","preventDefault","dir","keyHandler","accessibility","rtl","event","returnValue","ontouchmove","verticalSwiping","disableBodyScroll","swipeStart","swipe","draggable","swipeMove","swipeEnd","triggerSlideHandler","enableBodyScroll","isNaN","nextIndex","canGoNext","playType","autoplaying","play","autoplaySpeed","pauseType","_this$props$classes","_this$props$classes2","classnames","classes","slider","vertical","trackProps","extractObject","pauseOnHover","onMouseEnter","onTrackOver","onMouseLeave","onTrackLeave","onMouseOver","selectHandler","dots","dotProps","pauseOnDotsHover","clickHandler","onDotsLeave","onDotsOver","Dots","prevArrow","nextArrow","arrowProps","arrows","PrevArrow","NextArrow","verticalHeightStyle","listHeight","centerPaddingStyle","padding","centerPadding","listStyle","touchMove","listProps","onClick","onMouseDown","onMouseMove","dragging","onMouseUp","onTouchStart","onTouchMove","onTouchEnd","touchEnd","onTouchCancel","onKeyDown","innerSliderProps","_this$props$classes3","listRefHandler","Track","trackRefHandler","initialState","initialSlide","ssrState","ssrInit","_i3","_Object$keys","currentDirection","currentLeft","direction","edgeDragged","initialized","listWidth","scrolling","slideHeight","swipeLeft","swiped","swiping","touchObject","startX","startY","curX","curY","clamp","number","lowerBound","upperBound","Math","max","min","safePreventDefault","passiveEvents","_reactName","onDemandSlides","startIndex","lazyStartIndex","endIndex","lazyEndIndex","getRequiredLazySlides","requiredSlides","lazySlidesOnLeft","lazySlidesOnRight","floor","parseInt","getWidth","offsetWidth","offsetHeight","getSwipeDirection","xDist","yDist","swipeAngle","atan2","round","PI","abs","canGo","infinite","newObject","listNode","ceil","trackNode","centerPaddingAdj","animationSlide","finalSlide","animationLeft","finalLeft","getTrackAnimateCSS","indexOffset","previousInt","slideOffset","unevenOffset","previousTargetSlide","siblingDirection","target","tagName","match","keyCode","type","touches","pageX","clientX","pageY","clientY","swipeToSlide","edgeFriction","onEdge","swipeEvent","curLeft","swipeLength","sqrt","pow","verticalSwipeLength","positionOffset","dotCount","swipeDirection","touchSwipeLength","touchThreshold","onSwipe","minSwipe","activeSlide","getSlideCount","checkNavigable","getNavigableIndexes","counter","indexes","navigables","prevNavigable","centerOffset","swipedSlide","slickList","slides","from","every","offsetLeft","offsetTop","currentIndex","slidesTraversed","dataset","checkSpecKeys","keysArray","reduce","error","trackHeight","trackChildren","getTotalSlides","opacity","transition","WebkitTransition","useTransform","WebkitTransform","transform","msTransform","marginLeft","marginTop","cssEase","verticalOffset","slidesToOffset","targetSlideIndex","trackElem","childNodes","slidesOnRight","slidesOnLeft","_ref","right","_ref2","getSlideClasses","_spec$classes","_spec$classes2","slickActive","slickCenter","slickCloned","focusedSlide","slickCurrent","cloned","getSlideStyle","position","top","getKey","fallbackKey","shouldOmitLazy","omitLazyForSlides","renderSlides","preCloneSlides","postCloneSlides","_spec$classes3","childOnClickOptions","childStyle","slideClass","slideClasses","outline","preCloneNo","_spec$classes4","_spec$classes5","reverse","_React$PureComponent","_len","args","_key","mouseEvents","handleRef","PureComponent","getDotCount","_rightBound","rightBound","_leftBound","leftBound","dot","activeDot","dotOptions","customPaging","appendDots","dotsClass","_this$props$classes4","prevClasses","prevHandler","disabled","prevArrowProps","arrow","prev","customProps","_React$PureComponent2","_this$props$classes7","_this$props$classes8","nextClasses","nextHandler","_this$props$classes5","_this$props$classes6","nextArrowProps","next","easing"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA;AAAA;AAA8B;AAEfA,8GAAM,E;;;;;;;ACFrB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAa;;AAAA,SAAAC,QAAAC,CAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,CAAA,kBAAAA,CAAA,gBAAAA,CAAA,WAAAA,CAAA,yBAAAC,MAAA,IAAAD,CAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,CAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,CAAA,KAAAD,OAAA,CAAAC,CAAA;AAAA,SAAAK,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CA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;AAClB,WAAW,OAAO,YAAY;AAC9B,WAAW,QAAQ;AACnB;AACA,WAAW,OAAO;AAClB;AACA,WAAW,QAAQ;AACnB;AACA,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,8CAA8C,kBAAkB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,EAAE;AACb,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACxXA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,gBAAgB;;AAEhB;AACA;;AAEA,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,KAAK,KAA6B;AAClC;AACA;AACA,EAAE,UAAU,IAA4E;AACxF;AACA,EAAE,iCAAqB,EAAE,mCAAE;AAC3B;AACA,GAAG;AAAA,oGAAC;AACJ,EAAE,MAAM,EAEN;AACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5EyB;AAEnB,SAASsB,KAAKA,CAACC,MAAM,EAAEC,UAAU,EAAEC,UAAU,EAAE;EACpD,OAAOC,IAAI,CAACC,GAAG,CAACH,UAAU,EAAEE,IAAI,CAACE,GAAG,CAACL,MAAM,EAAEE,UAAU,CAAC,CAAC;AAC3D;AAEO,IAAMI,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAGrG,KAAK,EAAI;EACzC,IAAMsG,aAAa,GAAG,CAAC,cAAc,EAAE,aAAa,EAAE,SAAS,CAAC;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qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,mBAAmB,SAAS;AAC5B,mBAAmB,EAAE;AACrB,qBAAqB;AACrB;AACA;AACA,iCAAiC,YAAY;AAC7C,mDAAmD,gBAAgB;AACnE;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,CAAC;;AAED;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,gCAAgC,6BAA6B,EAAE,aAAa;AAC5G,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,kBAAkB;AACjC,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,qDAAqD,mCAAmC,EAAE;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,gBAAgB;AAC/B,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa,OAAO;AACpB;AACA;AACA,6CAA6C,gBAAgB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B,WAAW,UAAU;AACrB,aAAa;AACb;AACA;AACA;AACA,oBAAoB,uBAAuB;AAC3C;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,WAAW,oBAAoB;AAC/B,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,6CAA6C,yBAAyB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,mBAAmB;AAC9B;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,kCAAkC,iEAAiE;AACnG;AACA;AACA;AACA;AACA,8BAA8B;AAC9B,8CAA8C;AAC9C,CAAC;AACD;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,YAAY;AACvB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,aAAa;AACb;AACA;AACA,YAAY;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,2CAA2C;AAC7E;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC;AACA,eAAe,yBAAyB;AACxC;AACA,eAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAEc,oEAAK,EAAC;;;;;;;;AC/5BrB,mBAAmB,mBAAO,CAAC,EAA6B;;AAExD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA,yB;;;;;;AClDA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;;AAEA,8B;;;;;;;ACRA;AAAA;AAAA;AAA0B;AAE1B,IAAI3Z,YAAY,GAAG;EACjB8J,aAAa,EAAE,IAAI;EACnBlH,cAAc,EAAE,KAAK;EACrBiG,WAAW,EAAE,IAAI;EACjBwR,UAAU,EAAE,SAAZA,UAAUA,CAAElO,IAAI;IAAA,oBAAIzL,4CAAA,CAAAmB,aAAA;MAAIL,KAAK,EAAE;QAAEI,OAAO,EAAE;MAAQ;IAAE,GAAEuK,IAAS,CAAC;EAAA;EAChEU,MAAM,EAAE,IAAI;EACZ/I,QAAQ,EAAE,KAAK;EACfoH,aAAa,EAAE,IAAI;EACnBtC,YAAY,EAAE,IAAI;EAClB3I,UAAU,EAAE,KAAK;EACjBmN,aAAa,EAAE,MAAM;EACrBtL,SAAS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A;AACA;AACA;;AAEA;AACA,KAAK;;AAEL;AACA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA,SAAS;AACT,KAAK;;AAEL;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA,iCAAiC;AACjC,KAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;;;;;;;AC5FA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,WAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,eAAe,mBAAmB;AAClC;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;ACzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,UAAU,YAAY;AACtB;AACA;AACA,kBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA","file":"react-slick.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Slider\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"Slider\"] = factory(root[\"React\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__2__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","import Slider from \"./slider\";\n\nexport default Slider;\n","\"use strict\";\n\nimport React from \"react\";\nimport { InnerSlider } from \"./inner-slider\";\nimport json2mq from \"json2mq\";\nimport defaultProps from \"./default-props\";\nimport { canUseDOM } from \"./utils/innerSliderUtils\";\nconst enquire = canUseDOM() && require(\"enquire.js\");\n\nexport default class Slider extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n breakpoint: null\n };\n this._responsiveMediaHandlers = [];\n }\n\n innerSliderRefHandler = ref => (this.innerSlider = ref);\n\n media(query, handler) {\n // javascript handler for css media query\n enquire.register(query, handler);\n this._responsiveMediaHandlers.push({ query, handler });\n }\n\n // handles responsive breakpoints\n componentDidMount() {\n // performance monitoring\n //if (process.env.NODE_ENV !== 'production') {\n //const { whyDidYouUpdate } = require('why-did-you-update')\n //whyDidYouUpdate(React)\n //}\n if (this.props.responsive) {\n let breakpoints = this.props.responsive.map(\n breakpt => breakpt.breakpoint\n );\n // sort them in increasing order of their numerical value\n breakpoints.sort((x, y) => x - y);\n\n breakpoints.forEach((breakpoint, index) => {\n // media query for each breakpoint\n let bQuery;\n if (index === 0) {\n bQuery = json2mq({ minWidth: 0, maxWidth: breakpoint });\n } else {\n bQuery = json2mq({\n minWidth: breakpoints[index - 1] + 1,\n maxWidth: breakpoint\n });\n }\n // when not using server side rendering\n canUseDOM() &&\n this.media(bQuery, () => {\n this.setState({ breakpoint: breakpoint });\n });\n });\n\n // Register media query for full screen. Need to support resize from small to large\n // convert javascript object to media query string\n let query = json2mq({ minWidth: breakpoints.slice(-1)[0] });\n\n canUseDOM() &&\n this.media(query, () => {\n this.setState({ breakpoint: null });\n });\n }\n }\n\n componentWillUnmount() {\n this._responsiveMediaHandlers.forEach(function(obj) {\n enquire.unregister(obj.query, obj.handler);\n });\n }\n\n slickPrev = () => this.innerSlider.slickPrev();\n\n slickNext = () => this.innerSlider.slickNext();\n\n slickGoTo = (slide, dontAnimate = false) =>\n this.innerSlider.slickGoTo(slide, dontAnimate);\n\n slickPause = () => this.innerSlider.pause(\"paused\");\n\n slickPlay = () => this.innerSlider.autoPlay(\"play\");\n\n render() {\n var settings;\n var newProps;\n if (this.state.breakpoint) {\n newProps = this.props.responsive.filter(\n resp => resp.breakpoint === this.state.breakpoint\n );\n settings =\n newProps[0].settings === \"unslick\"\n ? \"unslick\"\n : { ...defaultProps, ...this.props, ...newProps[0].settings };\n } else {\n settings = { ...defaultProps, ...this.props };\n }\n\n // force scrolling by one if centerMode is on\n if (settings.centerMode) {\n if (\n settings.slidesToScroll > 1 &&\n process.env.NODE_ENV !== \"production\"\n ) {\n console.warn(\n `slidesToScroll should be equal to 1 in centerMode, you are using ${settings.slidesToScroll}`\n );\n }\n settings.slidesToScroll = 1;\n }\n // force showing one slide and scrolling by one if the fade mode is on\n if (settings.fade) {\n if (settings.slidesToShow > 1 && process.env.NODE_ENV !== \"production\") {\n console.warn(\n `slidesToShow should be equal to 1 when fade is true, you're using ${settings.slidesToShow}`\n );\n }\n if (\n settings.slidesToScroll > 1 &&\n process.env.NODE_ENV !== \"production\"\n ) {\n console.warn(\n `slidesToScroll should be equal to 1 when fade is true, you're using ${settings.slidesToScroll}`\n );\n }\n settings.slidesToShow = 1;\n settings.slidesToScroll = 1;\n }\n\n // makes sure that children is an array, even when there is only 1 child\n let children = React.Children.toArray(this.props.children);\n\n // Children may contain false or null, so we should filter them\n // children may also contain string filled with spaces (in certain cases where we use jsx strings)\n children = children.filter(child => {\n if (typeof child === \"string\") {\n return !!child.trim();\n }\n return !!child;\n });\n\n // rows and slidesPerRow logic is handled here\n if (\n settings.variableWidth &&\n (settings.rows > 1 || settings.slidesPerRow > 1)\n ) {\n console.warn(\n `variableWidth is not supported in case of rows > 1 or slidesPerRow > 1`\n );\n settings.variableWidth = false;\n }\n let newChildren = [];\n let currentWidth = null;\n for (\n let i = 0;\n i < children.length;\n i += settings.rows * settings.slidesPerRow\n ) {\n let newSlide = [];\n for (\n let j = i;\n j < i + settings.rows * settings.slidesPerRow;\n j += settings.slidesPerRow\n ) {\n let row = [];\n for (let k = j; k < j + settings.slidesPerRow; k += 1) {\n if (settings.variableWidth && children[k].props.style) {\n currentWidth = children[k].props.style.width;\n }\n if (k >= children.length) break;\n row.push(\n React.cloneElement(children[k], {\n key: 100 * i + 10 * j + k,\n tabIndex: -1,\n style: {\n width: `${100 / settings.slidesPerRow}%`,\n display: \"inline-block\"\n }\n })\n );\n }\n newSlide.push(
    {row}
    );\n }\n if (settings.variableWidth) {\n newChildren.push(\n
    \n {newSlide}\n
    \n );\n } else {\n newChildren.push(
    {newSlide}
    );\n }\n }\n\n if (settings === \"unslick\") {\n const className = \"regular slider \" + (this.props.className || \"\");\n return
    {children}
    ;\n } else if (newChildren.length <= settings.slidesToShow) {\n settings.unslick = true;\n }\n return (\n <>\n \n {newChildren}\n \n \n );\n }\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__2__;","\"use strict\";\n\nimport React from \"react\";\nimport initialState from \"./initial-state\";\nimport debounce from \"lodash.debounce\";\nimport classnames from \"classnames\";\nimport {\n getOnDemandLazySlides,\n extractObject,\n initializedState,\n getHeight,\n canGoNext,\n slideHandler,\n changeSlide,\n keyHandler,\n swipeStart,\n swipeMove,\n swipeEnd,\n getPreClones,\n getPostClones,\n getTrackLeft,\n getTrackCSS\n} from \"./utils/innerSliderUtils\";\n\nimport { Track } from \"./track\";\nimport { Dots } from \"./dots\";\nimport { PrevArrow, NextArrow } from \"./arrows\";\nimport ResizeObserver from \"resize-observer-polyfill\";\n\nexport class InnerSlider extends React.Component {\n constructor(props) {\n super(props);\n this.list = null;\n this.track = null;\n this.state = {\n ...initialState,\n currentSlide: this.props.initialSlide,\n slideCount: React.Children.count(this.props.children)\n };\n this.callbackTimers = [];\n this.clickable = true;\n this.debouncedResize = null;\n const ssrState = this.ssrInit();\n this.state = { ...this.state, ...ssrState };\n }\n listRefHandler = ref => (this.list = ref);\n trackRefHandler = ref => (this.track = ref);\n adaptHeight = () => {\n if (this.props.adaptiveHeight && this.list) {\n const elem = this.list.querySelector(\n `[data-index=\"${this.state.currentSlide}\"]`\n );\n this.list.style.height = getHeight(elem) + \"px\";\n }\n };\n componentDidMount = () => {\n this.props.onInit && this.props.onInit();\n if (this.props.lazyLoad) {\n let slidesToLoad = getOnDemandLazySlides({\n ...this.props,\n ...this.state\n });\n if (slidesToLoad.length > 0) {\n this.setState(prevState => ({\n lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)\n }));\n if (this.props.onLazyLoad) {\n this.props.onLazyLoad(slidesToLoad);\n }\n }\n }\n let spec = { listRef: this.list, trackRef: this.track, ...this.props };\n this.updateState(spec, true, () => {\n this.adaptHeight();\n this.props.autoplay && this.autoPlay(\"update\");\n });\n if (this.props.lazyLoad === \"progressive\") {\n this.lazyLoadTimer = setInterval(this.progressiveLazyLoad, 1000);\n }\n this.ro = new ResizeObserver(() => {\n if (this.state.animating) {\n this.onWindowResized(false); // don't set trackStyle hence don't break animation\n this.callbackTimers.push(\n setTimeout(() => this.onWindowResized(), this.props.speed)\n );\n } else {\n this.onWindowResized();\n }\n });\n this.ro.observe(this.list);\n document.querySelectorAll &&\n Array.prototype.forEach.call(\n document.querySelectorAll(\".slick-slide\"),\n slide => {\n slide.onfocus = this.props.pauseOnFocus ? this.onSlideFocus : null;\n slide.onblur = this.props.pauseOnFocus ? this.onSlideBlur : null;\n }\n );\n if (window.addEventListener) {\n window.addEventListener(\"resize\", this.onWindowResized);\n } else {\n window.attachEvent(\"onresize\", this.onWindowResized);\n }\n };\n componentWillUnmount = () => {\n if (this.animationEndCallback) {\n clearTimeout(this.animationEndCallback);\n }\n if (this.lazyLoadTimer) {\n clearInterval(this.lazyLoadTimer);\n }\n if (this.callbackTimers.length) {\n this.callbackTimers.forEach(timer => clearTimeout(timer));\n this.callbackTimers = [];\n }\n if (window.addEventListener) {\n window.removeEventListener(\"resize\", this.onWindowResized);\n } else {\n window.detachEvent(\"onresize\", this.onWindowResized);\n }\n if (this.autoplayTimer) {\n clearInterval(this.autoplayTimer);\n }\n this.ro.disconnect();\n };\n\n didPropsChange(prevProps) {\n let setTrackStyle = false;\n for (let key of Object.keys(this.props)) {\n if (!prevProps.hasOwnProperty(key)) {\n setTrackStyle = true;\n break;\n }\n if (\n typeof prevProps[key] === \"object\" ||\n typeof prevProps[key] === \"function\"\n ) {\n continue;\n }\n if (prevProps[key] !== this.props[key]) {\n setTrackStyle = true;\n break;\n }\n }\n return (\n setTrackStyle ||\n React.Children.count(this.props.children) !==\n React.Children.count(prevProps.children)\n );\n }\n\n componentDidUpdate = prevProps => {\n this.checkImagesLoad();\n this.props.onReInit && this.props.onReInit();\n if (this.props.lazyLoad) {\n let slidesToLoad = getOnDemandLazySlides({\n ...this.props,\n ...this.state\n });\n if (slidesToLoad.length > 0) {\n this.setState(prevState => ({\n lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)\n }));\n if (this.props.onLazyLoad) {\n this.props.onLazyLoad(slidesToLoad);\n }\n }\n }\n // if (this.props.onLazyLoad) {\n // this.props.onLazyLoad([leftMostSlide])\n // }\n this.adaptHeight();\n let spec = {\n listRef: this.list,\n trackRef: this.track,\n ...this.props,\n ...this.state\n };\n const setTrackStyle = this.didPropsChange(prevProps);\n setTrackStyle &&\n this.updateState(spec, setTrackStyle, () => {\n if (\n this.state.currentSlide >= React.Children.count(this.props.children)\n ) {\n this.changeSlide({\n message: \"index\",\n index:\n React.Children.count(this.props.children) -\n this.props.slidesToShow,\n currentSlide: this.state.currentSlide\n });\n }\n if (this.props.autoplay) {\n this.autoPlay(\"update\");\n } else {\n this.pause(\"paused\");\n }\n });\n };\n onWindowResized = setTrackStyle => {\n if (this.debouncedResize) this.debouncedResize.cancel();\n this.debouncedResize = debounce(() => this.resizeWindow(setTrackStyle), 50);\n this.debouncedResize();\n };\n resizeWindow = (setTrackStyle = true) => {\n const isTrackMounted = Boolean(this.track && this.track.node);\n // prevent warning: setting state on unmounted component (server side rendering)\n if (!isTrackMounted) return;\n let spec = {\n listRef: this.list,\n trackRef: this.track,\n ...this.props,\n ...this.state\n };\n this.updateState(spec, setTrackStyle, () => {\n if (this.props.autoplay) this.autoPlay(\"update\");\n else this.pause(\"paused\");\n });\n // animating state should be cleared while resizing, otherwise autoplay stops working\n this.setState({\n animating: false\n });\n clearTimeout(this.animationEndCallback);\n delete this.animationEndCallback;\n };\n updateState = (spec, setTrackStyle, callback) => {\n let updatedState = initializedState(spec);\n spec = { ...spec, ...updatedState, slideIndex: updatedState.currentSlide };\n let targetLeft = getTrackLeft(spec);\n spec = { ...spec, left: targetLeft };\n let trackStyle = getTrackCSS(spec);\n if (\n setTrackStyle ||\n React.Children.count(this.props.children) !==\n React.Children.count(spec.children)\n ) {\n updatedState[\"trackStyle\"] = trackStyle;\n }\n this.setState(updatedState, callback);\n };\n\n ssrInit = () => {\n if (this.props.variableWidth) {\n let trackWidth = 0,\n trackLeft = 0;\n let childrenWidths = [];\n let preClones = getPreClones({\n ...this.props,\n ...this.state,\n slideCount: this.props.children.length\n });\n let postClones = getPostClones({\n ...this.props,\n ...this.state,\n slideCount: this.props.children.length\n });\n this.props.children.forEach(child => {\n childrenWidths.push(child.props.style.width);\n trackWidth += child.props.style.width;\n });\n for (let i = 0; i < preClones; i++) {\n trackLeft += childrenWidths[childrenWidths.length - 1 - i];\n trackWidth += childrenWidths[childrenWidths.length - 1 - i];\n }\n for (let i = 0; i < postClones; i++) {\n trackWidth += childrenWidths[i];\n }\n for (let i = 0; i < this.state.currentSlide; i++) {\n trackLeft += childrenWidths[i];\n }\n let trackStyle = {\n width: trackWidth + \"px\",\n left: -trackLeft + \"px\"\n };\n if (this.props.centerMode) {\n let currentWidth = `${childrenWidths[this.state.currentSlide]}px`;\n trackStyle.left = `calc(${trackStyle.left} + (100% - ${currentWidth}) / 2 ) `;\n }\n return {\n trackStyle\n };\n }\n let childrenCount = React.Children.count(this.props.children);\n const spec = { ...this.props, ...this.state, slideCount: childrenCount };\n let slideCount = getPreClones(spec) + getPostClones(spec) + childrenCount;\n let trackWidth = (100 / this.props.slidesToShow) * slideCount;\n let slideWidth = 100 / slideCount;\n let trackLeft =\n (-slideWidth *\n (getPreClones(spec) + this.state.currentSlide) *\n trackWidth) /\n 100;\n if (this.props.centerMode) {\n trackLeft += (100 - (slideWidth * trackWidth) / 100) / 2;\n }\n let trackStyle = {\n width: trackWidth + \"%\",\n left: trackLeft + \"%\"\n };\n return {\n slideWidth: slideWidth + \"%\",\n trackStyle: trackStyle\n };\n };\n checkImagesLoad = () => {\n let images =\n (this.list &&\n this.list.querySelectorAll &&\n this.list.querySelectorAll(\".slick-slide img\")) ||\n [];\n let imagesCount = images.length,\n loadedCount = 0;\n Array.prototype.forEach.call(images, image => {\n const handler = () =>\n ++loadedCount && loadedCount >= imagesCount && this.onWindowResized();\n if (!image.onclick) {\n image.onclick = () => image.parentNode.focus();\n } else {\n const prevClickHandler = image.onclick;\n image.onclick = e => {\n prevClickHandler(e);\n image.parentNode.focus();\n };\n }\n if (!image.onload) {\n if (this.props.lazyLoad) {\n image.onload = () => {\n this.adaptHeight();\n this.callbackTimers.push(\n setTimeout(this.onWindowResized, this.props.speed)\n );\n };\n } else {\n image.onload = handler;\n image.onerror = () => {\n handler();\n this.props.onLazyLoadError && this.props.onLazyLoadError();\n };\n }\n }\n });\n };\n progressiveLazyLoad = () => {\n let slidesToLoad = [];\n const spec = { ...this.props, ...this.state };\n for (\n let index = this.state.currentSlide;\n index < this.state.slideCount + getPostClones(spec);\n index++\n ) {\n if (this.state.lazyLoadedList.indexOf(index) < 0) {\n slidesToLoad.push(index);\n break;\n }\n }\n for (\n let index = this.state.currentSlide - 1;\n index >= -getPreClones(spec);\n index--\n ) {\n if (this.state.lazyLoadedList.indexOf(index) < 0) {\n slidesToLoad.push(index);\n break;\n }\n }\n if (slidesToLoad.length > 0) {\n this.setState(state => ({\n lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad)\n }));\n if (this.props.onLazyLoad) {\n this.props.onLazyLoad(slidesToLoad);\n }\n } else {\n if (this.lazyLoadTimer) {\n clearInterval(this.lazyLoadTimer);\n delete this.lazyLoadTimer;\n }\n }\n };\n slideHandler = (index, dontAnimate = false) => {\n const {\n asNavFor,\n beforeChange,\n onLazyLoad,\n speed,\n afterChange\n } = this.props;\n // capture currentslide before state is updated\n const currentSlide = this.state.currentSlide;\n let { state, nextState } = slideHandler({\n index,\n ...this.props,\n ...this.state,\n trackRef: this.track,\n useCSS: this.props.useCSS && !dontAnimate\n });\n if (!state) return;\n beforeChange && beforeChange(currentSlide, state.currentSlide);\n let slidesToLoad = state.lazyLoadedList.filter(\n value => this.state.lazyLoadedList.indexOf(value) < 0\n );\n onLazyLoad && slidesToLoad.length > 0 && onLazyLoad(slidesToLoad);\n if (!this.props.waitForAnimate && this.animationEndCallback) {\n clearTimeout(this.animationEndCallback);\n afterChange && afterChange(currentSlide);\n delete this.animationEndCallback;\n }\n this.setState(state, () => {\n // asNavForIndex check is to avoid recursive calls of slideHandler in waitForAnimate=false mode\n if (asNavFor && this.asNavForIndex !== index) {\n this.asNavForIndex = index;\n asNavFor.innerSlider.slideHandler(index);\n }\n if (!nextState) return;\n this.animationEndCallback = setTimeout(() => {\n const { animating, ...firstBatch } = nextState;\n this.setState(firstBatch, () => {\n this.callbackTimers.push(\n setTimeout(() => this.setState({ animating }), 10)\n );\n afterChange && afterChange(state.currentSlide);\n delete this.animationEndCallback;\n });\n }, speed);\n });\n };\n changeSlide = (options, dontAnimate = false) => {\n const spec = { ...this.props, ...this.state };\n let targetSlide = changeSlide(spec, options);\n if (targetSlide !== 0 && !targetSlide) return;\n if (dontAnimate === true) {\n this.slideHandler(targetSlide, dontAnimate);\n } else {\n this.slideHandler(targetSlide);\n }\n this.props.autoplay && this.autoPlay(\"update\");\n if (this.props.focusOnSelect) {\n const nodes = this.list.querySelectorAll(\".slick-current\");\n nodes[0] && nodes[0].focus();\n }\n };\n clickHandler = e => {\n if (this.clickable === false) {\n e.stopPropagation();\n e.preventDefault();\n }\n this.clickable = true;\n };\n keyHandler = e => {\n let dir = keyHandler(e, this.props.accessibility, this.props.rtl);\n dir !== \"\" && this.changeSlide({ message: dir });\n };\n selectHandler = options => {\n this.changeSlide(options);\n };\n disableBodyScroll = () => {\n const preventDefault = e => {\n e = e || window.event;\n if (e.preventDefault) e.preventDefault();\n e.returnValue = false;\n };\n window.ontouchmove = preventDefault;\n };\n enableBodyScroll = () => {\n window.ontouchmove = null;\n };\n swipeStart = e => {\n if (this.props.verticalSwiping) {\n this.disableBodyScroll();\n }\n let state = swipeStart(e, this.props.swipe, this.props.draggable);\n state !== \"\" && this.setState(state);\n };\n swipeMove = e => {\n let state = swipeMove(e, {\n ...this.props,\n ...this.state,\n trackRef: this.track,\n listRef: this.list,\n slideIndex: this.state.currentSlide\n });\n if (!state) return;\n if (state[\"swiping\"]) {\n this.clickable = false;\n }\n this.setState(state);\n };\n swipeEnd = e => {\n let state = swipeEnd(e, {\n ...this.props,\n ...this.state,\n trackRef: this.track,\n listRef: this.list,\n slideIndex: this.state.currentSlide\n });\n if (!state) return;\n let triggerSlideHandler = state[\"triggerSlideHandler\"];\n delete state[\"triggerSlideHandler\"];\n this.setState(state);\n if (triggerSlideHandler === undefined) return;\n this.slideHandler(triggerSlideHandler);\n if (this.props.verticalSwiping) {\n this.enableBodyScroll();\n }\n };\n touchEnd = e => {\n this.swipeEnd(e);\n this.clickable = true;\n };\n slickPrev = () => {\n // this and fellow methods are wrapped in setTimeout\n // to make sure initialize setState has happened before\n // any of such methods are called\n this.callbackTimers.push(\n setTimeout(() => this.changeSlide({ message: \"previous\" }), 0)\n );\n };\n slickNext = () => {\n this.callbackTimers.push(\n setTimeout(() => this.changeSlide({ message: \"next\" }), 0)\n );\n };\n slickGoTo = (slide, dontAnimate = false) => {\n slide = Number(slide);\n if (isNaN(slide)) return \"\";\n this.callbackTimers.push(\n setTimeout(\n () =>\n this.changeSlide(\n {\n message: \"index\",\n index: slide,\n currentSlide: this.state.currentSlide\n },\n dontAnimate\n ),\n 0\n )\n );\n };\n play = () => {\n var nextIndex;\n if (this.props.rtl) {\n nextIndex = this.state.currentSlide - this.props.slidesToScroll;\n } else {\n if (canGoNext({ ...this.props, ...this.state })) {\n nextIndex = this.state.currentSlide + this.props.slidesToScroll;\n } else {\n return false;\n }\n }\n\n this.slideHandler(nextIndex);\n };\n\n autoPlay = playType => {\n if (this.autoplayTimer) {\n clearInterval(this.autoplayTimer);\n }\n const autoplaying = this.state.autoplaying;\n if (playType === \"update\") {\n if (\n autoplaying === \"hovered\" ||\n autoplaying === \"focused\" ||\n autoplaying === \"paused\"\n ) {\n return;\n }\n } else if (playType === \"leave\") {\n if (autoplaying === \"paused\" || autoplaying === \"focused\") {\n return;\n }\n } else if (playType === \"blur\") {\n if (autoplaying === \"paused\" || autoplaying === \"hovered\") {\n return;\n }\n }\n this.autoplayTimer = setInterval(this.play, this.props.autoplaySpeed + 50);\n this.setState({ autoplaying: \"playing\" });\n };\n pause = pauseType => {\n if (this.autoplayTimer) {\n clearInterval(this.autoplayTimer);\n this.autoplayTimer = null;\n }\n const autoplaying = this.state.autoplaying;\n if (pauseType === \"paused\") {\n this.setState({ autoplaying: \"paused\" });\n } else if (pauseType === \"focused\") {\n if (autoplaying === \"hovered\" || autoplaying === \"playing\") {\n this.setState({ autoplaying: \"focused\" });\n }\n } else {\n // pauseType is 'hovered'\n if (autoplaying === \"playing\") {\n this.setState({ autoplaying: \"hovered\" });\n }\n }\n };\n onDotsOver = () => this.props.autoplay && this.pause(\"hovered\");\n onDotsLeave = () =>\n this.props.autoplay &&\n this.state.autoplaying === \"hovered\" &&\n this.autoPlay(\"leave\");\n onTrackOver = () => this.props.autoplay && this.pause(\"hovered\");\n onTrackLeave = () =>\n this.props.autoplay &&\n this.state.autoplaying === \"hovered\" &&\n this.autoPlay(\"leave\");\n onSlideFocus = () => this.props.autoplay && this.pause(\"focused\");\n onSlideBlur = () =>\n this.props.autoplay &&\n this.state.autoplaying === \"focused\" &&\n this.autoPlay(\"blur\");\n\n render = () => {\n var className = classnames(\n \"slick-slider\",\n this.props.className,\n this.props.classes?.slider,\n {\n \"slick-vertical\": this.props.vertical,\n \"slick-initialized\": true\n }\n );\n let spec = { ...this.props, ...this.state };\n let trackProps = extractObject(spec, [\n \"fade\",\n \"cssEase\",\n \"speed\",\n \"infinite\",\n \"centerMode\",\n \"focusOnSelect\",\n \"currentSlide\",\n \"lazyLoad\",\n \"lazyLoadedList\",\n \"rtl\",\n \"slideWidth\",\n \"slideHeight\",\n \"listHeight\",\n \"vertical\",\n \"slidesToShow\",\n \"slidesToScroll\",\n \"slideCount\",\n \"trackStyle\",\n \"variableWidth\",\n \"unslick\",\n \"centerPadding\",\n \"targetSlide\",\n \"useCSS\",\n \"omitLazyForSlides\",\n \"classes\"\n ]);\n const { pauseOnHover } = this.props;\n trackProps = {\n ...trackProps,\n onMouseEnter: pauseOnHover ? this.onTrackOver : null,\n onMouseLeave: pauseOnHover ? this.onTrackLeave : null,\n onMouseOver: pauseOnHover ? this.onTrackOver : null,\n focusOnSelect:\n this.props.focusOnSelect && this.clickable ? this.selectHandler : null\n };\n\n var dots;\n if (\n this.props.dots === true &&\n this.state.slideCount >= this.props.slidesToShow\n ) {\n let dotProps = extractObject(spec, [\n \"dotsClass\",\n \"slideCount\",\n \"slidesToShow\",\n \"currentSlide\",\n \"slidesToScroll\",\n \"clickHandler\",\n \"children\",\n \"customPaging\",\n \"infinite\",\n \"appendDots\",\n \"classes\"\n ]);\n const { pauseOnDotsHover } = this.props;\n dotProps = {\n ...dotProps,\n clickHandler: this.changeSlide,\n onMouseEnter: pauseOnDotsHover ? this.onDotsLeave : null,\n onMouseOver: pauseOnDotsHover ? this.onDotsOver : null,\n onMouseLeave: pauseOnDotsHover ? this.onDotsLeave : null\n };\n dots = ;\n }\n\n var prevArrow, nextArrow;\n let arrowProps = extractObject(spec, [\n \"infinite\",\n \"centerMode\",\n \"currentSlide\",\n \"slideCount\",\n \"slidesToShow\",\n \"prevArrow\",\n \"nextArrow\",\n \"classes\"\n ]);\n arrowProps.clickHandler = this.changeSlide;\n\n if (this.props.arrows) {\n prevArrow = ;\n nextArrow = ;\n }\n\n var verticalHeightStyle = null;\n\n if (this.props.vertical) {\n verticalHeightStyle = {\n height: this.state.listHeight\n };\n }\n\n var centerPaddingStyle = null;\n\n if (this.props.vertical === false) {\n if (this.props.centerMode === true) {\n centerPaddingStyle = {\n padding: \"0px \" + this.props.centerPadding\n };\n }\n } else {\n if (this.props.centerMode === true) {\n centerPaddingStyle = {\n padding: this.props.centerPadding + \" 0px\"\n };\n }\n }\n\n const listStyle = { ...verticalHeightStyle, ...centerPaddingStyle };\n const touchMove = this.props.touchMove;\n let listProps = {\n className: classnames(this.props.classes?.list, \"slick-list\"),\n style: listStyle,\n onClick: this.clickHandler,\n onMouseDown: touchMove ? this.swipeStart : null,\n onMouseMove: this.state.dragging && touchMove ? this.swipeMove : null,\n onMouseUp: touchMove ? this.swipeEnd : null,\n onMouseLeave: this.state.dragging && touchMove ? this.swipeEnd : null,\n onTouchStart: touchMove ? this.swipeStart : null,\n onTouchMove: this.state.dragging && touchMove ? this.swipeMove : null,\n onTouchEnd: touchMove ? this.touchEnd : null,\n onTouchCancel: this.state.dragging && touchMove ? this.swipeEnd : null,\n onKeyDown: this.props.accessibility ? this.keyHandler : null\n };\n\n let innerSliderProps = {\n className: className,\n dir: \"ltr\",\n style: this.props.style\n };\n\n if (this.props.unslick) {\n listProps = {\n className: classnames(this.props.classes?.list, \"slick-list\")\n };\n innerSliderProps = { className };\n }\n return (\n
    \n {!this.props.unslick ? prevArrow : \"\"}\n
    \n \n {this.props.children}\n \n
    \n {!this.props.unslick ? nextArrow : \"\"}\n {!this.props.unslick ? dots : \"\"}\n
    \n );\n };\n}\n","const initialState = {\n animating: false,\n autoplaying: null,\n currentDirection: 0,\n currentLeft: null,\n currentSlide: 0,\n direction: 1,\n dragging: false,\n edgeDragged: false,\n initialized: false,\n lazyLoadedList: [],\n listHeight: null,\n listWidth: null,\n scrolling: false,\n slideCount: null,\n slideHeight: null,\n slideWidth: null,\n swipeLeft: null,\n swiped: false, // used by swipeEvent. differentites between touch and swipe.\n swiping: false,\n touchObject: { startX: 0, startY: 0, curX: 0, curY: 0 },\n trackStyle: {},\n trackWidth: 0,\n targetSlide: 0\n};\n\nexport default initialState;\n","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React from \"react\";\n\nexport function clamp(number, lowerBound, upperBound) {\n return Math.max(lowerBound, Math.min(number, upperBound));\n}\n\nexport const safePreventDefault = event => {\n const passiveEvents = [\"onTouchStart\", \"onTouchMove\", \"onWheel\"];\n if (!passiveEvents.includes(event._reactName)) {\n event.preventDefault();\n }\n};\n\nexport const getOnDemandLazySlides = spec => {\n let onDemandSlides = [];\n let startIndex = lazyStartIndex(spec);\n let endIndex = lazyEndIndex(spec);\n for (let slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {\n if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {\n onDemandSlides.push(slideIndex);\n }\n }\n return onDemandSlides;\n};\n\n// return list of slides that need to be present\nexport const getRequiredLazySlides = spec => {\n let requiredSlides = [];\n let startIndex = lazyStartIndex(spec);\n let endIndex = lazyEndIndex(spec);\n for (let slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {\n requiredSlides.push(slideIndex);\n }\n return requiredSlides;\n};\n\n// startIndex that needs to be present\nexport const lazyStartIndex = spec => {\n let startIndex = spec.currentSlide - lazySlidesOnLeft(spec);\n if (spec.lazyLoad === \"anticipated\") startIndex -= 1;\n return startIndex;\n};\nexport const lazyEndIndex = spec => {\n let endIndex = spec.currentSlide + lazySlidesOnRight(spec);\n if (spec.lazyLoad === \"anticipated\") endIndex += 1;\n return endIndex;\n};\nexport const lazySlidesOnLeft = spec =>\n spec.centerMode\n ? Math.floor(spec.slidesToShow / 2) +\n (parseInt(spec.centerPadding) > 0 ? 1 : 0)\n : 0;\nexport const lazySlidesOnRight = spec =>\n spec.centerMode\n ? Math.floor((spec.slidesToShow - 1) / 2) +\n 1 +\n (parseInt(spec.centerPadding) > 0 ? 1 : 0)\n : spec.slidesToShow;\n\n// get width of an element\nexport const getWidth = elem => (elem && elem.offsetWidth) || 0;\nexport const getHeight = elem => (elem && elem.offsetHeight) || 0;\nexport const getSwipeDirection = (touchObject, verticalSwiping = false) => {\n var xDist, yDist, r, swipeAngle;\n xDist = touchObject.startX - touchObject.curX;\n yDist = touchObject.startY - touchObject.curY;\n r = Math.atan2(yDist, xDist);\n swipeAngle = Math.round((r * 180) / Math.PI);\n if (swipeAngle < 0) {\n swipeAngle = 360 - Math.abs(swipeAngle);\n }\n if (\n (swipeAngle <= 45 && swipeAngle >= 0) ||\n (swipeAngle <= 360 && swipeAngle >= 315)\n ) {\n return \"left\";\n }\n if (swipeAngle >= 135 && swipeAngle <= 225) {\n return \"right\";\n }\n if (verticalSwiping === true) {\n if (swipeAngle >= 35 && swipeAngle <= 135) {\n return \"up\";\n } else {\n return \"down\";\n }\n }\n\n return \"vertical\";\n};\n\n// whether or not we can go next\nexport const canGoNext = spec => {\n let canGo = true;\n if (!spec.infinite) {\n if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {\n canGo = false;\n } else if (\n spec.slideCount <= spec.slidesToShow ||\n spec.currentSlide >= spec.slideCount - spec.slidesToShow\n ) {\n canGo = false;\n }\n }\n return canGo;\n};\n\n// given an object and a list of keys, return new object with given keys\nexport const extractObject = (spec, keys) => {\n let newObject = {};\n keys.forEach(key => (newObject[key] = spec[key]));\n return newObject;\n};\n\n// get initialized state\nexport const initializedState = spec => {\n // spec also contains listRef, trackRef\n let slideCount = React.Children.count(spec.children);\n const listNode = spec.listRef;\n let listWidth = Math.ceil(getWidth(listNode));\n const trackNode = spec.trackRef && spec.trackRef.node;\n let trackWidth = Math.ceil(getWidth(trackNode));\n let slideWidth;\n if (!spec.vertical) {\n let centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;\n if (\n typeof spec.centerPadding === \"string\" &&\n spec.centerPadding.slice(-1) === \"%\"\n ) {\n centerPaddingAdj *= listWidth / 100;\n }\n slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);\n } else {\n slideWidth = listWidth;\n }\n let slideHeight =\n listNode && getHeight(listNode.querySelector('[data-index=\"0\"]'));\n let listHeight = slideHeight * spec.slidesToShow;\n let currentSlide =\n spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide;\n if (spec.rtl && spec.currentSlide === undefined) {\n currentSlide = slideCount - 1 - spec.initialSlide;\n }\n let lazyLoadedList = spec.lazyLoadedList || [];\n let slidesToLoad = getOnDemandLazySlides({\n ...spec,\n currentSlide,\n lazyLoadedList\n });\n lazyLoadedList = lazyLoadedList.concat(slidesToLoad);\n\n let state = {\n slideCount,\n slideWidth,\n listWidth,\n trackWidth,\n currentSlide,\n slideHeight,\n listHeight,\n lazyLoadedList\n };\n\n if (spec.autoplaying === null && spec.autoplay) {\n state[\"autoplaying\"] = \"playing\";\n }\n\n return state;\n};\n\nexport const slideHandler = spec => {\n const {\n waitForAnimate,\n animating,\n fade,\n infinite,\n index,\n slideCount,\n lazyLoad,\n currentSlide,\n centerMode,\n slidesToScroll,\n slidesToShow,\n useCSS\n } = spec;\n let { lazyLoadedList } = spec;\n if (waitForAnimate && animating) return {};\n let animationSlide = index,\n finalSlide,\n animationLeft,\n finalLeft;\n let state = {},\n nextState = {};\n const targetSlide = infinite ? index : clamp(index, 0, slideCount - 1);\n if (fade) {\n if (!infinite && (index < 0 || index >= slideCount)) return {};\n if (index < 0) {\n animationSlide = index + slideCount;\n } else if (index >= slideCount) {\n animationSlide = index - slideCount;\n }\n if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) {\n lazyLoadedList = lazyLoadedList.concat(animationSlide);\n }\n state = {\n animating: true,\n currentSlide: animationSlide,\n lazyLoadedList,\n targetSlide: animationSlide\n };\n nextState = { animating: false, targetSlide: animationSlide };\n } else {\n finalSlide = animationSlide;\n if (animationSlide < 0) {\n finalSlide = animationSlide + slideCount;\n if (!infinite) finalSlide = 0;\n else if (slideCount % slidesToScroll !== 0)\n finalSlide = slideCount - (slideCount % slidesToScroll);\n } else if (!canGoNext(spec) && animationSlide > currentSlide) {\n animationSlide = finalSlide = currentSlide;\n } else if (centerMode && animationSlide >= slideCount) {\n animationSlide = infinite ? slideCount : slideCount - 1;\n finalSlide = infinite ? 0 : slideCount - 1;\n } else if (animationSlide >= slideCount) {\n finalSlide = animationSlide - slideCount;\n if (!infinite) finalSlide = slideCount - slidesToShow;\n else if (slideCount % slidesToScroll !== 0) finalSlide = 0;\n }\n\n if (!infinite && animationSlide + slidesToShow >= slideCount) {\n finalSlide = slideCount - slidesToShow;\n }\n\n animationLeft = getTrackLeft({ ...spec, slideIndex: animationSlide });\n finalLeft = getTrackLeft({ ...spec, slideIndex: finalSlide });\n if (!infinite) {\n if (animationLeft === finalLeft) animationSlide = finalSlide;\n animationLeft = finalLeft;\n }\n if (lazyLoad) {\n lazyLoadedList = lazyLoadedList.concat(\n getOnDemandLazySlides({ ...spec, currentSlide: animationSlide })\n );\n }\n if (!useCSS) {\n state = {\n currentSlide: finalSlide,\n trackStyle: getTrackCSS({ ...spec, left: finalLeft }),\n lazyLoadedList,\n targetSlide\n };\n } else {\n state = {\n animating: true,\n currentSlide: finalSlide,\n trackStyle: getTrackAnimateCSS({ ...spec, left: animationLeft }),\n lazyLoadedList,\n targetSlide\n };\n nextState = {\n animating: false,\n currentSlide: finalSlide,\n trackStyle: getTrackCSS({ ...spec, left: finalLeft }),\n swipeLeft: null,\n targetSlide\n };\n }\n }\n return { state, nextState };\n};\n\nexport const changeSlide = (spec, options) => {\n var indexOffset, previousInt, slideOffset, unevenOffset, targetSlide;\n const {\n slidesToScroll,\n slidesToShow,\n slideCount,\n currentSlide,\n targetSlide: previousTargetSlide,\n lazyLoad,\n infinite\n } = spec;\n unevenOffset = slideCount % slidesToScroll !== 0;\n indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll;\n if (options.message === \"previous\") {\n slideOffset =\n indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset;\n targetSlide = currentSlide - slideOffset;\n if (lazyLoad && !infinite) {\n previousInt = currentSlide - slideOffset;\n targetSlide = previousInt === -1 ? slideCount - 1 : previousInt;\n }\n if (!infinite) {\n targetSlide = previousTargetSlide - slidesToScroll;\n }\n } else if (options.message === \"next\") {\n slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset;\n targetSlide = currentSlide + slideOffset;\n if (lazyLoad && !infinite) {\n targetSlide =\n ((currentSlide + slidesToScroll) % slideCount) + indexOffset;\n }\n if (!infinite) {\n targetSlide = previousTargetSlide + slidesToScroll;\n }\n } else if (options.message === \"dots\") {\n // Click on dots\n targetSlide = options.index * options.slidesToScroll;\n } else if (options.message === \"children\") {\n // Click on the slides\n targetSlide = options.index;\n if (infinite) {\n let direction = siblingDirection({ ...spec, targetSlide });\n if (targetSlide > options.currentSlide && direction === \"left\") {\n targetSlide = targetSlide - slideCount;\n } else if (targetSlide < options.currentSlide && direction === \"right\") {\n targetSlide = targetSlide + slideCount;\n }\n }\n } else if (options.message === \"index\") {\n targetSlide = Number(options.index);\n }\n return targetSlide;\n};\nexport const keyHandler = (e, accessibility, rtl) => {\n if (e.target.tagName.match(\"TEXTAREA|INPUT|SELECT\") || !accessibility)\n return \"\";\n if (e.keyCode === 37) return rtl ? \"next\" : \"previous\";\n if (e.keyCode === 39) return rtl ? \"previous\" : \"next\";\n return \"\";\n};\n\nexport const swipeStart = (e, swipe, draggable) => {\n e.target.tagName === \"IMG\" && safePreventDefault(e);\n if (!swipe || (!draggable && e.type.indexOf(\"mouse\") !== -1)) return \"\";\n return {\n dragging: true,\n touchObject: {\n startX: e.touches ? e.touches[0].pageX : e.clientX,\n startY: e.touches ? e.touches[0].pageY : e.clientY,\n curX: e.touches ? e.touches[0].pageX : e.clientX,\n curY: e.touches ? e.touches[0].pageY : e.clientY\n }\n };\n};\nexport const swipeMove = (e, spec) => {\n // spec also contains, trackRef and slideIndex\n const {\n scrolling,\n animating,\n vertical,\n swipeToSlide,\n verticalSwiping,\n rtl,\n currentSlide,\n edgeFriction,\n edgeDragged,\n onEdge,\n swiped,\n swiping,\n slideCount,\n slidesToScroll,\n infinite,\n touchObject,\n swipeEvent,\n listHeight,\n listWidth\n } = spec;\n if (scrolling) return;\n if (animating) return safePreventDefault(e);\n if (vertical && swipeToSlide && verticalSwiping) safePreventDefault(e);\n let swipeLeft,\n state = {};\n let curLeft = getTrackLeft(spec);\n touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX;\n touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY;\n touchObject.swipeLength = Math.round(\n Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2))\n );\n let verticalSwipeLength = Math.round(\n Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2))\n );\n if (!verticalSwiping && !swiping && verticalSwipeLength > 10) {\n return { scrolling: true };\n }\n if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength;\n let positionOffset =\n (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1);\n if (verticalSwiping)\n positionOffset = touchObject.curY > touchObject.startY ? 1 : -1;\n\n let dotCount = Math.ceil(slideCount / slidesToScroll);\n let swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping);\n let touchSwipeLength = touchObject.swipeLength;\n if (!infinite) {\n if (\n (currentSlide === 0 &&\n (swipeDirection === \"right\" || swipeDirection === \"down\")) ||\n (currentSlide + 1 >= dotCount &&\n (swipeDirection === \"left\" || swipeDirection === \"up\")) ||\n (!canGoNext(spec) &&\n (swipeDirection === \"left\" || swipeDirection === \"up\"))\n ) {\n touchSwipeLength = touchObject.swipeLength * edgeFriction;\n if (edgeDragged === false && onEdge) {\n onEdge(swipeDirection);\n state[\"edgeDragged\"] = true;\n }\n }\n }\n if (!swiped && swipeEvent) {\n swipeEvent(swipeDirection);\n state[\"swiped\"] = true;\n }\n if (!vertical) {\n if (!rtl) {\n swipeLeft = curLeft + touchSwipeLength * positionOffset;\n } else {\n swipeLeft = curLeft - touchSwipeLength * positionOffset;\n }\n } else {\n swipeLeft =\n curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset;\n }\n if (verticalSwiping) {\n swipeLeft = curLeft + touchSwipeLength * positionOffset;\n }\n state = {\n ...state,\n touchObject,\n swipeLeft,\n trackStyle: getTrackCSS({ ...spec, left: swipeLeft })\n };\n if (\n Math.abs(touchObject.curX - touchObject.startX) <\n Math.abs(touchObject.curY - touchObject.startY) * 0.8\n ) {\n return state;\n }\n if (touchObject.swipeLength > 10) {\n state[\"swiping\"] = true;\n safePreventDefault(e);\n }\n return state;\n};\nexport const swipeEnd = (e, spec) => {\n const {\n dragging,\n swipe,\n touchObject,\n listWidth,\n touchThreshold,\n verticalSwiping,\n listHeight,\n swipeToSlide,\n scrolling,\n onSwipe,\n targetSlide,\n currentSlide,\n infinite\n } = spec;\n if (!dragging) {\n if (swipe) safePreventDefault(e);\n return {};\n }\n let minSwipe = verticalSwiping\n ? listHeight / touchThreshold\n : listWidth / touchThreshold;\n let swipeDirection = getSwipeDirection(touchObject, verticalSwiping);\n // reset the state of touch related state variables.\n let state = {\n dragging: false,\n edgeDragged: false,\n scrolling: false,\n swiping: false,\n swiped: false,\n swipeLeft: null,\n touchObject: {}\n };\n if (scrolling) {\n return state;\n }\n if (!touchObject.swipeLength) {\n return state;\n }\n if (touchObject.swipeLength > minSwipe) {\n safePreventDefault(e);\n if (onSwipe) {\n onSwipe(swipeDirection);\n }\n let slideCount, newSlide;\n let activeSlide = infinite ? currentSlide : targetSlide;\n switch (swipeDirection) {\n case \"left\":\n case \"up\":\n newSlide = activeSlide + getSlideCount(spec);\n slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;\n state[\"currentDirection\"] = 0;\n break;\n case \"right\":\n case \"down\":\n newSlide = activeSlide - getSlideCount(spec);\n slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;\n state[\"currentDirection\"] = 1;\n break;\n default:\n slideCount = activeSlide;\n }\n state[\"triggerSlideHandler\"] = slideCount;\n } else {\n // Adjust the track back to it's original position.\n let currentLeft = getTrackLeft(spec);\n state[\"trackStyle\"] = getTrackAnimateCSS({ ...spec, left: currentLeft });\n }\n return state;\n};\nexport const getNavigableIndexes = spec => {\n let max = spec.infinite ? spec.slideCount * 2 : spec.slideCount;\n let breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0;\n let counter = spec.infinite ? spec.slidesToShow * -1 : 0;\n let indexes = [];\n while (breakpoint < max) {\n indexes.push(breakpoint);\n breakpoint = counter + spec.slidesToScroll;\n counter += Math.min(spec.slidesToScroll, spec.slidesToShow);\n }\n return indexes;\n};\nexport const checkNavigable = (spec, index) => {\n const navigables = getNavigableIndexes(spec);\n let prevNavigable = 0;\n if (index > navigables[navigables.length - 1]) {\n index = navigables[navigables.length - 1];\n } else {\n for (let n in navigables) {\n if (index < navigables[n]) {\n index = prevNavigable;\n break;\n }\n prevNavigable = navigables[n];\n }\n }\n return index;\n};\nexport const getSlideCount = spec => {\n const centerOffset = spec.centerMode\n ? spec.slideWidth * Math.floor(spec.slidesToShow / 2)\n : 0;\n if (spec.swipeToSlide) {\n let swipedSlide;\n const slickList = spec.listRef;\n const slides =\n (slickList.querySelectorAll &&\n slickList.querySelectorAll(\".slick-slide\")) ||\n [];\n Array.from(slides).every(slide => {\n if (!spec.vertical) {\n if (\n slide.offsetLeft - centerOffset + getWidth(slide) / 2 >\n spec.swipeLeft * -1\n ) {\n swipedSlide = slide;\n return false;\n }\n } else {\n if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) {\n swipedSlide = slide;\n return false;\n }\n }\n\n return true;\n });\n\n if (!swipedSlide) {\n return 0;\n }\n const currentIndex =\n spec.rtl === true\n ? spec.slideCount - spec.currentSlide\n : spec.currentSlide;\n const slidesTraversed =\n Math.abs(swipedSlide.dataset.index - currentIndex) || 1;\n return slidesTraversed;\n } else {\n return spec.slidesToScroll;\n }\n};\n\nexport const checkSpecKeys = (spec, keysArray) =>\n keysArray.reduce((value, key) => value && spec.hasOwnProperty(key), true)\n ? null\n : console.error(\"Keys Missing:\", spec);\n\nexport const getTrackCSS = spec => {\n checkSpecKeys(spec, [\n \"left\",\n \"variableWidth\",\n \"slideCount\",\n \"slidesToShow\",\n \"slideWidth\"\n ]);\n let trackWidth, trackHeight;\n const trackChildren = spec.slideCount + 2 * spec.slidesToShow;\n if (!spec.vertical) {\n trackWidth = getTotalSlides(spec) * spec.slideWidth;\n } else {\n trackHeight = trackChildren * spec.slideHeight;\n }\n let style = {\n opacity: 1,\n transition: \"\",\n WebkitTransition: \"\"\n };\n if (spec.useTransform) {\n let WebkitTransform = !spec.vertical\n ? \"translate3d(\" + spec.left + \"px, 0px, 0px)\"\n : \"translate3d(0px, \" + spec.left + \"px, 0px)\";\n let transform = !spec.vertical\n ? \"translate3d(\" + spec.left + \"px, 0px, 0px)\"\n : \"translate3d(0px, \" + spec.left + \"px, 0px)\";\n let msTransform = !spec.vertical\n ? \"translateX(\" + spec.left + \"px)\"\n : \"translateY(\" + spec.left + \"px)\";\n style = {\n ...style,\n WebkitTransform,\n transform,\n msTransform\n };\n } else {\n if (spec.vertical) {\n style[\"top\"] = spec.left;\n } else {\n style[\"left\"] = spec.left;\n }\n }\n if (spec.fade) style = { opacity: 1 };\n if (trackWidth) style.width = trackWidth;\n if (trackHeight) style.height = trackHeight;\n\n // Fallback for IE8\n if (window && !window.addEventListener && window.attachEvent) {\n if (!spec.vertical) {\n style.marginLeft = spec.left + \"px\";\n } else {\n style.marginTop = spec.left + \"px\";\n }\n }\n\n return style;\n};\nexport const getTrackAnimateCSS = spec => {\n checkSpecKeys(spec, [\n \"left\",\n \"variableWidth\",\n \"slideCount\",\n \"slidesToShow\",\n \"slideWidth\",\n \"speed\",\n \"cssEase\"\n ]);\n let style = getTrackCSS(spec);\n // useCSS is true by default so it can be undefined\n if (spec.useTransform) {\n style.WebkitTransition =\n \"-webkit-transform \" + spec.speed + \"ms \" + spec.cssEase;\n style.transition = \"transform \" + spec.speed + \"ms \" + spec.cssEase;\n } else {\n if (spec.vertical) {\n style.transition = \"top \" + spec.speed + \"ms \" + spec.cssEase;\n } else {\n style.transition = \"left \" + spec.speed + \"ms \" + spec.cssEase;\n }\n }\n return style;\n};\nexport const getTrackLeft = spec => {\n if (spec.unslick) {\n return 0;\n }\n\n checkSpecKeys(spec, [\n \"slideIndex\",\n \"trackRef\",\n \"infinite\",\n \"centerMode\",\n \"slideCount\",\n \"slidesToShow\",\n \"slidesToScroll\",\n \"slideWidth\",\n \"listWidth\",\n \"variableWidth\",\n \"slideHeight\"\n ]);\n\n const {\n slideIndex,\n trackRef,\n infinite,\n centerMode,\n slideCount,\n slidesToShow,\n slidesToScroll,\n slideWidth,\n listWidth,\n variableWidth,\n slideHeight,\n fade,\n vertical\n } = spec;\n\n var slideOffset = 0;\n var targetLeft;\n var targetSlide;\n var verticalOffset = 0;\n\n if (fade || spec.slideCount === 1) {\n return 0;\n }\n\n let slidesToOffset = 0;\n if (infinite) {\n slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area\n // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children\n if (\n slideCount % slidesToScroll !== 0 &&\n slideIndex + slidesToScroll > slideCount\n ) {\n slidesToOffset = -(slideIndex > slideCount\n ? slidesToShow - (slideIndex - slideCount)\n : slideCount % slidesToScroll);\n }\n // shift current slide to center of the frame\n if (centerMode) {\n slidesToOffset += parseInt(slidesToShow / 2);\n }\n } else {\n if (\n slideCount % slidesToScroll !== 0 &&\n slideIndex + slidesToScroll > slideCount\n ) {\n slidesToOffset = slidesToShow - (slideCount % slidesToScroll);\n }\n if (centerMode) {\n slidesToOffset = parseInt(slidesToShow / 2);\n }\n }\n slideOffset = slidesToOffset * slideWidth;\n verticalOffset = slidesToOffset * slideHeight;\n\n if (!vertical) {\n targetLeft = slideIndex * slideWidth * -1 + slideOffset;\n } else {\n targetLeft = slideIndex * slideHeight * -1 + verticalOffset;\n }\n\n if (variableWidth === true) {\n var targetSlideIndex;\n const trackElem = trackRef && trackRef.node;\n targetSlideIndex = slideIndex + getPreClones(spec);\n targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];\n targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0;\n if (centerMode === true) {\n targetSlideIndex = infinite\n ? slideIndex + getPreClones(spec)\n : slideIndex;\n targetSlide = trackElem && trackElem.children[targetSlideIndex];\n targetLeft = 0;\n for (let slide = 0; slide < targetSlideIndex; slide++) {\n targetLeft -=\n trackElem &&\n trackElem.children[slide] &&\n trackElem.children[slide].offsetWidth;\n }\n targetLeft -= parseInt(spec.centerPadding);\n targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2;\n }\n }\n\n return targetLeft;\n};\n\nexport const getPreClones = spec => {\n if (spec.unslick || !spec.infinite) {\n return 0;\n }\n if (spec.variableWidth) {\n return spec.slideCount;\n }\n return spec.slidesToShow + (spec.centerMode ? 1 : 0);\n};\n\nexport const getPostClones = spec => {\n if (spec.unslick || !spec.infinite) {\n return 0;\n }\n return spec.slideCount;\n};\n\nexport const getTotalSlides = spec =>\n spec.slideCount === 1\n ? 1\n : getPreClones(spec) + spec.slideCount + getPostClones(spec);\nexport const siblingDirection = spec => {\n if (spec.targetSlide > spec.currentSlide) {\n if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) {\n return \"left\";\n }\n return \"right\";\n } else {\n if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) {\n return \"right\";\n }\n return \"left\";\n }\n};\n\nexport const slidesOnRight = ({\n slidesToShow,\n centerMode,\n rtl,\n centerPadding\n}) => {\n // returns no of slides on the right of active slide\n if (centerMode) {\n let right = (slidesToShow - 1) / 2 + 1;\n if (parseInt(centerPadding) > 0) right += 1;\n if (rtl && slidesToShow % 2 === 0) right += 1;\n return right;\n }\n if (rtl) {\n return 0;\n }\n return slidesToShow - 1;\n};\n\nexport const slidesOnLeft = ({\n slidesToShow,\n centerMode,\n rtl,\n centerPadding\n}) => {\n // returns no of slides on the left of active slide\n if (centerMode) {\n let left = (slidesToShow - 1) / 2 + 1;\n if (parseInt(centerPadding) > 0) left += 1;\n if (!rtl && slidesToShow % 2 === 0) left += 1;\n return left;\n }\n if (rtl) {\n return slidesToShow - 1;\n }\n return 0;\n};\n\nexport const canUseDOM = () =>\n !!(\n typeof window !== \"undefined\" &&\n window.document &&\n window.document.createElement\n );\n","\"use strict\";\n\nimport React from \"react\";\nimport classnames from \"classnames\";\nimport {\n lazyStartIndex,\n lazyEndIndex,\n getPreClones\n} from \"./utils/innerSliderUtils\";\n\n// given specifications/props for a slide, fetch all the classes that need to be applied to the slide\nconst getSlideClasses = spec => {\n let slickActive, slickCenter, slickCloned;\n let centerOffset, index;\n\n if (spec.rtl) {\n index = spec.slideCount - 1 - spec.index;\n } else {\n index = spec.index;\n }\n slickCloned = index < 0 || index >= spec.slideCount;\n if (spec.centerMode) {\n centerOffset = Math.floor(spec.slidesToShow / 2);\n slickCenter = (index - spec.currentSlide) % spec.slideCount === 0;\n if (\n index > spec.currentSlide - centerOffset - 1 &&\n index <= spec.currentSlide + centerOffset\n ) {\n slickActive = true;\n }\n } else {\n slickActive =\n spec.currentSlide <= index &&\n index < spec.currentSlide + spec.slidesToShow;\n }\n\n let focusedSlide;\n if (spec.targetSlide < 0) {\n focusedSlide = spec.targetSlide + spec.slideCount;\n } else if (spec.targetSlide >= spec.slideCount) {\n focusedSlide = spec.targetSlide - spec.slideCount;\n } else {\n focusedSlide = spec.targetSlide;\n }\n let slickCurrent = index === focusedSlide;\n return {\n \"slick-slide\": true,\n \"slick-active\": slickActive,\n \"slick-center\": slickCenter,\n \"slick-cloned\": slickCloned,\n [`slick-cloned ${spec.classes?.cloned}`]:\n slickCloned && spec.classes?.cloned,\n \"slick-current\": slickCurrent // dubious in case of RTL\n };\n};\n\nconst getSlideStyle = spec => {\n let style = {};\n\n if (spec.variableWidth === undefined || spec.variableWidth === false) {\n style.width = spec.slideWidth;\n }\n\n if (spec.fade) {\n style.position = \"relative\";\n if (spec.vertical) {\n style.top = -spec.index * parseInt(spec.slideHeight);\n } else {\n style.left = -spec.index * parseInt(spec.slideWidth);\n }\n style.opacity = spec.currentSlide === spec.index ? 1 : 0;\n if (spec.useCSS) {\n style.transition =\n \"opacity \" +\n spec.speed +\n \"ms \" +\n spec.cssEase +\n \", \" +\n \"visibility \" +\n spec.speed +\n \"ms \" +\n spec.cssEase;\n }\n }\n\n return style;\n};\n\nconst getKey = (child, fallbackKey) => child.key || fallbackKey;\n\nconst shouldOmitLazy = (omitLazyForSlides = [], index) =>\n omitLazyForSlides.includes(index);\n\nconst renderSlides = spec => {\n let key;\n let slides = [];\n let preCloneSlides = [];\n let postCloneSlides = [];\n let childrenCount = React.Children.count(spec.children);\n let startIndex = lazyStartIndex(spec);\n let endIndex = lazyEndIndex(spec);\n\n React.Children.forEach(spec.children, (elem, index) => {\n let child;\n let childOnClickOptions = {\n message: \"children\",\n index: index,\n slidesToScroll: spec.slidesToScroll,\n currentSlide: spec.currentSlide\n };\n\n // in case of lazyLoad, whether or not we want to fetch the slide\n if (\n !spec.lazyLoad ||\n (spec.lazyLoad && spec.lazyLoadedList.indexOf(index) >= 0) ||\n shouldOmitLazy(spec.omitLazyForSlides, index)\n ) {\n child = elem;\n } else {\n child =
    ;\n }\n let childStyle = getSlideStyle({ ...spec, index });\n let slideClass = child.props.className || \"\";\n let slideClasses = getSlideClasses({ ...spec, index });\n // push a cloned element of the desired slide\n slides.push(\n React.cloneElement(child, {\n key: \"original\" + getKey(child, index),\n \"data-index\": index,\n className: classnames(slideClasses, slideClass, spec.classes?.slide),\n tabIndex: \"-1\",\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: { outline: \"none\", ...(child.props.style || {}), ...childStyle },\n onClick: e => {\n child.props && child.props.onClick && child.props.onClick(e);\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n })\n );\n\n // if slide needs to be precloned or postcloned\n if (spec.infinite && spec.fade === false) {\n let preCloneNo = childrenCount - index;\n if (\n preCloneNo <= getPreClones(spec) &&\n childrenCount !== spec.slidesToShow\n ) {\n key = -preCloneNo;\n if (key >= startIndex) {\n child = elem;\n }\n slideClasses = getSlideClasses({ ...spec, index: key });\n preCloneSlides.push(\n React.cloneElement(child, {\n key: \"precloned\" + getKey(child, key),\n \"data-index\": key,\n tabIndex: \"-1\",\n className: classnames(\n slideClasses,\n slideClass,\n spec.classes?.slide\n ),\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: { ...(child.props.style || {}), ...childStyle },\n onClick: e => {\n child.props && child.props.onClick && child.props.onClick(e);\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n })\n );\n }\n\n if (childrenCount !== spec.slidesToShow) {\n key = childrenCount + index;\n if (key < endIndex) {\n child = elem;\n }\n slideClasses = getSlideClasses({ ...spec, index: key });\n postCloneSlides.push(\n React.cloneElement(child, {\n key: \"postcloned\" + getKey(child, key),\n \"data-index\": key,\n tabIndex: \"-1\",\n className: classnames(\n slideClasses,\n slideClass,\n spec.classes?.slide\n ),\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: { ...(child.props.style || {}), ...childStyle },\n onClick: e => {\n child.props && child.props.onClick && child.props.onClick(e);\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n })\n );\n }\n }\n });\n\n if (spec.rtl) {\n return preCloneSlides.concat(slides, postCloneSlides).reverse();\n } else {\n return preCloneSlides.concat(slides, postCloneSlides);\n }\n};\n\nexport class Track extends React.PureComponent {\n node = null;\n\n handleRef = ref => {\n this.node = ref;\n };\n\n render() {\n const slides = renderSlides(this.props);\n const { onMouseEnter, onMouseOver, onMouseLeave } = this.props;\n const mouseEvents = { onMouseEnter, onMouseOver, onMouseLeave };\n return (\n \n {slides}\n
    \n );\n }\n}\n","\"use strict\";\n\nimport React from \"react\";\nimport classnames from \"classnames\";\nimport { clamp } from \"./utils/innerSliderUtils\";\n\nconst getDotCount = spec => {\n let dots;\n\n if (spec.infinite) {\n dots = Math.ceil(spec.slideCount / spec.slidesToScroll);\n } else {\n dots =\n Math.ceil((spec.slideCount - spec.slidesToShow) / spec.slidesToScroll) +\n 1;\n }\n\n return dots;\n};\n\nexport class Dots extends React.PureComponent {\n clickHandler(options, e) {\n // In Autoplay the focus stays on clicked button even after transition\n // to next slide. That only goes away by click somewhere outside\n e.preventDefault();\n this.props.clickHandler(options);\n }\n render() {\n const {\n onMouseEnter,\n onMouseOver,\n onMouseLeave,\n infinite,\n slidesToScroll,\n slidesToShow,\n slideCount,\n currentSlide,\n classes\n } = this.props;\n let dotCount = getDotCount({\n slideCount,\n slidesToScroll,\n slidesToShow,\n infinite\n });\n\n const mouseEvents = { onMouseEnter, onMouseOver, onMouseLeave };\n let dots = [];\n for (let i = 0; i < dotCount; i++) {\n let _rightBound = (i + 1) * slidesToScroll - 1;\n let rightBound = infinite\n ? _rightBound\n : clamp(_rightBound, 0, slideCount - 1);\n let _leftBound = rightBound - (slidesToScroll - 1);\n let leftBound = infinite\n ? _leftBound\n : clamp(_leftBound, 0, slideCount - 1);\n\n let className = classnames(classes?.dot, {\n [classes?.activeDot\n ? `slick-active ${classes?.activeDot}`\n : \"slick-active\"]: infinite\n ? currentSlide >= leftBound && currentSlide <= rightBound\n : currentSlide === leftBound\n });\n\n let dotOptions = {\n message: \"dots\",\n index: i,\n slidesToScroll,\n currentSlide\n };\n\n let onClick = this.clickHandler.bind(this, dotOptions);\n dots = dots.concat(\n
  • \n {React.cloneElement(this.props.customPaging(i), { onClick })}\n
  • \n );\n }\n\n return React.cloneElement(this.props.appendDots(dots), {\n className: classnames(this.props.dotsClass, classes?.dots),\n ...mouseEvents\n });\n }\n}\n","\"use strict\";\n\nimport React from \"react\";\nimport classnames from \"classnames\";\nimport { canGoNext } from \"./utils/innerSliderUtils\";\n\nexport class PrevArrow extends React.PureComponent {\n clickHandler(options, e) {\n if (e) {\n e.preventDefault();\n }\n this.props.clickHandler(options, e);\n }\n render() {\n let prevClasses = { \"slick-arrow\": true, \"slick-prev\": true };\n let prevHandler = this.clickHandler.bind(this, { message: \"previous\" });\n\n if (\n !this.props.infinite &&\n (this.props.currentSlide === 0 ||\n this.props.slideCount <= this.props.slidesToShow)\n ) {\n prevClasses[\"slick-disabled\"] = true;\n prevClasses[this.props.classes?.disabled] = !!this.props.classes\n ?.disabled;\n prevHandler = null;\n }\n\n let prevArrowProps = {\n key: \"0\",\n \"data-role\": \"none\",\n className: classnames(\n prevClasses,\n this.props.classes?.arrow,\n this.props.classes?.prev\n ),\n style: { display: \"block\" },\n onClick: prevHandler\n };\n let customProps = {\n currentSlide: this.props.currentSlide,\n slideCount: this.props.slideCount\n };\n let prevArrow;\n\n if (this.props.prevArrow) {\n prevArrow = React.cloneElement(this.props.prevArrow, {\n ...prevArrowProps,\n ...customProps\n });\n } else {\n prevArrow = (\n \n );\n }\n\n return prevArrow;\n }\n}\n\nexport class NextArrow extends React.PureComponent {\n clickHandler(options, e) {\n if (e) {\n e.preventDefault();\n }\n this.props.clickHandler(options, e);\n }\n render() {\n let nextClasses = { \"slick-arrow\": true, \"slick-next\": true };\n let nextHandler = this.clickHandler.bind(this, { message: \"next\" });\n\n if (!canGoNext(this.props)) {\n nextClasses[\"slick-disabled\"] = true;\n nextClasses[this.props.classes?.disabled] = !!this.props.classes\n ?.disabled;\n nextHandler = null;\n }\n\n let nextArrowProps = {\n key: \"1\",\n \"data-role\": \"none\",\n className: classnames(\n nextClasses,\n this.props.classes?.arrow,\n this.props.classes?.next\n ),\n style: { display: \"block\" },\n onClick: nextHandler\n };\n let customProps = {\n currentSlide: this.props.currentSlide,\n slideCount: this.props.slideCount\n };\n let nextArrow;\n\n if (this.props.nextArrow) {\n nextArrow = React.cloneElement(this.props.nextArrow, {\n ...nextArrowProps,\n ...customProps\n });\n } else {\n nextArrow = (\n \n );\n }\n\n return nextArrow;\n }\n}\n","/**\r\n * A collection of shims that provide minimal functionality of the ES6 collections.\r\n *\r\n * These implementations are not meant to be used outside of the ResizeObserver\r\n * modules as they cover only a limited range of use cases.\r\n */\r\n/* eslint-disable require-jsdoc, valid-jsdoc */\r\nvar MapShim = (function () {\r\n if (typeof Map !== 'undefined') {\r\n return Map;\r\n }\r\n /**\r\n * Returns index in provided array that matches the specified key.\r\n *\r\n * @param {Array} arr\r\n * @param {*} key\r\n * @returns {number}\r\n */\r\n function getIndex(arr, key) {\r\n var result = -1;\r\n arr.some(function (entry, index) {\r\n if (entry[0] === key) {\r\n result = index;\r\n return true;\r\n }\r\n return false;\r\n });\r\n return result;\r\n }\r\n return /** @class */ (function () {\r\n function class_1() {\r\n this.__entries__ = [];\r\n }\r\n Object.defineProperty(class_1.prototype, \"size\", {\r\n /**\r\n * @returns {boolean}\r\n */\r\n get: function () {\r\n return this.__entries__.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * @param {*} key\r\n * @returns {*}\r\n */\r\n class_1.prototype.get = function (key) {\r\n var index = getIndex(this.__entries__, key);\r\n var entry = this.__entries__[index];\r\n return entry && entry[1];\r\n };\r\n /**\r\n * @param {*} key\r\n * @param {*} value\r\n * @returns {void}\r\n */\r\n class_1.prototype.set = function (key, value) {\r\n var index = getIndex(this.__entries__, key);\r\n if (~index) {\r\n this.__entries__[index][1] = value;\r\n }\r\n else {\r\n this.__entries__.push([key, value]);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.delete = function (key) {\r\n var entries = this.__entries__;\r\n var index = getIndex(entries, key);\r\n if (~index) {\r\n entries.splice(index, 1);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.has = function (key) {\r\n return !!~getIndex(this.__entries__, key);\r\n };\r\n /**\r\n * @returns {void}\r\n */\r\n class_1.prototype.clear = function () {\r\n this.__entries__.splice(0);\r\n };\r\n /**\r\n * @param {Function} callback\r\n * @param {*} [ctx=null]\r\n * @returns {void}\r\n */\r\n class_1.prototype.forEach = function (callback, ctx) {\r\n if (ctx === void 0) { ctx = null; }\r\n for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {\r\n var entry = _a[_i];\r\n callback.call(ctx, entry[1], entry[0]);\r\n }\r\n };\r\n return class_1;\r\n }());\r\n})();\n\n/**\r\n * Detects whether window and document objects are available in current environment.\r\n */\r\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;\n\n// Returns global object of a current environment.\r\nvar global$1 = (function () {\r\n if (typeof global !== 'undefined' && global.Math === Math) {\r\n return global;\r\n }\r\n if (typeof self !== 'undefined' && self.Math === Math) {\r\n return self;\r\n }\r\n if (typeof window !== 'undefined' && window.Math === Math) {\r\n return window;\r\n }\r\n // eslint-disable-next-line no-new-func\r\n return Function('return this')();\r\n})();\n\n/**\r\n * A shim for the requestAnimationFrame which falls back to the setTimeout if\r\n * first one is not supported.\r\n *\r\n * @returns {number} Requests' identifier.\r\n */\r\nvar requestAnimationFrame$1 = (function () {\r\n if (typeof requestAnimationFrame === 'function') {\r\n // It's required to use a bounded function because IE sometimes throws\r\n // an \"Invalid calling object\" error if rAF is invoked without the global\r\n // object on the left hand side.\r\n return requestAnimationFrame.bind(global$1);\r\n }\r\n return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };\r\n})();\n\n// Defines minimum timeout before adding a trailing call.\r\nvar trailingTimeout = 2;\r\n/**\r\n * Creates a wrapper function which ensures that provided callback will be\r\n * invoked only once during the specified delay period.\r\n *\r\n * @param {Function} callback - Function to be invoked after the delay period.\r\n * @param {number} delay - Delay after which to invoke callback.\r\n * @returns {Function}\r\n */\r\nfunction throttle (callback, delay) {\r\n var leadingCall = false, trailingCall = false, lastCallTime = 0;\r\n /**\r\n * Invokes the original callback function and schedules new invocation if\r\n * the \"proxy\" was called during current request.\r\n *\r\n * @returns {void}\r\n */\r\n function resolvePending() {\r\n if (leadingCall) {\r\n leadingCall = false;\r\n callback();\r\n }\r\n if (trailingCall) {\r\n proxy();\r\n }\r\n }\r\n /**\r\n * Callback invoked after the specified delay. It will further postpone\r\n * invocation of the original function delegating it to the\r\n * requestAnimationFrame.\r\n *\r\n * @returns {void}\r\n */\r\n function timeoutCallback() {\r\n requestAnimationFrame$1(resolvePending);\r\n }\r\n /**\r\n * Schedules invocation of the original function.\r\n *\r\n * @returns {void}\r\n */\r\n function proxy() {\r\n var timeStamp = Date.now();\r\n if (leadingCall) {\r\n // Reject immediately following calls.\r\n if (timeStamp - lastCallTime < trailingTimeout) {\r\n return;\r\n }\r\n // Schedule new call to be in invoked when the pending one is resolved.\r\n // This is important for \"transitions\" which never actually start\r\n // immediately so there is a chance that we might miss one if change\r\n // happens amids the pending invocation.\r\n trailingCall = true;\r\n }\r\n else {\r\n leadingCall = true;\r\n trailingCall = false;\r\n setTimeout(timeoutCallback, delay);\r\n }\r\n lastCallTime = timeStamp;\r\n }\r\n return proxy;\r\n}\n\n// Minimum delay before invoking the update of observers.\r\nvar REFRESH_DELAY = 20;\r\n// A list of substrings of CSS properties used to find transition events that\r\n// might affect dimensions of observed elements.\r\nvar transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];\r\n// Check if MutationObserver is available.\r\nvar mutationObserverSupported = typeof MutationObserver !== 'undefined';\r\n/**\r\n * Singleton controller class which handles updates of ResizeObserver instances.\r\n */\r\nvar ResizeObserverController = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserverController.\r\n *\r\n * @private\r\n */\r\n function ResizeObserverController() {\r\n /**\r\n * Indicates whether DOM listeners have been added.\r\n *\r\n * @private {boolean}\r\n */\r\n this.connected_ = false;\r\n /**\r\n * Tells that controller has subscribed for Mutation Events.\r\n *\r\n * @private {boolean}\r\n */\r\n this.mutationEventsAdded_ = false;\r\n /**\r\n * Keeps reference to the instance of MutationObserver.\r\n *\r\n * @private {MutationObserver}\r\n */\r\n this.mutationsObserver_ = null;\r\n /**\r\n * A list of connected observers.\r\n *\r\n * @private {Array}\r\n */\r\n this.observers_ = [];\r\n this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);\r\n this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);\r\n }\r\n /**\r\n * Adds observer to observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be added.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.addObserver = function (observer) {\r\n if (!~this.observers_.indexOf(observer)) {\r\n this.observers_.push(observer);\r\n }\r\n // Add listeners if they haven't been added yet.\r\n if (!this.connected_) {\r\n this.connect_();\r\n }\r\n };\r\n /**\r\n * Removes observer from observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be removed.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.removeObserver = function (observer) {\r\n var observers = this.observers_;\r\n var index = observers.indexOf(observer);\r\n // Remove observer if it's present in registry.\r\n if (~index) {\r\n observers.splice(index, 1);\r\n }\r\n // Remove listeners if controller has no connected observers.\r\n if (!observers.length && this.connected_) {\r\n this.disconnect_();\r\n }\r\n };\r\n /**\r\n * Invokes the update of observers. It will continue running updates insofar\r\n * it detects changes.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.refresh = function () {\r\n var changesDetected = this.updateObservers_();\r\n // Continue running updates if changes have been detected as there might\r\n // be future ones caused by CSS transitions.\r\n if (changesDetected) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Updates every observer from observers list and notifies them of queued\r\n * entries.\r\n *\r\n * @private\r\n * @returns {boolean} Returns \"true\" if any observer has detected changes in\r\n * dimensions of it's elements.\r\n */\r\n ResizeObserverController.prototype.updateObservers_ = function () {\r\n // Collect observers that have active observations.\r\n var activeObservers = this.observers_.filter(function (observer) {\r\n return observer.gatherActive(), observer.hasActive();\r\n });\r\n // Deliver notifications in a separate cycle in order to avoid any\r\n // collisions between observers, e.g. when multiple instances of\r\n // ResizeObserver are tracking the same element and the callback of one\r\n // of them changes content dimensions of the observed target. Sometimes\r\n // this may result in notifications being blocked for the rest of observers.\r\n activeObservers.forEach(function (observer) { return observer.broadcastActive(); });\r\n return activeObservers.length > 0;\r\n };\r\n /**\r\n * Initializes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.connect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already added.\r\n if (!isBrowser || this.connected_) {\r\n return;\r\n }\r\n // Subscription to the \"Transitionend\" event is used as a workaround for\r\n // delayed transitions. This way it's possible to capture at least the\r\n // final state of an element.\r\n document.addEventListener('transitionend', this.onTransitionEnd_);\r\n window.addEventListener('resize', this.refresh);\r\n if (mutationObserverSupported) {\r\n this.mutationsObserver_ = new MutationObserver(this.refresh);\r\n this.mutationsObserver_.observe(document, {\r\n attributes: true,\r\n childList: true,\r\n characterData: true,\r\n subtree: true\r\n });\r\n }\r\n else {\r\n document.addEventListener('DOMSubtreeModified', this.refresh);\r\n this.mutationEventsAdded_ = true;\r\n }\r\n this.connected_ = true;\r\n };\r\n /**\r\n * Removes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.disconnect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already removed.\r\n if (!isBrowser || !this.connected_) {\r\n return;\r\n }\r\n document.removeEventListener('transitionend', this.onTransitionEnd_);\r\n window.removeEventListener('resize', this.refresh);\r\n if (this.mutationsObserver_) {\r\n this.mutationsObserver_.disconnect();\r\n }\r\n if (this.mutationEventsAdded_) {\r\n document.removeEventListener('DOMSubtreeModified', this.refresh);\r\n }\r\n this.mutationsObserver_ = null;\r\n this.mutationEventsAdded_ = false;\r\n this.connected_ = false;\r\n };\r\n /**\r\n * \"Transitionend\" event handler.\r\n *\r\n * @private\r\n * @param {TransitionEvent} event\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {\r\n var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;\r\n // Detect whether transition may affect dimensions of an element.\r\n var isReflowProperty = transitionKeys.some(function (key) {\r\n return !!~propertyName.indexOf(key);\r\n });\r\n if (isReflowProperty) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Returns instance of the ResizeObserverController.\r\n *\r\n * @returns {ResizeObserverController}\r\n */\r\n ResizeObserverController.getInstance = function () {\r\n if (!this.instance_) {\r\n this.instance_ = new ResizeObserverController();\r\n }\r\n return this.instance_;\r\n };\r\n /**\r\n * Holds reference to the controller's instance.\r\n *\r\n * @private {ResizeObserverController}\r\n */\r\n ResizeObserverController.instance_ = null;\r\n return ResizeObserverController;\r\n}());\n\n/**\r\n * Defines non-writable/enumerable properties of the provided target object.\r\n *\r\n * @param {Object} target - Object for which to define properties.\r\n * @param {Object} props - Properties to be defined.\r\n * @returns {Object} Target object.\r\n */\r\nvar defineConfigurable = (function (target, props) {\r\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\r\n var key = _a[_i];\r\n Object.defineProperty(target, key, {\r\n value: props[key],\r\n enumerable: false,\r\n writable: false,\r\n configurable: true\r\n });\r\n }\r\n return target;\r\n});\n\n/**\r\n * Returns the global object associated with provided element.\r\n *\r\n * @param {Object} target\r\n * @returns {Object}\r\n */\r\nvar getWindowOf = (function (target) {\r\n // Assume that the element is an instance of Node, which means that it\r\n // has the \"ownerDocument\" property from which we can retrieve a\r\n // corresponding global object.\r\n var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;\r\n // Return the local global object if it's not possible extract one from\r\n // provided element.\r\n return ownerGlobal || global$1;\r\n});\n\n// Placeholder of an empty content rectangle.\r\nvar emptyRect = createRectInit(0, 0, 0, 0);\r\n/**\r\n * Converts provided string to a number.\r\n *\r\n * @param {number|string} value\r\n * @returns {number}\r\n */\r\nfunction toFloat(value) {\r\n return parseFloat(value) || 0;\r\n}\r\n/**\r\n * Extracts borders size from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @param {...string} positions - Borders positions (top, right, ...)\r\n * @returns {number}\r\n */\r\nfunction getBordersSize(styles) {\r\n var positions = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n positions[_i - 1] = arguments[_i];\r\n }\r\n return positions.reduce(function (size, position) {\r\n var value = styles['border-' + position + '-width'];\r\n return size + toFloat(value);\r\n }, 0);\r\n}\r\n/**\r\n * Extracts paddings sizes from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @returns {Object} Paddings box.\r\n */\r\nfunction getPaddings(styles) {\r\n var positions = ['top', 'right', 'bottom', 'left'];\r\n var paddings = {};\r\n for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {\r\n var position = positions_1[_i];\r\n var value = styles['padding-' + position];\r\n paddings[position] = toFloat(value);\r\n }\r\n return paddings;\r\n}\r\n/**\r\n * Calculates content rectangle of provided SVG element.\r\n *\r\n * @param {SVGGraphicsElement} target - Element content rectangle of which needs\r\n * to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getSVGContentRect(target) {\r\n var bbox = target.getBBox();\r\n return createRectInit(0, 0, bbox.width, bbox.height);\r\n}\r\n/**\r\n * Calculates content rectangle of provided HTMLElement.\r\n *\r\n * @param {HTMLElement} target - Element for which to calculate the content rectangle.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getHTMLElementContentRect(target) {\r\n // Client width & height properties can't be\r\n // used exclusively as they provide rounded values.\r\n var clientWidth = target.clientWidth, clientHeight = target.clientHeight;\r\n // By this condition we can catch all non-replaced inline, hidden and\r\n // detached elements. Though elements with width & height properties less\r\n // than 0.5 will be discarded as well.\r\n //\r\n // Without it we would need to implement separate methods for each of\r\n // those cases and it's not possible to perform a precise and performance\r\n // effective test for hidden elements. E.g. even jQuery's ':visible' filter\r\n // gives wrong results for elements with width & height less than 0.5.\r\n if (!clientWidth && !clientHeight) {\r\n return emptyRect;\r\n }\r\n var styles = getWindowOf(target).getComputedStyle(target);\r\n var paddings = getPaddings(styles);\r\n var horizPad = paddings.left + paddings.right;\r\n var vertPad = paddings.top + paddings.bottom;\r\n // Computed styles of width & height are being used because they are the\r\n // only dimensions available to JS that contain non-rounded values. It could\r\n // be possible to utilize the getBoundingClientRect if only it's data wasn't\r\n // affected by CSS transformations let alone paddings, borders and scroll bars.\r\n var width = toFloat(styles.width), height = toFloat(styles.height);\r\n // Width & height include paddings and borders when the 'border-box' box\r\n // model is applied (except for IE).\r\n if (styles.boxSizing === 'border-box') {\r\n // Following conditions are required to handle Internet Explorer which\r\n // doesn't include paddings and borders to computed CSS dimensions.\r\n //\r\n // We can say that if CSS dimensions + paddings are equal to the \"client\"\r\n // properties then it's either IE, and thus we don't need to subtract\r\n // anything, or an element merely doesn't have paddings/borders styles.\r\n if (Math.round(width + horizPad) !== clientWidth) {\r\n width -= getBordersSize(styles, 'left', 'right') + horizPad;\r\n }\r\n if (Math.round(height + vertPad) !== clientHeight) {\r\n height -= getBordersSize(styles, 'top', 'bottom') + vertPad;\r\n }\r\n }\r\n // Following steps can't be applied to the document's root element as its\r\n // client[Width/Height] properties represent viewport area of the window.\r\n // Besides, it's as well not necessary as the itself neither has\r\n // rendered scroll bars nor it can be clipped.\r\n if (!isDocumentElement(target)) {\r\n // In some browsers (only in Firefox, actually) CSS width & height\r\n // include scroll bars size which can be removed at this step as scroll\r\n // bars are the only difference between rounded dimensions + paddings\r\n // and \"client\" properties, though that is not always true in Chrome.\r\n var vertScrollbar = Math.round(width + horizPad) - clientWidth;\r\n var horizScrollbar = Math.round(height + vertPad) - clientHeight;\r\n // Chrome has a rather weird rounding of \"client\" properties.\r\n // E.g. for an element with content width of 314.2px it sometimes gives\r\n // the client width of 315px and for the width of 314.7px it may give\r\n // 314px. And it doesn't happen all the time. So just ignore this delta\r\n // as a non-relevant.\r\n if (Math.abs(vertScrollbar) !== 1) {\r\n width -= vertScrollbar;\r\n }\r\n if (Math.abs(horizScrollbar) !== 1) {\r\n height -= horizScrollbar;\r\n }\r\n }\r\n return createRectInit(paddings.left, paddings.top, width, height);\r\n}\r\n/**\r\n * Checks whether provided element is an instance of the SVGGraphicsElement.\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\nvar isSVGGraphicsElement = (function () {\r\n // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement\r\n // interface.\r\n if (typeof SVGGraphicsElement !== 'undefined') {\r\n return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };\r\n }\r\n // If it's so, then check that element is at least an instance of the\r\n // SVGElement and that it has the \"getBBox\" method.\r\n // eslint-disable-next-line no-extra-parens\r\n return function (target) { return (target instanceof getWindowOf(target).SVGElement &&\r\n typeof target.getBBox === 'function'); };\r\n})();\r\n/**\r\n * Checks whether provided element is a document element ().\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\nfunction isDocumentElement(target) {\r\n return target === getWindowOf(target).document.documentElement;\r\n}\r\n/**\r\n * Calculates an appropriate content rectangle for provided html or svg element.\r\n *\r\n * @param {Element} target - Element content rectangle of which needs to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getContentRect(target) {\r\n if (!isBrowser) {\r\n return emptyRect;\r\n }\r\n if (isSVGGraphicsElement(target)) {\r\n return getSVGContentRect(target);\r\n }\r\n return getHTMLElementContentRect(target);\r\n}\r\n/**\r\n * Creates rectangle with an interface of the DOMRectReadOnly.\r\n * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly\r\n *\r\n * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.\r\n * @returns {DOMRectReadOnly}\r\n */\r\nfunction createReadOnlyRect(_a) {\r\n var x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n // If DOMRectReadOnly is available use it as a prototype for the rectangle.\r\n var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;\r\n var rect = Object.create(Constr.prototype);\r\n // Rectangle's properties are not writable and non-enumerable.\r\n defineConfigurable(rect, {\r\n x: x, y: y, width: width, height: height,\r\n top: y,\r\n right: x + width,\r\n bottom: height + y,\r\n left: x\r\n });\r\n return rect;\r\n}\r\n/**\r\n * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.\r\n * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit\r\n *\r\n * @param {number} x - X coordinate.\r\n * @param {number} y - Y coordinate.\r\n * @param {number} width - Rectangle's width.\r\n * @param {number} height - Rectangle's height.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction createRectInit(x, y, width, height) {\r\n return { x: x, y: y, width: width, height: height };\r\n}\n\n/**\r\n * Class that is responsible for computations of the content rectangle of\r\n * provided DOM element and for keeping track of it's changes.\r\n */\r\nvar ResizeObservation = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObservation.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n */\r\n function ResizeObservation(target) {\r\n /**\r\n * Broadcasted width of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastWidth = 0;\r\n /**\r\n * Broadcasted height of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastHeight = 0;\r\n /**\r\n * Reference to the last observed content rectangle.\r\n *\r\n * @private {DOMRectInit}\r\n */\r\n this.contentRect_ = createRectInit(0, 0, 0, 0);\r\n this.target = target;\r\n }\r\n /**\r\n * Updates content rectangle and tells whether it's width or height properties\r\n * have changed since the last broadcast.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObservation.prototype.isActive = function () {\r\n var rect = getContentRect(this.target);\r\n this.contentRect_ = rect;\r\n return (rect.width !== this.broadcastWidth ||\r\n rect.height !== this.broadcastHeight);\r\n };\r\n /**\r\n * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data\r\n * from the corresponding properties of the last observed content rectangle.\r\n *\r\n * @returns {DOMRectInit} Last observed content rectangle.\r\n */\r\n ResizeObservation.prototype.broadcastRect = function () {\r\n var rect = this.contentRect_;\r\n this.broadcastWidth = rect.width;\r\n this.broadcastHeight = rect.height;\r\n return rect;\r\n };\r\n return ResizeObservation;\r\n}());\n\nvar ResizeObserverEntry = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObserverEntry.\r\n *\r\n * @param {Element} target - Element that is being observed.\r\n * @param {DOMRectInit} rectInit - Data of the element's content rectangle.\r\n */\r\n function ResizeObserverEntry(target, rectInit) {\r\n var contentRect = createReadOnlyRect(rectInit);\r\n // According to the specification following properties are not writable\r\n // and are also not enumerable in the native implementation.\r\n //\r\n // Property accessors are not being used as they'd require to define a\r\n // private WeakMap storage which may cause memory leaks in browsers that\r\n // don't support this type of collections.\r\n defineConfigurable(this, { target: target, contentRect: contentRect });\r\n }\r\n return ResizeObserverEntry;\r\n}());\n\nvar ResizeObserverSPI = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback function that is invoked\r\n * when one of the observed elements changes it's content dimensions.\r\n * @param {ResizeObserverController} controller - Controller instance which\r\n * is responsible for the updates of observer.\r\n * @param {ResizeObserver} callbackCtx - Reference to the public\r\n * ResizeObserver instance which will be passed to callback function.\r\n */\r\n function ResizeObserverSPI(callback, controller, callbackCtx) {\r\n /**\r\n * Collection of resize observations that have detected changes in dimensions\r\n * of elements.\r\n *\r\n * @private {Array}\r\n */\r\n this.activeObservations_ = [];\r\n /**\r\n * Registry of the ResizeObservation instances.\r\n *\r\n * @private {Map}\r\n */\r\n this.observations_ = new MapShim();\r\n if (typeof callback !== 'function') {\r\n throw new TypeError('The callback provided as parameter 1 is not a function.');\r\n }\r\n this.callback_ = callback;\r\n this.controller_ = controller;\r\n this.callbackCtx_ = callbackCtx;\r\n }\r\n /**\r\n * Starts observing provided element.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.observe = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is already being observed.\r\n if (observations.has(target)) {\r\n return;\r\n }\r\n observations.set(target, new ResizeObservation(target));\r\n this.controller_.addObserver(this);\r\n // Force the update of observations.\r\n this.controller_.refresh();\r\n };\r\n /**\r\n * Stops observing provided element.\r\n *\r\n * @param {Element} target - Element to stop observing.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.unobserve = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is not being observed.\r\n if (!observations.has(target)) {\r\n return;\r\n }\r\n observations.delete(target);\r\n if (!observations.size) {\r\n this.controller_.removeObserver(this);\r\n }\r\n };\r\n /**\r\n * Stops observing all elements.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.disconnect = function () {\r\n this.clearActive();\r\n this.observations_.clear();\r\n this.controller_.removeObserver(this);\r\n };\r\n /**\r\n * Collects observation instances the associated element of which has changed\r\n * it's content rectangle.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.gatherActive = function () {\r\n var _this = this;\r\n this.clearActive();\r\n this.observations_.forEach(function (observation) {\r\n if (observation.isActive()) {\r\n _this.activeObservations_.push(observation);\r\n }\r\n });\r\n };\r\n /**\r\n * Invokes initial callback function with a list of ResizeObserverEntry\r\n * instances collected from active resize observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.broadcastActive = function () {\r\n // Do nothing if observer doesn't have active observations.\r\n if (!this.hasActive()) {\r\n return;\r\n }\r\n var ctx = this.callbackCtx_;\r\n // Create ResizeObserverEntry instance for every active observation.\r\n var entries = this.activeObservations_.map(function (observation) {\r\n return new ResizeObserverEntry(observation.target, observation.broadcastRect());\r\n });\r\n this.callback_.call(ctx, entries, ctx);\r\n this.clearActive();\r\n };\r\n /**\r\n * Clears the collection of active observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.clearActive = function () {\r\n this.activeObservations_.splice(0);\r\n };\r\n /**\r\n * Tells whether observer has active observations.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObserverSPI.prototype.hasActive = function () {\r\n return this.activeObservations_.length > 0;\r\n };\r\n return ResizeObserverSPI;\r\n}());\n\n// Registry of internal observers. If WeakMap is not available use current shim\r\n// for the Map collection as it has all required methods and because WeakMap\r\n// can't be fully polyfilled anyway.\r\nvar observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();\r\n/**\r\n * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation\r\n * exposing only those methods and properties that are defined in the spec.\r\n */\r\nvar ResizeObserver = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback that is invoked when\r\n * dimensions of the observed elements change.\r\n */\r\n function ResizeObserver(callback) {\r\n if (!(this instanceof ResizeObserver)) {\r\n throw new TypeError('Cannot call a class as a function.');\r\n }\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n var controller = ResizeObserverController.getInstance();\r\n var observer = new ResizeObserverSPI(callback, controller, this);\r\n observers.set(this, observer);\r\n }\r\n return ResizeObserver;\r\n}());\r\n// Expose public methods of ResizeObserver.\r\n[\r\n 'observe',\r\n 'unobserve',\r\n 'disconnect'\r\n].forEach(function (method) {\r\n ResizeObserver.prototype[method] = function () {\r\n var _a;\r\n return (_a = observers.get(this))[method].apply(_a, arguments);\r\n };\r\n});\n\nvar index = (function () {\r\n // Export existing implementation if available.\r\n if (typeof global$1.ResizeObserver !== 'undefined') {\r\n return global$1.ResizeObserver;\r\n }\r\n return ResizeObserver;\r\n})();\n\nexport default index;\n","var camel2hyphen = require('string-convert/camel2hyphen');\n\nvar isDimension = function (feature) {\n var re = /[height|width]$/;\n return re.test(feature);\n};\n\nvar obj2mq = function (obj) {\n var mq = '';\n var features = Object.keys(obj);\n features.forEach(function (feature, index) {\n var value = obj[feature];\n feature = camel2hyphen(feature);\n // Add px to dimension features\n if (isDimension(feature) && typeof value === 'number') {\n value = value + 'px';\n }\n if (value === true) {\n mq += feature;\n } else if (value === false) {\n mq += 'not ' + feature;\n } else {\n mq += '(' + feature + ': ' + value + ')';\n }\n if (index < features.length-1) {\n mq += ' and '\n }\n });\n return mq;\n};\n\nvar json2mq = function (query) {\n var mq = '';\n if (typeof query === 'string') {\n return query;\n }\n // Handling array of media queries\n if (query instanceof Array) {\n query.forEach(function (q, index) {\n mq += obj2mq(q);\n if (index < query.length-1) {\n mq += ', '\n }\n });\n return mq;\n }\n // Handling single media query\n return obj2mq(query);\n};\n\nmodule.exports = json2mq;","var camel2hyphen = function (str) {\n return str\n .replace(/[A-Z]/g, function (match) {\n return '-' + match.toLowerCase();\n })\n .toLowerCase();\n};\n\nmodule.exports = camel2hyphen;","import React from \"react\";\n\nlet defaultProps = {\n accessibility: true,\n adaptiveHeight: false,\n afterChange: null,\n appendDots: dots =>
      {dots}
    ,\n arrows: true,\n autoplay: false,\n autoplaySpeed: 3000,\n beforeChange: null,\n centerMode: false,\n centerPadding: \"50px\",\n className: \"\",\n cssEase: \"ease\",\n classes: {\n arrow: null,\n prev: null,\n next: null,\n slide: null,\n disabled: null,\n track: null,\n slider: null,\n list: null,\n dot: null,\n dots: null,\n activeDot: null,\n cloned: null\n },\n customPaging: i => ,\n dots: false,\n dotsClass: \"slick-dots\",\n draggable: true,\n easing: \"linear\",\n edgeFriction: 0.35,\n fade: false,\n focusOnSelect: false,\n infinite: true,\n initialSlide: 0,\n lazyLoad: null,\n nextArrow: null,\n onEdge: null,\n onInit: null,\n onLazyLoadError: null,\n onReInit: null,\n pauseOnDotsHover: false,\n pauseOnFocus: false,\n pauseOnHover: true,\n prevArrow: null,\n responsive: null,\n rows: 1,\n rtl: false,\n slide: \"div\",\n slidesPerRow: 1,\n slidesToScroll: 1,\n slidesToShow: 1,\n speed: 500,\n swipe: true,\n swipeEvent: null,\n swipeToSlide: false,\n touchMove: true,\n touchThreshold: 5,\n useCSS: true,\n useTransform: true,\n variableWidth: false,\n vertical: false,\n waitForAnimate: true\n};\n\nexport default defaultProps;\n","var MediaQueryDispatch = require('./MediaQueryDispatch');\nmodule.exports = new MediaQueryDispatch();\n","var MediaQuery = require('./MediaQuery');\nvar Util = require('./Util');\nvar each = Util.each;\nvar isFunction = Util.isFunction;\nvar isArray = Util.isArray;\n\n/**\n * Allows for registration of query handlers.\n * Manages the query handler's state and is responsible for wiring up browser events\n *\n * @constructor\n */\nfunction MediaQueryDispatch () {\n if(!window.matchMedia) {\n throw new Error('matchMedia not present, legacy browsers require a polyfill');\n }\n\n this.queries = {};\n this.browserIsIncapable = !window.matchMedia('only all').matches;\n}\n\nMediaQueryDispatch.prototype = {\n\n constructor : MediaQueryDispatch,\n\n /**\n * Registers a handler for the given media query\n *\n * @param {string} q the media query\n * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers\n * @param {function} options.match fired when query matched\n * @param {function} [options.unmatch] fired when a query is no longer matched\n * @param {function} [options.setup] fired when handler first triggered\n * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched\n * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers\n */\n register : function(q, options, shouldDegrade) {\n var queries = this.queries,\n isUnconditional = shouldDegrade && this.browserIsIncapable;\n\n if(!queries[q]) {\n queries[q] = new MediaQuery(q, isUnconditional);\n }\n\n //normalise to object in an array\n if(isFunction(options)) {\n options = { match : options };\n }\n if(!isArray(options)) {\n options = [options];\n }\n each(options, function(handler) {\n if (isFunction(handler)) {\n handler = { match : handler };\n }\n queries[q].addHandler(handler);\n });\n\n return this;\n },\n\n /**\n * unregisters a query and all it's handlers, or a specific handler for a query\n *\n * @param {string} q the media query to target\n * @param {object || function} [handler] specific handler to unregister\n */\n unregister : function(q, handler) {\n var query = this.queries[q];\n\n if(query) {\n if(handler) {\n query.removeHandler(handler);\n }\n else {\n query.clear();\n delete this.queries[q];\n }\n }\n\n return this;\n }\n};\n\nmodule.exports = MediaQueryDispatch;\n","var QueryHandler = require('./QueryHandler');\nvar each = require('./Util').each;\n\n/**\n * Represents a single media query, manages it's state and registered handlers for this query\n *\n * @constructor\n * @param {string} query the media query string\n * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design\n */\nfunction MediaQuery(query, isUnconditional) {\n this.query = query;\n this.isUnconditional = isUnconditional;\n this.handlers = [];\n this.mql = window.matchMedia(query);\n\n var self = this;\n this.listener = function(mql) {\n // Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly\n self.mql = mql.currentTarget || mql;\n self.assess();\n };\n this.mql.addListener(this.listener);\n}\n\nMediaQuery.prototype = {\n\n constuctor : MediaQuery,\n\n /**\n * add a handler for this query, triggering if already active\n *\n * @param {object} handler\n * @param {function} handler.match callback for when query is activated\n * @param {function} [handler.unmatch] callback for when query is deactivated\n * @param {function} [handler.setup] callback for immediate execution when a query handler is registered\n * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?\n */\n addHandler : function(handler) {\n var qh = new QueryHandler(handler);\n this.handlers.push(qh);\n\n this.matches() && qh.on();\n },\n\n /**\n * removes the given handler from the collection, and calls it's destroy methods\n *\n * @param {object || function} handler the handler to remove\n */\n removeHandler : function(handler) {\n var handlers = this.handlers;\n each(handlers, function(h, i) {\n if(h.equals(handler)) {\n h.destroy();\n return !handlers.splice(i,1); //remove from array and exit each early\n }\n });\n },\n\n /**\n * Determine whether the media query should be considered a match\n *\n * @return {Boolean} true if media query can be considered a match, false otherwise\n */\n matches : function() {\n return this.mql.matches || this.isUnconditional;\n },\n\n /**\n * Clears all handlers and unbinds events\n */\n clear : function() {\n each(this.handlers, function(handler) {\n handler.destroy();\n });\n this.mql.removeListener(this.listener);\n this.handlers.length = 0; //clear array\n },\n\n /*\n * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match\n */\n assess : function() {\n var action = this.matches() ? 'on' : 'off';\n\n each(this.handlers, function(handler) {\n handler[action]();\n });\n }\n};\n\nmodule.exports = MediaQuery;\n","/**\n * Delegate to handle a media query being matched and unmatched.\n *\n * @param {object} options\n * @param {function} options.match callback for when the media query is matched\n * @param {function} [options.unmatch] callback for when the media query is unmatched\n * @param {function} [options.setup] one-time callback triggered the first time a query is matched\n * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?\n * @constructor\n */\nfunction QueryHandler(options) {\n this.options = options;\n !options.deferSetup && this.setup();\n}\n\nQueryHandler.prototype = {\n\n constructor : QueryHandler,\n\n /**\n * coordinates setup of the handler\n *\n * @function\n */\n setup : function() {\n if(this.options.setup) {\n this.options.setup();\n }\n this.initialised = true;\n },\n\n /**\n * coordinates setup and triggering of the handler\n *\n * @function\n */\n on : function() {\n !this.initialised && this.setup();\n this.options.match && this.options.match();\n },\n\n /**\n * coordinates the unmatch event for the handler\n *\n * @function\n */\n off : function() {\n this.options.unmatch && this.options.unmatch();\n },\n\n /**\n * called when a handler is to be destroyed.\n * delegates to the destroy or unmatch callbacks, depending on availability.\n *\n * @function\n */\n destroy : function() {\n this.options.destroy ? this.options.destroy() : this.off();\n },\n\n /**\n * determines equality by reference.\n * if object is supplied compare options, if function, compare match callback\n *\n * @function\n * @param {object || function} [target] the target for comparison\n */\n equals : function(target) {\n return this.options === target || this.options.match === target;\n }\n\n};\n\nmodule.exports = QueryHandler;\n","/**\n * Helper function for iterating over a collection\n *\n * @param collection\n * @param fn\n */\nfunction each(collection, fn) {\n var i = 0,\n length = collection.length,\n cont;\n\n for(i; i < length; i++) {\n cont = fn(collection[i], i);\n if(cont === false) {\n break; //allow early exit\n }\n }\n}\n\n/**\n * Helper function for determining whether target object is an array\n *\n * @param target the object under test\n * @return {Boolean} true if array, false otherwise\n */\nfunction isArray(target) {\n return Object.prototype.toString.apply(target) === '[object Array]';\n}\n\n/**\n * Helper function for determining whether target object is a function\n *\n * @param target the object under test\n * @return {Boolean} true if function, false otherwise\n */\nfunction isFunction(target) {\n return typeof target === 'function';\n}\n\nmodule.exports = {\n isFunction : isFunction,\n isArray : isArray,\n each : each\n};\n"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/react-slick.min.js b/dist/react-slick.min.js deleted file mode 100644 index 5f03faeef..000000000 --- a/dist/react-slick.min.js +++ /dev/null @@ -1,3721 +0,0 @@ -!(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 ( - (n = [ - function(t, n) { - t.exports = e; - }, - function(e, t, n) { - var r; - /*! - Copyright (c) 2018 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, - s = typeof r; - if ("string" == s || "number" == s) e.push(r); - else if (Array.isArray(r)) - !r.length || ((i = o.apply(null, r)) && e.push(i)); - else if ("object" == s) - if ( - r.toString === Object.prototype.toString || - r.toString.toString().includes("[native code]") - ) - for (var a in r) n.call(r, a) && r[a] && e.push(a); - else e.push(r.toString()); - } - } - return e.join(" "); - } - e.exports - ? (e.exports = o.default = 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, s) { - var a = e[r]; - (r = o(r)), - i(r) && "number" == typeof a && (a += "px"), - (t += - !0 === a - ? r - : !1 === a - ? "not " + r - : "(" + r + ": " + a + ")"), - s < n.length - 1 && (t += " and "); - }), - t - ); - } - var o = n(7), - i = function(e) { - return /[height|width]$/.test(e); - }; - 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 c.Date.now(); - } - var r = /^\s+|\s+$/g, - o = /^[-+]0x[0-9a-f]+$/i, - i = /^0b[01]+$/i, - s = /^0o[0-7]+$/i, - a = parseInt, - l = - ((t = "object" == typeof t && t && t.Object === Object && t), - "object" == typeof self && - self && - self.Object === Object && - self), - c = t || l || 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 (n = e) || - ((t = n) && - "object" == typeof t && - "[object Symbol]" == u.call(n)) - ) - return NaN; - var t; - if ( - "string" != - typeof (e = f(e) - ? f((t = "function" == typeof e.valueOf ? e.valueOf() : e)) - ? t + "" - : t - : e) - ) - return 0 === e ? e : +e; - e = e.replace(r, ""); - var n = i.test(e); - return n || s.test(e) - ? a(e.slice(2), n ? 2 : 8) - : o.test(e) - ? NaN - : +e; - } - e.exports = function(e, t, r) { - var o, - i, - s, - a, - l, - c, - 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 - c; - return void 0 === c || t <= n || n < 0 || (v && s <= e - u); - } - function w() { - var e, - r = n(); - if (m(r)) return S(r); - l = setTimeout( - w, - ((e = t - ((r = r) - c)), v ? p(e, s - (r - u)) : e) - ); - } - function S(e) { - return (l = void 0), b && o ? g(e) : ((o = i = void 0), a); - } - function O() { - var e = n(), - r = m(e); - if (((o = arguments), (i = this), (c = e), r)) { - if (void 0 === l) - return (u = e = c), (l = setTimeout(w, t)), y ? g(e) : a; - if (v) return (l = setTimeout(w, t)), g(c); - } - return void 0 === l && (l = 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 !== l && clearTimeout(l), (o = c = i = l = void (u = 0)); - }), - (O.flush = function() { - return void 0 === l ? a : S(n()); - }), - O - ); - }; - }.call(this, n(3))); - }, - function(e, t, n) { - "use strict"; - (function(e) { - var n = - "undefined" != typeof Map - ? Map - : (Object.defineProperty(r.prototype, "size", { - get: function() { - return this.__entries__.length; - }, - enumerable: !0, - configurable: !0 - }), - (r.prototype.get = function(e) { - return ( - (e = o(this.__entries__, e)), - (e = this.__entries__[e]) && e[1] - ); - }), - (r.prototype.set = function(e, t) { - var n = o(this.__entries__, e); - ~n - ? (this.__entries__[n][1] = t) - : this.__entries__.push([e, t]); - }), - (r.prototype.delete = function(e) { - var t = this.__entries__; - ~(e = o(t, e)) && t.splice(e, 1); - }), - (r.prototype.has = function(e) { - return !!~o(this.__entries__, e); - }), - (r.prototype.clear = function() { - this.__entries__.splice(0); - }), - (r.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]); - } - }), - r); - function r() { - this.__entries__ = []; - } - function o(e, t) { - var n = -1; - return ( - e.some(function(e, r) { - return e[0] === t && ((n = r), !0); - }), - n - ); - } - 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); - }, - l = [ - "top", - "right", - "bottom", - "left", - "width", - "height", - "size", - "weight" - ], - c = "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), - c - ? ((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; - l.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 - l < 2) return; - s = !0; - } else (s = !(i = !0)), setTimeout(t, o); - l = e; - } - var r, o, i, s, l; - (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)), - (l = 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) { - var t; - return i - ? b(e) - ? m(0, 0, (t = (t = e).getBBox()).width, t.height) - : (function(e) { - var t, - n, - r, - o, - i, - s, - a = e.clientWidth, - l = e.clientHeight; - return a || l - ? ((n = - (t = (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; - })((s = f(e).getComputedStyle(e)))).left + t.right), - (r = t.top + t.bottom), - (o = y(s.width)), - (i = y(s.height)), - "border-box" === s.boxSizing && - (Math.round(o + n) !== a && - (o -= v(s, "left", "right") + n), - Math.round(i + r) !== l && - (i -= v(s, "top", "bottom") + r)), - e !== f(e).document.documentElement && - ((s = Math.round(o + n) - a), - (e = Math.round(i + r) - l), - 1 !== Math.abs(s) && (o -= s), - 1 !== Math.abs(e) && (i -= e)), - m(t.left, t.top, o, i)) - : h; - })(e) - : h; - } - function m(e, t, n, r) { - return { x: e, y: t, width: n, height: r }; - } - (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 - ); - }); - var w = 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) { - (n = (t = t).x), - (r = t.y), - (i = t.width), - (t = t.height), - (o = - "undefined" != typeof DOMRectReadOnly - ? DOMRectReadOnly - : Object), - (o = Object.create(o.prototype)), - p(o, { - x: n, - y: r, - width: i, - height: t, - top: r, - right: n + i, - bottom: t + r, - left: n - }); - var n, - r, - o, - i = o; - 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)(), - E = 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(); - t = new k(t, n, this); - T.set(this, t); - }; - ["observe", "unobserve", "disconnect"].forEach(function(e) { - E.prototype[e] = function() { - var t; - return (t = T.get(this))[e].apply(t, arguments); - }; - }), - (e = void 0 !== s.ResizeObserver ? s.ResizeObserver : E); - 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)); - function l(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 c(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? l(Object(n), !0).forEach(function(t) { - var r, o; - (r = e), - (o = n[(t = t)]), - t in r - ? Object.defineProperty(r, t, { - value: o, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (r[t] = o); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : l(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - } - function u(e, t, n) { - return Math.max(t, Math.min(e, n)); - } - function d(e, t) { - var n = {}; - return ( - t.forEach(function(t) { - return (n[t] = e[t]); - }), - n - ); - } - function p(e) { - return e.unslick || !e.infinite ? 0 : e.slideCount; - } - function f() { - return !( - "undefined" == typeof window || - !window.document || - !window.document.createElement - ); - } - var h = function(e) { - ["onTouchStart", "onTouchMove", "onWheel"].includes(e._reactName) || - e.preventDefault(); - }, - y = function(e) { - for (var t = [], n = v(e), r = b(e), o = n; o < r; o++) - e.lazyLoadedList.indexOf(o) < 0 && t.push(o); - return t; - }, - v = function(e) { - var t = e.currentSlide - g(e); - return "anticipated" === e.lazyLoad && --t, t; - }, - b = function(e) { - var t = e.currentSlide + m(e); - return "anticipated" === e.lazyLoad && (t += 1), t; - }, - g = function(e) { - return e.centerMode - ? Math.floor(e.slidesToShow / 2) + - (0 < parseInt(e.centerPadding) ? 1 : 0) - : 0; - }, - m = function(e) { - return e.centerMode - ? Math.floor((e.slidesToShow - 1) / 2) + - 1 + - (0 < parseInt(e.centerPadding) ? 1 : 0) - : e.slidesToShow; - }, - w = function(e) { - return (e && e.offsetWidth) || 0; - }, - S = function(e) { - return (e && e.offsetHeight) || 0; - }, - O = function(e) { - var t = - 1 < arguments.length && void 0 !== arguments[1] && arguments[1], - n = e.startX - e.curX; - (e = e.startY - e.curY), (e = Math.atan2(e, n)); - return ((n = - (n = Math.round((180 * e) / Math.PI)) < 0 - ? 360 - Math.abs(n) - : n) <= 45 && - 0 <= n) || - (n <= 360 && 315 <= n) - ? "left" - : 135 <= n && n <= 225 - ? "right" - : !0 === t - ? 35 <= n && n <= 135 - ? "up" - : "down" - : "vertical"; - }, - k = 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 - ); - }, - j = 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; - }, - T = function(e) { - var t, - n, - r = e.centerMode - ? e.slideWidth * Math.floor(e.slidesToShow / 2) - : 0; - return e.swipeToSlide - ? ((n = - ((n = e.listRef).querySelectorAll && - n.querySelectorAll(".slick-slide")) || - []), - Array.from(n).every(function(n) { - if (e.vertical) { - if (n.offsetTop + S(n) / 2 > -1 * e.swipeLeft) - return (t = n), !1; - } else if (n.offsetLeft - r + w(n) / 2 > -1 * e.swipeLeft) return (t = n), !1; - return !0; - }), - t - ? ((n = - !0 === e.rtl - ? e.slideCount - e.currentSlide - : e.currentSlide), - Math.abs(t.dataset.index - n) || 1) - : 0) - : e.slidesToScroll; - }, - E = function(e, t) { - return t.reduce(function(t, n) { - return t && e.hasOwnProperty(n); - }, !0) - ? null - : console.error("Keys Missing:", e); - }, - P = function(e) { - E(e, [ - "left", - "variableWidth", - "slideCount", - "slidesToShow", - "slideWidth" - ]); - var t, - n, - r, - o, - i, - s = e.slideCount + 2 * e.slidesToShow; - e.vertical ? (n = s * e.slideHeight) : (t = M(e) * e.slideWidth), - (s = { opacity: 1, transition: "", WebkitTransition: "" }); - return ( - e.useTransform - ? ((r = e.vertical - ? "translate3d(0px, " + e.left + "px, 0px)" - : "translate3d(" + e.left + "px, 0px, 0px)"), - (o = e.vertical - ? "translate3d(0px, " + e.left + "px, 0px)" - : "translate3d(" + e.left + "px, 0px, 0px)"), - (i = e.vertical - ? "translateY(" + e.left + "px)" - : "translateX(" + e.left + "px)"), - (s = c( - c({}, s), - {}, - { WebkitTransform: r, transform: o, msTransform: i } - ))) - : 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 - ); - }, - _ = function(e) { - E(e, [ - "left", - "variableWidth", - "slideCount", - "slidesToShow", - "slideWidth", - "speed", - "cssEase" - ]); - var t = P(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 - ); - }, - x = function(e) { - if (e.unslick) return 0; - E(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, - l = e.slideWidth, - c = 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 = -L(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))), - (v = f ? t * d * -1 + p * d : t * l * -1 + p * l), - !0 === u) - ) { - var h = n && n.node; - if ( - ((y = t + L(e)), - (v = (i = h && h.childNodes[y]) ? -1 * i.offsetLeft : 0), - !0 === o) - ) { - for ( - var y = r ? t + L(e) : t, - v = ((i = h && h.children[y]), 0), - b = 0; - b < y; - b++ - ) - v -= h && h.children[b] && h.children[b].offsetWidth; - v = - (v -= parseInt(e.centerPadding)) + - (i && (c - i.offsetWidth) / 2); - } - } - return v; - }, - L = function(e) { - return e.unslick || !e.infinite - ? 0 - : e.variableWidth - ? e.slideCount - : e.slidesToShow + (e.centerMode ? 1 : 0); - }, - M = function(e) { - return 1 === e.slideCount ? 1 : L(e) + e.slideCount + p(e); - }, - C = function(e) { - return e.targetSlide > e.currentSlide - ? e.targetSlide > - e.currentSlide + - (function(e) { - var t = e.slidesToShow, - n = e.centerMode, - r = e.rtl; - return ( - (e = e.centerPadding), - n - ? ((n = (t - 1) / 2 + 1), - 0 < parseInt(e) && (n += 1), - r && t % 2 == 0 && (n += 1), - n) - : r - ? 0 - : t - 1 - ); - })(e) - ? "left" - : "right" - : e.targetSlide < - e.currentSlide - - (function(e) { - var t = e.slidesToShow, - n = e.centerMode, - r = e.rtl; - return ( - (e = e.centerPadding), - n - ? ((n = (t - 1) / 2 + 1), - 0 < parseInt(e) && (n += 1), - r || t % 2 != 0 || (n += 1), - n) - : r - ? t - 1 - : 0 - ); - })(e) - ? "right" - : "left"; - }; - function R(e) { - return (R = - "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 z() { - return (z = 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 D(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, r.key, r); - } - } - function W(e, t) { - return (W = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function H(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - function A(e) { - return (A = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function I(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 N(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? I(Object(n), !0).forEach(function(t) { - q(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : I(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - } - function q(e, t, n) { - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n); - } - function F(e) { - var t, - n, - r = e.rtl ? e.slideCount - 1 - e.index : e.index, - o = r < 0 || r >= e.slideCount, - i = - (e.centerMode - ? ((i = Math.floor(e.slidesToShow / 2)), - (n = (r - e.currentSlide) % e.slideCount == 0), - r > e.currentSlide - i - 1 && - r <= e.currentSlide + i && - (t = !0)) - : (t = - e.currentSlide <= r && r < e.currentSlide + e.slidesToShow), - r === - (e.targetSlide < 0 - ? e.targetSlide + e.slideCount - : e.targetSlide >= e.slideCount - ? e.targetSlide - e.slideCount - : e.targetSlide)); - return ( - q( - (r = { - "slick-slide": !0, - "slick-active": t, - "slick-center": n, - "slick-cloned": o - }), - "slick-cloned ".concat( - null == (t = e.classes) ? void 0 : t.cloned - ), - o && (null == (n = e.classes) ? void 0 : n.cloned) - ), - q(r, "slick-current", i), - r - ); - } - function B(e, t) { - return e.key || t; - } - var X = (function(e) { - var t = r; - 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 } - })), - Object.defineProperty(t, "prototype", { writable: !1 }), - e && W(t, e); - var n = (function(e) { - var t = (function() { - if ("undefined" == typeof Reflect || !Reflect.construct) - return !1; - if (Reflect.construct.sham) return !1; - if ("function" == typeof Proxy) return !0; - try { - return ( - Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - })(); - return function() { - var n, - r = A(e); - (n = t - ? ((n = A(this).constructor), - Reflect.construct(r, arguments, n)) - : r.apply(this, arguments)), - (r = this); - if (n && ("object" === R(n) || "function" == typeof n)) return n; - if (void 0 !== n) - throw new TypeError( - "Derived constructors may only return object or undefined" - ); - return H(r); - }; - })(r); - function r() { - var e, - t = this, - o = r; - if (!(t instanceof o)) - throw new TypeError("Cannot call a class as a function"); - for (var i = arguments.length, s = new Array(i), a = 0; a < i; a++) - s[a] = arguments[a]; - return ( - q(H((e = n.call.apply(n, [this].concat(s)))), "node", null), - q(H(e), "handleRef", function(t) { - e.node = t; - }), - e - ); - } - return ( - (t = r), - (e = [ - { - key: "render", - value: function() { - var e, - t = (function(e) { - var t, - n = [], - r = [], - i = [], - s = o.a.Children.count(e.children), - l = v(e), - c = b(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)) || - (function() { - return (0 < arguments.length && - void 0 !== arguments[0] - ? arguments[0] - : [] - ).includes( - 1 < arguments.length ? arguments[1] : void 0 - ); - })(e.omitLazyForSlides, d) - ? u - : o.a.createElement("div", null), - y = - ((v = {}), - (void 0 !== - (y = N(N({}, e), {}, { index: d })) - .variableWidth && - !1 !== y.variableWidth) || - (v.width = y.slideWidth), - y.fade && - ((v.position = "relative"), - y.vertical - ? (v.top = -y.index * parseInt(y.slideHeight)) - : (v.left = - -y.index * parseInt(y.slideWidth)), - (v.opacity = - y.currentSlide === y.index ? 1 : 0), - y.useCSS && - (v.transition = - "opacity " + - y.speed + - "ms " + - y.cssEase + - ", visibility " + - y.speed + - "ms " + - y.cssEase)), - v), - v = h.props.className || "", - b = F(N(N({}, e), {}, { index: d })); - n.push( - o.a.cloneElement(h, { - key: "original" + B(h, d), - "data-index": d, - className: a()( - b, - v, - null == (p = e.classes) ? void 0 : p.slide - ), - tabIndex: "-1", - "aria-hidden": !b["slick-active"], - style: N( - N({ 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) <= L(e) && - s !== e.slidesToShow && - (l <= (t = -p) && (h = u), - (b = F(N(N({}, e), {}, { index: t }))), - r.push( - o.a.cloneElement(h, { - key: "precloned" + B(h, t), - "data-index": t, - tabIndex: "-1", - className: a()( - b, - v, - null == (p = e.classes) ? void 0 : p.slide - ), - "aria-hidden": !b["slick-active"], - style: N(N({}, h.props.style || {}), y), - onClick: function(t) { - h.props && - h.props.onClick && - h.props.onClick(t), - e.focusOnSelect && e.focusOnSelect(f); - } - }) - )), - s !== e.slidesToShow && - ((t = s + d) < c && (h = u), - (b = F(N(N({}, e), {}, { index: t }))), - i.push( - o.a.cloneElement(h, { - key: "postcloned" + B(h, t), - "data-index": t, - tabIndex: "-1", - className: a()( - b, - v, - null == (p = e.classes) ? void 0 : p.slide - ), - "aria-hidden": !b["slick-active"], - style: N(N({}, 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), - n = { - onMouseEnter: (n = this.props).onMouseEnter, - onMouseOver: n.onMouseOver, - onMouseLeave: n.onMouseLeave - }; - return o.a.createElement( - "div", - z( - { - ref: this.handleRef, - className: a()( - "slick-track", - null == (e = this.props.classes) ? void 0 : e.track - ), - style: this.props.trackStyle - }, - n - ), - t - ); - } - } - ]) && D(t.prototype, e), - Object.defineProperty(t, "prototype", { writable: !1 }), - r - ); - })(o.a.PureComponent); - function Y(e) { - return (Y = - "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 G(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 U(e, t, n) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n), - e - ); - } - function V(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, r.key, r); - } - } - function $(e, t) { - return ($ = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function K(e) { - return (K = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - var Z = (function(e) { - var t = r; - 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 } - })), - Object.defineProperty(t, "prototype", { writable: !1 }), - e && $(t, e); - var n = (function(e) { - var t = (function() { - if ("undefined" == typeof Reflect || !Reflect.construct) - return !1; - if (Reflect.construct.sham) return !1; - if ("function" == typeof Proxy) return !0; - try { - return ( - Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - })(); - return function() { - var n, - r = K(e); - (n = t - ? ((n = K(this).constructor), - Reflect.construct(r, arguments, n)) - : r.apply(this, arguments)), - (r = this); - if (n && ("object" === Y(n) || "function" == typeof n)) return n; - if (void 0 !== n) - throw new TypeError( - "Derived constructors may only return object or undefined" - ); - if (void 0 !== r) return r; - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - }; - })(r); - function r() { - var e = this, - t = r; - if (e instanceof t) return n.apply(this, arguments); - throw new TypeError("Cannot call a class as a function"); - } - return ( - (t = r), - (e = [ - { - key: "clickHandler", - value: function(e, t) { - t.preventDefault(), this.props.clickHandler(e); - } - }, - { - key: "render", - value: function() { - for ( - var e = (f = this.props).onMouseEnter, - t = f.onMouseOver, - n = f.onMouseLeave, - r = f.infinite, - i = f.slidesToScroll, - s = f.slidesToShow, - l = f.slideCount, - c = f.currentSlide, - d = f.classes, - p = (function(e) { - return (e = e.infinite - ? Math.ceil(e.slideCount / e.slidesToScroll) - : Math.ceil( - (e.slideCount - e.slidesToShow) / e.slidesToScroll - ) + 1); - })({ - slideCount: l, - slidesToScroll: i, - slidesToShow: s, - infinite: r - }), - f = { onMouseEnter: e, onMouseOver: t, onMouseLeave: n }, - h = [], - y = 0; - y < p; - y++ - ) { - var v = (y + 1) * i - 1, - b = (v = r ? v : u(v, 0, l - 1)) - (i - 1); - (b = r ? b : u(b, 0, l - 1)), - (v = a()( - null == d ? void 0 : d.dot, - U( - {}, - null != d && d.activeDot - ? "slick-active ".concat( - null == d ? void 0 : d.activeDot - ) - : "slick-active", - r ? b <= c && c <= v : c === b - ) - )), - (b = this.clickHandler.bind(this, { - message: "dots", - index: y, - slidesToScroll: i, - currentSlide: c - })), - (h = h.concat( - o.a.createElement( - "li", - { key: y, className: v }, - o.a.cloneElement(this.props.customPaging(y), { - onClick: b - }) - ) - )); - } - return o.a.cloneElement( - this.props.appendDots(h), - (function(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? G(Object(n), !0).forEach(function(t) { - U(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - e, - Object.getOwnPropertyDescriptors(n) - ) - : G(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - })( - { - className: a()( - this.props.dotsClass, - null == d ? void 0 : d.dots - ) - }, - f - ) - ); - } - } - ]) && V(t.prototype, e), - Object.defineProperty(t, "prototype", { writable: !1 }), - r - ); - })(o.a.PureComponent); - function J(e) { - return (J = - "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 ee(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 te(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? ee(Object(n), !0).forEach(function(t) { - var r, o; - (r = e), - (o = n[(t = t)]), - t in r - ? Object.defineProperty(r, t, { - value: o, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (r[t] = o); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : ee(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - } - function ne(e, t) { - if (!(e instanceof t)) - throw new TypeError("Cannot call a class as a function"); - } - function re(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, r.key, r); - } - } - function oe(e, t, n) { - t && re(e.prototype, t), - n && re(e, n), - Object.defineProperty(e, "prototype", { writable: !1 }); - } - function ie(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 se(e) { - var t = (function() { - if ("undefined" == typeof Reflect || !Reflect.construct) return !1; - if (Reflect.construct.sham) return !1; - if ("function" == typeof Proxy) return !0; - try { - return ( - Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - })(); - return function() { - var n, - r = ae(e); - (n = t - ? ((n = ae(this).constructor), Reflect.construct(r, arguments, n)) - : r.apply(this, arguments)), - (r = this); - if (n && ("object" === J(n) || "function" == typeof n)) return n; - if (void 0 !== n) - throw new TypeError( - "Derived constructors may only return object or undefined" - ); - if (void 0 !== r) return r; - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - }; - } - function ae(e) { - return (ae = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - var le = (function() { - ie(t, o.a.PureComponent); - var e = se(t); - function t() { - return ne(this, t), e.apply(this, arguments); - } - return ( - oe(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" }), - n = - (!this.props.infinite && - (0 === this.props.currentSlide || - this.props.slideCount <= this.props.slidesToShow) && - ((e["slick-disabled"] = !0), - (e[ - null == (n = this.props.classes) - ? void 0 - : n.disabled - ] = !( - null == (n = this.props.classes) || !n.disabled - )), - (t = null)), - { - key: "0", - "data-role": "none", - className: a()( - e, - null == (n = this.props.classes) ? void 0 : n.arrow, - null == (e = this.props.classes) ? void 0 : e.prev - ), - style: { display: "block" }, - onClick: t - }); - e = { - currentSlide: this.props.currentSlide, - slideCount: this.props.slideCount - }; - return (t = this.props.prevArrow - ? o.a.cloneElement(this.props.prevArrow, te(te({}, n), e)) - : o.a.createElement( - "button", - Q({ key: "0", type: "button" }, n), - " ", - "Previous" - )); - } - } - ]), - t - ); - })(), - ce = (function() { - ie(t, o.a.PureComponent); - var e = se(t); - function t() { - return ne(this, t), e.apply(this, arguments); - } - return ( - oe(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" }), - n = - (k(this.props) || - ((e["slick-disabled"] = !0), - (e[ - null == (n = this.props.classes) - ? void 0 - : n.disabled - ] = !( - null == (n = this.props.classes) || !n.disabled - )), - (t = null)), - { - key: "1", - "data-role": "none", - className: a()( - e, - null == (n = this.props.classes) ? void 0 : n.arrow, - null == (e = this.props.classes) ? void 0 : e.next - ), - style: { display: "block" }, - onClick: t - }); - e = { - currentSlide: this.props.currentSlide, - slideCount: this.props.slideCount - }; - return (t = this.props.nextArrow - ? o.a.cloneElement(this.props.nextArrow, te(te({}, n), e)) - : o.a.createElement( - "button", - Q({ key: "1", type: "button" }, n), - " ", - "Next" - )); - } - } - ]), - t - ); - })(), - ue = n(6), - de = ["animating"]; - function pe(e) { - return (pe = - "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 fe() { - return (fe = 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 he(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 ye(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 ve(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? ye(Object(n), !0).forEach(function(t) { - Se(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : ye(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - } - function be(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, r.key, r); - } - } - function ge(e, t) { - return (ge = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function me(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - function we(e) { - return (we = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function Se(e, t, n) { - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n); - } - var Oe = (function(e) { - var t = r; - 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 } - })), - Object.defineProperty(t, "prototype", { writable: !1 }), - e && ge(t, e); - var n = (function(e) { - var t = (function() { - if ("undefined" == typeof Reflect || !Reflect.construct) - return !1; - if (Reflect.construct.sham) return !1; - if ("function" == typeof Proxy) return !0; - try { - return ( - Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - })(); - return function() { - var n, - r = we(e); - (n = t - ? ((n = we(this).constructor), - Reflect.construct(r, arguments, n)) - : r.apply(this, arguments)), - (r = this); - if (n && ("object" === pe(n) || "function" == typeof n)) - return n; - if (void 0 !== n) - throw new TypeError( - "Derived constructors may only return object or undefined" - ); - return me(r); - }; - })(r); - function r(e) { - var t; - if (!(this instanceof r)) - throw new TypeError("Cannot call a class as a function"); - return ( - Se(me((t = n.call(this, e))), "listRefHandler", function(e) { - return (t.list = e); - }), - Se(me(t), "trackRefHandler", function(e) { - return (t.track = e); - }), - Se(me(t), "adaptHeight", function() { - var e; - t.props.adaptiveHeight && - t.list && - ((e = t.list.querySelector( - '[data-index="'.concat(t.state.currentSlide, '"]') - )), - (t.list.style.height = S(e) + "px")); - }), - Se(me(t), "componentDidMount", function() { - t.props.onInit && t.props.onInit(), - t.props.lazyLoad && - 0 < (e = y(ve(ve({}, t.props), t.state))).length && - (t.setState(function(t) { - return { lazyLoadedList: t.lazyLoadedList.concat(e) }; - }), - t.props.onLazyLoad && t.props.onLazyLoad(e)); - var e, - n = ve({ 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 ue.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); - }), - Se(me(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(); - }), - Se(me(t), "componentDidUpdate", function(e) { - t.checkImagesLoad(), - t.props.onReInit && t.props.onReInit(), - t.props.lazyLoad && - 0 < (n = y(ve(ve({}, 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 n, - r = ve( - ve({ 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"); - }); - }), - Se(me(t), "onWindowResized", function(e) { - t.debouncedResize && t.debouncedResize.cancel(), - (t.debouncedResize = s()(function() { - return t.resizeWindow(e); - }, 50)), - t.debouncedResize(); - }), - Se(me(t), "resizeWindow", function() { - var e, - n = - !(0 < arguments.length && void 0 !== arguments[0]) || - arguments[0]; - Boolean(t.track && t.track.node) && - ((e = ve( - ve({ 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); - }), - Se(me(t), "updateState", function(e, n, r) { - (i = e), - (s = o.a.Children.count(i.children)), - (a = i.listRef), - (h = Math.ceil(w(a))), - (v = i.trackRef && i.trackRef.node), - (v = Math.ceil(w(v))), - (f = i.vertical - ? h - : ((f = i.centerMode && 2 * parseInt(i.centerPadding)), - "string" == typeof i.centerPadding && - "%" === i.centerPadding.slice(-1) && - (f *= h / 100), - Math.ceil((h - f) / i.slidesToShow))), - (l = - (a = a && S(a.querySelector('[data-index="0"]'))) * - i.slidesToShow), - (u = - void 0 === i.currentSlide - ? i.initialSlide - : i.currentSlide), - i.rtl && - void 0 === i.currentSlide && - (u = s - 1 - i.initialSlide), - (d = i.lazyLoadedList || []), - (p = y( - c(c({}, i), {}, { currentSlide: u, lazyLoadedList: d }) - )), - (s = { - slideCount: s, - slideWidth: f, - listWidth: h, - trackWidth: v, - currentSlide: u, - slideHeight: a, - listHeight: l, - lazyLoadedList: (d = d.concat(p)) - }), - null === i.autoplaying && - i.autoplay && - (s.autoplaying = "playing"); - var i, - s, - a, - l, - u, - d, - p, - f = s, - h = - ((e = ve( - ve(ve({}, e), f), - {}, - { slideIndex: f.currentSlide } - )), - x(e)), - v = ((e = ve(ve({}, e), {}, { left: h })), P(e)); - (!n && - o.a.Children.count(t.props.children) === - o.a.Children.count(e.children)) || - (f.trackStyle = v), - t.setState(f, r); - }), - Se(me(t), "ssrInit", function() { - if (t.props.variableWidth) { - var e = 0, - n = 0, - r = [], - i = L( - ve( - ve(ve({}, t.props), t.state), - {}, - { slideCount: t.props.children.length } - ) - ), - s = p( - ve( - ve(ve({}, 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 l = 0; l < s; l++) e += r[l]; - for (var c = 0; c < t.state.currentSlide; c++) n += r[c]; - var u = { width: e + "px", left: -n + "px" }; - return ( - t.props.centerMode && - ((d = "".concat(r[t.state.currentSlide], "px")), - (u.left = "calc(" - .concat(u.left, " + (100% - ") - .concat(d, ") / 2 ) "))), - { trackStyle: u } - ); - } - var d = o.a.Children.count(t.props.children), - f = - ((u = ve( - ve(ve({}, t.props), t.state), - {}, - { slideCount: d } - )), - (d = L(u) + p(u) + d), - (100 / t.props.slidesToShow) * d); - u = - (-(d = 100 / d) * (L(u) + t.state.currentSlide) * f) / 100; - return ( - t.props.centerMode && (u += (100 - (d * f) / 100) / 2), - { - slideWidth: d + "%", - trackStyle: { width: f + "%", left: u + "%" } - } - ); - }), - Se(me(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(); - }))); - }); - }), - Se(me(t), "progressiveLazyLoad", function() { - for ( - var e = [], - n = ve(ve({}, t.props), t.state), - r = t.state.currentSlide; - r < t.state.slideCount + p(n); - r++ - ) - if (t.state.lazyLoadedList.indexOf(r) < 0) { - e.push(r); - break; - } - for (var o = t.state.currentSlide - 1; o >= -L(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); - }), - Se(me(t), "slideHandler", function(e) { - var n = - 1 < arguments.length && - void 0 !== arguments[1] && - arguments[1], - r = (l = t.props).asNavFor, - o = l.beforeChange, - i = l.onLazyLoad, - s = l.speed, - a = l.afterChange, - l = t.state.currentSlide, - d = (n = (function(e) { - var t = e.waitForAnimate, - n = e.animating, - r = e.fade, - o = e.infinite, - i = e.index, - s = e.slideCount, - a = e.lazyLoad, - l = e.currentSlide, - d = e.centerMode, - p = e.slidesToScroll, - f = e.slidesToShow, - h = e.useCSS, - v = e.lazyLoadedList; - if (t && n) return {}; - (t = i), (n = {}); - var b = {}, - g = o ? i : u(i, 0, s - 1); - if (r) { - if (!o && (i < 0 || s <= i)) return {}; - i < 0 ? (t = i + s) : s <= i && (t = i - s), - (b = { - animating: !(n = { - animating: !0, - currentSlide: t, - lazyLoadedList: (v = - a && v.indexOf(t) < 0 ? v.concat(t) : v), - targetSlide: t - }), - targetSlide: t - }); - } else - (r = t) < 0 - ? ((r = t + s), - o ? s % p != 0 && (r = s - (s % p)) : (r = 0)) - : !k(e) && l < t - ? (t = r = l) - : d && s <= t - ? ((t = o ? s : s - 1), (r = o ? 0 : s - 1)) - : s <= t && - ((r = t - s), - o ? s % p != 0 && (r = 0) : (r = s - f)), - !o && s <= t + f && (r = s - f), - (i = x(c(c({}, e), {}, { slideIndex: t }))), - (l = x(c(c({}, e), {}, { slideIndex: r }))), - o || (i === l && (t = r), (i = l)), - a && - (v = v.concat( - y(c(c({}, e), {}, { currentSlide: t })) - )), - h - ? (b = { - animating: !(n = { - animating: !0, - currentSlide: r, - trackStyle: _(c(c({}, e), {}, { left: i })), - lazyLoadedList: v, - targetSlide: g - }), - currentSlide: r, - trackStyle: P(c(c({}, e), {}, { left: l })), - swipeLeft: null, - targetSlide: g - }) - : (n = { - currentSlide: r, - trackStyle: P(c(c({}, e), {}, { left: l })), - lazyLoadedList: v, - targetSlide: g - }); - return { state: n, nextState: b }; - })( - ve( - ve(ve({ index: e }, t.props), t.state), - {}, - { trackRef: t.track, useCSS: t.props.useCSS && !n } - ) - )).state, - p = n.nextState; - d && - (o && o(l, d.currentSlide), - (n = d.lazyLoadedList.filter(function(e) { - return t.state.lazyLoadedList.indexOf(e) < 0; - })), - i && 0 < n.length && i(n), - !t.props.waitForAnimate && - t.animationEndCallback && - (clearTimeout(t.animationEndCallback), - a && a(l), - delete t.animationEndCallback), - t.setState(d, function() { - r && - t.asNavForIndex !== e && - ((t.asNavForIndex = e), r.innerSlider.slideHandler(e)), - p && - (t.animationEndCallback = setTimeout(function() { - var e = p.animating, - n = he(p, de); - t.setState(n, function() { - t.callbackTimers.push( - setTimeout(function() { - return t.setState({ animating: e }); - }, 10) - ), - a && a(d.currentSlide), - delete t.animationEndCallback; - }); - }, s)); - })); - }), - Se(me(t), "changeSlide", function(e) { - var n, - r, - o, - i, - s, - a, - l, - u, - d, - p = - 1 < arguments.length && - void 0 !== arguments[1] && - arguments[1], - f = ve(ve({}, t.props), t.state), - h = - ((e = e), - (r = (f = f).slidesToScroll), - (o = f.slidesToShow), - (i = f.slideCount), - (s = f.currentSlide), - (a = f.targetSlide), - (d = f.lazyLoad), - (l = f.infinite), - (u = i % r != 0 ? 0 : (i - s) % r), - "previous" === e.message - ? ((n = s - (h = 0 == u ? r : o - u)), - d && !l && (n = -1 == (o = s - h) ? i - 1 : o), - l || (n = a - r)) - : "next" === e.message - ? ((n = s + (h = 0 == u ? r : u)), - d && !l && (n = ((s + r) % i) + u), - l || (n = a + r)) - : "dots" === e.message - ? (n = e.index * e.slidesToScroll) - : "children" === e.message - ? ((n = e.index), - l && - ((o = C(c(c({}, f), {}, { targetSlide: n }))), - n > e.currentSlide && "left" === o - ? (n -= i) - : n < e.currentSlide && - "right" === o && - (n += i))) - : "index" === e.message && (n = Number(e.index)), - n); - (0 !== h && !h) || - (!0 === p ? t.slideHandler(h, p) : t.slideHandler(h), - t.props.autoplay && t.autoPlay("update"), - t.props.focusOnSelect && - (d = t.list.querySelectorAll(".slick-current"))[0] && - d[0].focus()); - }), - Se(me(t), "clickHandler", function(e) { - !1 === t.clickable && - (e.stopPropagation(), e.preventDefault()), - (t.clickable = !0); - }), - Se(me(t), "keyHandler", function(e) { - (e = e), (r = t.props.accessibility), (n = t.props.rtl); - var n, - r = - e.target.tagName.match("TEXTAREA|INPUT|SELECT") || !r - ? "" - : 37 === e.keyCode - ? n - ? "next" - : "previous" - : 39 === e.keyCode - ? n - ? "previous" - : "next" - : ""; - r && t.changeSlide({ message: r }); - }), - Se(me(t), "selectHandler", function(e) { - t.changeSlide(e); - }), - Se(me(t), "disableBodyScroll", function() { - window.ontouchmove = function(e) { - (e = e || window.event).preventDefault && - e.preventDefault(), - (e.returnValue = !1); - }; - }), - Se(me(t), "enableBodyScroll", function() { - window.ontouchmove = null; - }), - Se(me(t), "swipeStart", function(e) { - t.props.verticalSwiping && t.disableBodyScroll(), - (e = e), - (r = t.props.swipe), - (n = t.props.draggable), - "IMG" === e.target.tagName && h(e); - var n, - r = - !r || (!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 - } - }; - "" !== r && t.setState(r); - }), - Se(me(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, - l = t.currentSlide, - u = t.edgeFriction, - d = t.edgeDragged, - p = t.onEdge, - f = t.swiped, - y = t.swiping, - v = t.slideCount, - b = t.slidesToScroll, - g = t.infinite, - m = t.touchObject, - w = t.swipeEvent, - S = t.listHeight, - j = t.listWidth; - if (!n) - return r - ? h(e) - : (o && i && s && h(e), - (n = {}), - (r = x(t)), - (m.curX = e.touches ? e.touches[0].pageX : e.clientX), - (m.curY = e.touches ? e.touches[0].pageY : e.clientY), - (m.swipeLength = Math.round( - Math.sqrt(Math.pow(m.curX - m.startX, 2)) - )), - (i = Math.round( - Math.sqrt(Math.pow(m.curY - m.startY, 2)) - )), - !s && !y && 10 < i - ? { scrolling: !0 } - : (s && (m.swipeLength = i), - (y = (a ? -1 : 1) * (m.curX > m.startX ? 1 : -1)), - s && (y = m.curY > m.startY ? 1 : -1), - (i = Math.ceil(v / b)), - (v = O(t.touchObject, s)), - (b = m.swipeLength), - g || - (((0 === l && - ("right" === v || "down" === v)) || - (i <= l + 1 && - ("left" === v || "up" === v)) || - (!k(t) && ("left" === v || "up" === v))) && - ((b = m.swipeLength * u), - !1 === d && - p && - (p(v), (n.edgeDragged = !0)))), - !f && w && (w(v), (n.swiped = !0)), - (g = s - ? r + b * y - : o - ? r + b * (S / j) * y - : a - ? r - b * y - : r + b * y), - (n = c( - c({}, n), - {}, - { - touchObject: m, - swipeLeft: g, - trackStyle: P(c(c({}, t), {}, { left: g })) - } - )), - Math.abs(m.curX - m.startX) < - 0.8 * Math.abs(m.curY - m.startY) || - (10 < m.swipeLength && - ((n.swiping = !0), h(e))), - n)); - })( - e, - ve( - ve(ve({}, t.props), t.state), - {}, - { - trackRef: t.track, - listRef: t.list, - slideIndex: t.state.currentSlide - } - ) - )) && (e.swiping && (t.clickable = !1), t.setState(e)); - }), - Se(me(t), "swipeEnd", function(e) { - var n; - (e = (function(e, t) { - var n = t.dragging, - r = t.swipe, - o = t.touchObject, - i = t.listWidth, - s = t.touchThreshold, - a = t.verticalSwiping, - l = t.listHeight, - u = t.swipeToSlide, - d = t.scrolling, - p = t.onSwipe, - f = t.targetSlide, - y = t.currentSlide, - v = t.infinite; - if (!n) return r && h(e), {}; - (n = a ? l / s : i / s), (r = O(o, a)); - var b = { - dragging: !1, - edgeDragged: !1, - scrolling: !1, - swiping: !1, - swiped: !1, - swipeLeft: null, - touchObject: {} - }; - if (!d && o.swipeLength) - if (o.swipeLength > n) { - h(e), p && p(r); - var g, - m, - w = v ? y : f; - switch (r) { - case "left": - case "up": - (m = w + T(t)), - (g = u ? j(t, m) : m), - (b.currentDirection = 0); - break; - case "right": - case "down": - (m = w - T(t)), - (g = u ? j(t, m) : m), - (b.currentDirection = 1); - break; - default: - g = w; - } - b.triggerSlideHandler = g; - } else - (l = x(t)), - (b.trackStyle = _(c(c({}, t), {}, { left: l }))); - return b; - })( - e, - ve( - ve(ve({}, t.props), t.state), - {}, - { - trackRef: t.track, - listRef: t.list, - slideIndex: t.state.currentSlide - } - ) - )) && - ((n = e.triggerSlideHandler), - delete e.triggerSlideHandler, - t.setState(e), - void 0 !== n && - (t.slideHandler(n), - t.props.verticalSwiping && t.enableBodyScroll())); - }), - Se(me(t), "touchEnd", function(e) { - t.swipeEnd(e), (t.clickable = !0); - }), - Se(me(t), "slickPrev", function() { - t.callbackTimers.push( - setTimeout(function() { - return t.changeSlide({ message: "previous" }); - }, 0) - ); - }), - Se(me(t), "slickNext", function() { - t.callbackTimers.push( - setTimeout(function() { - return t.changeSlide({ message: "next" }); - }, 0) - ); - }), - Se(me(t), "slickGoTo", function(e) { - var n = - 1 < arguments.length && - void 0 !== arguments[1] && - arguments[1]; - if (((e = Number(e)), isNaN(e))) return ""; - t.callbackTimers.push( - setTimeout(function() { - return t.changeSlide( - { - message: "index", - index: e, - currentSlide: t.state.currentSlide - }, - n - ); - }, 0) - ); - }), - Se(me(t), "play", function() { - var e; - if (t.props.rtl) - e = t.state.currentSlide - t.props.slidesToScroll; - else { - if (!k(ve(ve({}, t.props), t.state))) return !1; - e = t.state.currentSlide + t.props.slidesToScroll; - } - t.slideHandler(e); - }), - Se(me(t), "autoPlay", function(e) { - t.autoplayTimer && clearInterval(t.autoplayTimer); - var n = t.state.autoplaying; - if ("update" === e) { - if ("hovered" === n || "focused" === n || "paused" === n) - return; - } else if ("leave" === e) { - if ("paused" === n || "focused" === n) return; - } else if ( - "blur" === e && - ("paused" === n || "hovered" === n) - ) - return; - (t.autoplayTimer = setInterval( - t.play, - t.props.autoplaySpeed + 50 - )), - t.setState({ autoplaying: "playing" }); - }), - Se(me(t), "pause", function(e) { - t.autoplayTimer && - (clearInterval(t.autoplayTimer), (t.autoplayTimer = null)); - var n = t.state.autoplaying; - "paused" === e - ? t.setState({ autoplaying: "paused" }) - : "focused" === e - ? ("hovered" !== n && "playing" !== n) || - t.setState({ autoplaying: "focused" }) - : "playing" === n && t.setState({ autoplaying: "hovered" }); - }), - Se(me(t), "onDotsOver", function() { - return t.props.autoplay && t.pause("hovered"); - }), - Se(me(t), "onDotsLeave", function() { - return ( - t.props.autoplay && - "hovered" === t.state.autoplaying && - t.autoPlay("leave") - ); - }), - Se(me(t), "onTrackOver", function() { - return t.props.autoplay && t.pause("hovered"); - }), - Se(me(t), "onTrackLeave", function() { - return ( - t.props.autoplay && - "hovered" === t.state.autoplaying && - t.autoPlay("leave") - ); - }), - Se(me(t), "onSlideFocus", function() { - return t.props.autoplay && t.pause("focused"); - }), - Se(me(t), "onSlideBlur", function() { - return ( - t.props.autoplay && - "focused" === t.state.autoplaying && - t.autoPlay("blur") - ); - }), - Se(me(t), "render", function() { - var e, - n, - r, - i = a()( - "slick-slider", - t.props.className, - null == (i = t.props.classes) ? void 0 : i.slider, - { - "slick-vertical": t.props.vertical, - "slick-initialized": !0 - } - ), - s = d((c = ve(ve({}, t.props), t.state)), [ - "fade", - "cssEase", - "speed", - "infinite", - "centerMode", - "focusOnSelect", - "currentSlide", - "lazyLoad", - "lazyLoadedList", - "rtl", - "slideWidth", - "slideHeight", - "listHeight", - "vertical", - "slidesToShow", - "slidesToScroll", - "slideCount", - "trackStyle", - "variableWidth", - "unslick", - "centerPadding", - "targetSlide", - "useCSS", - "omitLazyForSlides", - "classes" - ]), - l = t.props.pauseOnHover, - c = - ((s = ve( - ve({}, s), - {}, - { - onMouseEnter: l ? t.onTrackOver : null, - onMouseLeave: l ? t.onTrackLeave : null, - onMouseOver: l ? t.onTrackOver : null, - focusOnSelect: - t.props.focusOnSelect && t.clickable - ? t.selectHandler - : null - } - )), - ((l = - (!0 === t.props.dots && - t.state.slideCount >= t.props.slidesToShow && - ((l = d(c, [ - "dotsClass", - "slideCount", - "slidesToShow", - "currentSlide", - "slidesToScroll", - "clickHandler", - "children", - "customPaging", - "infinite", - "appendDots", - "classes" - ])), - (e = t.props.pauseOnDotsHover), - (l = ve( - ve({}, l), - {}, - { - clickHandler: t.changeSlide, - onMouseEnter: e ? t.onDotsLeave : null, - onMouseOver: e ? t.onDotsOver : null, - onMouseLeave: e ? t.onDotsLeave : null - } - )), - (e = o.a.createElement(Z, l))), - d(c, [ - "infinite", - "centerMode", - "currentSlide", - "slideCount", - "slidesToShow", - "prevArrow", - "nextArrow", - "classes" - ]))).clickHandler = t.changeSlide), - t.props.arrows && - ((n = o.a.createElement(le, l)), - (r = o.a.createElement(ce, l))), - null), - u = - ((l = - (t.props.vertical && - (c = { height: t.state.listHeight }), - null)), - (c = - (!1 === t.props.vertical - ? !0 === t.props.centerMode && - (l = { padding: "0px " + t.props.centerPadding }) - : !0 === t.props.centerMode && - (l = { padding: t.props.centerPadding + " 0px" }), - ve(ve({}, c), l))), - (l = t.props.touchMove), - { - className: a()( - null == (u = t.props.classes) ? void 0 : u.list, - "slick-list" - ), - style: c, - onClick: t.clickHandler, - onMouseDown: l ? t.swipeStart : null, - onMouseMove: t.state.dragging && l ? t.swipeMove : null, - onMouseUp: l ? t.swipeEnd : null, - onMouseLeave: t.state.dragging && l ? t.swipeEnd : null, - onTouchStart: l ? t.swipeStart : null, - onTouchMove: t.state.dragging && l ? t.swipeMove : null, - onTouchEnd: l ? t.touchEnd : null, - onTouchCancel: - t.state.dragging && l ? t.swipeEnd : null, - onKeyDown: t.props.accessibility ? t.keyHandler : null - }); - c = { className: i, dir: "ltr", style: t.props.style }; - return ( - t.props.unslick && - ((u = { - className: a()( - null == (l = t.props.classes) ? void 0 : l.list, - "slick-list" - ) - }), - (c = { className: i })), - o.a.createElement( - "div", - c, - t.props.unslick ? "" : n, - o.a.createElement( - "div", - fe({ ref: t.listRefHandler }, u), - o.a.createElement( - X, - fe({ ref: t.trackRefHandler }, s), - t.props.children - ) - ), - t.props.unslick ? "" : r, - t.props.unslick ? "" : e - ) - ); - }), - (t.list = null), - (t.track = null), - (t.state = ve( - ve({}, i), - {}, - { - currentSlide: t.props.initialSlide, - slideCount: o.a.Children.count(t.props.children) - } - )), - (t.callbackTimers = []), - (t.clickable = !0), - (t.debouncedResize = null), - (e = t.ssrInit()), - (t.state = ve(ve({}, t.state), e)), - t - ); - } - return ( - (t = r), - (e = [ - { - key: "didPropsChange", - value: function(e) { - for ( - var t = !1, n = 0, r = Object.keys(this.props); - n < r.length; - n++ - ) { - var i = r[n]; - if (!e.hasOwnProperty(i)) { - t = !0; - break; - } - if ( - "object" !== pe(e[i]) && - "function" != typeof e[i] && - e[i] !== this.props[i] - ) { - t = !0; - break; - } - } - return ( - t || - o.a.Children.count(this.props.children) !== - o.a.Children.count(e.children) - ); - } - } - ]) && be(t.prototype, e), - Object.defineProperty(t, "prototype", { writable: !1 }), - r - ); - })(o.a.Component), - ke = ((r = n(2)), n.n(r)), - je = { - 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", - classes: { - arrow: null, - prev: null, - next: null, - slide: null, - disabled: null, - track: null, - slider: null, - list: null, - dot: null, - dots: null, - activeDot: null, - cloned: null - }, - customPaging: function(e) { - return o.a.createElement("button", null, e + 1); - }, - dots: !1, - dotsClass: "slick-dots", - draggable: !0, - easing: "linear", - edgeFriction: 0.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 - }; - function Te(e) { - return (Te = - "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 Ee() { - return (Ee = 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 Pe(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 _e(e) { - for (var t = 1; t < arguments.length; t++) { - var n = null != arguments[t] ? arguments[t] : {}; - t % 2 - ? Pe(Object(n), !0).forEach(function(t) { - Re(e, t, n[t]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) - : Pe(Object(n)).forEach(function(t) { - Object.defineProperty( - e, - t, - Object.getOwnPropertyDescriptor(n, t) - ); - }); - } - return e; - } - function xe(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, r.key, r); - } - } - function Le(e, t) { - return (Le = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function(e, t) { - return (e.__proto__ = t), e; - })(e, t); - } - function Me(e) { - if (void 0 === e) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return e; - } - function Ce(e) { - return (Ce = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function(e) { - return e.__proto__ || Object.getPrototypeOf(e); - })(e); - } - function Re(e, t, n) { - t in e - ? Object.defineProperty(e, t, { - value: n, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (e[t] = n); - } - var ze = f() && n(8); - r = (function(e) { - var t = r; - 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 } - })), - Object.defineProperty(t, "prototype", { writable: !1 }), - e && Le(t, e); - var n = (function(e) { - var t = (function() { - if ("undefined" == typeof Reflect || !Reflect.construct) - return !1; - if (Reflect.construct.sham) return !1; - if ("function" == typeof Proxy) return !0; - try { - return ( - Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function() {}) - ), - !0 - ); - } catch (e) { - return !1; - } - })(); - return function() { - var n, - r = Ce(e); - (n = t - ? ((n = Ce(this).constructor), - Reflect.construct(r, arguments, n)) - : r.apply(this, arguments)), - (r = this); - if (n && ("object" === Te(n) || "function" == typeof n)) return n; - if (void 0 !== n) - throw new TypeError( - "Derived constructors may only return object or undefined" - ); - return Me(r); - }; - })(r); - function r(e) { - var t; - if (this instanceof r) - return ( - Re(Me((t = n.call(this, e))), "innerSliderRefHandler", function( - e - ) { - return (t.innerSlider = e); - }), - Re(Me(t), "slickPrev", function() { - return t.innerSlider.slickPrev(); - }), - Re(Me(t), "slickNext", function() { - return t.innerSlider.slickNext(); - }), - Re(Me(t), "slickGoTo", function(e) { - return t.innerSlider.slickGoTo( - e, - 1 < arguments.length && - void 0 !== arguments[1] && - arguments[1] - ); - }), - Re(Me(t), "slickPause", function() { - return t.innerSlider.pause("paused"); - }), - Re(Me(t), "slickPlay", function() { - return t.innerSlider.autoPlay("play"); - }), - (t.state = { breakpoint: null }), - (t._responsiveMediaHandlers = []), - t - ); - throw new TypeError("Cannot call a class as a function"); - } - return ( - (t = r), - (e = [ - { - key: "media", - value: function(e, t) { - ze.register(e, t), - this._responsiveMediaHandlers.push({ - query: e, - handler: t - }); - } - }, - { - key: "componentDidMount", - value: function() { - var e, - t, - n = this; - this.props.responsive && - ((e = this.props.responsive.map(function(e) { - return e.breakpoint; - })).sort(function(e, t) { - return e - t; - }), - e.forEach(function(t, r) { - (r = - 0 === r - ? ke()({ minWidth: 0, maxWidth: t }) - : ke()({ minWidth: e[r - 1] + 1, maxWidth: t })), - f() && - n.media(r, function() { - n.setState({ breakpoint: t }); - }); - }), - (t = ke()({ minWidth: e.slice(-1)[0] })), - f() && - this.media(t, function() { - n.setState({ breakpoint: null }); - })); - } - }, - { - key: "componentWillUnmount", - value: function() { - this._responsiveMediaHandlers.forEach(function(e) { - ze.unregister(e.query, e.handler); - }); - } - }, - { - key: "render", - value: function() { - var e = this, - t = this.state.breakpoint - ? "unslick" === - (r = this.props.responsive.filter(function(t) { - return t.breakpoint === e.state.breakpoint; - }))[0].settings - ? "unslick" - : _e(_e(_e({}, je), this.props), r[0].settings) - : _e(_e({}, je), this.props); - t.centerMode && (t.slidesToScroll, (t.slidesToScroll = 1)), - t.fade && - (t.slidesToShow, - t.slidesToScroll, - (t.slidesToShow = 1), - (t.slidesToScroll = 1)); - var n = (n = o.a.Children.toArray( - this.props.children - )).filter(function(e) { - return "string" == typeof e ? !!e.trim() : !!e; - }); - t.variableWidth && - (1 < t.rows || 1 < t.slidesPerRow) && - (console.warn( - "variableWidth is not supported in case of rows > 1 or slidesPerRow > 1" - ), - (t.variableWidth = !1)); - for ( - var r, i = [], s = null, a = 0; - a < n.length; - a += t.rows * t.slidesPerRow - ) { - for ( - var l = [], c = a; - c < a + t.rows * t.slidesPerRow; - c += t.slidesPerRow - ) { - for ( - var u = [], d = c; - d < c + t.slidesPerRow && - (t.variableWidth && - n[d].props.style && - (s = n[d].props.style.width), - !(d >= n.length)); - d += 1 - ) - u.push( - o.a.cloneElement(n[d], { - key: 100 * a + 10 * c + d, - tabIndex: -1, - style: { - width: "".concat(100 / t.slidesPerRow, "%"), - display: "inline-block" - } - }) - ); - l.push(o.a.createElement("div", { key: 10 * a + c }, u)); - } - t.variableWidth - ? i.push( - o.a.createElement( - "div", - { key: a, style: { width: s } }, - l - ) - ) - : i.push(o.a.createElement("div", { key: a }, l)); - } - return "unslick" === t - ? ((r = "regular slider " + (this.props.className || "")), - o.a.createElement("div", { className: r }, n)) - : (i.length <= t.slidesToShow && (t.unslick = !0), - o.a.createElement( - o.a.Fragment, - null, - o.a.createElement( - Oe, - Ee( - { - style: this.props.style, - ref: this.innerSliderRefHandler - }, - t - ), - i - ) - )); - } - } - ]) && xe(t.prototype, e), - Object.defineProperty(t, "prototype", { writable: !1 }), - r - ); - })(o.a.Component); - t.default = r; - } - ]), - (r = {}), - (t.m = n), - (t.c = r), - (t.d = function(e, n, r) { - t.o(e, n) || Object.defineProperty(e, n, { enumerable: !0, get: r }); - }), - (t.r = function(e) { - "undefined" != typeof Symbol && - Symbol.toStringTag && - Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), - Object.defineProperty(e, "__esModule", { value: !0 }); - }), - (t.t = function(e, n) { - if ((1 & n && (e = t(e)), 8 & n)) return e; - if (4 & n && "object" == typeof e && e && e.__esModule) return e; - var r = Object.create(null); - if ( - (t.r(r), - Object.defineProperty(r, "default", { enumerable: !0, value: e }), - 2 & n && "string" != typeof e) - ) - for (var o in e) - t.d( - r, - o, - function(t) { - return e[t]; - }.bind(null, o) - ); - return r; - }), - (t.n = function(e) { - var n = - e && e.__esModule - ? function() { - return e.default; - } - : function() { - return e; - }; - return t.d(n, "a", n), n; - }), - (t.o = function(e, t) { - return Object.prototype.hasOwnProperty.call(e, t); - }), - (t.p = ""), - t((t.s = 12)) - ); - function t(e) { - var o; - return ( - r[e] || - ((o = r[e] = { i: e, l: !1, exports: {} }), - n[e].call(o.exports, o, o.exports, t), - (o.l = !0), - o) - ).exports; - } - var n, r; -}); -//# sourceMappingURL=react-slick.min.js.map diff --git a/dist/react-slick.min.js.map b/dist/react-slick.min.js.map deleted file mode 100644 index df77a09a5..000000000 --- a/dist/react-slick.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://Slider/webpack/universalModuleDefinition","webpack://Slider/external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack://Slider/./node_modules/classnames/index.js","webpack://Slider/./node_modules/json2mq/index.js","webpack://Slider/(webpack)/buildin/global.js","webpack://Slider/./node_modules/enquire.js/src/Util.js","webpack://Slider/./node_modules/lodash.debounce/index.js","webpack://Slider/./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js","webpack://Slider/./node_modules/string-convert/camel2hyphen.js","webpack://Slider/./node_modules/enquire.js/src/index.js","webpack://Slider/./node_modules/enquire.js/src/MediaQueryDispatch.js","webpack://Slider/./node_modules/enquire.js/src/MediaQuery.js","webpack://Slider/./node_modules/enquire.js/src/QueryHandler.js","webpack://Slider/./src/initial-state.js","webpack://Slider/./src/utils/innerSliderUtils.js","webpack://Slider/./src/track.js","webpack://Slider/./src/dots.js","webpack://Slider/./src/arrows.js","webpack://Slider/./src/inner-slider.js","webpack://Slider/./src/default-props.js","webpack://Slider/./src/slider.js","webpack://Slider/./src/index.js","webpack://Slider/webpack/bootstrap"],"names":["root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__0__","hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","inner","argType","push","Array","isArray","apply","toString","Object","prototype","includes","key","call","join","default","obj2mq","obj","mq","features","keys","forEach","feature","index","value","camel2hyphen","isDimension","test","query","q","g","this","Function","e","isFunction","target","each","collection","fn","now","Date","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","freeSelf","freeGlobal","global","self","objectToString","nativeMax","Math","max","nativeMin","min","isObject","type","toNumber","other","valueOf","replace","isBinary","slice","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","setTimeout","debounced","isInvoking","cancel","clearTimeout","flush","MapShim","Map","defineProperty","class_1","get","__entries__","enumerable","configurable","getIndex","entry","set","delete","entries","splice","has","clear","callback","ctx","_i","_a","arr","some","isBrowser","document","global$1","requestAnimationFrame$1","requestAnimationFrame","bind","transitionKeys","mutationObserverSupported","MutationObserver","ResizeObserverController","addObserver","observer","observers_","indexOf","connected_","connect_","removeObserver","observers","disconnect_","refresh","updateObservers_","activeObservers","filter","gatherActive","hasActive","broadcastActive","addEventListener","onTransitionEnd_","mutationsObserver_","observe","attributes","childList","characterData","subtree","mutationEventsAdded_","removeEventListener","disconnect","propertyName","_b","getInstance","instance_","resolvePending","leadingCall","trailingCall","proxy","timeoutCallback","timeStamp","delay","defineConfigurable","props","writable","getWindowOf","ownerDocument","defaultView","emptyRect","createRectInit","toFloat","parseFloat","getBordersSize","styles","positions","reduce","size","position","isSVGGraphicsElement","SVGGraphicsElement","SVGElement","getBBox","getContentRect","bbox","width","height","paddings","horizPad","vertPad","vertScrollbar","clientWidth","clientHeight","positions_1","getComputedStyle","left","right","top","bottom","boxSizing","round","documentElement","horizScrollbar","abs","getHTMLElementContentRect","x","y","ResizeObservation","isActive","rect","contentRect_","broadcastWidth","broadcastHeight","broadcastRect","ResizeObserverEntry","rectInit","Constr","DOMRectReadOnly","create","contentRect","ResizeObserverSPI","Element","observations","observations_","controller_","unobserve","clearActive","_this","observation","activeObservations_","callbackCtx_","map","callback_","controller","callbackCtx","WeakMap","ResizeObserver","method","str","match","toLowerCase","MediaQueryDispatch","MediaQuery","Util","matchMedia","Error","queries","browserIsIncapable","matches","constructor","register","shouldDegrade","isUnconditional","handler","addHandler","unregister","removeHandler","QueryHandler","handlers","mql","listener","currentTarget","assess","addListener","constuctor","qh","on","h","equals","destroy","removeListener","action","deferSetup","setup","initialised","off","unmatch","initialState","animating","autoplaying","currentDirection","currentLeft","currentSlide","direction","dragging","edgeDragged","initialized","lazyLoadedList","listHeight","listWidth","scrolling","slideCount","slideHeight","slideWidth","swipeLeft","swiped","swiping","touchObject","startX","startY","curX","curY","trackStyle","trackWidth","targetSlide","clamp","number","lowerBound","upperBound","extractObject","spec","newObject","getPostClones","unslick","infinite","canUseDOM","createElement","safePreventDefault","event","_reactName","preventDefault","getOnDemandLazySlides","onDemandSlides","startIndex","lazyStartIndex","endIndex","lazyEndIndex","slideIndex","lazySlidesOnLeft","lazyLoad","lazySlidesOnRight","centerMode","floor","slidesToShow","centerPadding","getWidth","elem","offsetWidth","getHeight","offsetHeight","getSwipeDirection","verticalSwiping","xDist","yDist","r","atan2","swipeAngle","PI","canGoNext","canGo","checkNavigable","navigables","breakpoint","counter","indexes","slidesToScroll","prevNavigable","n","getSlideCount","swipedSlide","currentIndex","centerOffset","swipeToSlide","slides","slickList","listRef","querySelectorAll","from","every","slide","vertical","offsetTop","offsetLeft","rtl","dataset","checkSpecKeys","keysArray","console","error","getTrackCSS","trackHeight","WebkitTransform","transform","msTransform","trackChildren","getTotalSlides","style","opacity","transition","WebkitTransition","useTransform","fade","attachEvent","marginTop","marginLeft","getTrackAnimateCSS","speed","cssEase","getTrackLeft","trackRef","variableWidth","slidesToOffset","getPreClones","targetLeft","trackElem","node","targetSlideIndex","childNodes","children","siblingDirection","slidesOnRight","slidesOnLeft","getSlideClasses","slickActive","slickCenter","slickCloned","slickCurrent","cloned","getKey","child","fallbackKey","Track","ref","t","preCloneSlides","postCloneSlides","childrenCount","React","Children","count","childOnClickOptions","message","omitLazyForSlides","childStyle","useCSS","slideClass","className","slideClasses","cloneElement","classnames","tabIndex","outline","onClick","focusOnSelect","preCloneNo","concat","reverse","renderSlides","mouseEvents","onMouseEnter","onMouseOver","onMouseLeave","handleRef","track","PureComponent","Dots","clickHandler","dotCount","dots","ceil","_rightBound","_leftBound","rightBound","leftBound","dot","activeDot","customPaging","appendDots","dotsClass","PrevArrow","prevClasses","prevHandler","prevArrowProps","disabled","arrow","prev","display","customProps","prevArrow","NextArrow","nextClasses","nextHandler","nextArrowProps","next","nextArrow","InnerSlider","list","adaptiveHeight","querySelector","state","onInit","slidesToLoad","setState","prevState","onLazyLoad","updateState","adaptHeight","autoplay","autoPlay","lazyLoadTimer","setInterval","progressiveLazyLoad","ro","onWindowResized","callbackTimers","onfocus","pauseOnFocus","onSlideFocus","onblur","onSlideBlur","animationEndCallback","clearInterval","timer","detachEvent","autoplayTimer","prevProps","checkImagesLoad","onReInit","setTrackStyle","didPropsChange","changeSlide","pause","debouncedResize","debounce","resizeWindow","Boolean","listNode","trackNode","centerPaddingAdj","initialSlide","updatedState","trackLeft","childrenWidths","preClones","postClones","currentWidth","images","imagesCount","loadedCount","image","prevClickHandler","onclick","parentNode","focus","onload","onerror","onLazyLoadError","dontAnimate","asNavFor","beforeChange","afterChange","waitForAnimate","animationSlide","nextState","finalSlide","animationLeft","finalLeft","asNavForIndex","innerSlider","slideHandler","firstBatch","previousTargetSlide","indexOffset","nodes","slideOffset","previousInt","Number","clickable","stopPropagation","accessibility","dir","tagName","keyCode","ontouchmove","returnValue","disableBodyScroll","swipe","draggable","touches","pageX","clientX","pageY","clientY","edgeFriction","onEdge","swipeEvent","curLeft","swipeLength","sqrt","pow","verticalSwipeLength","positionOffset","swipeDirection","touchSwipeLength","triggerSlideHandler","touchThreshold","onSwipe","minSwipe","newSlide","activeSlide","enableBodyScroll","swipeEnd","isNaN","nextIndex","playType","play","autoplaySpeed","pauseType","slider","trackProps","pauseOnHover","verticalHeightStyle","onTrackOver","onTrackLeave","selectHandler","arrowProps","dotProps","pauseOnDotsHover","onDotsLeave","onDotsOver","arrows","listProps","centerPaddingStyle","listStyle","padding","touchMove","onMouseDown","swipeStart","onMouseMove","swipeMove","onMouseUp","onTouchStart","onTouchMove","onTouchEnd","touchEnd","onTouchCancel","onKeyDown","keyHandler","innerSliderProps","listRefHandler","trackRefHandler","ssrState","ssrInit","Component","defaultProps","easing","responsive","rows","slidesPerRow","enquire","Slider","slickPrev","slickNext","slickGoTo","_responsiveMediaHandlers","breakpoints","breakpt","sort","bQuery","json2mq","minWidth","maxWidth","media","settings","newProps","resp","toArray","trim","warn","newChildren","j","row","k","innerSliderRefHandler","installedModules","__webpack_require__","m","modules","c","d","name","getter","o","Symbol","toStringTag","mode","__esModule","ns","object","property","p","s","moduleId","l"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,UACR,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,SAAUJ,GACQ,iBAAZC,QACdA,QAAgB,OAAID,EAAQG,QAAQ,UAEpCJ,EAAa,OAAIC,EAAQD,EAAY,OARvC,CASGO,QAAQ,SAASC,GACpB,O,iBCVAL,EAAOD,QAAUM,G,gBCAjB;;;;;GAOC,WACA,aAEA,IAAIC,EAAS,GAAGC,eAGhB,SAASC,IAGR,IAFA,IAAIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,UAAUD,GACpB,GAAKG,EAAL,CAEA,IAMMC,EANFC,SAAiBF,EAErB,GAAgB,UAAZE,GAAoC,UAAZA,EAC3BN,EAAQO,KAAKH,QACP,GAAII,MAAMC,QAAQL,IACpBA,EAAID,SACHE,EAAQN,EAAWW,MAAM,KAAMN,KAElCJ,EAAQO,KAAKF,QAGT,GAAgB,UAAZC,EACV,GAAIF,EAAIO,WAAaC,OAAOC,UAAUF,UAAaP,EAAIO,SAASA,WAAWG,SAAS,iBAKpF,IAAK,IAAIC,KAAOX,EACXP,EAAOmB,KAAKZ,EAAKW,IAAQX,EAAIW,IAChCf,EAAQO,KAAKQ,QANdf,EAAQO,KAAKH,EAAIO,aAYpB,OAAOX,EAAQiB,KAAK,KAGgB1B,EAAOD,QAE3CC,EAAOD,QADPS,EAAWmB,QAAUnB,OAMpB,KAFwB,EAAF,WACtB,OAAOA,GACP,QAFoB,OAEpB,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G,IAC9I,OAAOoqB,GAIRZ,EAAoB9T,EAAI,SAASlX,GAChC,IAAIsrB,EAAStrB,GAAUA,EAAO2rB,WAC7B,WAAwB,OAAO3rB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAgrB,EAAoBI,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRN,EAAoBO,EAAI,SAASM,EAAQC,GAAY,OAAOzqB,OAAOC,UAAUf,eAAekB,KAAKoqB,EAAQC,IAGzGd,EAAoBe,EAAI,GAIjBf,EAAoBA,EAAoBgB,EAAI,IA9EnD,SAAShB,EAAoBiB,GAG5B,IAIIjsB,EAJJ,OAAG+qB,EAAiBkB,KAIhBjsB,EAAS+qB,EAAiBkB,GAAY,CACzCvrB,EAAGurB,EACHC,GAAG,EACHnsB,QAAS,IAIVmrB,EAAQe,GAAUxqB,KAAKzB,EAAOD,QAASC,EAAQA,EAAOD,QAASirB,GAG/DhrB,EAAOksB,GAAI,EAGJlsB,IAhB4BD,Q,MAPhCgrB","file":"react-slick.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Slider\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"Slider\"] = factory(root[\"React\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__0__) {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","var camel2hyphen = require('string-convert/camel2hyphen');\n\nvar isDimension = function (feature) {\n var re = /[height|width]$/;\n return re.test(feature);\n};\n\nvar obj2mq = function (obj) {\n var mq = '';\n var features = Object.keys(obj);\n features.forEach(function (feature, index) {\n var value = obj[feature];\n feature = camel2hyphen(feature);\n // Add px to dimension features\n if (isDimension(feature) && typeof value === 'number') {\n value = value + 'px';\n }\n if (value === true) {\n mq += feature;\n } else if (value === false) {\n mq += 'not ' + feature;\n } else {\n mq += '(' + feature + ': ' + value + ')';\n }\n if (index < features.length-1) {\n mq += ' and '\n }\n });\n return mq;\n};\n\nvar json2mq = function (query) {\n var mq = '';\n if (typeof query === 'string') {\n return query;\n }\n // Handling array of media queries\n if (query instanceof Array) {\n query.forEach(function (q, index) {\n mq += obj2mq(q);\n if (index < query.length-1) {\n mq += ', '\n }\n });\n return mq;\n }\n // Handling single media query\n return obj2mq(query);\n};\n\nmodule.exports = json2mq;","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","/**\n * Helper function for iterating over a collection\n *\n * @param collection\n * @param fn\n */\nfunction each(collection, fn) {\n var i = 0,\n length = collection.length,\n cont;\n\n for(i; i < length; i++) {\n cont = fn(collection[i], i);\n if(cont === false) {\n break; //allow early exit\n }\n }\n}\n\n/**\n * Helper function for determining whether target object is an array\n *\n * @param target the object under test\n * @return {Boolean} true if array, false otherwise\n */\nfunction isArray(target) {\n return Object.prototype.toString.apply(target) === '[object Array]';\n}\n\n/**\n * Helper function for determining whether target object is a function\n *\n * @param target the object under test\n * @return {Boolean} true if function, false otherwise\n */\nfunction isFunction(target) {\n return typeof target === 'function';\n}\n\nmodule.exports = {\n isFunction : isFunction,\n isArray : isArray,\n each : each\n};\n","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","/**\r\n * A collection of shims that provide minimal functionality of the ES6 collections.\r\n *\r\n * These implementations are not meant to be used outside of the ResizeObserver\r\n * modules as they cover only a limited range of use cases.\r\n */\r\n/* eslint-disable require-jsdoc, valid-jsdoc */\r\nvar MapShim = (function () {\r\n if (typeof Map !== 'undefined') {\r\n return Map;\r\n }\r\n /**\r\n * Returns index in provided array that matches the specified key.\r\n *\r\n * @param {Array} arr\r\n * @param {*} key\r\n * @returns {number}\r\n */\r\n function getIndex(arr, key) {\r\n var result = -1;\r\n arr.some(function (entry, index) {\r\n if (entry[0] === key) {\r\n result = index;\r\n return true;\r\n }\r\n return false;\r\n });\r\n return result;\r\n }\r\n return /** @class */ (function () {\r\n function class_1() {\r\n this.__entries__ = [];\r\n }\r\n Object.defineProperty(class_1.prototype, \"size\", {\r\n /**\r\n * @returns {boolean}\r\n */\r\n get: function () {\r\n return this.__entries__.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * @param {*} key\r\n * @returns {*}\r\n */\r\n class_1.prototype.get = function (key) {\r\n var index = getIndex(this.__entries__, key);\r\n var entry = this.__entries__[index];\r\n return entry && entry[1];\r\n };\r\n /**\r\n * @param {*} key\r\n * @param {*} value\r\n * @returns {void}\r\n */\r\n class_1.prototype.set = function (key, value) {\r\n var index = getIndex(this.__entries__, key);\r\n if (~index) {\r\n this.__entries__[index][1] = value;\r\n }\r\n else {\r\n this.__entries__.push([key, value]);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.delete = function (key) {\r\n var entries = this.__entries__;\r\n var index = getIndex(entries, key);\r\n if (~index) {\r\n entries.splice(index, 1);\r\n }\r\n };\r\n /**\r\n * @param {*} key\r\n * @returns {void}\r\n */\r\n class_1.prototype.has = function (key) {\r\n return !!~getIndex(this.__entries__, key);\r\n };\r\n /**\r\n * @returns {void}\r\n */\r\n class_1.prototype.clear = function () {\r\n this.__entries__.splice(0);\r\n };\r\n /**\r\n * @param {Function} callback\r\n * @param {*} [ctx=null]\r\n * @returns {void}\r\n */\r\n class_1.prototype.forEach = function (callback, ctx) {\r\n if (ctx === void 0) { ctx = null; }\r\n for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {\r\n var entry = _a[_i];\r\n callback.call(ctx, entry[1], entry[0]);\r\n }\r\n };\r\n return class_1;\r\n }());\r\n})();\n\n/**\r\n * Detects whether window and document objects are available in current environment.\r\n */\r\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;\n\n// Returns global object of a current environment.\r\nvar global$1 = (function () {\r\n if (typeof global !== 'undefined' && global.Math === Math) {\r\n return global;\r\n }\r\n if (typeof self !== 'undefined' && self.Math === Math) {\r\n return self;\r\n }\r\n if (typeof window !== 'undefined' && window.Math === Math) {\r\n return window;\r\n }\r\n // eslint-disable-next-line no-new-func\r\n return Function('return this')();\r\n})();\n\n/**\r\n * A shim for the requestAnimationFrame which falls back to the setTimeout if\r\n * first one is not supported.\r\n *\r\n * @returns {number} Requests' identifier.\r\n */\r\nvar requestAnimationFrame$1 = (function () {\r\n if (typeof requestAnimationFrame === 'function') {\r\n // It's required to use a bounded function because IE sometimes throws\r\n // an \"Invalid calling object\" error if rAF is invoked without the global\r\n // object on the left hand side.\r\n return requestAnimationFrame.bind(global$1);\r\n }\r\n return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };\r\n})();\n\n// Defines minimum timeout before adding a trailing call.\r\nvar trailingTimeout = 2;\r\n/**\r\n * Creates a wrapper function which ensures that provided callback will be\r\n * invoked only once during the specified delay period.\r\n *\r\n * @param {Function} callback - Function to be invoked after the delay period.\r\n * @param {number} delay - Delay after which to invoke callback.\r\n * @returns {Function}\r\n */\r\nfunction throttle (callback, delay) {\r\n var leadingCall = false, trailingCall = false, lastCallTime = 0;\r\n /**\r\n * Invokes the original callback function and schedules new invocation if\r\n * the \"proxy\" was called during current request.\r\n *\r\n * @returns {void}\r\n */\r\n function resolvePending() {\r\n if (leadingCall) {\r\n leadingCall = false;\r\n callback();\r\n }\r\n if (trailingCall) {\r\n proxy();\r\n }\r\n }\r\n /**\r\n * Callback invoked after the specified delay. It will further postpone\r\n * invocation of the original function delegating it to the\r\n * requestAnimationFrame.\r\n *\r\n * @returns {void}\r\n */\r\n function timeoutCallback() {\r\n requestAnimationFrame$1(resolvePending);\r\n }\r\n /**\r\n * Schedules invocation of the original function.\r\n *\r\n * @returns {void}\r\n */\r\n function proxy() {\r\n var timeStamp = Date.now();\r\n if (leadingCall) {\r\n // Reject immediately following calls.\r\n if (timeStamp - lastCallTime < trailingTimeout) {\r\n return;\r\n }\r\n // Schedule new call to be in invoked when the pending one is resolved.\r\n // This is important for \"transitions\" which never actually start\r\n // immediately so there is a chance that we might miss one if change\r\n // happens amids the pending invocation.\r\n trailingCall = true;\r\n }\r\n else {\r\n leadingCall = true;\r\n trailingCall = false;\r\n setTimeout(timeoutCallback, delay);\r\n }\r\n lastCallTime = timeStamp;\r\n }\r\n return proxy;\r\n}\n\n// Minimum delay before invoking the update of observers.\r\nvar REFRESH_DELAY = 20;\r\n// A list of substrings of CSS properties used to find transition events that\r\n// might affect dimensions of observed elements.\r\nvar transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];\r\n// Check if MutationObserver is available.\r\nvar mutationObserverSupported = typeof MutationObserver !== 'undefined';\r\n/**\r\n * Singleton controller class which handles updates of ResizeObserver instances.\r\n */\r\nvar ResizeObserverController = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserverController.\r\n *\r\n * @private\r\n */\r\n function ResizeObserverController() {\r\n /**\r\n * Indicates whether DOM listeners have been added.\r\n *\r\n * @private {boolean}\r\n */\r\n this.connected_ = false;\r\n /**\r\n * Tells that controller has subscribed for Mutation Events.\r\n *\r\n * @private {boolean}\r\n */\r\n this.mutationEventsAdded_ = false;\r\n /**\r\n * Keeps reference to the instance of MutationObserver.\r\n *\r\n * @private {MutationObserver}\r\n */\r\n this.mutationsObserver_ = null;\r\n /**\r\n * A list of connected observers.\r\n *\r\n * @private {Array}\r\n */\r\n this.observers_ = [];\r\n this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);\r\n this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);\r\n }\r\n /**\r\n * Adds observer to observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be added.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.addObserver = function (observer) {\r\n if (!~this.observers_.indexOf(observer)) {\r\n this.observers_.push(observer);\r\n }\r\n // Add listeners if they haven't been added yet.\r\n if (!this.connected_) {\r\n this.connect_();\r\n }\r\n };\r\n /**\r\n * Removes observer from observers list.\r\n *\r\n * @param {ResizeObserverSPI} observer - Observer to be removed.\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.removeObserver = function (observer) {\r\n var observers = this.observers_;\r\n var index = observers.indexOf(observer);\r\n // Remove observer if it's present in registry.\r\n if (~index) {\r\n observers.splice(index, 1);\r\n }\r\n // Remove listeners if controller has no connected observers.\r\n if (!observers.length && this.connected_) {\r\n this.disconnect_();\r\n }\r\n };\r\n /**\r\n * Invokes the update of observers. It will continue running updates insofar\r\n * it detects changes.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.refresh = function () {\r\n var changesDetected = this.updateObservers_();\r\n // Continue running updates if changes have been detected as there might\r\n // be future ones caused by CSS transitions.\r\n if (changesDetected) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Updates every observer from observers list and notifies them of queued\r\n * entries.\r\n *\r\n * @private\r\n * @returns {boolean} Returns \"true\" if any observer has detected changes in\r\n * dimensions of it's elements.\r\n */\r\n ResizeObserverController.prototype.updateObservers_ = function () {\r\n // Collect observers that have active observations.\r\n var activeObservers = this.observers_.filter(function (observer) {\r\n return observer.gatherActive(), observer.hasActive();\r\n });\r\n // Deliver notifications in a separate cycle in order to avoid any\r\n // collisions between observers, e.g. when multiple instances of\r\n // ResizeObserver are tracking the same element and the callback of one\r\n // of them changes content dimensions of the observed target. Sometimes\r\n // this may result in notifications being blocked for the rest of observers.\r\n activeObservers.forEach(function (observer) { return observer.broadcastActive(); });\r\n return activeObservers.length > 0;\r\n };\r\n /**\r\n * Initializes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.connect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already added.\r\n if (!isBrowser || this.connected_) {\r\n return;\r\n }\r\n // Subscription to the \"Transitionend\" event is used as a workaround for\r\n // delayed transitions. This way it's possible to capture at least the\r\n // final state of an element.\r\n document.addEventListener('transitionend', this.onTransitionEnd_);\r\n window.addEventListener('resize', this.refresh);\r\n if (mutationObserverSupported) {\r\n this.mutationsObserver_ = new MutationObserver(this.refresh);\r\n this.mutationsObserver_.observe(document, {\r\n attributes: true,\r\n childList: true,\r\n characterData: true,\r\n subtree: true\r\n });\r\n }\r\n else {\r\n document.addEventListener('DOMSubtreeModified', this.refresh);\r\n this.mutationEventsAdded_ = true;\r\n }\r\n this.connected_ = true;\r\n };\r\n /**\r\n * Removes DOM listeners.\r\n *\r\n * @private\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.disconnect_ = function () {\r\n // Do nothing if running in a non-browser environment or if listeners\r\n // have been already removed.\r\n if (!isBrowser || !this.connected_) {\r\n return;\r\n }\r\n document.removeEventListener('transitionend', this.onTransitionEnd_);\r\n window.removeEventListener('resize', this.refresh);\r\n if (this.mutationsObserver_) {\r\n this.mutationsObserver_.disconnect();\r\n }\r\n if (this.mutationEventsAdded_) {\r\n document.removeEventListener('DOMSubtreeModified', this.refresh);\r\n }\r\n this.mutationsObserver_ = null;\r\n this.mutationEventsAdded_ = false;\r\n this.connected_ = false;\r\n };\r\n /**\r\n * \"Transitionend\" event handler.\r\n *\r\n * @private\r\n * @param {TransitionEvent} event\r\n * @returns {void}\r\n */\r\n ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {\r\n var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;\r\n // Detect whether transition may affect dimensions of an element.\r\n var isReflowProperty = transitionKeys.some(function (key) {\r\n return !!~propertyName.indexOf(key);\r\n });\r\n if (isReflowProperty) {\r\n this.refresh();\r\n }\r\n };\r\n /**\r\n * Returns instance of the ResizeObserverController.\r\n *\r\n * @returns {ResizeObserverController}\r\n */\r\n ResizeObserverController.getInstance = function () {\r\n if (!this.instance_) {\r\n this.instance_ = new ResizeObserverController();\r\n }\r\n return this.instance_;\r\n };\r\n /**\r\n * Holds reference to the controller's instance.\r\n *\r\n * @private {ResizeObserverController}\r\n */\r\n ResizeObserverController.instance_ = null;\r\n return ResizeObserverController;\r\n}());\n\n/**\r\n * Defines non-writable/enumerable properties of the provided target object.\r\n *\r\n * @param {Object} target - Object for which to define properties.\r\n * @param {Object} props - Properties to be defined.\r\n * @returns {Object} Target object.\r\n */\r\nvar defineConfigurable = (function (target, props) {\r\n for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {\r\n var key = _a[_i];\r\n Object.defineProperty(target, key, {\r\n value: props[key],\r\n enumerable: false,\r\n writable: false,\r\n configurable: true\r\n });\r\n }\r\n return target;\r\n});\n\n/**\r\n * Returns the global object associated with provided element.\r\n *\r\n * @param {Object} target\r\n * @returns {Object}\r\n */\r\nvar getWindowOf = (function (target) {\r\n // Assume that the element is an instance of Node, which means that it\r\n // has the \"ownerDocument\" property from which we can retrieve a\r\n // corresponding global object.\r\n var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;\r\n // Return the local global object if it's not possible extract one from\r\n // provided element.\r\n return ownerGlobal || global$1;\r\n});\n\n// Placeholder of an empty content rectangle.\r\nvar emptyRect = createRectInit(0, 0, 0, 0);\r\n/**\r\n * Converts provided string to a number.\r\n *\r\n * @param {number|string} value\r\n * @returns {number}\r\n */\r\nfunction toFloat(value) {\r\n return parseFloat(value) || 0;\r\n}\r\n/**\r\n * Extracts borders size from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @param {...string} positions - Borders positions (top, right, ...)\r\n * @returns {number}\r\n */\r\nfunction getBordersSize(styles) {\r\n var positions = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n positions[_i - 1] = arguments[_i];\r\n }\r\n return positions.reduce(function (size, position) {\r\n var value = styles['border-' + position + '-width'];\r\n return size + toFloat(value);\r\n }, 0);\r\n}\r\n/**\r\n * Extracts paddings sizes from provided styles.\r\n *\r\n * @param {CSSStyleDeclaration} styles\r\n * @returns {Object} Paddings box.\r\n */\r\nfunction getPaddings(styles) {\r\n var positions = ['top', 'right', 'bottom', 'left'];\r\n var paddings = {};\r\n for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {\r\n var position = positions_1[_i];\r\n var value = styles['padding-' + position];\r\n paddings[position] = toFloat(value);\r\n }\r\n return paddings;\r\n}\r\n/**\r\n * Calculates content rectangle of provided SVG element.\r\n *\r\n * @param {SVGGraphicsElement} target - Element content rectangle of which needs\r\n * to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getSVGContentRect(target) {\r\n var bbox = target.getBBox();\r\n return createRectInit(0, 0, bbox.width, bbox.height);\r\n}\r\n/**\r\n * Calculates content rectangle of provided HTMLElement.\r\n *\r\n * @param {HTMLElement} target - Element for which to calculate the content rectangle.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getHTMLElementContentRect(target) {\r\n // Client width & height properties can't be\r\n // used exclusively as they provide rounded values.\r\n var clientWidth = target.clientWidth, clientHeight = target.clientHeight;\r\n // By this condition we can catch all non-replaced inline, hidden and\r\n // detached elements. Though elements with width & height properties less\r\n // than 0.5 will be discarded as well.\r\n //\r\n // Without it we would need to implement separate methods for each of\r\n // those cases and it's not possible to perform a precise and performance\r\n // effective test for hidden elements. E.g. even jQuery's ':visible' filter\r\n // gives wrong results for elements with width & height less than 0.5.\r\n if (!clientWidth && !clientHeight) {\r\n return emptyRect;\r\n }\r\n var styles = getWindowOf(target).getComputedStyle(target);\r\n var paddings = getPaddings(styles);\r\n var horizPad = paddings.left + paddings.right;\r\n var vertPad = paddings.top + paddings.bottom;\r\n // Computed styles of width & height are being used because they are the\r\n // only dimensions available to JS that contain non-rounded values. It could\r\n // be possible to utilize the getBoundingClientRect if only it's data wasn't\r\n // affected by CSS transformations let alone paddings, borders and scroll bars.\r\n var width = toFloat(styles.width), height = toFloat(styles.height);\r\n // Width & height include paddings and borders when the 'border-box' box\r\n // model is applied (except for IE).\r\n if (styles.boxSizing === 'border-box') {\r\n // Following conditions are required to handle Internet Explorer which\r\n // doesn't include paddings and borders to computed CSS dimensions.\r\n //\r\n // We can say that if CSS dimensions + paddings are equal to the \"client\"\r\n // properties then it's either IE, and thus we don't need to subtract\r\n // anything, or an element merely doesn't have paddings/borders styles.\r\n if (Math.round(width + horizPad) !== clientWidth) {\r\n width -= getBordersSize(styles, 'left', 'right') + horizPad;\r\n }\r\n if (Math.round(height + vertPad) !== clientHeight) {\r\n height -= getBordersSize(styles, 'top', 'bottom') + vertPad;\r\n }\r\n }\r\n // Following steps can't be applied to the document's root element as its\r\n // client[Width/Height] properties represent viewport area of the window.\r\n // Besides, it's as well not necessary as the itself neither has\r\n // rendered scroll bars nor it can be clipped.\r\n if (!isDocumentElement(target)) {\r\n // In some browsers (only in Firefox, actually) CSS width & height\r\n // include scroll bars size which can be removed at this step as scroll\r\n // bars are the only difference between rounded dimensions + paddings\r\n // and \"client\" properties, though that is not always true in Chrome.\r\n var vertScrollbar = Math.round(width + horizPad) - clientWidth;\r\n var horizScrollbar = Math.round(height + vertPad) - clientHeight;\r\n // Chrome has a rather weird rounding of \"client\" properties.\r\n // E.g. for an element with content width of 314.2px it sometimes gives\r\n // the client width of 315px and for the width of 314.7px it may give\r\n // 314px. And it doesn't happen all the time. So just ignore this delta\r\n // as a non-relevant.\r\n if (Math.abs(vertScrollbar) !== 1) {\r\n width -= vertScrollbar;\r\n }\r\n if (Math.abs(horizScrollbar) !== 1) {\r\n height -= horizScrollbar;\r\n }\r\n }\r\n return createRectInit(paddings.left, paddings.top, width, height);\r\n}\r\n/**\r\n * Checks whether provided element is an instance of the SVGGraphicsElement.\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\nvar isSVGGraphicsElement = (function () {\r\n // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement\r\n // interface.\r\n if (typeof SVGGraphicsElement !== 'undefined') {\r\n return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };\r\n }\r\n // If it's so, then check that element is at least an instance of the\r\n // SVGElement and that it has the \"getBBox\" method.\r\n // eslint-disable-next-line no-extra-parens\r\n return function (target) { return (target instanceof getWindowOf(target).SVGElement &&\r\n typeof target.getBBox === 'function'); };\r\n})();\r\n/**\r\n * Checks whether provided element is a document element ().\r\n *\r\n * @param {Element} target - Element to be checked.\r\n * @returns {boolean}\r\n */\r\nfunction isDocumentElement(target) {\r\n return target === getWindowOf(target).document.documentElement;\r\n}\r\n/**\r\n * Calculates an appropriate content rectangle for provided html or svg element.\r\n *\r\n * @param {Element} target - Element content rectangle of which needs to be calculated.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction getContentRect(target) {\r\n if (!isBrowser) {\r\n return emptyRect;\r\n }\r\n if (isSVGGraphicsElement(target)) {\r\n return getSVGContentRect(target);\r\n }\r\n return getHTMLElementContentRect(target);\r\n}\r\n/**\r\n * Creates rectangle with an interface of the DOMRectReadOnly.\r\n * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly\r\n *\r\n * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.\r\n * @returns {DOMRectReadOnly}\r\n */\r\nfunction createReadOnlyRect(_a) {\r\n var x = _a.x, y = _a.y, width = _a.width, height = _a.height;\r\n // If DOMRectReadOnly is available use it as a prototype for the rectangle.\r\n var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;\r\n var rect = Object.create(Constr.prototype);\r\n // Rectangle's properties are not writable and non-enumerable.\r\n defineConfigurable(rect, {\r\n x: x, y: y, width: width, height: height,\r\n top: y,\r\n right: x + width,\r\n bottom: height + y,\r\n left: x\r\n });\r\n return rect;\r\n}\r\n/**\r\n * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.\r\n * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit\r\n *\r\n * @param {number} x - X coordinate.\r\n * @param {number} y - Y coordinate.\r\n * @param {number} width - Rectangle's width.\r\n * @param {number} height - Rectangle's height.\r\n * @returns {DOMRectInit}\r\n */\r\nfunction createRectInit(x, y, width, height) {\r\n return { x: x, y: y, width: width, height: height };\r\n}\n\n/**\r\n * Class that is responsible for computations of the content rectangle of\r\n * provided DOM element and for keeping track of it's changes.\r\n */\r\nvar ResizeObservation = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObservation.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n */\r\n function ResizeObservation(target) {\r\n /**\r\n * Broadcasted width of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastWidth = 0;\r\n /**\r\n * Broadcasted height of content rectangle.\r\n *\r\n * @type {number}\r\n */\r\n this.broadcastHeight = 0;\r\n /**\r\n * Reference to the last observed content rectangle.\r\n *\r\n * @private {DOMRectInit}\r\n */\r\n this.contentRect_ = createRectInit(0, 0, 0, 0);\r\n this.target = target;\r\n }\r\n /**\r\n * Updates content rectangle and tells whether it's width or height properties\r\n * have changed since the last broadcast.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObservation.prototype.isActive = function () {\r\n var rect = getContentRect(this.target);\r\n this.contentRect_ = rect;\r\n return (rect.width !== this.broadcastWidth ||\r\n rect.height !== this.broadcastHeight);\r\n };\r\n /**\r\n * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data\r\n * from the corresponding properties of the last observed content rectangle.\r\n *\r\n * @returns {DOMRectInit} Last observed content rectangle.\r\n */\r\n ResizeObservation.prototype.broadcastRect = function () {\r\n var rect = this.contentRect_;\r\n this.broadcastWidth = rect.width;\r\n this.broadcastHeight = rect.height;\r\n return rect;\r\n };\r\n return ResizeObservation;\r\n}());\n\nvar ResizeObserverEntry = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ResizeObserverEntry.\r\n *\r\n * @param {Element} target - Element that is being observed.\r\n * @param {DOMRectInit} rectInit - Data of the element's content rectangle.\r\n */\r\n function ResizeObserverEntry(target, rectInit) {\r\n var contentRect = createReadOnlyRect(rectInit);\r\n // According to the specification following properties are not writable\r\n // and are also not enumerable in the native implementation.\r\n //\r\n // Property accessors are not being used as they'd require to define a\r\n // private WeakMap storage which may cause memory leaks in browsers that\r\n // don't support this type of collections.\r\n defineConfigurable(this, { target: target, contentRect: contentRect });\r\n }\r\n return ResizeObserverEntry;\r\n}());\n\nvar ResizeObserverSPI = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback function that is invoked\r\n * when one of the observed elements changes it's content dimensions.\r\n * @param {ResizeObserverController} controller - Controller instance which\r\n * is responsible for the updates of observer.\r\n * @param {ResizeObserver} callbackCtx - Reference to the public\r\n * ResizeObserver instance which will be passed to callback function.\r\n */\r\n function ResizeObserverSPI(callback, controller, callbackCtx) {\r\n /**\r\n * Collection of resize observations that have detected changes in dimensions\r\n * of elements.\r\n *\r\n * @private {Array}\r\n */\r\n this.activeObservations_ = [];\r\n /**\r\n * Registry of the ResizeObservation instances.\r\n *\r\n * @private {Map}\r\n */\r\n this.observations_ = new MapShim();\r\n if (typeof callback !== 'function') {\r\n throw new TypeError('The callback provided as parameter 1 is not a function.');\r\n }\r\n this.callback_ = callback;\r\n this.controller_ = controller;\r\n this.callbackCtx_ = callbackCtx;\r\n }\r\n /**\r\n * Starts observing provided element.\r\n *\r\n * @param {Element} target - Element to be observed.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.observe = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is already being observed.\r\n if (observations.has(target)) {\r\n return;\r\n }\r\n observations.set(target, new ResizeObservation(target));\r\n this.controller_.addObserver(this);\r\n // Force the update of observations.\r\n this.controller_.refresh();\r\n };\r\n /**\r\n * Stops observing provided element.\r\n *\r\n * @param {Element} target - Element to stop observing.\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.unobserve = function (target) {\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n // Do nothing if current environment doesn't have the Element interface.\r\n if (typeof Element === 'undefined' || !(Element instanceof Object)) {\r\n return;\r\n }\r\n if (!(target instanceof getWindowOf(target).Element)) {\r\n throw new TypeError('parameter 1 is not of type \"Element\".');\r\n }\r\n var observations = this.observations_;\r\n // Do nothing if element is not being observed.\r\n if (!observations.has(target)) {\r\n return;\r\n }\r\n observations.delete(target);\r\n if (!observations.size) {\r\n this.controller_.removeObserver(this);\r\n }\r\n };\r\n /**\r\n * Stops observing all elements.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.disconnect = function () {\r\n this.clearActive();\r\n this.observations_.clear();\r\n this.controller_.removeObserver(this);\r\n };\r\n /**\r\n * Collects observation instances the associated element of which has changed\r\n * it's content rectangle.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.gatherActive = function () {\r\n var _this = this;\r\n this.clearActive();\r\n this.observations_.forEach(function (observation) {\r\n if (observation.isActive()) {\r\n _this.activeObservations_.push(observation);\r\n }\r\n });\r\n };\r\n /**\r\n * Invokes initial callback function with a list of ResizeObserverEntry\r\n * instances collected from active resize observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.broadcastActive = function () {\r\n // Do nothing if observer doesn't have active observations.\r\n if (!this.hasActive()) {\r\n return;\r\n }\r\n var ctx = this.callbackCtx_;\r\n // Create ResizeObserverEntry instance for every active observation.\r\n var entries = this.activeObservations_.map(function (observation) {\r\n return new ResizeObserverEntry(observation.target, observation.broadcastRect());\r\n });\r\n this.callback_.call(ctx, entries, ctx);\r\n this.clearActive();\r\n };\r\n /**\r\n * Clears the collection of active observations.\r\n *\r\n * @returns {void}\r\n */\r\n ResizeObserverSPI.prototype.clearActive = function () {\r\n this.activeObservations_.splice(0);\r\n };\r\n /**\r\n * Tells whether observer has active observations.\r\n *\r\n * @returns {boolean}\r\n */\r\n ResizeObserverSPI.prototype.hasActive = function () {\r\n return this.activeObservations_.length > 0;\r\n };\r\n return ResizeObserverSPI;\r\n}());\n\n// Registry of internal observers. If WeakMap is not available use current shim\r\n// for the Map collection as it has all required methods and because WeakMap\r\n// can't be fully polyfilled anyway.\r\nvar observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();\r\n/**\r\n * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation\r\n * exposing only those methods and properties that are defined in the spec.\r\n */\r\nvar ResizeObserver = /** @class */ (function () {\r\n /**\r\n * Creates a new instance of ResizeObserver.\r\n *\r\n * @param {ResizeObserverCallback} callback - Callback that is invoked when\r\n * dimensions of the observed elements change.\r\n */\r\n function ResizeObserver(callback) {\r\n if (!(this instanceof ResizeObserver)) {\r\n throw new TypeError('Cannot call a class as a function.');\r\n }\r\n if (!arguments.length) {\r\n throw new TypeError('1 argument required, but only 0 present.');\r\n }\r\n var controller = ResizeObserverController.getInstance();\r\n var observer = new ResizeObserverSPI(callback, controller, this);\r\n observers.set(this, observer);\r\n }\r\n return ResizeObserver;\r\n}());\r\n// Expose public methods of ResizeObserver.\r\n[\r\n 'observe',\r\n 'unobserve',\r\n 'disconnect'\r\n].forEach(function (method) {\r\n ResizeObserver.prototype[method] = function () {\r\n var _a;\r\n return (_a = observers.get(this))[method].apply(_a, arguments);\r\n };\r\n});\n\nvar index = (function () {\r\n // Export existing implementation if available.\r\n if (typeof global$1.ResizeObserver !== 'undefined') {\r\n return global$1.ResizeObserver;\r\n }\r\n return ResizeObserver;\r\n})();\n\nexport default index;\n","var camel2hyphen = function (str) {\n return str\n .replace(/[A-Z]/g, function (match) {\n return '-' + match.toLowerCase();\n })\n .toLowerCase();\n};\n\nmodule.exports = camel2hyphen;","var MediaQueryDispatch = require('./MediaQueryDispatch');\nmodule.exports = new MediaQueryDispatch();\n","var MediaQuery = require('./MediaQuery');\nvar Util = require('./Util');\nvar each = Util.each;\nvar isFunction = Util.isFunction;\nvar isArray = Util.isArray;\n\n/**\n * Allows for registration of query handlers.\n * Manages the query handler's state and is responsible for wiring up browser events\n *\n * @constructor\n */\nfunction MediaQueryDispatch () {\n if(!window.matchMedia) {\n throw new Error('matchMedia not present, legacy browsers require a polyfill');\n }\n\n this.queries = {};\n this.browserIsIncapable = !window.matchMedia('only all').matches;\n}\n\nMediaQueryDispatch.prototype = {\n\n constructor : MediaQueryDispatch,\n\n /**\n * Registers a handler for the given media query\n *\n * @param {string} q the media query\n * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers\n * @param {function} options.match fired when query matched\n * @param {function} [options.unmatch] fired when a query is no longer matched\n * @param {function} [options.setup] fired when handler first triggered\n * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched\n * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers\n */\n register : function(q, options, shouldDegrade) {\n var queries = this.queries,\n isUnconditional = shouldDegrade && this.browserIsIncapable;\n\n if(!queries[q]) {\n queries[q] = new MediaQuery(q, isUnconditional);\n }\n\n //normalise to object in an array\n if(isFunction(options)) {\n options = { match : options };\n }\n if(!isArray(options)) {\n options = [options];\n }\n each(options, function(handler) {\n if (isFunction(handler)) {\n handler = { match : handler };\n }\n queries[q].addHandler(handler);\n });\n\n return this;\n },\n\n /**\n * unregisters a query and all it's handlers, or a specific handler for a query\n *\n * @param {string} q the media query to target\n * @param {object || function} [handler] specific handler to unregister\n */\n unregister : function(q, handler) {\n var query = this.queries[q];\n\n if(query) {\n if(handler) {\n query.removeHandler(handler);\n }\n else {\n query.clear();\n delete this.queries[q];\n }\n }\n\n return this;\n }\n};\n\nmodule.exports = MediaQueryDispatch;\n","var QueryHandler = require('./QueryHandler');\nvar each = require('./Util').each;\n\n/**\n * Represents a single media query, manages it's state and registered handlers for this query\n *\n * @constructor\n * @param {string} query the media query string\n * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design\n */\nfunction MediaQuery(query, isUnconditional) {\n this.query = query;\n this.isUnconditional = isUnconditional;\n this.handlers = [];\n this.mql = window.matchMedia(query);\n\n var self = this;\n this.listener = function(mql) {\n // Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly\n self.mql = mql.currentTarget || mql;\n self.assess();\n };\n this.mql.addListener(this.listener);\n}\n\nMediaQuery.prototype = {\n\n constuctor : MediaQuery,\n\n /**\n * add a handler for this query, triggering if already active\n *\n * @param {object} handler\n * @param {function} handler.match callback for when query is activated\n * @param {function} [handler.unmatch] callback for when query is deactivated\n * @param {function} [handler.setup] callback for immediate execution when a query handler is registered\n * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?\n */\n addHandler : function(handler) {\n var qh = new QueryHandler(handler);\n this.handlers.push(qh);\n\n this.matches() && qh.on();\n },\n\n /**\n * removes the given handler from the collection, and calls it's destroy methods\n *\n * @param {object || function} handler the handler to remove\n */\n removeHandler : function(handler) {\n var handlers = this.handlers;\n each(handlers, function(h, i) {\n if(h.equals(handler)) {\n h.destroy();\n return !handlers.splice(i,1); //remove from array and exit each early\n }\n });\n },\n\n /**\n * Determine whether the media query should be considered a match\n *\n * @return {Boolean} true if media query can be considered a match, false otherwise\n */\n matches : function() {\n return this.mql.matches || this.isUnconditional;\n },\n\n /**\n * Clears all handlers and unbinds events\n */\n clear : function() {\n each(this.handlers, function(handler) {\n handler.destroy();\n });\n this.mql.removeListener(this.listener);\n this.handlers.length = 0; //clear array\n },\n\n /*\n * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match\n */\n assess : function() {\n var action = this.matches() ? 'on' : 'off';\n\n each(this.handlers, function(handler) {\n handler[action]();\n });\n }\n};\n\nmodule.exports = MediaQuery;\n","/**\n * Delegate to handle a media query being matched and unmatched.\n *\n * @param {object} options\n * @param {function} options.match callback for when the media query is matched\n * @param {function} [options.unmatch] callback for when the media query is unmatched\n * @param {function} [options.setup] one-time callback triggered the first time a query is matched\n * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?\n * @constructor\n */\nfunction QueryHandler(options) {\n this.options = options;\n !options.deferSetup && this.setup();\n}\n\nQueryHandler.prototype = {\n\n constructor : QueryHandler,\n\n /**\n * coordinates setup of the handler\n *\n * @function\n */\n setup : function() {\n if(this.options.setup) {\n this.options.setup();\n }\n this.initialised = true;\n },\n\n /**\n * coordinates setup and triggering of the handler\n *\n * @function\n */\n on : function() {\n !this.initialised && this.setup();\n this.options.match && this.options.match();\n },\n\n /**\n * coordinates the unmatch event for the handler\n *\n * @function\n */\n off : function() {\n this.options.unmatch && this.options.unmatch();\n },\n\n /**\n * called when a handler is to be destroyed.\n * delegates to the destroy or unmatch callbacks, depending on availability.\n *\n * @function\n */\n destroy : function() {\n this.options.destroy ? this.options.destroy() : this.off();\n },\n\n /**\n * determines equality by reference.\n * if object is supplied compare options, if function, compare match callback\n *\n * @function\n * @param {object || function} [target] the target for comparison\n */\n equals : function(target) {\n return this.options === target || this.options.match === target;\n }\n\n};\n\nmodule.exports = QueryHandler;\n","const initialState = {\n animating: false,\n autoplaying: null,\n currentDirection: 0,\n currentLeft: null,\n currentSlide: 0,\n direction: 1,\n dragging: false,\n edgeDragged: false,\n initialized: false,\n lazyLoadedList: [],\n listHeight: null,\n listWidth: null,\n scrolling: false,\n slideCount: null,\n slideHeight: null,\n slideWidth: null,\n swipeLeft: null,\n swiped: false, // used by swipeEvent. differentites between touch and swipe.\n swiping: false,\n touchObject: { startX: 0, startY: 0, curX: 0, curY: 0 },\n trackStyle: {},\n trackWidth: 0,\n targetSlide: 0\n};\n\nexport default initialState;\n","import React from \"react\";\n\nexport function clamp(number, lowerBound, upperBound) {\n return Math.max(lowerBound, Math.min(number, upperBound));\n}\n\nexport const safePreventDefault = event => {\n const passiveEvents = [\"onTouchStart\", \"onTouchMove\", \"onWheel\"];\n if (!passiveEvents.includes(event._reactName)) {\n event.preventDefault();\n }\n};\n\nexport const getOnDemandLazySlides = spec => {\n let onDemandSlides = [];\n let startIndex = lazyStartIndex(spec);\n let endIndex = lazyEndIndex(spec);\n for (let slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {\n if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {\n onDemandSlides.push(slideIndex);\n }\n }\n return onDemandSlides;\n};\n\n// return list of slides that need to be present\nexport const getRequiredLazySlides = spec => {\n let requiredSlides = [];\n let startIndex = lazyStartIndex(spec);\n let endIndex = lazyEndIndex(spec);\n for (let slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {\n requiredSlides.push(slideIndex);\n }\n return requiredSlides;\n};\n\n// startIndex that needs to be present\nexport const lazyStartIndex = spec => {\n let startIndex = spec.currentSlide - lazySlidesOnLeft(spec);\n if (spec.lazyLoad === \"anticipated\") startIndex -= 1;\n return startIndex;\n};\nexport const lazyEndIndex = spec => {\n let endIndex = spec.currentSlide + lazySlidesOnRight(spec);\n if (spec.lazyLoad === \"anticipated\") endIndex += 1;\n return endIndex;\n};\nexport const lazySlidesOnLeft = spec =>\n spec.centerMode\n ? Math.floor(spec.slidesToShow / 2) +\n (parseInt(spec.centerPadding) > 0 ? 1 : 0)\n : 0;\nexport const lazySlidesOnRight = spec =>\n spec.centerMode\n ? Math.floor((spec.slidesToShow - 1) / 2) +\n 1 +\n (parseInt(spec.centerPadding) > 0 ? 1 : 0)\n : spec.slidesToShow;\n\n// get width of an element\nexport const getWidth = elem => (elem && elem.offsetWidth) || 0;\nexport const getHeight = elem => (elem && elem.offsetHeight) || 0;\nexport const getSwipeDirection = (touchObject, verticalSwiping = false) => {\n var xDist, yDist, r, swipeAngle;\n xDist = touchObject.startX - touchObject.curX;\n yDist = touchObject.startY - touchObject.curY;\n r = Math.atan2(yDist, xDist);\n swipeAngle = Math.round((r * 180) / Math.PI);\n if (swipeAngle < 0) {\n swipeAngle = 360 - Math.abs(swipeAngle);\n }\n if (\n (swipeAngle <= 45 && swipeAngle >= 0) ||\n (swipeAngle <= 360 && swipeAngle >= 315)\n ) {\n return \"left\";\n }\n if (swipeAngle >= 135 && swipeAngle <= 225) {\n return \"right\";\n }\n if (verticalSwiping === true) {\n if (swipeAngle >= 35 && swipeAngle <= 135) {\n return \"up\";\n } else {\n return \"down\";\n }\n }\n\n return \"vertical\";\n};\n\n// whether or not we can go next\nexport const canGoNext = spec => {\n let canGo = true;\n if (!spec.infinite) {\n if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {\n canGo = false;\n } else if (\n spec.slideCount <= spec.slidesToShow ||\n spec.currentSlide >= spec.slideCount - spec.slidesToShow\n ) {\n canGo = false;\n }\n }\n return canGo;\n};\n\n// given an object and a list of keys, return new object with given keys\nexport const extractObject = (spec, keys) => {\n let newObject = {};\n keys.forEach(key => (newObject[key] = spec[key]));\n return newObject;\n};\n\n// get initialized state\nexport const initializedState = spec => {\n // spec also contains listRef, trackRef\n let slideCount = React.Children.count(spec.children);\n const listNode = spec.listRef;\n let listWidth = Math.ceil(getWidth(listNode));\n const trackNode = spec.trackRef && spec.trackRef.node;\n let trackWidth = Math.ceil(getWidth(trackNode));\n let slideWidth;\n if (!spec.vertical) {\n let centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;\n if (\n typeof spec.centerPadding === \"string\" &&\n spec.centerPadding.slice(-1) === \"%\"\n ) {\n centerPaddingAdj *= listWidth / 100;\n }\n slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);\n } else {\n slideWidth = listWidth;\n }\n let slideHeight =\n listNode && getHeight(listNode.querySelector('[data-index=\"0\"]'));\n let listHeight = slideHeight * spec.slidesToShow;\n let currentSlide =\n spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide;\n if (spec.rtl && spec.currentSlide === undefined) {\n currentSlide = slideCount - 1 - spec.initialSlide;\n }\n let lazyLoadedList = spec.lazyLoadedList || [];\n let slidesToLoad = getOnDemandLazySlides({\n ...spec,\n currentSlide,\n lazyLoadedList\n });\n lazyLoadedList = lazyLoadedList.concat(slidesToLoad);\n\n let state = {\n slideCount,\n slideWidth,\n listWidth,\n trackWidth,\n currentSlide,\n slideHeight,\n listHeight,\n lazyLoadedList\n };\n\n if (spec.autoplaying === null && spec.autoplay) {\n state[\"autoplaying\"] = \"playing\";\n }\n\n return state;\n};\n\nexport const slideHandler = spec => {\n const {\n waitForAnimate,\n animating,\n fade,\n infinite,\n index,\n slideCount,\n lazyLoad,\n currentSlide,\n centerMode,\n slidesToScroll,\n slidesToShow,\n useCSS\n } = spec;\n let { lazyLoadedList } = spec;\n if (waitForAnimate && animating) return {};\n let animationSlide = index,\n finalSlide,\n animationLeft,\n finalLeft;\n let state = {},\n nextState = {};\n const targetSlide = infinite ? index : clamp(index, 0, slideCount - 1);\n if (fade) {\n if (!infinite && (index < 0 || index >= slideCount)) return {};\n if (index < 0) {\n animationSlide = index + slideCount;\n } else if (index >= slideCount) {\n animationSlide = index - slideCount;\n }\n if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) {\n lazyLoadedList = lazyLoadedList.concat(animationSlide);\n }\n state = {\n animating: true,\n currentSlide: animationSlide,\n lazyLoadedList,\n targetSlide: animationSlide\n };\n nextState = { animating: false, targetSlide: animationSlide };\n } else {\n finalSlide = animationSlide;\n if (animationSlide < 0) {\n finalSlide = animationSlide + slideCount;\n if (!infinite) finalSlide = 0;\n else if (slideCount % slidesToScroll !== 0)\n finalSlide = slideCount - (slideCount % slidesToScroll);\n } else if (!canGoNext(spec) && animationSlide > currentSlide) {\n animationSlide = finalSlide = currentSlide;\n } else if (centerMode && animationSlide >= slideCount) {\n animationSlide = infinite ? slideCount : slideCount - 1;\n finalSlide = infinite ? 0 : slideCount - 1;\n } else if (animationSlide >= slideCount) {\n finalSlide = animationSlide - slideCount;\n if (!infinite) finalSlide = slideCount - slidesToShow;\n else if (slideCount % slidesToScroll !== 0) finalSlide = 0;\n }\n\n if (!infinite && animationSlide + slidesToShow >= slideCount) {\n finalSlide = slideCount - slidesToShow;\n }\n\n animationLeft = getTrackLeft({ ...spec, slideIndex: animationSlide });\n finalLeft = getTrackLeft({ ...spec, slideIndex: finalSlide });\n if (!infinite) {\n if (animationLeft === finalLeft) animationSlide = finalSlide;\n animationLeft = finalLeft;\n }\n if (lazyLoad) {\n lazyLoadedList = lazyLoadedList.concat(\n getOnDemandLazySlides({ ...spec, currentSlide: animationSlide })\n );\n }\n if (!useCSS) {\n state = {\n currentSlide: finalSlide,\n trackStyle: getTrackCSS({ ...spec, left: finalLeft }),\n lazyLoadedList,\n targetSlide\n };\n } else {\n state = {\n animating: true,\n currentSlide: finalSlide,\n trackStyle: getTrackAnimateCSS({ ...spec, left: animationLeft }),\n lazyLoadedList,\n targetSlide\n };\n nextState = {\n animating: false,\n currentSlide: finalSlide,\n trackStyle: getTrackCSS({ ...spec, left: finalLeft }),\n swipeLeft: null,\n targetSlide\n };\n }\n }\n return { state, nextState };\n};\n\nexport const changeSlide = (spec, options) => {\n var indexOffset, previousInt, slideOffset, unevenOffset, targetSlide;\n const {\n slidesToScroll,\n slidesToShow,\n slideCount,\n currentSlide,\n targetSlide: previousTargetSlide,\n lazyLoad,\n infinite\n } = spec;\n unevenOffset = slideCount % slidesToScroll !== 0;\n indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll;\n if (options.message === \"previous\") {\n slideOffset =\n indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset;\n targetSlide = currentSlide - slideOffset;\n if (lazyLoad && !infinite) {\n previousInt = currentSlide - slideOffset;\n targetSlide = previousInt === -1 ? slideCount - 1 : previousInt;\n }\n if (!infinite) {\n targetSlide = previousTargetSlide - slidesToScroll;\n }\n } else if (options.message === \"next\") {\n slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset;\n targetSlide = currentSlide + slideOffset;\n if (lazyLoad && !infinite) {\n targetSlide =\n ((currentSlide + slidesToScroll) % slideCount) + indexOffset;\n }\n if (!infinite) {\n targetSlide = previousTargetSlide + slidesToScroll;\n }\n } else if (options.message === \"dots\") {\n // Click on dots\n targetSlide = options.index * options.slidesToScroll;\n } else if (options.message === \"children\") {\n // Click on the slides\n targetSlide = options.index;\n if (infinite) {\n let direction = siblingDirection({ ...spec, targetSlide });\n if (targetSlide > options.currentSlide && direction === \"left\") {\n targetSlide = targetSlide - slideCount;\n } else if (targetSlide < options.currentSlide && direction === \"right\") {\n targetSlide = targetSlide + slideCount;\n }\n }\n } else if (options.message === \"index\") {\n targetSlide = Number(options.index);\n }\n return targetSlide;\n};\nexport const keyHandler = (e, accessibility, rtl) => {\n if (e.target.tagName.match(\"TEXTAREA|INPUT|SELECT\") || !accessibility)\n return \"\";\n if (e.keyCode === 37) return rtl ? \"next\" : \"previous\";\n if (e.keyCode === 39) return rtl ? \"previous\" : \"next\";\n return \"\";\n};\n\nexport const swipeStart = (e, swipe, draggable) => {\n e.target.tagName === \"IMG\" && safePreventDefault(e);\n if (!swipe || (!draggable && e.type.indexOf(\"mouse\") !== -1)) return \"\";\n return {\n dragging: true,\n touchObject: {\n startX: e.touches ? e.touches[0].pageX : e.clientX,\n startY: e.touches ? e.touches[0].pageY : e.clientY,\n curX: e.touches ? e.touches[0].pageX : e.clientX,\n curY: e.touches ? e.touches[0].pageY : e.clientY\n }\n };\n};\nexport const swipeMove = (e, spec) => {\n // spec also contains, trackRef and slideIndex\n const {\n scrolling,\n animating,\n vertical,\n swipeToSlide,\n verticalSwiping,\n rtl,\n currentSlide,\n edgeFriction,\n edgeDragged,\n onEdge,\n swiped,\n swiping,\n slideCount,\n slidesToScroll,\n infinite,\n touchObject,\n swipeEvent,\n listHeight,\n listWidth\n } = spec;\n if (scrolling) return;\n if (animating) return safePreventDefault(e);\n if (vertical && swipeToSlide && verticalSwiping) safePreventDefault(e);\n let swipeLeft,\n state = {};\n let curLeft = getTrackLeft(spec);\n touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX;\n touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY;\n touchObject.swipeLength = Math.round(\n Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2))\n );\n let verticalSwipeLength = Math.round(\n Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2))\n );\n if (!verticalSwiping && !swiping && verticalSwipeLength > 10) {\n return { scrolling: true };\n }\n if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength;\n let positionOffset =\n (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1);\n if (verticalSwiping)\n positionOffset = touchObject.curY > touchObject.startY ? 1 : -1;\n\n let dotCount = Math.ceil(slideCount / slidesToScroll);\n let swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping);\n let touchSwipeLength = touchObject.swipeLength;\n if (!infinite) {\n if (\n (currentSlide === 0 &&\n (swipeDirection === \"right\" || swipeDirection === \"down\")) ||\n (currentSlide + 1 >= dotCount &&\n (swipeDirection === \"left\" || swipeDirection === \"up\")) ||\n (!canGoNext(spec) &&\n (swipeDirection === \"left\" || swipeDirection === \"up\"))\n ) {\n touchSwipeLength = touchObject.swipeLength * edgeFriction;\n if (edgeDragged === false && onEdge) {\n onEdge(swipeDirection);\n state[\"edgeDragged\"] = true;\n }\n }\n }\n if (!swiped && swipeEvent) {\n swipeEvent(swipeDirection);\n state[\"swiped\"] = true;\n }\n if (!vertical) {\n if (!rtl) {\n swipeLeft = curLeft + touchSwipeLength * positionOffset;\n } else {\n swipeLeft = curLeft - touchSwipeLength * positionOffset;\n }\n } else {\n swipeLeft =\n curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset;\n }\n if (verticalSwiping) {\n swipeLeft = curLeft + touchSwipeLength * positionOffset;\n }\n state = {\n ...state,\n touchObject,\n swipeLeft,\n trackStyle: getTrackCSS({ ...spec, left: swipeLeft })\n };\n if (\n Math.abs(touchObject.curX - touchObject.startX) <\n Math.abs(touchObject.curY - touchObject.startY) * 0.8\n ) {\n return state;\n }\n if (touchObject.swipeLength > 10) {\n state[\"swiping\"] = true;\n safePreventDefault(e);\n }\n return state;\n};\nexport const swipeEnd = (e, spec) => {\n const {\n dragging,\n swipe,\n touchObject,\n listWidth,\n touchThreshold,\n verticalSwiping,\n listHeight,\n swipeToSlide,\n scrolling,\n onSwipe,\n targetSlide,\n currentSlide,\n infinite\n } = spec;\n if (!dragging) {\n if (swipe) safePreventDefault(e);\n return {};\n }\n let minSwipe = verticalSwiping\n ? listHeight / touchThreshold\n : listWidth / touchThreshold;\n let swipeDirection = getSwipeDirection(touchObject, verticalSwiping);\n // reset the state of touch related state variables.\n let state = {\n dragging: false,\n edgeDragged: false,\n scrolling: false,\n swiping: false,\n swiped: false,\n swipeLeft: null,\n touchObject: {}\n };\n if (scrolling) {\n return state;\n }\n if (!touchObject.swipeLength) {\n return state;\n }\n if (touchObject.swipeLength > minSwipe) {\n safePreventDefault(e);\n if (onSwipe) {\n onSwipe(swipeDirection);\n }\n let slideCount, newSlide;\n let activeSlide = infinite ? currentSlide : targetSlide;\n switch (swipeDirection) {\n case \"left\":\n case \"up\":\n newSlide = activeSlide + getSlideCount(spec);\n slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;\n state[\"currentDirection\"] = 0;\n break;\n case \"right\":\n case \"down\":\n newSlide = activeSlide - getSlideCount(spec);\n slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;\n state[\"currentDirection\"] = 1;\n break;\n default:\n slideCount = activeSlide;\n }\n state[\"triggerSlideHandler\"] = slideCount;\n } else {\n // Adjust the track back to it's original position.\n let currentLeft = getTrackLeft(spec);\n state[\"trackStyle\"] = getTrackAnimateCSS({ ...spec, left: currentLeft });\n }\n return state;\n};\nexport const getNavigableIndexes = spec => {\n let max = spec.infinite ? spec.slideCount * 2 : spec.slideCount;\n let breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0;\n let counter = spec.infinite ? spec.slidesToShow * -1 : 0;\n let indexes = [];\n while (breakpoint < max) {\n indexes.push(breakpoint);\n breakpoint = counter + spec.slidesToScroll;\n counter += Math.min(spec.slidesToScroll, spec.slidesToShow);\n }\n return indexes;\n};\nexport const checkNavigable = (spec, index) => {\n const navigables = getNavigableIndexes(spec);\n let prevNavigable = 0;\n if (index > navigables[navigables.length - 1]) {\n index = navigables[navigables.length - 1];\n } else {\n for (let n in navigables) {\n if (index < navigables[n]) {\n index = prevNavigable;\n break;\n }\n prevNavigable = navigables[n];\n }\n }\n return index;\n};\nexport const getSlideCount = spec => {\n const centerOffset = spec.centerMode\n ? spec.slideWidth * Math.floor(spec.slidesToShow / 2)\n : 0;\n if (spec.swipeToSlide) {\n let swipedSlide;\n const slickList = spec.listRef;\n const slides =\n (slickList.querySelectorAll &&\n slickList.querySelectorAll(\".slick-slide\")) ||\n [];\n Array.from(slides).every(slide => {\n if (!spec.vertical) {\n if (\n slide.offsetLeft - centerOffset + getWidth(slide) / 2 >\n spec.swipeLeft * -1\n ) {\n swipedSlide = slide;\n return false;\n }\n } else {\n if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) {\n swipedSlide = slide;\n return false;\n }\n }\n\n return true;\n });\n\n if (!swipedSlide) {\n return 0;\n }\n const currentIndex =\n spec.rtl === true\n ? spec.slideCount - spec.currentSlide\n : spec.currentSlide;\n const slidesTraversed =\n Math.abs(swipedSlide.dataset.index - currentIndex) || 1;\n return slidesTraversed;\n } else {\n return spec.slidesToScroll;\n }\n};\n\nexport const checkSpecKeys = (spec, keysArray) =>\n keysArray.reduce((value, key) => value && spec.hasOwnProperty(key), true)\n ? null\n : console.error(\"Keys Missing:\", spec);\n\nexport const getTrackCSS = spec => {\n checkSpecKeys(spec, [\n \"left\",\n \"variableWidth\",\n \"slideCount\",\n \"slidesToShow\",\n \"slideWidth\"\n ]);\n let trackWidth, trackHeight;\n const trackChildren = spec.slideCount + 2 * spec.slidesToShow;\n if (!spec.vertical) {\n trackWidth = getTotalSlides(spec) * spec.slideWidth;\n } else {\n trackHeight = trackChildren * spec.slideHeight;\n }\n let style = {\n opacity: 1,\n transition: \"\",\n WebkitTransition: \"\"\n };\n if (spec.useTransform) {\n let WebkitTransform = !spec.vertical\n ? \"translate3d(\" + spec.left + \"px, 0px, 0px)\"\n : \"translate3d(0px, \" + spec.left + \"px, 0px)\";\n let transform = !spec.vertical\n ? \"translate3d(\" + spec.left + \"px, 0px, 0px)\"\n : \"translate3d(0px, \" + spec.left + \"px, 0px)\";\n let msTransform = !spec.vertical\n ? \"translateX(\" + spec.left + \"px)\"\n : \"translateY(\" + spec.left + \"px)\";\n style = {\n ...style,\n WebkitTransform,\n transform,\n msTransform\n };\n } else {\n if (spec.vertical) {\n style[\"top\"] = spec.left;\n } else {\n style[\"left\"] = spec.left;\n }\n }\n if (spec.fade) style = { opacity: 1 };\n if (trackWidth) style.width = trackWidth;\n if (trackHeight) style.height = trackHeight;\n\n // Fallback for IE8\n if (window && !window.addEventListener && window.attachEvent) {\n if (!spec.vertical) {\n style.marginLeft = spec.left + \"px\";\n } else {\n style.marginTop = spec.left + \"px\";\n }\n }\n\n return style;\n};\nexport const getTrackAnimateCSS = spec => {\n checkSpecKeys(spec, [\n \"left\",\n \"variableWidth\",\n \"slideCount\",\n \"slidesToShow\",\n \"slideWidth\",\n \"speed\",\n \"cssEase\"\n ]);\n let style = getTrackCSS(spec);\n // useCSS is true by default so it can be undefined\n if (spec.useTransform) {\n style.WebkitTransition =\n \"-webkit-transform \" + spec.speed + \"ms \" + spec.cssEase;\n style.transition = \"transform \" + spec.speed + \"ms \" + spec.cssEase;\n } else {\n if (spec.vertical) {\n style.transition = \"top \" + spec.speed + \"ms \" + spec.cssEase;\n } else {\n style.transition = \"left \" + spec.speed + \"ms \" + spec.cssEase;\n }\n }\n return style;\n};\nexport const getTrackLeft = spec => {\n if (spec.unslick) {\n return 0;\n }\n\n checkSpecKeys(spec, [\n \"slideIndex\",\n \"trackRef\",\n \"infinite\",\n \"centerMode\",\n \"slideCount\",\n \"slidesToShow\",\n \"slidesToScroll\",\n \"slideWidth\",\n \"listWidth\",\n \"variableWidth\",\n \"slideHeight\"\n ]);\n\n const {\n slideIndex,\n trackRef,\n infinite,\n centerMode,\n slideCount,\n slidesToShow,\n slidesToScroll,\n slideWidth,\n listWidth,\n variableWidth,\n slideHeight,\n fade,\n vertical\n } = spec;\n\n var slideOffset = 0;\n var targetLeft;\n var targetSlide;\n var verticalOffset = 0;\n\n if (fade || spec.slideCount === 1) {\n return 0;\n }\n\n let slidesToOffset = 0;\n if (infinite) {\n slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area\n // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children\n if (\n slideCount % slidesToScroll !== 0 &&\n slideIndex + slidesToScroll > slideCount\n ) {\n slidesToOffset = -(slideIndex > slideCount\n ? slidesToShow - (slideIndex - slideCount)\n : slideCount % slidesToScroll);\n }\n // shift current slide to center of the frame\n if (centerMode) {\n slidesToOffset += parseInt(slidesToShow / 2);\n }\n } else {\n if (\n slideCount % slidesToScroll !== 0 &&\n slideIndex + slidesToScroll > slideCount\n ) {\n slidesToOffset = slidesToShow - (slideCount % slidesToScroll);\n }\n if (centerMode) {\n slidesToOffset = parseInt(slidesToShow / 2);\n }\n }\n slideOffset = slidesToOffset * slideWidth;\n verticalOffset = slidesToOffset * slideHeight;\n\n if (!vertical) {\n targetLeft = slideIndex * slideWidth * -1 + slideOffset;\n } else {\n targetLeft = slideIndex * slideHeight * -1 + verticalOffset;\n }\n\n if (variableWidth === true) {\n var targetSlideIndex;\n const trackElem = trackRef && trackRef.node;\n targetSlideIndex = slideIndex + getPreClones(spec);\n targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];\n targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0;\n if (centerMode === true) {\n targetSlideIndex = infinite\n ? slideIndex + getPreClones(spec)\n : slideIndex;\n targetSlide = trackElem && trackElem.children[targetSlideIndex];\n targetLeft = 0;\n for (let slide = 0; slide < targetSlideIndex; slide++) {\n targetLeft -=\n trackElem &&\n trackElem.children[slide] &&\n trackElem.children[slide].offsetWidth;\n }\n targetLeft -= parseInt(spec.centerPadding);\n targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2;\n }\n }\n\n return targetLeft;\n};\n\nexport const getPreClones = spec => {\n if (spec.unslick || !spec.infinite) {\n return 0;\n }\n if (spec.variableWidth) {\n return spec.slideCount;\n }\n return spec.slidesToShow + (spec.centerMode ? 1 : 0);\n};\n\nexport const getPostClones = spec => {\n if (spec.unslick || !spec.infinite) {\n return 0;\n }\n return spec.slideCount;\n};\n\nexport const getTotalSlides = spec =>\n spec.slideCount === 1\n ? 1\n : getPreClones(spec) + spec.slideCount + getPostClones(spec);\nexport const siblingDirection = spec => {\n if (spec.targetSlide > spec.currentSlide) {\n if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) {\n return \"left\";\n }\n return \"right\";\n } else {\n if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) {\n return \"right\";\n }\n return \"left\";\n }\n};\n\nexport const slidesOnRight = ({\n slidesToShow,\n centerMode,\n rtl,\n centerPadding\n}) => {\n // returns no of slides on the right of active slide\n if (centerMode) {\n let right = (slidesToShow - 1) / 2 + 1;\n if (parseInt(centerPadding) > 0) right += 1;\n if (rtl && slidesToShow % 2 === 0) right += 1;\n return right;\n }\n if (rtl) {\n return 0;\n }\n return slidesToShow - 1;\n};\n\nexport const slidesOnLeft = ({\n slidesToShow,\n centerMode,\n rtl,\n centerPadding\n}) => {\n // returns no of slides on the left of active slide\n if (centerMode) {\n let left = (slidesToShow - 1) / 2 + 1;\n if (parseInt(centerPadding) > 0) left += 1;\n if (!rtl && slidesToShow % 2 === 0) left += 1;\n return left;\n }\n if (rtl) {\n return slidesToShow - 1;\n }\n return 0;\n};\n\nexport const canUseDOM = () =>\n !!(\n typeof window !== \"undefined\" &&\n window.document &&\n window.document.createElement\n );\n","\"use strict\";\n\nimport React from \"react\";\nimport classnames from \"classnames\";\nimport {\n lazyStartIndex,\n lazyEndIndex,\n getPreClones\n} from \"./utils/innerSliderUtils\";\n\n// given specifications/props for a slide, fetch all the classes that need to be applied to the slide\nconst getSlideClasses = spec => {\n let slickActive, slickCenter, slickCloned;\n let centerOffset, index;\n\n if (spec.rtl) {\n index = spec.slideCount - 1 - spec.index;\n } else {\n index = spec.index;\n }\n slickCloned = index < 0 || index >= spec.slideCount;\n if (spec.centerMode) {\n centerOffset = Math.floor(spec.slidesToShow / 2);\n slickCenter = (index - spec.currentSlide) % spec.slideCount === 0;\n if (\n index > spec.currentSlide - centerOffset - 1 &&\n index <= spec.currentSlide + centerOffset\n ) {\n slickActive = true;\n }\n } else {\n slickActive =\n spec.currentSlide <= index &&\n index < spec.currentSlide + spec.slidesToShow;\n }\n\n let focusedSlide;\n if (spec.targetSlide < 0) {\n focusedSlide = spec.targetSlide + spec.slideCount;\n } else if (spec.targetSlide >= spec.slideCount) {\n focusedSlide = spec.targetSlide - spec.slideCount;\n } else {\n focusedSlide = spec.targetSlide;\n }\n let slickCurrent = index === focusedSlide;\n return {\n \"slick-slide\": true,\n \"slick-active\": slickActive,\n \"slick-center\": slickCenter,\n \"slick-cloned\": slickCloned,\n [`slick-cloned ${spec.classes?.cloned}`]:\n slickCloned && spec.classes?.cloned,\n \"slick-current\": slickCurrent // dubious in case of RTL\n };\n};\n\nconst getSlideStyle = spec => {\n let style = {};\n\n if (spec.variableWidth === undefined || spec.variableWidth === false) {\n style.width = spec.slideWidth;\n }\n\n if (spec.fade) {\n style.position = \"relative\";\n if (spec.vertical) {\n style.top = -spec.index * parseInt(spec.slideHeight);\n } else {\n style.left = -spec.index * parseInt(spec.slideWidth);\n }\n style.opacity = spec.currentSlide === spec.index ? 1 : 0;\n if (spec.useCSS) {\n style.transition =\n \"opacity \" +\n spec.speed +\n \"ms \" +\n spec.cssEase +\n \", \" +\n \"visibility \" +\n spec.speed +\n \"ms \" +\n spec.cssEase;\n }\n }\n\n return style;\n};\n\nconst getKey = (child, fallbackKey) => child.key || fallbackKey;\n\nconst shouldOmitLazy = (omitLazyForSlides = [], index) =>\n omitLazyForSlides.includes(index);\n\nconst renderSlides = spec => {\n let key;\n let slides = [];\n let preCloneSlides = [];\n let postCloneSlides = [];\n let childrenCount = React.Children.count(spec.children);\n let startIndex = lazyStartIndex(spec);\n let endIndex = lazyEndIndex(spec);\n\n React.Children.forEach(spec.children, (elem, index) => {\n let child;\n let childOnClickOptions = {\n message: \"children\",\n index: index,\n slidesToScroll: spec.slidesToScroll,\n currentSlide: spec.currentSlide\n };\n\n // in case of lazyLoad, whether or not we want to fetch the slide\n if (\n !spec.lazyLoad ||\n (spec.lazyLoad && spec.lazyLoadedList.indexOf(index) >= 0) ||\n shouldOmitLazy(spec.omitLazyForSlides, index)\n ) {\n child = elem;\n } else {\n child =
    ;\n }\n let childStyle = getSlideStyle({ ...spec, index });\n let slideClass = child.props.className || \"\";\n let slideClasses = getSlideClasses({ ...spec, index });\n // push a cloned element of the desired slide\n slides.push(\n React.cloneElement(child, {\n key: \"original\" + getKey(child, index),\n \"data-index\": index,\n className: classnames(slideClasses, slideClass, spec.classes?.slide),\n tabIndex: \"-1\",\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: { outline: \"none\", ...(child.props.style || {}), ...childStyle },\n onClick: e => {\n child.props && child.props.onClick && child.props.onClick(e);\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n })\n );\n\n // if slide needs to be precloned or postcloned\n if (spec.infinite && spec.fade === false) {\n let preCloneNo = childrenCount - index;\n if (\n preCloneNo <= getPreClones(spec) &&\n childrenCount !== spec.slidesToShow\n ) {\n key = -preCloneNo;\n if (key >= startIndex) {\n child = elem;\n }\n slideClasses = getSlideClasses({ ...spec, index: key });\n preCloneSlides.push(\n React.cloneElement(child, {\n key: \"precloned\" + getKey(child, key),\n \"data-index\": key,\n tabIndex: \"-1\",\n className: classnames(\n slideClasses,\n slideClass,\n spec.classes?.slide\n ),\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: { ...(child.props.style || {}), ...childStyle },\n onClick: e => {\n child.props && child.props.onClick && child.props.onClick(e);\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n })\n );\n }\n\n if (childrenCount !== spec.slidesToShow) {\n key = childrenCount + index;\n if (key < endIndex) {\n child = elem;\n }\n slideClasses = getSlideClasses({ ...spec, index: key });\n postCloneSlides.push(\n React.cloneElement(child, {\n key: \"postcloned\" + getKey(child, key),\n \"data-index\": key,\n tabIndex: \"-1\",\n className: classnames(\n slideClasses,\n slideClass,\n spec.classes?.slide\n ),\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: { ...(child.props.style || {}), ...childStyle },\n onClick: e => {\n child.props && child.props.onClick && child.props.onClick(e);\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n })\n );\n }\n }\n });\n\n if (spec.rtl) {\n return preCloneSlides.concat(slides, postCloneSlides).reverse();\n } else {\n return preCloneSlides.concat(slides, postCloneSlides);\n }\n};\n\nexport class Track extends React.PureComponent {\n node = null;\n\n handleRef = ref => {\n this.node = ref;\n };\n\n render() {\n const slides = renderSlides(this.props);\n const { onMouseEnter, onMouseOver, onMouseLeave } = this.props;\n const mouseEvents = { onMouseEnter, onMouseOver, onMouseLeave };\n return (\n \n {slides}\n
    \n );\n }\n}\n","\"use strict\";\n\nimport React from \"react\";\nimport classnames from \"classnames\";\nimport { clamp } from \"./utils/innerSliderUtils\";\n\nconst getDotCount = spec => {\n let dots;\n\n if (spec.infinite) {\n dots = Math.ceil(spec.slideCount / spec.slidesToScroll);\n } else {\n dots =\n Math.ceil((spec.slideCount - spec.slidesToShow) / spec.slidesToScroll) +\n 1;\n }\n\n return dots;\n};\n\nexport class Dots extends React.PureComponent {\n clickHandler(options, e) {\n // In Autoplay the focus stays on clicked button even after transition\n // to next slide. That only goes away by click somewhere outside\n e.preventDefault();\n this.props.clickHandler(options);\n }\n render() {\n const {\n onMouseEnter,\n onMouseOver,\n onMouseLeave,\n infinite,\n slidesToScroll,\n slidesToShow,\n slideCount,\n currentSlide,\n classes\n } = this.props;\n let dotCount = getDotCount({\n slideCount,\n slidesToScroll,\n slidesToShow,\n infinite\n });\n\n const mouseEvents = { onMouseEnter, onMouseOver, onMouseLeave };\n let dots = [];\n for (let i = 0; i < dotCount; i++) {\n let _rightBound = (i + 1) * slidesToScroll - 1;\n let rightBound = infinite\n ? _rightBound\n : clamp(_rightBound, 0, slideCount - 1);\n let _leftBound = rightBound - (slidesToScroll - 1);\n let leftBound = infinite\n ? _leftBound\n : clamp(_leftBound, 0, slideCount - 1);\n\n let className = classnames(classes?.dot, {\n [classes?.activeDot\n ? `slick-active ${classes?.activeDot}`\n : \"slick-active\"]: infinite\n ? currentSlide >= leftBound && currentSlide <= rightBound\n : currentSlide === leftBound\n });\n\n let dotOptions = {\n message: \"dots\",\n index: i,\n slidesToScroll,\n currentSlide\n };\n\n let onClick = this.clickHandler.bind(this, dotOptions);\n dots = dots.concat(\n
  • \n {React.cloneElement(this.props.customPaging(i), { onClick })}\n
  • \n );\n }\n\n return React.cloneElement(this.props.appendDots(dots), {\n className: classnames(this.props.dotsClass, classes?.dots),\n ...mouseEvents\n });\n }\n}\n","\"use strict\";\n\nimport React from \"react\";\nimport classnames from \"classnames\";\nimport { canGoNext } from \"./utils/innerSliderUtils\";\n\nexport class PrevArrow extends React.PureComponent {\n clickHandler(options, e) {\n if (e) {\n e.preventDefault();\n }\n this.props.clickHandler(options, e);\n }\n render() {\n let prevClasses = { \"slick-arrow\": true, \"slick-prev\": true };\n let prevHandler = this.clickHandler.bind(this, { message: \"previous\" });\n\n if (\n !this.props.infinite &&\n (this.props.currentSlide === 0 ||\n this.props.slideCount <= this.props.slidesToShow)\n ) {\n prevClasses[\"slick-disabled\"] = true;\n prevClasses[this.props.classes?.disabled] = !!this.props.classes\n ?.disabled;\n prevHandler = null;\n }\n\n let prevArrowProps = {\n key: \"0\",\n \"data-role\": \"none\",\n className: classnames(\n prevClasses,\n this.props.classes?.arrow,\n this.props.classes?.prev\n ),\n style: { display: \"block\" },\n onClick: prevHandler\n };\n let customProps = {\n currentSlide: this.props.currentSlide,\n slideCount: this.props.slideCount\n };\n let prevArrow;\n\n if (this.props.prevArrow) {\n prevArrow = React.cloneElement(this.props.prevArrow, {\n ...prevArrowProps,\n ...customProps\n });\n } else {\n prevArrow = (\n \n );\n }\n\n return prevArrow;\n }\n}\n\nexport class NextArrow extends React.PureComponent {\n clickHandler(options, e) {\n if (e) {\n e.preventDefault();\n }\n this.props.clickHandler(options, e);\n }\n render() {\n let nextClasses = { \"slick-arrow\": true, \"slick-next\": true };\n let nextHandler = this.clickHandler.bind(this, { message: \"next\" });\n\n if (!canGoNext(this.props)) {\n nextClasses[\"slick-disabled\"] = true;\n nextClasses[this.props.classes?.disabled] = !!this.props.classes\n ?.disabled;\n nextHandler = null;\n }\n\n let nextArrowProps = {\n key: \"1\",\n \"data-role\": \"none\",\n className: classnames(\n nextClasses,\n this.props.classes?.arrow,\n this.props.classes?.next\n ),\n style: { display: \"block\" },\n onClick: nextHandler\n };\n let customProps = {\n currentSlide: this.props.currentSlide,\n slideCount: this.props.slideCount\n };\n let nextArrow;\n\n if (this.props.nextArrow) {\n nextArrow = React.cloneElement(this.props.nextArrow, {\n ...nextArrowProps,\n ...customProps\n });\n } else {\n nextArrow = (\n \n );\n }\n\n return nextArrow;\n }\n}\n","\"use strict\";\n\nimport React from \"react\";\nimport initialState from \"./initial-state\";\nimport debounce from \"lodash.debounce\";\nimport classnames from \"classnames\";\nimport {\n getOnDemandLazySlides,\n extractObject,\n initializedState,\n getHeight,\n canGoNext,\n slideHandler,\n changeSlide,\n keyHandler,\n swipeStart,\n swipeMove,\n swipeEnd,\n getPreClones,\n getPostClones,\n getTrackLeft,\n getTrackCSS\n} from \"./utils/innerSliderUtils\";\n\nimport { Track } from \"./track\";\nimport { Dots } from \"./dots\";\nimport { PrevArrow, NextArrow } from \"./arrows\";\nimport ResizeObserver from \"resize-observer-polyfill\";\n\nexport class InnerSlider extends React.Component {\n constructor(props) {\n super(props);\n this.list = null;\n this.track = null;\n this.state = {\n ...initialState,\n currentSlide: this.props.initialSlide,\n slideCount: React.Children.count(this.props.children)\n };\n this.callbackTimers = [];\n this.clickable = true;\n this.debouncedResize = null;\n const ssrState = this.ssrInit();\n this.state = { ...this.state, ...ssrState };\n }\n listRefHandler = ref => (this.list = ref);\n trackRefHandler = ref => (this.track = ref);\n adaptHeight = () => {\n if (this.props.adaptiveHeight && this.list) {\n const elem = this.list.querySelector(\n `[data-index=\"${this.state.currentSlide}\"]`\n );\n this.list.style.height = getHeight(elem) + \"px\";\n }\n };\n componentDidMount = () => {\n this.props.onInit && this.props.onInit();\n if (this.props.lazyLoad) {\n let slidesToLoad = getOnDemandLazySlides({\n ...this.props,\n ...this.state\n });\n if (slidesToLoad.length > 0) {\n this.setState(prevState => ({\n lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)\n }));\n if (this.props.onLazyLoad) {\n this.props.onLazyLoad(slidesToLoad);\n }\n }\n }\n let spec = { listRef: this.list, trackRef: this.track, ...this.props };\n this.updateState(spec, true, () => {\n this.adaptHeight();\n this.props.autoplay && this.autoPlay(\"update\");\n });\n if (this.props.lazyLoad === \"progressive\") {\n this.lazyLoadTimer = setInterval(this.progressiveLazyLoad, 1000);\n }\n this.ro = new ResizeObserver(() => {\n if (this.state.animating) {\n this.onWindowResized(false); // don't set trackStyle hence don't break animation\n this.callbackTimers.push(\n setTimeout(() => this.onWindowResized(), this.props.speed)\n );\n } else {\n this.onWindowResized();\n }\n });\n this.ro.observe(this.list);\n document.querySelectorAll &&\n Array.prototype.forEach.call(\n document.querySelectorAll(\".slick-slide\"),\n slide => {\n slide.onfocus = this.props.pauseOnFocus ? this.onSlideFocus : null;\n slide.onblur = this.props.pauseOnFocus ? this.onSlideBlur : null;\n }\n );\n if (window.addEventListener) {\n window.addEventListener(\"resize\", this.onWindowResized);\n } else {\n window.attachEvent(\"onresize\", this.onWindowResized);\n }\n };\n componentWillUnmount = () => {\n if (this.animationEndCallback) {\n clearTimeout(this.animationEndCallback);\n }\n if (this.lazyLoadTimer) {\n clearInterval(this.lazyLoadTimer);\n }\n if (this.callbackTimers.length) {\n this.callbackTimers.forEach(timer => clearTimeout(timer));\n this.callbackTimers = [];\n }\n if (window.addEventListener) {\n window.removeEventListener(\"resize\", this.onWindowResized);\n } else {\n window.detachEvent(\"onresize\", this.onWindowResized);\n }\n if (this.autoplayTimer) {\n clearInterval(this.autoplayTimer);\n }\n this.ro.disconnect();\n };\n\n didPropsChange(prevProps) {\n let setTrackStyle = false;\n for (let key of Object.keys(this.props)) {\n if (!prevProps.hasOwnProperty(key)) {\n setTrackStyle = true;\n break;\n }\n if (\n typeof prevProps[key] === \"object\" ||\n typeof prevProps[key] === \"function\"\n ) {\n continue;\n }\n if (prevProps[key] !== this.props[key]) {\n setTrackStyle = true;\n break;\n }\n }\n return (\n setTrackStyle ||\n React.Children.count(this.props.children) !==\n React.Children.count(prevProps.children)\n );\n }\n\n componentDidUpdate = prevProps => {\n this.checkImagesLoad();\n this.props.onReInit && this.props.onReInit();\n if (this.props.lazyLoad) {\n let slidesToLoad = getOnDemandLazySlides({\n ...this.props,\n ...this.state\n });\n if (slidesToLoad.length > 0) {\n this.setState(prevState => ({\n lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)\n }));\n if (this.props.onLazyLoad) {\n this.props.onLazyLoad(slidesToLoad);\n }\n }\n }\n // if (this.props.onLazyLoad) {\n // this.props.onLazyLoad([leftMostSlide])\n // }\n this.adaptHeight();\n let spec = {\n listRef: this.list,\n trackRef: this.track,\n ...this.props,\n ...this.state\n };\n const setTrackStyle = this.didPropsChange(prevProps);\n setTrackStyle &&\n this.updateState(spec, setTrackStyle, () => {\n if (\n this.state.currentSlide >= React.Children.count(this.props.children)\n ) {\n this.changeSlide({\n message: \"index\",\n index:\n React.Children.count(this.props.children) -\n this.props.slidesToShow,\n currentSlide: this.state.currentSlide\n });\n }\n if (this.props.autoplay) {\n this.autoPlay(\"update\");\n } else {\n this.pause(\"paused\");\n }\n });\n };\n onWindowResized = setTrackStyle => {\n if (this.debouncedResize) this.debouncedResize.cancel();\n this.debouncedResize = debounce(() => this.resizeWindow(setTrackStyle), 50);\n this.debouncedResize();\n };\n resizeWindow = (setTrackStyle = true) => {\n const isTrackMounted = Boolean(this.track && this.track.node);\n // prevent warning: setting state on unmounted component (server side rendering)\n if (!isTrackMounted) return;\n let spec = {\n listRef: this.list,\n trackRef: this.track,\n ...this.props,\n ...this.state\n };\n this.updateState(spec, setTrackStyle, () => {\n if (this.props.autoplay) this.autoPlay(\"update\");\n else this.pause(\"paused\");\n });\n // animating state should be cleared while resizing, otherwise autoplay stops working\n this.setState({\n animating: false\n });\n clearTimeout(this.animationEndCallback);\n delete this.animationEndCallback;\n };\n updateState = (spec, setTrackStyle, callback) => {\n let updatedState = initializedState(spec);\n spec = { ...spec, ...updatedState, slideIndex: updatedState.currentSlide };\n let targetLeft = getTrackLeft(spec);\n spec = { ...spec, left: targetLeft };\n let trackStyle = getTrackCSS(spec);\n if (\n setTrackStyle ||\n React.Children.count(this.props.children) !==\n React.Children.count(spec.children)\n ) {\n updatedState[\"trackStyle\"] = trackStyle;\n }\n this.setState(updatedState, callback);\n };\n\n ssrInit = () => {\n if (this.props.variableWidth) {\n let trackWidth = 0,\n trackLeft = 0;\n let childrenWidths = [];\n let preClones = getPreClones({\n ...this.props,\n ...this.state,\n slideCount: this.props.children.length\n });\n let postClones = getPostClones({\n ...this.props,\n ...this.state,\n slideCount: this.props.children.length\n });\n this.props.children.forEach(child => {\n childrenWidths.push(child.props.style.width);\n trackWidth += child.props.style.width;\n });\n for (let i = 0; i < preClones; i++) {\n trackLeft += childrenWidths[childrenWidths.length - 1 - i];\n trackWidth += childrenWidths[childrenWidths.length - 1 - i];\n }\n for (let i = 0; i < postClones; i++) {\n trackWidth += childrenWidths[i];\n }\n for (let i = 0; i < this.state.currentSlide; i++) {\n trackLeft += childrenWidths[i];\n }\n let trackStyle = {\n width: trackWidth + \"px\",\n left: -trackLeft + \"px\"\n };\n if (this.props.centerMode) {\n let currentWidth = `${childrenWidths[this.state.currentSlide]}px`;\n trackStyle.left = `calc(${trackStyle.left} + (100% - ${currentWidth}) / 2 ) `;\n }\n return {\n trackStyle\n };\n }\n let childrenCount = React.Children.count(this.props.children);\n const spec = { ...this.props, ...this.state, slideCount: childrenCount };\n let slideCount = getPreClones(spec) + getPostClones(spec) + childrenCount;\n let trackWidth = (100 / this.props.slidesToShow) * slideCount;\n let slideWidth = 100 / slideCount;\n let trackLeft =\n (-slideWidth *\n (getPreClones(spec) + this.state.currentSlide) *\n trackWidth) /\n 100;\n if (this.props.centerMode) {\n trackLeft += (100 - (slideWidth * trackWidth) / 100) / 2;\n }\n let trackStyle = {\n width: trackWidth + \"%\",\n left: trackLeft + \"%\"\n };\n return {\n slideWidth: slideWidth + \"%\",\n trackStyle: trackStyle\n };\n };\n checkImagesLoad = () => {\n let images =\n (this.list &&\n this.list.querySelectorAll &&\n this.list.querySelectorAll(\".slick-slide img\")) ||\n [];\n let imagesCount = images.length,\n loadedCount = 0;\n Array.prototype.forEach.call(images, image => {\n const handler = () =>\n ++loadedCount && loadedCount >= imagesCount && this.onWindowResized();\n if (!image.onclick) {\n image.onclick = () => image.parentNode.focus();\n } else {\n const prevClickHandler = image.onclick;\n image.onclick = e => {\n prevClickHandler(e);\n image.parentNode.focus();\n };\n }\n if (!image.onload) {\n if (this.props.lazyLoad) {\n image.onload = () => {\n this.adaptHeight();\n this.callbackTimers.push(\n setTimeout(this.onWindowResized, this.props.speed)\n );\n };\n } else {\n image.onload = handler;\n image.onerror = () => {\n handler();\n this.props.onLazyLoadError && this.props.onLazyLoadError();\n };\n }\n }\n });\n };\n progressiveLazyLoad = () => {\n let slidesToLoad = [];\n const spec = { ...this.props, ...this.state };\n for (\n let index = this.state.currentSlide;\n index < this.state.slideCount + getPostClones(spec);\n index++\n ) {\n if (this.state.lazyLoadedList.indexOf(index) < 0) {\n slidesToLoad.push(index);\n break;\n }\n }\n for (\n let index = this.state.currentSlide - 1;\n index >= -getPreClones(spec);\n index--\n ) {\n if (this.state.lazyLoadedList.indexOf(index) < 0) {\n slidesToLoad.push(index);\n break;\n }\n }\n if (slidesToLoad.length > 0) {\n this.setState(state => ({\n lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad)\n }));\n if (this.props.onLazyLoad) {\n this.props.onLazyLoad(slidesToLoad);\n }\n } else {\n if (this.lazyLoadTimer) {\n clearInterval(this.lazyLoadTimer);\n delete this.lazyLoadTimer;\n }\n }\n };\n slideHandler = (index, dontAnimate = false) => {\n const {\n asNavFor,\n beforeChange,\n onLazyLoad,\n speed,\n afterChange\n } = this.props;\n // capture currentslide before state is updated\n const currentSlide = this.state.currentSlide;\n let { state, nextState } = slideHandler({\n index,\n ...this.props,\n ...this.state,\n trackRef: this.track,\n useCSS: this.props.useCSS && !dontAnimate\n });\n if (!state) return;\n beforeChange && beforeChange(currentSlide, state.currentSlide);\n let slidesToLoad = state.lazyLoadedList.filter(\n value => this.state.lazyLoadedList.indexOf(value) < 0\n );\n onLazyLoad && slidesToLoad.length > 0 && onLazyLoad(slidesToLoad);\n if (!this.props.waitForAnimate && this.animationEndCallback) {\n clearTimeout(this.animationEndCallback);\n afterChange && afterChange(currentSlide);\n delete this.animationEndCallback;\n }\n this.setState(state, () => {\n // asNavForIndex check is to avoid recursive calls of slideHandler in waitForAnimate=false mode\n if (asNavFor && this.asNavForIndex !== index) {\n this.asNavForIndex = index;\n asNavFor.innerSlider.slideHandler(index);\n }\n if (!nextState) return;\n this.animationEndCallback = setTimeout(() => {\n const { animating, ...firstBatch } = nextState;\n this.setState(firstBatch, () => {\n this.callbackTimers.push(\n setTimeout(() => this.setState({ animating }), 10)\n );\n afterChange && afterChange(state.currentSlide);\n delete this.animationEndCallback;\n });\n }, speed);\n });\n };\n changeSlide = (options, dontAnimate = false) => {\n const spec = { ...this.props, ...this.state };\n let targetSlide = changeSlide(spec, options);\n if (targetSlide !== 0 && !targetSlide) return;\n if (dontAnimate === true) {\n this.slideHandler(targetSlide, dontAnimate);\n } else {\n this.slideHandler(targetSlide);\n }\n this.props.autoplay && this.autoPlay(\"update\");\n if (this.props.focusOnSelect) {\n const nodes = this.list.querySelectorAll(\".slick-current\");\n nodes[0] && nodes[0].focus();\n }\n };\n clickHandler = e => {\n if (this.clickable === false) {\n e.stopPropagation();\n e.preventDefault();\n }\n this.clickable = true;\n };\n keyHandler = e => {\n let dir = keyHandler(e, this.props.accessibility, this.props.rtl);\n dir !== \"\" && this.changeSlide({ message: dir });\n };\n selectHandler = options => {\n this.changeSlide(options);\n };\n disableBodyScroll = () => {\n const preventDefault = e => {\n e = e || window.event;\n if (e.preventDefault) e.preventDefault();\n e.returnValue = false;\n };\n window.ontouchmove = preventDefault;\n };\n enableBodyScroll = () => {\n window.ontouchmove = null;\n };\n swipeStart = e => {\n if (this.props.verticalSwiping) {\n this.disableBodyScroll();\n }\n let state = swipeStart(e, this.props.swipe, this.props.draggable);\n state !== \"\" && this.setState(state);\n };\n swipeMove = e => {\n let state = swipeMove(e, {\n ...this.props,\n ...this.state,\n trackRef: this.track,\n listRef: this.list,\n slideIndex: this.state.currentSlide\n });\n if (!state) return;\n if (state[\"swiping\"]) {\n this.clickable = false;\n }\n this.setState(state);\n };\n swipeEnd = e => {\n let state = swipeEnd(e, {\n ...this.props,\n ...this.state,\n trackRef: this.track,\n listRef: this.list,\n slideIndex: this.state.currentSlide\n });\n if (!state) return;\n let triggerSlideHandler = state[\"triggerSlideHandler\"];\n delete state[\"triggerSlideHandler\"];\n this.setState(state);\n if (triggerSlideHandler === undefined) return;\n this.slideHandler(triggerSlideHandler);\n if (this.props.verticalSwiping) {\n this.enableBodyScroll();\n }\n };\n touchEnd = e => {\n this.swipeEnd(e);\n this.clickable = true;\n };\n slickPrev = () => {\n // this and fellow methods are wrapped in setTimeout\n // to make sure initialize setState has happened before\n // any of such methods are called\n this.callbackTimers.push(\n setTimeout(() => this.changeSlide({ message: \"previous\" }), 0)\n );\n };\n slickNext = () => {\n this.callbackTimers.push(\n setTimeout(() => this.changeSlide({ message: \"next\" }), 0)\n );\n };\n slickGoTo = (slide, dontAnimate = false) => {\n slide = Number(slide);\n if (isNaN(slide)) return \"\";\n this.callbackTimers.push(\n setTimeout(\n () =>\n this.changeSlide(\n {\n message: \"index\",\n index: slide,\n currentSlide: this.state.currentSlide\n },\n dontAnimate\n ),\n 0\n )\n );\n };\n play = () => {\n var nextIndex;\n if (this.props.rtl) {\n nextIndex = this.state.currentSlide - this.props.slidesToScroll;\n } else {\n if (canGoNext({ ...this.props, ...this.state })) {\n nextIndex = this.state.currentSlide + this.props.slidesToScroll;\n } else {\n return false;\n }\n }\n\n this.slideHandler(nextIndex);\n };\n\n autoPlay = playType => {\n if (this.autoplayTimer) {\n clearInterval(this.autoplayTimer);\n }\n const autoplaying = this.state.autoplaying;\n if (playType === \"update\") {\n if (\n autoplaying === \"hovered\" ||\n autoplaying === \"focused\" ||\n autoplaying === \"paused\"\n ) {\n return;\n }\n } else if (playType === \"leave\") {\n if (autoplaying === \"paused\" || autoplaying === \"focused\") {\n return;\n }\n } else if (playType === \"blur\") {\n if (autoplaying === \"paused\" || autoplaying === \"hovered\") {\n return;\n }\n }\n this.autoplayTimer = setInterval(this.play, this.props.autoplaySpeed + 50);\n this.setState({ autoplaying: \"playing\" });\n };\n pause = pauseType => {\n if (this.autoplayTimer) {\n clearInterval(this.autoplayTimer);\n this.autoplayTimer = null;\n }\n const autoplaying = this.state.autoplaying;\n if (pauseType === \"paused\") {\n this.setState({ autoplaying: \"paused\" });\n } else if (pauseType === \"focused\") {\n if (autoplaying === \"hovered\" || autoplaying === \"playing\") {\n this.setState({ autoplaying: \"focused\" });\n }\n } else {\n // pauseType is 'hovered'\n if (autoplaying === \"playing\") {\n this.setState({ autoplaying: \"hovered\" });\n }\n }\n };\n onDotsOver = () => this.props.autoplay && this.pause(\"hovered\");\n onDotsLeave = () =>\n this.props.autoplay &&\n this.state.autoplaying === \"hovered\" &&\n this.autoPlay(\"leave\");\n onTrackOver = () => this.props.autoplay && this.pause(\"hovered\");\n onTrackLeave = () =>\n this.props.autoplay &&\n this.state.autoplaying === \"hovered\" &&\n this.autoPlay(\"leave\");\n onSlideFocus = () => this.props.autoplay && this.pause(\"focused\");\n onSlideBlur = () =>\n this.props.autoplay &&\n this.state.autoplaying === \"focused\" &&\n this.autoPlay(\"blur\");\n\n render = () => {\n var className = classnames(\n \"slick-slider\",\n this.props.className,\n this.props.classes?.slider,\n {\n \"slick-vertical\": this.props.vertical,\n \"slick-initialized\": true\n }\n );\n let spec = { ...this.props, ...this.state };\n let trackProps = extractObject(spec, [\n \"fade\",\n \"cssEase\",\n \"speed\",\n \"infinite\",\n \"centerMode\",\n \"focusOnSelect\",\n \"currentSlide\",\n \"lazyLoad\",\n \"lazyLoadedList\",\n \"rtl\",\n \"slideWidth\",\n \"slideHeight\",\n \"listHeight\",\n \"vertical\",\n \"slidesToShow\",\n \"slidesToScroll\",\n \"slideCount\",\n \"trackStyle\",\n \"variableWidth\",\n \"unslick\",\n \"centerPadding\",\n \"targetSlide\",\n \"useCSS\",\n \"omitLazyForSlides\",\n \"classes\"\n ]);\n const { pauseOnHover } = this.props;\n trackProps = {\n ...trackProps,\n onMouseEnter: pauseOnHover ? this.onTrackOver : null,\n onMouseLeave: pauseOnHover ? this.onTrackLeave : null,\n onMouseOver: pauseOnHover ? this.onTrackOver : null,\n focusOnSelect:\n this.props.focusOnSelect && this.clickable ? this.selectHandler : null\n };\n\n var dots;\n if (\n this.props.dots === true &&\n this.state.slideCount >= this.props.slidesToShow\n ) {\n let dotProps = extractObject(spec, [\n \"dotsClass\",\n \"slideCount\",\n \"slidesToShow\",\n \"currentSlide\",\n \"slidesToScroll\",\n \"clickHandler\",\n \"children\",\n \"customPaging\",\n \"infinite\",\n \"appendDots\",\n \"classes\"\n ]);\n const { pauseOnDotsHover } = this.props;\n dotProps = {\n ...dotProps,\n clickHandler: this.changeSlide,\n onMouseEnter: pauseOnDotsHover ? this.onDotsLeave : null,\n onMouseOver: pauseOnDotsHover ? this.onDotsOver : null,\n onMouseLeave: pauseOnDotsHover ? this.onDotsLeave : null\n };\n dots = ;\n }\n\n var prevArrow, nextArrow;\n let arrowProps = extractObject(spec, [\n \"infinite\",\n \"centerMode\",\n \"currentSlide\",\n \"slideCount\",\n \"slidesToShow\",\n \"prevArrow\",\n \"nextArrow\",\n \"classes\"\n ]);\n arrowProps.clickHandler = this.changeSlide;\n\n if (this.props.arrows) {\n prevArrow = ;\n nextArrow = ;\n }\n\n var verticalHeightStyle = null;\n\n if (this.props.vertical) {\n verticalHeightStyle = {\n height: this.state.listHeight\n };\n }\n\n var centerPaddingStyle = null;\n\n if (this.props.vertical === false) {\n if (this.props.centerMode === true) {\n centerPaddingStyle = {\n padding: \"0px \" + this.props.centerPadding\n };\n }\n } else {\n if (this.props.centerMode === true) {\n centerPaddingStyle = {\n padding: this.props.centerPadding + \" 0px\"\n };\n }\n }\n\n const listStyle = { ...verticalHeightStyle, ...centerPaddingStyle };\n const touchMove = this.props.touchMove;\n let listProps = {\n className: classnames(this.props.classes?.list, \"slick-list\"),\n style: listStyle,\n onClick: this.clickHandler,\n onMouseDown: touchMove ? this.swipeStart : null,\n onMouseMove: this.state.dragging && touchMove ? this.swipeMove : null,\n onMouseUp: touchMove ? this.swipeEnd : null,\n onMouseLeave: this.state.dragging && touchMove ? this.swipeEnd : null,\n onTouchStart: touchMove ? this.swipeStart : null,\n onTouchMove: this.state.dragging && touchMove ? this.swipeMove : null,\n onTouchEnd: touchMove ? this.touchEnd : null,\n onTouchCancel: this.state.dragging && touchMove ? this.swipeEnd : null,\n onKeyDown: this.props.accessibility ? this.keyHandler : null\n };\n\n let innerSliderProps = {\n className: className,\n dir: \"ltr\",\n style: this.props.style\n };\n\n if (this.props.unslick) {\n listProps = { className: classnames(this.props.classes?.list, \"slick-list\"), };\n innerSliderProps = { className };\n }\n return (\n
    \n {!this.props.unslick ? prevArrow : \"\"}\n
    \n \n {this.props.children}\n \n
    \n {!this.props.unslick ? nextArrow : \"\"}\n {!this.props.unslick ? dots : \"\"}\n
    \n );\n };\n}\n","import React from \"react\";\n\nlet defaultProps = {\n accessibility: true,\n adaptiveHeight: false,\n afterChange: null,\n appendDots: dots =>
      {dots}
    ,\n arrows: true,\n autoplay: false,\n autoplaySpeed: 3000,\n beforeChange: null,\n centerMode: false,\n centerPadding: \"50px\",\n className: \"\",\n cssEase: \"ease\",\n classes: {\n arrow: null,\n prev: null,\n next: null,\n slide: null,\n disabled: null,\n track: null,\n slider: null,\n list: null,\n dot: null,\n dots: null,\n activeDot: null,\n cloned: null\n },\n customPaging: i => ,\n dots: false,\n dotsClass: \"slick-dots\",\n draggable: true,\n easing: \"linear\",\n edgeFriction: 0.35,\n fade: false,\n focusOnSelect: false,\n infinite: true,\n initialSlide: 0,\n lazyLoad: null,\n nextArrow: null,\n onEdge: null,\n onInit: null,\n onLazyLoadError: null,\n onReInit: null,\n pauseOnDotsHover: false,\n pauseOnFocus: false,\n pauseOnHover: true,\n prevArrow: null,\n responsive: null,\n rows: 1,\n rtl: false,\n slide: \"div\",\n slidesPerRow: 1,\n slidesToScroll: 1,\n slidesToShow: 1,\n speed: 500,\n swipe: true,\n swipeEvent: null,\n swipeToSlide: false,\n touchMove: true,\n touchThreshold: 5,\n useCSS: true,\n useTransform: true,\n variableWidth: false,\n vertical: false,\n waitForAnimate: true\n};\n\nexport default defaultProps;\n","\"use strict\";\n\nimport React from \"react\";\nimport { InnerSlider } from \"./inner-slider\";\nimport json2mq from \"json2mq\";\nimport defaultProps from \"./default-props\";\nimport { canUseDOM } from \"./utils/innerSliderUtils\";\nconst enquire = canUseDOM() && require(\"enquire.js\");\n\nexport default class Slider extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n breakpoint: null\n };\n this._responsiveMediaHandlers = [];\n }\n\n innerSliderRefHandler = ref => (this.innerSlider = ref);\n\n media(query, handler) {\n // javascript handler for css media query\n enquire.register(query, handler);\n this._responsiveMediaHandlers.push({ query, handler });\n }\n\n // handles responsive breakpoints\n componentDidMount() {\n // performance monitoring\n //if (process.env.NODE_ENV !== 'production') {\n //const { whyDidYouUpdate } = require('why-did-you-update')\n //whyDidYouUpdate(React)\n //}\n if (this.props.responsive) {\n let breakpoints = this.props.responsive.map(\n breakpt => breakpt.breakpoint\n );\n // sort them in increasing order of their numerical value\n breakpoints.sort((x, y) => x - y);\n\n breakpoints.forEach((breakpoint, index) => {\n // media query for each breakpoint\n let bQuery;\n if (index === 0) {\n bQuery = json2mq({ minWidth: 0, maxWidth: breakpoint });\n } else {\n bQuery = json2mq({\n minWidth: breakpoints[index - 1] + 1,\n maxWidth: breakpoint\n });\n }\n // when not using server side rendering\n canUseDOM() &&\n this.media(bQuery, () => {\n this.setState({ breakpoint: breakpoint });\n });\n });\n\n // Register media query for full screen. Need to support resize from small to large\n // convert javascript object to media query string\n let query = json2mq({ minWidth: breakpoints.slice(-1)[0] });\n\n canUseDOM() &&\n this.media(query, () => {\n this.setState({ breakpoint: null });\n });\n }\n }\n\n componentWillUnmount() {\n this._responsiveMediaHandlers.forEach(function(obj) {\n enquire.unregister(obj.query, obj.handler);\n });\n }\n\n slickPrev = () => this.innerSlider.slickPrev();\n\n slickNext = () => this.innerSlider.slickNext();\n\n slickGoTo = (slide, dontAnimate = false) =>\n this.innerSlider.slickGoTo(slide, dontAnimate);\n\n slickPause = () => this.innerSlider.pause(\"paused\");\n\n slickPlay = () => this.innerSlider.autoPlay(\"play\");\n\n render() {\n var settings;\n var newProps;\n if (this.state.breakpoint) {\n newProps = this.props.responsive.filter(\n resp => resp.breakpoint === this.state.breakpoint\n );\n settings =\n newProps[0].settings === \"unslick\"\n ? \"unslick\"\n : { ...defaultProps, ...this.props, ...newProps[0].settings };\n } else {\n settings = { ...defaultProps, ...this.props };\n }\n\n // force scrolling by one if centerMode is on\n if (settings.centerMode) {\n if (\n settings.slidesToScroll > 1 &&\n process.env.NODE_ENV !== \"production\"\n ) {\n console.warn(\n `slidesToScroll should be equal to 1 in centerMode, you are using ${settings.slidesToScroll}`\n );\n }\n settings.slidesToScroll = 1;\n }\n // force showing one slide and scrolling by one if the fade mode is on\n if (settings.fade) {\n if (settings.slidesToShow > 1 && process.env.NODE_ENV !== \"production\") {\n console.warn(\n `slidesToShow should be equal to 1 when fade is true, you're using ${settings.slidesToShow}`\n );\n }\n if (\n settings.slidesToScroll > 1 &&\n process.env.NODE_ENV !== \"production\"\n ) {\n console.warn(\n `slidesToScroll should be equal to 1 when fade is true, you're using ${settings.slidesToScroll}`\n );\n }\n settings.slidesToShow = 1;\n settings.slidesToScroll = 1;\n }\n\n // makes sure that children is an array, even when there is only 1 child\n let children = React.Children.toArray(this.props.children);\n\n // Children may contain false or null, so we should filter them\n // children may also contain string filled with spaces (in certain cases where we use jsx strings)\n children = children.filter(child => {\n if (typeof child === \"string\") {\n return !!child.trim();\n }\n return !!child;\n });\n\n // rows and slidesPerRow logic is handled here\n if (\n settings.variableWidth &&\n (settings.rows > 1 || settings.slidesPerRow > 1)\n ) {\n console.warn(\n `variableWidth is not supported in case of rows > 1 or slidesPerRow > 1`\n );\n settings.variableWidth = false;\n }\n let newChildren = [];\n let currentWidth = null;\n for (\n let i = 0;\n i < children.length;\n i += settings.rows * settings.slidesPerRow\n ) {\n let newSlide = [];\n for (\n let j = i;\n j < i + settings.rows * settings.slidesPerRow;\n j += settings.slidesPerRow\n ) {\n let row = [];\n for (let k = j; k < j + settings.slidesPerRow; k += 1) {\n if (settings.variableWidth && children[k].props.style) {\n currentWidth = children[k].props.style.width;\n }\n if (k >= children.length) break;\n row.push(\n React.cloneElement(children[k], {\n key: 100 * i + 10 * j + k,\n tabIndex: -1,\n style: {\n width: `${100 / settings.slidesPerRow}%`,\n display: \"inline-block\"\n }\n })\n );\n }\n newSlide.push(
    {row}
    );\n }\n if (settings.variableWidth) {\n newChildren.push(\n
    \n {newSlide}\n
    \n );\n } else {\n newChildren.push(
    {newSlide}
    );\n }\n }\n\n if (settings === \"unslick\") {\n const className = \"regular slider \" + (this.props.className || \"\");\n return
    {children}
    ;\n } else if (newChildren.length <= settings.slidesToShow) {\n settings.unslick = true;\n }\n return (\n <>\n \n {newChildren}\n \n \n );\n }\n}\n","import Slider from \"./slider\";\n\nexport default Slider;\n"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 12);\n"],"sourceRoot":""} \ No newline at end of file diff --git a/lib/arrows.js b/lib/arrows.js index 68b93d9fc..a881542a9 100644 --- a/lib/arrows.js +++ b/lib/arrows.js @@ -1,22 +1,22 @@ "use strict"; -function _typeof(obj) { +function _typeof(o) { "@babel/helpers - typeof"; return ( (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator - ? function(obj) { - return typeof obj; + ? function(o) { + return typeof o; } - : function(obj) { - return obj && + : function(o) { + return o && "function" == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype + o.constructor === Symbol && + o !== Symbol.prototype ? "symbol" - : typeof obj; + : typeof o; }), - _typeof(obj) + _typeof(o) ); } Object.defineProperty(exports, "__esModule", { @@ -26,172 +26,172 @@ exports.PrevArrow = exports.NextArrow = void 0; var _react = _interopRequireDefault(require("react")); var _classnames = _interopRequireDefault(require("classnames")); var _innerSliderUtils = require("./utils/innerSliderUtils"); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { default: e }; } function _extends() { - _extends = Object.assign - ? Object.assign.bind() - : function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } + return ( + (_extends = Object.assign + ? Object.assign.bind() + : function(n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}.hasOwnProperty.call(t, r) && (n[r] = t[r])); } - } - return target; - }; - return _extends.apply(this, arguments); + return n; + }), + _extends.apply(null, arguments) + ); } -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); +function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); +function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { - Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) - ); + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } - return target; + return e; } -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; +function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); } -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { +function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); - } } -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); +function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + (o.enumerable = o.enumerable || !1), + (o.configurable = !0), + "value" in o && (o.writable = !0), + Object.defineProperty(e, _toPropertyKey(o.key), o); } } -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; +function _createClass(e, r, t) { + return ( + r && _defineProperties(e.prototype, r), + t && _defineProperties(e, t), + Object.defineProperty(e, "prototype", { writable: !1 }), + e + ); } -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { value: subClass, writable: true, configurable: true } - }); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) _setPrototypeOf(subClass, superClass); +function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; } -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); +function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); } -function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return _possibleConstructorReturn(this, result); - }; +function _callSuper(t, o, e) { + return ( + (o = _getPrototypeOf(o)), + _possibleConstructorReturn( + t, + _isNativeReflectConstruct() + ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) + : o.apply(t, e) + ) + ); } -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { +function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError( "Derived constructors may only return object or undefined" ); - } - return _assertThisInitialized(self); + return _assertThisInitialized(t); } -function _assertThisInitialized(self) { - if (self === void 0) { +function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); - } - return self; + return e; } function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call( + var t = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function() {}) ); - return true; - } catch (e) { - return false; - } + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); } -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); +function _getPrototypeOf(t) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf.bind() + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + _getPrototypeOf(t) + ); } -var PrevArrow = /*#__PURE__*/ (function(_React$PureComponent) { - _inherits(PrevArrow, _React$PureComponent); - var _super = _createSuper(PrevArrow); +function _inherits(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 } + })), + Object.defineProperty(t, "prototype", { writable: !1 }), + e && _setPrototypeOf(t, e); +} +function _setPrototypeOf(t, e) { + return ( + (_setPrototypeOf = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function(t, e) { + return (t.__proto__ = e), t; + }), + _setPrototypeOf(t, e) + ); +} +var PrevArrow = (exports.PrevArrow = /*#__PURE__*/ (function( + _React$PureComponent +) { function PrevArrow() { _classCallCheck(this, PrevArrow); - return _super.apply(this, arguments); + return _callSuper(this, PrevArrow, arguments); } - _createClass(PrevArrow, [ + _inherits(PrevArrow, _React$PureComponent); + return _createClass(PrevArrow, [ { key: "clickHandler", value: function clickHandler(options, e) { @@ -278,17 +278,16 @@ var PrevArrow = /*#__PURE__*/ (function(_React$PureComponent) { } } ]); - return PrevArrow; -})(_react["default"].PureComponent); -exports.PrevArrow = PrevArrow; -var NextArrow = /*#__PURE__*/ (function(_React$PureComponent2) { - _inherits(NextArrow, _React$PureComponent2); - var _super2 = _createSuper(NextArrow); +})(_react["default"].PureComponent)); +var NextArrow = (exports.NextArrow = /*#__PURE__*/ (function( + _React$PureComponent2 +) { function NextArrow() { _classCallCheck(this, NextArrow); - return _super2.apply(this, arguments); + return _callSuper(this, NextArrow, arguments); } - _createClass(NextArrow, [ + _inherits(NextArrow, _React$PureComponent2); + return _createClass(NextArrow, [ { key: "clickHandler", value: function clickHandler(options, e) { @@ -371,6 +370,4 @@ var NextArrow = /*#__PURE__*/ (function(_React$PureComponent2) { } } ]); - return NextArrow; -})(_react["default"].PureComponent); -exports.NextArrow = NextArrow; +})(_react["default"].PureComponent)); diff --git a/lib/default-props.js b/lib/default-props.js index abb0b6025..2bb836991 100644 --- a/lib/default-props.js +++ b/lib/default-props.js @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _react = _interopRequireDefault(require("react")); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { default: e }; } var defaultProps = { accessibility: true, @@ -86,5 +86,4 @@ var defaultProps = { vertical: false, waitForAnimate: true }; -var _default = defaultProps; -exports["default"] = _default; +var _default = (exports["default"] = defaultProps); diff --git a/lib/dots.js b/lib/dots.js index 6b9b9a0ae..df0f6ebff 100644 --- a/lib/dots.js +++ b/lib/dots.js @@ -1,22 +1,22 @@ "use strict"; -function _typeof(obj) { +function _typeof(o) { "@babel/helpers - typeof"; return ( (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator - ? function(obj) { - return typeof obj; + ? function(o) { + return typeof o; } - : function(obj) { - return obj && + : function(o) { + return o && "function" == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype + o.constructor === Symbol && + o !== Symbol.prototype ? "symbol" - : typeof obj; + : typeof o; }), - _typeof(obj) + _typeof(o) ); } Object.defineProperty(exports, "__esModule", { @@ -26,147 +26,148 @@ exports.Dots = void 0; var _react = _interopRequireDefault(require("react")); var _classnames2 = _interopRequireDefault(require("classnames")); var _innerSliderUtils = require("./utils/innerSliderUtils"); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { default: e }; } -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); +function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); +function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { - Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) - ); + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } - return target; + return e; } -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; +function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); } -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { +function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); - } } -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); +function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + (o.enumerable = o.enumerable || !1), + (o.configurable = !0), + "value" in o && (o.writable = !0), + Object.defineProperty(e, _toPropertyKey(o.key), o); } } -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; +function _createClass(e, r, t) { + return ( + r && _defineProperties(e.prototype, r), + t && _defineProperties(e, t), + Object.defineProperty(e, "prototype", { writable: !1 }), + e + ); } -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { value: subClass, writable: true, configurable: true } - }); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) _setPrototypeOf(subClass, superClass); +function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; } -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); +function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); } -function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return _possibleConstructorReturn(this, result); - }; +function _callSuper(t, o, e) { + return ( + (o = _getPrototypeOf(o)), + _possibleConstructorReturn( + t, + _isNativeReflectConstruct() + ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) + : o.apply(t, e) + ) + ); } -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { +function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError( "Derived constructors may only return object or undefined" ); - } - return _assertThisInitialized(self); + return _assertThisInitialized(t); } -function _assertThisInitialized(self) { - if (self === void 0) { +function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); - } - return self; + return e; } function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call( + var t = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function() {}) ); - return true; - } catch (e) { - return false; - } + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); } -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); +function _getPrototypeOf(t) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf.bind() + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + _getPrototypeOf(t) + ); +} +function _inherits(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 } + })), + Object.defineProperty(t, "prototype", { writable: !1 }), + e && _setPrototypeOf(t, e); +} +function _setPrototypeOf(t, e) { + return ( + (_setPrototypeOf = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function(t, e) { + return (t.__proto__ = e), t; + }), + _setPrototypeOf(t, e) + ); } var getDotCount = function getDotCount(spec) { var dots; @@ -179,14 +180,13 @@ var getDotCount = function getDotCount(spec) { } return dots; }; -var Dots = /*#__PURE__*/ (function(_React$PureComponent) { - _inherits(Dots, _React$PureComponent); - var _super = _createSuper(Dots); +var Dots = (exports.Dots = /*#__PURE__*/ (function(_React$PureComponent) { function Dots() { _classCallCheck(this, Dots); - return _super.apply(this, arguments); + return _callSuper(this, Dots, arguments); } - _createClass(Dots, [ + _inherits(Dots, _React$PureComponent); + return _createClass(Dots, [ { key: "clickHandler", value: function clickHandler(options, e) { @@ -284,6 +284,4 @@ var Dots = /*#__PURE__*/ (function(_React$PureComponent) { } } ]); - return Dots; -})(_react["default"].PureComponent); -exports.Dots = Dots; +})(_react["default"].PureComponent)); diff --git a/lib/index.js b/lib/index.js index 856e96e35..7b37f5aaa 100644 --- a/lib/index.js +++ b/lib/index.js @@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _slider = _interopRequireDefault(require("./slider")); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { default: e }; } -var _default = _slider["default"]; -exports["default"] = _default; +var _default = (exports["default"] = _slider["default"]); diff --git a/lib/initial-state.js b/lib/initial-state.js index d15271b98..f09515b23 100644 --- a/lib/initial-state.js +++ b/lib/initial-state.js @@ -35,5 +35,4 @@ var initialState = { trackWidth: 0, targetSlide: 0 }; -var _default = initialState; -exports["default"] = _default; \ No newline at end of file +var _default = (exports["default"] = initialState); diff --git a/lib/inner-slider.js b/lib/inner-slider.js index 812af75f6..1ad0f318c 100644 --- a/lib/inner-slider.js +++ b/lib/inner-slider.js @@ -16,228 +16,219 @@ var _resizeObserverPolyfill = _interopRequireDefault( require("resize-observer-polyfill") ); var _excluded = ["animating"]; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { default: e }; } -function _typeof(obj) { +function _typeof(o) { "@babel/helpers - typeof"; return ( (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator - ? function(obj) { - return typeof obj; + ? function(o) { + return typeof o; } - : function(obj) { - return obj && + : function(o) { + return o && "function" == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype + o.constructor === Symbol && + o !== Symbol.prototype ? "symbol" - : typeof obj; + : typeof o; }), - _typeof(obj) + _typeof(o) ); } function _extends() { - _extends = Object.assign - ? Object.assign.bind() - : function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } + return ( + (_extends = Object.assign + ? Object.assign.bind() + : function(n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}.hasOwnProperty.call(t, r) && (n[r] = t[r])); } - } - return target; - }; - return _extends.apply(this, arguments); + return n; + }), + _extends.apply(null, arguments) + ); } -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = _objectWithoutPropertiesLoose(source, excluded); - var key, i; +function _objectWithoutProperties(e, t) { + if (null == e) return {}; + var o, + r, + i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } + var s = Object.getOwnPropertySymbols(e); + for (r = 0; r < s.length; r++) + (o = s[r]), + t.includes(o) || ({}.propertyIsEnumerable.call(e, o) && (i[o] = e[o])); } - return target; + return i; } -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; +function _objectWithoutPropertiesLoose(r, e) { + if (null == r) return {}; + var t = {}; + for (var n in r) + if ({}.hasOwnProperty.call(r, n)) { + if (e.includes(n)) continue; + t[n] = r[n]; + } + return t; } -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); +function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); +function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { - Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) - ); + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } - return target; + return e; } -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { +function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); - } } -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); +function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + (o.enumerable = o.enumerable || !1), + (o.configurable = !0), + "value" in o && (o.writable = !0), + Object.defineProperty(e, _toPropertyKey(o.key), o); } } -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { value: subClass, writable: true, configurable: true } - }); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); +function _createClass(e, r, t) { + return ( + r && _defineProperties(e.prototype, r), + t && _defineProperties(e, t), + Object.defineProperty(e, "prototype", { writable: !1 }), + e + ); } -function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return _possibleConstructorReturn(this, result); - }; +function _callSuper(t, o, e) { + return ( + (o = _getPrototypeOf(o)), + _possibleConstructorReturn( + t, + _isNativeReflectConstruct() + ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) + : o.apply(t, e) + ) + ); } -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { +function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError( "Derived constructors may only return object or undefined" ); - } - return _assertThisInitialized(self); + return _assertThisInitialized(t); } -function _assertThisInitialized(self) { - if (self === void 0) { +function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); - } - return self; + return e; } function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call( + var t = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function() {}) ); - return true; - } catch (e) { - return false; - } + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); } -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); +function _getPrototypeOf(t) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf.bind() + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + _getPrototypeOf(t) + ); } -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; +function _inherits(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 } + })), + Object.defineProperty(t, "prototype", { writable: !1 }), + e && _setPrototypeOf(t, e); +} +function _setPrototypeOf(t, e) { + return ( + (_setPrototypeOf = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function(t, e) { + return (t.__proto__ = e), t; + }), + _setPrototypeOf(t, e) + ); +} +function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); +} +function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; +} +function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); } - return obj; + return ("string" === r ? String : Number)(t); } -var InnerSlider = /*#__PURE__*/ (function(_React$Component) { - _inherits(InnerSlider, _React$Component); - var _super = _createSuper(InnerSlider); +var InnerSlider = (exports.InnerSlider = /*#__PURE__*/ (function( + _React$Component +) { function InnerSlider(props) { var _this; _classCallCheck(this, InnerSlider); - _this = _super.call(this, props); - _defineProperty(_assertThisInitialized(_this), "listRefHandler", function( - ref - ) { + _this = _callSuper(this, InnerSlider, [props]); + _defineProperty(_this, "listRefHandler", function(ref) { return (_this.list = ref); }); - _defineProperty(_assertThisInitialized(_this), "trackRefHandler", function( - ref - ) { + _defineProperty(_this, "trackRefHandler", function(ref) { return (_this.track = ref); }); - _defineProperty(_assertThisInitialized(_this), "adaptHeight", function() { + _defineProperty(_this, "adaptHeight", function() { if (_this.props.adaptiveHeight && _this.list) { var elem = _this.list.querySelector( '[data-index="'.concat(_this.state.currentSlide, '"]') @@ -245,167 +236,151 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { _this.list.style.height = (0, _innerSliderUtils.getHeight)(elem) + "px"; } }); - _defineProperty( - _assertThisInitialized(_this), - "componentDidMount", - function() { - _this.props.onInit && _this.props.onInit(); - if (_this.props.lazyLoad) { - var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)( - _objectSpread(_objectSpread({}, _this.props), _this.state) - ); - if (slidesToLoad.length > 0) { - _this.setState(function(prevState) { - return { - lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad) - }; - }); - if (_this.props.onLazyLoad) { - _this.props.onLazyLoad(slidesToLoad); - } - } - } - var spec = _objectSpread( - { - listRef: _this.list, - trackRef: _this.track - }, - _this.props + _defineProperty(_this, "componentDidMount", function() { + _this.props.onInit && _this.props.onInit(); + if (_this.props.lazyLoad) { + var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)( + _objectSpread(_objectSpread({}, _this.props), _this.state) ); - _this.updateState(spec, true, function() { - _this.adaptHeight(); - _this.props.autoplay && _this.autoPlay("update"); - }); - if (_this.props.lazyLoad === "progressive") { - _this.lazyLoadTimer = setInterval(_this.progressiveLazyLoad, 1000); - } - _this.ro = new _resizeObserverPolyfill["default"](function() { - if (_this.state.animating) { - _this.onWindowResized(false); // don't set trackStyle hence don't break animation - _this.callbackTimers.push( - setTimeout(function() { - return _this.onWindowResized(); - }, _this.props.speed) - ); - } else { - _this.onWindowResized(); + if (slidesToLoad.length > 0) { + _this.setState(function(prevState) { + return { + lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad) + }; + }); + if (_this.props.onLazyLoad) { + _this.props.onLazyLoad(slidesToLoad); } - }); - _this.ro.observe(_this.list); - document.querySelectorAll && - Array.prototype.forEach.call( - document.querySelectorAll(".slick-slide"), - function(slide) { - slide.onfocus = _this.props.pauseOnFocus - ? _this.onSlideFocus - : null; - slide.onblur = _this.props.pauseOnFocus - ? _this.onSlideBlur - : null; - } + } + } + var spec = _objectSpread( + { + listRef: _this.list, + trackRef: _this.track + }, + _this.props + ); + _this.updateState(spec, true, function() { + _this.adaptHeight(); + _this.props.autoplay && _this.autoPlay("update"); + }); + if (_this.props.lazyLoad === "progressive") { + _this.lazyLoadTimer = setInterval(_this.progressiveLazyLoad, 1000); + } + _this.ro = new _resizeObserverPolyfill["default"](function() { + if (_this.state.animating) { + _this.onWindowResized(false); // don't set trackStyle hence don't break animation + _this.callbackTimers.push( + setTimeout(function() { + return _this.onWindowResized(); + }, _this.props.speed) ); - if (window.addEventListener) { - window.addEventListener("resize", _this.onWindowResized); } else { - window.attachEvent("onresize", _this.onWindowResized); + _this.onWindowResized(); } + }); + _this.ro.observe(_this.list); + document.querySelectorAll && + Array.prototype.forEach.call( + document.querySelectorAll(".slick-slide"), + function(slide) { + slide.onfocus = _this.props.pauseOnFocus + ? _this.onSlideFocus + : null; + slide.onblur = _this.props.pauseOnFocus ? _this.onSlideBlur : null; + } + ); + if (window.addEventListener) { + window.addEventListener("resize", _this.onWindowResized); + } else { + window.attachEvent("onresize", _this.onWindowResized); } - ); - _defineProperty( - _assertThisInitialized(_this), - "componentWillUnmount", - function() { - if (_this.animationEndCallback) { - clearTimeout(_this.animationEndCallback); - } - if (_this.lazyLoadTimer) { - clearInterval(_this.lazyLoadTimer); - } - if (_this.callbackTimers.length) { - _this.callbackTimers.forEach(function(timer) { - return clearTimeout(timer); + }); + _defineProperty(_this, "componentWillUnmount", function() { + if (_this.animationEndCallback) { + clearTimeout(_this.animationEndCallback); + } + if (_this.lazyLoadTimer) { + clearInterval(_this.lazyLoadTimer); + } + if (_this.callbackTimers.length) { + _this.callbackTimers.forEach(function(timer) { + return clearTimeout(timer); + }); + _this.callbackTimers = []; + } + if (window.addEventListener) { + window.removeEventListener("resize", _this.onWindowResized); + } else { + window.detachEvent("onresize", _this.onWindowResized); + } + if (_this.autoplayTimer) { + clearInterval(_this.autoplayTimer); + } + _this.ro.disconnect(); + }); + _defineProperty(_this, "componentDidUpdate", function(prevProps) { + _this.checkImagesLoad(); + _this.props.onReInit && _this.props.onReInit(); + if (_this.props.lazyLoad) { + var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)( + _objectSpread(_objectSpread({}, _this.props), _this.state) + ); + if (slidesToLoad.length > 0) { + _this.setState(function(prevState) { + return { + lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad) + }; }); - _this.callbackTimers = []; - } - if (window.addEventListener) { - window.removeEventListener("resize", _this.onWindowResized); - } else { - window.detachEvent("onresize", _this.onWindowResized); - } - if (_this.autoplayTimer) { - clearInterval(_this.autoplayTimer); + if (_this.props.onLazyLoad) { + _this.props.onLazyLoad(slidesToLoad); + } } - _this.ro.disconnect(); } - ); - _defineProperty( - _assertThisInitialized(_this), - "componentDidUpdate", - function(prevProps) { - _this.checkImagesLoad(); - _this.props.onReInit && _this.props.onReInit(); - if (_this.props.lazyLoad) { - var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)( - _objectSpread(_objectSpread({}, _this.props), _this.state) - ); - if (slidesToLoad.length > 0) { - _this.setState(function(prevState) { - return { - lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad) - }; + // if (this.props.onLazyLoad) { + // this.props.onLazyLoad([leftMostSlide]) + // } + _this.adaptHeight(); + var spec = _objectSpread( + _objectSpread( + { + listRef: _this.list, + trackRef: _this.track + }, + _this.props + ), + _this.state + ); + var setTrackStyle = _this.didPropsChange(prevProps); + setTrackStyle && + _this.updateState(spec, setTrackStyle, function() { + if ( + _this.state.currentSlide >= + _react["default"].Children.count(_this.props.children) + ) { + _this.changeSlide({ + message: "index", + index: + _react["default"].Children.count(_this.props.children) - + _this.props.slidesToShow, + currentSlide: _this.state.currentSlide }); - if (_this.props.onLazyLoad) { - _this.props.onLazyLoad(slidesToLoad); - } } - } - // if (this.props.onLazyLoad) { - // this.props.onLazyLoad([leftMostSlide]) - // } - _this.adaptHeight(); - var spec = _objectSpread( - _objectSpread( - { - listRef: _this.list, - trackRef: _this.track - }, - _this.props - ), - _this.state - ); - var setTrackStyle = _this.didPropsChange(prevProps); - setTrackStyle && - _this.updateState(spec, setTrackStyle, function() { - if ( - _this.state.currentSlide >= - _react["default"].Children.count(_this.props.children) - ) { - _this.changeSlide({ - message: "index", - index: - _react["default"].Children.count(_this.props.children) - - _this.props.slidesToShow, - currentSlide: _this.state.currentSlide - }); - } - if (_this.props.autoplay) { - _this.autoPlay("update"); - } else { - _this.pause("paused"); - } - }); - } - ); - _defineProperty(_assertThisInitialized(_this), "onWindowResized", function( - setTrackStyle - ) { + if (_this.props.autoplay) { + _this.autoPlay("update"); + } else { + _this.pause("paused"); + } + }); + }); + _defineProperty(_this, "onWindowResized", function(setTrackStyle) { if (_this.debouncedResize) _this.debouncedResize.cancel(); _this.debouncedResize = (0, _lodash["default"])(function() { return _this.resizeWindow(setTrackStyle); }, 50); _this.debouncedResize(); }); - _defineProperty(_assertThisInitialized(_this), "resizeWindow", function() { + _defineProperty(_this, "resizeWindow", function() { var setTrackStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] @@ -434,7 +409,7 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { clearTimeout(_this.animationEndCallback); delete _this.animationEndCallback; }); - _defineProperty(_assertThisInitialized(_this), "updateState", function( + _defineProperty(_this, "updateState", function( spec, setTrackStyle, callback @@ -465,7 +440,7 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { } _this.setState(updatedState, callback); }); - _defineProperty(_assertThisInitialized(_this), "ssrInit", function() { + _defineProperty(_this, "ssrInit", function() { if (_this.props.variableWidth) { var _trackWidth = 0, _trackLeft = 0; @@ -553,102 +528,92 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { trackStyle: trackStyle }; }); - _defineProperty( - _assertThisInitialized(_this), - "checkImagesLoad", - function() { - var images = - (_this.list && - _this.list.querySelectorAll && - _this.list.querySelectorAll(".slick-slide img")) || - []; - var imagesCount = images.length, - loadedCount = 0; - Array.prototype.forEach.call(images, function(image) { - var handler = function handler() { - return ( - ++loadedCount && - loadedCount >= imagesCount && - _this.onWindowResized() - ); + _defineProperty(_this, "checkImagesLoad", function() { + var images = + (_this.list && + _this.list.querySelectorAll && + _this.list.querySelectorAll(".slick-slide img")) || + []; + var imagesCount = images.length, + loadedCount = 0; + Array.prototype.forEach.call(images, function(image) { + var handler = function handler() { + return ( + ++loadedCount && + loadedCount >= imagesCount && + _this.onWindowResized() + ); + }; + if (!image.onclick) { + image.onclick = function() { + return image.parentNode.focus(); + }; + } else { + var prevClickHandler = image.onclick; + image.onclick = function(e) { + prevClickHandler(e); + image.parentNode.focus(); }; - if (!image.onclick) { - image.onclick = function() { - return image.parentNode.focus(); + } + if (!image.onload) { + if (_this.props.lazyLoad) { + image.onload = function() { + _this.adaptHeight(); + _this.callbackTimers.push( + setTimeout(_this.onWindowResized, _this.props.speed) + ); }; } else { - var prevClickHandler = image.onclick; - image.onclick = function(e) { - prevClickHandler(e); - image.parentNode.focus(); + image.onload = handler; + image.onerror = function() { + handler(); + _this.props.onLazyLoadError && _this.props.onLazyLoadError(); }; } - if (!image.onload) { - if (_this.props.lazyLoad) { - image.onload = function() { - _this.adaptHeight(); - _this.callbackTimers.push( - setTimeout(_this.onWindowResized, _this.props.speed) - ); - }; - } else { - image.onload = handler; - image.onerror = function() { - handler(); - _this.props.onLazyLoadError && _this.props.onLazyLoadError(); - }; - } - } - }); + } + }); + }); + _defineProperty(_this, "progressiveLazyLoad", function() { + var slidesToLoad = []; + var spec = _objectSpread(_objectSpread({}, _this.props), _this.state); + for ( + var index = _this.state.currentSlide; + index < + _this.state.slideCount + (0, _innerSliderUtils.getPostClones)(spec); + index++ + ) { + if (_this.state.lazyLoadedList.indexOf(index) < 0) { + slidesToLoad.push(index); + break; + } } - ); - _defineProperty( - _assertThisInitialized(_this), - "progressiveLazyLoad", - function() { - var slidesToLoad = []; - var spec = _objectSpread(_objectSpread({}, _this.props), _this.state); - for ( - var index = _this.state.currentSlide; - index < - _this.state.slideCount + (0, _innerSliderUtils.getPostClones)(spec); - index++ - ) { - if (_this.state.lazyLoadedList.indexOf(index) < 0) { - slidesToLoad.push(index); - break; - } + for ( + var _index = _this.state.currentSlide - 1; + _index >= -(0, _innerSliderUtils.getPreClones)(spec); + _index-- + ) { + if (_this.state.lazyLoadedList.indexOf(_index) < 0) { + slidesToLoad.push(_index); + break; } - for ( - var _index = _this.state.currentSlide - 1; - _index >= -(0, _innerSliderUtils.getPreClones)(spec); - _index-- - ) { - if (_this.state.lazyLoadedList.indexOf(_index) < 0) { - slidesToLoad.push(_index); - break; - } + } + if (slidesToLoad.length > 0) { + _this.setState(function(state) { + return { + lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad) + }; + }); + if (_this.props.onLazyLoad) { + _this.props.onLazyLoad(slidesToLoad); } - if (slidesToLoad.length > 0) { - _this.setState(function(state) { - return { - lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad) - }; - }); - if (_this.props.onLazyLoad) { - _this.props.onLazyLoad(slidesToLoad); - } - } else { - if (_this.lazyLoadTimer) { - clearInterval(_this.lazyLoadTimer); - delete _this.lazyLoadTimer; - } + } else { + if (_this.lazyLoadTimer) { + clearInterval(_this.lazyLoadTimer); + delete _this.lazyLoadTimer; } } - ); - _defineProperty(_assertThisInitialized(_this), "slideHandler", function( - index - ) { + }); + _defineProperty(_this, "slideHandler", function(index) { var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] @@ -716,9 +681,7 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { }, speed); }); }); - _defineProperty(_assertThisInitialized(_this), "changeSlide", function( - options - ) { + _defineProperty(_this, "changeSlide", function(options) { var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] @@ -737,14 +700,14 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { nodes[0] && nodes[0].focus(); } }); - _defineProperty(_assertThisInitialized(_this), "clickHandler", function(e) { + _defineProperty(_this, "clickHandler", function(e) { if (_this.clickable === false) { e.stopPropagation(); e.preventDefault(); } _this.clickable = true; }); - _defineProperty(_assertThisInitialized(_this), "keyHandler", function(e) { + _defineProperty(_this, "keyHandler", function(e) { var dir = (0, _innerSliderUtils.keyHandler)( e, _this.props.accessibility, @@ -755,31 +718,21 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { message: dir }); }); - _defineProperty(_assertThisInitialized(_this), "selectHandler", function( - options - ) { + _defineProperty(_this, "selectHandler", function(options) { _this.changeSlide(options); }); - _defineProperty( - _assertThisInitialized(_this), - "disableBodyScroll", - function() { - var preventDefault = function preventDefault(e) { - e = e || window.event; - if (e.preventDefault) e.preventDefault(); - e.returnValue = false; - }; - window.ontouchmove = preventDefault; - } - ); - _defineProperty( - _assertThisInitialized(_this), - "enableBodyScroll", - function() { - window.ontouchmove = null; - } - ); - _defineProperty(_assertThisInitialized(_this), "swipeStart", function(e) { + _defineProperty(_this, "disableBodyScroll", function() { + var preventDefault = function preventDefault(e) { + e = e || window.event; + if (e.preventDefault) e.preventDefault(); + e.returnValue = false; + }; + window.ontouchmove = preventDefault; + }); + _defineProperty(_this, "enableBodyScroll", function() { + window.ontouchmove = null; + }); + _defineProperty(_this, "swipeStart", function(e) { if (_this.props.verticalSwiping) { _this.disableBodyScroll(); } @@ -790,7 +743,7 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { ); state !== "" && _this.setState(state); }); - _defineProperty(_assertThisInitialized(_this), "swipeMove", function(e) { + _defineProperty(_this, "swipeMove", function(e) { var state = (0, _innerSliderUtils.swipeMove)( e, _objectSpread( @@ -809,7 +762,7 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { } _this.setState(state); }); - _defineProperty(_assertThisInitialized(_this), "swipeEnd", function(e) { + _defineProperty(_this, "swipeEnd", function(e) { var state = (0, _innerSliderUtils.swipeEnd)( e, _objectSpread( @@ -832,11 +785,11 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { _this.enableBodyScroll(); } }); - _defineProperty(_assertThisInitialized(_this), "touchEnd", function(e) { + _defineProperty(_this, "touchEnd", function(e) { _this.swipeEnd(e); _this.clickable = true; }); - _defineProperty(_assertThisInitialized(_this), "slickPrev", function() { + _defineProperty(_this, "slickPrev", function() { // this and fellow methods are wrapped in setTimeout // to make sure initialize setState has happened before // any of such methods are called @@ -848,7 +801,7 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { }, 0) ); }); - _defineProperty(_assertThisInitialized(_this), "slickNext", function() { + _defineProperty(_this, "slickNext", function() { _this.callbackTimers.push( setTimeout(function() { return _this.changeSlide({ @@ -857,9 +810,7 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { }, 0) ); }); - _defineProperty(_assertThisInitialized(_this), "slickGoTo", function( - slide - ) { + _defineProperty(_this, "slickGoTo", function(slide) { var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] @@ -879,7 +830,7 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { }, 0) ); }); - _defineProperty(_assertThisInitialized(_this), "play", function() { + _defineProperty(_this, "play", function() { var nextIndex; if (_this.props.rtl) { nextIndex = _this.state.currentSlide - _this.props.slidesToScroll; @@ -896,9 +847,7 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { } _this.slideHandler(nextIndex); }); - _defineProperty(_assertThisInitialized(_this), "autoPlay", function( - playType - ) { + _defineProperty(_this, "autoPlay", function(playType) { if (_this.autoplayTimer) { clearInterval(_this.autoplayTimer); } @@ -928,9 +877,7 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { autoplaying: "playing" }); }); - _defineProperty(_assertThisInitialized(_this), "pause", function( - pauseType - ) { + _defineProperty(_this, "pause", function(pauseType) { if (_this.autoplayTimer) { clearInterval(_this.autoplayTimer); _this.autoplayTimer = null; @@ -955,37 +902,37 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { } } }); - _defineProperty(_assertThisInitialized(_this), "onDotsOver", function() { + _defineProperty(_this, "onDotsOver", function() { return _this.props.autoplay && _this.pause("hovered"); }); - _defineProperty(_assertThisInitialized(_this), "onDotsLeave", function() { + _defineProperty(_this, "onDotsLeave", function() { return ( _this.props.autoplay && _this.state.autoplaying === "hovered" && _this.autoPlay("leave") ); }); - _defineProperty(_assertThisInitialized(_this), "onTrackOver", function() { + _defineProperty(_this, "onTrackOver", function() { return _this.props.autoplay && _this.pause("hovered"); }); - _defineProperty(_assertThisInitialized(_this), "onTrackLeave", function() { + _defineProperty(_this, "onTrackLeave", function() { return ( _this.props.autoplay && _this.state.autoplaying === "hovered" && _this.autoPlay("leave") ); }); - _defineProperty(_assertThisInitialized(_this), "onSlideFocus", function() { + _defineProperty(_this, "onSlideFocus", function() { return _this.props.autoplay && _this.pause("focused"); }); - _defineProperty(_assertThisInitialized(_this), "onSlideBlur", function() { + _defineProperty(_this, "onSlideBlur", function() { return ( _this.props.autoplay && _this.state.autoplaying === "focused" && _this.autoPlay("blur") ); }); - _defineProperty(_assertThisInitialized(_this), "render", function() { + _defineProperty(_this, "render", function() { var _this$props$classes, _this$props$classes2; var className = (0, _classnames["default"])( "slick-slider", @@ -1207,7 +1154,8 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { _this.state = _objectSpread(_objectSpread({}, _this.state), ssrState); return _this; } - _createClass(InnerSlider, [ + _inherits(InnerSlider, _React$Component); + return _createClass(InnerSlider, [ { key: "didPropsChange", value: function didPropsChange(prevProps) { @@ -1241,6 +1189,4 @@ var InnerSlider = /*#__PURE__*/ (function(_React$Component) { } } ]); - return InnerSlider; -})(_react["default"].Component); -exports.InnerSlider = InnerSlider; +})(_react["default"].Component)); diff --git a/lib/slider.js b/lib/slider.js index 3d4da5261..6b74ab076 100644 --- a/lib/slider.js +++ b/lib/slider.js @@ -1,24 +1,5 @@ "use strict"; -function _typeof(obj) { - "@babel/helpers - typeof"; - return ( - (_typeof = - "function" == typeof Symbol && "symbol" == typeof Symbol.iterator - ? function(obj) { - return typeof obj; - } - : function(obj) { - return obj && - "function" == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype - ? "symbol" - : typeof obj; - }), - _typeof(obj) - ); -} Object.defineProperty(exports, "__esModule", { value: true }); @@ -28,198 +9,208 @@ var _innerSlider = require("./inner-slider"); var _json2mq = _interopRequireDefault(require("json2mq")); var _defaultProps = _interopRequireDefault(require("./default-props")); var _innerSliderUtils = require("./utils/innerSliderUtils"); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { default: e }; +} +function _typeof(o) { + "@babel/helpers - typeof"; + return ( + (_typeof = + "function" == typeof Symbol && "symbol" == typeof Symbol.iterator + ? function(o) { + return typeof o; + } + : function(o) { + return o && + "function" == typeof Symbol && + o.constructor === Symbol && + o !== Symbol.prototype + ? "symbol" + : typeof o; + }), + _typeof(o) + ); } function _extends() { - _extends = Object.assign - ? Object.assign.bind() - : function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } + return ( + (_extends = Object.assign + ? Object.assign.bind() + : function(n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}.hasOwnProperty.call(t, r) && (n[r] = t[r])); } - } - return target; - }; - return _extends.apply(this, arguments); + return n; + }), + _extends.apply(null, arguments) + ); } -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); +function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); +function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { - Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) - ); + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } - return target; + return e; } -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { +function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); - } -} -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } } -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); +function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + (o.enumerable = o.enumerable || !1), + (o.configurable = !0), + "value" in o && (o.writable = !0), + Object.defineProperty(e, _toPropertyKey(o.key), o); } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { value: subClass, writable: true, configurable: true } - }); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); +function _createClass(e, r, t) { + return ( + r && _defineProperties(e.prototype, r), + t && _defineProperties(e, t), + Object.defineProperty(e, "prototype", { writable: !1 }), + e + ); } -function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return _possibleConstructorReturn(this, result); - }; +function _callSuper(t, o, e) { + return ( + (o = _getPrototypeOf(o)), + _possibleConstructorReturn( + t, + _isNativeReflectConstruct() + ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) + : o.apply(t, e) + ) + ); } -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { +function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError( "Derived constructors may only return object or undefined" ); - } - return _assertThisInitialized(self); + return _assertThisInitialized(t); } -function _assertThisInitialized(self) { - if (self === void 0) { +function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); - } - return self; + return e; } function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call( + var t = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function() {}) ); - return true; - } catch (e) { - return false; - } + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); } -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); +function _getPrototypeOf(t) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf.bind() + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + _getPrototypeOf(t) + ); } -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; +function _inherits(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 } + })), + Object.defineProperty(t, "prototype", { writable: !1 }), + e && _setPrototypeOf(t, e); +} +function _setPrototypeOf(t, e) { + return ( + (_setPrototypeOf = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function(t, e) { + return (t.__proto__ = e), t; + }), + _setPrototypeOf(t, e) + ); +} +function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); +} +function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; +} +function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); } - return obj; + return ("string" === r ? String : Number)(t); } var enquire = (0, _innerSliderUtils.canUseDOM)() && require("enquire.js"); -var Slider = /*#__PURE__*/ (function(_React$Component) { - _inherits(Slider, _React$Component); - var _super = _createSuper(Slider); +var Slider = (exports["default"] = /*#__PURE__*/ (function(_React$Component) { function Slider(props) { var _this; _classCallCheck(this, Slider); - _this = _super.call(this, props); - _defineProperty( - _assertThisInitialized(_this), - "innerSliderRefHandler", - function(ref) { - return (_this.innerSlider = ref); - } - ); - _defineProperty(_assertThisInitialized(_this), "slickPrev", function() { + _this = _callSuper(this, Slider, [props]); + _defineProperty(_this, "innerSliderRefHandler", function(ref) { + return (_this.innerSlider = ref); + }); + _defineProperty(_this, "slickPrev", function() { return _this.innerSlider.slickPrev(); }); - _defineProperty(_assertThisInitialized(_this), "slickNext", function() { + _defineProperty(_this, "slickNext", function() { return _this.innerSlider.slickNext(); }); - _defineProperty(_assertThisInitialized(_this), "slickGoTo", function( - slide - ) { + _defineProperty(_this, "slickGoTo", function(slide) { var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; return _this.innerSlider.slickGoTo(slide, dontAnimate); }); - _defineProperty(_assertThisInitialized(_this), "slickPause", function() { + _defineProperty(_this, "slickPause", function() { return _this.innerSlider.pause("paused"); }); - _defineProperty(_assertThisInitialized(_this), "slickPlay", function() { + _defineProperty(_this, "slickPlay", function() { return _this.innerSlider.autoPlay("play"); }); _this.state = { @@ -228,7 +219,8 @@ var Slider = /*#__PURE__*/ (function(_React$Component) { _this._responsiveMediaHandlers = []; return _this; } - _createClass(Slider, [ + _inherits(Slider, _React$Component); + return _createClass(Slider, [ { key: "media", value: function media(query, handler) { @@ -488,6 +480,4 @@ var Slider = /*#__PURE__*/ (function(_React$Component) { } } ]); - return Slider; -})(_react["default"].Component); -exports["default"] = Slider; +})(_react["default"].Component)); diff --git a/lib/track.js b/lib/track.js index 7d4e48ae3..48b93df23 100644 --- a/lib/track.js +++ b/lib/track.js @@ -1,192 +1,191 @@ "use strict"; -function _typeof(obj) { +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Track = void 0; +var _react = _interopRequireDefault(require("react")); +var _classnames = _interopRequireDefault(require("classnames")); +var _innerSliderUtils = require("./utils/innerSliderUtils"); +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { default: e }; +} +function _typeof(o) { "@babel/helpers - typeof"; return ( (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator - ? function(obj) { - return typeof obj; + ? function(o) { + return typeof o; } - : function(obj) { - return obj && + : function(o) { + return o && "function" == typeof Symbol && - obj.constructor === Symbol && - obj !== Symbol.prototype + o.constructor === Symbol && + o !== Symbol.prototype ? "symbol" - : typeof obj; + : typeof o; }), - _typeof(obj) + _typeof(o) ); } -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.Track = void 0; -var _react = _interopRequireDefault(require("react")); -var _classnames = _interopRequireDefault(require("classnames")); -var _innerSliderUtils = require("./utils/innerSliderUtils"); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; -} function _extends() { - _extends = Object.assign - ? Object.assign.bind() - : function(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } + return ( + (_extends = Object.assign + ? Object.assign.bind() + : function(n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}.hasOwnProperty.call(t, r) && (n[r] = t[r])); } - } - return target; - }; - return _extends.apply(this, arguments); + return n; + }), + _extends.apply(null, arguments) + ); } -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { +function _classCallCheck(a, n) { + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); - } -} -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } } -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { writable: false }); - return Constructor; -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); +function _defineProperties(e, r) { + for (var t = 0; t < r.length; t++) { + var o = r[t]; + (o.enumerable = o.enumerable || !1), + (o.configurable = !0), + "value" in o && (o.writable = !0), + Object.defineProperty(e, _toPropertyKey(o.key), o); } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { value: subClass, writable: true, configurable: true } - }); - Object.defineProperty(subClass, "prototype", { writable: false }); - if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); +function _createClass(e, r, t) { + return ( + r && _defineProperties(e.prototype, r), + t && _defineProperties(e, t), + Object.defineProperty(e, "prototype", { writable: !1 }), + e + ); } -function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return _possibleConstructorReturn(this, result); - }; +function _callSuper(t, o, e) { + return ( + (o = _getPrototypeOf(o)), + _possibleConstructorReturn( + t, + _isNativeReflectConstruct() + ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) + : o.apply(t, e) + ) + ); } -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { +function _possibleConstructorReturn(t, e) { + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; + if (void 0 !== e) throw new TypeError( "Derived constructors may only return object or undefined" ); - } - return _assertThisInitialized(self); + return _assertThisInitialized(t); } -function _assertThisInitialized(self) { - if (self === void 0) { +function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError( "this hasn't been initialised - super() hasn't been called" ); - } - return self; + return e; } function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call( + var t = !Boolean.prototype.valueOf.call( Reflect.construct(Boolean, [], function() {}) ); - return true; - } catch (e) { - return false; - } + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); +} +function _getPrototypeOf(t) { + return ( + (_getPrototypeOf = Object.setPrototypeOf + ? Object.getPrototypeOf.bind() + : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }), + _getPrototypeOf(t) + ); +} +function _inherits(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 } + })), + Object.defineProperty(t, "prototype", { writable: !1 }), + e && _setPrototypeOf(t, e); } -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); +function _setPrototypeOf(t, e) { + return ( + (_setPrototypeOf = Object.setPrototypeOf + ? Object.setPrototypeOf.bind() + : function(t, e) { + return (t.__proto__ = e), t; + }), + _setPrototypeOf(t, e) + ); } -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); +function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); +function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { - Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) - ); + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } - return target; + return e; } -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; +function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); +} +function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; +} +function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); } - return obj; + return ("string" === r ? String : Number)(t); } // given specifications/props for a slide, fetch all the classes that need to be applied to the slide var getSlideClasses = function getSlideClasses(spec) { - var _spec$classes, _spec$classes2, _ref; + var _spec$classes, _spec$classes2; var slickActive, slickCenter, slickCloned; var centerOffset, index; if (spec.rtl) { @@ -218,15 +217,14 @@ var getSlideClasses = function getSlideClasses(spec) { focusedSlide = spec.targetSlide; } var slickCurrent = index === focusedSlide; - return ( - (_ref = { - "slick-slide": true, - "slick-active": slickActive, - "slick-center": slickCenter, - "slick-cloned": slickCloned - }), + return _defineProperty( _defineProperty( - _ref, + { + "slick-slide": true, + "slick-active": slickActive, + "slick-center": slickCenter, + "slick-cloned": slickCloned + }, "slick-cloned ".concat( (_spec$classes = spec.classes) === null || _spec$classes === void 0 ? void 0 @@ -237,8 +235,8 @@ var getSlideClasses = function getSlideClasses(spec) { ? void 0 : _spec$classes2.cloned) ), - _defineProperty(_ref, "slick-current", slickCurrent), - _ref + "slick-current", + slickCurrent ); }; var getSlideStyle = function getSlideStyle(spec) { @@ -455,9 +453,7 @@ var renderSlides = function renderSlides(spec) { return preCloneSlides.concat(slides, postCloneSlides); } }; -var Track = /*#__PURE__*/ (function(_React$PureComponent) { - _inherits(Track, _React$PureComponent); - var _super = _createSuper(Track); +var Track = (exports.Track = /*#__PURE__*/ (function(_React$PureComponent) { function Track() { var _this; _classCallCheck(this, Track); @@ -468,14 +464,15 @@ var Track = /*#__PURE__*/ (function(_React$PureComponent) { ) { args[_key] = arguments[_key]; } - _this = _super.call.apply(_super, [this].concat(args)); - _defineProperty(_assertThisInitialized(_this), "node", null); - _defineProperty(_assertThisInitialized(_this), "handleRef", function(ref) { + _this = _callSuper(this, Track, [].concat(args)); + _defineProperty(_this, "node", null); + _defineProperty(_this, "handleRef", function(ref) { _this.node = ref; }); return _this; } - _createClass(Track, [ + _inherits(Track, _React$PureComponent); + return _createClass(Track, [ { key: "render", value: function render() { @@ -511,6 +508,4 @@ var Track = /*#__PURE__*/ (function(_React$PureComponent) { } } ]); - return Track; -})(_react["default"].PureComponent); -exports.Track = Track; +})(_react["default"].PureComponent)); diff --git a/lib/utils/innerSliderUtils.js b/lib/utils/innerSliderUtils.js index 03b92d919..46f5e15dd 100644 --- a/lib/utils/innerSliderUtils.js +++ b/lib/utils/innerSliderUtils.js @@ -7,67 +7,96 @@ exports.checkSpecKeys = exports.checkNavigable = exports.changeSlide = exports.c exports.clamp = clamp; exports.swipeStart = exports.swipeMove = exports.swipeEnd = exports.slidesOnRight = exports.slidesOnLeft = exports.slideHandler = exports.siblingDirection = exports.safePreventDefault = exports.lazyStartIndex = exports.lazySlidesOnRight = exports.lazySlidesOnLeft = exports.lazyEndIndex = exports.keyHandler = exports.initializedState = exports.getWidth = exports.getTrackLeft = exports.getTrackCSS = exports.getTrackAnimateCSS = exports.getTotalSlides = exports.getSwipeDirection = exports.getSlideCount = exports.getRequiredLazySlides = exports.getPreClones = exports.getPostClones = exports.getOnDemandLazySlides = exports.getNavigableIndexes = exports.getHeight = exports.extractObject = void 0; var _react = _interopRequireDefault(require("react")); -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; +function _interopRequireDefault(e) { + return e && e.__esModule ? e : { default: e }; } -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); +function _typeof(o) { + "@babel/helpers - typeof"; + return ( + (_typeof = + "function" == typeof Symbol && "symbol" == typeof Symbol.iterator + ? function(o) { + return typeof o; + } + : function(o) { + return o && + "function" == typeof Symbol && + o.constructor === Symbol && + o !== Symbol.prototype + ? "symbol" + : typeof o; + }), + _typeof(o) + ); +} +function ownKeys(e, r) { + var t = Object.keys(e); if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && - (symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; + var o = Object.getOwnPropertySymbols(e); + r && + (o = o.filter(function(r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; })), - keys.push.apply(keys, symbols); + t.push.apply(t, o); } - return keys; + return t; } -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 - ? ownKeys(Object(source), !0).forEach(function(key) { - _defineProperty(target, key, source[key]); +function _objectSpread(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 + ? ownKeys(Object(t), !0).forEach(function(r) { + _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties( - target, - Object.getOwnPropertyDescriptors(source) - ) - : ownKeys(Object(source)).forEach(function(key) { - Object.defineProperty( - target, - key, - Object.getOwnPropertyDescriptor(source, key) - ); + ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) + : ownKeys(Object(t)).forEach(function(r) { + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } - return target; + return e; } -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; +function _defineProperty(e, r, t) { + return ( + (r = _toPropertyKey(r)) in e + ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) + : (e[r] = t), + e + ); +} +function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == _typeof(i) ? i : i + ""; +} +function _toPrimitive(t, r) { + if ("object" != _typeof(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != _typeof(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); } - return obj; + return ("string" === r ? String : Number)(t); } function clamp(number, lowerBound, upperBound) { return Math.max(lowerBound, Math.min(number, upperBound)); } -var safePreventDefault = function safePreventDefault(event) { +var safePreventDefault = (exports.safePreventDefault = function safePreventDefault( + event +) { var passiveEvents = ["onTouchStart", "onTouchMove", "onWheel"]; if (!passiveEvents.includes(event._reactName)) { event.preventDefault(); } -}; -exports.safePreventDefault = safePreventDefault; -var getOnDemandLazySlides = function getOnDemandLazySlides(spec) { +}); +var getOnDemandLazySlides = (exports.getOnDemandLazySlides = function getOnDemandLazySlides( + spec +) { var onDemandSlides = []; var startIndex = lazyStartIndex(spec); var endIndex = lazyEndIndex(spec); @@ -77,11 +106,12 @@ var getOnDemandLazySlides = function getOnDemandLazySlides(spec) { } } return onDemandSlides; -}; +}); // return list of slides that need to be present -exports.getOnDemandLazySlides = getOnDemandLazySlides; -var getRequiredLazySlides = function getRequiredLazySlides(spec) { +var getRequiredLazySlides = (exports.getRequiredLazySlides = function getRequiredLazySlides( + spec +) { var requiredSlides = []; var startIndex = lazyStartIndex(spec); var endIndex = lazyEndIndex(spec); @@ -89,48 +119,47 @@ var getRequiredLazySlides = function getRequiredLazySlides(spec) { requiredSlides.push(slideIndex); } return requiredSlides; -}; +}); // startIndex that needs to be present -exports.getRequiredLazySlides = getRequiredLazySlides; -var lazyStartIndex = function lazyStartIndex(spec) { +var lazyStartIndex = (exports.lazyStartIndex = function lazyStartIndex(spec) { var startIndex = spec.currentSlide - lazySlidesOnLeft(spec); if (spec.lazyLoad === "anticipated") startIndex -= 1; return startIndex; -}; -exports.lazyStartIndex = lazyStartIndex; -var lazyEndIndex = function lazyEndIndex(spec) { +}); +var lazyEndIndex = (exports.lazyEndIndex = function lazyEndIndex(spec) { var endIndex = spec.currentSlide + lazySlidesOnRight(spec); if (spec.lazyLoad === "anticipated") endIndex += 1; return endIndex; -}; -exports.lazyEndIndex = lazyEndIndex; -var lazySlidesOnLeft = function lazySlidesOnLeft(spec) { +}); +var lazySlidesOnLeft = (exports.lazySlidesOnLeft = function lazySlidesOnLeft( + spec +) { return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0; -}; -exports.lazySlidesOnLeft = lazySlidesOnLeft; -var lazySlidesOnRight = function lazySlidesOnRight(spec) { +}); +var lazySlidesOnRight = (exports.lazySlidesOnRight = function lazySlidesOnRight( + spec +) { return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow; -}; +}); // get width of an element -exports.lazySlidesOnRight = lazySlidesOnRight; -var getWidth = function getWidth(elem) { +var getWidth = (exports.getWidth = function getWidth(elem) { return (elem && elem.offsetWidth) || 0; -}; -exports.getWidth = getWidth; -var getHeight = function getHeight(elem) { +}); +var getHeight = (exports.getHeight = function getHeight(elem) { return (elem && elem.offsetHeight) || 0; -}; -exports.getHeight = getHeight; -var getSwipeDirection = function getSwipeDirection(touchObject) { +}); +var getSwipeDirection = (exports.getSwipeDirection = function getSwipeDirection( + touchObject +) { var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var xDist, yDist, r, swipeAngle; @@ -158,11 +187,10 @@ var getSwipeDirection = function getSwipeDirection(touchObject) { } } return "vertical"; -}; +}); // whether or not we can go next -exports.getSwipeDirection = getSwipeDirection; -var canGoNext = function canGoNext(spec) { +var canGoNext = (exports.canGoNext = function canGoNext(spec) { var canGo = true; if (!spec.infinite) { if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) { @@ -175,21 +203,24 @@ var canGoNext = function canGoNext(spec) { } } return canGo; -}; +}); // given an object and a list of keys, return new object with given keys -exports.canGoNext = canGoNext; -var extractObject = function extractObject(spec, keys) { +var extractObject = (exports.extractObject = function extractObject( + spec, + keys +) { var newObject = {}; keys.forEach(function(key) { return (newObject[key] = spec[key]); }); return newObject; -}; +}); // get initialized state -exports.extractObject = extractObject; -var initializedState = function initializedState(spec) { +var initializedState = (exports.initializedState = function initializedState( + spec +) { // spec also contains listRef, trackRef var slideCount = _react["default"].Children.count(spec.children); var listNode = spec.listRef; @@ -243,9 +274,8 @@ var initializedState = function initializedState(spec) { state["autoplaying"] = "playing"; } return state; -}; -exports.initializedState = initializedState; -var slideHandler = function slideHandler(spec) { +}); +var slideHandler = (exports.slideHandler = function slideHandler(spec) { var waitForAnimate = spec.waitForAnimate, animating = spec.animating, fade = spec.fade, @@ -394,9 +424,8 @@ var slideHandler = function slideHandler(spec) { state: state, nextState: nextState }; -}; -exports.slideHandler = slideHandler; -var changeSlide = function changeSlide(spec, options) { +}); +var changeSlide = (exports.changeSlide = function changeSlide(spec, options) { var indexOffset, previousInt, slideOffset, unevenOffset, targetSlide; var slidesToScroll = spec.slidesToScroll, slidesToShow = spec.slidesToShow, @@ -454,17 +483,23 @@ var changeSlide = function changeSlide(spec, options) { targetSlide = Number(options.index); } return targetSlide; -}; -exports.changeSlide = changeSlide; -var keyHandler = function keyHandler(e, accessibility, rtl) { +}); +var keyHandler = (exports.keyHandler = function keyHandler( + e, + accessibility, + rtl +) { if (e.target.tagName.match("TEXTAREA|INPUT|SELECT") || !accessibility) return ""; if (e.keyCode === 37) return rtl ? "next" : "previous"; if (e.keyCode === 39) return rtl ? "previous" : "next"; return ""; -}; -exports.keyHandler = keyHandler; -var swipeStart = function swipeStart(e, swipe, draggable) { +}); +var swipeStart = (exports.swipeStart = function swipeStart( + e, + swipe, + draggable +) { e.target.tagName === "IMG" && safePreventDefault(e); if (!swipe || (!draggable && e.type.indexOf("mouse") !== -1)) return ""; return { @@ -476,9 +511,8 @@ var swipeStart = function swipeStart(e, swipe, draggable) { curY: e.touches ? e.touches[0].pageY : e.clientY } }; -}; -exports.swipeStart = swipeStart; -var swipeMove = function swipeMove(e, spec) { +}); +var swipeMove = (exports.swipeMove = function swipeMove(e, spec) { // spec also contains, trackRef and slideIndex var scrolling = spec.scrolling, animating = spec.animating, @@ -587,9 +621,8 @@ var swipeMove = function swipeMove(e, spec) { safePreventDefault(e); } return state; -}; -exports.swipeMove = swipeMove; -var swipeEnd = function swipeEnd(e, spec) { +}); +var swipeEnd = (exports.swipeEnd = function swipeEnd(e, spec) { var dragging = spec.dragging, swipe = spec.swipe, touchObject = spec.touchObject, @@ -665,9 +698,10 @@ var swipeEnd = function swipeEnd(e, spec) { ); } return state; -}; -exports.swipeEnd = swipeEnd; -var getNavigableIndexes = function getNavigableIndexes(spec) { +}); +var getNavigableIndexes = (exports.getNavigableIndexes = function getNavigableIndexes( + spec +) { var max = spec.infinite ? spec.slideCount * 2 : spec.slideCount; var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0; var counter = spec.infinite ? spec.slidesToShow * -1 : 0; @@ -678,9 +712,11 @@ var getNavigableIndexes = function getNavigableIndexes(spec) { counter += Math.min(spec.slidesToScroll, spec.slidesToShow); } return indexes; -}; -exports.getNavigableIndexes = getNavigableIndexes; -var checkNavigable = function checkNavigable(spec, index) { +}); +var checkNavigable = (exports.checkNavigable = function checkNavigable( + spec, + index +) { var navigables = getNavigableIndexes(spec); var prevNavigable = 0; if (index > navigables[navigables.length - 1]) { @@ -695,9 +731,8 @@ var checkNavigable = function checkNavigable(spec, index) { } } return index; -}; -exports.checkNavigable = checkNavigable; -var getSlideCount = function getSlideCount(spec) { +}); +var getSlideCount = (exports.getSlideCount = function getSlideCount(spec) { var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0; @@ -738,17 +773,18 @@ var getSlideCount = function getSlideCount(spec) { } else { return spec.slidesToScroll; } -}; -exports.getSlideCount = getSlideCount; -var checkSpecKeys = function checkSpecKeys(spec, keysArray) { +}); +var checkSpecKeys = (exports.checkSpecKeys = function checkSpecKeys( + spec, + keysArray +) { return keysArray.reduce(function(value, key) { return value && spec.hasOwnProperty(key); }, true) ? null : console.error("Keys Missing:", spec); -}; -exports.checkSpecKeys = checkSpecKeys; -var getTrackCSS = function getTrackCSS(spec) { +}); +var getTrackCSS = (exports.getTrackCSS = function getTrackCSS(spec) { checkSpecKeys(spec, [ "left", "variableWidth", @@ -810,9 +846,10 @@ var getTrackCSS = function getTrackCSS(spec) { } } return style; -}; -exports.getTrackCSS = getTrackCSS; -var getTrackAnimateCSS = function getTrackAnimateCSS(spec) { +}); +var getTrackAnimateCSS = (exports.getTrackAnimateCSS = function getTrackAnimateCSS( + spec +) { checkSpecKeys(spec, [ "left", "variableWidth", @@ -836,9 +873,8 @@ var getTrackAnimateCSS = function getTrackAnimateCSS(spec) { } } return style; -}; -exports.getTrackAnimateCSS = getTrackAnimateCSS; -var getTrackLeft = function getTrackLeft(spec) { +}); +var getTrackLeft = (exports.getTrackLeft = function getTrackLeft(spec) { if (spec.unslick) { return 0; } @@ -932,9 +968,8 @@ var getTrackLeft = function getTrackLeft(spec) { } } return targetLeft; -}; -exports.getTrackLeft = getTrackLeft; -var getPreClones = function getPreClones(spec) { +}); +var getPreClones = (exports.getPreClones = function getPreClones(spec) { if (spec.unslick || !spec.infinite) { return 0; } @@ -942,22 +977,21 @@ var getPreClones = function getPreClones(spec) { return spec.slideCount; } return spec.slidesToShow + (spec.centerMode ? 1 : 0); -}; -exports.getPreClones = getPreClones; -var getPostClones = function getPostClones(spec) { +}); +var getPostClones = (exports.getPostClones = function getPostClones(spec) { if (spec.unslick || !spec.infinite) { return 0; } return spec.slideCount; -}; -exports.getPostClones = getPostClones; -var getTotalSlides = function getTotalSlides(spec) { +}); +var getTotalSlides = (exports.getTotalSlides = function getTotalSlides(spec) { return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec); -}; -exports.getTotalSlides = getTotalSlides; -var siblingDirection = function siblingDirection(spec) { +}); +var siblingDirection = (exports.siblingDirection = function siblingDirection( + spec +) { if (spec.targetSlide > spec.currentSlide) { if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) { return "left"; @@ -969,9 +1003,8 @@ var siblingDirection = function siblingDirection(spec) { } return "left"; } -}; -exports.siblingDirection = siblingDirection; -var slidesOnRight = function slidesOnRight(_ref) { +}); +var slidesOnRight = (exports.slidesOnRight = function slidesOnRight(_ref) { var slidesToShow = _ref.slidesToShow, centerMode = _ref.centerMode, rtl = _ref.rtl, @@ -987,9 +1020,8 @@ var slidesOnRight = function slidesOnRight(_ref) { return 0; } return slidesToShow - 1; -}; -exports.slidesOnRight = slidesOnRight; -var slidesOnLeft = function slidesOnLeft(_ref2) { +}); +var slidesOnLeft = (exports.slidesOnLeft = function slidesOnLeft(_ref2) { var slidesToShow = _ref2.slidesToShow, centerMode = _ref2.centerMode, rtl = _ref2.rtl, @@ -1005,13 +1037,11 @@ var slidesOnLeft = function slidesOnLeft(_ref2) { return slidesToShow - 1; } return 0; -}; -exports.slidesOnLeft = slidesOnLeft; -var canUseDOM = function canUseDOM() { +}); +var canUseDOM = (exports.canUseDOM = function canUseDOM() { return !!( typeof window !== "undefined" && window.document && window.document.createElement ); -}; -exports.canUseDOM = canUseDOM; +}); diff --git a/package.json b/package.json index 92c992054..f8969ef67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-slick", - "version": "0.29.0", + "version": "0.30.2", "description": " React port of slick carousel", "main": "./lib", "scripts": { @@ -70,7 +70,6 @@ "react-dom": "^18.0.0", "react-test-renderer": "^18.0.0", "sinon": "^2.1.0", - "slick-carousel": "^1.8.1", "style-loader": "^0.16.1", "uglifyjs-webpack-plugin": "^2.0.1", "webpack": "^4.21.0",