//锚点跳转 $(function(){$('a[href^="#"],area[href^="#"]').click(function(){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var $target=$(this.hash);$target=$target.length&&$target||$('[name="+this.hash.slice(1)+"]');if($target.length){var targetoffset=$target.offset().top;$('html,body').animate({scrolltop:targetoffset},1000);return false}}})}); //切换 !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).swiper=t()}(this,(function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===object}function t(i,s){void 0===i&&(i={}),void 0===s&&(s={}),object.keys(s).foreach((function(a){void 0===i[a]?i[a]=s[a]:e(s[a])&&e(i[a])&&object.keys(s[a]).length>0&&t(i[a],s[a])}))}var i="undefined"!=typeof document?document:{},s={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[]}}},createelementns:function(){return{}},importnode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};t(i,s);var a="undefined"!=typeof window?window:{};t(a,{document:s,navigator:{useragent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replacestate:function(){},pushstate:function(){},go:function(){},back:function(){}},customevent:function(){return this},addeventlistener:function(){},removeeventlistener:function(){},getcomputedstyle:function(){return{getpropertyvalue:function(){return""}}},image:function(){},date:function(){},screen:{},settimeout:function(){},cleartimeout:function(){},matchmedia:function(){return{}}});var r=function(e){for(var t=0;t=0&&d.indexof(">")>=0){var h="div";for(0===d.indexof(":~]/)?(t||i).queryselectorall(e.trim()):[i.getelementbyid(e.trim().split("#")[1])],n=0;n0&&e[0].nodetype)for(n=0;n=0;u-=1){var v=c[u];r&&v.listener===r||r&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===r?(p.removeeventlistener(d,v.proxylistener,n),c.splice(u,1)):r||(p.removeeventlistener(d,v.proxylistener,n),c.splice(u,1))}}return this},trigger:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var s=e[0].split(" "),r=e[1],n=0;n0})),d.dispatchevent(h),d.dom7eventdata=[],delete d.dom7eventdata}return this},transitionend:function(e){var t,i=["webkittransitionend","transitionend"],s=this;function a(r){if(r.target===this)for(e.call(this,r),t=0;t0){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 e=this[0],t=e.getboundingclientrect(),s=i.body,r=e.clienttop||s.clienttop||0,n=e.clientleft||s.clientleft||0,o=e===a?a.scrolly:e.scrolltop,l=e===a?a.scrollx:e.scrollleft;return{top:t.top+o-r,left:t.left+l-n}}return null},css:function(e,t){var i;if(1===arguments.length){if("string"!=typeof e){for(i=0;ii-1?[]:e<0?(t=i+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var e,t=[],s=arguments.length;s--;)t[s]=arguments[s];for(var a=0;a=0;s-=1)this[t].insertbefore(a.childnodes[s],this[t].childnodes[0])}else if(e instanceof r)for(s=0;s0?e?this[0].nextelementsibling&&n(this[0].nextelementsibling).is(e)?new r([this[0].nextelementsibling]):new r([]):this[0].nextelementsibling?new r([this[0].nextelementsibling]):new r([]):new r([])},nextall:function(e){var t=[],i=this[0];if(!i)return new r([]);for(;i.nextelementsibling;){var s=i.nextelementsibling;e?n(s).is(e)&&t.push(s):t.push(s),i=s}return new r(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previouselementsibling&&n(t.previouselementsibling).is(e)?new r([t.previouselementsibling]):new r([]):t.previouselementsibling?new r([t.previouselementsibling]):new r([])}return new r([])},prevall:function(e){var t=[],i=this[0];if(!i)return new r([]);for(;i.previouselementsibling;){var s=i.previouselementsibling;e?n(s).is(e)&&t.push(s):t.push(s),i=s}return new r(t)},parent:function(e){for(var t=[],i=0;i6&&(s=s.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new a.webkitcssmatrix("none"===s?"":s)):i=(r=n.moztransform||n.otransform||n.mstransform||n.mstransform||n.transform||n.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,")).tostring().split(","),"x"===t&&(s=a.webkitcssmatrix?r.m41:16===i.length?parsefloat(i[12]):parsefloat(i[4])),"y"===t&&(s=a.webkitcssmatrix?r.m42:16===i.length?parsefloat(i[13]):parsefloat(i[5])),s||0},parseurlquery:function(e){var t,i,s,r,n={},o=e||a.location.href;if("string"==typeof o&&o.length)for(r=(i=(o=o.indexof("?")>-1?o.replace(/\s*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t=0,observer:"mutationobserver"in a||"webkitmutationobserver"in a,passivelistener:function(){var e=!1;try{var t=object.defineproperty({},"passive",{get:function(){e=!0}});a.addeventlistener("testpassivelistener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in a},p=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])}))},c={components:{configurable:!0}};p.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},p.prototype.once=function(e,t,i){var s=this;if("function"!=typeof t)return s;function a(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];s.off(e,a),a.f7proxy&&delete a.f7proxy,t.apply(s,i)}return a.f7proxy=t,s.on(e,a,i)},p.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},p.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,s,a,r=this;if(!r.eventslisteners)return r;"string"==typeof e[0]||array.isarray(e[0])?(i=e[0],s=e.slice(1,e.length),a=r):(i=e[0].events,s=e[0].data,a=e[0].context||r);var n=array.isarray(i)?i:i.split(" ");return n.foreach((function(e){if(r.eventslisteners&&r.eventslisteners[e]){var t=[];r.eventslisteners[e].foreach((function(e){t.push(e)})),t.foreach((function(e){e.apply(a,s)}))}})),r},p.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)}))},p.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)}))},c.components.set=function(e){this.use&&this.use(e)},p.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},p.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(p,c);var u={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,t=this.$wrapperel,i=this.size,s=this.rtltranslate,r=this.wrongrtl,n=this.virtual&&e.virtual.enabled,o=n?this.virtual.slides.length:this.slides.length,l=t.children("."+this.params.slideclass),h=n?this.virtual.slides.length:l.length,p=[],c=[],u=[];function v(t){return!e.cssmode||t!==l.length-1}var f=e.slidesoffsetbefore;"function"==typeof f&&(f=e.slidesoffsetbefore.call(this));var m=e.slidesoffsetafter;"function"==typeof m&&(m=e.slidesoffsetafter.call(this));var g=this.snapgrid.length,b=this.snapgrid.length,w=e.spacebetween,y=-f,x=0,e=0;if(void 0!==i){var t,s;"string"==typeof w&&w.indexof("%")>=0&&(w=parsefloat(w.replace("%",""))/100*i),this.virtualsize=-w,s?l.css({marginleft:"",margintop:""}):l.css({marginright:"",marginbottom:""}),e.slidespercolumn>1&&(t=math.floor(h/e.slidespercolumn)===h/this.params.slidespercolumn?h:math.ceil(h/e.slidespercolumn)*e.slidespercolumn,"auto"!==e.slidesperview&&"row"===e.slidespercolumnfill&&(t=math.max(t,e.slidesperview*e.slidespercolumn)));for(var c,m=e.slidespercolumn,p=t/m,z=math.floor(h/e.slidespercolumn),k=0;k1){var l=void 0,i=void 0,d=void 0;if("row"===e.slidespercolumnfill&&e.slidespergroup>1){var o=math.floor(k/(e.slidespergroup*e.slidespercolumn)),a=k-e.slidespercolumn*e.slidespergroup*o,g=0===o?e.slidespergroup:math.min(math.ceil((h-o*m*e.slidespergroup)/m),e.slidespergroup);l=(i=a-(d=math.floor(a/g))*g+o*e.slidespergroup)+d*t/m,$.css({"-webkit-box-ordinal-group":l,"-moz-box-ordinal-group":l,"-ms-flex-order":l,"-webkit-order":l,order:l})}else"column"===e.slidespercolumnfill?(d=k-(i=math.floor(k/m))*m,(i>z||i===z&&d===m-1)&&(d+=1)>=m&&(d=0,i+=1)):i=k-(d=math.floor(k/p))*p;$.css("margin-"+(this.ishorizontal()?"top":"left"),0!==d&&e.spacebetween&&e.spacebetween+"px")}if("none"!==$.css("display")){if("auto"===e.slidesperview){var h=a.getcomputedstyle($[0],null),b=$[0].style.transform,n=$[0].style.webkittransform;if(b&&($[0].style.transform="none"),n&&($[0].style.webkittransform="none"),e.roundlengths)s=this.ishorizontal()?$.outerwidth(!0):$.outerheight(!0);else if(this.ishorizontal()){var x=parsefloat(h.getpropertyvalue("width")),v=parsefloat(h.getpropertyvalue("padding-left")),y=parsefloat(h.getpropertyvalue("padding-right")),f=parsefloat(h.getpropertyvalue("margin-left")),w=parsefloat(h.getpropertyvalue("margin-right")),r=h.getpropertyvalue("box-sizing");s=r&&"border-box"===r?x+f+w:x+v+y+f+w}else{var q=parsefloat(h.getpropertyvalue("height")),j=parsefloat(h.getpropertyvalue("padding-top")),k=parsefloat(h.getpropertyvalue("padding-bottom")),u=parsefloat(h.getpropertyvalue("margin-top")),_=parsefloat(h.getpropertyvalue("margin-bottom")),z=h.getpropertyvalue("box-sizing");s=z&&"border-box"===z?q+u+_:q+j+k+u+_}b&&($[0].style.transform=b),n&&($[0].style.webkittransform=n),e.roundlengths&&(s=math.floor(s))}else s=(i-(e.slidesperview-1)*w)/e.slidesperview,e.roundlengths&&(s=math.floor(s)),l[k]&&(this.ishorizontal()?l[k].style.width=s+"px":l[k].style.height=s+"px");l[k]&&(l[k].swiperslidesize=s),u.push(s),e.centeredslides?(y=y+s/2+x/2+w,0===x&&0!==k&&(y=y-i/2-w),0===k&&(y=y-i/2-w),math.abs(y)<.001&&(y=0),e.roundlengths&&(y=math.floor(y)),e%e.slidespergroup==0&&p.push(y),c.push(y)):(e.roundlengths&&(y=math.floor(y)),(e-math.min(this.params.slidespergroupskip,e))%this.params.slidespergroup==0&&p.push(y),c.push(y),y=y+s+w),this.virtualsize+=s+w,x=s,e+=1}}if(this.virtualsize=math.max(this.virtualsize,i)+m,s&&r&&("slide"===e.effect||"coverflow"===e.effect)&&t.css({width:this.virtualsize+e.spacebetween+"px"}),e.setwrappersize&&(this.ishorizontal()?t.css({width:this.virtualsize+e.spacebetween+"px"}):t.css({height:this.virtualsize+e.spacebetween+"px"})),e.slidespercolumn>1&&(this.virtualsize=(s+e.spacebetween)*t,this.virtualsize=math.ceil(this.virtualsize/e.slidespercolumn)-e.spacebetween,this.ishorizontal()?t.css({width:this.virtualsize+e.spacebetween+"px"}):t.css({height:this.virtualsize+e.spacebetween+"px"}),e.centeredslides)){c=[];for(var q=0;q1&&p.push(this.virtualsize-i)}if(0===p.length&&(p=[0]),0!==e.spacebetween&&(this.ishorizontal()?s?l.filter(v).css({marginleft:w+"px"}):l.filter(v).css({marginright:w+"px"}):l.filter(v).css({marginbottom:w+"px"})),e.centeredslides&&e.centeredslidesbounds){var ie=0;u.foreach((function(t){ie+=t+(e.spacebetween?e.spacebetween:0)}));var se=(ie-=e.spacebetween)-i;p=p.map((function(e){return e<0?-f:e>se?se+m:e}))}if(e.centerinsufficientslides){var ae=0;if(u.foreach((function(t){ae+=t+(e.spacebetween?e.spacebetween:0)})),(ae-=e.spacebetween)1)if(this.params.centeredslides)this.visibleslides.each((function(e,t){i.push(t)}));else for(t=0;tthis.slides.length)break;i.push(this.slides.eq(a)[0])}else i.push(this.slides.eq(this.activeindex)[0]);for(t=0;ts?r:s}s&&this.$wrapperel.css("height",s+"px")},updateslidesoffset:function(){for(var e=this.slides,t=0;t=0&&d1&&h<=this.size||d<=0&&h>=this.size)&&(this.visibleslides.push(o),this.visibleslidesindexes.push(r),i.eq(r).addclass(t.slidevisibleclass))}o.progress=s?-l:l}this.visibleslides=n(this.visibleslides)}},updateprogress:function(e){if(void 0===e){var t=this.rtltranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var i=this.params,s=this.maxtranslate()-this.mintranslate(),a=this.progress,r=this.isbeginning,n=this.isend,o=r,l=n;0===s?(a=0,r=!0,n=!0):(r=(a=(e-this.mintranslate())/s)<=0,n=a>=1),d.extend(this,{progress:a,isbeginning:r,isend:n}),(i.watchslidesprogress||i.watchslidesvisibility||i.centeredslides&&i.autoheight)&&this.updateslidesprogress(e),r&&!o&&this.emit("reachbeginning toedge"),n&&!l&&this.emit("reachend toedge"),(o&&!r||l&&!n)&&this.emit("fromedge"),this.emit("progress",a)},updateslidesclasses:function(){var e,t=this.slides,i=this.params,s=this.$wrapperel,a=this.activeindex,r=this.realindex,n=this.virtual&&i.virtual.enabled;t.removeclass(i.slideactiveclass+" "+i.slidenextclass+" "+i.slideprevclass+" "+i.slideduplicateactiveclass+" "+i.slideduplicatenextclass+" "+i.slideduplicateprevclass),(e=n?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="'+r+'"]').addclass(i.slideduplicateactiveclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+r+'"]').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,r=this.params,n=this.activeindex,o=this.realindex,l=this.snapindex,h=e;if(void 0===h){for(var p=0;p=s[p]&&i=s[p]&&i=s[p]&&(h=p);r.normalizeslideindex&&(h<0||void 0===h)&&(h=0)}if(a.indexof(i)>=0)t=a.indexof(i);else{var c=math.min(r.slidespergroupskip,h);t=c+math.floor((h-c)/r.slidespergroup)}if(t>=a.length&&(t=a.length-1),h!==n){var u=parseint(this.slides.eq(h).attr("data-swiper-slide-index")||h,10);d.extend(this,{snapindex:t,realindex:u,previousindex:n,activeindex:h}),this.emit("activeindexchange"),this.emit("snapindexchange"),o!==u&&this.emit("realindexchange"),(this.initialized||this.params.runcallbacksoninit)&&this.emit("slidechange")}else t!==l&&(this.snapindex=t,this.emit("snapindexchange"))},updateclickedslide:function(e){var t=this.params,i=n(e.target).closest("."+t.slideclass)[0],s=!1;if(i)for(var a=0;ah?h:s&&ea?"next":is?"next":i=l.length&&(f=l.length-1),(p||o.initialslide||0)===(h||0)&&i&&r.emit("beforeslidechangestart");var m,g=-l[f];if(r.updateprogress(g),o.normalizeslideindex)for(var b=0;b=math.floor(100*d[b])&&(n=b);if(r.initialized&&n!==p){if(!r.allowslidenext&&gr.translate&&g>r.maxtranslate()&&(p||0)!==n)return!1}if(m=n>p?"next":n=e&&(c=e)})),void 0!==c&&(d=n.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,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);var a=this.activeindex,r=math.min(this.params.slidespergroupskip,a),n=r+math.floor((a-r)/this.params.slidespergroup),o=this.rtltranslate?this.translate:-this.translate;if(o>=this.snapgrid[n]){var l=this.snapgrid[n];o-l>(this.snapgrid[n+1]-l)*s&&(a+=this.params.slidespergroup)}else{var d=this.snapgrid[n-1];o-d<=(this.snapgrid[n]-d)*s&&(a-=this.params.slidespergroup)}return a=math.max(a,0),a=math.min(a,this.slidesgrid.length-1),this.slideto(a,e,t,i)},slidetoclickedslide:function(){var e,t=this,i=t.params,s=t.$wrapperel,a="auto"===i.slidesperview?t.slidesperviewdynamic():i.slidesperview,r=t.clickedindex;if(i.loop){if(t.animating)return;e=parseint(n(t.clickedslide).attr("data-swiper-slide-index"),10),i.centeredslides?rt.slides.length-t.loopedslides+a/2?(t.loopfix(),r=s.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-a?(t.loopfix(),r=s.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 g={loopcreate:function(){var e=this,t=e.params,s=e.$wrapperel;s.children("."+t.slideclass+"."+t.slideduplicateclass).remove();var a=s.children("."+t.slideclass);if(t.loopfillgroupwithblank){var r=t.slidespergroup-a.length%t.slidespergroup;if(r!==t.slidespergroup){for(var o=0;oa.length&&(e.loopedslides=a.length);var d=[],h=[];a.each((function(t,i){var s=n(i);t=a.length-e.loopedslides&&d.push(i),s.attr("data-swiper-slide-index",t)}));for(var p=0;p=0;c-=1)s.prepend(n(d[c].clonenode(!0)).addclass(t.slideduplicateclass))},loopfix:function(){this.emit("beforeloopfix");var e,t=this.activeindex,i=this.slides,s=this.loopedslides,a=this.allowslideprev,r=this.allowslidenext,n=this.snapgrid,o=this.rtltranslate;this.allowslideprev=!0,this.allowslidenext=!0;var l=-n[t]-this.gettranslate();if(t=i.length-s){e=-i.length+t+s,e+=s,this.slideto(e,0,!1,!0)&&0!==l&&this.settranslate((o?-this.translate:this.translate)-l)}this.allowslideprev=a,this.allowslidenext=r,this.emit("loopfix")},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 b={setgrabcursor:function(e){if(!(h.touch||!this.params.simulatetouch||this.params.watchoverflow&&this.islocked||this.params.cssmode)){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.params.cssmode||(this.el.style.cursor="")}};var w,y,x,e,t,s,c,m,p,z,k,$,l,i,d,o={appendslide:function(e){var t=this.$wrapperel,i=this.params;if(i.loop&&this.loopdestroy(),"object"==typeof e&&"length"in e)for(var s=0;s=r)this.appendslide(t);else{for(var n=a>e?a+1:a,o=[],l=r-1;l>=e;l-=1){var d=this.slides.eq(l);d.remove(),o.unshift(d)}if("object"==typeof t&&"length"in t){for(var p=0;pe?a+t.length:a}else i.append(t);for(var c=0;c=0||y.indexof("trident/")>=0,k=y.indexof("edge/")>=0,$=y.indexof("gecko/")>=0&&y.indexof("firefox/")>=0,l="win32"===w,i=y.tolowercase().indexof("electron")>=0,d="macintel"===w,!c&&d&&h.touch&&(1024===e&&1366===t||834===e&&1194===t||834===e&&1112===t||768===e&&1024===t)&&(c=y.match(/(version)\/([\d.]+)/),d=!1),x.ie=z,x.edge=k,x.firefox=$,s&&!l&&(x.os="android",x.osversion=s[2],x.android=!0,x.androidchrome=y.tolowercase().indexof("chrome")>=0),(c||p||m)&&(x.os="ios",x.ios=!0),p&&!m&&(x.osversion=p[2].replace(/_/g,"."),x.iphone=!0),c&&(x.osversion=c[2].replace(/_/g,"."),x.ipad=!0),m&&(x.osversion=m[3]?m[3].replace(/_/g,"."):null,x.ipod=!0),x.ios&&x.osversion&&y.indexof("version/")>=0&&"10"===x.osversion.split(".")[0]&&(x.osversion=y.tolowercase().split("version/")[1].split(" ")[0]),x.webview=!(!(p||c||m)||!y.match(/.*applewebkit(?!.*safari)/i)&&!a.navigator.standalone)||a.matchmedia&&a.matchmedia("(display-mode: standalone)").matches,x.webview=x.webview,x.standalone=x.webview,x.desktop=!(x.ios||x.android)||i,x.desktop&&(x.electron=i,x.macos=d,x.windows=l,x.macos&&(x.os="macos"),x.windows&&(x.os="windows")),x.pixelratio=a.devicepixelratio||1,x);function g(e){var t=this.toucheventsdata,s=this.params,r=this.touches;if(!this.animating||!s.preventinteractionontransition){var o=e;o.originalevent&&(o=o.originalevent);var l=n(o.target);if(("wrapper"!==s.toucheventstarget||l.closest(this.wrapperel).length)&&(t.istouchevent="touchstart"===o.type,(t.istouchevent||!("which"in o)||3!==o.which)&&!(!t.istouchevent&&"button"in o&&o.button>0||t.istouched&&t.ismoved)))if(s.noswiping&&l.closest(s.noswipingselector?s.noswipingselector:"."+s.noswipingclass)[0])this.allowclick=!0;else if(!s.swipehandler||l.closest(s.swipehandler)[0]){r.currentx="touchstart"===o.type?o.targettouches[0].pagex:o.pagex,r.currenty="touchstart"===o.type?o.targettouches[0].pagey:o.pagey;var h=r.currentx,p=r.currenty,c=s.edgeswipedetection||s.iosedgeswipedetection,u=s.edgeswipethreshold||s.iosedgeswipethreshold;if(!c||!(h<=u||h>=a.screen.width-u)){if(d.extend(t,{istouched:!0,ismoved:!1,allowtouchcallbacks:!0,isscrolling:void 0,startmoving:void 0}),r.startx=h,r.starty=p,t.touchstarttime=d.now(),this.allowclick=!0,this.updatesize(),this.swipedirection=void 0,s.threshold>0&&(t.allowthresholdmove=!1),"touchstart"!==o.type){var v=!0;l.is(t.formelements)&&(v=!1),i.activeelement&&n(i.activeelement).is(t.formelements)&&i.activeelement!==l[0]&&i.activeelement.blur();var f=v&&this.allowtouchmove&&s.touchstartpreventdefault;(s.touchstartforcepreventdefault||f)&&o.preventdefault()}this.emit("touchstart",o)}}}}function h(e){var t=this.toucheventsdata,s=this.params,a=this.touches,r=this.rtltranslate,o=e;if(o.originalevent&&(o=o.originalevent),t.istouched){if(!t.istouchevent||"touchmove"===o.type){var l="touchmove"===o.type&&o.targettouches&&(o.targettouches[0]||o.changedtouches[0]),h="touchmove"===o.type?l.pagex:o.pagex,p="touchmove"===o.type?l.pagey:o.pagey;if(o.preventedbynestedswiper)return a.startx=h,void(a.starty=p);if(!this.allowtouchmove)return this.allowclick=!1,void(t.istouched&&(d.extend(a,{startx:h,starty:p,currentx:h,currenty:p}),t.touchstarttime=d.now()));if(t.istouchevent&&s.touchreleaseonedges&&!s.loop)if(this.isvertical()){if(pa.starty&&this.translate>=this.mintranslate())return t.istouched=!1,void(t.ismoved=!1)}else if(ha.startx&&this.translate>=this.mintranslate())return;if(t.istouchevent&&i.activeelement&&o.target===i.activeelement&&n(o.target).is(t.formelements))return t.ismoved=!0,void(this.allowclick=!1);if(t.allowtouchcallbacks&&this.emit("touchmove",o),!(o.targettouches&&o.targettouches.length>1)){a.currentx=h,a.currenty=p;var c=a.currentx-a.startx,u=a.currenty-a.starty;if(!(this.params.threshold&&math.sqrt(math.pow(c,2)+math.pow(u,2))=25&&(v=180*math.atan2(math.abs(u),math.abs(c))/math.pi,t.isscrolling=this.ishorizontal()?v>s.touchangle:90-v>s.touchangle);if(t.isscrolling&&this.emit("touchmoveopposite",o),void 0===t.startmoving&&(a.currentx===a.startx&&a.currenty===a.starty||(t.startmoving=!0)),t.isscrolling)t.istouched=!1;else if(t.startmoving){this.allowclick=!1,!s.cssmode&&o.cancelable&&o.preventdefault(),s.touchmovestoppropagation&&!s.nested&&o.stoppropagation(),t.ismoved||(s.loop&&this.loopfix(),t.starttranslate=this.gettranslate(),this.settransition(0),this.animating&&this.$wrapperel.trigger("webkittransitionend transitionend"),t.allowmomentumbounce=!1,!s.grabcursor||!0!==this.allowslidenext&&!0!==this.allowslideprev||this.setgrabcursor(!0),this.emit("sliderfirstmove",o)),this.emit("slidermove",o),t.ismoved=!0;var f=this.ishorizontal()?c:u;a.diff=f,f*=s.touchratio,r&&(f=-f),this.swipedirection=f>0?"prev":"next",t.currenttranslate=f+t.starttranslate;var m=!0,g=s.resistanceratio;if(s.touchreleaseonedges&&(g=0),f>0&&t.currenttranslate>this.mintranslate()?(m=!1,s.resistance&&(t.currenttranslate=this.mintranslate()-1+math.pow(-this.mintranslate()+t.starttranslate+f,g))):f<0&&t.currenttranslatet.starttranslate&&(t.currenttranslate=t.starttranslate),s.threshold>0){if(!(math.abs(f)>s.threshold||t.allowthresholdmove))return void(t.currenttranslate=t.starttranslate);if(!t.allowthresholdmove)return t.allowthresholdmove=!0,a.startx=a.currentx,a.starty=a.currenty,t.currenttranslate=t.starttranslate,void(a.diff=this.ishorizontal()?a.currentx-a.startx:a.currenty-a.starty)}s.followfinger&&!s.cssmode&&((s.freemode||s.watchslidesprogress||s.watchslidesvisibility)&&(this.updateactiveindex(),this.updateslidesclasses()),s.freemode&&(0===t.velocities.length&&t.velocities.push({position:a[this.ishorizontal()?"startx":"starty"],time:t.touchstarttime}),t.velocities.push({position:a[this.ishorizontal()?"currentx":"currenty"],time:d.now()})),this.updateprogress(t.currenttranslate),this.settranslate(t.currenttranslate))}}}}}else t.startmoving&&t.isscrolling&&this.emit("touchmoveopposite",o)}function b(e){var t=this,i=t.toucheventsdata,s=t.params,a=t.touches,r=t.rtltranslate,n=t.$wrapperel,o=t.slidesgrid,l=t.snapgrid,h=e;if(h.originalevent&&(h=h.originalevent),i.allowtouchcallbacks&&t.emit("touchend",h),i.allowtouchcallbacks=!1,!i.istouched)return i.ismoved&&s.grabcursor&&t.setgrabcursor(!1),i.ismoved=!1,void(i.startmoving=!1);s.grabcursor&&i.ismoved&&i.istouched&&(!0===t.allowslidenext||!0===t.allowslideprev)&&t.setgrabcursor(!1);var p,c=d.now(),u=c-i.touchstarttime;if(t.allowclick&&(t.updateclickedslide(h),t.emit("tap click",h),u<300&&c-i.lastclicktime<300&&t.emit("doubletap doubleclick",h)),i.lastclicktime=d.now(),d.nexttick((function(){t.destroyed||(t.allowclick=!0)})),!i.istouched||!i.ismoved||!t.swipedirection||0===a.diff||i.currenttranslate===i.starttranslate)return i.istouched=!1,i.ismoved=!1,void(i.startmoving=!1);if(i.istouched=!1,i.ismoved=!1,i.startmoving=!1,p=s.followfinger?r?t.translate:-t.translate:-i.currenttranslate,!s.cssmode)if(s.freemode){if(p<-t.mintranslate())return void t.slideto(t.activeindex);if(p>-t.maxtranslate())return void(t.slides.length1){var v=i.velocities.pop(),f=i.velocities.pop(),m=v.position-f.position,g=v.time-f.time;t.velocity=m/g,t.velocity/=2,math.abs(t.velocity)150||d.now()-v.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=s.freemodemomentumvelocityratio,i.velocities.length=0;var b=1e3*s.freemodemomentumratio,w=t.velocity*b,y=t.translate+w;r&&(y=-y);var x,e,t=!1,s=20*math.abs(t.velocity)*s.freemodemomentumbounceratio;if(yt.mintranslate())s.freemodemomentumbounce?(y-t.mintranslate()>s&&(y=t.mintranslate()+s),x=t.mintranslate(),t=!0,i.allowmomentumbounce=!0):y=t.mintranslate(),s.loop&&s.centeredslides&&(e=!0);else if(s.freemodesticky){for(var c,m=0;m-y){c=m;break}y=-(y=math.abs(l[c]-y)=s.longswipesms)&&(t.updateprogress(),t.updateactiveindex(),t.updateslidesclasses())}else{for(var k=0,$=t.slidessizesgrid[0],l=0;l=o[l]&&p=o[l]&&(k=l,$=o[o.length-1]-o[o.length-2])}var d=(p-o[k])/$,o=ks.longswipesms){if(!s.longswipes)return void t.slideto(t.activeindex);"next"===t.swipedirection&&(d>=s.longswipesratio?t.slideto(k+o):t.slideto(k)),"prev"===t.swipedirection&&(d>1-s.longswipesratio?t.slideto(k+o):t.slideto(k))}else{if(!s.shortswipes)return void t.slideto(t.activeindex);t.navigation&&(h.target===t.navigation.nextel||h.target===t.navigation.prevel)?h.target===t.navigation.nextel?t.slideto(k+o):t.slideto(k):("next"===t.swipedirection&&t.slideto(k+o),"prev"===t.swipedirection&&t.slideto(k))}}}function n(){var e=this.params,t=this.el;if(!t||0!==t.offsetwidth){e.breakpoints&&this.setbreakpoint();var i=this.allowslidenext,s=this.allowslideprev,a=this.snapgrid;this.allowslidenext=!0,this.allowslideprev=!0,this.updatesize(),this.updateslides(),this.updateslidesclasses(),("auto"===e.slidesperview||e.slidesperview>1)&&this.isend&&!this.isbeginning&&!this.params.centeredslides?this.slideto(this.slides.length-1,0,!1,!0):this.slideto(this.activeindex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowslideprev=s,this.allowslidenext=i,this.params.watchoverflow&&a!==this.snapgrid&&this.checkoverflow()}}function x(e){this.allowclick||(this.params.preventclicks&&e.preventdefault(),this.params.preventclickspropagation&&this.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))}function v(){var e=this.wrapperel,t=this.rtltranslate;this.previoustranslate=this.translate,this.ishorizontal()?this.translate=t?e.scrollwidth-e.offsetwidth-e.scrollleft:-e.scrollleft:this.translate=-e.scrolltop,-0===this.translate&&(this.translate=0),this.updateactiveindex(),this.updateslidesclasses();var i=this.maxtranslate()-this.mintranslate();(0===i?0:(this.translate-this.mintranslate())/i)!==this.progress&&this.updateprogress(t?-this.translate:this.translate),this.emit("settranslate",this.translate,!1)}var y=!1;function f(){}var w={init:!0,direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,cssmode:!1,updateonwindowresize:!0,preventinteractionontransition:!1,edgeswipedetection:!1,edgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodemomentumvelocityratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,autoheight:!1,setwrappersize:!1,virtualtranslate:!1,effect:"slide",breakpoints:void 0,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,slidespergroupskip:0,centeredslides:!1,centeredslidesbounds:!1,slidesoffsetbefore:0,slidesoffsetafter:0,normalizeslideindex:!0,centerinsufficientslides:!1,watchoverflow:!1,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,allowtouchmove:!0,threshold:0,touchmovestoppropagation:!1,touchstartpreventdefault:!0,touchstartforcepreventdefault:!1,touchreleaseonedges:!1,uniquenavelements:!0,resistance:!0,resistanceratio:.85,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,loopfillgroupwithblank:!1,allowslideprev:!0,allowslidenext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",noswipingselector:null,passivelisteners:!0,containermodifierclass:"swiper-container-",slideclass:"swiper-slide",slideblankclass:"swiper-slide-invisible-blank",slideactiveclass:"swiper-slide-active",slideduplicateactiveclass:"swiper-slide-duplicate-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideduplicatenextclass:"swiper-slide-duplicate-next",slideprevclass:"swiper-slide-prev",slideduplicateprevclass:"swiper-slide-duplicate-prev",wrapperclass:"swiper-wrapper",runcallbacksoninit:!0},r={update:u,translate:v,transition:f,slide:m,loop:g,grabcursor:b,manipulation:o,events:{attachevents:function(){var e=this.params,t=this.touchevents,s=this.el,a=this.wrapperel;this.ontouchstart=g.bind(this),this.ontouchmove=h.bind(this),this.ontouchend=b.bind(this),e.cssmode&&(this.onscroll=v.bind(this)),this.onclick=x.bind(this);var r=!!e.nested;if(!h.touch&&h.pointerevents)s.addeventlistener(t.start,this.ontouchstart,!1),i.addeventlistener(t.move,this.ontouchmove,r),i.addeventlistener(t.end,this.ontouchend,!1);else{if(h.touch){var n=!("touchstart"!==t.start||!h.passivelistener||!e.passivelisteners)&&{passive:!0,capture:!1};s.addeventlistener(t.start,this.ontouchstart,n),s.addeventlistener(t.move,this.ontouchmove,h.passivelistener?{passive:!1,capture:r}:r),s.addeventlistener(t.end,this.ontouchend,n),t.cancel&&s.addeventlistener(t.cancel,this.ontouchend,n),y||(i.addeventlistener("touchstart",f),y=!0)}(e.simulatetouch&&!a.ios&&!a.android||e.simulatetouch&&!h.touch&&a.ios)&&(s.addeventlistener("mousedown",this.ontouchstart,!1),i.addeventlistener("mousemove",this.ontouchmove,r),i.addeventlistener("mouseup",this.ontouchend,!1))}(e.preventclicks||e.preventclickspropagation)&&s.addeventlistener("click",this.onclick,!0),e.cssmode&&a.addeventlistener("scroll",this.onscroll),e.updateonwindowresize?this.on(a.ios||a.android?"resize orientationchange observerupdate":"resize observerupdate",n,!0):this.on("observerupdate",n,!0)},detachevents:function(){var e=this.params,t=this.touchevents,s=this.el,a=this.wrapperel,r=!!e.nested;if(!h.touch&&h.pointerevents)s.removeeventlistener(t.start,this.ontouchstart,!1),i.removeeventlistener(t.move,this.ontouchmove,r),i.removeeventlistener(t.end,this.ontouchend,!1);else{if(h.touch){var n=!("ontouchstart"!==t.start||!h.passivelistener||!e.passivelisteners)&&{passive:!0,capture:!1};s.removeeventlistener(t.start,this.ontouchstart,n),s.removeeventlistener(t.move,this.ontouchmove,r),s.removeeventlistener(t.end,this.ontouchend,n),t.cancel&&s.removeeventlistener(t.cancel,this.ontouchend,n)}(e.simulatetouch&&!a.ios&&!a.android||e.simulatetouch&&!h.touch&&a.ios)&&(s.removeeventlistener("mousedown",this.ontouchstart,!1),i.removeeventlistener("mousemove",this.ontouchmove,r),i.removeeventlistener("mouseup",this.ontouchend,!1))}(e.preventclicks||e.preventclickspropagation)&&s.removeeventlistener("click",this.onclick,!0),e.cssmode&&a.removeeventlistener("scroll",this.onscroll),this.off(a.ios||a.android?"resize orientationchange observerupdate":"resize observerupdate",n)}},breakpoints:{setbreakpoint:function(){var e=this.activeindex,t=this.initialized,i=this.loopedslides;void 0===i&&(i=0);var s=this.params,a=this.$el,r=s.breakpoints;if(r&&(!r||0!==object.keys(r).length)){var n=this.getbreakpoint(r);if(n&&this.currentbreakpoint!==n){var o=n in r?r[n]:void 0;o&&["slidesperview","spacebetween","slidespergroup","slidespergroupskip","slidespercolumn"].foreach((function(e){var t=o[e];void 0!==t&&(o[e]="slidesperview"!==e||"auto"!==t&&"auto"!==t?"slidesperview"===e?parsefloat(t):parseint(t,10):"auto")}));var l=o||this.originalparams,h=s.slidespercolumn>1,p=l.slidespercolumn>1;h&&!p?a.removeclass(s.containermodifierclass+"multirow "+s.containermodifierclass+"multirow-column"):!h&&p&&(a.addclass(s.containermodifierclass+"multirow"),"column"===l.slidespercolumnfill&&a.addclass(s.containermodifierclass+"multirow-column"));var c=l.direction&&l.direction!==s.direction,u=s.loop&&(l.slidesperview!==s.slidesperview||c);c&&t&&this.changedirection(),d.extend(this.params,l),d.extend(this,{allowtouchmove:this.params.allowtouchmove,allowslidenext:this.params.allowslidenext,allowslideprev:this.params.allowslideprev}),this.currentbreakpoint=n,u&&t&&(this.loopdestroy(),this.loopcreate(),this.updateslides(),this.slideto(e-i+this.loopedslides,0,!1)),this.emit("breakpoint",l)}}},getbreakpoint:function(e){if(e){var t=!1,i=object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexof("@")){var t=parsefloat(e.substr(1));return{value:a.innerheight*t,point:e}}return{value:e,point:e}}));i.sort((function(e,t){return parseint(e.value,10)-parseint(t.value,10)}));for(var s=0;s0&&e.slidesoffsetbefore+e.spacebetween*(this.slides.length-1)+this.slides[0].offsetwidth*this.slides.length;e.slidesoffsetbefore&&e.slidesoffsetafter&&i?this.islocked=i<=this.size:this.islocked=1===this.snapgrid.length,this.allowslidenext=!this.islocked,this.allowslideprev=!this.islocked,t!==this.islocked&&this.emit(this.islocked?"lock":"unlock"),t&&t!==this.islocked&&(this.isend=!1,this.navigation&&this.navigation.update())}},classes:{addclasses:function(){var e=this.classnames,t=this.params,i=this.rtl,s=this.$el,a=[];a.push("initialized"),a.push(t.direction),t.freemode&&a.push("free-mode"),t.autoheight&&a.push("autoheight"),i&&a.push("rtl"),t.slidespercolumn>1&&(a.push("multirow"),"column"===t.slidespercolumnfill&&a.push("multirow-column")),a.android&&a.push("android"),a.ios&&a.push("ios"),t.cssmode&&a.push("css-mode"),a.foreach((function(i){e.push(t.containermodifierclass+i)})),s.addclass(e.join(" "))},removeclasses:function(){var e=this.$el,t=this.classnames;e.removeclass(t.join(" "))}},images:{loadimage:function(e,t,i,s,r,o){var l;function d(){o&&o()}n(e).parent("picture")[0]||e.complete&&r?d():t?((l=new a.image).onload=d,l.onerror=d,s&&(l.sizes=s),i&&(l.srcset=i),t&&(l.src=t)):d()},preloadimages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesloaded&&(e.imagesloaded+=1),e.imagesloaded===e.imagestoload.length&&(e.params.updateonimagesready&&e.update(),e.emit("imagesready")))}e.imagestoload=e.$el.find("img");for(var i=0;i1){var u=[];return c.each((function(e,i){var s=d.extend({},a,{el:i});u.push(new t(s))})),u}var v,f,m;return s.swiper=l,c.data("swiper",l),s&&s.shadowroot&&s.shadowroot.queryselector?(v=n(s.shadowroot.queryselector("."+l.params.wrapperclass))).children=function(e){return c.children(e)}:v=c.children("."+l.params.wrapperclass),d.extend(l,{$el:c,el:s,$wrapperel:v,wrapperel:v[0],classnames:[],slides:n(),slidesgrid:[],snapgrid:[],slidessizesgrid:[],ishorizontal:function(){return"horizontal"===l.params.direction},isvertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===s.dir.tolowercase()||"rtl"===c.css("direction"),rtltranslate:"horizontal"===l.params.direction&&("rtl"===s.dir.tolowercase()||"rtl"===c.css("direction")),wrongrtl:"-webkit-box"===v.css("display"),activeindex:0,realindex:0,isbeginning:!0,isend:!1,translate:0,previoustranslate:0,progress:0,velocity:0,animating:!1,allowslidenext:l.params.allowslidenext,allowslideprev:l.params.allowslideprev,touchevents:(f=["touchstart","touchmove","touchend","touchcancel"],m=["mousedown","mousemove","mouseup"],h.pointerevents&&(m=["pointerdown","pointermove","pointerup"]),l.toucheventstouch={start:f[0],move:f[1],end:f[2],cancel:f[3]},l.toucheventsdesktop={start:m[0],move:m[1],end:m[2]},h.touch||!l.params.simulatetouch?l.toucheventstouch:l.toucheventsdesktop),toucheventsdata:{istouched:void 0,ismoved:void 0,allowtouchcallbacks:void 0,touchstarttime:void 0,isscrolling:void 0,currenttranslate:void 0,starttranslate:void 0,allowthresholdmove:void 0,formelements:"input, select, option, textarea, button, video, label",lastclicktime:d.now(),clicktimeout:void 0,velocities:[],allowmomentumbounce:void 0,istouchevent:void 0,startmoving:void 0},allowclick:!0,allowtouchmove:l.params.allowtouchmove,touches:{startx:0,starty:0,currentx:0,currenty:0,diff:0},imagestoload:[],imagesloaded:0}),l.usemodules(),l.params.init&&l.init(),l}}e&&(t.__proto__=e),t.prototype=object.create(e&&e.prototype),t.prototype.constructor=t;var i={extendeddefaults:{configurable:!0},defaults:{configurable:!0},class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesperviewdynamic=function(){var e=this.params,t=this.slides,i=this.slidesgrid,s=this.size,a=this.activeindex,r=1;if(e.centeredslides){for(var n,o=t[a].swiperslidesize,l=a+1;ls&&(n=!0));for(var d=a-1;d>=0;d-=1)t[d]&&!n&&(r+=1,(o+=t[d].swiperslidesize)>s&&(n=!0))}else for(var h=a+1;h1)&&e.isend&&!e.params.centeredslides?e.slideto(e.slides.length-1,0,!1,!0):e.slideto(e.activeindex,0,!1,!0))||s(),i.watchoverflow&&t!==e.snapgrid&&e.checkoverflow(),e.emit("update")}function s(){var t=e.rtltranslate?-1*e.translate:e.translate,i=math.min(math.max(t,e.maxtranslate()),e.mintranslate());e.settranslate(i),e.updateactiveindex(),e.updateslidesclasses()}},t.prototype.changedirection=function(e,t){void 0===t&&(t=!0);var i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(this.$el.removeclass(""+this.params.containermodifierclass+i).addclass(""+this.params.containermodifierclass+e),this.params.direction=e,this.slides.each((function(t,i){"vertical"===e?i.style.width="":i.style.height=""})),this.emit("changedirection"),t&&this.update()),this},t.prototype.init=function(){this.initialized||(this.emit("beforeinit"),this.params.breakpoints&&this.setbreakpoint(),this.addclasses(),this.params.loop&&this.loopcreate(),this.updatesize(),this.updateslides(),this.params.watchoverflow&&this.checkoverflow(),this.params.grabcursor&&this.setgrabcursor(),this.params.preloadimages&&this.preloadimages(),this.params.loop?this.slideto(this.params.initialslide+this.loopedslides,0,this.params.runcallbacksoninit):this.slideto(this.params.initialslide,0,this.params.runcallbacksoninit),this.attachevents(),this.initialized=!0,this.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,s=i.params,a=i.$el,r=i.$wrapperel,n=i.slides;return void 0===i.params||i.destroyed||(i.emit("beforedestroy"),i.initialized=!1,i.detachevents(),s.loop&&i.loopdestroy(),t&&(i.removeclasses(),a.removeattr("style"),r.removeattr("style"),n&&n.length&&n.removeclass([s.slidevisibleclass,s.slideactiveclass,s.slidenextclass,s.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index")),i.emit("destroy"),object.keys(i.eventslisteners).foreach((function(e){i.off(e)})),!1!==e&&(i.$el[0].swiper=null,i.$el.data("swiper",null),d.deleteprops(i)),i.destroyed=!0),null},t.extenddefaults=function(e){d.extend(q,e)},i.extendeddefaults.get=function(){return q},i.defaults.get=function(){return w},i.class.get=function(){return e},i.$.get=function(){return n},object.defineproperties(t,i),t}(p),k={name:"device",proto:{device:a},static:{device:a}},u={name:"support",proto:{support:h},static:{support:h}},_={isedge:!!a.navigator.useragent.match(/edge/g),issafari:function(){var e=a.navigator.useragent.tolowercase();return e.indexof("safari")>=0&&e.indexof("chrome")<0&&e.indexof("android")<0}(),iswebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(a.navigator.useragent)},z={name:"browser",proto:{browser:_},static:{browser:_}},q={name:"resize",create:function(){var e=this;d.extend(e,{resize:{resizehandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeresize"),e.emit("resize"))},orientationchangehandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){a.addeventlistener("resize",this.resize.resizehandler),a.addeventlistener("orientationchange",this.resize.orientationchangehandler)},destroy:function(){a.removeeventlistener("resize",this.resize.resizehandler),a.removeeventlistener("orientationchange",this.resize.orientationchangehandler)}}},j={func:a.mutationobserver||a.webkitmutationobserver,attach:function(e,t){void 0===t&&(t={});var i=this,s=new(0,j.func)((function(e){if(1!==e.length){var t=function(){i.emit("observerupdate",e[0])};a.requestanimationframe?a.requestanimationframe(t):a.settimeout(t,0)}else i.emit("observerupdate",e[0])}));s.observe(e,{attributes:void 0===t.attributes||t.attributes,childlist:void 0===t.childlist||t.childlist,characterdata:void 0===t.characterdata||t.characterdata}),i.observer.observers.push(s)},init:function(){if(h.observer&&this.params.observer){if(this.params.observeparents)for(var e=this.$el.parents(),t=0;te)&&t.$wrapperel.find("."+t.params.slideclass+'[data-swiper-slide-index="'+p+'"]').remove();for(var z=0;z=x&&z<=e&&(void 0===c||e?m.push(z):(z>c&&m.push(z),z'+e+"");return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",t),i.cache&&(this.virtual.cache[t]=s),s},appendslide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;t=0;i-=1)this.virtual.slides.splice(e[i],1),this.params.virtual.cache&&delete this.virtual.cache[e[i]],e[i]0&&0===this.$el.parents("."+this.params.slideactiveclass).length)return;var v=a.innerwidth,f=a.innerheight,m=this.$el.offset();t&&(m.left-=this.$el[0].scrollleft);for(var g=[[m.left,m.top],[m.left+this.width,m.top],[m.left,m.top+this.height],[m.left+this.width,m.top+this.height]],b=0;b=0&&w[0]<=v&&w[1]>=0&&w[1]<=f&&(u=!0)}if(!u)return}this.ishorizontal()?((o||l||d||h)&&(s.preventdefault?s.preventdefault():s.returnvalue=!1),((l||h)&&!t||(o||d)&&t)&&this.slidenext(),((o||d)&&!t||(l||h)&&t)&&this.slideprev()):((o||l||p||c)&&(s.preventdefault?s.preventdefault():s.returnvalue=!1),(l||c)&&this.slidenext(),(o||p)&&this.slideprev()),this.emit("keypress",r)}},enable:function(){this.keyboard.enabled||(n(i).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(n(i).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},ae={name:"keyboard",params:{keyboard:{enabled:!1,onlyinviewport:!0,pageupdown:!0}},create:function(){d.extend(this,{keyboard:{enabled:!1,enable:se.enable.bind(this),disable:se.disable.bind(this),handle:se.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var re={lastscrolltime:d.now(),lasteventbeforesnap:void 0,recentwheelevents:[],event:function(){return a.navigator.useragent.indexof("firefox")>-1?"dommousescroll":function(){var e="onwheel"in i;if(!e){var t=i.createelement("div");t.setattribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&i.implementation&&i.implementation.hasfeature&&!0!==i.implementation.hasfeature("","")&&(e=i.implementation.hasfeature("events.wheel","3.0")),e}()?"wheel":"mousewheel"},normalize:function(e){var t=0,i=0,s=0,a=0;return"detail"in e&&(i=e.detail),"wheeldelta"in e&&(i=-e.wheeldelta/120),"wheeldeltay"in e&&(i=-e.wheeldeltay/120),"wheeldeltax"in e&&(t=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(t=i,i=0),s=10*t,a=10*i,"deltay"in e&&(a=e.deltay),"deltax"in e&&(s=e.deltax),e.shiftkey&&!s&&(s=a,a=0),(s||a)&&e.deltamode&&(1===e.deltamode?(s*=40,a*=40):(s*=800,a*=800)),s&&!t&&(t=s<1?-1:1),a&&!i&&(i=a<1?-1:1),{spinx:t,spiny:i,pixelx:s,pixely:a}},handlemouseenter:function(){this.mouseentered=!0},handlemouseleave:function(){this.mouseentered=!1},handle:function(e){var t=e,i=this,s=i.params.mousewheel;i.params.cssmode&&t.preventdefault();var a=i.$el;if("container"!==i.params.mousewheel.eventstarged&&(a=n(i.params.mousewheel.eventstarged)),!i.mouseentered&&!a[0].contains(t.target)&&!s.releaseonedges)return!0;t.originalevent&&(t=t.originalevent);var r=0,o=i.rtltranslate?-1:1,l=re.normalize(t);if(s.forcetoaxis)if(i.ishorizontal()){if(!(math.abs(l.pixelx)>math.abs(l.pixely)))return!0;r=-l.pixelx*o}else{if(!(math.abs(l.pixely)>math.abs(l.pixelx)))return!0;r=-l.pixely}else r=math.abs(l.pixelx)>math.abs(l.pixely)?-l.pixelx*o:-l.pixely;if(0===r)return!0;if(s.invert&&(r=-r),i.params.freemode){var h={time:d.now(),delta:math.abs(r),direction:math.sign(r)},p=i.mousewheel.lasteventbeforesnap,c=p&&h.time=i.mintranslate()&&(u=i.mintranslate()),u<=i.maxtranslate()&&(u=i.maxtranslate()),i.settransition(0),i.settranslate(u),i.updateprogress(),i.updateactiveindex(),i.updateslidesclasses(),(!v&&i.isbeginning||!f&&i.isend)&&i.updateslidesclasses(),i.params.freemodesticky){cleartimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var m=i.mousewheel.recentwheelevents;m.length>=15&&m.shift();var g=m.length?m[m.length-1]:void 0,b=m[0];if(m.push(h),g&&(h.delta>g.delta||h.direction!==g.direction))m.splice(0);else if(m.length>=15&&h.time-b.time<500&&b.delta-h.delta>=1&&h.delta<=6){var w=r>0?.8:.2;i.mousewheel.lasteventbeforesnap=h,m.splice(0),i.mousewheel.timeout=d.nexttick((function(){i.slidetoclosest(i.params.speed,!0,void 0,w)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=d.nexttick((function(){i.mousewheel.lasteventbeforesnap=h,m.splice(0),i.slidetoclosest(i.params.speed,!0,void 0,.5)}),500))}if(c||i.emit("scroll",t),i.params.autoplay&&i.params.autoplaydisableoninteraction&&i.autoplay.stop(),u===i.mintranslate()||u===i.maxtranslate())return!0}}else{var y={time:d.now(),delta:math.abs(r),direction:math.sign(r),raw:e},x=i.mousewheel.recentwheelevents;x.length>=2&&x.shift();var e=x.length?x[x.length-1]:void 0;if(x.push(y),e?(y.direction!==e.direction||y.delta>e.delta||y.time>e.time+150)&&i.mousewheel.animateslider(y):i.mousewheel.animateslider(y),i.mousewheel.releasescroll(y))return!0}return t.preventdefault?t.preventdefault():t.returnvalue=!1,!1},animateslider:function(e){return e.delta>=6&&d.now()-this.mousewheel.lastscrolltime<60||(e.direction<0?this.isend&&!this.params.loop||this.animating||(this.slidenext(),this.emit("scroll",e.raw)):this.isbeginning&&!this.params.loop||this.animating||(this.slideprev(),this.emit("scroll",e.raw)),this.mousewheel.lastscrolltime=(new a.date).gettime(),!1)},releasescroll:function(e){var t=this.params.mousewheel;if(e.direction<0){if(this.isend&&!this.params.loop&&t.releaseonedges)return!0}else if(this.isbeginning&&!this.params.loop&&t.releaseonedges)return!0;return!1},enable:function(){var e=re.event();if(this.params.cssmode)return this.wrapperel.removeeventlistener(e,this.mousewheel.handle),!0;if(!e)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventstarged&&(t=n(this.params.mousewheel.eventstarged)),t.on("mouseenter",this.mousewheel.handlemouseenter),t.on("mouseleave",this.mousewheel.handlemouseleave),t.on(e,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var e=re.event();if(this.params.cssmode)return this.wrapperel.addeventlistener(e,this.mousewheel.handle),!0;if(!e)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventstarged&&(t=n(this.params.mousewheel.eventstarged)),t.off(e,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},ne={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,i=t.$nextel,s=t.$prevel;s&&s.length>0&&(this.isbeginning?s.addclass(e.disabledclass):s.removeclass(e.disabledclass),s[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](e.lockclass)),i&&i.length>0&&(this.isend?i.addclass(e.disabledclass):i.removeclass(e.disabledclass),i[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](e.lockclass))}},onprevclick:function(e){e.preventdefault(),this.isbeginning&&!this.params.loop||this.slideprev()},onnextclick:function(e){e.preventdefault(),this.isend&&!this.params.loop||this.slidenext()},init:function(){var e,t,i=this.params.navigation;(i.nextel||i.prevel)&&(i.nextel&&(e=n(i.nextel),this.params.uniquenavelements&&"string"==typeof i.nextel&&e.length>1&&1===this.$el.find(i.nextel).length&&(e=this.$el.find(i.nextel))),i.prevel&&(t=n(i.prevel),this.params.uniquenavelements&&"string"==typeof i.prevel&&t.length>1&&1===this.$el.find(i.prevel).length&&(t=this.$el.find(i.prevel))),e&&e.length>0&&e.on("click",this.navigation.onnextclick),t&&t.length>0&&t.on("click",this.navigation.onprevclick),d.extend(this.navigation,{$nextel:e,nextel:e&&e[0],$prevel:t,prevel:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextel,i=e.$prevel;t&&t.length&&(t.off("click",this.navigation.onnextclick),t.removeclass(this.params.navigation.disabledclass)),i&&i.length&&(i.off("click",this.navigation.onprevclick),i.removeclass(this.params.navigation.disabledclass))}},oe={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,s=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,a=this.pagination.$el,r=this.params.loop?math.ceil((s-2*this.loopedslides)/this.params.slidespergroup):this.snapgrid.length;if(this.params.loop?((i=math.ceil((this.activeindex-this.loopedslides)/this.params.slidespergroup))>s-1-2*this.loopedslides&&(i-=s-2*this.loopedslides),i>r-1&&(i-=r),i<0&&"bullets"!==this.params.paginationtype&&(i=r+i)):i=void 0!==this.snapindex?this.snapindex:this.activeindex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,l,d,h=this.pagination.bullets;if(t.dynamicbullets&&(this.pagination.bulletsize=h.eq(0)[this.ishorizontal()?"outerwidth":"outerheight"](!0),a.css(this.ishorizontal()?"width":"height",this.pagination.bulletsize*(t.dynamicmainbullets+4)+"px"),t.dynamicmainbullets>1&&void 0!==this.previousindex&&(this.pagination.dynamicbulletindex+=i-this.previousindex,this.pagination.dynamicbulletindex>t.dynamicmainbullets-1?this.pagination.dynamicbulletindex=t.dynamicmainbullets-1:this.pagination.dynamicbulletindex<0&&(this.pagination.dynamicbulletindex=0)),o=i-this.pagination.dynamicbulletindex,d=((l=o+(math.min(h.length,t.dynamicmainbullets)-1))+o)/2),h.removeclass(t.bulletactiveclass+" "+t.bulletactiveclass+"-next "+t.bulletactiveclass+"-next-next "+t.bulletactiveclass+"-prev "+t.bulletactiveclass+"-prev-prev "+t.bulletactiveclass+"-main"),a.length>1)h.each((function(e,s){var a=n(s),r=a.index();r===i&&a.addclass(t.bulletactiveclass),t.dynamicbullets&&(r>=o&&r<=l&&a.addclass(t.bulletactiveclass+"-main"),r===o&&a.prev().addclass(t.bulletactiveclass+"-prev").prev().addclass(t.bulletactiveclass+"-prev-prev"),r===l&&a.next().addclass(t.bulletactiveclass+"-next").next().addclass(t.bulletactiveclass+"-next-next"))}));else{var p=h.eq(i),c=p.index();if(p.addclass(t.bulletactiveclass),t.dynamicbullets){for(var u=h.eq(o),v=h.eq(l),f=o;f<=l;f+=1)h.eq(f).addclass(t.bulletactiveclass+"-main");if(this.params.loop)if(c>=h.length-t.dynamicmainbullets){for(var m=t.dynamicmainbullets;m>=0;m-=1)h.eq(h.length-m).addclass(t.bulletactiveclass+"-main");h.eq(h.length-t.dynamicmainbullets-1).addclass(t.bulletactiveclass+"-prev")}else u.prev().addclass(t.bulletactiveclass+"-prev").prev().addclass(t.bulletactiveclass+"-prev-prev"),v.next().addclass(t.bulletactiveclass+"-next").next().addclass(t.bulletactiveclass+"-next-next");else u.prev().addclass(t.bulletactiveclass+"-prev").prev().addclass(t.bulletactiveclass+"-prev-prev"),v.next().addclass(t.bulletactiveclass+"-next").next().addclass(t.bulletactiveclass+"-next-next")}}if(t.dynamicbullets){var g=math.min(h.length,t.dynamicmainbullets+4),b=(this.pagination.bulletsize*g-this.pagination.bulletsize)/2-d*this.pagination.bulletsize,w=e?"right":"left";h.css(this.ishorizontal()?w:"top",b+"px")}}if("fraction"===t.type&&(a.find("."+t.currentclass).text('0'+t.formatfractioncurrent(i+1)),a.find("."+t.totalclass).text('0'+t.formatfractiontotal(r))),"progressbar"===t.type){var y;y=t.progressbaropposite?this.ishorizontal()?"vertical":"horizontal":this.ishorizontal()?"horizontal":"vertical";var x=(i+1)/r,e=1,t=1;"horizontal"===y?e=x:t=x,a.find("."+t.progressbarfillclass).transform("translate3d(0,0,0) scalex("+e+") scaley("+t+")").transition(this.params.speed)}"custom"===t.type&&t.rendercustom?(a.html(t.rendercustom(this,i+1,r)),this.emit("paginationrender",this,a[0])):this.emit("paginationupdate",this,a[0]),a[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](t.lockclass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,s="";if("bullets"===e.type){for(var a=this.params.loop?math.ceil((t-2*this.loopedslides)/this.params.slidespergroup):this.snapgrid.length,r=0;r";i.html(s),this.pagination.bullets=i.find("."+e.bulletclass)}"fraction"===e.type&&(s=e.renderfraction?e.renderfraction.call(this,e.currentclass,e.totalclass):' / ',i.html(s)),"progressbar"===e.type&&(s=e.renderprogressbar?e.renderprogressbar.call(this,e.progressbarfillclass):'',i.html(s)),"custom"!==e.type&&this.emit("paginationrender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=n(t.el);0!==i.length&&(e.params.uniquenavelements&&"string"==typeof t.el&&i.length>1&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addclass(t.clickableclass),i.addclass(t.modifierclass+t.type),"bullets"===t.type&&t.dynamicbullets&&(i.addclass(""+t.modifierclass+t.type+"-dynamic"),e.pagination.dynamicbulletindex=0,t.dynamicmainbullets<1&&(t.dynamicmainbullets=1)),"progressbar"===t.type&&t.progressbaropposite&&i.addclass(t.progressbaroppositeclass),t.clickable&&i.on("click","."+t.bulletclass,(function(t){t.preventdefault();var i=n(this).index()*e.params.slidespergroup;e.params.loop&&(i+=e.loopedslides),e.slideto(i)})),d.extend(e.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeclass(e.hiddenclass),t.removeclass(e.modifierclass+e.type),this.pagination.bullets&&this.pagination.bullets.removeclass(e.bulletactiveclass),e.clickable&&t.off("click","."+e.bulletclass)}}},le={settranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtltranslate,i=this.progress,s=e.dragsize,a=e.tracksize,r=e.$dragel,n=e.$el,o=this.params.scrollbar,l=s,d=(a-s)*i;t?(d=-d)>0?(l=s-d,d=0):-d+s>a&&(l=a+d):d<0?(l=s+d,d=0):d+s>a&&(l=a-d),this.ishorizontal()?(r.transform("translate3d("+d+"px, 0, 0)"),r[0].style.width=l+"px"):(r.transform("translate3d(0px, "+d+"px, 0)"),r[0].style.height=l+"px"),o.hide&&(cleartimeout(this.scrollbar.timeout),n[0].style.opacity=1,this.scrollbar.timeout=settimeout((function(){n[0].style.opacity=0,n.transition(400)}),1e3))}},settransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragel.transition(e)},updatesize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragel,i=e.$el;t[0].style.width="",t[0].style.height="";var s,a=this.ishorizontal()?i[0].offsetwidth:i[0].offsetheight,r=this.size/this.virtualsize,n=r*(a/this.size);s="auto"===this.params.scrollbar.dragsize?a*r:parseint(this.params.scrollbar.dragsize,10),this.ishorizontal()?t[0].style.width=s+"px":t[0].style.height=s+"px",i[0].style.display=r>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),d.extend(e,{tracksize:a,divider:r,movedivider:n,dragsize:s}),e.$el[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](this.params.scrollbar.lockclass)}},getpointerposition:function(e){return this.ishorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].clientx:e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].clienty:e.clienty},setdragposition:function(e){var t,i=this.scrollbar,s=this.rtltranslate,a=i.$el,r=i.dragsize,n=i.tracksize,o=i.dragstartpos;t=(i.getpointerposition(e)-a.offset()[this.ishorizontal()?"left":"top"]-(null!==o?o:r/2))/(n-r),t=math.max(math.min(t,1),0),s&&(t=1-t);var l=this.mintranslate()+(this.maxtranslate()-this.mintranslate())*t;this.updateprogress(l),this.settranslate(l),this.updateactiveindex(),this.updateslidesclasses()},ondragstart:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperel,a=i.$el,r=i.$dragel;this.scrollbar.istouched=!0,this.scrollbar.dragstartpos=e.target===r[0]||e.target===r?i.getpointerposition(e)-e.target.getboundingclientrect()[this.ishorizontal()?"left":"top"]:null,e.preventdefault(),e.stoppropagation(),s.transition(100),r.transition(100),i.setdragposition(e),cleartimeout(this.scrollbar.dragtimeout),a.transition(0),t.hide&&a.css("opacity",1),this.params.cssmode&&this.$wrapperel.css("scroll-snap-type","none"),this.emit("scrollbardragstart",e)},ondragmove:function(e){var t=this.scrollbar,i=this.$wrapperel,s=t.$el,a=t.$dragel;this.scrollbar.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,t.setdragposition(e),i.transition(0),s.transition(0),a.transition(0),this.emit("scrollbardragmove",e))},ondragend:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperel,a=i.$el;this.scrollbar.istouched&&(this.scrollbar.istouched=!1,this.params.cssmode&&(this.$wrapperel.css("scroll-snap-type",""),s.transition("")),t.hide&&(cleartimeout(this.scrollbar.dragtimeout),this.scrollbar.dragtimeout=d.nexttick((function(){a.css("opacity",0),a.transition(400)}),1e3)),this.emit("scrollbardragend",e),t.snaponrelease&&this.slidetoclosest())},enabledraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.toucheventstouch,s=this.toucheventsdesktop,a=this.params,r=e.$el[0],n=!(!h.passivelistener||!a.passivelisteners)&&{passive:!1,capture:!1},o=!(!h.passivelistener||!a.passivelisteners)&&{passive:!0,capture:!1};h.touch?(r.addeventlistener(t.start,this.scrollbar.ondragstart,n),r.addeventlistener(t.move,this.scrollbar.ondragmove,n),r.addeventlistener(t.end,this.scrollbar.ondragend,o)):(r.addeventlistener(s.start,this.scrollbar.ondragstart,n),i.addeventlistener(s.move,this.scrollbar.ondragmove,n),i.addeventlistener(s.end,this.scrollbar.ondragend,o))}},disabledraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.toucheventstouch,s=this.toucheventsdesktop,a=this.params,r=e.$el[0],n=!(!h.passivelistener||!a.passivelisteners)&&{passive:!1,capture:!1},o=!(!h.passivelistener||!a.passivelisteners)&&{passive:!0,capture:!1};h.touch?(r.removeeventlistener(t.start,this.scrollbar.ondragstart,n),r.removeeventlistener(t.move,this.scrollbar.ondragmove,n),r.removeeventlistener(t.end,this.scrollbar.ondragend,o)):(r.removeeventlistener(s.start,this.scrollbar.ondragstart,n),i.removeeventlistener(s.move,this.scrollbar.ondragmove,n),i.removeeventlistener(s.end,this.scrollbar.ondragend,o))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,i=this.params.scrollbar,s=n(i.el);this.params.uniquenavelements&&"string"==typeof i.el&&s.length>1&&1===t.find(i.el).length&&(s=t.find(i.el));var a=s.find("."+this.params.scrollbar.dragclass);0===a.length&&(a=n('
'),s.append(a)),d.extend(e,{$el:s,el:s[0],$dragel:a,dragel:a[0]}),i.draggable&&e.enabledraggable()}},destroy:function(){this.scrollbar.disabledraggable()}},de={settransform:function(e,t){var i=this.rtl,s=n(e),a=i?-1:1,r=s.attr("data-swiper-parallax")||"0",o=s.attr("data-swiper-parallax-x"),l=s.attr("data-swiper-parallax-y"),d=s.attr("data-swiper-parallax-scale"),h=s.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.ishorizontal()?(o=r,l="0"):(l=r,o="0"),o=o.indexof("%")>=0?parseint(o,10)*t*a+"%":o*t*a+"px",l=l.indexof("%")>=0?parseint(l,10)*t+"%":l*t+"px",null!=h){var p=h-(h-1)*(1-math.abs(t));s[0].style.opacity=p}if(null==d)s.transform("translate3d("+o+", "+l+", 0px)");else{var c=d-(d-1)*(1-math.abs(t));s.transform("translate3d("+o+", "+l+", 0px) scale("+c+")")}},settranslate:function(){var e=this,t=e.$el,i=e.slides,s=e.progress,a=e.snapgrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.settransform(i,s)})),i.each((function(t,i){var r=i.progress;e.params.slidespergroup>1&&"auto"!==e.params.slidesperview&&(r+=math.ceil(t/2)-s*(a.length-1)),r=math.min(math.max(r,-1),1),n(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.settransform(i,r)}))}))},settransition:function(e){void 0===e&&(e=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){var s=n(i),a=parseint(s.attr("data-swiper-parallax-duration"),10)||e;0===e&&(a=0),s.transition(a)}))}},he={getdistancebetweentouches:function(e){if(e.targettouches.length<2)return 1;var t=e.targettouches[0].pagex,i=e.targettouches[0].pagey,s=e.targettouches[1].pagex,a=e.targettouches[1].pagey;return math.sqrt(math.pow(s-t,2)+math.pow(a-i,2))},ongesturestart:function(e){var t=this.params.zoom,i=this.zoom,s=i.gesture;if(i.fakegesturetouched=!1,i.fakegesturemoved=!1,!h.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targettouches.length<2)return;i.fakegesturetouched=!0,s.scalestart=he.getdistancebetweentouches(e)}s.$slideel&&s.$slideel.length||(s.$slideel=n(e.target).closest("."+this.params.slideclass),0===s.$slideel.length&&(s.$slideel=this.slides.eq(this.activeindex)),s.$imageel=s.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),s.$imagewrapel=s.$imageel.parent("."+t.containerclass),s.maxratio=s.$imagewrapel.attr("data-swiper-zoom")||t.maxratio,0!==s.$imagewrapel.length)?(s.$imageel&&s.$imageel.transition(0),this.zoom.isscaling=!0):s.$imageel=void 0},ongesturechange:function(e){var t=this.params.zoom,i=this.zoom,s=i.gesture;if(!h.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targettouches.length<2)return;i.fakegesturemoved=!0,s.scalemove=he.getdistancebetweentouches(e)}s.$imageel&&0!==s.$imageel.length&&(i.scale=h.gestures?e.scale*i.currentscale:s.scalemove/s.scalestart*i.currentscale,i.scale>s.maxratio&&(i.scale=s.maxratio-1+math.pow(i.scale-s.maxratio+1,.5)),i.scales.touchesstart.x))return void(s.istouched=!1);if(!this.ishorizontal()&&(math.floor(s.miny)===math.floor(s.starty)&&s.touchescurrent.ys.touchesstart.y))return void(s.istouched=!1)}e.cancelable&&e.preventdefault(),e.stoppropagation(),s.ismoved=!0,s.currentx=s.touchescurrent.x-s.touchesstart.x+s.startx,s.currenty=s.touchescurrent.y-s.touchesstart.y+s.starty,s.currentxs.maxx&&(s.currentx=s.maxx-1+math.pow(s.currentx-s.maxx+1,.8)),s.currentys.maxy&&(s.currenty=s.maxy-1+math.pow(s.currenty-s.maxy+1,.8)),a.prevpositionx||(a.prevpositionx=s.touchescurrent.x),a.prevpositiony||(a.prevpositiony=s.touchescurrent.y),a.prevtime||(a.prevtime=date.now()),a.x=(s.touchescurrent.x-a.prevpositionx)/(date.now()-a.prevtime)/2,a.y=(s.touchescurrent.y-a.prevpositiony)/(date.now()-a.prevtime)/2,math.abs(s.touchescurrent.x-a.prevpositionx)<2&&(a.x=0),math.abs(s.touchescurrent.y-a.prevpositiony)<2&&(a.y=0),a.prevpositionx=s.touchescurrent.x,a.prevpositiony=s.touchescurrent.y,a.prevtime=date.now(),i.$imagewrapel.transform("translate3d("+s.currentx+"px, "+s.currenty+"px,0)")}}},ontouchend:function(){var e=this.zoom,t=e.gesture,i=e.image,s=e.velocity;if(t.$imageel&&0!==t.$imageel.length){if(!i.istouched||!i.ismoved)return i.istouched=!1,void(i.ismoved=!1);i.istouched=!1,i.ismoved=!1;var a=300,r=300,n=s.x*a,o=i.currentx+n,l=s.y*r,d=i.currenty+l;0!==s.x&&(a=math.abs((o-i.currentx)/s.x)),0!==s.y&&(r=math.abs((d-i.currenty)/s.y));var h=math.max(a,r);i.currentx=o,i.currenty=d;var p=i.width*e.scale,c=i.height*e.scale;i.minx=math.min(t.slidewidth/2-p/2,0),i.maxx=-i.minx,i.miny=math.min(t.slideheight/2-c/2,0),i.maxy=-i.miny,i.currentx=math.max(math.min(i.currentx,i.maxx),i.minx),i.currenty=math.max(math.min(i.currenty,i.maxy),i.miny),t.$imagewrapel.transition(h).transform("translate3d("+i.currentx+"px, "+i.currenty+"px,0)")}},ontransitionend:function(){var e=this.zoom,t=e.gesture;t.$slideel&&this.previousindex!==this.activeindex&&(t.$imageel&&t.$imageel.transform("translate3d(0,0,0) scale(1)"),t.$imagewrapel&&t.$imagewrapel.transform("translate3d(0,0,0)"),e.scale=1,e.currentscale=1,t.$slideel=void 0,t.$imageel=void 0,t.$imagewrapel=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,i,s,a,r,n,o,l,d,h,p,c,u,v,f,m,g=this.zoom,b=this.params.zoom,w=g.gesture,y=g.image;(w.$slideel||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?w.$slideel=this.$wrapperel.children("."+this.params.slideactiveclass):w.$slideel=this.slides.eq(this.activeindex),w.$imageel=w.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),w.$imagewrapel=w.$imageel.parent("."+b.containerclass)),w.$imageel&&0!==w.$imageel.length)&&(w.$slideel.addclass(""+b.zoomedslideclass),void 0===y.touchesstart.x&&e?(t="touchend"===e.type?e.changedtouches[0].pagex:e.pagex,i="touchend"===e.type?e.changedtouches[0].pagey:e.pagey):(t=y.touchesstart.x,i=y.touchesstart.y),g.scale=w.$imagewrapel.attr("data-swiper-zoom")||b.maxratio,g.currentscale=w.$imagewrapel.attr("data-swiper-zoom")||b.maxratio,e?(f=w.$slideel[0].offsetwidth,m=w.$slideel[0].offsetheight,s=w.$slideel.offset().left+f/2-t,a=w.$slideel.offset().top+m/2-i,o=w.$imageel[0].offsetwidth,l=w.$imageel[0].offsetheight,d=o*g.scale,h=l*g.scale,u=-(p=math.min(f/2-d/2,0)),v=-(c=math.min(m/2-h/2,0)),(r=s*g.scale)u&&(r=u),(n=a*g.scale)v&&(n=v)):(r=0,n=0),w.$imagewrapel.transition(300).transform("translate3d("+r+"px, "+n+"px,0)"),w.$imageel.transition(300).transform("translate3d(0,0,0) scale("+g.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,i=e.gesture;i.$slideel||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?i.$slideel=this.$wrapperel.children("."+this.params.slideactiveclass):i.$slideel=this.slides.eq(this.activeindex),i.$imageel=i.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imagewrapel=i.$imageel.parent("."+t.containerclass)),i.$imageel&&0!==i.$imageel.length&&(e.scale=1,e.currentscale=1,i.$imagewrapel.transition(300).transform("translate3d(0,0,0)"),i.$imageel.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideel.removeclass(""+t.zoomedslideclass),i.$slideel=void 0)},enable:function(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("touchstart"!==this.touchevents.start||!h.passivelistener||!this.params.passivelisteners)&&{passive:!0,capture:!1},i=!h.passivelistener||{passive:!1,capture:!0},s="."+this.params.slideclass;h.gestures?(this.$wrapperel.on("gesturestart",s,e.ongesturestart,t),this.$wrapperel.on("gesturechange",s,e.ongesturechange,t),this.$wrapperel.on("gestureend",s,e.ongestureend,t)):"touchstart"===this.touchevents.start&&(this.$wrapperel.on(this.touchevents.start,s,e.ongesturestart,t),this.$wrapperel.on(this.touchevents.move,s,e.ongesturechange,i),this.$wrapperel.on(this.touchevents.end,s,e.ongestureend,t),this.touchevents.cancel&&this.$wrapperel.on(this.touchevents.cancel,s,e.ongestureend,t)),this.$wrapperel.on(this.touchevents.move,"."+this.params.zoom.containerclass,e.ontouchmove,i)}},disable:function(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("touchstart"!==this.touchevents.start||!h.passivelistener||!this.params.passivelisteners)&&{passive:!0,capture:!1},i=!h.passivelistener||{passive:!1,capture:!0},s="."+this.params.slideclass;h.gestures?(this.$wrapperel.off("gesturestart",s,e.ongesturestart,t),this.$wrapperel.off("gesturechange",s,e.ongesturechange,t),this.$wrapperel.off("gestureend",s,e.ongestureend,t)):"touchstart"===this.touchevents.start&&(this.$wrapperel.off(this.touchevents.start,s,e.ongesturestart,t),this.$wrapperel.off(this.touchevents.move,s,e.ongesturechange,i),this.$wrapperel.off(this.touchevents.end,s,e.ongestureend,t),this.touchevents.cancel&&this.$wrapperel.off(this.touchevents.cancel,s,e.ongestureend,t)),this.$wrapperel.off(this.touchevents.move,"."+this.params.zoom.containerclass,e.ontouchmove,i)}}},pe={loadinslide:function(e,t){void 0===t&&(t=!0);var i=this,s=i.params.lazy;if(void 0!==e&&0!==i.slides.length){var a=i.virtual&&i.params.virtual.enabled?i.$wrapperel.children("."+i.params.slideclass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),r=a.find("."+s.elementclass+":not(."+s.loadedclass+"):not(."+s.loadingclass+")");!a.hasclass(s.elementclass)||a.hasclass(s.loadedclass)||a.hasclass(s.loadingclass)||(r=r.add(a[0])),0!==r.length&&r.each((function(e,r){var o=n(r);o.addclass(s.loadingclass);var l=o.attr("data-background"),d=o.attr("data-src"),h=o.attr("data-srcset"),p=o.attr("data-sizes"),c=o.parent("picture");i.loadimage(o[0],d||l,h,p,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeattr("data-background")):(h&&(o.attr("srcset",h),o.removeattr("data-srcset")),p&&(o.attr("sizes",p),o.removeattr("data-sizes")),c.length&&c.children("source").each((function(e,t){var i=n(t);i.attr("data-srcset")&&(i.attr("srcset",i.attr("data-srcset")),i.removeattr("data-srcset"))})),d&&(o.attr("src",d),o.removeattr("data-src"))),o.addclass(s.loadedclass).removeclass(s.loadingclass),a.find("."+s.preloaderclass).remove(),i.params.loop&&t){var e=a.attr("data-swiper-slide-index");if(a.hasclass(i.params.slideduplicateclass)){var r=i.$wrapperel.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideduplicateclass+")");i.lazy.loadinslide(r.index(),!1)}else{var u=i.$wrapperel.children("."+i.params.slideduplicateclass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadinslide(u.index(),!1)}}i.emit("lazyimageready",a[0],o[0]),i.params.autoheight&&i.updateautoheight()}})),i.emit("lazyimageload",a[0],o[0])}))}},load:function(){var e=this,t=e.$wrapperel,i=e.params,s=e.slides,a=e.activeindex,r=e.virtual&&i.virtual.enabled,o=i.lazy,l=i.slidesperview;function d(e){if(r){if(t.children("."+i.slideclass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(s[e])return!0;return!1}function h(e){return r?n(e).attr("data-swiper-slide-index"):n(e).index()}if("auto"===l&&(l=0),e.lazy.initialimageloaded||(e.lazy.initialimageloaded=!0),e.params.watchslidesvisibility)t.children("."+i.slidevisibleclass).each((function(t,i){var s=r?n(i).attr("data-swiper-slide-index"):n(i).index();e.lazy.loadinslide(s)}));else if(l>1)for(var p=a;p1||o.loadprevnextamount&&o.loadprevnextamount>1){for(var c=o.loadprevnextamount,u=l,v=math.min(a+u+math.max(c,u),s.length),f=math.max(a-math.max(u,c),0),m=a+l;m0&&e.lazy.loadinslide(h(b));var w=t.children("."+i.slideprevclass);w.length>0&&e.lazy.loadinslide(h(w))}}},ce={linearspline:function(e,t){var i,s,a,r,n,o=function(e,t){for(s=-1,i=e.length;i-s>1;)e[a=i+s>>1]<=t?s=a:i=a;return i};return this.x=e,this.y=t,this.lastindex=e.length-1,this.interpolate=function(e){return e?(n=o(this.x,e),r=n-1,(e-this.x[r])*(this.y[n]-this.y[r])/(this.x[n]-this.x[r])+this.y[r]):0},this},getinterpolatefunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new ce.linearspline(this.slidesgrid,e.slidesgrid):new ce.linearspline(this.snapgrid,e.snapgrid))},settranslate:function(e,t){var i,s,a=this,r=a.controller.control;function n(e){var t=a.rtltranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getinterpolatefunction(e),s=-a.controller.spline.interpolate(-t)),s&&"container"!==a.params.controller.by||(i=(e.maxtranslate()-e.mintranslate())/(a.maxtranslate()-a.mintranslate()),s=(t-a.mintranslate())*i+e.mintranslate()),a.params.controller.inverse&&(s=e.maxtranslate()-s),e.updateprogress(s),e.settranslate(s,a),e.updateactiveindex(),e.updateslidesclasses()}if(array.isarray(r))for(var o=0;o0&&(this.isbeginning?(this.a11y.disableel(i),this.a11y.makeelnotfocusable(i)):(this.a11y.enableel(i),this.a11y.makeelfocusable(i))),t&&t.length>0&&(this.isend?(this.a11y.disableel(t),this.a11y.makeelnotfocusable(t)):(this.a11y.enableel(t),this.a11y.makeelfocusable(t)))}},updatepagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(i,s){var a=n(s);e.a11y.makeelfocusable(a),e.a11y.addelrole(a,"button"),e.a11y.addellabel(a,t.paginationbulletmessage.replace(/\{\{index\}\}/,a.index()+1))}))},init:function(){this.$el.append(this.a11y.liveregion);var e,t,i=this.params.a11y;this.navigation&&this.navigation.$nextel&&(e=this.navigation.$nextel),this.navigation&&this.navigation.$prevel&&(t=this.navigation.$prevel),e&&(this.a11y.makeelfocusable(e),this.a11y.addelrole(e,"button"),this.a11y.addellabel(e,i.nextslidemessage),e.on("keydown",this.a11y.onenterkey)),t&&(this.a11y.makeelfocusable(t),this.a11y.addelrole(t,"button"),this.a11y.addellabel(t,i.prevslidemessage),t.on("keydown",this.a11y.onenterkey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletclass,this.a11y.onenterkey)},destroy:function(){var e,t;this.a11y.liveregion&&this.a11y.liveregion.length>0&&this.a11y.liveregion.remove(),this.navigation&&this.navigation.$nextel&&(e=this.navigation.$nextel),this.navigation&&this.navigation.$prevel&&(t=this.navigation.$prevel),e&&e.off("keydown",this.a11y.onenterkey),t&&t.off("keydown",this.a11y.onenterkey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletclass,this.a11y.onenterkey)}},ve={init:function(){if(this.params.history){if(!a.history||!a.history.pushstate)return this.params.history.enabled=!1,void(this.params.hashnavigation.enabled=!0);var e=this.history;e.initialized=!0,e.paths=ve.getpathvalues(),(e.paths.key||e.paths.value)&&(e.scrolltoslide(0,e.paths.value,this.params.runcallbacksoninit),this.params.history.replacestate||a.addeventlistener("popstate",this.history.sethistorypopstate))}},destroy:function(){this.params.history.replacestate||a.removeeventlistener("popstate",this.history.sethistorypopstate)},sethistorypopstate:function(){this.history.paths=ve.getpathvalues(),this.history.scrolltoslide(this.params.speed,this.history.paths.value,!1)},getpathvalues:function(){var e=a.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),t=e.length;return{key:e[t-2],value:e[t-1]}},sethistory:function(e,t){if(this.history.initialized&&this.params.history.enabled){var i=this.slides.eq(t),s=ve.slugify(i.attr("data-history"));a.location.pathname.includes(e)||(s=e+"/"+s);var r=a.history.state;r&&r.value===s||(this.params.history.replacestate?a.history.replacestate({value:s},null,s):a.history.pushstate({value:s},null,s))}},slugify:function(e){return e.tostring().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrolltoslide:function(e,t,i){if(t)for(var s=0,a=this.slides.length;s'),i.append(e)),e.css({height:a+"px"})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=n('
'),t.append(e)));for(var u=0;u-1&&(c=90*f+90*b,o&&(c=90*-f-90*b)),v.transform(e),d.slideshadows){var t=h?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),s=h?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===t.length&&(t=n('
'),v.append(t)),0===s.length&&(s=n('
'),v.append(s)),t.length&&(t[0].style.opacity=math.max(-b,0)),s.length&&(s[0].style.opacity=math.max(b,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),d.shadow)if(h)e.transform("translate3d(0px, "+(a/2+d.shadowoffset)+"px, "+-a/2+"px) rotatex(90deg) rotatez(0deg) scale("+d.shadowscale+")");else{var c=math.abs(c)-90*math.floor(math.abs(c)/90),m=1.5-(math.sin(2*c*math.pi/360)/2+math.cos(2*c*math.pi/360)/2),p=d.shadowscale,z=d.shadowscale/m,k=d.shadowoffset;e.transform("scale3d("+p+", 1, "+z+") translate3d(0px, "+(r/2+k)+"px, "+-r/2/z+"px) rotatex(-90deg)")}var $=_.issafari||_.iswebview?-l/2:0;i.transform("translate3d(0px,0,"+$+"px) rotatex("+(this.ishorizontal()?0:c)+"deg) rotatey("+(this.ishorizontal()?-c:0)+"deg)")},settransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeeffect.shadow&&!this.ishorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},we={settranslate:function(){for(var e=this.slides,t=this.rtltranslate,i=0;i'),s.append(h)),0===p.length&&(p=n('
'),s.append(p)),h.length&&(h[0].style.opacity=math.max(-a,0)),p.length&&(p[0].style.opacity=math.max(a,0))}s.transform("translate3d("+l+"px, "+d+"px, 0px) rotatex("+o+"deg) rotatey("+r+"deg)")}},settransition:function(e){var t=this,i=t.slides,s=t.activeindex,a=t.$wrapperel;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualtranslate&&0!==e){var r=!1;i.eq(s).transitionend((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkittransitionend","transitionend"],i=0;i'),f.append(m)),0===p.length&&(p=n('
'),f.append(p)),m.length&&(m[0].style.opacity=g>0?g:0),p.length&&(p[0].style.opacity=-g>0?-g:0)}}(h.pointerevents||h.prefixedpointerevents)&&(s[0].style.perspectiveorigin=d+"px 50%")},settransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},xe={init:function(){var e=this.params.thumbs,t=this.constructor;e.swiper instanceof t?(this.thumbs.swiper=e.swiper,d.extend(this.thumbs.swiper.originalparams,{watchslidesprogress:!0,slidetoclickedslide:!1}),d.extend(this.thumbs.swiper.params,{watchslidesprogress:!0,slidetoclickedslide:!1})):d.isobject(e.swiper)&&(this.thumbs.swiper=new t(d.extend({},e.swiper,{watchslidesvisibility:!0,watchslidesprogress:!0,slidetoclickedslide:!1})),this.thumbs.swipercreated=!0),this.thumbs.swiper.$el.addclass(this.params.thumbs.thumbscontainerclass),this.thumbs.swiper.on("tap",this.thumbs.onthumbclick)},onthumbclick:function(){var e=this.thumbs.swiper;if(e){var t=e.clickedindex,i=e.clickedslide;if(!(i&&n(i).hasclass(this.params.thumbs.slidethumbactiveclass)||null==t)){var s;if(s=e.params.loop?parseint(n(e.clickedslide).attr("data-swiper-slide-index"),10):t,this.params.loop){var a=this.activeindex;this.slides.eq(a).hasclass(this.params.slideduplicateclass)&&(this.loopfix(),this._clientleft=this.$wrapperel[0].clientleft,a=this.activeindex);var r=this.slides.eq(a).prevall('[data-swiper-slide-index="'+s+'"]').eq(0).index(),o=this.slides.eq(a).nextall('[data-swiper-slide-index="'+s+'"]').eq(0).index();s=void 0===r?o:void 0===o?r:o-athis.previousindex?"next":"prev"}else n=(r=this.realindex)>this.previousindex?"next":"prev";a&&(r+="next"===n?s:-1*s),t.visibleslidesindexes&&t.visibleslidesindexes.indexof(r)<0&&(t.params.centeredslides?r=r>o?r-math.floor(i/2)+1:r+math.floor(i/2)-1:r>o&&(r=r-i+1),t.slideto(r,e?0:void 0))}var h=1,p=this.params.thumbs.slidethumbactiveclass;if(this.params.slidesperview>1&&!this.params.centeredslides&&(h=this.params.slidesperview),this.params.thumbs.multipleactivethumbs||(h=1),h=math.floor(h),t.slides.removeclass(p),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var c=0;c0&&!n(e.target).hasclass(this.params.pagination.bulletclass)&&(!0===this.pagination.$el.hasclass(this.params.pagination.hiddenclass)?this.emit("paginationshow",this):this.emit("paginationhide",this),this.pagination.$el.toggleclass(this.params.pagination.hiddenclass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragsize:"auto",hide:!1,draggable:!1,snaponrelease:!0,lockclass:"swiper-scrollbar-lock",dragclass:"swiper-scrollbar-drag"}},create:function(){d.extend(this,{scrollbar:{init:le.init.bind(this),destroy:le.destroy.bind(this),updatesize:le.updatesize.bind(this),settranslate:le.settranslate.bind(this),settransition:le.settransition.bind(this),enabledraggable:le.enabledraggable.bind(this),disabledraggable:le.disabledraggable.bind(this),setdragposition:le.setdragposition.bind(this),getpointerposition:le.getpointerposition.bind(this),ondragstart:le.ondragstart.bind(this),ondragmove:le.ondragmove.bind(this),ondragend:le.ondragend.bind(this),istouched:!1,timeout:null,dragtimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updatesize(),this.scrollbar.settranslate()},update:function(){this.scrollbar.updatesize()},resize:function(){this.scrollbar.updatesize()},observerupdate:function(){this.scrollbar.updatesize()},settranslate:function(){this.scrollbar.settranslate()},settransition:function(e){this.scrollbar.settransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){d.extend(this,{parallax:{settransform:de.settransform.bind(this),settranslate:de.settranslate.bind(this),settransition:de.settransition.bind(this)}})},on:{beforeinit:function(){this.params.parallax.enabled&&(this.params.watchslidesprogress=!0,this.originalparams.watchslidesprogress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.settranslate()},settranslate:function(){this.params.parallax.enabled&&this.parallax.settranslate()},settransition:function(e){this.params.parallax.enabled&&this.parallax.settransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxratio:3,minratio:1,toggle:!0,containerclass:"swiper-zoom-container",zoomedslideclass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentscale:1,isscaling:!1,gesture:{$slideel:void 0,slidewidth:void 0,slideheight:void 0,$imageel:void 0,$imagewrapel:void 0,maxratio:3},image:{istouched:void 0,ismoved:void 0,currentx:void 0,currenty:void 0,minx:void 0,miny:void 0,maxx:void 0,maxy:void 0,width:void 0,height:void 0,startx:void 0,starty:void 0,touchesstart:{},touchescurrent:{}},velocity:{x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0}};"ongesturestart ongesturechange ongestureend ontouchstart ontouchmove ontouchend ontransitionend toggle enable disable in out".split(" ").foreach((function(i){t[i]=he[i].bind(e)})),d.extend(e,{zoom:t});var i=1;object.defineproperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var s=e.zoom.gesture.$imageel?e.zoom.gesture.$imageel[0]:void 0,a=e.zoom.gesture.$slideel?e.zoom.gesture.$slideel[0]:void 0;e.emit("zoomchange",t,s,a)}i=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchstart:function(e){this.zoom.enabled&&this.zoom.ontouchstart(e)},touchend:function(e){this.zoom.enabled&&this.zoom.ontouchend(e)},doubletap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionend:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.ontransitionend()},slidechange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssmode&&this.zoom.ontransitionend()}}},{name:"lazy",params:{lazy:{enabled:!1,loadprevnext:!1,loadprevnextamount:1,loadontransitionstart:!1,elementclass:"swiper-lazy",loadingclass:"swiper-lazy-loading",loadedclass:"swiper-lazy-loaded",preloaderclass:"swiper-lazy-preloader"}},create:function(){d.extend(this,{lazy:{initialimageloaded:!1,load:pe.load.bind(this),loadinslide:pe.loadinslide.bind(this)}})},on:{beforeinit:function(){this.params.lazy.enabled&&this.params.preloadimages&&(this.params.preloadimages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialslide&&this.lazy.load()},scroll:function(){this.params.freemode&&!this.params.freemodesticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbardragmove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionstart:function(){this.params.lazy.enabled&&(this.params.lazy.loadontransitionstart||!this.params.lazy.loadontransitionstart&&!this.lazy.initialimageloaded)&&this.lazy.load()},transitionend:function(){this.params.lazy.enabled&&!this.params.lazy.loadontransitionstart&&this.lazy.load()},slidechange:function(){this.params.lazy.enabled&&this.params.cssmode&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){d.extend(this,{controller:{control:this.params.controller.control,getinterpolatefunction:ce.getinterpolatefunction.bind(this),settranslate:ce.settranslate.bind(this),settransition:ce.settransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerupdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},settranslate:function(e,t){this.controller.control&&this.controller.settranslate(e,t)},settransition:function(e,t){this.controller.control&&this.controller.settransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationclass:"swiper-notification",prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}"}},create:function(){var e=this;d.extend(e,{a11y:{liveregion:n('')}}),object.keys(ue).foreach((function(t){e.a11y[t]=ue[t].bind(e)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updatenavigation())},toedge:function(){this.params.a11y.enabled&&this.a11y.updatenavigation()},fromedge:function(){this.params.a11y.enabled&&this.a11y.updatenavigation()},paginationupdate:function(){this.params.a11y.enabled&&this.a11y.updatepagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replacestate:!1,key:"slides"}},create:function(){d.extend(this,{history:{init:ve.init.bind(this),sethistory:ve.sethistory.bind(this),sethistorypopstate:ve.sethistorypopstate.bind(this),scrolltoslide:ve.scrolltoslide.bind(this),destroy:ve.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionend:function(){this.history.initialized&&this.history.sethistory(this.params.history.key,this.activeindex)},slidechange:function(){this.history.initialized&&this.params.cssmode&&this.history.sethistory(this.params.history.key,this.activeindex)}}},{name:"hash-navigation",params:{hashnavigation:{enabled:!1,replacestate:!1,watchstate:!1}},create:function(){d.extend(this,{hashnavigation:{initialized:!1,init:fe.init.bind(this),destroy:fe.destroy.bind(this),sethash:fe.sethash.bind(this),onhashcange:fe.onhashcange.bind(this)}})},on:{init:function(){this.params.hashnavigation.enabled&&this.hashnavigation.init()},destroy:function(){this.params.hashnavigation.enabled&&this.hashnavigation.destroy()},transitionend:function(){this.hashnavigation.initialized&&this.hashnavigation.sethash()},slidechange:function(){this.hashnavigation.initialized&&this.params.cssmode&&this.hashnavigation.sethash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitfortransition:!0,disableoninteraction:!0,stoponlastslide:!1,reversedirection:!1}},create:function(){var e=this;d.extend(e,{autoplay:{running:!1,paused:!1,run:me.run.bind(e),start:me.start.bind(e),stop:me.stop.bind(e),pause:me.pause.bind(e),onvisibilitychange:function(){"hidden"===document.visibilitystate&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilitystate&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},ontransitionend:function(t){e&&!e.destroyed&&e.$wrapperel&&t.target===this&&(e.$wrapperel[0].removeeventlistener("transitionend",e.autoplay.ontransitionend),e.$wrapperel[0].removeeventlistener("webkittransitionend",e.autoplay.ontransitionend),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addeventlistener("visibilitychange",this.autoplay.onvisibilitychange))},beforetransitionstart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableoninteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderfirstmove:function(){this.autoplay.running&&(this.params.autoplay.disableoninteraction?this.autoplay.stop():this.autoplay.pause())},touchend:function(){this.params.cssmode&&this.autoplay.paused&&!this.params.autoplay.disableoninteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeeventlistener("visibilitychange",this.autoplay.onvisibilitychange)}}},{name:"effect-fade",params:{fadeeffect:{crossfade:!1}},create:function(){d.extend(this,{fadeeffect:{settranslate:ge.settranslate.bind(this),settransition:ge.settransition.bind(this)}})},on:{beforeinit:function(){if("fade"===this.params.effect){this.classnames.push(this.params.containermodifierclass+"fade");var e={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};d.extend(this.params,e),d.extend(this.originalparams,e)}},settranslate:function(){"fade"===this.params.effect&&this.fadeeffect.settranslate()},settransition:function(e){"fade"===this.params.effect&&this.fadeeffect.settransition(e)}}},{name:"effect-cube",params:{cubeeffect:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94}},create:function(){d.extend(this,{cubeeffect:{settranslate:be.settranslate.bind(this),settransition:be.settransition.bind(this)}})},on:{beforeinit:function(){if("cube"===this.params.effect){this.classnames.push(this.params.containermodifierclass+"cube"),this.classnames.push(this.params.containermodifierclass+"3d");var e={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,resistanceratio:0,spacebetween:0,centeredslides:!1,virtualtranslate:!0};d.extend(this.params,e),d.extend(this.originalparams,e)}},settranslate:function(){"cube"===this.params.effect&&this.cubeeffect.settranslate()},settransition:function(e){"cube"===this.params.effect&&this.cubeeffect.settransition(e)}}},{name:"effect-flip",params:{flipeffect:{slideshadows:!0,limitrotation:!0}},create:function(){d.extend(this,{flipeffect:{settranslate:we.settranslate.bind(this),settransition:we.settransition.bind(this)}})},on:{beforeinit:function(){if("flip"===this.params.effect){this.classnames.push(this.params.containermodifierclass+"flip"),this.classnames.push(this.params.containermodifierclass+"3d");var e={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};d.extend(this.params,e),d.extend(this.originalparams,e)}},settranslate:function(){"flip"===this.params.effect&&this.flipeffect.settranslate()},settransition:function(e){"flip"===this.params.effect&&this.flipeffect.settransition(e)}}},{name:"effect-coverflow",params:{coverfloweffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideshadows:!0}},create:function(){d.extend(this,{coverfloweffect:{settranslate:ye.settranslate.bind(this),settransition:ye.settransition.bind(this)}})},on:{beforeinit:function(){"coverflow"===this.params.effect&&(this.classnames.push(this.params.containermodifierclass+"coverflow"),this.classnames.push(this.params.containermodifierclass+"3d"),this.params.watchslidesprogress=!0,this.originalparams.watchslidesprogress=!0)},settranslate:function(){"coverflow"===this.params.effect&&this.coverfloweffect.settranslate()},settransition:function(e){"coverflow"===this.params.effect&&this.coverfloweffect.settransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleactivethumbs:!0,autoscrolloffset:0,slidethumbactiveclass:"swiper-slide-thumb-active",thumbscontainerclass:"swiper-container-thumbs"}},create:function(){d.extend(this,{thumbs:{swiper:null,init:xe.init.bind(this),update:xe.update.bind(this),onthumbclick:xe.onthumbclick.bind(this)}})},on:{beforeinit:function(){var e=this.params.thumbs;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slidechange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerupdate:function(){this.thumbs.swiper&&this.thumbs.update()},settransition:function(e){var t=this.thumbs.swiper;t&&t.settransition(e)},beforedestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swipercreated&&e&&e.destroy()}}}];return void 0===j.use&&(j.use=j.class.use,j.installmodule=j.class.installmodule),j.use(ee),j})); //分享 !function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.anime=e()}(this,function(){"use strict";var n={update:null,begin:null,loopbegin:null,changebegin:null,change:null,changecomplete:null,loopcomplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineoffset:0},e={duration:1e3,delay:0,enddelay:0,easing:"easeoutelastic(1, .5)",round:0},r=["translatex","translatey","translatez","rotate","rotatex","rotatey","rotatez","scale","scalex","scaley","scalez","skew","skewx","skewy","perspective"],t={css:{},springs:{}};function a(n,e,r){return math.min(math.max(n,e),r)}function o(n,e){return n.indexof(e)>-1}function i(n,e){return n.apply(null,e)}var u={arr:function(n){return array.isarray(n)},obj:function(n){return o(object.prototype.tostring.call(n),"object")},pth:function(n){return u.obj(n)&&n.hasownproperty("totallength")},svg:function(n){return n instanceof svgelement},inp:function(n){return n instanceof htmlinputelement},dom:function(n){return n.nodetype||u.svg(n)},str:function(n){return"string"==typeof n},fnc:function(n){return"function"==typeof n},und:function(n){return void 0===n},hex:function(n){return/(^#[0-9a-f]{6}$)|(^#[0-9a-f]{3}$)/i.test(n)},rgb:function(n){return/^rgb/.test(n)},hsl:function(n){return/^hsl/.test(n)},col:function(n){return u.hex(n)||u.rgb(n)||u.hsl(n)},key:function(r){return!n.hasownproperty(r)&&!e.hasownproperty(r)&&"targets"!==r&&"keyframes"!==r}};function s(n){var e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(function(n){return parsefloat(n)}):[]}function c(n,e){var r=s(n),o=a(u.und(r[0])?1:r[0],.1,100),i=a(u.und(r[1])?100:r[1],.1,100),c=a(u.und(r[2])?10:r[2],.1,100),f=a(u.und(r[3])?0:r[3],.1,100),l=math.sqrt(i/o),d=c/(2*math.sqrt(i*o)),p=d<1?l*math.sqrt(1-d*d):0,v=1,h=d<1?(d*l-f)/p:-f+l;function g(n){var r=e?e*n/1e3:n;return r=d<1?math.exp(-r*d*l)*(v*math.cos(p*r)+h*math.sin(p*r)):(v+h*r)*math.exp(-r*l),0===n||1===n?n:1-r}return e?g:function(){var e=t.springs[n];if(e)return e;for(var r=0,a=0;;)if(1===g(r+=1/6)){if(++a>=16)break}else a=0;var o=r*(1/6)*1e3;return t.springs[n]=o,o}}function f(n,e){void 0===n&&(n=1),void 0===e&&(e=.5);var r=a(n,1,10),t=a(e,.1,2);return function(n){return 0===n||1===n?n:-r*math.pow(2,10*(n-1))*math.sin((n-1-t/(2*math.pi)*math.asin(1/r))*(2*math.pi)/t)}}function l(n){return void 0===n&&(n=10),function(e){return math.round(e*n)*(1/n)}}var d=function(){var n=11,e=1/(n-1);function r(n,e){return 1-3*e+3*n}function t(n,e){return 3*e-6*n}function a(n){return 3*n}function o(n,e,o){return((r(e,o)*n+t(e,o))*n+a(e))*n}function i(n,e,o){return 3*r(e,o)*n*n+2*t(e,o)*n+a(e)}return function(r,t,a,u){if(0<=r&&r<=1&&0<=a&&a<=1){var s=new float32array(n);if(r!==t||a!==u)for(var c=0;c=.001?function(n,e,r,t){for(var a=0;a<4;++a){var u=i(e,r,t);if(0===u)return e;e-=(o(e,r,t)-n)/u}return e}(t,l,r,a):0===d?l:function(n,e,r,t,a){for(var i,u,s=0;(i=o(u=e+(r-e)/2,t,a)-n)>0?r=u:e=u,math.abs(i)>1e-7&&++s<10;);return u}(t,u,u+e,r,a)}}}(),p=function(){var n=["quad","cubic","quart","quint","sine","expo","circ","back","elastic"],e={in:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],f],out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(n,e){return function(r){return 1-f(n,e)(1-r)}}],inout:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(n,e){return function(r){return r<.5?f(n,e)(2*r)/2:1-f(n,e)(-2*r+2)/2}}]},r={linear:[.25,.25,.75,.75]},t=function(t){e[t].foreach(function(e,a){r["ease"+t+n[a]]=e})};for(var a in e)t(a);return r}();function v(n,e){if(u.fnc(n))return n;var r=n.split("(")[0],t=p[r],a=s(n);switch(r){case"spring":return c(n,e);case"cubicbezier":return i(d,a);case"steps":return i(l,a);default:return u.fnc(t)?i(t,a):i(d,t)}}function h(n){try{return document.queryselectorall(n)}catch(n){return}}function g(n,e){for(var r=n.length,t=arguments.length>=2?arguments[1]:void 0,a=[],o=0;o1&&(r-=1),r<1/6?n+6*(e-n)*r:r<.5?e:r<2/3?n+(e-n)*(2/3-r)*6:n}if(0==i)e=r=t=u;else{var f=u<.5?u*(1+i):u+i-u*i,l=2*u-f;e=c(l,f,o+1/3),r=c(l,f,o),t=c(l,f,o-1/3)}return"rgba("+255*e+","+255*r+","+255*t+","+s+")"}(n):void 0;var e,r,t,a}function c(n){var e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(n);if(e)return e[2]}function o(n,e){return u.fnc(n)?n(e.target,e.id,e.total):n}function p(n,e){return n.getattribute(e)}function i(n,e,r){if(b([r,"deg","rad","turn"],c(e)))return e;var a=t.css[e+r];if(!u.und(a))return a;var o=document.createelement(n.tagname),i=n.parentnode&&n.parentnode!==document?n.parentnode:document.body;i.appendchild(o),o.style.position="absolute",o.style.width=100+r;var s=100/o.offsetwidth;i.removechild(o);var c=s*parsefloat(e);return t.css[e+r]=c,c}function b(n,e,r){if(e in n.style){var t=e.replace(/([a-z])([a-z])/g,"$1-$2").tolowercase(),a=n.style[e]||getcomputedstyle(n).getpropertyvalue(t)||"0";return r?i(n,a,r):a}}function d(n,e){return u.dom(n)&&!u.inp(n)&&(p(n,e)||u.svg(n)&&n[e])?"attribute":u.dom(n)&&b(r,e)?"transform":u.dom(n)&&"transform"!==e&&b(n,e)?"css":null!=n[e]?"object":void 0}function t(n){if(u.dom(n)){for(var e,r=n.style.transform||"",t=/(\w+)\(([^)]*)\)/g,a=new map;e=t.exec(r);)a.set(e[1],e[2]);return a}}function f(n,e,r,t){var a,i=o(e,"scale")?1:0+(o(a=e,"translate")||"perspective"===a?"px":o(a,"rotate")||o(a,"skew")?"deg":void 0),u=t(n).get(e)||i;return r&&(r.transforms.list.set(e,u),r.transforms.last=e),t?i(n,u,t):u}function n(n,e,r,t){switch(d(n,e)){case"transform":return f(n,e,t,r);case"css":return b(n,e,r);case"attribute":return p(n,e);default:return n[e]||0}}function a(n,e){var r=/^(\*=|\+=|-=)/.exec(n);if(!r)return n;var t=c(n)||0,a=parsefloat(e),o=parsefloat(n.replace(r[0],""));switch(r[0][0]){case"+":return a+o+t;case"-":return a-o+t;case"*":return a*o+t}}function e(n,e){if(u.col(n))return k(n);var r=c(n),t=r?n.substr(0,n.length-r.length):n;return e&&!/\s/g.test(n)?t+e:t}function l(n,e){return math.sqrt(math.pow(e.x-n.x,2)+math.pow(e.y-n.y,2))}function s(n){for(var e,r=n.points,t=0,a=0;a0&&(t+=l(e,o)),e=o}return t}function j(n){if(n.gettotallength)return n.gettotallength();switch(n.tagname.tolowercase()){case"circle":return o=n,2*math.pi*p(o,"r");case"rect":return 2*p(a=n,"width")+2*p(a,"height");case"line":return l({x:p(t=n,"x1"),y:p(t,"y1")},{x:p(t,"x2"),y:p(t,"y2")});case"polyline":return s(n);case"polygon":return r=(e=n).points,s(e)+l(r.getitem(r.numberofitems-1),r.getitem(0))}var e,r,t,a,o}function q(n,e){var r=e||{},t=r.el||function(n){for(var e=n.parentnode;u.svg(e)&&(e=e.parentnode,u.svg(e.parentnode)););return e}(n),a=t.getboundingclientrect(),o=p(t,"viewbox"),i=a.width,s=a.height,c=r.viewbox||(o?o.split(" "):[0,0,i,s]);return{el:t,viewbox:c,x:c[0]/1,y:c[1]/1,w:i/c[2],h:s/c[3]}}function $(n,e){function r(r){void 0===r&&(r=0);var t=e+r>=1?e+r:0;return n.el.getpointatlength(t)}var t=q(n.el,n.svg),a=r(),o=r(-1),i=r(1);switch(n.property){case"x":return(a.x-t.x)*t.w;case"y":return(a.y-t.y)*t.h;case"angle":return 180*math.atan2(i.y-o.y,i.x-o.x)/math.pi}}function x(n,e){var r=/-?\d*\.?\d+/g,t=e(u.pth(n)?n.totallength:n,e)+"";return{original:t,numbers:t.match(r)?t.match(r).map(number):[0],strings:u.str(n)||e?t.split(r):[]}}function y(n){return g(n?m(u.arr(n)?n.map(y):y(n)):[],function(n,e,r){return r.indexof(n)===e})}function z(n){var e=y(n);return e.map(function(n,r){return{target:n,id:r,total:e.length,transforms:{list:t(n)}}})}function q(n,e){var r=x(e);if(/^spring/.test(r.easing)&&(r.duration=c(r.easing)),u.arr(n)){var t=n.length;2===t&&!u.obj(n[0])?n={value:n}:u.fnc(e.duration)||(r.duration=e.duration/t)}var a=u.arr(n)?n:[n];return a.map(function(n,r){var t=u.obj(n)&&!u.pth(n)?n:{value:n};return u.und(t.delay)&&(t.delay=r?0:e.delay),u.und(t.enddelay)&&(t.enddelay=r===a.length-1?e.enddelay:0),t}).map(function(n){return w(n,r)})}function v(n,e){var r=[],t=e.keyframes;for(var a in t&&(e=w(function(n){for(var e=g(m(n.map(function(n){return object.keys(n)})),function(n){return u.key(n)}).reduce(function(n,e){return n.indexof(e)<0&&n.push(e),n},[]),r={},t=function(t){var a=e[t];r[a]=n.map(function(n){var e={};for(var r in n)u.key(r)?r==a&&(e.value=n[r]):e[r]=n[r];return e})},a=0;a-1&&(u.splice(o,1),r=u.length)}else a.tick(e);t++}n()}else k=cancelanimationframe(k)}return n}();function en(r){void 0===r&&(r={});var t,o=0,i=0,u=0,s=0,c=null;function f(n){var e=window.promise&&new promise(function(n){return c=n});return n.finished=e,e}var l,d,p,v,h,m,y,b,x=(d=m(n,l=r),p=m(e,l),v=v(p,l),h=z(l.targets),m=r(h,v),y=w(m,p),b=j,j++,w(d,{id:b,children:[],animatables:h,animations:m,duration:y.duration,delay:y.delay,enddelay:y.enddelay}));f(x);function k(){var n=x.direction;"alternate"!==n&&(x.direction="normal"!==n?"normal":"reverse"),x.reversed=!x.reversed,t.foreach(function(n){return n.reversed=x.reversed})}function c(n){return x.reversed?x.duration-n:n}function o(){o=0,i=c(x.currenttime)*(1/en.speed)}function p(n,e){e&&e.seek(n-e.timelineoffset)}function i(n){for(var e=0,r=x.animations,t=r.length;e2||(b=math.round(b*p)/p)),v.push(b)}var k=d.length;if(k){m=d[0];for(var c=0;c0&&(x.began=!0,b("begin"),b("loopbegin")),d<=r&&0!==x.currenttime&&i(0),(d>=l&&x.currenttime!==e||!e)&&i(e),d>r&&d=e&&(i=0,x.remaining&&!0!==x.remaining&&x.remaining--,x.remaining?(o=u,b("loopcomplete"),b("loopbegin"),"alternate"===x.direction&&k()):(x.paused=!0,x.completed||(x.completed=!0,b("loopcomplete"),b("complete"),!x.passthrough&&"promise"in window&&(c(),f(x)))))}return x.reset=function(){var n=x.direction;x.passthrough=!1,x.currenttime=0,x.progress=0,x.paused=!0,x.began=!1,x.changebegan=!1,x.completed=!1,x.changecompleted=!1,x.reverseplayback=!1,x.reversed="reverse"===n,x.remaining=x.loop,t=x.children;for(var e=s=t.length;e--;)x.children[e].reset();(x.reversed&&!0!==x.loop||"alternate"===n&&1===x.loop)&&x.remaining++,i(0)},x.set=function(n,e){return g(n,e),x},x.tick=function(n){u=n,o||(o=u),d((u+(i-o))*en.speed)},x.seek=function(n){d(c(n))},x.pause=function(){x.paused=!0,o()},x.play=function(){x.paused&&(x.completed&&x.reset(),x.paused=!1,u.push(x),o(),k||nn())},x.reverse=function(){k(),o()},x.restart=function(){x.reset(),x.play()},x.reset(),x.autoplay&&x.play(),x}function rn(n,e){for(var r=e.length;r--;)b(n,e[r].animatable.target)&&e.splice(r,1)}return"undefined"!=typeof document&&document.addeventlistener("visibilitychange",function(){document.hidden?(u.foreach(function(n){return n.pause()}),_=u.slice(0),u=[]):_.foreach(function(n){return n.play()})}),en.version="3.0.1",en.speed=1,en.running=u,en.remove=function(n){for(var e=y(n),r=u.length;r--;){var t=u[r],a=t.animations,o=t.children;rn(e,a);for(var i=o.length;i--;){var u=o[i],s=u.animations;rn(e,s),s.length||u.children.length||o.splice(i,1)}a.length||o.length||t.pause()}},en.get=n,en.set=g,en.convertpx=i,en.path=function(n,e){var r=u.str(n)?h(n)[0]:n,t=e||100;return function(n){return{property:n,el:r,svg:q(r),totallength:j(r)*(t/100)}}},en.setdashoffset=function(n){var e=j(n);return n.setattribute("stroke-dasharray",e),e},en.stagger=function(n,e){void 0===e&&(e={});var r=e.direction||"normal",t=e.easing?v(e.easing):null,a=e.grid,o=e.axis,i=e.from||0,s="first"===i,c="center"===i,f="last"===i,l=u.arr(n),d=l?parsefloat(n[0]):parsefloat(n),p=l?parsefloat(n[1]):0,h=c(l?n[1]:n)||0,g=e.start||0+(l?d:0),m=[],y=0;return function(n,e,u){if(s&&(i=0),c&&(i=(u-1)/2),f&&(i=u-1),!m.length){for(var v=0;v-1&&u.splice(o,1);for(var c=0;cr||r>=u||0>t||t>=u)&&a.isdark(r,t)}var a=r(n,e);a.adddata(t),a.make(),o=o||0;var u=a.getmodulecount(),f=a.getmodulecount()+2*o,c=function(r,t,e,n){var o=this.isdark,i=1/f;this.isdark=function(a,u){var f=u*i,c=a*i,s=f+i,l=c+i;return o(a,u)&&(r>s||f>e||t>l||c>n)}};this.text=t,this.level=e,this.version=n,this.modulecount=f,this.isdark=i,this.addblank=c}function e(r,e,n,o,i){n=math.max(1,n||1),o=math.min(40,o||40);for(var a=n;o>=a;a+=1)try{return new t(r,e,a,i)}catch(r){}}function n(r,t,e){var n=e.size,o="bold "+e.msize*n+"px "+e.fontname,i=p("")[0].getcontext("2d");i.font=o;var a=i.measuretext(e.label).width,u=e.msize,f=a/n,c=(1-f)*e.mposx,s=(1-u)*e.mposy,l=c+f,h=s+u,d=.01;1===e.mode?r.addblank(0,s-d,n,h+d):r.addblank(c-d,s-d,l+d,h+d),t.fillstyle=e.fontcolor,t.font=o,t.filltext(e.label,c*n,s*n+.75*e.msize*n)}function o(r,t,e){var n=e.size,o=e.image.naturalwidth||1,i=e.image.naturalheight||1,a=e.msize,u=a*o/i,f=(1-u)*e.mposx,c=(1-a)*e.mposy,s=f+u,l=c+a,h=.01;3===e.mode?r.addblank(0,c-h,n,l+h):r.addblank(f-h,c-h,s+h,l+h),t.drawimage(e.image,f*n,c*n,u*n,a*n)}function i(r,t,e){p(e.background).is("img")?t.drawimage(e.background,0,0,e.size,e.size):e.background&&(t.fillstyle=e.background,t.fillrect(e.left,e.top,e.size,e.size));var i=e.mode;1===i||2===i?n(r,t,e):(3===i||4===i)&&o(r,t,e)}function a(r,t,e,n,o,i,a,u){r.isdark(a,u)&&t.rect(n,o,i,i)}function u(r,t,e,n,o,i,a,u,f,c){a?r.moveto(t+i,e):r.moveto(t,e),u?(r.lineto(n-i,e),r.arcto(n,e,n,o,i)):r.lineto(n,e),f?(r.lineto(n,o-i),r.arcto(n,o,t,o,i)):r.lineto(n,o),c?(r.lineto(t+i,o),r.arcto(t,o,t,e,i)):r.lineto(t,o),a?(r.lineto(t,e+i),r.arcto(t,e,n,e,i)):r.lineto(t,e)}function f(r,t,e,n,o,i,a,u,f,c){a&&(r.moveto(t+i,e),r.lineto(t,e),r.lineto(t,e+i),r.arcto(t,e,t+i,e,i)),u&&(r.moveto(n-i,e),r.lineto(n,e),r.lineto(n,e+i),r.arcto(n,e,n-i,e,i)),f&&(r.moveto(n-i,o),r.lineto(n,o),r.lineto(n,o-i),r.arcto(n,o,n-i,o,i)),c&&(r.moveto(t+i,o),r.lineto(t,o),r.lineto(t,o-i),r.arcto(t,o,t+i,o,i))}function c(r,t,e,n,o,i,a,c){var s=r.isdark,l=n+i,h=o+i,d=e.radius*i,g=a-1,v=a+1,p=c-1,w=c+1,m=s(a,c),t=s(g,p),y=s(g,c),e=s(g,w),a=s(a,w),b=s(v,w),k=s(v,c),b=s(v,p),c=s(a,p);m?u(t,n,o,l,h,d,!y&&!c,!y&&!a,!k&&!a,!k&&!c):f(t,n,o,l,h,d,y&&c&&t,y&&a&&e,k&&a&&b,k&&c&&b)}function s(r,t,e){var n,o,i=r.modulecount,u=e.size/i,f=a;for(m&&e.radius>0&&e.radius<=.5&&(f=c),t.beginpath(),n=0;i>n;n+=1)for(o=0;i>o;o+=1){var s=e.left+o*u,l=e.top+n*u,h=u;f(r,t,e,s,l,h,n,o)}if(p(e.fill).is("img")){t.strokestyle="rgba(0,0,0,0.5)",t.linewidth=2,t.stroke();var d=t.globalcompositeoperation;t.globalcompositeoperation="destination-out",t.fill(),t.globalcompositeoperation=d,t.clip(),t.drawimage(e.fill,0,0,e.size,e.size),t.restore()}else t.fillstyle=e.fill,t.fill()}function l(r,t){var n=e(t.text,t.eclevel,t.minversion,t.maxversion,t.quiet);if(!n)return null;var o=p(r).data("qrcode",n),a=o[0].getcontext("2d");return i(n,a,t),s(n,a,t),o}function h(r){var t=p("").attr("width",r.size).attr("height",r.size);return l(t,r)}function d(r){return p("").attr("src",h(r)[0].todataurl("image/png"))}function g(r){var t=e(r.text,r.eclevel,r.minversion,r.maxversion,r.quiet);if(!t)return null;var n,o,i=r.size,a=r.background,u=math.floor,f=t.modulecount,c=u(i/f),s=u(.5*(i-c*f)),l={position:"relative",left:0,top:0,padding:0,margin:0,width:i,height:i},h={position:"absolute",padding:0,margin:0,width:c,height:c,"background-color":r.fill},d=p("
").data("qrcode",t).css(l);for(a&&d.css("background-color",a),n=0;f>n;n+=1)for(o=0;f>o;o+=1)t.isdark(n,o)&&p("
").css(h).css({left:s+o*c,top:s+n*c}).appendto(d);return d}function v(r){return w&&"canvas"===r.render?h(r):w&&"image"===r.render?d(r):g(r)}var p=jquery,w=function(){var r=document.createelement("canvas");return boolean(r.getcontext&&r.getcontext("2d"))}(),m="[object opera]"!==object.prototype.tostring.call(window.opera),t={render:"canvas",minversion:1,maxversion:40,eclevel:"l",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:0,quiet:0,mode:0,msize:.1,mposx:.5,mposy:.5,label:"no label",fontname:"sans",fontcolor:"#000",image:null};p.fn.qrcode=function(r){var t=p.extend({},t,r);return this.each(function(){"canvas"===this.nodename.tolowercase()?l(this,t):p(this).append(v(t))})}}(function(){var r=function(){function r(t,e){if("undefined"==typeof t.length)throw new error(t.length+"/"+e);var n=function(){for(var r=0;re;e+=1){t[e]=new array(r);for(var n=0;r>n;n+=1)t[e][n]=null}return t}(d),t(0,0),t(d-7,0),t(0,d-7),a(),e(),k(r,t),s>=7&&b(r),null==v&&(v=m(s,l,p)),b(v,t)},t=function(r,t){for(var e=-1;7>=e;e+=1)if(!(-1>=r+e||r+e>=d))for(var n=-1;7>=n;n+=1)-1>=t+n||t+n>=d||(e>=0&&6>=e&&(0==n||6==n)||n>=0&&6>=n&&(0==e||6==e)||e>=2&&4>=e&&n>=2&&4>=n?h[r+e][t+n]=!0:h[r+e][t+n]=!1)},y=function(){for(var r=0,t=0,e=0;8>e;e+=1){m(!0,e);var n=i.getlostpoint(w);(0==e||r>n)&&(r=n,t=e)}return t},e=function(){for(var r=8;d-8>r;r+=1)null==h[r][6]&&(h[r][6]=r%2==0);for(var t=8;d-8>t;t+=1)null==h[6][t]&&(h[6][t]=t%2==0)},a=function(){for(var r=i.getpatternposition(s),t=0;t=a;a+=1)for(var u=-2;2>=u;u+=1)-2==a||2==a||-2==u||2==u||0==a&&0==u?h[n+a][o+u]=!0:h[n+a][o+u]=!1}},b=function(r){for(var t=i.getbchtypenumber(s),e=0;18>e;e+=1){var n=!r&&1==(t>>e&1);h[math.floor(e/3)][e%3+d-8-3]=n}for(var e=0;18>e;e+=1){var n=!r&&1==(t>>e&1);h[e%3+d-8-3][math.floor(e/3)]=n}},k=function(r,t){for(var e=l<<3|t,n=i.getbchtypeinfo(e),o=0;15>o;o+=1){var a=!r&&1==(n>>o&1);6>o?h[o][8]=a:8>o?h[o+1][8]=a:h[d-15+o][8]=a}for(var o=0;15>o;o+=1){var a=!r&&1==(n>>o&1);8>o?h[8][d-o-1]=a:9>o?h[8][15-o-1+1]=a:h[8][15-o-1]=a}h[d-8][8]=!r},b=function(r,t){for(var e=-1,n=d-1,o=7,a=0,u=i.getmaskfunction(t),f=d-1;f>0;f-=2)for(6==f&&(f-=1);;){for(var c=0;2>c;c+=1)if(null==h[n][f-c]){var s=!1;a>>o&1));var l=u(n,f-c);l&&(s=!s),h[n][f-c]=s,o-=1,-1==o&&(a+=1,o=7)}if(n+=e,0>n||n>=d){n-=e,e=-e;break}}},c=function(t,e){for(var n=0,o=0,a=0,u=new array(e.length),f=new array(e.length),c=0;c=0?v.getat(p):0}}for(var w=0,h=0;hh;h+=1)for(var c=0;ch;h+=1)for(var c=0;c8*h)throw new error("code length overflow. ("+c.getlengthinbits()+">"+8*h+")");for(c.getlengthinbits()+4<=8*h&&c.put(0,4);c.getlengthinbits()%8!=0;)c.putbit(!1);for(;!(c.getlengthinbits()>=8*h)&&(c.put(o,8),!(c.getlengthinbits()>=8*h));)c.put(a,8);return c(c,n)};return w.adddata=function(r){var t=c(r);p.push(t),v=null},w.isdark=function(r,t){if(0>r||r>=d||0>t||t>=d)throw new error(r+","+t);return h[r][t]},w.getmodulecount=function(){return d},w.make=function(){m(!1,y())},w.createtabletag=function(r,t){r=r||2,t="undefined"==typeof t?4*r:t;var e="";e+='";for(var o=0;o';e+=""}return e+="",e+="
"},w.createimgtag=function(r,t){r=r||2,t="undefined"==typeof t?4*r:t;var e=w.getmodulecount()*r+2*t,n=t,o=e-t;return g(e,e,function(t,e){if(t>=n&&o>t&&e>=n&&o>e){var i=math.floor((t-n)/r),a=math.floor((e-n)/r);return w.isdark(a,i)?0:1}return 1})},w};t.stringtobytes=function(r){for(var t=new array,e=0;ei)t.push(i);else{var a=e[r.charat(o)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(n)}}return t}};var e={mode_number:1,mode_alpha_num:2,mode_8bit_byte:4,mode_kanji:8},n={l:1,m:0,q:3,h:2},o={pattern000:0,pattern001:1,pattern010:2,pattern011:3,pattern100:4,pattern101:5,pattern110:6,pattern111:7},i=function(){var t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,i=7973,u=21522,f={},c=function(r){for(var t=0;0!=r;)t+=1,r>>>=1;return t};return f.getbchtypeinfo=function(r){for(var t=r<<10;c(t)-c(n)>=0;)t^=n<=0;)t^=i<n;n+=1)e=e.multiply(r([1,a.gexp(n)],0));return e},f.getlengthinbits=function(r,t){if(t>=1&&10>t)switch(r){case e.mode_number:return 10;case e.mode_alpha_num:return 9;case e.mode_8bit_byte:return 8;case e.mode_kanji:return 8;default:throw new error("mode:"+r)}else if(27>t)switch(r){case e.mode_number:return 12;case e.mode_alpha_num:return 11;case e.mode_8bit_byte:return 16;case e.mode_kanji:return 10;default:throw new error("mode:"+r)}else{if(!(41>t))throw new error("type:"+t);switch(r){case e.mode_number:return 14;case e.mode_alpha_num:return 13;case e.mode_8bit_byte:return 16;case e.mode_kanji:return 12;default:throw new error("mode:"+r)}}},f.getlostpoint=function(r){for(var t=r.getmodulecount(),e=0,n=0;t>n;n+=1)for(var o=0;t>o;o+=1){for(var i=0,a=r.isdark(n,o),u=-1;1>=u;u+=1)if(!(0>n+u||n+u>=t))for(var f=-1;1>=f;f+=1)0>o+f||o+f>=t||(0!=u||0!=f)&&a==r.isdark(n+u,o+f)&&(i+=1);i>5&&(e+=3+i-5)}for(var n=0;t-1>n;n+=1)for(var o=0;t-1>o;o+=1){var c=0;r.isdark(n,o)&&(c+=1),r.isdark(n+1,o)&&(c+=1),r.isdark(n,o+1)&&(c+=1),r.isdark(n+1,o+1)&&(c+=1),(0==c||4==c)&&(e+=3)}for(var n=0;t>n;n+=1)for(var o=0;t-6>o;o+=1)r.isdark(n,o)&&!r.isdark(n,o+1)&&r.isdark(n,o+2)&&r.isdark(n,o+3)&&r.isdark(n,o+4)&&!r.isdark(n,o+5)&&r.isdark(n,o+6)&&(e+=40);for(var o=0;t>o;o+=1)for(var n=0;t-6>n;n+=1)r.isdark(n,o)&&!r.isdark(n+1,o)&&r.isdark(n+2,o)&&r.isdark(n+3,o)&&r.isdark(n+4,o)&&!r.isdark(n+5,o)&&r.isdark(n+6,o)&&(e+=40);for(var s=0,o=0;t>o;o+=1)for(var n=0;t>n;n+=1)r.isdark(n,o)&&(s+=1);var l=math.abs(100*s/t/t-50)/5;return e+=10*l},f}(),a=function(){for(var r=new array(256),t=new array(256),e=0;8>e;e+=1)r[e]=1<e;e+=1)r[e]=r[e-4]^r[e-5]^r[e-6]^r[e-8];for(var e=0;255>e;e+=1)t[r[e]]=e;var n={};return n.glog=function(r){if(1>r)throw new error("glog("+r+")");return t[r]},n.gexp=function(t){for(;0>t;)t+=255;for(;t>=256;)t-=255;return r[t]},n}(),u=function(){var r=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(r,t){var e={};return e.totalcount=r,e.datacount=t,e},e={},o=function(t,e){switch(e){case n.l:return r[4*(t-1)+0];case n.m:return r[4*(t-1)+1];case n.q:return r[4*(t-1)+2];case n.h:return r[4*(t-1)+3];default:return}};return e.getrsblocks=function(r,e){var n=o(r,e);if("undefined"==typeof n)throw new error("bad rs block @ typenumber:"+r+"/errorcorrectlevel:"+e);for(var i=n.length/3,a=new array,u=0;i>u;u+=1)for(var f=n[3*u+0],c=n[3*u+1],s=n[3*u+2],l=0;f>l;l+=1)a.push(t(c,s));return a},e}(),f=function(){var r=new array,t=0,e={};return e.getbuffer=function(){return r},e.getat=function(t){var e=math.floor(t/8);return 1==(r[e]>>>7-t%8&1)},e.put=function(r,t){for(var n=0;t>n;n+=1)e.putbit(1==(r>>>t-n-1&1))},e.getlengthinbits=function(){return t},e.putbit=function(e){var n=math.floor(t/8);r.length<=n&&r.push(0),e&&(r[n]|=128>>>t%8),t+=1},e},c=function(r){var n=e.mode_8bit_byte,o=t.stringtobytes(r),i={};return i.getmode=function(){return n},i.getlength=function(r){return o.length},i.write=function(r){for(var t=0;t>>8)},t.writebytes=function(r,e,n){e=e||0,n=n||r.length;for(var o=0;n>o;o+=1)t.writebyte(r[o+e])},t.writestring=function(r){for(var e=0;e0&&(t+=","),t+=r[e];return t+="]"},t},l=function(){var r=0,t=0,e=0,n="",o={},i=function(r){n+=string.fromcharcode(a(63&r))},a=function(r){if(0>r);else{if(26>r)return 65+r;if(52>r)return 97+(r-26);if(62>r)return 48+(r-52);if(62==r)return 43;if(63==r)return 47}throw new error("n:"+r)};return o.writebyte=function(n){for(r=r<<8|255&n,t+=8,e+=1;t>=6;)i(r>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(r<<6-t),r=0,t=0),e%3!=0)for(var o=3-e%3,a=0;o>a;a+=1)n+="="},o.tostring=function(){return n},o},h=function(r){var t=r,e=0,n=0,o=0,i={};i.read=function(){for(;8>o;){if(e>=t.length){if(0==o)return-1;throw new error("unexpected end of file./"+o)}var r=t.charat(e);if(e+=1,"="==r)return o=0,-1;r.match(/^\s$/)||(n=n<<6|a(r.charcodeat(0)),o+=6)}var i=n>>>o-8&255;return o-=8,i};var a=function(r){if(r>=65&&90>=r)return r-65;if(r>=97&&122>=r)return r-97+26;if(r>=48&&57>=r)return r-48+52;if(43==r)return 62;if(47==r)return 63;throw new error("c:"+r)};return i},d=function(r,t){var e=r,n=t,o=new array(r*t),i={};i.setpixel=function(r,t,n){o[t*e+r]=n},i.write=function(r){r.writestring("gif87a"),r.writeshort(e),r.writeshort(n),r.writebyte(128),r.writebyte(0),r.writebyte(0),r.writebyte(0),r.writebyte(0),r.writebyte(0),r.writebyte(255),r.writebyte(255),r.writebyte(255),r.writestring(","),r.writeshort(0),r.writeshort(0),r.writeshort(e),r.writeshort(n),r.writebyte(0);var t=2,o=u(t);r.writebyte(t);for(var i=0;o.length-i>255;)r.writebyte(255),r.writebytes(o,i,255),i+=255;r.writebyte(o.length-i),r.writebytes(o,i,o.length-i),r.writebyte(0),r.writestring(";")};var a=function(r){var t=r,e=0,n=0,o={};return o.write=function(r,o){if(r>>>o!=0)throw new error("length over");for(;e+o>=8;)t.writebyte(255&(r<>>=8-e,n=0,e=0;n|=r<0&&t.writebyte(n)},o},u=function(r){for(var t=1<u;u+=1)i.add(string.fromcharcode(u));i.add(string.fromcharcode(t)),i.add(string.fromcharcode(e));var c=s(),l=a(c);l.write(t,n);var h=0,d=string.fromcharcode(o[h]);for(h+=1;hi;i+=1)for(var a=0;r>a;a+=1)o.setpixel(a,i,e(a,i));var u=s();o.write(u);for(var f=l(),c=u.tobytearray(),h=0;hn?t.push(n):2048>n?t.push(192|n>>6,128|63&n):55296>n||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(e++,n=65536+((1023&n)<<10|1023&r.charcodeat(e)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}return t(r)}}(r),r}()),function(r){r.fn.share=function(t){function e(t,e){var n=o(e);"prepend"==e.mode?n.reverse():n,n.length&&r.each(n,function(n,o){var a=i(o,e),u=e.initialized?t.find(".icon-"+o):r('');return!u.length||(u.prop("aria-label","分享到 "+h[o]),u.prop("href",a),"wechat"===o?u.prop("tabindex",-1):u.prop("target","_blank"),void(e.initialized||("prepend"==e.mode?t.prepend(u):t.append(u))))})}function n(r,t){var e=r.find("a.icon-wechat");e.length&&(e.append('

'+t.wechatqrcodetitle+'

'+t.wechatqrcodehelper+"
"),e.find(".qrcode").qrcode({render:"image",size:t.wechatqrcodesize,text:t.url}),e.offset().top<100&&e.find(".wechat-qrcode").addclass("bottom"))}function o(t){0===t.mobilesites.length&&t.sites.length&&(t.mobilesites=t.sites);var e=(u()?t.mobilesites:t.sites.length?t.sites:[]).slice(0),n=t.disabled;return"string"==typeof e&&(e=e.split(/\s*,\s*/)),"string"==typeof n&&(n=n.split(/\s*,\s*/)),a()&&n.push("wechat"),n.length&&r.each(n,function(t,n){var o=r.inarray(n,e);o!==-1&&e.splice(o,1)}),e}function i(r,t){var e=l[r];t.summary=t.description;for(var n in t)if(t.hasownproperty(n)){var o=r+n.replace(/^[a-z]/,function(r){return r.touppercase()}),i=encodeuricomponent(void 0===t[o]?t[n]:t[o]);e=e.replace(new regexp("{{"+n.touppercase()+"}}","g"),i)}return e}function a(){return/micromessenger/i.test(navigator.useragent)}function u(){return r(window).width()<=768}var f=r(document.head),c={url:location.href,site_url:location.origin,source:f.find("[name=site], [name=site]").attr("content")||document.title,title:f.find("[name=title], [name=title]").attr("content")||document.title,description:f.find("[name=description], [name=description]").attr("content")||"",image:r("img:first").prop("src")||"",imageselector:void 0,weibokey:"",wechatqrcodetitle:"微信扫一扫:分享",wechatqrcodehelper:"",wechatqrcodesize:100,mobilesites:[],sites:["weibo","qq","wechat","tencent","douban","qzone","linkedin","diandian","facebook","twitter","google"],disabled:[],initialized:!1},s=r.extend({},c,t),l={qzone:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={{url}}&title={{title}}&desc={{description}}&summary={{summary}}&site={{source}}",qq:"http://connect.qq.com/widget/shareqq/index.html?url={{url}}&title={{title}}&source={{source}}&desc={{description}}&pics={{image}}",tencent:"http://share.v.t.qq.com/index.php?c=share&a=index&title={{title}}&url={{url}}&pic={{image}}",weibo:"http://service.weibo.com/share/share.php?url={{url}}&title={{title}}&pic={{image}}&appkey={{weibokey}}",wechat:"javascript:;",douban:"http://shuo.douban.com/!service/share?href={{url}}&name={{title}}&text={{description}}&image={{image}}&starid=0&aid=0&style=11",diandian:"http://www.diandian.com/share?lo={{url}}&ti={{title}}&type=link",linkedin:"http://www.linkedin.com/sharearticle?mini=true&ro=true&title={{title}}&url={{url}}&summary={{summary}}&source={{source}}&armin=armin",facebook:"https://www.facebook.com/sharer/sharer.php?u={{url}}&title={{title}}&description={{description}}&caption={{subhead}}&link={{url}}&picture={{image}}",twitter:"https://twitter.com/intent/tweet?text={{title}}&url={{url}}&via={{site_url}}",google:"https://plus.google.com/share?url={{url}}"},h={qzone:"qq空间",qq:"qq",tencent:"腾讯微博",weibo:"微博",wechat:"微信",douban:"豆瓣",diandian:"点点",linkedin:"linkedin",facebook:"facebook",twitter:"twitter",google:"google"};this.each(function(){if(r(this).data("initialized"))return!0;var t=r.extend({},s,r(this).data());t.imageselector&&(t.image=r(t.imageselector).map(function(){return r(this).prop("src")}).get().join("||"));var o=r(this).addclass("share-component social-share");e(o,t),n(o,t),r(this).data("initialized",!0)})},r(function(){r(".share-component,.social-share").share()})}(jquery);