nimble-ui
Version:
1 lines • 144 kB
JavaScript
module.exports=function(e){var t={};function i(s){if(t[s])return t[s].exports;var a=t[s]={i:s,l:!1,exports:{}};return e[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:s})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s="ESZu")}({"0Zk/":function(e,t,i){"use strict";t.a=function(e,t){return Object(s.a)(e,t).replace(/^[a-z]/,function(e){return e.toUpperCase()})};var s=i("lXuC")},"4qRk":function(e,t,i){"use strict";t.a=function(e){e&&!e.install&&(e.install=function(t){var i=e.name||"",s=t.component(i);s||t.component(i,e)});return e}},"5fCB":function(e,t,i){"use strict";var s=i("E5mE"),a=i("eY/N");t.a=function e(){for(var t=!0,i=void 0,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(r instanceof Array&&(i=r.slice(0,1)[0]),"boolean"==typeof i&&(t=i,r.splice(0,1),t||(i=r.splice(0,1)[0])),r&&r.length<1)return"boolean"==typeof i?r[1]:i;t&&(i=null);for(var l=0;l<r.length;l++){var d=r[l];if(d instanceof Object)if(t){for(var h in i&&i instanceof Object||(i=d instanceof Array?[]:{}),d)if(d.hasOwnProperty(h)){var p=d[h];if(u(p)){var c=u(i[h])&&i[h]||(p instanceof Array?[]:{});i[h]=e(c,p)}else void 0!==p?i[h]=p:void 0!==i[h]&&(i[h]=p)}}else i=i&&i instanceof Object?Object.assign(i,d):d}return i;function u(e){return e&&(Object(s.a)(e,"Array")||Object(a.a)(e))||!1}}},"B/FW":function(e,t){},E5mE:function(e,t,i){"use strict";t.a=function(e,t){var i=!1;try{i=Object.prototype.toString.call(e)==="[object "+t+"]"}catch(e){}return i}},ESZu:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("uGS0"),a=i("zagf");var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._watchNames=[]}return e.prototype._handlerWatch=function(e,t){var i=this._watchNames;e&&t&&i&&!(i.length<=0)&&(i&&i.forEach(function(i){var a=e[i]&&e[i]._args||[];e[i]=function(){for(var e=arguments.length,a=Array(e),n=0;n<e;n++)a[n]=arguments[n];t[i]&&Object(s.a)(t[i].bind(t),a)},a&&a.length>0&&a.forEach(function(e){t[i]&&Object(s.a)(t[i].bind(t),e)})}),this._watchNames=[])},e.prototype._eachProxyNames=function(e,t){if(e&&"string"==typeof e&&(e=[e]),e instanceof Array||!(e.length<1)){if(e)return e instanceof Array&&e.forEach(function(e){Object(a.a)(t,[e])}),e}else console.error(new Error("function name err"))},e.prototype.proxyHook=function(e,t,i,a){var n=this;a&&n.proxyWatch(e,a),n._eachProxyNames(i,function(i){e[i]=function(){for(var a=arguments.length,r=Array(a),o=0;o<a;o++)r[o]=arguments[o];return new Promise(function(a,o){Object(s.a)(t).then(function(t){t?(n._handlerWatch(e,t),t[i]?Object(s.a)(t[i].bind(t),r).then(a,o):a(void 0)):o(new Error("load err"))},o)})}})},e.prototype.proxyWatch=function(e,t){var i=this._eachProxyNames(t,function(t){e[t]=function(){for(var i=arguments.length,s=Array(i),a=0;a<i;a++)s[a]=arguments[a];e[t]._args=e[t]._args||[],e[t]._args.push(s)}});this._watchNames=this._watchNames.concat(i||[])},e.prototype.initProxy=function(e,t){return t=(t||"")+"",function(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];return new Promise(function(i,r){Object(s.a)(e).then(function(e){var s=e&&e.default||e,o=void 0;s?(o=Object(a.a)(t&&s[t]||o,n,s))instanceof Promise?o.then(i,r):i(o||s):r(new Error("load err"))})})}},e}(),r=i("gsqX"),o=i.n(r),l=function(e,t){return i=function(){return new Promise(function(i,s){i(function(e,t){return new o.a(e,t)}(e,t))})},s=new n,a={preload:function(){var e=s.initProxy(function(){return i()},"preload")();return this.preload=function(){return e},e}},s.proxyHook(a,function(){return a.preload()},["slideNext","slidePrev","slideTo","slideToLoop","destroy","getTranslate","setTranslate","updateSize","updateSlides","updateProgress","updateSlidesClasses","update","detachEvents","attachEvents","appendSlide","prependSlide","addSlide","removeSlide","removeAllSlides","setGrabCursor","unsetGrabCursor","updateAutoHeight","slideToClosest"],["on","once","off"]),a;var i,s,a},d=i("rRBi"),h=i("MWZt"),p=i("HDd3"),c=["beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize"],u=i("ekq3"),f={props:{item:{},filterItem:{type:Function}},computed:{myItem:function(){var e=Object(u.a)(this.filterItem||this.item,[this.item],this);return"string"==typeof e&&(e={text:e}),e}}},v={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nus_filterslide"},[this._t("default",null,{itemData:this.myItem,data:this.item})],2)},staticRenderFns:[]};var m=i("VU/8")(f,v,!1,function(e){i("gVXU")},null,null).exports,g=i("Hxsb"),b={name:"NuSwiper",extend:p.a,components:{FilterSlide:m},props:{list:{type:Array},options:{type:Object},filterItem:{type:Function}},mixins:[Object(g.a)("activeIndex",{mValueChange:function(e){var t=this.myOptions||{};if(this.myActiveIndex===e)return this.lock=!0,!1;this.swiper&&this.swiper.slideTo(e,t.speed||0)}})],watch:{options:function(){this._updateOptions(),this.refresh()},isUpdate:function(){this.isUpdate=!1}},data:function(){return{isUpdate:!1,defLen:0,myOptions:{initialSlide:this.activeIndex||0,wrapperClass:"hook_wrap",slideClass:"nu_slide",loop:!0,autoplay:!0,paginationClickable:!0,disableOnInteraction:!1,touchMoveStopPropagation:!1,preventClicksPropagation:!1,freeMode:!1,observer:!0,observeParents:!0,longSwipesRatio:.3,touchRatio:1,centeredSlides:!1,grabCursor:!0}}},computed:{slideStyle:function(){var e=null,t=this.myOptions.slidesPerView;return t>1&&(e={width:(100/t).toFixed(3)+"%"}),e}},mounted:function(){this._updateOptions(),this._updateSlide(),this._initCom()},updated:function(){this._updateSlide(),this.lock=!1},methods:{refresh:function(){var e=this._swiper,t=this.myOptions;e&&t&&t.loop&&(this.throttle=this.throttle||Object(h.a)(function(){e.loopDestroy(),e.loopCreate()},100),this.throttle())},_updateOptions:function(){var e=this._initPagination();return this.myOptions=Object(d.a)(this.myOptions,this.options,e),this.myOptions},_initCom:function(){var e=this,t=e.$el;if(!e.swiper){var i=e.myOptions,s=l(t,i),a=i.slidesPerView;setTimeout(function(){s.preload().then(function(s){if(e._swiper||(e._swiper=s,e.$emit("init",{context:s})),i.loop&&t)for(var a=s.imagesToLoad,n=function(t){var i=a[t];if(i){var n=function(){e.refresh()};s.on("beforeDestroy",function(){i.removeEventListener("load",n)}),i.addEventListener("load",n)}},r=0;r<a.length;r++)n(r);c.forEach(function(t){s.on(t,function(i){e.$emit(t,{Event:i,context:s})})}),s.on("slideChange",function(){e.myActiveIndex=s.realIndex}),s.on("touchStart",e._onStart),s.on("touchMove",e._onMove)})},a&&1!==a?200:0),e.swiper=s}},_initPagination:function(){var e={},t=this.$el,i=this.options&&this.options.pagination||{},s=this.$slots.hook_indicator,a=s=(s=s&&s[0])&&s.tag&&s.elm,n=i.type;if(!a){var r=t.querySelector(i.el||".nu_indicator"),o=r&&r.childNodes[0];!r||o||n||r.parentNode.removeChild(r),a=n&&"bullets"!==n?r:o}if(a){var l={bulletClass:"nu_indicator-item",bulletActiveClass:"nu_indicator-active"};switch(n){case"fraction":l={currentClass:"nu_indicator-current",totalClass:"nu_indicator-total"}}e={pagination:Object(d.a)({type:"bullets",modifierClass:"nu_indicator-"},l,i,{el:a})}}return e},_updateSlide:function(){var e=this,t=e.myOptions;if(!e.list&&t.slideClass){var i=e.$slots.default||[];(e.isUpdate||e.lock)&&e.defLen===i.length||(e.defLen=i.length,i.forEach(function(i){i.tag&&(i.elm.classList.contains(t.slideClass)||(e.isUpdate=!0,i.elm.classList.add(t.slideClass)))}))}},_onStart:function(e){var t=e.touches?e.touches[0]:e;this._pointX=t.pageX,this._pointY=t.pageY},_onMove:function(e){var t=e.touches?e.touches[0]:e,i=t.pageX-this._pointX,s=t.pageY-this._pointY;Math.atan(Math.abs(s)/Math.abs(i))*(180/Math.PI)<50&&e.cancelable&&e.preventDefault()}}},w={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"nus_swiper"},[i("div",{staticClass:"nu_slides hook_wrap swiper-wrapper"},[e.list?e._l(e.list,function(t,s){return i("div",{key:s,staticClass:"nu_slide swiper-slide",style:e.slideStyle},[i("filter-slide",{attrs:{item:t,filterItem:e.filterItem},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.itemData,a=t.data;return[e._t("default",null,{itemData:i,data:a,index:s})]}}])})],1)}):[e._t("default")]],2),e._v(" "),e._t("hook_indicator",[i("div",{staticClass:"nu_indicator"},[e._t("hook_indicator-cont")],2)])],2)},staticRenderFns:[]};var y=i("VU/8")(b,w,!1,function(e){i("z4ph")},null,null).exports,x=i("4qRk");t.default=Object(x.a)(y)},HDd3:function(e,t,i){"use strict";var s={extends:i("Lv3q").a},a=i("VU/8")(s,null,!1,null,null,null);t.a=a.exports},Hxsb:function(e,t,i){"use strict";t.a=function(e,t){var i;t=t||{};var n={};n[e=(e||"")+""]=t.value||{};var r="my"+Object(a.a)(e);return{props:n,data:function(){var i={};return i[r]=Object(s.a)(t.myValueInit||this[e],[this[e]],this),i},watch:(i={},i[e]=function(e,i){var a=Object(s.a)(t.mValueChange,[e,i],this);!1!==a&&(this[r]=e)},i[r]=function(i,a){var n=Object(s.a)(t.myValueChange,[i,a],this);!1!==n&&this.$emit("update:"+e,i)},i)}};var s=i("ekq3"),a=i("WGR+")},Lv3q:function(e,t,i){"use strict";i("B/FW");var s=i("VU/8")({methods:{_onClick:function(e){this.$emit("click",e)},_onTap:function(e){this.$emit("tap",e)},_onClickItem:function(e){this.$emit("clickItem",e)}}},null,!1,null,null,null);t.a=s.exports},MWZt:function(e,t,i){"use strict";var s=i("yY2C");t.a=s.a},"VU/8":function(e,t){e.exports=function(e,t,i,s,a,n){var r,o=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(r=e,o=e.default);var d,h="function"==typeof o?o.options:o;if(t&&(h.render=t.render,h.staticRenderFns=t.staticRenderFns,h._compiled=!0),i&&(h.functional=!0),a&&(h._scopeId=a),n?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(n)},h._ssrRegister=d):s&&(d=s),d){var p=h.functional,c=p?h.render:h.beforeCreate;p?(h._injectStyles=d,h.render=function(e,t){return d.call(t),c(e,t)}):h.beforeCreate=c?[].concat(c,d):[d]}return{esModule:r,exports:o,options:h}}},"WGR+":function(e,t,i){"use strict";var s=i("0Zk/");t.a=s.a},"eY/N":function(e,t,i){"use strict";t.a=function(e){if(!Object(s.a)(e,"Object"))return!1;var t=Object.getPrototypeOf(e);if(!t)return!0;var i=a.call(t,"constructor")&&t.constructor;return"function"==typeof i&&a.toString.call(i)===a.toString.call(Object)};var s=i("E5mE"),a=Object.prototype.hasOwnProperty},ekq3:function(e,t,i){"use strict";var s=i("zagf");t.a=s.a},gVXU:function(e,t){},gsqX:function(e,t,i){var s,a,n,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};n=function(){"use strict";var e="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,t="undefined"==typeof window?{document:e,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,i=function(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this};function s(s,a){var n=[],r=0;if(s&&!a&&s instanceof i)return s;if(s)if("string"==typeof s){var o,l,d=s.trim();if(d.indexOf("<")>=0&&d.indexOf(">")>=0){var h="div";for(0===d.indexOf("<li")&&(h="ul"),0===d.indexOf("<tr")&&(h="tbody"),0!==d.indexOf("<td")&&0!==d.indexOf("<th")||(h="tr"),0===d.indexOf("<tbody")&&(h="table"),0===d.indexOf("<option")&&(h="select"),(l=e.createElement(h)).innerHTML=d,r=0;r<l.childNodes.length;r+=1)n.push(l.childNodes[r])}else for(o=a||"#"!==s[0]||s.match(/[ .<>:~]/)?(a||e).querySelectorAll(s.trim()):[e.getElementById(s.trim().split("#")[1])],r=0;r<o.length;r+=1)o[r]&&n.push(o[r])}else if(s.nodeType||s===t||s===e)n.push(s);else if(s.length>0&&s[0].nodeType)for(r=0;r<s.length;r+=1)n.push(s[r]);return new i(n)}function a(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}s.fn=i.prototype,s.Class=i,s.Dom7=i;var n={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.add(t[i]);return this},removeClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.remove(t[i]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==this[s]&&void 0!==this[s].classList&&this[s].classList.toggle(t[i]);return this},attr:function(e,t){var i=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var s=0;s<this.length;s+=1)if(2===i.length)this[s].setAttribute(e,t);else for(var a in e)this[s][a]=e[a],this[s].setAttribute(a,e[a]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var i;if(void 0!==t){for(var s=0;s<this.length;s+=1)(i=this[s]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[e];var a=i.getAttribute("data-"+e);return a||void 0}},transform:function(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this},on:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var a=t[0],n=t[1],r=t[2],o=t[3];function l(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),s(t).is(n))r.apply(t,i);else for(var a=s(t).parents(),o=0;o<a.length;o+=1)s(a[o]).is(n)&&r.apply(a[o],i)}}function d(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof t[1]&&(a=(e=t)[0],r=e[1],o=e[2],n=void 0),o||(o=!1);for(var h,p=a.split(" "),c=0;c<this.length;c+=1){var u=this[c];if(n)for(h=0;h<p.length;h+=1){var f=p[h];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[f]||(u.dom7LiveListeners[f]=[]),u.dom7LiveListeners[f].push({listener:r,proxyListener:l}),u.addEventListener(f,l,o)}else for(h=0;h<p.length;h+=1){var v=p[h];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[v]||(u.dom7Listeners[v]=[]),u.dom7Listeners[v].push({listener:r,proxyListener:d}),u.addEventListener(v,d,o)}}return this},off:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var s=t[0],a=t[1],n=t[2],r=t[3];"function"==typeof t[1]&&(s=(e=t)[0],n=e[1],r=e[2],a=void 0),r||(r=!1);for(var o=s.split(" "),l=0;l<o.length;l+=1)for(var d=o[l],h=0;h<this.length;h+=1){var p=this[h],c=void 0;if(!a&&p.dom7Listeners?c=p.dom7Listeners[d]:a&&p.dom7LiveListeners&&(c=p.dom7LiveListeners[d]),c&&c.length)for(var u=c.length-1;u>=0;u-=1){var f=c[u];n&&f.listener===n?(p.removeEventListener(d,f.proxyListener,r),c.splice(u,1)):n&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===n?(p.removeEventListener(d,f.proxyListener,r),c.splice(u,1)):n||(p.removeEventListener(d,f.proxyListener,r),c.splice(u,1))}}return this},trigger:function(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];for(var a=i[0].split(" "),n=i[1],r=0;r<a.length;r+=1)for(var o=a[r],l=0;l<this.length;l+=1){var d=this[l],h=void 0;try{h=new t.CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0})}catch(t){(h=e.createEvent("Event")).initEvent(o,!0,!0),h.detail=n}d.dom7EventData=i.filter(function(e,t){return t>0}),d.dispatchEvent(h),d.dom7EventData=[],delete d.dom7EventData}return this},transitionEnd:function(e){var t,i=["webkitTransitionEnd","transitionend"],s=this;function a(n){if(n.target===this)for(e.call(this,n),t=0;t<i.length;t+=1)s.off(i[t],a)}if(e)for(t=0;t<i.length;t+=1)s.on(i[t],a);return this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var i=this[0],s=i.getBoundingClientRect(),a=e.body,n=i.clientTop||a.clientTop||0,r=i.clientLeft||a.clientLeft||0,o=i===t?t.scrollY:i.scrollTop,l=i===t?t.scrollX:i.scrollLeft;return{top:s.top+o-n,left:s.left+l-r}}return null},css:function(e,i){var s;if(1===arguments.length){if("string"!=typeof e){for(s=0;s<this.length;s+=1)for(var a in e)this[s].style[a]=e[a];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(s=0;s<this.length;s+=1)this[s].style[e]=i;return this}return this},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(a){var n,r,o=this[0];if(!o||void 0===a)return!1;if("string"==typeof a){if(o.matches)return o.matches(a);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(a);if(o.msMatchesSelector)return o.msMatchesSelector(a);for(n=s(a),r=0;r<n.length;r+=1)if(n[r]===o)return!0;return!1}if(a===e)return o===e;if(a===t)return o===t;if(a.nodeType||a instanceof i){for(n=a.nodeType?[a]:a,r=0;r<n.length;r+=1)if(n[r]===o)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,s=this.length;return new i(e>s-1?[]:e<0?(t=s+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var t,s=[],a=arguments.length;a--;)s[a]=arguments[a];for(var n=0;n<s.length;n+=1){t=s[n];for(var r=0;r<this.length;r+=1)if("string"==typeof t){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[r].appendChild(o.firstChild)}else if(t instanceof i)for(var l=0;l<t.length;l+=1)this[r].appendChild(t[l]);else this[r].appendChild(t)}return this},prepend:function(t){var s,a;for(s=0;s<this.length;s+=1)if("string"==typeof t){var n=e.createElement("div");for(n.innerHTML=t,a=n.childNodes.length-1;a>=0;a-=1)this[s].insertBefore(n.childNodes[a],this[s].childNodes[0])}else if(t instanceof i)for(a=0;a<t.length;a+=1)this[s].insertBefore(t[a],this[s].childNodes[0]);else this[s].insertBefore(t,this[s].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&s(this[0].nextElementSibling).is(e)?new i([this[0].nextElementSibling]):new i([]):this[0].nextElementSibling?new i([this[0].nextElementSibling]):new i([]):new i([])},nextAll:function(e){var t=[],a=this[0];if(!a)return new i([]);for(;a.nextElementSibling;){var n=a.nextElementSibling;e?s(n).is(e)&&t.push(n):t.push(n),a=n}return new i(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&s(t.previousElementSibling).is(e)?new i([t.previousElementSibling]):new i([]):t.previousElementSibling?new i([t.previousElementSibling]):new i([])}return new i([])},prevAll:function(e){var t=[],a=this[0];if(!a)return new i([]);for(;a.previousElementSibling;){var n=a.previousElementSibling;e?s(n).is(e)&&t.push(n):t.push(n),a=n}return new i(t)},parent:function(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?s(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return s(a(t))},parents:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].parentNode;n;)e?s(n).is(e)&&t.push(n):t.push(n),n=n.parentNode;return s(a(t))},closest:function(e){var t=this;return void 0===e?new i([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],s=0;s<this.length;s+=1)for(var a=this[s].querySelectorAll(e),n=0;n<a.length;n+=1)t.push(a[n]);return new i(t)},children:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].childNodes,o=0;o<r.length;o+=1)e?1===r[o].nodeType&&s(r[o]).is(e)&&t.push(r[o]):1===r[o].nodeType&&t.push(r[o]);return new i(a(t))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,a;for(i=0;i<e.length;i+=1){var n=s(e[i]);for(a=0;a<n.length;a+=1)this[this.length]=n[a],this.length+=1}return this},styles:function(){return this[0]?t.getComputedStyle(this[0],null):{}}};Object.keys(n).forEach(function(e){s.fn[e]=s.fn[e]||n[e]});var o,l,d={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,i){var s,a,n;void 0===i&&(i="x");var r=t.getComputedStyle(e,null);return t.WebKitCSSMatrix?((a=r.transform||r.webkitTransform).split(",").length>6&&(a=a.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),n=new t.WebKitCSSMatrix("none"===a?"":a)):s=(n=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(a=t.WebKitCSSMatrix?n.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===i&&(a=t.WebKitCSSMatrix?n.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),a||0},parseUrlQuery:function(e){var i,s,a,n,r={},o=e||t.location.href;if("string"==typeof o&&o.length)for(n=(s=(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"").split("&").filter(function(e){return""!==e})).length,i=0;i<n;i+=1)a=s[i].replace(/#\S+/g,"").split("="),r[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a[1])||"";return r},isObject:function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=Object(e[0]),s=1;s<e.length;s+=1){var a=e[s];if(void 0!==a&&null!==a)for(var n=Object.keys(Object(a)),r=0,o=n.length;r<o;r+=1){var l=n[r],h=Object.getOwnPropertyDescriptor(a,l);void 0!==h&&h.enumerable&&(d.isObject(i[l])&&d.isObject(a[l])?d.extend(i[l],a[l]):!d.isObject(i[l])&&d.isObject(a[l])?(i[l]={},d.extend(i[l],a[l])):i[l]=a[l])}}return i}},h=(l=e.createElement("div"),{touch:t.Modernizr&&!0===t.Modernizr.touch||!!(t.navigator.maxTouchPoints>0||"ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!(t.navigator.pointerEnabled||t.PointerEvent||"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>0),prefixedPointerEvents:!!t.navigator.msPointerEnabled,transition:(o=l.style,"transition"in o||"webkitTransition"in o||"MozTransition"in o),transforms3d:t.Modernizr&&!0===t.Modernizr.csstransforms3d||function(){var e=l.style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=l.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<t.length;i+=1)if(t[i]in e)return!0;return!1}(),observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,i)}catch(e){}return e}(),gestures:"ongesturestart"in t}),p=function(){return{isIE:!!t.navigator.userAgent.match(/Trident/g)||!!t.navigator.userAgent.match(/MSIE/g),isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)};var e}(),c=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach(function(e){t.on(e,t.params.on[e])})},u={components:{configurable:!0}};c.prototype.on=function(e,t,i){var s=this;if("function"!=typeof t)return s;var a=i?"unshift":"push";return e.split(" ").forEach(function(e){s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][a](t)}),s},c.prototype.once=function(e,t,i){var s=this;if("function"!=typeof t)return s;function a(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];t.apply(s,i),s.off(e,a),a.f7proxy&&delete a.f7proxy}return a.f7proxy=t,s.on(e,a,i)},c.prototype.off=function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach(function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach(function(s,a){(s===t||s.f7proxy&&s.f7proxy===t)&&i.eventsListeners[e].splice(a,1)})}),i):i},c.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,s,a,n=this;return n.eventsListeners?("string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),a=n):(i=e[0].events,s=e[0].data,a=e[0].context||n),(Array.isArray(i)?i:i.split(" ")).forEach(function(e){if(n.eventsListeners&&n.eventsListeners[e]){var t=[];n.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(a,s)})}}),n):n},c.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var s=t.modules[i];s.params&&d.extend(e,s.params)})},c.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var s=t.modules[i],a=e[i]||{};s.instance&&Object.keys(s.instance).forEach(function(e){var i=s.instance[e];t[e]="function"==typeof i?i.bind(t):i}),s.on&&t.on&&Object.keys(s.on).forEach(function(e){t.on(e,s.on[e])}),s.create&&s.create.bind(t)(a)})},u.components.set=function(e){this.use&&this.use(e)},c.installModule=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var s=this;s.prototype.modules||(s.prototype.modules={});var a=e.name||Object.keys(s.prototype.modules).length+"_"+d.now();return s.prototype.modules[a]=e,e.proto&&Object.keys(e.proto).forEach(function(t){s.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(function(t){s[t]=e.static[t]}),e.install&&e.install.apply(s,t),s},c.use=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var s=this;return Array.isArray(e)?(e.forEach(function(e){return s.installModule(e)}),s):s.installModule.apply(s,[e].concat(t))},Object.defineProperties(c,u);var f={updateSize:function(){var e,t,i=this.$el;e=void 0!==this.params.width?this.params.width:i[0].clientWidth,t=void 0!==this.params.height?this.params.height:i[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),t=t-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),d.extend(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this.params,i=this.$wrapperEl,s=this.size,a=this.rtlTranslate,n=this.wrongRTL,r=this.virtual&&e.virtual.enabled,o=r?this.virtual.slides.length:this.slides.length,l=i.children("."+this.params.slideClass),c=r?this.virtual.slides.length:l.length,u=[],f=[],v=[],m=e.slidesOffsetBefore;"function"==typeof m&&(m=e.slidesOffsetBefore.call(this));var g=e.slidesOffsetAfter;"function"==typeof g&&(g=e.slidesOffsetAfter.call(this));var b=this.snapGrid.length,w=this.snapGrid.length,y=e.spaceBetween,x=-m,E=0,T=0;if(void 0!==s){var S,C;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*s),this.virtualSize=-y,a?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(S=Math.floor(c/e.slidesPerColumn)===c/this.params.slidesPerColumn?c:Math.ceil(c/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(S=Math.max(S,e.slidesPerView*e.slidesPerColumn)));for(var M,P=e.slidesPerColumn,k=S/P,z=Math.floor(c/e.slidesPerColumn),$=0;$<c;$+=1){C=0;var I=l.eq($);if(e.slidesPerColumn>1){var L=void 0,O=void 0,D=void 0;if("column"===e.slidesPerColumnFill||"row"===e.slidesPerColumnFill&&e.slidesPerGroup>1){if("column"===e.slidesPerColumnFill)D=$-(O=Math.floor($/P))*P,(O>z||O===z&&D===P-1)&&(D+=1)>=P&&(D=0,O+=1);else{var A=Math.floor($/e.slidesPerGroup);O=$-(D=Math.floor($/e.slidesPerView)-A*e.slidesPerColumn)*e.slidesPerView-A*e.slidesPerView}L=O+D*S/P,I.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else O=$-(D=Math.floor($/k))*k;I.css("margin-"+(this.isHorizontal()?"top":"left"),0!==D&&e.spaceBetween&&e.spaceBetween+"px").attr("data-swiper-column",O).attr("data-swiper-row",D)}if("none"!==I.css("display")){if("auto"===e.slidesPerView){var N=t.getComputedStyle(I[0],null),H=I[0].style.transform,G=I[0].style.webkitTransform;if(H&&(I[0].style.transform="none"),G&&(I[0].style.webkitTransform="none"),e.roundLengths)C=this.isHorizontal()?I.outerWidth(!0):I.outerHeight(!0);else if(this.isHorizontal()){var B=parseFloat(N.getPropertyValue("width")),V=parseFloat(N.getPropertyValue("padding-left")),X=parseFloat(N.getPropertyValue("padding-right")),Y=parseFloat(N.getPropertyValue("margin-left")),_=parseFloat(N.getPropertyValue("margin-right")),F=N.getPropertyValue("box-sizing");C=F&&"border-box"===F&&!p.isIE?B+Y+_:B+V+X+Y+_}else{var j=parseFloat(N.getPropertyValue("height")),R=parseFloat(N.getPropertyValue("padding-top")),q=parseFloat(N.getPropertyValue("padding-bottom")),W=parseFloat(N.getPropertyValue("margin-top")),U=parseFloat(N.getPropertyValue("margin-bottom")),K=N.getPropertyValue("box-sizing");C=K&&"border-box"===K&&!p.isIE?j+W+U:j+R+q+W+U}H&&(I[0].style.transform=H),G&&(I[0].style.webkitTransform=G),e.roundLengths&&(C=Math.floor(C))}else C=(s-(e.slidesPerView-1)*y)/e.slidesPerView,e.roundLengths&&(C=Math.floor(C)),l[$]&&(this.isHorizontal()?l[$].style.width=C+"px":l[$].style.height=C+"px");l[$]&&(l[$].swiperSlideSize=C),v.push(C),e.centeredSlides?(x=x+C/2+E/2+y,0===E&&0!==$&&(x=x-s/2-y),0===$&&(x=x-s/2-y),Math.abs(x)<.001&&(x=0),e.roundLengths&&(x=Math.floor(x)),T%e.slidesPerGroup==0&&u.push(x),f.push(x)):(e.roundLengths&&(x=Math.floor(x)),T%e.slidesPerGroup==0&&u.push(x),f.push(x),x=x+C+y),this.virtualSize+=C+y,E=C,T+=1}}if(this.virtualSize=Math.max(this.virtualSize,s)+g,a&&n&&("slide"===e.effect||"coverflow"===e.effect)&&i.css({width:this.virtualSize+e.spaceBetween+"px"}),h.flexbox&&!e.setWrapperSize||(this.isHorizontal()?i.css({width:this.virtualSize+e.spaceBetween+"px"}):i.css({height:this.virtualSize+e.spaceBetween+"px"})),e.slidesPerColumn>1&&(this.virtualSize=(C+e.spaceBetween)*S,this.virtualSize=Math.ceil(this.virtualSize/e.slidesPerColumn)-e.spaceBetween,this.isHorizontal()?i.css({width:this.virtualSize+e.spaceBetween+"px"}):i.css({height:this.virtualSize+e.spaceBetween+"px"}),e.centeredSlides)){M=[];for(var Z=0;Z<u.length;Z+=1){var Q=u[Z];e.roundLengths&&(Q=Math.floor(Q)),u[Z]<this.virtualSize+u[0]&&M.push(Q)}u=M}if(!e.centeredSlides){M=[];for(var J=0;J<u.length;J+=1){var ee=u[J];e.roundLengths&&(ee=Math.floor(ee)),u[J]<=this.virtualSize-s&&M.push(ee)}u=M,Math.floor(this.virtualSize-s)-Math.floor(u[u.length-1])>1&&u.push(this.virtualSize-s)}if(0===u.length&&(u=[0]),0!==e.spaceBetween&&(this.isHorizontal()?a?l.css({marginLeft:y+"px"}):l.css({marginRight:y+"px"}):l.css({marginBottom:y+"px"})),e.centerInsufficientSlides){var te=0;if(v.forEach(function(t){te+=t+(e.spaceBetween?e.spaceBetween:0)}),(te-=e.spaceBetween)<s){var ie=(s-te)/2;u.forEach(function(e,t){u[t]=e-ie}),f.forEach(function(e,t){f[t]=e+ie})}}d.extend(this,{slides:l,snapGrid:u,slidesGrid:f,slidesSizesGrid:v}),c!==o&&this.emit("slidesLengthChange"),u.length!==b&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),f.length!==w&&this.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,i=[],s=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var a=this.activeIndex+t;if(a>this.slides.length)break;i.push(this.slides.eq(a)[0])}else i.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<i.length;t+=1)if(void 0!==i[t]){var n=i[t].offsetHeight;s=n>s?n:s}s&&this.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,i=this.slides,a=this.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();var n=-e;a&&(n=e),i.removeClass(t.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var r=0;r<i.length;r+=1){var o=i[r],l=(n+(t.centeredSlides?this.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility){var d=-(n-o.swiperSlideOffset),h=d+this.slidesSizesGrid[r];(d>=0&&d<this.size-1||h>1&&h<=this.size||d<=0&&h>=this.size)&&(this.visibleSlides.push(o),this.visibleSlidesIndexes.push(r),i.eq(r).addClass(t.slideVisibleClass))}o.progress=a?-l:l}this.visibleSlides=s(this.visibleSlides)}},updateProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,i=this.maxTranslate()-this.minTranslate(),s=this.progress,a=this.isBeginning,n=this.isEnd,r=a,o=n;0===i?(s=0,a=!0,n=!0):(a=(s=(e-this.minTranslate())/i)<=0,n=s>=1),d.extend(this,{progress:s,isBeginning:a,isEnd:n}),(t.watchSlidesProgress||t.watchSlidesVisibility)&&this.updateSlidesProgress(e),a&&!r&&this.emit("reachBeginning toEdge"),n&&!o&&this.emit("reachEnd toEdge"),(r&&!a||o&&!n)&&this.emit("fromEdge"),this.emit("progress",s)},updateSlidesClasses:function(){var e,t=this.slides,i=this.params,s=this.$wrapperEl,a=this.activeIndex,n=this.realIndex,r=this.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(e=r?this.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+a+'"]'):t.eq(a)).addClass(i.slideActiveClass),i.loop&&(e.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+n+'"]').addClass(i.slideDuplicateActiveClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+n+'"]').addClass(i.slideDuplicateActiveClass));var o=e.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===o.length&&(o=t.eq(0)).addClass(i.slideNextClass);var l=e.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===l.length&&(l=t.eq(-1)).addClass(i.slidePrevClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),l.hasClass(i.slideDuplicateClass)?s.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):s.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,i=this.rtlTranslate?this.translate:-this.translate,s=this.slidesGrid,a=this.snapGrid,n=this.params,r=this.activeIndex,o=this.realIndex,l=this.snapIndex,h=e;if(void 0===h){for(var p=0;p<s.length;p+=1)void 0!==s[p+1]?i>=s[p]&&i<s[p+1]-(s[p+1]-s[p])/2?h=p:i>=s[p]&&i<s[p+1]&&(h=p+1):i>=s[p]&&(h=p);n.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if((t=a.indexOf(i)>=0?a.indexOf(i):Math.floor(h/n.slidesPerGroup))>=a.length&&(t=a.length-1),h!==r){var c=parseInt(this.slides.eq(h).attr("data-swiper-slide-index")||h,10);d.extend(this,{snapIndex:t,realIndex:c,previousIndex:r,activeIndex:h}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),o!==c&&this.emit("realIndexChange"),(this.initialized||this.runCallbacksOnInit)&&this.emit("slideChange")}else t!==l&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,i=s(e.target).closest("."+t.slideClass)[0],a=!1;if(i)for(var n=0;n<this.slides.length;n+=1)this.slides[n]===i&&(a=!0);if(!i||!a)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(s(i).attr("data-swiper-slide-index"),10):this.clickedIndex=s(i).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}};var v={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,i=this.rtlTranslate,s=this.translate,a=this.$wrapperEl;if(t.virtualTranslate)return i?-s:s;var n=d.getTranslate(a[0],e);return i&&(n=-n),n||0},setTranslate:function(e,t){var i=this.rtlTranslate,s=this.params,a=this.$wrapperEl,n=this.progress,r=0,o=0;this.isHorizontal()?r=i?-e:e:o=e,s.roundLengths&&(r=Math.floor(r),o=Math.floor(o)),s.virtualTranslate||(h.transforms3d?a.transform("translate3d("+r+"px, "+o+"px, 0px)"):a.transform("translate("+r+"px, "+o+"px)")),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?r:o;var l=this.maxTranslate()-this.minTranslate();(0===l?0:(e-this.minTranslate())/l)!==n&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var m={setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this.activeIndex,s=this.params,a=this.previousIndex;s.autoHeight&&this.updateAutoHeight();var n=t;if(n||(n=i>a?"next":i<a?"prev":"reset"),this.emit("transitionStart"),e&&i!==a){if("reset"===n)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===n?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this.activeIndex,s=this.previousIndex;this.animating=!1,this.setTransition(0);var a=t;if(a||(a=i>s?"next":i<s?"prev":"reset"),this.emit("transitionEnd"),e&&i!==s){if("reset"===a)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===a?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}};var g={slideTo:function(e,t,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var a=this,n=e;n<0&&(n=0);var r=a.params,o=a.snapGrid,l=a.slidesGrid,d=a.previousIndex,p=a.activeIndex,c=a.rtlTranslate;if(a.animating&&r.preventInteractionOnTransition)return!1;var u=Math.floor(n/r.slidesPerGroup);u>=o.length&&(u=o.length-1),(p||r.initialSlide||0)===(d||0)&&i&&a.emit("beforeSlideChangeStart");var f,v=-o[u];if(a.updateProgress(v),r.normalizeSlideIndex)for(var m=0;m<l.length;m+=1)-Math.floor(100*v)>=Math.floor(100*l[m])&&(n=m);if(a.initialized&&n!==p){if(!a.allowSlideNext&&v<a.translate&&v<a.minTranslate())return!1;if(!a.allowSlidePrev&&v>a.translate&&v>a.maxTranslate()&&(p||0)!==n)return!1}return f=n>p?"next":n<p?"prev":"reset",c&&-v===a.translate||!c&&v===a.translate?(a.updateActiveIndex(n),r.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==r.effect&&a.setTranslate(v),"reset"!==f&&(a.transitionStart(i,f),a.transitionEnd(i,f)),!1):(0!==t&&h.transition?(a.setTransition(t),a.setTranslate(v),a.updateActiveIndex(n),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,s),a.transitionStart(i,f),a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,f))}),a.$wrapperEl[0].addEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onSlideToWrapperTransitionEnd))):(a.setTransition(0),a.setTranslate(v),a.updateActiveIndex(n),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,s),a.transitionStart(i,f),a.transitionEnd(i,f)),!0)},slideToLoop:function(e,t,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var a=e;return this.params.loop&&(a+=this.loopedSlides),this.slideTo(a,t,i,s)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this.params,a=this.animating;return s.loop?!a&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,this.slideTo(this.activeIndex+s.slidesPerGroup,e,t,i)):this.slideTo(this.activeIndex+s.slidesPerGroup,e,t,i)},slidePrev:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this.params,a=this.animating,n=this.snapGrid,r=this.slidesGrid,o=this.rtlTranslate;if(s.loop){if(a)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function l(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var d,h=l(o?this.translate:-this.translate),p=n.map(function(e){return l(e)}),c=(r.map(function(e){return l(e)}),n[p.indexOf(h)],n[p.indexOf(h)-1]);return void 0!==c&&(d=r.indexOf(c))<0&&(d=this.activeIndex-1),this.slideTo(d,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this.activeIndex,a=Math.floor(s/this.params.slidesPerGroup);if(a<this.snapGrid.length-1){var n=this.rtlTranslate?this.translate:-this.translate,r=this.snapGrid[a];n-r>(this.snapGrid[a+1]-r)/2&&(s=this.params.slidesPerGroup)}return this.slideTo(s,e,t,i)},slideToClickedSlide:function(){var e,t=this,i=t.params,a=t.$wrapperEl,n="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,r=t.clickedIndex;if(i.loop){if(t.animating)return;e=parseInt(s(t.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?r<t.loopedSlides-n/2||r>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),r=a.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),d.nextTick(function(){t.slideTo(r)})):t.slideTo(r):r>t.slides.length-n?(t.loopFix(),r=a.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),d.nextTick(function(){t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}};var b={loopCreate:function(){var t=this,i=t.params,a=t.$wrapperEl;a.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var n=a.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var r=i.slidesPerGroup-n.length%i.slidesPerGroup;if(r!==i.slidesPerGroup){for(var o=0;o<r;o+=1){var l=s(e.createElement("div")).addClass(i.slideClass+" "+i.slideBlankClass);a.append(l)}n=a.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=n.length),t.loopedSlides=parseInt(i.loopedSlides||i.slidesPerView,10),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>n.length&&(t.loopedSlides=n.length);var d=[],h=[];n.each(function(e,i){var a=s(i);e<t.loopedSlides&&h.push(i),e<n.length&&e>=n.length-t.loopedSlides&&d.push(i),a.attr("data-swiper-slide-index",e)});for(var p=0;p<h.length;p+=1)a.append(s(h[p].cloneNode(!0)).addClass(i.slideDuplicateClass));for(var c=d.length-1;c>=0;c-=1)a.prepend(s(d[c].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){var e,t=this.params,i=this.activeIndex,s=this.slides,a=this.loopedSlides,n=this.allowSlidePrev,r=this.allowSlideNext,o=this.snapGrid,l=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var d=-o[i]-this.getTranslate();i<a?(e=s.length-3*a+i,e+=a,this.slideTo(e,0,!1,!0)&&0!==d&&this.setTranslate((l?-this.translate:this.translate)-d)):("auto"===t.slidesPerView&&i>=2*a||i>=s.length-a)&&(e=-s.length+i+a,e+=a,this.slideTo(e,0,!1,!0)&&0!==d&&this.setTranslate((l?-this.translate:this.translate)-d));this.allowSlidePrev=n,this.allowSlideNext=r},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,i=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}};var w={setGrabCursor:function(e){if(!(h.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){h.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}};var y={appendSlide:function(e){var t=this.$wrapperEl,i=this.params;if(i.loop&&this.loopDestroy(),"object"===(void 0===e?"undefined":r(e))&&"length"in e)for(var s=0;s<e.length;s+=1)e[s]&&t.append(e[s]);else t.append(e);i.loop&&this.loopCreate(),i.observer&&h.observer||this.update()},prependSlide:function(e){var t=this.params,i=this.$wrapperEl,s=this.activeIndex;t.loop&&this.loopDestroy();var a=s+1;if("object"===(void 0===e?"undefined":r(e))&&"length"in e){for(var n=0;n<e.length;n+=1)e[n]&&i.prepend(e[n]);a=s+e.length}else i.prepend(e);t.loop&&this.loopCreate(),t.observer&&h.observer||this.update(),this.slideTo(a,0,!1)},addSlide:function(e,t){var i=this.$wrapperEl,s=this.params,a=this.activeIndex;s.loop&&(a-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+s.slideClass));var n=this.slides.length;if(e<=0)this.prependSlide(t);else if(e>=n)this.appendSlide(t);else{for(var o=a>e?a+1:a,l=[],d=n-1;d>=e;d-=1){var p=this.slides.eq(d);p.remove(),l.unshift(p)}if("object"===(void 0===t?"undefined":r(t))&&"length"in t){for(var c=0;c<t.length;c+=1)t[c]&&i.append(t[c]);o=a>e?a+t.length:a}else i.append(t);for(var u=0;u<l.length;u+=1)i.append(l[u]);s.loop&&this.loopCreate(),s.observer&&h.observer||this.update(),s.loop?this.slideTo(o+this.loopedSlides,0,!1):this.slideTo(o,0,!1)}},removeSlide:function(e){var t=this.params,i=this.$wrapperEl,s=this.activeIndex;t.loop&&(s-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+t.slideClass));var a,n=s;if("object"===(void 0===e?"undefined":r(e))&&"length"in e){for(var o=0;o<e.length;o+=1)a=e[o],this.slides[a]&&this.slides.eq(a).remove(),a<n&&(n-=1);n=Math.max(n,0)}else a=e,this.slides[a]&&this.slides.eq(a).remove(),a<n&&(n-=1),n=Math.max(n,0);t.loop&&this.loopCreate(),t.observer&&h.observer||this.update(),t.loop?this.slideTo(n+this.loopedSlides,0,!1):this.slideTo(n,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},x=function(){var i=t.navigator.userAgent,s={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:t.cordova||t.phonegap,phonegap:t.cordova||t.phonegap},a=i.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),n=i.match(/(Android);?[\s\/]+([\d.]+)?/),r=i.match(/(iPad).*OS\s([\d_]+)/),o=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!r&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a&&(s.os="windows",s.osVersion=a[2],s.windows=!0),n&&!a&&(s.os="android",s.osVersion=n[2],s.android=!0,s.androidChrome=i.toLowerCase().indexOf("chrome")>=0),(r||l||o)&&(s.os="ios",s.ios=!0),l&&!o&&(s.osVersion=l[2].replace(/_/g,"."),s.iphone=!0),r&&(s.osVersion=r[2].replace(/_/g,"."),s.ipad=!0),o&&(s.osVersion=o[3]?o[3].replace(/_/g,"."):null,s.iphone=!0),s.ios&&s.osVersion&&i.indexOf("Version/")>=0&&"10"===s.osVersion.split(".")[0]&&(s.osVersion=i.toLowerCase().split("version/")[1].split(" ")[0]),s.desktop=!(s.os||s.android||s.webView),s.webView=(l||r||o)&&i.match(/.*AppleWebKit(?!.*Safari)/i),s.os&&"ios"===s.os){var d=s.osVersion.split("."),h=e.querySelector('meta[name="viewport"]');s.minimalUi=!s.webView&&(o||l)&&(1*d[0]==7?1*d[1]>=1:1*d[0]>7)&&h&&h.getAttribute("content").indexOf("minimal-ui")>=0}return s.pixelRatio=t.devicePixelRatio||1,s}();function