function video_ok(){$(".article_content embed, .article_content video, .article_content iframe").each(function(){var h=$(this).attr("width"),d=$(this).attr("height");d&&$(this).css("height",$(this).width()/(h/d))})}function img_ok(){$(".article_content img").each(function(){var h=$(this).attr("width"),d=$(this).attr("height");d&&$(this).css("height",$(this).width()/(h/d))})}$(function(){$("#search").click(function(){$("#search i").toggleclass("fa-remove"),$("#search i").toggleclass("fa-search"),$(".search").slidetoggle(100),$(".nav").slideup(100)})}),$(function(){$("#mnav").click(function(){$("#mnav i").toggleclass("fa-remove"),$("#mnav i").toggleclass("fa-bars"),$(".nav").slidetoggle(100),$(".search").slideup(100)})}),$(function(){$(".user").click(function(){$(".user").toggleclass("active"),$(".login").slidetoggle(100)})}),$(function(){var h=$("#monavber").attr("data-type");$(".navbar>li ").each(function(){try{var d=$(this).attr("id");if("index"==h)"nvabar-item-index"==d&&$("#nvabar-item-index").addclass("active");else if("category"==h){if(null!=(k=$("#monavber").attr("data-infoid")))for(var dd=k.split(" "),g=0;gli").each(function(){$(this).removeclass("active")}),null!=$(this).closest("ul")&&0!=$(this).closest("ul").length&&("munavber"==$(this).closest("ul").attr("id")?$(this).addclass("active"):$(this).closest("ul").closest("li").addclass("active"))})}),$(function(){var h=$(".bottom_tools"),d=$(".qr_tool"),dd=$(".qr_img");$(window).scroll(function(){var d=$(document).height(),dd=$(window).scrolltop(),g=$(window).innerheight();dd>50?$("#scrollup").fadein(200).css("display","block"):$("#scrollup").fadeout(200),h.css("bottom",d-dd>g?40:g+dd+40-d)}),$("#scrollup").click(function(h){h.preventdefault(),$("html,body").animate({scrolltop:0})}),d.hover(function(){dd.fadein()},function(){dd.fadeout()})}),$(function(){$(".article_content").find("img").css({width:"",height:"","max-width":"",style:""})}),$(function(){$(document);$(".widget_tags li").each(function(){var h=parseint(10*math.random()+0);$(this).addclass("tagbgc"+h)})}),function($,window,undefined){$.fn.tabslet=function(options){var defaults={mouseevent:"click",attribute:"href",animation:!1,autorotate:!1,pauseonhover:!0,delay:2e3,active:1,controls:{prev:".prev",next:".next"}},options=$.extend(defaults,options);return this.each(function(){var $this=$(this);options.mouseevent=$this.data("mouseevent")||options.mouseevent,options.attribute=$this.data("attribute")||options.attribute,options.animation=$this.data("animation")||options.animation,options.autorotate=$this.data("autorotate")||options.autorotate,options.pauseonhover=$this.data("pauseonhover")||options.pauseonhover,options.delay=$this.data("delay")||options.delay,options.active=$this.data("active")||options.active,$this.find("> div").hide(),$this.find("> div").eq(options.active-1).show(),$this.find("> ul li").eq(options.active-1).addclass("active");var fn=eval(function(){$(this).trigger("_before"),$this.find("> ul li").removeclass("active"),$(this).addclass("active"),$this.find("> div").hide();var h=$(this).find("a").attr(options.attribute);return options.animation?$this.find(h).animate({opacity:"show"},"slow",function(){$(this).trigger("_after")}):($this.find(h).show(),$(this).trigger("_after")),!1}),init=eval("$this.find('> ul li')."+options.mouseevent+"(fn)"),elements=$this.find("> ul li"),i=options.active-1;function forward(){i=++i%elements.length,"hover"==options.mouseevent?elements.eq(i).trigger("mouseover"):elements.eq(i).click();var h=settimeout(forward,options.delay);$this.mouseover(function(){options.pauseonhover&&cleartimeout(h)})}function move(h){"forward"==h&&(i=++i%elements.length),"backward"==h&&(i=--i%elements.length),elements.eq(i).click()}options.autorotate&&(settimeout(forward,0),options.pauseonhover&&$this.on("mouseleave",function(){settimeout(forward,1e3)})),$this.find(options.controls.next).click(function(){move("forward")}),$this.find(options.controls.prev).click(function(){move("backward")}),$this.on("destroy",function(){$(this).removedata()})})},$(document).ready(function(){$('[data-toggle="tabslet"]').tabslet()})}(jquery),$(function(){$(".hometab").tabslet({animation:!0})}),function(){"use strict";var h,d,dd,g,k,gc,b,u,c,l,a=function(d,dd){function g(h){return math.floor(h)}function k(){var h=ld.params.autoplay,d=ld.slides.eq(ld.activeindex);d.attr("data-swiper-autoplay")&&(h=d.attr("data-swiper-autoplay")||ld.params.autoplay),ld.autoplaytimeoutid=settimeout(function(){ld.params.loop?(ld.fixloop(),ld._slidenext(),ld.emit("onautoplay",ld)):ld.isend?dd.autoplaystoponlast?ld.stopautoplay():(ld._slideto(0),ld.emit("onautoplay",ld)):(ld._slidenext(),ld.emit("onautoplay",ld))},h)}function gc(d,dd){var g=h(d.target);if(!g.is(dd))if("string"==typeof dd)g=g.parents(dd);else if(dd.nodetype){var k;return g.parents().each(function(h,d){d===dd&&(k=dd)}),k?dd:void 0}if(0!==g.length)return g[0]}function b(h,d){d=d||{};var dd=new(window.mutationobserver||window.webkitmutationobserver)(function(h){h.foreach(function(h){ld.onresize(!0),ld.emit("onobserverupdate",ld,h)})});dd.observe(h,{attributes:void 0===d.attributes||d.attributes,childlist:void 0===d.childlist||d.childlist,characterdata:void 0===d.characterdata||d.characterdata}),ld.observers.push(dd)}function u(h){h.originalevent&&(h=h.originalevent);var d=h.keycode||h.charcode;if(!ld.params.allowswipetonext&&(ld.ishorizontal()&&39===d||!ld.ishorizontal()&&40===d))return!1;if(!ld.params.allowswipetoprev&&(ld.ishorizontal()&&37===d||!ld.ishorizontal()&&38===d))return!1;if(!(h.shiftkey||h.altkey||h.ctrlkey||h.metakey||document.activeelement&&document.activeelement.nodename&&("input"===document.activeelement.nodename.tolowercase()||"textarea"===document.activeelement.nodename.tolowercase()))){if(37===d||39===d||38===d||40===d){var dd=!1;if(ld.container.parents("."+ld.params.slideclass).length>0&&0===ld.container.parents("."+ld.params.slideactiveclass).length)return;var g=window.pagexoffset,k=window.pageyoffset,gc=window.innerwidth,b=window.innerheight,u=ld.container.offset();ld.rtl&&(u.left=u.left-ld.container[0].scrollleft);for(var c=[[u.left,u.top],[u.left+ld.width,u.top],[u.left,u.top+ld.height],[u.left+ld.width,u.top+ld.height]],l=0;l=g&&a[0]<=g+gc&&a[1]>=k&&a[1]<=k+b&&(dd=!0)}if(!dd)return}ld.ishorizontal()?(37!==d&&39!==d||(h.preventdefault?h.preventdefault():h.returnvalue=!1),(39===d&&!ld.rtl||37===d&&ld.rtl)&&ld.slidenext(),(37===d&&!ld.rtl||39===d&&ld.rtl)&&ld.slideprev()):(38!==d&&40!==d||(h.preventdefault?h.preventdefault():h.returnvalue=!1),40===d&&ld.slidenext(),38===d&&ld.slideprev()),ld.emit("onkeypress",ld,d)}}function c(h){h.originalevent&&(h=h.originalevent);var d,dd,g,k,gc,b=0,u=ld.rtl?-1:1,c=(dd=0,g=0,k=0,gc=0,"detail"in(d=h)&&(g=d.detail),"wheeldelta"in d&&(g=-d.wheeldelta/120),"wheeldeltay"in d&&(g=-d.wheeldeltay/120),"wheeldeltax"in d&&(dd=-d.wheeldeltax/120),"axis"in d&&d.axis===d.horizontal_axis&&(dd=g,g=0),k=10*dd,gc=10*g,"deltay"in d&&(gc=d.deltay),"deltax"in d&&(k=d.deltax),(k||gc)&&d.deltamode&&(1===d.deltamode?(k*=40,gc*=40):(k*=800,gc*=800)),k&&!dd&&(dd=k<1?-1:1),gc&&!g&&(g=gc<1?-1:1),{spinx:dd,spiny:g,pixelx:k,pixely:gc});if(ld.params.mousewheelforcetoaxis)if(ld.ishorizontal()){if(!(math.abs(c.pixelx)>math.abs(c.pixely)))return;b=c.pixelx*u}else{if(!(math.abs(c.pixely)>math.abs(c.pixelx)))return;b=c.pixely}else b=math.abs(c.pixelx)>math.abs(c.pixely)?-c.pixelx*u:-c.pixely;if(0!==b){if(ld.params.mousewheelinvert&&(b=-b),ld.params.freemode){var l=ld.getwrappertranslate()+b*ld.params.mousewheelsensitivity,a=ld.isbeginning,q=ld.isend;if(l>=ld.mintranslate()&&(l=ld.mintranslate()),l<=ld.maxtranslate()&&(l=ld.maxtranslate()),ld.setwrappertransition(0),ld.setwrappertranslate(l),ld.updateprogress(),ld.updateactiveindex(),(!a&&ld.isbeginning||!q&&ld.isend)&&ld.updateclasses(),ld.params.freemodesticky?(cleartimeout(ld.mousewheel.timeout),ld.mousewheel.timeout=settimeout(function(){ld.slidereset()},300)):ld.params.lazyloading&&ld.lazy&&ld.lazy.load(),ld.emit("onscroll",ld,h),ld.params.autoplay&&ld.params.autoplaydisableoninteraction&&ld.stopautoplay(),0===l||l===ld.maxtranslate())return}else{if((new window.date).gettime()-ld.mousewheel.lastscrolltime>60)if(b<0)if(ld.isend&&!ld.params.loop||ld.animating){if(ld.params.mousewheelreleaseonedges)return!0}else ld.slidenext(),ld.emit("onscroll",ld,h);else if(ld.isbeginning&&!ld.params.loop||ld.animating){if(ld.params.mousewheelreleaseonedges)return!0}else ld.slideprev(),ld.emit("onscroll",ld,h);ld.mousewheel.lastscrolltime=(new window.date).gettime()}return h.preventdefault?h.preventdefault():h.returnvalue=!1,!1}}function l(d,dd){d=h(d);var g,k,gc,b=ld.rtl?-1:1;g=d.attr("data-swiper-parallax")||"0",k=d.attr("data-swiper-parallax-x"),gc=d.attr("data-swiper-parallax-y"),k||gc?(k=k||"0",gc=gc||"0"):ld.ishorizontal()?(k=g,gc="0"):(gc=g,k="0"),k=k.indexof("%")>=0?parseint(k,10)*dd*b+"%":k*dd*b+"px",gc=gc.indexof("%")>=0?parseint(gc,10)*dd+"%":gc*dd+"px",d.transform("translate3d("+k+", "+gc+",0px)")}function q(h){return 0!==h.indexof("on")&&(h=h[0]!==h[0].touppercase()?"on"+h[0].touppercase()+h.substring(1):"on"+h),h}if(!(this instanceof a))return new a(d,dd);var cn={direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,autoplay:!1,autoplaydisableoninteraction:!0,autoplaystoponlast:!1,iosedgeswipedetection:!1,iosedgeswipethreshold: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",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideshadows:!0},flip:{slideshadows:!0,limitrotation:!0},cube:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94},fade:{crossfade:!1},parallax:!1,zoom:!1,zoommax:3,zoommin:1,zoomtoggle:!0,scrollbar:null,scrollbarhide:!0,scrollbardraggable:!1,scrollbarsnaponrelease:!1,keyboardcontrol:!1,mousewheelcontrol:!1,mousewheelreleaseonedges:!1,mousewheelinvert:!1,mousewheelforcetoaxis:!1,mousewheelsensitivity:1,mousewheeleventstarged:"container",hashnav:!1,hashnavwatchstate:!1,history:!1,replacestate:!1,breakpoints:void 0,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,centeredslides:!1,slidesoffsetbefore:0,slidesoffsetafter:0,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,onlyexternal:!1,threshold:0,touchmovestoppropagation:!0,touchreleaseonedges:!1,uniquenavelements:!0,pagination:null,paginationelement:"span",paginationclickable:!1,paginationhide:!1,paginationbulletrender:null,paginationprogressrender:null,paginationfractionrender:null,paginationcustomrender:null,paginationtype:"bullets",resistance:!0,resistanceratio:.85,nextbutton:null,prevbutton:null,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,lazyloading:!1,lazyloadinginprevnext:!1,lazyloadinginprevnextamount:1,lazyloadingontransitionstart:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,control:void 0,controlinverse:!1,controlby:"slide",normalizeslideindex:!0,allowswipetoprev:!0,allowswipetonext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",passivelisteners:!0,containermodifierclass:"swiper-container-",slideclass:"swiper-slide",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",bulletclass:"swiper-pagination-bullet",bulletactiveclass:"swiper-pagination-bullet-active",buttondisabledclass:"swiper-button-disabled",paginationcurrentclass:"swiper-pagination-current",paginationtotalclass:"swiper-pagination-total",paginationhiddenclass:"swiper-pagination-hidden",paginationprogressbarclass:"swiper-pagination-progressbar",paginationclickableclass:"swiper-pagination-clickable",paginationmodifierclass:"swiper-pagination-",lazyloadingclass:"swiper-lazy",lazystatusloadingclass:"swiper-lazy-loading",lazystatusloadedclass:"swiper-lazy-loaded",lazypreloaderclass:"swiper-lazy-preloader",notificationclass:"swiper-notification",preloaderclass:"preloader",zoomcontainerclass:"swiper-zoom-container",observer:!1,observeparents:!1,a11y:!1,prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}",runcallbacksoninit:!0},e=dd&&dd.virtualtranslate;dd=dd||{};var ha={};for(var bg in dd)if("object"!=typeof dd[bg]||null===dd[bg]||dd[bg].nodetype||dd[bg]===window||dd[bg]===document||"undefined"!=typeof dom7&&dd[bg]instanceof dom7||"undefined"!=typeof jquery&&dd[bg]instanceof jquery)ha[bg]=dd[bg];else{ha[bg]={};for(var h in dd[bg])ha[bg][h]=dd[bg][h]}for(var bi in cn)if(void 0===dd[bi])dd[bi]=cn[bi];else if("object"==typeof dd[bi])for(var f in cn[bi])void 0===dd[bi][f]&&(dd[bi][f]=cn[bi][f]);var ld=this;if(ld.params=dd,ld.originalparams=ha,ld.classnames=[],void 0!==h&&"undefined"!=typeof dom7&&(h=dom7),(void 0!==h||(h="undefined"==typeof dom7?window.dom7||window.zepto||window.jquery:dom7))&&(ld.$=h,ld.currentbreakpoint=void 0,ld.getactivebreakpoint=function(){if(!ld.params.breakpoints)return!1;var h,d=!1,dd=[];for(h in ld.params.breakpoints)ld.params.breakpoints.hasownproperty(h)&&dd.push(h);dd.sort(function(h,d){return parseint(h,10)>parseint(d,10)});for(var g=0;g=window.innerwidth&&!d&&(d=h);return d||"max"},ld.setbreakpoint=function(){var h=ld.getactivebreakpoint();if(h&&ld.currentbreakpoint!==h){var d=h in ld.params.breakpoints?ld.params.breakpoints[h]:ld.originalparams,dd=ld.params.loop&&d.slidesperview!==ld.params.slidesperview;for(var g in d)ld.params[g]=d[g];ld.currentbreakpoint=h,dd&&ld.destroyloop&&ld.reloop(!0)}},ld.params.breakpoints&&ld.setbreakpoint(),ld.container=h(d),0!==ld.container.length)){if(ld.container.length>1){var dg=[];return ld.container.each(function(){dg.push(new a(this,dd))}),dg}ld.container[0].swiper=ld,ld.container.data("swiper",ld),ld.classnames.push(ld.params.containermodifierclass+ld.params.direction),ld.params.freemode&&ld.classnames.push(ld.params.containermodifierclass+"free-mode"),ld.support.flexbox||(ld.classnames.push(ld.params.containermodifierclass+"no-flexbox"),ld.params.slidespercolumn=1),ld.params.autoheight&&ld.classnames.push(ld.params.containermodifierclass+"autoheight"),(ld.params.parallax||ld.params.watchslidesvisibility)&&(ld.params.watchslidesprogress=!0),ld.params.touchreleaseonedges&&(ld.params.resistanceratio=0),["cube","coverflow","flip"].indexof(ld.params.effect)>=0&&(ld.support.transforms3d?(ld.params.watchslidesprogress=!0,ld.classnames.push(ld.params.containermodifierclass+"3d")):ld.params.effect="slide"),"slide"!==ld.params.effect&&ld.classnames.push(ld.params.containermodifierclass+ld.params.effect),"cube"===ld.params.effect&&(ld.params.resistanceratio=0,ld.params.slidesperview=1,ld.params.slidespercolumn=1,ld.params.slidespergroup=1,ld.params.centeredslides=!1,ld.params.spacebetween=0,ld.params.virtualtranslate=!0),"fade"!==ld.params.effect&&"flip"!==ld.params.effect||(ld.params.slidesperview=1,ld.params.slidespercolumn=1,ld.params.slidespergroup=1,ld.params.watchslidesprogress=!0,ld.params.spacebetween=0,void 0===e&&(ld.params.virtualtranslate=!0)),ld.params.grabcursor&&ld.support.touch&&(ld.params.grabcursor=!1),ld.wrapper=ld.container.children("."+ld.params.wrapperclass),ld.params.pagination&&(ld.paginationcontainer=h(ld.params.pagination),ld.params.uniquenavelements&&"string"==typeof ld.params.pagination&&ld.paginationcontainer.length>1&&1===ld.container.find(ld.params.pagination).length&&(ld.paginationcontainer=ld.container.find(ld.params.pagination)),"bullets"===ld.params.paginationtype&&ld.params.paginationclickable?ld.paginationcontainer.addclass(ld.params.paginationmodifierclass+"clickable"):ld.params.paginationclickable=!1,ld.paginationcontainer.addclass(ld.params.paginationmodifierclass+ld.params.paginationtype)),(ld.params.nextbutton||ld.params.prevbutton)&&(ld.params.nextbutton&&(ld.nextbutton=h(ld.params.nextbutton),ld.params.uniquenavelements&&"string"==typeof ld.params.nextbutton&&ld.nextbutton.length>1&&1===ld.container.find(ld.params.nextbutton).length&&(ld.nextbutton=ld.container.find(ld.params.nextbutton))),ld.params.prevbutton&&(ld.prevbutton=h(ld.params.prevbutton),ld.params.uniquenavelements&&"string"==typeof ld.params.prevbutton&&ld.prevbutton.length>1&&1===ld.container.find(ld.params.prevbutton).length&&(ld.prevbutton=ld.container.find(ld.params.prevbutton)))),ld.ishorizontal=function(){return"horizontal"===ld.params.direction},ld.rtl=ld.ishorizontal()&&("rtl"===ld.container[0].dir.tolowercase()||"rtl"===ld.container.css("direction")),ld.rtl&&ld.classnames.push(ld.params.containermodifierclass+"rtl"),ld.rtl&&(ld.wrongrtl="-webkit-box"===ld.wrapper.css("display")),ld.params.slidespercolumn>1&&ld.classnames.push(ld.params.containermodifierclass+"multirow"),ld.device.android&&ld.classnames.push(ld.params.containermodifierclass+"android"),ld.container.addclass(ld.classnames.join(" ")),ld.translate=0,ld.progress=0,ld.velocity=0,ld.lockswipetonext=function(){ld.params.allowswipetonext=!1,!1===ld.params.allowswipetoprev&&ld.params.grabcursor&&ld.unsetgrabcursor()},ld.lockswipetoprev=function(){ld.params.allowswipetoprev=!1,!1===ld.params.allowswipetonext&&ld.params.grabcursor&&ld.unsetgrabcursor()},ld.lockswipes=function(){ld.params.allowswipetonext=ld.params.allowswipetoprev=!1,ld.params.grabcursor&&ld.unsetgrabcursor()},ld.unlockswipetonext=function(){ld.params.allowswipetonext=!0,!0===ld.params.allowswipetoprev&&ld.params.grabcursor&&ld.setgrabcursor()},ld.unlockswipetoprev=function(){ld.params.allowswipetoprev=!0,!0===ld.params.allowswipetonext&&ld.params.grabcursor&&ld.setgrabcursor()},ld.unlockswipes=function(){ld.params.allowswipetonext=ld.params.allowswipetoprev=!0,ld.params.grabcursor&&ld.setgrabcursor()},ld.setgrabcursor=function(h){ld.container[0].style.cursor="move",ld.container[0].style.cursor=h?"-webkit-grabbing":"-webkit-grab",ld.container[0].style.cursor=h?"-moz-grabbin":"-moz-grab",ld.container[0].style.cursor=h?"grabbing":"grab"},ld.unsetgrabcursor=function(){ld.container[0].style.cursor=""},ld.params.grabcursor&&ld.setgrabcursor(),ld.imagestoload=[],ld.imagesloaded=0,ld.loadimage=function(h,d,dd,g,k,gc){function b(){gc&&gc()}var u;h.complete&&k?b():d?((u=new window.image).onload=b,u.onerror=b,g&&(u.sizes=g),dd&&(u.srcset=dd),d&&(u.src=d)):b()},ld.preloadimages=function(){function h(){void 0!==ld&&null!==ld&&ld&&(void 0!==ld.imagesloaded&&ld.imagesloaded++,ld.imagesloaded===ld.imagestoload.length&&(ld.params.updateonimagesready&&ld.update(),ld.emit("onimagesready",ld)))}ld.imagestoload=ld.container.find("img");for(var d=0;d1)for(h=0;hld.slides.length)break;d.push(ld.slides.eq(g)[0])}else d.push(ld.slides.eq(ld.activeindex)[0]);for(h=0;hdd?k:dd}dd&&ld.wrapper.css("height",dd+"px")},ld.updatecontainersize=function(){var h,d;h=void 0!==ld.params.width?ld.params.width:ld.container[0].clientwidth,d=void 0!==ld.params.height?ld.params.height:ld.container[0].clientheight,0===h&&ld.ishorizontal()||0===d&&!ld.ishorizontal()||(h=h-parseint(ld.container.css("padding-left"),10)-parseint(ld.container.css("padding-right"),10),d=d-parseint(ld.container.css("padding-top"),10)-parseint(ld.container.css("padding-bottom"),10),ld.width=h,ld.height=d,ld.size=ld.ishorizontal()?ld.width:ld.height)},ld.updateslidessize=function(){ld.slides=ld.wrapper.children("."+ld.params.slideclass),ld.snapgrid=[],ld.slidesgrid=[],ld.slidessizesgrid=[];var h,d=ld.params.spacebetween,dd=-ld.params.slidesoffsetbefore,k=0,gc=0;if(void 0!==ld.size){var b;"string"==typeof d&&d.indexof("%")>=0&&(d=parsefloat(d.replace("%",""))/100*ld.size),ld.virtualsize=-d,ld.rtl?ld.slides.css({marginleft:"",margintop:""}):ld.slides.css({marginright:"",marginbottom:""}),ld.params.slidespercolumn>1&&(b=math.floor(ld.slides.length/ld.params.slidespercolumn)===ld.slides.length/ld.params.slidespercolumn?ld.slides.length:math.ceil(ld.slides.length/ld.params.slidespercolumn)*ld.params.slidespercolumn,"auto"!==ld.params.slidesperview&&"row"===ld.params.slidespercolumnfill&&(b=math.max(b,ld.params.slidesperview*ld.params.slidespercolumn)));var u,c,l=ld.params.slidespercolumn,a=b/l,q=a-(ld.params.slidespercolumn*a-ld.slides.length);for(h=0;h1)"column"===ld.params.slidespercolumnfill?(ha=h-(e=math.floor(h/l))*l,(e>q||e===q&&ha===l-1)&&++ha>=l&&(ha=0,e++),cn=e+ha*b/l,bg.css({"-webkit-box-ordinal-group":cn,"-moz-box-ordinal-group":cn,"-ms-flex-order":cn,"-webkit-order":cn,order:cn})):e=h-(ha=math.floor(h/a))*a,bg.css("margin-"+(ld.ishorizontal()?"top":"left"),0!==ha&&ld.params.spacebetween&&ld.params.spacebetween+"px").attr("data-swiper-column",e).attr("data-swiper-row",ha);"none"!==bg.css("display")&&("auto"===ld.params.slidesperview?(u=ld.ishorizontal()?bg.outerwidth(!0):bg.outerheight(!0),ld.params.roundlengths&&(u=g(u))):(u=(ld.size-(ld.params.slidesperview-1)*d)/ld.params.slidesperview,ld.params.roundlengths&&(u=g(u)),ld.ishorizontal()?ld.slides[h].style.width=u+"px":ld.slides[h].style.height=u+"px"),ld.slides[h].swiperslidesize=u,ld.slidessizesgrid.push(u),ld.params.centeredslides?(dd=dd+u/2+k/2+d,0===k&&0!==h&&(dd=dd-ld.size/2-d),0===h&&(dd=dd-ld.size/2-d),math.abs(dd)<.001&&(dd=0),gc%ld.params.slidespergroup==0&&ld.snapgrid.push(dd),ld.slidesgrid.push(dd)):(gc%ld.params.slidespergroup==0&&ld.snapgrid.push(dd),ld.slidesgrid.push(dd),dd=dd+u+d),ld.virtualsize+=u+d,k=u,gc++)}if(ld.virtualsize=math.max(ld.virtualsize,ld.size)+ld.params.slidesoffsetafter,ld.rtl&&ld.wrongrtl&&("slide"===ld.params.effect||"coverflow"===ld.params.effect)&&ld.wrapper.css({width:ld.virtualsize+ld.params.spacebetween+"px"}),ld.support.flexbox&&!ld.params.setwrappersize||(ld.ishorizontal()?ld.wrapper.css({width:ld.virtualsize+ld.params.spacebetween+"px"}):ld.wrapper.css({height:ld.virtualsize+ld.params.spacebetween+"px"})),ld.params.slidespercolumn>1&&(ld.virtualsize=(u+ld.params.spacebetween)*b,ld.virtualsize=math.ceil(ld.virtualsize/ld.params.slidespercolumn)-ld.params.spacebetween,ld.ishorizontal()?ld.wrapper.css({width:ld.virtualsize+ld.params.spacebetween+"px"}):ld.wrapper.css({height:ld.virtualsize+ld.params.spacebetween+"px"}),ld.params.centeredslides)){for(c=[],h=0;h1&&ld.snapgrid.push(ld.virtualsize-ld.size)}0===ld.snapgrid.length&&(ld.snapgrid=[0]),0!==ld.params.spacebetween&&(ld.ishorizontal()?ld.rtl?ld.slides.css({marginleft:d+"px"}):ld.slides.css({marginright:d+"px"}):ld.slides.css({marginbottom:d+"px"})),ld.params.watchslidesprogress&&ld.updateslidesoffset()}},ld.updateslidesoffset=function(){for(var h=0;hld.size&&(g=!0));for(d=ld.activeindex-1;d>=0;d--)ld.slides[d]&&!g&&(k+=ld.slides[d].swiperslidesize,dd++,k>ld.size&&(g=!0))}else for(h=ld.activeindex+1;h=0&&gc0&&b<=ld.size||gc<=0&&b>=ld.size)&&ld.slides.eq(dd).addclass(ld.params.slidevisibleclass)}g.progress=ld.rtl?-k:k}}},ld.updateprogress=function(h){void 0===h&&(h=ld.translate||0);var d=ld.maxtranslate()-ld.mintranslate(),dd=ld.isbeginning,g=ld.isend;0===d?(ld.progress=0,ld.isbeginning=ld.isend=!0):(ld.progress=(h-ld.mintranslate())/d,ld.isbeginning=ld.progress<=0,ld.isend=ld.progress>=1),ld.isbeginning&&!dd&&ld.emit("onreachbeginning",ld),ld.isend&&!g&&ld.emit("onreachend",ld),ld.params.watchslidesprogress&&ld.updateslidesprogress(h),ld.emit("onprogress",ld,ld.progress)},ld.updateactiveindex=function(){var h,d,dd,g=ld.rtl?ld.translate:-ld.translate;for(d=0;d=ld.slidesgrid[d]&&g=ld.slidesgrid[d]&&g=ld.slidesgrid[d]&&(h=d);ld.params.normalizeslideindex&&(h<0||void 0===h)&&(h=0),(dd=math.floor(h/ld.params.slidespergroup))>=ld.snapgrid.length&&(dd=ld.snapgrid.length-1),h!==ld.activeindex&&(ld.snapindex=dd,ld.previousindex=ld.activeindex,ld.activeindex=h,ld.updateclasses(),ld.updaterealindex())},ld.updaterealindex=function(){ld.realindex=parseint(ld.slides.eq(ld.activeindex).attr("data-swiper-slide-index")||ld.activeindex,10)},ld.updateclasses=function(){ld.slides.removeclass(ld.params.slideactiveclass+" "+ld.params.slidenextclass+" "+ld.params.slideprevclass+" "+ld.params.slideduplicateactiveclass+" "+ld.params.slideduplicatenextclass+" "+ld.params.slideduplicateprevclass);var d=ld.slides.eq(ld.activeindex);d.addclass(ld.params.slideactiveclass),dd.loop&&(d.hasclass(ld.params.slideduplicateclass)?ld.wrapper.children("."+ld.params.slideclass+":not(."+ld.params.slideduplicateclass+')[data-swiper-slide-index="'+ld.realindex+'"]').addclass(ld.params.slideduplicateactiveclass):ld.wrapper.children("."+ld.params.slideclass+"."+ld.params.slideduplicateclass+'[data-swiper-slide-index="'+ld.realindex+'"]').addclass(ld.params.slideduplicateactiveclass));var g=d.next("."+ld.params.slideclass).addclass(ld.params.slidenextclass);ld.params.loop&&0===g.length&&(g=ld.slides.eq(0)).addclass(ld.params.slidenextclass);var k=d.prev("."+ld.params.slideclass).addclass(ld.params.slideprevclass);if(ld.params.loop&&0===k.length&&(k=ld.slides.eq(-1)).addclass(ld.params.slideprevclass),dd.loop&&(g.hasclass(ld.params.slideduplicateclass)?ld.wrapper.children("."+ld.params.slideclass+":not(."+ld.params.slideduplicateclass+')[data-swiper-slide-index="'+g.attr("data-swiper-slide-index")+'"]').addclass(ld.params.slideduplicatenextclass):ld.wrapper.children("."+ld.params.slideclass+"."+ld.params.slideduplicateclass+'[data-swiper-slide-index="'+g.attr("data-swiper-slide-index")+'"]').addclass(ld.params.slideduplicatenextclass),k.hasclass(ld.params.slideduplicateclass)?ld.wrapper.children("."+ld.params.slideclass+":not(."+ld.params.slideduplicateclass+')[data-swiper-slide-index="'+k.attr("data-swiper-slide-index")+'"]').addclass(ld.params.slideduplicateprevclass):ld.wrapper.children("."+ld.params.slideclass+"."+ld.params.slideduplicateclass+'[data-swiper-slide-index="'+k.attr("data-swiper-slide-index")+'"]').addclass(ld.params.slideduplicateprevclass)),ld.paginationcontainer&&ld.paginationcontainer.length>0){var gc,b=ld.params.loop?math.ceil((ld.slides.length-2*ld.loopedslides)/ld.params.slidespergroup):ld.snapgrid.length;if(ld.params.loop?((gc=math.ceil((ld.activeindex-ld.loopedslides)/ld.params.slidespergroup))>ld.slides.length-1-2*ld.loopedslides&&(gc-=ld.slides.length-2*ld.loopedslides),gc>b-1&&(gc-=b),gc<0&&"bullets"!==ld.params.paginationtype&&(gc=b+gc)):gc=void 0!==ld.snapindex?ld.snapindex:ld.activeindex||0,"bullets"===ld.params.paginationtype&&ld.bullets&&ld.bullets.length>0&&(ld.bullets.removeclass(ld.params.bulletactiveclass),ld.paginationcontainer.length>1?ld.bullets.each(function(){h(this).index()===gc&&h(this).addclass(ld.params.bulletactiveclass)}):ld.bullets.eq(gc).addclass(ld.params.bulletactiveclass)),"fraction"===ld.params.paginationtype&&(ld.paginationcontainer.find("."+ld.params.paginationcurrentclass).text(gc+1),ld.paginationcontainer.find("."+ld.params.paginationtotalclass).text(b)),"progress"===ld.params.paginationtype){var u=(gc+1)/b,c=u,l=1;ld.ishorizontal()||(l=u,c=1),ld.paginationcontainer.find("."+ld.params.paginationprogressbarclass).transform("translate3d(0,0,0) scalex("+c+") scaley("+l+")").transition(ld.params.speed)}"custom"===ld.params.paginationtype&&ld.params.paginationcustomrender&&(ld.paginationcontainer.html(ld.params.paginationcustomrender(ld,gc+1,b)),ld.emit("onpaginationrendered",ld,ld.paginationcontainer[0]))}ld.params.loop||(ld.params.prevbutton&&ld.prevbutton&&ld.prevbutton.length>0&&(ld.isbeginning?(ld.prevbutton.addclass(ld.params.buttondisabledclass),ld.params.a11y&&ld.a11y&&ld.a11y.disable(ld.prevbutton)):(ld.prevbutton.removeclass(ld.params.buttondisabledclass),ld.params.a11y&&ld.a11y&&ld.a11y.enable(ld.prevbutton))),ld.params.nextbutton&&ld.nextbutton&&ld.nextbutton.length>0&&(ld.isend?(ld.nextbutton.addclass(ld.params.buttondisabledclass),ld.params.a11y&&ld.a11y&&ld.a11y.disable(ld.nextbutton)):(ld.nextbutton.removeclass(ld.params.buttondisabledclass),ld.params.a11y&&ld.a11y&&ld.a11y.enable(ld.nextbutton))))},ld.updatepagination=function(){if(ld.params.pagination&&ld.paginationcontainer&&ld.paginationcontainer.length>0){var h="";if("bullets"===ld.params.paginationtype){for(var d=ld.params.loop?math.ceil((ld.slides.length-2*ld.loopedslides)/ld.params.slidespergroup):ld.snapgrid.length,dd=0;dd";ld.paginationcontainer.html(h),ld.bullets=ld.paginationcontainer.find("."+ld.params.bulletclass),ld.params.paginationclickable&&ld.params.a11y&&ld.a11y&&ld.a11y.initpagination()}"fraction"===ld.params.paginationtype&&(h=ld.params.paginationfractionrender?ld.params.paginationfractionrender(ld,ld.params.paginationcurrentclass,ld.params.paginationtotalclass):' / ',ld.paginationcontainer.html(h)),"progress"===ld.params.paginationtype&&(h=ld.params.paginationprogressrender?ld.params.paginationprogressrender(ld,ld.params.paginationprogressbarclass):'',ld.paginationcontainer.html(h)),"custom"!==ld.params.paginationtype&&ld.emit("onpaginationrendered",ld,ld.paginationcontainer[0])}},ld.update=function(h){function d(){ld.rtl,ld.translate,dd=math.min(math.max(ld.translate,ld.maxtranslate()),ld.mintranslate()),ld.setwrappertranslate(dd),ld.updateactiveindex(),ld.updateclasses()}var dd;ld&&(ld.updatecontainersize(),ld.updateslidessize(),ld.updateprogress(),ld.updatepagination(),ld.updateclasses(),ld.params.scrollbar&&ld.scrollbar&&ld.scrollbar.set(),h?(ld.controller&&ld.controller.spline&&(ld.controller.spline=void 0),ld.params.freemode?(d(),ld.params.autoheight&&ld.updateautoheight()):(("auto"===ld.params.slidesperview||ld.params.slidesperview>1)&&ld.isend&&!ld.params.centeredslides?ld.slideto(ld.slides.length-1,0,!1,!0):ld.slideto(ld.activeindex,0,!1,!0))||d()):ld.params.autoheight&&ld.updateautoheight())},ld.onresize=function(h){ld.params.onbeforeresize&&ld.params.onbeforeresize(ld),ld.params.breakpoints&&ld.setbreakpoint();var d=ld.params.allowswipetoprev,dd=ld.params.allowswipetonext;ld.params.allowswipetoprev=ld.params.allowswipetonext=!0,ld.updatecontainersize(),ld.updateslidessize(),("auto"===ld.params.slidesperview||ld.params.freemode||h)&&ld.updatepagination(),ld.params.scrollbar&&ld.scrollbar&&ld.scrollbar.set(),ld.controller&&ld.controller.spline&&(ld.controller.spline=void 0);var g=!1;if(ld.params.freemode){var k=math.min(math.max(ld.translate,ld.maxtranslate()),ld.mintranslate());ld.setwrappertranslate(k),ld.updateactiveindex(),ld.updateclasses(),ld.params.autoheight&&ld.updateautoheight()}else ld.updateclasses(),g=("auto"===ld.params.slidesperview||ld.params.slidesperview>1)&&ld.isend&&!ld.params.centeredslides?ld.slideto(ld.slides.length-1,0,!1,!0):ld.slideto(ld.activeindex,0,!1,!0);ld.params.lazyloading&&!g&&ld.lazy&&ld.lazy.load(),ld.params.allowswipetoprev=d,ld.params.allowswipetonext=dd,ld.params.onafterresize&&ld.params.onafterresize(ld)},ld.toucheventsdesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerenabled?ld.toucheventsdesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.mspointerenabled&&(ld.toucheventsdesktop={start:"mspointerdown",move:"mspointermove",end:"mspointerup"}),ld.touchevents={start:ld.support.touch||!ld.params.simulatetouch?"touchstart":ld.toucheventsdesktop.start,move:ld.support.touch||!ld.params.simulatetouch?"touchmove":ld.toucheventsdesktop.move,end:ld.support.touch||!ld.params.simulatetouch?"touchend":ld.toucheventsdesktop.end},(window.navigator.pointerenabled||window.navigator.mspointerenabled)&&("container"===ld.params.toucheventstarget?ld.container:ld.wrapper).addclass("swiper-wp8-"+ld.params.direction),ld.initevents=function(h){var d=h?"off":"on",g=h?"removeeventlistener":"addeventlistener",k="container"===ld.params.toucheventstarget?ld.container[0]:ld.wrapper[0],gc=ld.support.touch?k:document,b=!!ld.params.nested;if(ld.browser.ie)k[g](ld.touchevents.start,ld.ontouchstart,!1),gc[g](ld.touchevents.move,ld.ontouchmove,b),gc[g](ld.touchevents.end,ld.ontouchend,!1);else{if(ld.support.touch){var u=!("touchstart"!==ld.touchevents.start||!ld.support.passivelistener||!ld.params.passivelisteners)&&{passive:!0,capture:!1};k[g](ld.touchevents.start,ld.ontouchstart,u),k[g](ld.touchevents.move,ld.ontouchmove,b),k[g](ld.touchevents.end,ld.ontouchend,u)}(dd.simulatetouch&&!ld.device.ios&&!ld.device.android||dd.simulatetouch&&!ld.support.touch&&ld.device.ios)&&(k[g]("mousedown",ld.ontouchstart,!1),document[g]("mousemove",ld.ontouchmove,b),document[g]("mouseup",ld.ontouchend,!1))}window[g]("resize",ld.onresize),ld.params.nextbutton&&ld.nextbutton&&ld.nextbutton.length>0&&(ld.nextbutton[d]("click",ld.onclicknext),ld.params.a11y&&ld.a11y&&ld.nextbutton[d]("keydown",ld.a11y.onenterkey)),ld.params.prevbutton&&ld.prevbutton&&ld.prevbutton.length>0&&(ld.prevbutton[d]("click",ld.onclickprev),ld.params.a11y&&ld.a11y&&ld.prevbutton[d]("keydown",ld.a11y.onenterkey)),ld.params.pagination&&ld.params.paginationclickable&&(ld.paginationcontainer[d]("click","."+ld.params.bulletclass,ld.onclickindex),ld.params.a11y&&ld.a11y&&ld.paginationcontainer[d]("keydown","."+ld.params.bulletclass,ld.a11y.onenterkey)),(ld.params.preventclicks||ld.params.preventclickspropagation)&&k[g]("click",ld.preventclicks,!0)},ld.attachevents=function(){ld.initevents()},ld.detachevents=function(){ld.initevents(!0)},ld.allowclick=!0,ld.preventclicks=function(h){ld.allowclick||(ld.params.preventclicks&&h.preventdefault(),ld.params.preventclickspropagation&&ld.animating&&(h.stoppropagation(),h.stopimmediatepropagation()))},ld.onclicknext=function(h){h.preventdefault(),ld.isend&&!ld.params.loop||ld.slidenext()},ld.onclickprev=function(h){h.preventdefault(),ld.isbeginning&&!ld.params.loop||ld.slideprev()},ld.onclickindex=function(d){d.preventdefault();var dd=h(this).index()*ld.params.slidespergroup;ld.params.loop&&(dd+=ld.loopedslides),ld.slideto(dd)},ld.updateclickedslide=function(d){var dd=gc(d,"."+ld.params.slideclass),g=!1;if(dd)for(var k=0;kld.slides.length-ld.loopedslides+c/2?(ld.fixloop(),u=ld.wrapper.children("."+ld.params.slideclass+'[data-swiper-slide-index="'+b+'"]:not(.'+ld.params.slideduplicateclass+")").eq(0).index(),settimeout(function(){ld.slideto(u)},0)):ld.slideto(u):u>ld.slides.length-c?(ld.fixloop(),u=ld.wrapper.children("."+ld.params.slideclass+'[data-swiper-slide-index="'+b+'"]:not(.'+ld.params.slideduplicateclass+")").eq(0).index(),settimeout(function(){ld.slideto(u)},0)):ld.slideto(u)}else ld.slideto(u)}};var p,dv,at,fo,dgg,v,ck,gcd,hf,w,fe,ge,fh="input, select, textarea, button, video",i=date.now(),j=[];ld.animating=!1,ld.touches={startx:0,starty:0,currentx:0,currenty:0,diff:0},ld.ontouchstart=function(d){if(d.originalevent&&(d=d.originalevent),(fe="touchstart"===d.type)||!("which"in d)||3!==d.which){if(ld.params.noswiping&&gc(d,"."+ld.params.noswipingclass))return void(ld.allowclick=!0);if(!ld.params.swipehandler||gc(d,ld.params.swipehandler)){var dd=ld.touches.currentx="touchstart"===d.type?d.targettouches[0].pagex:d.pagex,g=ld.touches.currenty="touchstart"===d.type?d.targettouches[0].pagey:d.pagey;if(!(ld.device.ios&&ld.params.iosedgeswipedetection&&dd<=ld.params.iosedgeswipethreshold)){if(p=!0,dv=!1,at=!0,dgg=void 0,ge=void 0,ld.touches.startx=dd,ld.touches.starty=g,fo=date.now(),ld.allowclick=!0,ld.updatecontainersize(),ld.swipedirection=void 0,ld.params.threshold>0&&(gcd=!1),"touchstart"!==d.type){var k=!0;h(d.target).is(fh)&&(k=!1),document.activeelement&&h(document.activeelement).is(fh)&&document.activeelement.blur(),k&&d.preventdefault()}ld.emit("ontouchstart",ld,d)}}}},ld.ontouchmove=function(d){if(d.originalevent&&(d=d.originalevent),!fe||"mousemove"!==d.type){if(d.preventedbynestedswiper)return ld.touches.startx="touchmove"===d.type?d.targettouches[0].pagex:d.pagex,void(ld.touches.starty="touchmove"===d.type?d.targettouches[0].pagey:d.pagey);if(ld.params.onlyexternal)return ld.allowclick=!1,void(p&&(ld.touches.startx=ld.touches.currentx="touchmove"===d.type?d.targettouches[0].pagex:d.pagex,ld.touches.starty=ld.touches.currenty="touchmove"===d.type?d.targettouches[0].pagey:d.pagey,fo=date.now()));if(fe&&ld.params.touchreleaseonedges&&!ld.params.loop)if(ld.ishorizontal()){if(ld.touches.currentxld.touches.startx&&ld.translate>=ld.mintranslate())return}else if(ld.touches.currentyld.touches.starty&&ld.translate>=ld.mintranslate())return;if(fe&&document.activeelement&&d.target===document.activeelement&&h(d.target).is(fh))return dv=!0,void(ld.allowclick=!1);if(at&&ld.emit("ontouchmove",ld,d),!(d.targettouches&&d.targettouches.length>1)){var g;if(ld.touches.currentx="touchmove"===d.type?d.targettouches[0].pagex:d.pagex,ld.touches.currenty="touchmove"===d.type?d.targettouches[0].pagey:d.pagey,void 0===dgg)ld.ishorizontal()&&ld.touches.currenty===ld.touches.starty||!ld.ishorizontal()&&ld.touches.currentx===ld.touches.startx?dgg=!1:(g=180*math.atan2(math.abs(ld.touches.currenty-ld.touches.starty),math.abs(ld.touches.currentx-ld.touches.startx))/math.pi,dgg=ld.ishorizontal()?g>ld.params.touchangle:90-g>ld.params.touchangle);if(dgg&&ld.emit("ontouchmoveopposite",ld,d),void 0===ge&&(ld.touches.currentx===ld.touches.startx&&ld.touches.currenty===ld.touches.starty||(ge=!0)),p){if(dgg)return void(p=!1);if(ge){ld.allowclick=!1,ld.emit("onslidermove",ld,d),d.preventdefault(),ld.params.touchmovestoppropagation&&!ld.params.nested&&d.stoppropagation(),dv||(dd.loop&&ld.fixloop(),ck=ld.getwrappertranslate(),ld.setwrappertransition(0),ld.animating&&ld.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"),ld.params.autoplay&&ld.autoplaying&&(ld.params.autoplaydisableoninteraction?ld.stopautoplay():ld.pauseautoplay()),w=!1,!ld.params.grabcursor||!0!==ld.params.allowswipetonext&&!0!==ld.params.allowswipetoprev||ld.setgrabcursor(!0)),dv=!0;var k=ld.touches.diff=ld.ishorizontal()?ld.touches.currentx-ld.touches.startx:ld.touches.currenty-ld.touches.starty;k*=ld.params.touchratio,ld.rtl&&(k=-k),ld.swipedirection=k>0?"prev":"next",v=k+ck;var gc=!0;if(k>0&&v>ld.mintranslate()?(gc=!1,ld.params.resistance&&(v=ld.mintranslate()-1+math.pow(-ld.mintranslate()+ck+k,ld.params.resistanceratio))):k<0&&vck&&(v=ck),ld.params.threshold>0){if(!(math.abs(k)>ld.params.threshold||gcd))return void(v=ck);if(!gcd)return gcd=!0,ld.touches.startx=ld.touches.currentx,ld.touches.starty=ld.touches.currenty,v=ck,void(ld.touches.diff=ld.ishorizontal()?ld.touches.currentx-ld.touches.startx:ld.touches.currenty-ld.touches.starty)}ld.params.followfinger&&((ld.params.freemode||ld.params.watchslidesprogress)&&ld.updateactiveindex(),ld.params.freemode&&(0===j.length&&j.push({position:ld.touches[ld.ishorizontal()?"startx":"starty"],time:fo}),j.push({position:ld.touches[ld.ishorizontal()?"currentx":"currenty"],time:(new window.date).gettime()})),ld.updateprogress(v),ld.setwrappertranslate(v))}}}}},ld.ontouchend=function(d){if(d.originalevent&&(d=d.originalevent),at&&ld.emit("ontouchend",ld,d),at=!1,p){ld.params.grabcursor&&dv&&p&&(!0===ld.params.allowswipetonext||!0===ld.params.allowswipetoprev)&&ld.setgrabcursor(!1);var dd,g=date.now(),k=g-fo;if(ld.allowclick&&(ld.updateclickedslide(d),ld.emit("ontap",ld,d),k<300&&g-i>300&&(hf&&cleartimeout(hf),hf=settimeout(function(){ld&&(ld.params.paginationhide&&ld.paginationcontainer.length>0&&!h(d.target).hasclass(ld.params.bulletclass)&&ld.paginationcontainer.toggleclass(ld.params.paginationhiddenclass),ld.emit("onclick",ld,d))},300)),k<300&&g-i<300&&(hf&&cleartimeout(hf),ld.emit("ondoubletap",ld,d))),i=date.now(),settimeout(function(){ld&&(ld.allowclick=!0)},0),!p||!dv||!ld.swipedirection||0===ld.touches.diff||v===ck)return void(p=dv=!1);if(p=dv=!1,dd=ld.params.followfinger?ld.rtl?ld.translate:-ld.translate:-v,ld.params.freemode){if(dd<-ld.mintranslate())return void ld.slideto(ld.activeindex);if(dd>-ld.maxtranslate())return void(ld.slides.length1){var gc=j.pop(),b=j.pop(),u=gc.position-b.position,c=gc.time-b.time;ld.velocity=u/c,ld.velocity=ld.velocity/2,math.abs(ld.velocity)150||(new window.date).gettime()-gc.time>300)&&(ld.velocity=0)}else ld.velocity=0;ld.velocity=ld.velocity*ld.params.freemodemomentumvelocityratio,j.length=0;var l=1e3*ld.params.freemodemomentumratio,a=ld.velocity*l,q=ld.translate+a;ld.rtl&&(q=-q);var cn,e=!1,ha=20*math.abs(ld.velocity)*ld.params.freemodemomentumbounceratio;if(qld.mintranslate())ld.params.freemodemomentumbounce?(q-ld.mintranslate()>ha&&(q=ld.mintranslate()+ha),cn=ld.mintranslate(),e=!0,w=!0):q=ld.mintranslate();else if(ld.params.freemodesticky){var bg,h=0;for(h=0;h-q){bg=h;break}q=math.abs(ld.snapgrid[bg]-q)=ld.params.longswipesms)&&(ld.updateprogress(),ld.updateactiveindex()))}var bi,f=0,dg=ld.slidessizesgrid[0];for(bi=0;bi=ld.slidesgrid[bi]&&dd=ld.slidesgrid[bi]&&(f=bi,dg=ld.slidesgrid[ld.slidesgrid.length-1]-ld.slidesgrid[ld.slidesgrid.length-2]);var dgg=(dd-ld.slidesgrid[f])/dg;if(k>ld.params.longswipesms){if(!ld.params.longswipes)return void ld.slideto(ld.activeindex);"next"===ld.swipedirection&&(dgg>=ld.params.longswipesratio?ld.slideto(f+ld.params.slidespergroup):ld.slideto(f)),"prev"===ld.swipedirection&&(dgg>1-ld.params.longswipesratio?ld.slideto(f+ld.params.slidespergroup):ld.slideto(f))}else{if(!ld.params.shortswipes)return void ld.slideto(ld.activeindex);"next"===ld.swipedirection&&ld.slideto(f+ld.params.slidespergroup),"prev"===ld.swipedirection&&ld.slideto(f)}}},ld._slideto=function(h,d){return ld.slideto(h,d,!0,!0)},ld.slideto=function(h,d,dd,g){void 0===dd&&(dd=!0),void 0===h&&(h=0),h<0&&(h=0),ld.snapindex=math.floor(h/ld.params.slidespergroup),ld.snapindex>=ld.snapgrid.length&&(ld.snapindex=ld.snapgrid.length-1);var k=-ld.snapgrid[ld.snapindex];if(ld.params.autoplay&&ld.autoplaying&&(g||!ld.params.autoplaydisableoninteraction?ld.pauseautoplay(d):ld.stopautoplay()),ld.updateprogress(k),ld.params.normalizeslideindex)for(var gc=0;gc=math.floor(100*ld.slidesgrid[gc])&&(h=gc);return!(!ld.params.allowswipetonext&&kld.translate&&k>ld.maxtranslate()&&(ld.activeindex||0)!==h||(void 0===d&&(d=ld.params.speed),ld.previousindex=ld.activeindex||0,ld.activeindex=h,ld.updaterealindex(),ld.rtl&&-k===ld.translate||!ld.rtl&&k===ld.translate?(ld.params.autoheight&&ld.updateautoheight(),ld.updateclasses(),"slide"!==ld.params.effect&&ld.setwrappertranslate(k),1):(ld.updateclasses(),ld.ontransitionstart(dd),0===d||ld.browser.lteie9?(ld.setwrappertranslate(k),ld.setwrappertransition(0),ld.ontransitionend(dd)):(ld.setwrappertranslate(k),ld.setwrappertransition(d),ld.animating||(ld.animating=!0,ld.wrapper.transitionend(function(){ld&&ld.ontransitionend(dd)}))),0)))},ld.ontransitionstart=function(h){void 0===h&&(h=!0),ld.params.autoheight&&ld.updateautoheight(),ld.lazy&&ld.lazy.ontransitionstart(),h&&(ld.emit("ontransitionstart",ld),ld.activeindex!==ld.previousindex&&(ld.emit("onslidechangestart",ld),ld.activeindex>ld.previousindex?ld.emit("onslidenextstart",ld):ld.emit("onslideprevstart",ld)))},ld.ontransitionend=function(h){ld.animating=!1,ld.setwrappertransition(0),void 0===h&&(h=!0),ld.lazy&&ld.lazy.ontransitionend(),h&&(ld.emit("ontransitionend",ld),ld.activeindex!==ld.previousindex&&(ld.emit("onslidechangeend",ld),ld.activeindex>ld.previousindex?ld.emit("onslidenextend",ld):ld.emit("onslideprevend",ld))),ld.params.history&&ld.history&&ld.history.sethistory(ld.params.history,ld.activeindex),ld.params.hashnav&&ld.hashnav&&ld.hashnav.sethash()},ld.slidenext=function(h,d,dd){return ld.params.loop?!ld.animating&&(ld.fixloop(),ld.container[0].clientleft,ld.slideto(ld.activeindex+ld.params.slidespergroup,d,h,dd)):ld.slideto(ld.activeindex+ld.params.slidespergroup,d,h,dd)},ld._slidenext=function(h){return ld.slidenext(!0,h,!0)},ld.slideprev=function(h,d,dd){return ld.params.loop?!ld.animating&&(ld.fixloop(),ld.container[0].clientleft,ld.slideto(ld.activeindex-1,d,h,dd)):ld.slideto(ld.activeindex-1,d,h,dd)},ld._slideprev=function(h){return ld.slideprev(!0,h,!0)},ld.slidereset=function(h,d,dd){return ld.slideto(ld.activeindex,d,h)},ld.disabletouchcontrol=function(){return ld.params.onlyexternal=!0,!0},ld.enabletouchcontrol=function(){return ld.params.onlyexternal=!1,!0},ld.setwrappertransition=function(h,d){ld.wrapper.transition(h),"slide"!==ld.params.effect&&ld.effects[ld.params.effect]&&ld.effects[ld.params.effect].settransition(h),ld.params.parallax&&ld.parallax&&ld.parallax.settransition(h),ld.params.scrollbar&&ld.scrollbar&&ld.scrollbar.settransition(h),ld.params.control&&ld.controller&&ld.controller.settransition(h,d),ld.emit("onsettransition",ld,h)},ld.setwrappertranslate=function(h,d,dd){var k=0,gc=0;ld.ishorizontal()?k=ld.rtl?-h:h:gc=h,ld.params.roundlengths&&(k=g(k),gc=g(gc)),ld.params.virtualtranslate||(ld.support.transforms3d?ld.wrapper.transform("translate3d("+k+"px, "+gc+"px, 0px)"):ld.wrapper.transform("translate("+k+"px, "+gc+"px)")),ld.translate=ld.ishorizontal()?k:gc;var b=ld.maxtranslate()-ld.mintranslate();(0===b?0:(h-ld.mintranslate())/b)!==ld.progress&&ld.updateprogress(h),d&&ld.updateactiveindex(),"slide"!==ld.params.effect&&ld.effects[ld.params.effect]&&ld.effects[ld.params.effect].settranslate(ld.translate),ld.params.parallax&&ld.parallax&&ld.parallax.settranslate(ld.translate),ld.params.scrollbar&&ld.scrollbar&&ld.scrollbar.settranslate(ld.translate),ld.params.control&&ld.controller&&ld.controller.settranslate(ld.translate,dd),ld.emit("onsettranslate",ld,ld.translate)},ld.gettranslate=function(h,d){var dd,g,k,gc;return void 0===d&&(d="x"),ld.params.virtualtranslate?ld.rtl?-ld.translate:ld.translate:(k=window.getcomputedstyle(h,null),window.webkitcssmatrix?((g=k.transform||k.webkittransform).split(",").length>6&&(g=g.split(", ").map(function(h){return h.replace(",",".")}).join(", ")),gc=new window.webkitcssmatrix("none"===g?"":g)):dd=(gc=k.moztransform||k.otransform||k.mstransform||k.mstransform||k.transform||k.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,")).tostring().split(","),"x"===d&&(g=window.webkitcssmatrix?gc.m41:16===dd.length?parsefloat(dd[12]):parsefloat(dd[4])),"y"===d&&(g=window.webkitcssmatrix?gc.m42:16===dd.length?parsefloat(dd[13]):parsefloat(dd[5])),ld.rtl&&g&&(g=-g),g||0)},ld.getwrappertranslate=function(h){return void 0===h&&(h=ld.ishorizontal()?"x":"y"),ld.gettranslate(ld.wrapper[0],h)},ld.observers=[],ld.initobservers=function(){if(ld.params.observeparents)for(var h=ld.container.parents(),d=0;dd.length&&(ld.loopedslides=d.length);var dd,g=[],k=[];for(d.each(function(dd,gc){var b=h(this);dd=d.length-ld.loopedslides&&g.push(gc),b.attr("data-swiper-slide-index",dd)}),dd=0;dd=0;dd--)ld.wrapper.prepend(h(g[dd].clonenode(!0)).addclass(ld.params.slideduplicateclass))},ld.destroyloop=function(){ld.wrapper.children("."+ld.params.slideclass+"."+ld.params.slideduplicateclass).remove(),ld.slides.removeattr("data-swiper-slide-index")},ld.reloop=function(h){var d=ld.activeindex-ld.loopedslides;ld.destroyloop(),ld.createloop(),ld.updateslidessize(),h&&ld.slideto(d+ld.loopedslides,0,!1)},ld.fixloop=function(){var h;ld.activeindex=2*ld.loopedslides||ld.activeindex>ld.slides.length-2*ld.params.slidesperview)&&(h=-ld.slides.length+ld.activeindex+ld.loopedslides,h+=ld.loopedslides,ld.slideto(h,0,!1,!0))},ld.appendslide=function(h){if(ld.params.loop&&ld.destroyloop(),"object"==typeof h&&h.length)for(var d=0;d'),dd.append(c)),0===l.length&&(l=h('
'),dd.append(l)),c.length&&(c[0].style.opacity=math.max(-g,0)),l.length&&(l[0].style.opacity=math.max(g,0))}dd.transform("translate3d("+b+"px, "+u+"px, 0px) rotatex("+gc+"deg) rotatey("+k+"deg)")}},settransition:function(d){if(ld.slides.transition(d).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(d),ld.params.virtualtranslate&&0!==d){var dd=!1;ld.slides.eq(ld.activeindex).transitionend(function(){if(!dd&&ld&&h(this).hasclass(ld.params.slideactiveclass)){dd=!0,ld.animating=!1;for(var d=["webkittransitionend","transitionend","otransitionend","mstransitionend","mstransitionend"],g=0;g'),ld.wrapper.append(d)),d.css({height:ld.width+"px"})):0===(d=ld.container.find(".swiper-cube-shadow")).length&&(d=h('
'),ld.container.append(d)));for(var g=0;g-1&&(dd=90*g+90*u,ld.rtl&&(dd=90*-g-90*u)),k.transform(q),ld.params.cube.slideshadows){var cn=ld.ishorizontal()?k.find(".swiper-slide-shadow-left"):k.find(".swiper-slide-shadow-top"),e=ld.ishorizontal()?k.find(".swiper-slide-shadow-right"):k.find(".swiper-slide-shadow-bottom");0===cn.length&&(cn=h('
'),k.append(cn)),0===e.length&&(e=h('
'),k.append(e)),cn.length&&(cn[0].style.opacity=math.max(-u,0)),e.length&&(e[0].style.opacity=math.max(u,0))}}if(ld.wrapper.css({"-webkit-transform-origin":"50% 50% -"+ld.size/2+"px","-moz-transform-origin":"50% 50% -"+ld.size/2+"px","-ms-transform-origin":"50% 50% -"+ld.size/2+"px","transform-origin":"50% 50% -"+ld.size/2+"px"}),ld.params.cube.shadow)if(ld.ishorizontal())d.transform("translate3d(0px, "+(ld.width/2+ld.params.cube.shadowoffset)+"px, "+-ld.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+ld.params.cube.shadowscale+")");else{var ha=math.abs(dd)-90*math.floor(math.abs(dd)/90),bg=1.5-(math.sin(2*ha*math.pi/360)/2+math.cos(2*ha*math.pi/360)/2),h=ld.params.cube.shadowscale,bi=ld.params.cube.shadowscale/bg,f=ld.params.cube.shadowoffset;d.transform("scale3d("+h+", 1, "+bi+") translate3d(0px, "+(ld.height/2+f)+"px, "+-ld.height/2/bi+"px) rotatex(-90deg)")}var dg=ld.issafari||ld.isuiwebview?-ld.size/2:0;ld.wrapper.transform("translate3d(0px,0,"+dg+"px) rotatex("+(ld.ishorizontal()?0:dd)+"deg) rotatey("+(ld.ishorizontal()?-dd:0)+"deg)")},settransition:function(h){ld.slides.transition(h).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(h),ld.params.cube.shadow&&!ld.ishorizontal()&&ld.container.find(".swiper-cube-shadow").transition(h)}},coverflow:{settranslate:function(){for(var d=ld.translate,dd=ld.ishorizontal()?-d+ld.width/2:-d+ld.height/2,g=ld.ishorizontal()?ld.params.coverflow.rotate:-ld.params.coverflow.rotate,k=ld.params.coverflow.depth,gc=0,b=ld.slides.length;gc'),u.append(h)),0===bi.length&&(bi=h('
'),u.append(bi)),h.length&&(h[0].style.opacity=l>0?l:0),bi.length&&(bi[0].style.opacity=-l>0?-l:0)}}ld.browser.ie&&(ld.wrapper[0].style.perspectiveorigin=dd+"px 50%")},settransition:function(h){ld.slides.transition(h).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(h)}}},ld.lazy={initialimageloaded:!1,loadimageinslide:function(d,dd){if(void 0!==d&&(void 0===dd&&(dd=!0),0!==ld.slides.length)){var g=ld.slides.eq(d),k=g.find("."+ld.params.lazyloadingclass+":not(."+ld.params.lazystatusloadedclass+"):not(."+ld.params.lazystatusloadingclass+")");!g.hasclass(ld.params.lazyloadingclass)||g.hasclass(ld.params.lazystatusloadedclass)||g.hasclass(ld.params.lazystatusloadingclass)||(k=k.add(g[0])),0!==k.length&&k.each(function(){var d=h(this);d.addclass(ld.params.lazystatusloadingclass);var k=d.attr("data-background"),gc=d.attr("data-src"),b=d.attr("data-srcset"),u=d.attr("data-sizes");ld.loadimage(d[0],gc||k,b,u,!1,function(){if(void 0!==ld&&null!==ld&&ld){if(k?(d.css("background-image",'url("'+k+'")'),d.removeattr("data-background")):(b&&(d.attr("srcset",b),d.removeattr("data-srcset")),u&&(d.attr("sizes",u),d.removeattr("data-sizes")),gc&&(d.attr("src",gc),d.removeattr("data-src"))),d.addclass(ld.params.lazystatusloadedclass).removeclass(ld.params.lazystatusloadingclass),g.find("."+ld.params.lazypreloaderclass+", ."+ld.params.preloaderclass).remove(),ld.params.loop&&dd){var h=g.attr("data-swiper-slide-index");if(g.hasclass(ld.params.slideduplicateclass)){var c=ld.wrapper.children('[data-swiper-slide-index="'+h+'"]:not(.'+ld.params.slideduplicateclass+")");ld.lazy.loadimageinslide(c.index(),!1)}else{var l=ld.wrapper.children("."+ld.params.slideduplicateclass+'[data-swiper-slide-index="'+h+'"]');ld.lazy.loadimageinslide(l.index(),!1)}}ld.emit("onlazyimageready",ld,g[0],d[0])}}),ld.emit("onlazyimageload",ld,g[0],d[0])})}},load:function(){var d,dd=ld.params.slidesperview;if("auto"===dd&&(dd=0),ld.lazy.initialimageloaded||(ld.lazy.initialimageloaded=!0),ld.params.watchslidesvisibility)ld.wrapper.children("."+ld.params.slidevisibleclass).each(function(){ld.lazy.loadimageinslide(h(this).index())});else if(dd>1)for(d=ld.activeindex;d1||ld.params.lazyloadinginprevnextamount&&ld.params.lazyloadinginprevnextamount>1){var g=ld.params.lazyloadinginprevnextamount,k=dd,gc=math.min(ld.activeindex+k+math.max(g,k),ld.slides.length),b=math.max(ld.activeindex-math.max(k,g),0);for(d=ld.activeindex+dd;d0&&ld.lazy.loadimageinslide(u.index());var c=ld.wrapper.children("."+ld.params.slideprevclass);c.length>0&&ld.lazy.loadimageinslide(c.index())}},ontransitionstart:function(){ld.params.lazyloading&&(ld.params.lazyloadingontransitionstart||!ld.params.lazyloadingontransitionstart&&!ld.lazy.initialimageloaded)&&ld.lazy.load()},ontransitionend:function(){ld.params.lazyloading&&!ld.params.lazyloadingontransitionstart&&ld.lazy.load()}},ld.scrollbar={istouched:!1,setdragposition:function(h){var d=ld.scrollbar,dd=(ld.ishorizontal()?"touchstart"===h.type||"touchmove"===h.type?h.targettouches[0].pagex:h.pagex||h.clientx:"touchstart"===h.type||"touchmove"===h.type?h.targettouches[0].pagey:h.pagey||h.clienty)-d.track.offset()[ld.ishorizontal()?"left":"top"]-d.dragsize/2,g=-ld.mintranslate()*d.movedivider,k=-ld.maxtranslate()*d.movedivider;ddk&&(dd=k),dd=-dd/d.movedivider,ld.updateprogress(dd),ld.setwrappertranslate(dd,!0)},dragstart:function(h){var d=ld.scrollbar;d.istouched=!0,h.preventdefault(),h.stoppropagation(),d.setdragposition(h),cleartimeout(d.dragtimeout),d.track.transition(0),ld.params.scrollbarhide&&d.track.css("opacity",1),ld.wrapper.transition(100),d.drag.transition(100),ld.emit("onscrollbardragstart",ld)},dragmove:function(h){var d=ld.scrollbar;d.istouched&&(h.preventdefault?h.preventdefault():h.returnvalue=!1,d.setdragposition(h),ld.wrapper.transition(0),d.track.transition(0),d.drag.transition(0),ld.emit("onscrollbardragmove",ld))},dragend:function(h){var d=ld.scrollbar;d.istouched&&(d.istouched=!1,ld.params.scrollbarhide&&(cleartimeout(d.dragtimeout),d.dragtimeout=settimeout(function(){d.track.css("opacity",0),d.track.transition(400)},1e3)),ld.emit("onscrollbardragend",ld),ld.params.scrollbarsnaponrelease&&ld.slidereset())},draggableevents:!1!==ld.params.simulatetouch||ld.support.touch?ld.touchevents:ld.toucheventsdesktop,enabledraggable:function(){var d=ld.scrollbar,dd=ld.support.touch?d.track:document;h(d.track).on(d.draggableevents.start,d.dragstart),h(dd).on(d.draggableevents.move,d.dragmove),h(dd).on(d.draggableevents.end,d.dragend)},disabledraggable:function(){var d=ld.scrollbar,dd=ld.support.touch?d.track:document;h(d.track).off(d.draggableevents.start,d.dragstart),h(dd).off(d.draggableevents.move,d.dragmove),h(dd).off(d.draggableevents.end,d.dragend)},set:function(){if(ld.params.scrollbar){var d=ld.scrollbar;d.track=h(ld.params.scrollbar),ld.params.uniquenavelements&&"string"==typeof ld.params.scrollbar&&d.track.length>1&&1===ld.container.find(ld.params.scrollbar).length&&(d.track=ld.container.find(ld.params.scrollbar)),d.drag=d.track.find(".swiper-scrollbar-drag"),0===d.drag.length&&(d.drag=h('
'),d.track.append(d.drag)),d.drag[0].style.width="",d.drag[0].style.height="",d.tracksize=ld.ishorizontal()?d.track[0].offsetwidth:d.track[0].offsetheight,d.divider=ld.size/ld.virtualsize,d.movedivider=d.divider*(d.tracksize/ld.size),d.dragsize=d.tracksize*d.divider,ld.ishorizontal()?d.drag[0].style.width=d.dragsize+"px":d.drag[0].style.height=d.dragsize+"px",d.divider>=1?d.track[0].style.display="none":d.track[0].style.display="",ld.params.scrollbarhide&&(d.track[0].style.opacity=0)}},settranslate:function(){if(ld.params.scrollbar){var h,d=ld.scrollbar,dd=(ld.translate,d.dragsize);h=(d.tracksize-d.dragsize)*ld.progress,ld.rtl&&ld.ishorizontal()?(h=-h)>0?(dd=d.dragsize-h,h=0):-h+d.dragsize>d.tracksize&&(dd=d.tracksize+h):h<0?(dd=d.dragsize+h,h=0):h+d.dragsize>d.tracksize&&(dd=d.tracksize-h),ld.ishorizontal()?(ld.support.transforms3d?d.drag.transform("translate3d("+h+"px, 0, 0)"):d.drag.transform("translatex("+h+"px)"),d.drag[0].style.width=dd+"px"):(ld.support.transforms3d?d.drag.transform("translate3d(0px, "+h+"px, 0)"):d.drag.transform("translatey("+h+"px)"),d.drag[0].style.height=dd+"px"),ld.params.scrollbarhide&&(cleartimeout(d.timeout),d.track[0].style.opacity=1,d.timeout=settimeout(function(){d.track[0].style.opacity=0,d.track.transition(400)},1e3))}},settransition:function(h){ld.params.scrollbar&&ld.scrollbar.drag.transition(h)}},ld.controller={linearspline:function(h,d){var dd,g,k,gc,b,u=function(h,d){for(g=-1,dd=h.length;dd-g>1;)h[k=dd+g>>1]<=d?g=k:dd=k;return dd};this.x=h,this.y=d,this.lastindex=h.length-1,this.x.length,this.interpolate=function(h){return h?(b=u(this.x,h),gc=b-1,(h-this.x[gc])*(this.y[b]-this.y[gc])/(this.x[b]-this.x[gc])+this.y[gc]):0}},getinterpolatefunction:function(h){ld.controller.spline||(ld.controller.spline=ld.params.loop?new ld.controller.linearspline(ld.slidesgrid,h.slidesgrid):new ld.controller.linearspline(ld.snapgrid,h.snapgrid))},settranslate:function(h,d){function dd(d){h=d.rtl&&"horizontal"===d.params.direction?-ld.translate:ld.translate,"slide"===ld.params.controlby&&(ld.controller.getinterpolatefunction(d),k=-ld.controller.spline.interpolate(-h)),k&&"container"!==ld.params.controlby||(g=(d.maxtranslate()-d.mintranslate())/(ld.maxtranslate()-ld.mintranslate()),k=(h-ld.mintranslate())*g+d.mintranslate()),ld.params.controlinverse&&(k=d.maxtranslate()-k),d.updateprogress(k),d.setwrappertranslate(k,!1,ld),d.updateactiveindex()}var g,k,gc=ld.params.control;if(array.isarray(gc))for(var b=0;b-1?"dommousescroll":function(){var h="onwheel"in document;if(!h){var d=document.createelement("div");d.setattribute("onwheel","return;"),h="function"==typeof d.onwheel}return!h&&document.implementation&&document.implementation.hasfeature&&!0!==document.implementation.hasfeature("","")&&(h=document.implementation.hasfeature("events.wheel","3.0")),h}()?"wheel":"mousewheel"),ld.disablemousewheelcontrol=function(){if(!ld.mousewheel.event)return!1;var d=ld.container;return"container"!==ld.params.mousewheeleventstarged&&(d=h(ld.params.mousewheeleventstarged)),d.off(ld.mousewheel.event,c),ld.params.mousewheelcontrol=!1,!0},ld.enablemousewheelcontrol=function(){if(!ld.mousewheel.event)return!1;var d=ld.container;return"container"!==ld.params.mousewheeleventstarged&&(d=h(ld.params.mousewheeleventstarged)),d.on(ld.mousewheel.event,c),ld.params.mousewheelcontrol=!0,!0},ld.parallax={settranslate:function(){ld.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){l(this,ld.progress)}),ld.slides.each(function(){var d=h(this);d.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){l(this,math.min(math.max(d[0].progress,-1),1))})})},settransition:function(d){void 0===d&&(d=ld.params.speed),ld.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var dd=h(this),g=parseint(dd.attr("data-swiper-parallax-duration"),10)||d;0===d&&(g=0),dd.transition(g)})}},ld.zoom={scale:1,currentscale:1,isscaling:!1,gesture:{slide:void 0,slidewidth:void 0,slideheight:void 0,image:void 0,imagewrap:void 0,zoommax:ld.params.zoommax},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},getdistancebetweentouches:function(h){if(h.targettouches.length<2)return 1;var d=h.targettouches[0].pagex,dd=h.targettouches[0].pagey,g=h.targettouches[1].pagex,k=h.targettouches[1].pagey;return math.sqrt(math.pow(g-d,2)+math.pow(k-dd,2))},ongesturestart:function(d){var dd=ld.zoom;if(!ld.support.gestures){if("touchstart"!==d.type||"touchstart"===d.type&&d.targettouches.length<2)return;dd.gesture.scalestart=dd.getdistancebetweentouches(d)}dd.gesture.slide&&dd.gesture.slide.length||(dd.gesture.slide=h(this),0===dd.gesture.slide.length&&(dd.gesture.slide=ld.slides.eq(ld.activeindex)),dd.gesture.image=dd.gesture.slide.find("img, svg, canvas"),dd.gesture.imagewrap=dd.gesture.image.parent("."+ld.params.zoomcontainerclass),dd.gesture.zoommax=dd.gesture.imagewrap.attr("data-swiper-zoom")||ld.params.zoommax,0!==dd.gesture.imagewrap.length)?(dd.gesture.image.transition(0),dd.isscaling=!0):dd.gesture.image=void 0},ongesturechange:function(h){var d=ld.zoom;if(!ld.support.gestures){if("touchmove"!==h.type||"touchmove"===h.type&&h.targettouches.length<2)return;d.gesture.scalemove=d.getdistancebetweentouches(h)}d.gesture.image&&0!==d.gesture.image.length&&(ld.support.gestures?d.scale=h.scale*d.currentscale:d.scale=d.gesture.scalemove/d.gesture.scalestart*d.currentscale,d.scale>d.gesture.zoommax&&(d.scale=d.gesture.zoommax-1+math.pow(d.scale-d.gesture.zoommax+1,.5)),d.scaled.image.touchesstart.x)return void(d.image.istouched=!1);if(!ld.ishorizontal()&&math.floor(d.image.miny)===math.floor(d.image.starty)&&d.image.touchescurrent.yd.image.touchesstart.y)return void(d.image.istouched=!1)}h.preventdefault(),h.stoppropagation(),d.image.ismoved=!0,d.image.currentx=d.image.touchescurrent.x-d.image.touchesstart.x+d.image.startx,d.image.currenty=d.image.touchescurrent.y-d.image.touchesstart.y+d.image.starty,d.image.currentxd.image.maxx&&(d.image.currentx=d.image.maxx-1+math.pow(d.image.currentx-d.image.maxx+1,.8)),d.image.currentyd.image.maxy&&(d.image.currenty=d.image.maxy-1+math.pow(d.image.currenty-d.image.maxy+1,.8)),d.velocity.prevpositionx||(d.velocity.prevpositionx=d.image.touchescurrent.x),d.velocity.prevpositiony||(d.velocity.prevpositiony=d.image.touchescurrent.y),d.velocity.prevtime||(d.velocity.prevtime=date.now()),d.velocity.x=(d.image.touchescurrent.x-d.velocity.prevpositionx)/(date.now()-d.velocity.prevtime)/2,d.velocity.y=(d.image.touchescurrent.y-d.velocity.prevpositiony)/(date.now()-d.velocity.prevtime)/2,math.abs(d.image.touchescurrent.x-d.velocity.prevpositionx)<2&&(d.velocity.x=0),math.abs(d.image.touchescurrent.y-d.velocity.prevpositiony)<2&&(d.velocity.y=0),d.velocity.prevpositionx=d.image.touchescurrent.x,d.velocity.prevpositiony=d.image.touchescurrent.y,d.velocity.prevtime=date.now(),d.gesture.imagewrap.transform("translate3d("+d.image.currentx+"px, "+d.image.currenty+"px,0)")}}},ontouchend:function(h,d){var dd=h.zoom;if(dd.gesture.image&&0!==dd.gesture.image.length){if(!dd.image.istouched||!dd.image.ismoved)return dd.image.istouched=!1,void(dd.image.ismoved=!1);dd.image.istouched=!1,dd.image.ismoved=!1;var g=300,k=300,gc=dd.velocity.x*g,b=dd.image.currentx+gc,u=dd.velocity.y*k,c=dd.image.currenty+u;0!==dd.velocity.x&&(g=math.abs((b-dd.image.currentx)/dd.velocity.x)),0!==dd.velocity.y&&(k=math.abs((c-dd.image.currenty)/dd.velocity.y));var l=math.max(g,k);dd.image.currentx=b,dd.image.currenty=c;var a=dd.image.width*dd.scale,q=dd.image.height*dd.scale;dd.image.minx=math.min(dd.gesture.slidewidth/2-a/2,0),dd.image.maxx=-dd.image.minx,dd.image.miny=math.min(dd.gesture.slideheight/2-q/2,0),dd.image.maxy=-dd.image.miny,dd.image.currentx=math.max(math.min(dd.image.currentx,dd.image.maxx),dd.image.minx),dd.image.currenty=math.max(math.min(dd.image.currenty,dd.image.maxy),dd.image.miny),dd.gesture.imagewrap.transition(l).transform("translate3d("+dd.image.currentx+"px, "+dd.image.currenty+"px,0)")}},ontransitionend:function(h){var d=h.zoom;d.gesture.slide&&h.previousindex!==h.activeindex&&(d.gesture.image.transform("translate3d(0,0,0) scale(1)"),d.gesture.imagewrap.transform("translate3d(0,0,0)"),d.gesture.slide=d.gesture.image=d.gesture.imagewrap=void 0,d.scale=d.currentscale=1)},togglezoom:function(d,dd){var g,k,gc,b,u,c,l,a,q,cn,e,ha,bg,h,bi,f,ld=d.zoom;(ld.gesture.slide||(ld.gesture.slide=d.clickedslide?h(d.clickedslide):d.slides.eq(d.activeindex),ld.gesture.image=ld.gesture.slide.find("img, svg, canvas"),ld.gesture.imagewrap=ld.gesture.image.parent("."+d.params.zoomcontainerclass)),ld.gesture.image&&0!==ld.gesture.image.length)&&(void 0===ld.image.touchesstart.x&&dd?(g="touchend"===dd.type?dd.changedtouches[0].pagex:dd.pagex,k="touchend"===dd.type?dd.changedtouches[0].pagey:dd.pagey):(g=ld.image.touchesstart.x,k=ld.image.touchesstart.y),ld.scale&&1!==ld.scale?(ld.scale=ld.currentscale=1,ld.gesture.imagewrap.transition(300).transform("translate3d(0,0,0)"),ld.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),ld.gesture.slide=void 0):(ld.scale=ld.currentscale=ld.gesture.imagewrap.attr("data-swiper-zoom")||d.params.zoommax,dd?(bi=ld.gesture.slide[0].offsetwidth,f=ld.gesture.slide[0].offsetheight,gc=ld.gesture.slide.offset().left+bi/2-g,b=ld.gesture.slide.offset().top+f/2-k,l=ld.gesture.image[0].offsetwidth,a=ld.gesture.image[0].offsetheight,q=l*ld.scale,cn=a*ld.scale,bg=-(e=math.min(bi/2-q/2,0)),h=-(ha=math.min(f/2-cn/2,0)),u=gc*ld.scale,c=b*ld.scale,ubg&&(u=bg),ch&&(c=h)):(u=0,c=0),ld.gesture.imagewrap.transition(300).transform("translate3d("+u+"px, "+c+"px,0)"),ld.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+ld.scale+")")))},attachevents:function(d){var dd=d?"off":"on";if(ld.params.zoom){var g=(ld.slides,!("touchstart"!==ld.touchevents.start||!ld.support.passivelistener||!ld.params.passivelisteners)&&{passive:!0,capture:!1});ld.support.gestures?(ld.slides[dd]("gesturestart",ld.zoom.ongesturestart,g),ld.slides[dd]("gesturechange",ld.zoom.ongesturechange,g),ld.slides[dd]("gestureend",ld.zoom.ongestureend,g)):"touchstart"===ld.touchevents.start&&(ld.slides[dd](ld.touchevents.start,ld.zoom.ongesturestart,g),ld.slides[dd](ld.touchevents.move,ld.zoom.ongesturechange,g),ld.slides[dd](ld.touchevents.end,ld.zoom.ongestureend,g)),ld[dd]("touchstart",ld.zoom.ontouchstart),ld.slides.each(function(d,g){h(g).find("."+ld.params.zoomcontainerclass).length>0&&h(g)[dd](ld.touchevents.move,ld.zoom.ontouchmove)}),ld[dd]("touchend",ld.zoom.ontouchend),ld[dd]("transitionend",ld.zoom.ontransitionend),ld.params.zoomtoggle&&ld.on("doubletap",ld.zoom.togglezoom)}},init:function(){ld.zoom.attachevents()},destroy:function(){ld.zoom.attachevents(!0)}},ld._plugins=[];for(var k in ld.plugins){var l=ld.plugins[k](ld,ld.params[k]);l&&ld._plugins.push(l)}return ld.callplugins=function(h){for(var d=0;d'),notify:function(h){var d=ld.a11y.liveregion;0!==d.length&&(d.html(""),d.html(h))},init:function(){ld.params.nextbutton&&ld.nextbutton&&ld.nextbutton.length>0&&(ld.a11y.makefocusable(ld.nextbutton),ld.a11y.addrole(ld.nextbutton,"button"),ld.a11y.addlabel(ld.nextbutton,ld.params.nextslidemessage)),ld.params.prevbutton&&ld.prevbutton&&ld.prevbutton.length>0&&(ld.a11y.makefocusable(ld.prevbutton),ld.a11y.addrole(ld.prevbutton,"button"),ld.a11y.addlabel(ld.prevbutton,ld.params.prevslidemessage)),h(ld.container).append(ld.a11y.liveregion)},initpagination:function(){ld.params.pagination&&ld.params.paginationclickable&&ld.bullets&&ld.bullets.length&&ld.bullets.each(function(){var d=h(this);ld.a11y.makefocusable(d),ld.a11y.addrole(d,"button"),ld.a11y.addlabel(d,ld.params.paginationbulletmessage.replace(/{{index}}/,d.index()+1))})},destroy:function(){ld.a11y.liveregion&&ld.a11y.liveregion.length>0&&ld.a11y.liveregion.remove()}},ld.init=function(){ld.params.loop&&ld.createloop(),ld.updatecontainersize(),ld.updateslidessize(),ld.updatepagination(),ld.params.scrollbar&&ld.scrollbar&&(ld.scrollbar.set(),ld.params.scrollbardraggable&&ld.scrollbar.enabledraggable()),"slide"!==ld.params.effect&&ld.effects[ld.params.effect]&&(ld.params.loop||ld.updateprogress(),ld.effects[ld.params.effect].settranslate()),ld.params.loop?ld.slideto(ld.params.initialslide+ld.loopedslides,0,ld.params.runcallbacksoninit):(ld.slideto(ld.params.initialslide,0,ld.params.runcallbacksoninit),0===ld.params.initialslide&&(ld.parallax&&ld.params.parallax&&ld.parallax.settranslate(),ld.lazy&&ld.params.lazyloading&&(ld.lazy.load(),ld.lazy.initialimageloaded=!0))),ld.attachevents(),ld.params.observer&&ld.support.observer&&ld.initobservers(),ld.params.preloadimages&&!ld.params.lazyloading&&ld.preloadimages(),ld.params.zoom&&ld.zoom&&ld.zoom.init(),ld.params.autoplay&&ld.startautoplay(),ld.params.keyboardcontrol&&ld.enablekeyboardcontrol&&ld.enablekeyboardcontrol(),ld.params.mousewheelcontrol&&ld.enablemousewheelcontrol&&ld.enablemousewheelcontrol(),ld.params.hashnavreplacestate&&(ld.params.replacestate=ld.params.hashnavreplacestate),ld.params.history&&ld.history&&ld.history.init(),ld.params.hashnav&&ld.hashnav&&ld.hashnav.init(),ld.params.a11y&&ld.a11y&&ld.a11y.init(),ld.emit("oninit",ld)},ld.cleanupstyles=function(){ld.container.removeclass(ld.classnames.join(" ")).removeattr("style"),ld.wrapper.removeattr("style"),ld.slides&&ld.slides.length&&ld.slides.removeclass([ld.params.slidevisibleclass,ld.params.slideactiveclass,ld.params.slidenextclass,ld.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"),ld.paginationcontainer&&ld.paginationcontainer.length&&ld.paginationcontainer.removeclass(ld.params.paginationhiddenclass),ld.bullets&&ld.bullets.length&&ld.bullets.removeclass(ld.params.bulletactiveclass),ld.params.prevbutton&&h(ld.params.prevbutton).removeclass(ld.params.buttondisabledclass),ld.params.nextbutton&&h(ld.params.nextbutton).removeclass(ld.params.buttondisabledclass),ld.params.scrollbar&&ld.scrollbar&&(ld.scrollbar.track&&ld.scrollbar.track.length&&ld.scrollbar.track.removeattr("style"),ld.scrollbar.drag&&ld.scrollbar.drag.length&&ld.scrollbar.drag.removeattr("style"))},ld.destroy=function(h,d){ld.detachevents(),ld.stopautoplay(),ld.params.scrollbar&&ld.scrollbar&&ld.params.scrollbardraggable&&ld.scrollbar.disabledraggable(),ld.params.loop&&ld.destroyloop(),d&&ld.cleanupstyles(),ld.disconnectobservers(),ld.params.zoom&&ld.zoom&&ld.zoom.destroy(),ld.params.keyboardcontrol&&ld.disablekeyboardcontrol&&ld.disablekeyboardcontrol(),ld.params.mousewheelcontrol&&ld.disablemousewheelcontrol&&ld.disablemousewheelcontrol(),ld.params.a11y&&ld.a11y&&ld.a11y.destroy(),ld.params.history&&!ld.params.replacestate&&window.removeeventlistener("popstate",ld.history.sethistorypopstate),ld.params.hashnav&&ld.hashnav&&ld.hashnav.destroy(),ld.emit("ondestroy"),!1!==h&&(ld=null)},ld.init(),ld}};a.prototype={issafari:(c=window.navigator.useragent.tolowercase(),c.indexof("safari")>=0&&c.indexof("chrome")<0&&c.indexof("android")<0),isuiwebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(window.navigator.useragent),isarray:function(h){return"[object array]"===object.prototype.tostring.apply(h)},browser:{ie:window.navigator.pointerenabled||window.navigator.mspointerenabled,ietouch:window.navigator.mspointerenabled&&window.navigator.msmaxtouchpoints>1||window.navigator.pointerenabled&&window.navigator.maxtouchpoints>1,lteie9:(u=document.createelement("div"),u.innerhtml="\x3c!--[if lte ie 9]>0?h?this[0].offsetwidth+parsefloat(this.css("margin-right"))+parsefloat(this.css("margin-left")):this[0].offsetwidth:null})),window.swiper=a}(),"undefined"!=typeof module?module.exports=window.swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.swiper});var swiper=new swiper(".swiper-container",{loop:!0,pagination:".swiper-pagination",nextbutton:".swiper-button-next",prevbutton:".swiper-button-prev",paginationclickable:!0,spacebetween:30,centeredslides:!0,autoplay:5500,autoplaydisableoninteraction:!1}),swiper=new swiper(".hibody",{loop:!0,paginationclickable:!0,nextbutton:".swiper-next",prevbutton:".swiper-prev",autoplay:3e3,slidesperview:6,spacebetween:16,breakpoints:{1024:{slidesperview:4,spacebetween:40},768:{slidesperview:3,spacebetween:30},640:{slidesperview:2,spacebetween:20},320:{slidesperview:2,spacebetween:5}}});!function(){var h=function(d,dd){function g(h,d){if(h.resizedattached){if(h.resizedattached)return void h.resizedattached.add(d)}else h.resizedattached=new function(){var h,d;this.q=[],this.add=function(h){this.q.push(h)},this.call=function(){for(h=0,d=this.q.length;h
',h.appendchild(h.resizesensor),{fixed:1,absolute:1}[(dd=h,g="position",dd.currentstyle?dd.currentstyle[g]:window.getcomputedstyle?window.getcomputedstyle(dd,null).getpropertyvalue(g):dd.style[g])]||(h.style.position="relative");var b,u,c=h.resizesensor.childnodes[0],l=c.childnodes[0],a=h.resizesensor.childnodes[1],q=(a.childnodes[0],function(){l.style.width=c.offsetwidth+10+"px",l.style.height=c.offsetheight+10+"px",c.scrollleft=c.scrollwidth,c.scrolltop=c.scrollheight,a.scrollleft=a.scrollwidth,a.scrolltop=a.scrollheight,b=h.offsetwidth,u=h.offsetheight});q();var cn=function(h,d,dd){h.attachevent?h.attachevent("on"+d,dd):h.addeventlistener(d,dd)},e=function(){h.offsetwidth==b&&h.offsetheight==u||h.resizedattached&&h.resizedattached.call(),q()};cn(c,"scroll",e),cn(a,"scroll",e)}var k=object.prototype.tostring.call(d),gc="[object array]"===k||"[object nodelist]"===k||"[object htmlcollection]"===k||"undefined"!=typeof jquery&&d instanceof jquery||"undefined"!=typeof elements&&d instanceof elements;if(gc)for(var b=0,u=d.length;b.theiastickysidebar:after {content: ""; display: table; clear: both;}')),gc.each(function(){function d(){dd.fixedscrolltop=0,dd.sidebar.css({"min-height":"1px"}),dd.stickysidebar.css({position:"static",width:"",transform:"none"})}var dd={};if(dd.sidebar=h(this),dd.options=k||{},dd.container=h(dd.options.containerselector),0==dd.container.length&&(dd.container=dd.sidebar.parent()),dd.sidebar.parents().css("-webkit-transform","none"),dd.sidebar.css({position:dd.options.defaultposition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),dd.stickysidebar=dd.sidebar.find(".theiastickysidebar"),0==dd.stickysidebar.length){var gc=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;dd.sidebar.find("script").filter(function(h,d){return 0===d.type.length||d.type.match(gc)}).remove(),dd.stickysidebar=h("
").addclass("theiastickysidebar").append(dd.sidebar.children()),dd.sidebar.append(dd.stickysidebar)}dd.marginbottom=parseint(dd.sidebar.css("margin-bottom")),dd.paddingtop=parseint(dd.sidebar.css("padding-top")),dd.paddingbottom=parseint(dd.sidebar.css("padding-bottom"));var b,u,c,l=dd.stickysidebar.offset().top,a=dd.stickysidebar.outerheight();dd.stickysidebar.css("padding-top",1),dd.stickysidebar.css("padding-bottom",1),l-=dd.stickysidebar.offset().top,a=dd.stickysidebar.outerheight()-a-l,0==l?(dd.stickysidebar.css("padding-top",0),dd.stickysidebarpaddingtop=0):dd.stickysidebarpaddingtop=1,0==a?(dd.stickysidebar.css("padding-bottom",0),dd.stickysidebarpaddingbottom=0):dd.stickysidebarpaddingbottom=1,dd.previousscrolltop=null,dd.fixedscrolltop=0,d(),dd.onscroll=function(dd){if(dd.stickysidebar.is(":visible")){if(h("body").width()dd.container.width())return void d()}var b=h(document).scrolltop(),u="static";if(b>=dd.sidebar.offset().top+(dd.paddingtop-dd.options.additionalmargintop)){var c,l=dd.paddingtop+k.additionalmargintop,a=dd.paddingbottom+dd.marginbottom+k.additionalmarginbottom,q=dd.sidebar.offset().top,cn=dd.sidebar.offset().top+(dv=dd.container,at=dv.height(),dv.children().each(function(){at=math.max(at,h(this).height())}),at),e=0+k.additionalmargintop,ha=dd.stickysidebar.outerheight()+l+a0?math.min(bi,e):math.max(bi,c-dd.stickysidebar.outerheight()),bi=math.max(bi,bg),bi=math.min(bi,h-dd.stickysidebar.outerheight());var ld=dd.container.height()==dd.stickysidebar.outerheight();u=!ld&&bi==e||!ld&&bi==c-dd.stickysidebar.outerheight()?"fixed":b+bi-dd.sidebar.offset().top-dd.paddingtop<=k.additionalmargintop?"static":"absolute"}if("fixed"==u){var dg=h(document).scrollleft();dd.stickysidebar.css({position:"fixed",width:g(dd.stickysidebar)+"px",transform:"translatey("+bi+"px)",left:dd.sidebar.offset().left+parseint(dd.sidebar.css("padding-left"))-dg+"px",top:"0px"})}else if("absolute"==u){var p={};"absolute"!=dd.stickysidebar.css("position")&&(p.position="absolute",p.transform="translatey("+(b+bi-dd.sidebar.offset().top-dd.stickysidebarpaddingtop-dd.stickysidebarpaddingbottom)+"px)",p.top="0px"),p.width=g(dd.stickysidebar)+"px",p.left="",dd.stickysidebar.css(p)}else"static"==u&&d();"static"!=u&&1==dd.options.updatesidebarheight&&dd.sidebar.css({"min-height":dd.stickysidebar.outerheight()+dd.stickysidebar.offset().top-dd.sidebar.offset().top+dd.paddingbottom}),dd.previousscrolltop=b}var dv,at},dd.onscroll(dd),h(document).on("scroll."+dd.options.namespace,(c=dd,function(){c.onscroll(c)})),h(window).on("resize."+dd.options.namespace,(u=dd,function(){u.stickysidebar.css({position:"static"}),u.onscroll(u)})),"undefined"!=typeof resizesensor&&new resizesensor(dd.stickysidebar[0],(b=dd,function(){b.onscroll(b)}))}),!0);var k,gc}function g(h){var d;try{d=h[0].getboundingclientrect().width}catch(h){}return void 0===d&&(d=h.width()),d}var k,gc,b,u,c,l;return(d=h.extend({containerselector:"",additionalmargintop:0,additionalmarginbottom:0,updatesidebarheight:!0,minwidth:0,disableonresponsivelayouts:!0,sidebarbehavior:"modern",defaultposition:"relative",namespace:"tss"},d)).additionalmargintop=parseint(d.additionalmargintop)||0,d.additionalmarginbottom=parseint(d.additionalmarginbottom)||0,dd(k=d,gc=this)||(console.log("tss: body width smaller than options.minwidth. init is delayed."),h(document).on("scroll."+k.namespace,(c=k,l=gc,function(d){dd(c,l)&&h(this).unbind(d)})),h(window).on("resize."+k.namespace,(b=k,u=gc,function(d){dd(b,u)&&h(this).unbind(d)}))),this}}(jquery),jquery(document).ready(function(h){jquery(".mainr").theiastickysidebar({additionalmargintop:60})}),function(h){h.fn.qrcode=function(d){var dd;function g(h){this.mode=dd,this.data=h}function k(h,d){this.typenumber=h,this.errorcorrectlevel=d,this.modules=null,this.modulecount=0,this.datacache=null,this.datalist=[]}function gc(h,d){if(void 0==h.length)throw error(h.length+"/"+d);for(var dd=0;ddh||this.modulecount<=h||0>d||this.modulecount<=d)throw error(h+","+d);return this.modules[h][d]},getmodulecount:function(){return this.modulecount},make:function(){if(1>this.typenumber){var h=1;for(h=1;40>h;h++){for(var d=b.getrsblocks(h,this.errorcorrectlevel),dd=new u,g=0,k=0;k=dd;dd++)if(!(-1>=h+dd||this.modulecount<=h+dd))for(var g=-1;7>=g;g++)-1>=d+g||this.modulecount<=d+g||(this.modules[h+dd][d+g]=0<=dd&&6>=dd&&(0==g||6==g)||0<=g&&6>=g&&(0==dd||6==dd)||2<=dd&&4>=dd&&2<=g&&4>=g)},getbestmaskpattern:function(){for(var h=0,d=0,dd=0;8>dd;dd++){this.makeimpl(!0,dd);var g=c.getlostpoint(this);(0==dd||h>g)&&(h=g,d=dd)}return d},createmovieclip:function(h,d,dd){for(h=h.createemptymovieclip(d,dd),this.make(),d=0;d=gc;gc++)for(var b=-2;2>=b;b++)this.modules[g+gc][k+b]=-2==gc||2==gc||-2==b||2==b||0==gc&&0==b}},setuptypenumber:function(h){for(var d=c.getbchtypenumber(this.typenumber),dd=0;18>dd;dd++){var g=!h&&1==(d>>dd&1);this.modules[math.floor(dd/3)][dd%3+this.modulecount-8-3]=g}for(dd=0;18>dd;dd++)g=!h&&1==(d>>dd&1),this.modules[dd%3+this.modulecount-8-3][math.floor(dd/3)]=g},setuptypeinfo:function(h,d){for(var dd=c.getbchtypeinfo(this.errorcorrectlevel<<3|d),g=0;15>g;g++){var k=!h&&1==(dd>>g&1);6>g?this.modules[g][8]=k:8>g?this.modules[g+1][8]=k:this.modules[this.modulecount-15+g][8]=k}for(g=0;15>g;g++)k=!h&&1==(dd>>g&1),8>g?this.modules[8][this.modulecount-g-1]=k:9>g?this.modules[8][15-g-1+1]=k:this.modules[8][15-g-1]=k;this.modules[this.modulecount-8][8]=!h},mapdata:function(h,d){for(var dd=-1,g=this.modulecount-1,k=7,gc=0,b=this.modulecount-1;0u;u++)if(null==this.modules[g][b-u]){var l=!1;gc>>k&1)),c.getmask(d,g,b-u)&&(l=!l),this.modules[g][b-u]=l,-1==--k&&(gc++,k=7)}if(0>(g+=dd)||this.modulecount<=g){g-=dd,dd=-dd;break}}}},k.pad0=236,k.pad1=17,k.createdata=function(h,d,dd){d=b.getrsblocks(h,d);for(var g=new u,gc=0;gc8*h)throw error("code length overflow. ("+g.getlengthinbits()+">"+8*h+")");for(g.getlengthinbits()+4<=8*h&&g.put(0,4);0!=g.getlengthinbits()%8;)g.putbit(!1);for(;!(g.getlengthinbits()>=8*h)&&(g.put(k.pad0,8),!(g.getlengthinbits()>=8*h));)g.put(k.pad1,8);return k.createbytes(g,d)},k.createbytes=function(h,d){for(var dd=0,g=0,k=0,b=array(d.length),u=array(d.length),l=0;l>>=1;return d},getpatternposition:function(h){return c.pattern_position_table[h-1]},getmask:function(h,d,dd){switch(h){case 0:return 0==(d+dd)%2;case 1:return 0==d%2;case 2:return 0==dd%3;case 3:return 0==(d+dd)%3;case 4:return 0==(math.floor(d/2)+math.floor(dd/3))%2;case 5:return 0==d*dd%2+d*dd%3;case 6:return 0==(d*dd%2+d*dd%3)%2;case 7:return 0==(d*dd%3+(d+dd)%2)%2;default:throw error("bad maskpattern:"+h)}},geterrorcorrectpolynomial:function(h){for(var d=new gc([1],0),dd=0;ddd)switch(h){case 1:return 10;case 2:return 9;case dd:case 8:return 8;default:throw error("mode:"+h)}else if(27>d)switch(h){case 1:return 12;case 2:return 11;case dd:return 16;case 8:return 10;default:throw error("mode:"+h)}else{if(!(41>d))throw error("type:"+d);switch(h){case 1:return 14;case 2:return 13;case dd:return 16;case 8:return 12;default:throw error("mode:"+h)}}},getlostpoint:function(h){for(var d=h.getmodulecount(),dd=0,g=0;g=u;u++)if(!(0>g+u||d<=g+u))for(var c=-1;1>=c;c++)0>k+c||d<=k+c||0==u&&0==c||b==h.isdark(g+u,k+c)&&gc++;5h)throw error("glog("+h+")");return l.log_table[h]},gexp:function(h){for(;0>h;)h+=255;for(;256<=h;)h-=255;return l.exp_table[h]},exp_table:array(256),log_table:array(256)},a=0;8>a;a++)l.exp_table[a]=1<a;a++)l.exp_table[a]=l.exp_table[a-4]^l.exp_table[a-5]^l.exp_table[a-6]^l.exp_table[a-8];for(a=0;255>a;a++)l.log_table[l.exp_table[a]]=a;return gc.prototype={get:function(h){return this.num[h]},getlength:function(){return this.num.length},multiply:function(h){for(var d=array(this.getlength()+h.getlength()-1),dd=0;ddthis.getlength()-h.getlength())return this;for(var d=l.glog(this.get(0))-l.glog(h.get(0)),dd=array(this.getlength()),g=0;g>>7-h%8&1)},put:function(h,d){for(var dd=0;dd>>d-dd-1&1))},getlengthinbits:function(){return this.length},putbit:function(h){var d=math.floor(this.length/8);this.buffer.length<=d&&this.buffer.push(0),h&&(this.buffer[d]|=128>>>this.length%8),this.length++}},"string"==typeof d&&(d={text:d}),d=h.extend({},{render:"canvas",width:256,height:256,typenumber:-1,correctlevel:2,background:"#ffffff",foreground:"#000000"},d),this.each(function(){var dd;if("canvas"==d.render){(dd=new k(d.typenumber,d.correctlevel)).adddata(d.text),dd.make();var g=document.createelement("canvas");g.width=d.width,g.height=d.height;for(var gc=g.getcontext("2d"),b=d.width/dd.getmodulecount(),u=d.height/dd.getmodulecount(),c=0;c").css("width",d.width+"px").css("height",d.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",d.background),gc=d.width/dd.getmodulecount(),b=d.height/dd.getmodulecount(),u=0;u").css("height",b+"px").appendto(g),l=0;l").css("width",gc+"px").css("background-color",dd.isdark(u,l)?d.foreground:d.background).appendto(c);dd=g,jquery(dd).appendto(this)})}}(jquery);