(window.webpackjsonp=window.webpackjsonp||[]).push([[0],{102:function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='';return __p}},11:function(t,e,i){t.exports=function(){"use strict";var t="undefined"==typeof document?{body:{},addeventlistener:function(){},removeeventlistener:function(){},activeelement:{blur:function(){},nodename:""},queryselector:function(){return null},queryselectorall:function(){return[]},getelementbyid:function(){return null},createevent:function(){return{initevent:function(){}}},createelement:function(){return{children:[],childnodes:[],style:{},setattribute:function(){},getelementsbytagname:function(){return[]}}},location:{hash:""}}:document,e="undefined"==typeof window?{document:t,navigator:{useragent:""},location:{},history:{},customevent:function(){return this},addeventlistener:function(){},removeeventlistener:function(){},getcomputedstyle:function(){return{getpropertyvalue:function(){return""}}},image:function(){},date:function(){},screen:{},settimeout:function(){},cleartimeout:function(){}}:window,i=function(t){for(var e=0;e=0&&c.indexof(">")>=0){var d="div";for(0===c.indexof(":~]/)?(o||t).queryselectorall(n.trim()):[t.getelementbyid(n.trim().split("#")[1])],r=0;r0&&n[0].nodetype)for(r=0;r=0;p-=1){var f=h[p];s&&f.listener===s?(u.removeeventlistener(c,f.proxylistener,r),h.splice(p,1)):s&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===s?(u.removeeventlistener(c,f.proxylistener,r),h.splice(p,1)):s||(u.removeeventlistener(c,f.proxylistener,r),h.splice(p,1))}}return this},trigger:function(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];for(var o=i[0].split(" "),s=i[1],r=0;r0})),c.dispatchevent(d),c.dom7eventdata=[],delete c.dom7eventdata}return this},transitionend:function(t){var e,i=["webkittransitionend","transitionend"],n=this;function o(s){if(s.target===this)for(t.call(this,s),e=0;e0){if(t){var e=this.styles();return this[0].offsetwidth+parsefloat(e.getpropertyvalue("margin-right"))+parsefloat(e.getpropertyvalue("margin-left"))}return this[0].offsetwidth}return null},outerheight:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetheight+parsefloat(e.getpropertyvalue("margin-top"))+parsefloat(e.getpropertyvalue("margin-bottom"))}return this[0].offsetheight}return null},offset:function(){if(this.length>0){var i=this[0],n=i.getboundingclientrect(),o=t.body,s=i.clienttop||o.clienttop||0,r=i.clientleft||o.clientleft||0,a=i===e?e.scrolly:i.scrolltop,l=i===e?e.scrollx:i.scrollleft;return{top:n.top+a-s,left:n.left+l-r}}return null},css:function(t,i){var n;if(1===arguments.length){if("string"!=typeof t){for(n=0;nn-1?[]:t<0?(e=n+t)<0?[]:[this[e]]:[this[t]])},append:function(){for(var e,n=[],o=arguments.length;o--;)n[o]=arguments[o];for(var s=0;s=0;o-=1)this[n].insertbefore(s.childnodes[o],this[n].childnodes[0])}else if(e instanceof i)for(o=0;o0?t?this[0].nextelementsibling&&n(this[0].nextelementsibling).is(t)?new i([this[0].nextelementsibling]):new i([]):this[0].nextelementsibling?new i([this[0].nextelementsibling]):new i([]):new i([])},nextall:function(t){var e=[],o=this[0];if(!o)return new i([]);for(;o.nextelementsibling;){var s=o.nextelementsibling;t?n(s).is(t)&&e.push(s):e.push(s),o=s}return new i(e)},prev:function(t){if(this.length>0){var e=this[0];return t?e.previouselementsibling&&n(e.previouselementsibling).is(t)?new i([e.previouselementsibling]):new i([]):e.previouselementsibling?new i([e.previouselementsibling]):new i([])}return new i([])},prevall:function(t){var e=[],o=this[0];if(!o)return new i([]);for(;o.previouselementsibling;){var s=o.previouselementsibling;t?n(s).is(t)&&e.push(s):e.push(s),o=s}return new i(e)},parent:function(t){for(var e=[],i=0;i6&&(o=o.split(", ").map((function(t){return t.replace(",",".")})).join(", ")),s=new e.webkitcssmatrix("none"===o?"":o)):n=(s=r.moztransform||r.otransform||r.mstransform||r.mstransform||r.transform||r.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,")).tostring().split(","),"x"===i&&(o=e.webkitcssmatrix?s.m41:16===n.length?parsefloat(n[12]):parsefloat(n[4])),"y"===i&&(o=e.webkitcssmatrix?s.m42:16===n.length?parsefloat(n[13]):parsefloat(n[5])),o||0},parseurlquery:function(t){var i,n,o,s,r={},a=t||e.location.href;if("string"==typeof a&&a.length)for(s=(n=(a=a.indexof("?")>-1?a.replace(/\s*\?/,""):"").split("&").filter((function(t){return""!==t}))).length,i=0;i0||"ontouchstart"in e||e.documenttouch&&t instanceof e.documenttouch),pointerevents:!!e.pointerevent&&"maxtouchpoints"in e.navigator&&e.navigator.maxtouchpoints>0,observer:"mutationobserver"in e||"webkitmutationobserver"in e,passivelistener:function(){var t=!1;try{var i=object.defineproperty({},"passive",{get:function(){t=!0}});e.addeventlistener("testpassivelistener",null,i)}catch(t){}return t}(),gestures:"ongesturestart"in e},l=function(t){void 0===t&&(t={});var e=this;e.params=t,e.eventslisteners={},e.params&&e.params.on&&object.keys(e.params.on).foreach((function(t){e.on(t,e.params.on[t])}))},c={components:{configurable:!0}};l.prototype.on=function(t,e,i){var n=this;if("function"!=typeof e)return n;var o=i?"unshift":"push";return t.split(" ").foreach((function(t){n.eventslisteners[t]||(n.eventslisteners[t]=[]),n.eventslisteners[t][o](e)})),n},l.prototype.once=function(t,e,i){var n=this;if("function"!=typeof e)return n;function o(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];e.apply(n,i),n.off(t,o),o.f7proxy&&delete o.f7proxy}return o.f7proxy=e,n.on(t,o,i)},l.prototype.off=function(t,e){var i=this;return i.eventslisteners?(t.split(" ").foreach((function(t){void 0===e?i.eventslisteners[t]=[]:i.eventslisteners[t]&&i.eventslisteners[t].length&&i.eventslisteners[t].foreach((function(n,o){(n===e||n.f7proxy&&n.f7proxy===e)&&i.eventslisteners[t].splice(o,1)}))})),i):i},l.prototype.emit=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i,n,o,s=this;if(!s.eventslisteners)return s;"string"==typeof t[0]||array.isarray(t[0])?(i=t[0],n=t.slice(1,t.length),o=s):(i=t[0].events,n=t[0].data,o=t[0].context||s);var r=array.isarray(i)?i:i.split(" ");return r.foreach((function(t){if(s.eventslisteners&&s.eventslisteners[t]){var e=[];s.eventslisteners[t].foreach((function(t){e.push(t)})),e.foreach((function(t){t.apply(o,n)}))}})),s},l.prototype.usemodulesparams=function(t){var e=this;e.modules&&object.keys(e.modules).foreach((function(i){var n=e.modules[i];n.params&&r.extend(t,n.params)}))},l.prototype.usemodules=function(t){void 0===t&&(t={});var e=this;e.modules&&object.keys(e.modules).foreach((function(i){var n=e.modules[i],o=t[i]||{};n.instance&&object.keys(n.instance).foreach((function(t){var i=n.instance[t];e[t]="function"==typeof i?i.bind(e):i})),n.on&&e.on&&object.keys(n.on).foreach((function(t){e.on(t,n.on[t])})),n.create&&n.create.bind(e)(o)}))},c.components.set=function(t){this.use&&this.use(t)},l.installmodule=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var n=this;n.prototype.modules||(n.prototype.modules={});var o=t.name||object.keys(n.prototype.modules).length+"_"+r.now();return n.prototype.modules[o]=t,t.proto&&object.keys(t.proto).foreach((function(e){n.prototype[e]=t.proto[e]})),t.static&&object.keys(t.static).foreach((function(e){n[e]=t.static[e]})),t.install&&t.install.apply(n,e),n},l.use=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var n=this;return array.isarray(t)?(t.foreach((function(t){return n.installmodule(t)})),n):n.installmodule.apply(n,[t].concat(e))},object.defineproperties(l,c);var d,u,h,p,f,g,m,v,b,y,w,x,_,t,c,s={updatesize:function(){var t,e,i=this.$el;t=void 0!==this.params.width?this.params.width:i[0].clientwidth,e=void 0!==this.params.height?this.params.height:i[0].clientheight,0===t&&this.ishorizontal()||0===e&&this.isvertical()||(t=t-parseint(i.css("padding-left"),10)-parseint(i.css("padding-right"),10),e=e-parseint(i.css("padding-top"),10)-parseint(i.css("padding-bottom"),10),r.extend(this,{width:t,height:e,size:this.ishorizontal()?t:e}))},updateslides:function(){var t=this.params,i=this.$wrapperel,n=this.size,o=this.rtltranslate,s=this.wrongrtl,a=this.virtual&&t.virtual.enabled,l=a?this.virtual.slides.length:this.slides.length,c=i.children("."+this.params.slideclass),d=a?this.virtual.slides.length:c.length,u=[],h=[],p=[];function f(e){return!t.cssmode||e!==c.length-1}var g=t.slidesoffsetbefore;"function"==typeof g&&(g=t.slidesoffsetbefore.call(this));var m=t.slidesoffsetafter;"function"==typeof m&&(m=t.slidesoffsetafter.call(this));var v=this.snapgrid.length,b=this.snapgrid.length,y=t.spacebetween,w=-g,x=0,_=0;if(void 0!==n){var t,c;"string"==typeof y&&y.indexof("%")>=0&&(y=parsefloat(y.replace("%",""))/100*n),this.virtualsize=-y,o?c.css({marginleft:"",margintop:""}):c.css({marginright:"",marginbottom:""}),t.slidespercolumn>1&&(t=math.floor(d/t.slidespercolumn)===d/this.params.slidespercolumn?d:math.ceil(d/t.slidespercolumn)*t.slidespercolumn,"auto"!==t.slidesperview&&"row"===t.slidespercolumnfill&&(t=math.max(t,t.slidesperview*t.slidespercolumn)));for(var s,e=t.slidespercolumn,$=t/e,p=math.floor(d/t.slidespercolumn),k=0;k1){var l=void 0,i=void 0,z=void 0;if("row"===t.slidespercolumnfill&&t.slidespergroup>1){var a=math.floor(k/(t.slidespergroup*t.slidespercolumn)),o=k-t.slidespercolumn*t.slidespergroup*a,d=0===a?t.slidespergroup:math.min(math.ceil((d-a*e*t.slidespergroup)/e),t.slidespergroup);l=(i=o-(z=math.floor(o/d))*d+a*t.slidespergroup)+z*t/e,m.css({"-webkit-box-ordinal-group":l,"-moz-box-ordinal-group":l,"-ms-flex-order":l,"-webkit-order":l,order:l})}else"column"===t.slidespercolumnfill?(z=k-(i=math.floor(k/e))*e,(i>p||i===p&&z===e-1)&&(z+=1)>=e&&(z=0,i+=1)):i=k-(z=math.floor(k/$))*$;m.css("margin-"+(this.ishorizontal()?"top":"left"),0!==z&&t.spacebetween&&t.spacebetween+"px")}if("none"!==m.css("display")){if("auto"===t.slidesperview){var f=e.getcomputedstyle(m[0],null),h=m[0].style.transform,n=m[0].style.webkittransform;if(h&&(m[0].style.transform="none"),n&&(m[0].style.webkittransform="none"),t.roundlengths)c=this.ishorizontal()?m.outerwidth(!0):m.outerheight(!0);else if(this.ishorizontal()){var j=parsefloat(f.getpropertyvalue("width")),r=parsefloat(f.getpropertyvalue("padding-left")),b=parsefloat(f.getpropertyvalue("padding-right")),q=parsefloat(f.getpropertyvalue("margin-left")),x=parsefloat(f.getpropertyvalue("margin-right")),y=f.getpropertyvalue("box-sizing");c=y&&"border-box"===y?j+q+x:j+r+b+q+x}else{var v=parsefloat(f.getpropertyvalue("height")),w=parsefloat(f.getpropertyvalue("padding-top")),g=parsefloat(f.getpropertyvalue("padding-bottom")),u=parsefloat(f.getpropertyvalue("margin-top")),k=parsefloat(f.getpropertyvalue("margin-bottom")),z=f.getpropertyvalue("box-sizing");c=z&&"border-box"===z?v+u+k:v+w+g+u+k}h&&(m[0].style.transform=h),n&&(m[0].style.webkittransform=n),t.roundlengths&&(c=math.floor(c))}else c=(n-(t.slidesperview-1)*y)/t.slidesperview,t.roundlengths&&(c=math.floor(c)),c[k]&&(this.ishorizontal()?c[k].style.width=c+"px":c[k].style.height=c+"px");c[k]&&(c[k].swiperslidesize=c),p.push(c),t.centeredslides?(w=w+c/2+x/2+y,0===x&&0!==k&&(w=w-n/2-y),0===k&&(w=w-n/2-y),math.abs(w)<.001&&(w=0),t.roundlengths&&(w=math.floor(w)),_%t.slidespergroup==0&&u.push(w),h.push(w)):(t.roundlengths&&(w=math.floor(w)),_%t.slidespergroup==0&&u.push(w),h.push(w),w=w+c+y),this.virtualsize+=c+y,x=c,_+=1}}if(this.virtualsize=math.max(this.virtualsize,n)+m,o&&s&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:this.virtualsize+t.spacebetween+"px"}),t.setwrappersize&&(this.ishorizontal()?i.css({width:this.virtualsize+t.spacebetween+"px"}):i.css({height:this.virtualsize+t.spacebetween+"px"})),t.slidespercolumn>1&&(this.virtualsize=(c+t.spacebetween)*t,this.virtualsize=math.ceil(this.virtualsize/t.slidespercolumn)-t.spacebetween,this.ishorizontal()?i.css({width:this.virtualsize+t.spacebetween+"px"}):i.css({height:this.virtualsize+t.spacebetween+"px"}),t.centeredslides)){s=[];for(var q=0;q1&&u.push(this.virtualsize-n)}if(0===u.length&&(u=[0]),0!==t.spacebetween&&(this.ishorizontal()?o?c.filter(f).css({marginleft:y+"px"}):c.filter(f).css({marginright:y+"px"}):c.filter(f).css({marginbottom:y+"px"})),t.centeredslides&&t.centeredslidesbounds){var it=0;p.foreach((function(e){it+=e+(t.spacebetween?t.spacebetween:0)}));var nt=(it-=t.spacebetween)-n;u=u.map((function(t){return t<0?-g:t>nt?nt+m:t}))}if(t.centerinsufficientslides){var ot=0;if(p.foreach((function(e){ot+=e+(t.spacebetween?t.spacebetween:0)})),(ot-=t.spacebetween)1)for(e=0;ethis.slides.length)break;i.push(this.slides.eq(o)[0])}else i.push(this.slides.eq(this.activeindex)[0]);for(e=0;en?s:n}n&&this.$wrapperel.css("height",n+"px")},updateslidesoffset:function(){for(var t=this.slides,e=0;e=0&&c1&&d<=this.size||c<=0&&d>=this.size)&&(this.visibleslides.push(a),this.visibleslidesindexes.push(r),i.eq(r).addclass(e.slidevisibleclass))}a.progress=o?-l:l}this.visibleslides=n(this.visibleslides)}},updateprogress:function(t){if(void 0===t){var e=this.rtltranslate?-1:1;t=this&&this.translate&&this.translate*e||0}var i=this.params,n=this.maxtranslate()-this.mintranslate(),o=this.progress,s=this.isbeginning,a=this.isend,l=s,c=a;0===n?(o=0,s=!0,a=!0):(s=(o=(t-this.mintranslate())/n)<=0,a=o>=1),r.extend(this,{progress:o,isbeginning:s,isend:a}),(i.watchslidesprogress||i.watchslidesvisibility)&&this.updateslidesprogress(t),s&&!l&&this.emit("reachbeginning toedge"),a&&!c&&this.emit("reachend toedge"),(l&&!s||c&&!a)&&this.emit("fromedge"),this.emit("progress",o)},updateslidesclasses:function(){var t,e=this.slides,i=this.params,n=this.$wrapperel,o=this.activeindex,s=this.realindex,r=this.virtual&&i.virtual.enabled;e.removeclass(i.slideactiveclass+" "+i.slidenextclass+" "+i.slideprevclass+" "+i.slideduplicateactiveclass+" "+i.slideduplicatenextclass+" "+i.slideduplicateprevclass),(t=r?this.$wrapperel.find("."+i.slideclass+'[data-swiper-slide-index="'+o+'"]'):e.eq(o)).addclass(i.slideactiveclass),i.loop&&(t.hasclass(i.slideduplicateclass)?n.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+s+'"]').addclass(i.slideduplicateactiveclass):n.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+s+'"]').addclass(i.slideduplicateactiveclass));var a=t.nextall("."+i.slideclass).eq(0).addclass(i.slidenextclass);i.loop&&0===a.length&&(a=e.eq(0)).addclass(i.slidenextclass);var l=t.prevall("."+i.slideclass).eq(0).addclass(i.slideprevclass);i.loop&&0===l.length&&(l=e.eq(-1)).addclass(i.slideprevclass),i.loop&&(a.hasclass(i.slideduplicateclass)?n.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass):n.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass),l.hasclass(i.slideduplicateclass)?n.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass):n.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass))},updateactiveindex:function(t){var e,i=this.rtltranslate?this.translate:-this.translate,n=this.slidesgrid,o=this.snapgrid,s=this.params,a=this.activeindex,l=this.realindex,c=this.snapindex,d=t;if(void 0===d){for(var u=0;u=n[u]&&i=n[u]&&i=n[u]&&(d=u);s.normalizeslideindex&&(d<0||void 0===d)&&(d=0)}if((e=o.indexof(i)>=0?o.indexof(i):math.floor(d/s.slidespergroup))>=o.length&&(e=o.length-1),d!==a){var h=parseint(this.slides.eq(d).attr("data-swiper-slide-index")||d,10);r.extend(this,{snapindex:e,realindex:h,previousindex:a,activeindex:d}),this.emit("activeindexchange"),this.emit("snapindexchange"),l!==h&&this.emit("realindexchange"),(this.initialized||this.runcallbacksoninit)&&this.emit("slidechange")}else e!==c&&(this.snapindex=e,this.emit("snapindexchange"))},updateclickedslide:function(t){var e=this.params,i=n(t.target).closest("."+e.slideclass)[0],o=!1;if(i)for(var s=0;sd?d:n&&t=l.length&&(f=l.length-1),(u||a.initialslide||0)===(d||0)&&i&&s.emit("beforeslidechangestart");var g,m=-l[f];if(s.updateprogress(m),a.normalizeslideindex)for(var v=0;v=math.floor(100*c[v])&&(r=v);if(s.initialized&&r!==u){if(!s.allowslidenext&&ms.translate&&m>s.maxtranslate()&&(u||0)!==r)return!1}if(g=r>u?"next":r=t&&(h=t)})),void 0!==h&&(c=r.indexof(h))<0&&(c=this.activeindex-1),this.slideto(c,t,e,i)},slidereset:function(t,e,i){return void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),this.slideto(this.activeindex,t,e,i)},slidetoclosest:function(t,e,i,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),void 0===n&&(n=.5);var o=this.activeindex,s=math.floor(o/this.params.slidespergroup),r=this.rtltranslate?this.translate:-this.translate;if(r>=this.snapgrid[s]){var a=this.snapgrid[s];r-a>(this.snapgrid[s+1]-a)*n&&(o+=this.params.slidespergroup)}else{var l=this.snapgrid[s-1];r-l<=(this.snapgrid[s]-l)*n&&(o-=this.params.slidespergroup)}return o=math.max(o,0),o=math.min(o,this.snapgrid.length-1),this.slideto(o,t,e,i)},slidetoclickedslide:function(){var t,e=this,i=e.params,o=e.$wrapperel,s="auto"===i.slidesperview?e.slidesperviewdynamic():i.slidesperview,a=e.clickedindex;if(i.loop){if(e.animating)return;t=parseint(n(e.clickedslide).attr("data-swiper-slide-index"),10),i.centeredslides?ae.slides.length-e.loopedslides+s/2?(e.loopfix(),a=o.children("."+i.slideclass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideduplicateclass+")").eq(0).index(),r.nexttick((function(){e.slideto(a)}))):e.slideto(a):a>e.slides.length-s?(e.loopfix(),a=o.children("."+i.slideclass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideduplicateclass+")").eq(0).index(),r.nexttick((function(){e.slideto(a)}))):e.slideto(a)}else e.slideto(a)}},p={loopcreate:function(){var e=this,i=e.params,o=e.$wrapperel;o.children("."+i.slideclass+"."+i.slideduplicateclass).remove();var s=o.children("."+i.slideclass);if(i.loopfillgroupwithblank){var r=i.slidespergroup-s.length%i.slidespergroup;if(r!==i.slidespergroup){for(var a=0;as.length&&(e.loopedslides=s.length);var c=[],d=[];s.each((function(t,i){var o=n(i);t=s.length-e.loopedslides&&c.push(i),o.attr("data-swiper-slide-index",t)}));for(var u=0;u=0;h-=1)o.prepend(n(c[h].clonenode(!0)).addclass(i.slideduplicateclass))},loopfix:function(){var t,e=this.activeindex,i=this.slides,n=this.loopedslides,o=this.allowslideprev,s=this.allowslidenext,r=this.snapgrid,a=this.rtltranslate;this.allowslideprev=!0,this.allowslidenext=!0;var l=-r[e]-this.gettranslate();e=i.length-n&&(t=-i.length+e+n,t+=n,this.slideto(t,0,!1,!0)&&0!==l&&this.settranslate((a?-this.translate:this.translate)-l)),this.allowslideprev=o,this.allowslidenext=s},loopdestroy:function(){var t=this.$wrapperel,e=this.params,i=this.slides;t.children("."+e.slideclass+"."+e.slideduplicateclass+",."+e.slideclass+"."+e.slideblankclass).remove(),i.removeattr("data-swiper-slide-index")}},k={setgrabcursor:function(t){if(!(a.touch||!this.params.simulatetouch||this.params.watchoverflow&&this.islocked||this.params.cssmode)){var e=this.el;e.style.cursor="move",e.style.cursor=t?"-webkit-grabbing":"-webkit-grab",e.style.cursor=t?"-moz-grabbin":"-moz-grab",e.style.cursor=t?"grabbing":"grab"}},unsetgrabcursor:function(){a.touch||this.params.watchoverflow&&this.islocked||this.params.cssmode||(this.el.style.cursor="")}},m={appendslide:function(t){var e=this.$wrapperel,i=this.params;if(i.loop&&this.loopdestroy(),"object"==typeof t&&"length"in t)for(var n=0;n=s)this.appendslide(e);else{for(var r=o>t?o+1:o,l=[],c=s-1;c>=t;c-=1){var d=this.slides.eq(c);d.remove(),l.unshift(d)}if("object"==typeof e&&"length"in e){for(var u=0;ut?o+e.length:o}else i.append(e);for(var h=0;h=0||u.indexof("trident/")>=0,w=u.indexof("edge/")>=0,x=u.indexof("gecko/")>=0&&u.indexof("firefox/")>=0,_="win32"===d,t=u.tolowercase().indexof("electron")>=0,c="macintel"===d,!m&&c&&a.touch&&(1024===p&&1366===f||834===p&&1194===f||834===p&&1112===f||768===p&&1024===f)&&(m=u.match(/(version)\/([\d.]+)/),c=!1),h.ie=y,h.edge=w,h.firefox=x,g&&!_&&(h.os="android",h.osversion=g[2],h.android=!0,h.androidchrome=u.tolowercase().indexof("chrome")>=0),(m||b||v)&&(h.os="ios",h.ios=!0),b&&!v&&(h.osversion=b[2].replace(/_/g,"."),h.iphone=!0),m&&(h.osversion=m[2].replace(/_/g,"."),h.ipad=!0),v&&(h.osversion=v[3]?v[3].replace(/_/g,"."):null,h.ipod=!0),h.ios&&h.osversion&&u.indexof("version/")>=0&&"10"===h.osversion.split(".")[0]&&(h.osversion=u.tolowercase().split("version/")[1].split(" ")[0]),h.webview=!(!(b||m||v)||!u.match(/.*applewebkit(?!.*safari)/i)&&!e.navigator.standalone)||e.matchmedia&&e.matchmedia("(display-mode: standalone)").matches,h.webview=h.webview,h.standalone=h.webview,h.desktop=!(h.ios||h.android)||t,h.desktop&&(h.electron=t,h.macos=c,h.windows=_,h.macos&&(h.os="macos"),h.windows&&(h.os="windows")),h.pixelratio=e.devicepixelratio||1,h);function i(i){var o=this.toucheventsdata,s=this.params,a=this.touches;if(!this.animating||!s.preventinteractionontransition){var l=i;l.originalevent&&(l=l.originalevent);var c=n(l.target);if(("wrapper"!==s.toucheventstarget||c.closest(this.wrapperel).length)&&(o.istouchevent="touchstart"===l.type,(o.istouchevent||!("which"in l)||3!==l.which)&&!(!o.istouchevent&&"button"in l&&l.button>0||o.istouched&&o.ismoved)))if(s.noswiping&&c.closest(s.noswipingselector?s.noswipingselector:"."+s.noswipingclass)[0])this.allowclick=!0;else if(!s.swipehandler||c.closest(s.swipehandler)[0]){a.currentx="touchstart"===l.type?l.targettouches[0].pagex:l.pagex,a.currenty="touchstart"===l.type?l.targettouches[0].pagey:l.pagey;var d=a.currentx,u=a.currenty,h=s.edgeswipedetection||s.iosedgeswipedetection,p=s.edgeswipethreshold||s.iosedgeswipethreshold;if(!h||!(d<=p||d>=e.screen.width-p)){if(r.extend(o,{istouched:!0,ismoved:!1,allowtouchcallbacks:!0,isscrolling:void 0,startmoving:void 0}),a.startx=d,a.starty=u,o.touchstarttime=r.now(),this.allowclick=!0,this.updatesize(),this.swipedirection=void 0,s.threshold>0&&(o.allowthresholdmove=!1),"touchstart"!==l.type){var f=!0;c.is(o.formelements)&&(f=!1),t.activeelement&&n(t.activeelement).is(o.formelements)&&t.activeelement!==c[0]&&t.activeelement.blur();var g=f&&this.allowtouchmove&&s.touchstartpreventdefault;(s.touchstartforcepreventdefault||g)&&l.preventdefault()}this.emit("touchstart",l)}}}}function z(e){var i=this.toucheventsdata,o=this.params,s=this.touches,a=this.rtltranslate,l=e;if(l.originalevent&&(l=l.originalevent),i.istouched){if(!i.istouchevent||"mousemove"!==l.type){var c="touchmove"===l.type&&l.targettouches&&(l.targettouches[0]||l.changedtouches[0]),d="touchmove"===l.type?c.pagex:l.pagex,u="touchmove"===l.type?c.pagey:l.pagey;if(l.preventedbynestedswiper)return s.startx=d,void(s.starty=u);if(!this.allowtouchmove)return this.allowclick=!1,void(i.istouched&&(r.extend(s,{startx:d,starty:u,currentx:d,currenty:u}),i.touchstarttime=r.now()));if(i.istouchevent&&o.touchreleaseonedges&&!o.loop)if(this.isvertical()){if(us.starty&&this.translate>=this.mintranslate())return i.istouched=!1,void(i.ismoved=!1)}else if(ds.startx&&this.translate>=this.mintranslate())return;if(i.istouchevent&&t.activeelement&&l.target===t.activeelement&&n(l.target).is(i.formelements))return i.ismoved=!0,void(this.allowclick=!1);if(i.allowtouchcallbacks&&this.emit("touchmove",l),!(l.targettouches&&l.targettouches.length>1)){s.currentx=d,s.currenty=u;var h,p=s.currentx-s.startx,f=s.currenty-s.starty;if(!(this.params.threshold&&math.sqrt(math.pow(p,2)+math.pow(f,2))=25&&(h=180*math.atan2(math.abs(f),math.abs(p))/math.pi,i.isscrolling=this.ishorizontal()?h>o.touchangle:90-h>o.touchangle)),i.isscrolling&&this.emit("touchmoveopposite",l),void 0===i.startmoving&&(s.currentx===s.startx&&s.currenty===s.starty||(i.startmoving=!0)),i.isscrolling)i.istouched=!1;else if(i.startmoving){this.allowclick=!1,o.cssmode||l.preventdefault(),o.touchmovestoppropagation&&!o.nested&&l.stoppropagation(),i.ismoved||(o.loop&&this.loopfix(),i.starttranslate=this.gettranslate(),this.settransition(0),this.animating&&this.$wrapperel.trigger("webkittransitionend transitionend"),i.allowmomentumbounce=!1,!o.grabcursor||!0!==this.allowslidenext&&!0!==this.allowslideprev||this.setgrabcursor(!0),this.emit("sliderfirstmove",l)),this.emit("slidermove",l),i.ismoved=!0;var g=this.ishorizontal()?p:f;s.diff=g,g*=o.touchratio,a&&(g=-g),this.swipedirection=g>0?"prev":"next",i.currenttranslate=g+i.starttranslate;var m=!0,v=o.resistanceratio;if(o.touchreleaseonedges&&(v=0),g>0&&i.currenttranslate>this.mintranslate()?(m=!1,o.resistance&&(i.currenttranslate=this.mintranslate()-1+math.pow(-this.mintranslate()+i.starttranslate+g,v))):g<0&&i.currenttranslatei.starttranslate&&(i.currenttranslate=i.starttranslate),o.threshold>0){if(!(math.abs(g)>o.threshold||i.allowthresholdmove))return void(i.currenttranslate=i.starttranslate);if(!i.allowthresholdmove)return i.allowthresholdmove=!0,s.startx=s.currentx,s.starty=s.currenty,i.currenttranslate=i.starttranslate,void(s.diff=this.ishorizontal()?s.currentx-s.startx:s.currenty-s.starty)}o.followfinger&&!o.cssmode&&((o.freemode||o.watchslidesprogress||o.watchslidesvisibility)&&(this.updateactiveindex(),this.updateslidesclasses()),o.freemode&&(0===i.velocities.length&&i.velocities.push({position:s[this.ishorizontal()?"startx":"starty"],time:i.touchstarttime}),i.velocities.push({position:s[this.ishorizontal()?"currentx":"currenty"],time:r.now()})),this.updateprogress(i.currenttranslate),this.settranslate(i.currenttranslate))}}}}else i.startmoving&&i.isscrolling&&this.emit("touchmoveopposite",l)}function a(t){var e=this,i=e.toucheventsdata,n=e.params,o=e.touches,s=e.rtltranslate,a=e.$wrapperel,l=e.slidesgrid,c=e.snapgrid,d=t;if(d.originalevent&&(d=d.originalevent),i.allowtouchcallbacks&&e.emit("touchend",d),i.allowtouchcallbacks=!1,!i.istouched)return i.ismoved&&n.grabcursor&&e.setgrabcursor(!1),i.ismoved=!1,void(i.startmoving=!1);n.grabcursor&&i.ismoved&&i.istouched&&(!0===e.allowslidenext||!0===e.allowslideprev)&&e.setgrabcursor(!1);var u,h=r.now(),p=h-i.touchstarttime;if(e.allowclick&&(e.updateclickedslide(d),e.emit("tap click",d),p<300&&h-i.lastclicktime<300&&e.emit("doubletap doubleclick",d)),i.lastclicktime=r.now(),r.nexttick((function(){e.destroyed||(e.allowclick=!0)})),!i.istouched||!i.ismoved||!e.swipedirection||0===o.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,u=n.followfinger?s?e.translate:-e.translate:-i.currenttranslate,!n.cssmode)if(n.freemode){if(u<-e.mintranslate())return void e.slideto(e.activeindex);if(u>-e.maxtranslate())return void(e.slides.length1){var f=i.velocities.pop(),g=i.velocities.pop(),m=f.position-g.position,v=f.time-g.time;e.velocity=m/v,e.velocity/=2,math.abs(e.velocity)150||r.now()-f.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=n.freemodemomentumvelocityratio,i.velocities.length=0;var b=1e3*n.freemodemomentumratio,y=e.velocity*b,w=e.translate+y;s&&(w=-w);var x,_,t=!1,c=20*math.abs(e.velocity)*n.freemodemomentumbounceratio;if(we.mintranslate())n.freemodemomentumbounce?(w-e.mintranslate()>c&&(w=e.mintranslate()+c),x=e.mintranslate(),t=!0,i.allowmomentumbounce=!0):w=e.mintranslate(),n.loop&&n.centeredslides&&(_=!0);else if(n.freemodesticky){for(var s,e=0;e-w){s=e;break}w=-(w=math.abs(c[s]-w)=n.longswipesms)&&(e.updateprogress(),e.updateactiveindex(),e.updateslidesclasses())}else{for(var k=0,m=e.slidessizesgrid[0],l=0;l=l[l]&&u=l[l]&&(k=l,m=l[l.length-1]-l[l.length-2]);var i=(u-l[k])/m;if(p>n.longswipesms){if(!n.longswipes)return void e.slideto(e.activeindex);"next"===e.swipedirection&&(i>=n.longswipesratio?e.slideto(k+n.slidespergroup):e.slideto(k)),"prev"===e.swipedirection&&(i>1-n.longswipesratio?e.slideto(k+n.slidespergroup):e.slideto(k))}else{if(!n.shortswipes)return void e.slideto(e.activeindex);!e.navigation||d.target!==e.navigation.nextel&&d.target!==e.navigation.prevel?("next"===e.swipedirection&&e.slideto(k+n.slidespergroup),"prev"===e.swipedirection&&e.slideto(k)):d.target===e.navigation.nextel?e.slideto(k+n.slidespergroup):e.slideto(k)}}}function o(){var t=this.params,e=this.el;if(!e||0!==e.offsetwidth){t.breakpoints&&this.setbreakpoint();var i=this.allowslidenext,n=this.allowslideprev,o=this.snapgrid;this.allowslidenext=!0,this.allowslideprev=!0,this.updatesize(),this.updateslides(),this.updateslidesclasses(),("auto"===t.slidesperview||t.slidesperview>1)&&this.isend&&!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=n,this.allowslidenext=i,this.params.watchoverflow&&o!==this.snapgrid&&this.checkoverflow()}}function d(t){this.allowclick||(this.params.preventclicks&&t.preventdefault(),this.params.preventclickspropagation&&this.animating&&(t.stoppropagation(),t.stopimmediatepropagation()))}function f(){var t=this.wrapperel;this.previoustranslate=this.translate,this.translate=this.ishorizontal()?-t.scrollleft:-t.scrolltop,-0===this.translate&&(this.translate=0),this.updateactiveindex(),this.updateslidesclasses();var e=this.maxtranslate()-this.mintranslate();(0===e?0:(this.translate-this.mintranslate())/e)!==this.progress&&this.updateprogress(this.translate),this.emit("settranslate",this.translate,!1)}var h=!1;function n(){}var j={init:!0,direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,cssmode:!1,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,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:s,translate:e,transition:{settransition:function(t,e){this.params.cssmode||this.$wrapperel.transition(t),this.emit("settransition",t,e)},transitionstart:function(t,e){void 0===t&&(t=!0);var i=this.activeindex,n=this.params,o=this.previousindex;if(!n.cssmode){n.autoheight&&this.updateautoheight();var s=e;if(s||(s=i>o?"next":in?"next":i1,u=c.slidespercolumn>1;d&&!u?o.removeclass(n.containermodifierclass+"multirow "+n.containermodifierclass+"multirow-column"):!d&&u&&(o.addclass(n.containermodifierclass+"multirow"),"column"===c.slidespercolumnfill&&o.addclass(n.containermodifierclass+"multirow-column"));var h=c.direction&&c.direction!==n.direction,p=n.loop&&(c.slidesperview!==n.slidesperview||h);h&&e&&this.changedirection(),r.extend(this.params,c),r.extend(this,{allowtouchmove:this.params.allowtouchmove,allowslidenext:this.params.allowslidenext,allowslideprev:this.params.allowslideprev}),this.currentbreakpoint=a,p&&e&&(this.loopdestroy(),this.loopcreate(),this.updateslides(),this.slideto(t-i+this.loopedslides,0,!1)),this.emit("breakpoint",c)}}},getbreakpoint:function(t){if(t){var i=!1,n=[];object.keys(t).foreach((function(t){n.push(t)})),n.sort((function(t,e){return parseint(t,10)-parseint(e,10)}));for(var o=0;o0&&t.slidesoffsetbefore+t.spacebetween*(this.slides.length-1)+this.slides[0].offsetwidth*this.slides.length;t.slidesoffsetbefore&&t.slidesoffsetafter&&i?this.islocked=i<=this.size:this.islocked=1===this.snapgrid.length,this.allowslidenext=!this.islocked,this.allowslideprev=!this.islocked,e!==this.islocked&&this.emit(this.islocked?"lock":"unlock"),e&&e!==this.islocked&&(this.isend=!1,this.navigation.update())}},classes:{addclasses:function(){var t=this.classnames,e=this.params,i=this.rtl,n=this.$el,o=[];o.push("initialized"),o.push(e.direction),e.freemode&&o.push("free-mode"),e.autoheight&&o.push("autoheight"),i&&o.push("rtl"),e.slidespercolumn>1&&(o.push("multirow"),"column"===e.slidespercolumnfill&&o.push("multirow-column")),l.android&&o.push("android"),l.ios&&o.push("ios"),e.cssmode&&o.push("css-mode"),o.foreach((function(i){t.push(e.containermodifierclass+i)})),n.addclass(t.join(" "))},removeclasses:function(){var t=this.$el,e=this.classnames;t.removeclass(e.join(" "))}},images:{loadimage:function(t,i,n,o,s,r){var a;function l(){r&&r()}t.complete&&s?l():i?((a=new e.image).onload=l,a.onerror=l,o&&(a.sizes=o),n&&(a.srcset=n),i&&(a.src=i)):l()},preloadimages:function(){var t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesloaded&&(t.imagesloaded+=1),t.imagesloaded===t.imagestoload.length&&(t.params.updateonimagesready&&t.update(),t.emit("imagesready")))}t.imagestoload=t.$el.find("img");for(var i=0;i1){var p=[];return h.each((function(t,i){var n=r.extend({},s,{el:i});p.push(new e(n))})),p}var f,g,m;return o.swiper=d,h.data("swiper",d),o&&o.shadowroot&&o.shadowroot.queryselector?(f=n(o.shadowroot.queryselector("."+d.params.wrapperclass))).children=function(t){return h.children(t)}:f=h.children("."+d.params.wrapperclass),r.extend(d,{$el:h,el:o,$wrapperel:f,wrapperel:f[0],classnames:[],slides:n(),slidesgrid:[],snapgrid:[],slidessizesgrid:[],ishorizontal:function(){return"horizontal"===d.params.direction},isvertical:function(){return"vertical"===d.params.direction},rtl:"rtl"===o.dir.tolowercase()||"rtl"===h.css("direction"),rtltranslate:"horizontal"===d.params.direction&&("rtl"===o.dir.tolowercase()||"rtl"===h.css("direction")),wrongrtl:"-webkit-box"===f.css("display"),activeindex:0,realindex:0,isbeginning:!0,isend:!1,translate:0,previoustranslate:0,progress:0,velocity:0,animating:!1,allowslidenext:d.params.allowslidenext,allowslideprev:d.params.allowslideprev,touchevents:(g=["touchstart","touchmove","touchend","touchcancel"],m=["mousedown","mousemove","mouseup"],a.pointerevents&&(m=["pointerdown","pointermove","pointerup"]),d.toucheventstouch={start:g[0],move:g[1],end:g[2],cancel:g[3]},d.toucheventsdesktop={start:m[0],move:m[1],end:m[2]},a.touch||!d.params.simulatetouch?d.toucheventstouch:d.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",lastclicktime:r.now(),clicktimeout:void 0,velocities:[],allowmomentumbounce:void 0,istouchevent:void 0,startmoving:void 0},allowclick:!0,allowtouchmove:d.params.allowtouchmove,touches:{startx:0,starty:0,currentx:0,currenty:0,diff:0},imagestoload:[],imagesloaded:0}),d.usemodules(),d.params.init&&d.init(),d}}t&&(e.__proto__=t),e.prototype=object.create(t&&t.prototype),e.prototype.constructor=e;var i={extendeddefaults:{configurable:!0},defaults:{configurable:!0},class:{configurable:!0},$:{configurable:!0}};return e.prototype.slidesperviewdynamic=function(){var t=this.params,e=this.slides,i=this.slidesgrid,n=this.size,o=this.activeindex,s=1;if(t.centeredslides){for(var r,a=e[o].swiperslidesize,l=o+1;ln&&(r=!0));for(var c=o-1;c>=0;c-=1)e[c]&&!r&&(s+=1,(a+=e[c].swiperslidesize)>n&&(r=!0))}else for(var d=o+1;d1)&&t.isend&&!t.params.centeredslides?t.slideto(t.slides.length-1,0,!1,!0):t.slideto(t.activeindex,0,!1,!0))||n(),i.watchoverflow&&e!==t.snapgrid&&t.checkoverflow(),t.emit("update")}function n(){var e=t.rtltranslate?-1*t.translate:t.translate,i=math.min(math.max(e,t.maxtranslate()),t.mintranslate());t.settranslate(i),t.updateactiveindex(),t.updateslidesclasses()}},e.prototype.changedirection=function(t,e){void 0===e&&(e=!0);var i=this.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t?this:(this.$el.removeclass(""+this.params.containermodifierclass+i).addclass(""+this.params.containermodifierclass+t),this.params.direction=t,this.slides.each((function(e,i){"vertical"===t?i.style.width="":i.style.height=""})),this.emit("changedirection"),e&&this.update(),this)},e.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"))},e.prototype.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var i=this,n=i.params,o=i.$el,s=i.$wrapperel,a=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforedestroy"),i.initialized=!1,i.detachevents(),n.loop&&i.loopdestroy(),e&&(i.removeclasses(),o.removeattr("style"),s.removeattr("style"),a&&a.length&&a.removeclass([n.slidevisibleclass,n.slideactiveclass,n.slidenextclass,n.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index")),i.emit("destroy"),object.keys(i.eventslisteners).foreach((function(t){i.off(t)})),!1!==t&&(i.$el[0].swiper=null,i.$el.data("swiper",null),r.deleteprops(i)),i.destroyed=!0,null)},e.extenddefaults=function(t){r.extend(b,t)},i.extendeddefaults.get=function(){return b},i.defaults.get=function(){return j},i.class.get=function(){return t},i.$.get=function(){return n},object.defineproperties(e,i),e}(l),x={name:"device",proto:{device:l},static:{device:l}},y={name:"support",proto:{support:a},static:{support:a}},v={isedge:!!e.navigator.useragent.match(/edge/g),issafari:function(){var t=e.navigator.useragent.tolowercase();return t.indexof("safari")>=0&&t.indexof("chrome")<0&&t.indexof("android")<0}(),isuiwebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(e.navigator.useragent)},w={name:"browser",proto:{browser:v},static:{browser:v}},g={name:"resize",create:function(){var t=this;r.extend(t,{resize:{resizehandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeresize"),t.emit("resize"))},orientationchangehandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(){e.addeventlistener("resize",this.resize.resizehandler),e.addeventlistener("orientationchange",this.resize.orientationchangehandler)},destroy:function(){e.removeeventlistener("resize",this.resize.resizehandler),e.removeeventlistener("orientationchange",this.resize.orientationchangehandler)}}},u={func:e.mutationobserver||e.webkitmutationobserver,attach:function(t,i){void 0===i&&(i={});var n=this,o=new(0,u.func)((function(t){if(1!==t.length){var i=function(){n.emit("observerupdate",t[0])};e.requestanimationframe?e.requestanimationframe(i):e.settimeout(i,0)}else n.emit("observerupdate",t[0])}));o.observe(t,{attributes:void 0===i.attributes||i.attributes,childlist:void 0===i.childlist||i.childlist,characterdata:void 0===i.characterdata||i.characterdata}),n.observer.observers.push(o)},init:function(){if(a.observer&&this.params.observer){if(this.params.observeparents)for(var t=this.$el.parents(),e=0;e_)&&e.$wrapperel.find("."+e.params.slideclass+'[data-swiper-slide-index="'+$+'"]').remove();for(var p=0;p=x&&p<=_&&(void 0===h||t?e.push(p):(p>h&&e.push(p),p'+t+"");return o.attr("data-swiper-slide-index")||o.attr("data-swiper-slide-index",e),i.cache&&(this.virtual.cache[e]=o),o},appendslide:function(t){if("object"==typeof t&&"length"in t)for(var e=0;e=0;i-=1)this.virtual.slides.splice(t[i],1),this.params.virtual.cache&&delete this.virtual.cache[t[i]],t[i]0&&0===this.$el.parents("."+this.params.slideactiveclass).length)return;var a=e.innerwidth,l=e.innerheight,c=this.$el.offset();n&&(c.left-=this.$el[0].scrollleft);for(var d=[[c.left,c.top],[c.left+this.width,c.top],[c.left,c.top+this.height],[c.left+this.width,c.top+this.height]],u=0;u=0&&h[0]<=a&&h[1]>=0&&h[1]<=l&&(r=!0)}if(!r)return}this.ishorizontal()?(33!==s&&34!==s&&37!==s&&39!==s||(o.preventdefault?o.preventdefault():o.returnvalue=!1),(34!==s&&39!==s||n)&&(33!==s&&37!==s||!n)||this.slidenext(),(33!==s&&37!==s||n)&&(34!==s&&39!==s||!n)||this.slideprev()):(33!==s&&34!==s&&38!==s&&40!==s||(o.preventdefault?o.preventdefault():o.returnvalue=!1),34!==s&&40!==s||this.slidenext(),33!==s&&38!==s||this.slideprev()),this.emit("keypress",s)}},enable:function(){this.keyboard.enabled||(n(t).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(n(t).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},tt={name:"keyboard",params:{keyboard:{enabled:!1,onlyinviewport:!0}},create:function(){r.extend(this,{keyboard:{enabled:!1,enable:j.enable.bind(this),disable:j.disable.bind(this),handle:j.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}},et={lastscrolltime:r.now(),lasteventbeforesnap:void 0,recentwheelevents:[],event:function(){return e.navigator.useragent.indexof("firefox")>-1?"dommousescroll":function(){var e="onwheel"in t;if(!e){var i=t.createelement("div");i.setattribute("onwheel","return;"),e="function"==typeof i.onwheel}return!e&&t.implementation&&t.implementation.hasfeature&&!0!==t.implementation.hasfeature("","")&&(e=t.implementation.hasfeature("events.wheel","3.0")),e}()?"wheel":"mousewheel"},normalize:function(t){var e=0,i=0,n=0,o=0;return"detail"in t&&(i=t.detail),"wheeldelta"in t&&(i=-t.wheeldelta/120),"wheeldeltay"in t&&(i=-t.wheeldeltay/120),"wheeldeltax"in t&&(e=-t.wheeldeltax/120),"axis"in t&&t.axis===t.horizontal_axis&&(e=i,i=0),n=10*e,o=10*i,"deltay"in t&&(o=t.deltay),"deltax"in t&&(n=t.deltax),t.shiftkey&&!n&&(n=o,o=0),(n||o)&&t.deltamode&&(1===t.deltamode?(n*=40,o*=40):(n*=800,o*=800)),n&&!e&&(e=n<1?-1:1),o&&!i&&(i=o<1?-1:1),{spinx:e,spiny:i,pixelx:n,pixely:o}},handlemouseenter:function(){this.mouseentered=!0},handlemouseleave:function(){this.mouseentered=!1},handle:function(t){var i=t,n=this,o=n.params.mousewheel;if(n.params.cssmode&&i.preventdefault(),!n.mouseentered&&!o.releaseonedges)return!0;i.originalevent&&(i=i.originalevent);var s=0,a=n.rtltranslate?-1:1,l=et.normalize(i);if(o.forcetoaxis)if(n.ishorizontal()){if(!(math.abs(l.pixelx)>math.abs(l.pixely)))return!0;s=l.pixelx*a}else{if(!(math.abs(l.pixely)>math.abs(l.pixelx)))return!0;s=l.pixely}else s=math.abs(l.pixelx)>math.abs(l.pixely)?-l.pixelx*a:-l.pixely;if(0===s)return!0;if(o.invert&&(s=-s),n.params.freemode){var c={time:r.now(),delta:math.abs(s),direction:math.sign(s)},d=n.mousewheel.lasteventbeforesnap,u=d&&c.time=n.mintranslate()&&(h=n.mintranslate()),h<=n.maxtranslate()&&(h=n.maxtranslate()),n.settransition(0),n.settranslate(h),n.updateprogress(),n.updateactiveindex(),n.updateslidesclasses(),(!p&&n.isbeginning||!f&&n.isend)&&n.updateslidesclasses(),n.params.freemodesticky){cleartimeout(n.mousewheel.timeout),n.mousewheel.timeout=void 0;var g=n.mousewheel.recentwheelevents;g.length>=15&&g.shift();var m=g.length?g[g.length-1]:void 0,v=g[0];if(g.push(c),m&&(c.delta>m.delta||c.direction!==m.direction))g.splice(0);else if(g.length>=15&&c.time-v.time<500&&v.delta-c.delta>=1&&c.delta<=6){var b=s>0?.8:.2;n.mousewheel.lasteventbeforesnap=c,g.splice(0),n.mousewheel.timeout=r.nexttick((function(){n.slidetoclosest(n.params.speed,!0,void 0,b)}),0)}n.mousewheel.timeout||(n.mousewheel.timeout=r.nexttick((function(){n.mousewheel.lasteventbeforesnap=c,g.splice(0),n.slidetoclosest(n.params.speed,!0,void 0,.5)}),500))}if(u||n.emit("scroll",i),n.params.autoplay&&n.params.autoplaydisableoninteraction&&n.autoplay.stop(),h===n.mintranslate()||h===n.maxtranslate())return!0}}else{if(r.now()-n.mousewheel.lastscrolltime>60)if(s<0)if(n.isend&&!n.params.loop||n.animating){if(o.releaseonedges)return!0}else n.slidenext(),n.emit("scroll",i);else if(n.isbeginning&&!n.params.loop||n.animating){if(o.releaseonedges)return!0}else n.slideprev(),n.emit("scroll",i);n.mousewheel.lastscrolltime=(new e.date).gettime()}return i.preventdefault?i.preventdefault():i.returnvalue=!1,!1},enable:function(){var t=et.event();if(this.params.cssmode)return this.wrapperel.removeeventlistener(t,this.mousewheel.handle),!0;if(!t)return!1;if(this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventstarged&&(e=n(this.params.mousewheel.eventstarged)),e.on("mouseenter",this.mousewheel.handlemouseenter),e.on("mouseleave",this.mousewheel.handlemouseleave),e.on(t,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var t=et.event();if(this.params.cssmode)return this.wrapperel.addeventlistener(t,this.mousewheel.handle),!0;if(!t)return!1;if(!this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventstarged&&(e=n(this.params.mousewheel.eventstarged)),e.off(t,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},it={update:function(){var t=this.params.navigation;if(!this.params.loop){var e=this.navigation,i=e.$nextel,n=e.$prevel;n&&n.length>0&&(this.isbeginning?n.addclass(t.disabledclass):n.removeclass(t.disabledclass),n[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](t.lockclass)),i&&i.length>0&&(this.isend?i.addclass(t.disabledclass):i.removeclass(t.disabledclass),i[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](t.lockclass))}},onprevclick:function(t){t.preventdefault(),this.isbeginning&&!this.params.loop||this.slideprev()},onnextclick:function(t){t.preventdefault(),this.isend&&!this.params.loop||this.slidenext()},init:function(){var t,e,i=this.params.navigation;(i.nextel||i.prevel)&&(i.nextel&&(t=n(i.nextel),this.params.uniquenavelements&&"string"==typeof i.nextel&&t.length>1&&1===this.$el.find(i.nextel).length&&(t=this.$el.find(i.nextel))),i.prevel&&(e=n(i.prevel),this.params.uniquenavelements&&"string"==typeof i.prevel&&e.length>1&&1===this.$el.find(i.prevel).length&&(e=this.$el.find(i.prevel))),t&&t.length>0&&t.on("click",this.navigation.onnextclick),e&&e.length>0&&e.on("click",this.navigation.onprevclick),r.extend(this.navigation,{$nextel:t,nextel:t&&t[0],$prevel:e,prevel:e&&e[0]}))},destroy:function(){var t=this.navigation,e=t.$nextel,i=t.$prevel;e&&e.length&&(e.off("click",this.navigation.onnextclick),e.removeclass(this.params.navigation.disabledclass)),i&&i.length&&(i.off("click",this.navigation.onprevclick),i.removeclass(this.params.navigation.disabledclass))}},nt={update:function(){var t=this.rtl,e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,o=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,s=this.pagination.$el,r=this.params.loop?math.ceil((o-2*this.loopedslides)/this.params.slidespergroup):this.snapgrid.length;if(this.params.loop?((i=math.ceil((this.activeindex-this.loopedslides)/this.params.slidespergroup))>o-1-2*this.loopedslides&&(i-=o-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"===e.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var a,l,c,d=this.pagination.bullets;if(e.dynamicbullets&&(this.pagination.bulletsize=d.eq(0)[this.ishorizontal()?"outerwidth":"outerheight"](!0),s.css(this.ishorizontal()?"width":"height",this.pagination.bulletsize*(e.dynamicmainbullets+4)+"px"),e.dynamicmainbullets>1&&void 0!==this.previousindex&&(this.pagination.dynamicbulletindex+=i-this.previousindex,this.pagination.dynamicbulletindex>e.dynamicmainbullets-1?this.pagination.dynamicbulletindex=e.dynamicmainbullets-1:this.pagination.dynamicbulletindex<0&&(this.pagination.dynamicbulletindex=0)),a=i-this.pagination.dynamicbulletindex,c=((l=a+(math.min(d.length,e.dynamicmainbullets)-1))+a)/2),d.removeclass(e.bulletactiveclass+" "+e.bulletactiveclass+"-next "+e.bulletactiveclass+"-next-next "+e.bulletactiveclass+"-prev "+e.bulletactiveclass+"-prev-prev "+e.bulletactiveclass+"-main"),s.length>1)d.each((function(t,o){var s=n(o),r=s.index();r===i&&s.addclass(e.bulletactiveclass),e.dynamicbullets&&(r>=a&&r<=l&&s.addclass(e.bulletactiveclass+"-main"),r===a&&s.prev().addclass(e.bulletactiveclass+"-prev").prev().addclass(e.bulletactiveclass+"-prev-prev"),r===l&&s.next().addclass(e.bulletactiveclass+"-next").next().addclass(e.bulletactiveclass+"-next-next"))}));else{var u=d.eq(i),h=u.index();if(u.addclass(e.bulletactiveclass),e.dynamicbullets){for(var p=d.eq(a),f=d.eq(l),g=a;g<=l;g+=1)d.eq(g).addclass(e.bulletactiveclass+"-main");if(this.params.loop)if(h>=d.length-e.dynamicmainbullets){for(var m=e.dynamicmainbullets;m>=0;m-=1)d.eq(d.length-m).addclass(e.bulletactiveclass+"-main");d.eq(d.length-e.dynamicmainbullets-1).addclass(e.bulletactiveclass+"-prev")}else p.prev().addclass(e.bulletactiveclass+"-prev").prev().addclass(e.bulletactiveclass+"-prev-prev"),f.next().addclass(e.bulletactiveclass+"-next").next().addclass(e.bulletactiveclass+"-next-next");else p.prev().addclass(e.bulletactiveclass+"-prev").prev().addclass(e.bulletactiveclass+"-prev-prev"),f.next().addclass(e.bulletactiveclass+"-next").next().addclass(e.bulletactiveclass+"-next-next")}}if(e.dynamicbullets){var v=math.min(d.length,e.dynamicmainbullets+4),b=(this.pagination.bulletsize*v-this.pagination.bulletsize)/2-c*this.pagination.bulletsize,y=t?"right":"left";d.css(this.ishorizontal()?y:"top",b+"px")}}if("fraction"===e.type&&(s.find("."+e.currentclass).text(e.formatfractioncurrent(i+1)),s.find("."+e.totalclass).text(e.formatfractiontotal(r))),"progressbar"===e.type){var w;w=e.progressbaropposite?this.ishorizontal()?"vertical":"horizontal":this.ishorizontal()?"horizontal":"vertical";var x=(i+1)/r,_=1,t=1;"horizontal"===w?_=x:t=x,s.find("."+e.progressbarfillclass).transform("translate3d(0,0,0) scalex("+_+") scaley("+t+")").transition(this.params.speed)}"custom"===e.type&&e.rendercustom?(s.html(e.rendercustom(this,i+1,r)),this.emit("paginationrender",this,s[0])):this.emit("paginationupdate",this,s[0]),s[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](e.lockclass)}},render:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,n="";if("bullets"===t.type){for(var o=this.params.loop?math.ceil((e-2*this.loopedslides)/this.params.slidespergroup):this.snapgrid.length,s=0;s";i.html(n),this.pagination.bullets=i.find("."+t.bulletclass)}"fraction"===t.type&&(n=t.renderfraction?t.renderfraction.call(this,t.currentclass,t.totalclass):' / ',i.html(n)),"progressbar"===t.type&&(n=t.renderprogressbar?t.renderprogressbar.call(this,t.progressbarfillclass):'',i.html(n)),"custom"!==t.type&&this.emit("paginationrender",this.pagination.$el[0])}},init:function(){var t=this,e=t.params.pagination;if(e.el){var i=n(e.el);0!==i.length&&(t.params.uniquenavelements&&"string"==typeof e.el&&i.length>1&&1===t.$el.find(e.el).length&&(i=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&i.addclass(e.clickableclass),i.addclass(e.modifierclass+e.type),"bullets"===e.type&&e.dynamicbullets&&(i.addclass(""+e.modifierclass+e.type+"-dynamic"),t.pagination.dynamicbulletindex=0,e.dynamicmainbullets<1&&(e.dynamicmainbullets=1)),"progressbar"===e.type&&e.progressbaropposite&&i.addclass(e.progressbaroppositeclass),e.clickable&&i.on("click","."+e.bulletclass,(function(e){e.preventdefault();var i=n(this).index()*t.params.slidespergroup;t.params.loop&&(i+=t.loopedslides),t.slideto(i)})),r.extend(t.pagination,{$el:i,el:i[0]}))}},destroy:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.pagination.$el;e.removeclass(t.hiddenclass),e.removeclass(t.modifierclass+t.type),this.pagination.bullets&&this.pagination.bullets.removeclass(t.bulletactiveclass),t.clickable&&e.off("click","."+t.bulletclass)}}},ot={settranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=this.rtltranslate,i=this.progress,n=t.dragsize,o=t.tracksize,s=t.$dragel,r=t.$el,a=this.params.scrollbar,l=n,c=(o-n)*i;e?(c=-c)>0?(l=n-c,c=0):-c+n>o&&(l=o+c):c<0?(l=n+c,c=0):c+n>o&&(l=o-c),this.ishorizontal()?(s.transform("translate3d("+c+"px, 0, 0)"),s[0].style.width=l+"px"):(s.transform("translate3d(0px, "+c+"px, 0)"),s[0].style.height=l+"px"),a.hide&&(cleartimeout(this.scrollbar.timeout),r[0].style.opacity=1,this.scrollbar.timeout=settimeout((function(){r[0].style.opacity=0,r.transition(400)}),1e3))}},settransition:function(t){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragel.transition(t)},updatesize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=t.$dragel,i=t.$el;e[0].style.width="",e[0].style.height="";var n,o=this.ishorizontal()?i[0].offsetwidth:i[0].offsetheight,s=this.size/this.virtualsize,a=s*(o/this.size);n="auto"===this.params.scrollbar.dragsize?o*s:parseint(this.params.scrollbar.dragsize,10),this.ishorizontal()?e[0].style.width=n+"px":e[0].style.height=n+"px",i[0].style.display=s>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),r.extend(t,{tracksize:o,divider:s,movedivider:a,dragsize:n}),t.$el[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](this.params.scrollbar.lockclass)}},getpointerposition:function(t){return this.ishorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targettouches[0].clientx:t.clientx:"touchstart"===t.type||"touchmove"===t.type?t.targettouches[0].clienty:t.clienty},setdragposition:function(t){var e,i=this.scrollbar,n=this.rtltranslate,o=i.$el,s=i.dragsize,r=i.tracksize,a=i.dragstartpos;e=(i.getpointerposition(t)-o.offset()[this.ishorizontal()?"left":"top"]-(null!==a?a:s/2))/(r-s),e=math.max(math.min(e,1),0),n&&(e=1-e);var l=this.mintranslate()+(this.maxtranslate()-this.mintranslate())*e;this.updateprogress(l),this.settranslate(l),this.updateactiveindex(),this.updateslidesclasses()},ondragstart:function(t){var e=this.params.scrollbar,i=this.scrollbar,n=this.$wrapperel,o=i.$el,s=i.$dragel;this.scrollbar.istouched=!0,this.scrollbar.dragstartpos=t.target===s[0]||t.target===s?i.getpointerposition(t)-t.target.getboundingclientrect()[this.ishorizontal()?"left":"top"]:null,t.preventdefault(),t.stoppropagation(),n.transition(100),s.transition(100),i.setdragposition(t),cleartimeout(this.scrollbar.dragtimeout),o.transition(0),e.hide&&o.css("opacity",1),this.params.cssmode&&this.$wrapperel.css("scroll-snap-type","none"),this.emit("scrollbardragstart",t)},ondragmove:function(t){var e=this.scrollbar,i=this.$wrapperel,n=e.$el,o=e.$dragel;this.scrollbar.istouched&&(t.preventdefault?t.preventdefault():t.returnvalue=!1,e.setdragposition(t),i.transition(0),n.transition(0),o.transition(0),this.emit("scrollbardragmove",t))},ondragend:function(t){var e=this.params.scrollbar,i=this.scrollbar,n=this.$wrapperel,o=i.$el;this.scrollbar.istouched&&(this.scrollbar.istouched=!1,this.params.cssmode&&(this.$wrapperel.css("scroll-snap-type",""),n.transition("")),e.hide&&(cleartimeout(this.scrollbar.dragtimeout),this.scrollbar.dragtimeout=r.nexttick((function(){o.css("opacity",0),o.transition(400)}),1e3)),this.emit("scrollbardragend",t),e.snaponrelease&&this.slidetoclosest())},enabledraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,i=this.toucheventstouch,n=this.toucheventsdesktop,o=this.params,s=e.$el[0],r=!(!a.passivelistener||!o.passivelisteners)&&{passive:!1,capture:!1},l=!(!a.passivelistener||!o.passivelisteners)&&{passive:!0,capture:!1};a.touch?(s.addeventlistener(i.start,this.scrollbar.ondragstart,r),s.addeventlistener(i.move,this.scrollbar.ondragmove,r),s.addeventlistener(i.end,this.scrollbar.ondragend,l)):(s.addeventlistener(n.start,this.scrollbar.ondragstart,r),t.addeventlistener(n.move,this.scrollbar.ondragmove,r),t.addeventlistener(n.end,this.scrollbar.ondragend,l))}},disabledraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,i=this.toucheventstouch,n=this.toucheventsdesktop,o=this.params,s=e.$el[0],r=!(!a.passivelistener||!o.passivelisteners)&&{passive:!1,capture:!1},l=!(!a.passivelistener||!o.passivelisteners)&&{passive:!0,capture:!1};a.touch?(s.removeeventlistener(i.start,this.scrollbar.ondragstart,r),s.removeeventlistener(i.move,this.scrollbar.ondragmove,r),s.removeeventlistener(i.end,this.scrollbar.ondragend,l)):(s.removeeventlistener(n.start,this.scrollbar.ondragstart,r),t.removeeventlistener(n.move,this.scrollbar.ondragmove,r),t.removeeventlistener(n.end,this.scrollbar.ondragend,l))}},init:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.$el,i=this.params.scrollbar,o=n(i.el);this.params.uniquenavelements&&"string"==typeof i.el&&o.length>1&&1===e.find(i.el).length&&(o=e.find(i.el));var s=o.find("."+this.params.scrollbar.dragclass);0===s.length&&(s=n('
'),o.append(s)),r.extend(t,{$el:o,el:o[0],$dragel:s,dragel:s[0]}),i.draggable&&t.enabledraggable()}},destroy:function(){this.scrollbar.disabledraggable()}},st={settransform:function(t,e){var i=this.rtl,o=n(t),s=i?-1:1,r=o.attr("data-swiper-parallax")||"0",a=o.attr("data-swiper-parallax-x"),l=o.attr("data-swiper-parallax-y"),c=o.attr("data-swiper-parallax-scale"),d=o.attr("data-swiper-parallax-opacity");if(a||l?(a=a||"0",l=l||"0"):this.ishorizontal()?(a=r,l="0"):(l=r,a="0"),a=a.indexof("%")>=0?parseint(a,10)*e*s+"%":a*e*s+"px",l=l.indexof("%")>=0?parseint(l,10)*e+"%":l*e+"px",null!=d){var u=d-(d-1)*(1-math.abs(e));o[0].style.opacity=u}if(null==c)o.transform("translate3d("+a+", "+l+", 0px)");else{var h=c-(c-1)*(1-math.abs(e));o.transform("translate3d("+a+", "+l+", 0px) scale("+h+")")}},settranslate:function(){var t=this,e=t.$el,i=t.slides,o=t.progress,s=t.snapgrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){t.parallax.settransform(i,o)})),i.each((function(e,i){var r=i.progress;t.params.slidespergroup>1&&"auto"!==t.params.slidesperview&&(r+=math.ceil(e/2)-o*(s.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(e,i){t.parallax.settransform(i,r)}))}))},settransition:function(t){void 0===t&&(t=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(e,i){var o=n(i),s=parseint(o.attr("data-swiper-parallax-duration"),10)||t;0===t&&(s=0),o.transition(s)}))}},rt={getdistancebetweentouches:function(t){if(t.targettouches.length<2)return 1;var e=t.targettouches[0].pagex,i=t.targettouches[0].pagey,n=t.targettouches[1].pagex,o=t.targettouches[1].pagey;return math.sqrt(math.pow(n-e,2)+math.pow(o-i,2))},ongesturestart:function(t){var e=this.params.zoom,i=this.zoom,o=i.gesture;if(i.fakegesturetouched=!1,i.fakegesturemoved=!1,!a.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targettouches.length<2)return;i.fakegesturetouched=!0,o.scalestart=rt.getdistancebetweentouches(t)}o.$slideel&&o.$slideel.length||(o.$slideel=n(t.target).closest(".swiper-slide"),0===o.$slideel.length&&(o.$slideel=this.slides.eq(this.activeindex)),o.$imageel=o.$slideel.find("img, svg, canvas"),o.$imagewrapel=o.$imageel.parent("."+e.containerclass),o.maxratio=o.$imagewrapel.attr("data-swiper-zoom")||e.maxratio,0!==o.$imagewrapel.length)?(o.$imageel.transition(0),this.zoom.isscaling=!0):o.$imageel=void 0},ongesturechange:function(t){var e=this.params.zoom,i=this.zoom,n=i.gesture;if(!a.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targettouches.length<2)return;i.fakegesturemoved=!0,n.scalemove=rt.getdistancebetweentouches(t)}n.$imageel&&0!==n.$imageel.length&&(a.gestures?i.scale=t.scale*i.currentscale:i.scale=n.scalemove/n.scalestart*i.currentscale,i.scale>n.maxratio&&(i.scale=n.maxratio-1+math.pow(i.scale-n.maxratio+1,.5)),i.scalen.touchesstart.x))return void(n.istouched=!1);if(!this.ishorizontal()&&(math.floor(n.miny)===math.floor(n.starty)&&n.touchescurrent.yn.touchesstart.y))return void(n.istouched=!1)}t.preventdefault(),t.stoppropagation(),n.ismoved=!0,n.currentx=n.touchescurrent.x-n.touchesstart.x+n.startx,n.currenty=n.touchescurrent.y-n.touchesstart.y+n.starty,n.currentxn.maxx&&(n.currentx=n.maxx-1+math.pow(n.currentx-n.maxx+1,.8)),n.currentyn.maxy&&(n.currenty=n.maxy-1+math.pow(n.currenty-n.maxy+1,.8)),o.prevpositionx||(o.prevpositionx=n.touchescurrent.x),o.prevpositiony||(o.prevpositiony=n.touchescurrent.y),o.prevtime||(o.prevtime=date.now()),o.x=(n.touchescurrent.x-o.prevpositionx)/(date.now()-o.prevtime)/2,o.y=(n.touchescurrent.y-o.prevpositiony)/(date.now()-o.prevtime)/2,math.abs(n.touchescurrent.x-o.prevpositionx)<2&&(o.x=0),math.abs(n.touchescurrent.y-o.prevpositiony)<2&&(o.y=0),o.prevpositionx=n.touchescurrent.x,o.prevpositiony=n.touchescurrent.y,o.prevtime=date.now(),i.$imagewrapel.transform("translate3d("+n.currentx+"px, "+n.currenty+"px,0)")}}},ontouchend:function(){var t=this.zoom,e=t.gesture,i=t.image,n=t.velocity;if(e.$imageel&&0!==e.$imageel.length){if(!i.istouched||!i.ismoved)return i.istouched=!1,void(i.ismoved=!1);i.istouched=!1,i.ismoved=!1;var o=300,s=300,r=n.x*o,a=i.currentx+r,l=n.y*s,c=i.currenty+l;0!==n.x&&(o=math.abs((a-i.currentx)/n.x)),0!==n.y&&(s=math.abs((c-i.currenty)/n.y));var d=math.max(o,s);i.currentx=a,i.currenty=c;var u=i.width*t.scale,h=i.height*t.scale;i.minx=math.min(e.slidewidth/2-u/2,0),i.maxx=-i.minx,i.miny=math.min(e.slideheight/2-h/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),e.$imagewrapel.transition(d).transform("translate3d("+i.currentx+"px, "+i.currenty+"px,0)")}},ontransitionend:function(){var t=this.zoom,e=t.gesture;e.$slideel&&this.previousindex!==this.activeindex&&(e.$imageel.transform("translate3d(0,0,0) scale(1)"),e.$imagewrapel.transform("translate3d(0,0,0)"),t.scale=1,t.currentscale=1,e.$slideel=void 0,e.$imageel=void 0,e.$imagewrapel=void 0)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e,i,o,s,r,a,l,c,d,u,h,p,f,g,m,v,b=this.zoom,y=this.params.zoom,w=b.gesture,x=b.image;w.$slideel||(w.$slideel=this.clickedslide?n(this.clickedslide):this.slides.eq(this.activeindex),w.$imageel=w.$slideel.find("img, svg, canvas"),w.$imagewrapel=w.$imageel.parent("."+y.containerclass)),w.$imageel&&0!==w.$imageel.length&&(w.$slideel.addclass(""+y.zoomedslideclass),void 0===x.touchesstart.x&&t?(e="touchend"===t.type?t.changedtouches[0].pagex:t.pagex,i="touchend"===t.type?t.changedtouches[0].pagey:t.pagey):(e=x.touchesstart.x,i=x.touchesstart.y),b.scale=w.$imagewrapel.attr("data-swiper-zoom")||y.maxratio,b.currentscale=w.$imagewrapel.attr("data-swiper-zoom")||y.maxratio,t?(m=w.$slideel[0].offsetwidth,v=w.$slideel[0].offsetheight,o=w.$slideel.offset().left+m/2-e,s=w.$slideel.offset().top+v/2-i,l=w.$imageel[0].offsetwidth,c=w.$imageel[0].offsetheight,d=l*b.scale,u=c*b.scale,f=-(h=math.min(m/2-d/2,0)),g=-(p=math.min(v/2-u/2,0)),(r=o*b.scale)f&&(r=f),(a=s*b.scale)g&&(a=g)):(r=0,a=0),w.$imagewrapel.transition(300).transform("translate3d("+r+"px, "+a+"px,0)"),w.$imageel.transition(300).transform("translate3d(0,0,0) scale("+b.scale+")"))},out:function(){var t=this.zoom,e=this.params.zoom,i=t.gesture;i.$slideel||(i.$slideel=this.clickedslide?n(this.clickedslide):this.slides.eq(this.activeindex),i.$imageel=i.$slideel.find("img, svg, canvas"),i.$imagewrapel=i.$imageel.parent("."+e.containerclass)),i.$imageel&&0!==i.$imageel.length&&(t.scale=1,t.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(""+e.zoomedslideclass),i.$slideel=void 0)},enable:function(){var t=this.zoom;if(!t.enabled){t.enabled=!0;var e=!("touchstart"!==this.touchevents.start||!a.passivelistener||!this.params.passivelisteners)&&{passive:!0,capture:!1},i=!a.passivelistener||{passive:!1,capture:!0};a.gestures?(this.$wrapperel.on("gesturestart",".swiper-slide",t.ongesturestart,e),this.$wrapperel.on("gesturechange",".swiper-slide",t.ongesturechange,e),this.$wrapperel.on("gestureend",".swiper-slide",t.ongestureend,e)):"touchstart"===this.touchevents.start&&(this.$wrapperel.on(this.touchevents.start,".swiper-slide",t.ongesturestart,e),this.$wrapperel.on(this.touchevents.move,".swiper-slide",t.ongesturechange,i),this.$wrapperel.on(this.touchevents.end,".swiper-slide",t.ongestureend,e),this.touchevents.cancel&&this.$wrapperel.on(this.touchevents.cancel,".swiper-slide",t.ongestureend,e)),this.$wrapperel.on(this.touchevents.move,"."+this.params.zoom.containerclass,t.ontouchmove,i)}},disable:function(){var t=this.zoom;if(t.enabled){this.zoom.enabled=!1;var e=!("touchstart"!==this.touchevents.start||!a.passivelistener||!this.params.passivelisteners)&&{passive:!0,capture:!1},i=!a.passivelistener||{passive:!1,capture:!0};a.gestures?(this.$wrapperel.off("gesturestart",".swiper-slide",t.ongesturestart,e),this.$wrapperel.off("gesturechange",".swiper-slide",t.ongesturechange,e),this.$wrapperel.off("gestureend",".swiper-slide",t.ongestureend,e)):"touchstart"===this.touchevents.start&&(this.$wrapperel.off(this.touchevents.start,".swiper-slide",t.ongesturestart,e),this.$wrapperel.off(this.touchevents.move,".swiper-slide",t.ongesturechange,i),this.$wrapperel.off(this.touchevents.end,".swiper-slide",t.ongestureend,e),this.touchevents.cancel&&this.$wrapperel.off(this.touchevents.cancel,".swiper-slide",t.ongestureend,e)),this.$wrapperel.off(this.touchevents.move,"."+this.params.zoom.containerclass,t.ontouchmove,i)}}},at={loadinslide:function(t,e){void 0===e&&(e=!0);var i=this,o=i.params.lazy;if(void 0!==t&&0!==i.slides.length){var s=i.virtual&&i.params.virtual.enabled?i.$wrapperel.children("."+i.params.slideclass+'[data-swiper-slide-index="'+t+'"]'):i.slides.eq(t),r=s.find("."+o.elementclass+":not(."+o.loadedclass+"):not(."+o.loadingclass+")");!s.hasclass(o.elementclass)||s.hasclass(o.loadedclass)||s.hasclass(o.loadingclass)||(r=r.add(s[0])),0!==r.length&&r.each((function(t,r){var a=n(r);a.addclass(o.loadingclass);var l=a.attr("data-background"),c=a.attr("data-src"),d=a.attr("data-srcset"),u=a.attr("data-sizes");i.loadimage(a[0],c||l,d,u,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(l?(a.css("background-image",'url("'+l+'")'),a.removeattr("data-background")):(d&&(a.attr("srcset",d),a.removeattr("data-srcset")),u&&(a.attr("sizes",u),a.removeattr("data-sizes")),c&&(a.attr("src",c),a.removeattr("data-src"))),a.addclass(o.loadedclass).removeclass(o.loadingclass),s.find("."+o.preloaderclass).remove(),i.params.loop&&e){var t=s.attr("data-swiper-slide-index");if(s.hasclass(i.params.slideduplicateclass)){var n=i.$wrapperel.children('[data-swiper-slide-index="'+t+'"]:not(.'+i.params.slideduplicateclass+")");i.lazy.loadinslide(n.index(),!1)}else{var r=i.$wrapperel.children("."+i.params.slideduplicateclass+'[data-swiper-slide-index="'+t+'"]');i.lazy.loadinslide(r.index(),!1)}}i.emit("lazyimageready",s[0],a[0])}})),i.emit("lazyimageload",s[0],a[0])}))}},load:function(){var t=this,e=t.$wrapperel,i=t.params,o=t.slides,s=t.activeindex,r=t.virtual&&i.virtual.enabled,a=i.lazy,l=i.slidesperview;function c(t){if(r){if(e.children("."+i.slideclass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(o[t])return!0;return!1}function d(t){return r?n(t).attr("data-swiper-slide-index"):n(t).index()}if("auto"===l&&(l=0),t.lazy.initialimageloaded||(t.lazy.initialimageloaded=!0),t.params.watchslidesvisibility)e.children("."+i.slidevisibleclass).each((function(e,i){var o=r?n(i).attr("data-swiper-slide-index"):n(i).index();t.lazy.loadinslide(o)}));else if(l>1)for(var u=s;u1||a.loadprevnextamount&&a.loadprevnextamount>1){for(var h=a.loadprevnextamount,p=l,f=math.min(s+p+math.max(h,p),o.length),g=math.max(s-math.max(p,h),0),m=s+l;m0&&t.lazy.loadinslide(d(b));var y=e.children("."+i.slideprevclass);y.length>0&&t.lazy.loadinslide(d(y))}}},lt={linearspline:function(t,e){var i,n,o,s,r;return this.x=t,this.y=e,this.lastindex=t.length-1,this.interpolate=function(t){return t?(r=function(t,e){for(n=-1,i=t.length;i-n>1;)t[o=i+n>>1]<=e?n=o:i=o;return i}(this.x,t),s=r-1,(t-this.x[s])*(this.y[r]-this.y[s])/(this.x[r]-this.x[s])+this.y[s]):0},this},getinterpolatefunction:function(t){this.controller.spline||(this.controller.spline=this.params.loop?new lt.linearspline(this.slidesgrid,t.slidesgrid):new lt.linearspline(this.snapgrid,t.snapgrid))},settranslate:function(t,e){var i,n,o=this,s=o.controller.control;function r(t){var e=o.rtltranslate?-o.translate:o.translate;"slide"===o.params.controller.by&&(o.controller.getinterpolatefunction(t),n=-o.controller.spline.interpolate(-e)),n&&"container"!==o.params.controller.by||(i=(t.maxtranslate()-t.mintranslate())/(o.maxtranslate()-o.mintranslate()),n=(e-o.mintranslate())*i+t.mintranslate()),o.params.controller.inverse&&(n=t.maxtranslate()-n),t.updateprogress(n),t.settranslate(n,o),t.updateactiveindex(),t.updateslidesclasses()}if(array.isarray(s))for(var a=0;a0&&(this.isbeginning?this.a11y.disableel(i):this.a11y.enableel(i)),e&&e.length>0&&(this.isend?this.a11y.disableel(e):this.a11y.enableel(e))}},updatepagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((function(i,o){var s=n(o);t.a11y.makeelfocusable(s),t.a11y.addelrole(s,"button"),t.a11y.addellabel(s,e.paginationbulletmessage.replace(/{{index}}/,s.index()+1))}))},init:function(){this.$el.append(this.a11y.liveregion);var t,e,i=this.params.a11y;this.navigation&&this.navigation.$nextel&&(t=this.navigation.$nextel),this.navigation&&this.navigation.$prevel&&(e=this.navigation.$prevel),t&&(this.a11y.makeelfocusable(t),this.a11y.addelrole(t,"button"),this.a11y.addellabel(t,i.nextslidemessage),t.on("keydown",this.a11y.onenterkey)),e&&(this.a11y.makeelfocusable(e),this.a11y.addelrole(e,"button"),this.a11y.addellabel(e,i.prevslidemessage),e.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 t,e;this.a11y.liveregion&&this.a11y.liveregion.length>0&&this.a11y.liveregion.remove(),this.navigation&&this.navigation.$nextel&&(t=this.navigation.$nextel),this.navigation&&this.navigation.$prevel&&(e=this.navigation.$prevel),t&&t.off("keydown",this.a11y.onenterkey),e&&e.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)}},dt={init:function(){if(this.params.history){if(!e.history||!e.history.pushstate)return this.params.history.enabled=!1,void(this.params.hashnavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=dt.getpathvalues(),(t.paths.key||t.paths.value)&&(t.scrolltoslide(0,t.paths.value,this.params.runcallbacksoninit),this.params.history.replacestate||e.addeventlistener("popstate",this.history.sethistorypopstate))}},destroy:function(){this.params.history.replacestate||e.removeeventlistener("popstate",this.history.sethistorypopstate)},sethistorypopstate:function(){this.history.paths=dt.getpathvalues(),this.history.scrolltoslide(this.params.speed,this.history.paths.value,!1)},getpathvalues:function(){var t=e.location.pathname.slice(1).split("/").filter((function(t){return""!==t})),i=t.length;return{key:t[i-2],value:t[i-1]}},sethistory:function(t,i){if(this.history.initialized&&this.params.history.enabled){var n=this.slides.eq(i),o=dt.slugify(n.attr("data-history"));e.location.pathname.includes(t)||(o=t+"/"+o);var s=e.history.state;s&&s.value===o||(this.params.history.replacestate?e.history.replacestate({value:o},null,o):e.history.pushstate({value:o},null,o))}},slugify:function(t){return t.tostring().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrolltoslide:function(t,e,i){if(e)for(var n=0,o=this.slides.length;n'),i.append(t)),t.css({height:s+"px"})):0===(t=e.find(".swiper-cube-shadow")).length&&(t=n('
'),e.append(t)));for(var p=0;p-1&&(h=90*g+90*b,a&&(h=90*-g-90*b)),f.transform(_),c.slideshadows){var t=d?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),c=d?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===t.length&&(t=n('
'),f.append(t)),0===c.length&&(c=n('
'),f.append(c)),t.length&&(t[0].style.opacity=math.max(-b,0)),c.length&&(c[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"}),c.shadow)if(d)t.transform("translate3d(0px, "+(s/2+c.shadowoffset)+"px, "+-s/2+"px) rotatex(90deg) rotatez(0deg) scale("+c.shadowscale+")");else{var s=math.abs(h)-90*math.floor(math.abs(h)/90),e=1.5-(math.sin(2*s*math.pi/360)/2+math.cos(2*s*math.pi/360)/2),$=c.shadowscale,p=c.shadowscale/e,k=c.shadowoffset;t.transform("scale3d("+$+", 1, "+p+") translate3d(0px, "+(r/2+k)+"px, "+-r/2/p+"px) rotatex(-90deg)")}var m=v.issafari||v.isuiwebview?-l/2:0;i.transform("translate3d(0px,0,"+m+"px) rotatex("+(this.ishorizontal()?0:h)+"deg) rotatey("+(this.ishorizontal()?-h:0)+"deg)")},settransition:function(t){var e=this.$el;this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeeffect.shadow&&!this.ishorizontal()&&e.find(".swiper-cube-shadow").transition(t)}},gt={settranslate:function(){for(var t=this.slides,e=this.rtltranslate,i=0;i'),o.append(d)),0===u.length&&(u=n('
'),o.append(u)),d.length&&(d[0].style.opacity=math.max(-s,0)),u.length&&(u[0].style.opacity=math.max(s,0))}o.transform("translate3d("+l+"px, "+c+"px, 0px) rotatex("+a+"deg) rotatey("+r+"deg)")}},settransition:function(t){var e=this,i=e.slides,n=e.activeindex,o=e.$wrapperel;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualtranslate&&0!==t){var s=!1;i.eq(n).transitionend((function(){if(!s&&e&&!e.destroyed){s=!0,e.animating=!1;for(var t=["webkittransitionend","transitionend"],i=0;i'),g.append(c)),0===s.length&&(s=n('
'),g.append(s)),c.length&&(c[0].style.opacity=v>0?v:0),s.length&&(s[0].style.opacity=-v>0?-v:0)}}(a.pointerevents||a.prefixedpointerevents)&&(o[0].style.perspectiveorigin=d+"px 50%")},settransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},vt={init:function(){var t=this.params.thumbs,e=this.constructor;t.swiper instanceof e?(this.thumbs.swiper=t.swiper,r.extend(this.thumbs.swiper.originalparams,{watchslidesprogress:!0,slidetoclickedslide:!1}),r.extend(this.thumbs.swiper.params,{watchslidesprogress:!0,slidetoclickedslide:!1})):r.isobject(t.swiper)&&(this.thumbs.swiper=new e(r.extend({},t.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 t=this.thumbs.swiper;if(t){var e=t.clickedindex,i=t.clickedslide;if(!(i&&n(i).hasclass(this.params.thumbs.slidethumbactiveclass)||null==e)){var o;if(o=t.params.loop?parseint(n(t.clickedslide).attr("data-swiper-slide-index"),10):e,this.params.loop){var s=this.activeindex;this.slides.eq(s).hasclass(this.params.slideduplicateclass)&&(this.loopfix(),this._clientleft=this.$wrapperel[0].clientleft,s=this.activeindex);var r=this.slides.eq(s).prevall('[data-swiper-slide-index="'+o+'"]').eq(0).index(),a=this.slides.eq(s).nextall('[data-swiper-slide-index="'+o+'"]').eq(0).index();o=void 0===r?a:void 0===a?r:a-so?n-math.floor(i/2)+1:n+math.floor(i/2)-1:n>o&&(n=n-i+1),e.slideto(n,t?0:void 0))}var a=1,l=this.params.thumbs.slidethumbactiveclass;if(this.params.slidesperview>1&&!this.params.centeredslides&&(a=this.params.slidesperview),e.slides.removeclass(l),e.params.loop||e.params.virtual&&e.params.virtual.enabled)for(var c=0;c0&&!n(t.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(){r.extend(this,{scrollbar:{init:ot.init.bind(this),destroy:ot.destroy.bind(this),updatesize:ot.updatesize.bind(this),settranslate:ot.settranslate.bind(this),settransition:ot.settransition.bind(this),enabledraggable:ot.enabledraggable.bind(this),disabledraggable:ot.disabledraggable.bind(this),setdragposition:ot.setdragposition.bind(this),getpointerposition:ot.getpointerposition.bind(this),ondragstart:ot.ondragstart.bind(this),ondragmove:ot.ondragmove.bind(this),ondragend:ot.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(t){this.scrollbar.settransition(t)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){r.extend(this,{parallax:{settransform:st.settransform.bind(this),settranslate:st.settranslate.bind(this),settransition:st.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(t){this.params.parallax.enabled&&this.parallax.settransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxratio:3,minratio:1,toggle:!0,containerclass:"swiper-zoom-container",zoomedslideclass:"swiper-slide-zoomed"}},create:function(){var t=this,e={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){e[i]=rt[i].bind(t)})),r.extend(t,{zoom:e});var i=1;object.defineproperty(t.zoom,"scale",{get:function(){return i},set:function(e){if(i!==e){var n=t.zoom.gesture.$imageel?t.zoom.gesture.$imageel[0]:void 0,o=t.zoom.gesture.$slideel?t.zoom.gesture.$slideel[0]:void 0;t.emit("zoomchange",e,n,o)}i=e}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchstart:function(t){this.zoom.enabled&&this.zoom.ontouchstart(t)},touchend:function(t){this.zoom.enabled&&this.zoom.ontouchend(t)},doubletap:function(t){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(t)},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(){r.extend(this,{lazy:{initialimageloaded:!1,load:at.load.bind(this),loadinslide:at.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(){r.extend(this,{controller:{control:this.params.controller.control,getinterpolatefunction:lt.getinterpolatefunction.bind(this),settranslate:lt.settranslate.bind(this),settransition:lt.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(t,e){this.controller.control&&this.controller.settranslate(t,e)},settransition:function(t,e){this.controller.control&&this.controller.settransition(t,e)}}},{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 t=this;r.extend(t,{a11y:{liveregion:n('')}}),object.keys(ct).foreach((function(e){t.a11y[e]=ct[e].bind(t)}))},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(){r.extend(this,{history:{init:dt.init.bind(this),sethistory:dt.sethistory.bind(this),sethistorypopstate:dt.sethistorypopstate.bind(this),scrolltoslide:dt.scrolltoslide.bind(this),destroy:dt.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(){r.extend(this,{hashnavigation:{initialized:!1,init:ut.init.bind(this),destroy:ut.destroy.bind(this),sethash:ut.sethash.bind(this),onhashcange:ut.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 t=this;r.extend(t,{autoplay:{running:!1,paused:!1,run:ht.run.bind(t),start:ht.start.bind(t),stop:ht.stop.bind(t),pause:ht.pause.bind(t),onvisibilitychange:function(){"hidden"===document.visibilitystate&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilitystate&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},ontransitionend:function(e){t&&!t.destroyed&&t.$wrapperel&&e.target===this&&(t.$wrapperel[0].removeeventlistener("transitionend",t.autoplay.ontransitionend),t.$wrapperel[0].removeeventlistener("webkittransitionend",t.autoplay.ontransitionend),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addeventlistener("visibilitychange",this.autoplay.onvisibilitychange))},beforetransitionstart:function(t,e){this.autoplay.running&&(e||!this.params.autoplay.disableoninteraction?this.autoplay.pause(t):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(){r.extend(this,{fadeeffect:{settranslate:pt.settranslate.bind(this),settransition:pt.settransition.bind(this)}})},on:{beforeinit:function(){if("fade"===this.params.effect){this.classnames.push(this.params.containermodifierclass+"fade");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};r.extend(this.params,t),r.extend(this.originalparams,t)}},settranslate:function(){"fade"===this.params.effect&&this.fadeeffect.settranslate()},settransition:function(t){"fade"===this.params.effect&&this.fadeeffect.settransition(t)}}},{name:"effect-cube",params:{cubeeffect:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94}},create:function(){r.extend(this,{cubeeffect:{settranslate:ft.settranslate.bind(this),settransition:ft.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 t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,resistanceratio:0,spacebetween:0,centeredslides:!1,virtualtranslate:!0};r.extend(this.params,t),r.extend(this.originalparams,t)}},settranslate:function(){"cube"===this.params.effect&&this.cubeeffect.settranslate()},settransition:function(t){"cube"===this.params.effect&&this.cubeeffect.settransition(t)}}},{name:"effect-flip",params:{flipeffect:{slideshadows:!0,limitrotation:!0}},create:function(){r.extend(this,{flipeffect:{settranslate:gt.settranslate.bind(this),settransition:gt.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 t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};r.extend(this.params,t),r.extend(this.originalparams,t)}},settranslate:function(){"flip"===this.params.effect&&this.flipeffect.settranslate()},settransition:function(t){"flip"===this.params.effect&&this.flipeffect.settransition(t)}}},{name:"effect-coverflow",params:{coverfloweffect:{rotate:50,stretch:0,depth:100,modifier:1,slideshadows:!0}},create:function(){r.extend(this,{coverfloweffect:{settranslate:mt.settranslate.bind(this),settransition:mt.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(t){"coverflow"===this.params.effect&&this.coverfloweffect.settransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,slidethumbactiveclass:"swiper-slide-thumb-active",thumbscontainerclass:"swiper-container-thumbs"}},create:function(){r.extend(this,{thumbs:{swiper:null,init:vt.init.bind(this),update:vt.update.bind(this),onthumbclick:vt.onthumbclick.bind(this)}})},on:{beforeinit:function(){var t=this.params.thumbs;t&&t.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(t){var e=this.thumbs.swiper;e&&e.settransition(t)},beforedestroy:function(){var t=this.thumbs.swiper;t&&this.thumbs.swipercreated&&t&&t.destroy()}}}];return void 0===q.use&&(q.use=q.class.use,q.installmodule=q.class.installmodule),q.use(bt),q}()},12:function(t,e,i){(function(e){t.exports=e.jquery=i(49)}).call(this,i(19))},18:function(t,e){function i(t){return(i="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":typeof t})(t)}function n(e){return"function"==typeof symbol&&"symbol"===i(symbol.iterator)?t.exports=n=function(t){return i(t)}:t.exports=n=function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":i(t)},n(e)}t.exports=n},19:function(t,e){var i;i=function(){return this}();try{i=i||new function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},204:function(t,e,i){(function(t){!function(t,e,i,n){"use strict";if(t.console=t.console||{info:function(t){}},i)if(i.fn.fancybox)console.info("fancybox already initialized");else{var o,s,r={closeexisting:!1,loop:!1,gutter:50,keyboard:!0,preventcaptionoverlap:!0,arrows:!0,infobar:!0,smallbtn:"auto",toolbar:"auto",buttons:["zoom","slideshow","thumbs","close"],idletime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'',format:"",autostart:!0},defaulttype:"image",animationeffect:"zoom",animationduration:366,zoomopacity:"auto",transitioneffect:"fade",transitionduration:366,slideclass:"",baseclass:"",basetpl:'',spinnertpl:'
',errortpl:'

{{error}}

',btntpl:{download:'',zoom:'',close:'',arrowleft:'',arrowright:'',smallbtn:''},parentel:"body",hidescrollbar:!0,autofocus:!0,backfocus:!0,trapfocus:!0,fullscreen:{autostart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideshow:{autostart:!1,speed:3e3},thumbs:{autostart:!1,hideonclose:!0,parentel:".fancybox-container",axis:"y"},wheel:"auto",oninit:i.noop,beforeload:i.noop,afterload:i.noop,beforeshow:i.noop,aftershow:i.noop,beforeclose:i.noop,afterclose:i.noop,onactivate:i.noop,ondeactivate:i.noop,clickcontent:function(t,e){return"image"===t.type&&"zoom"},clickslide:"close",clickoutside:"close",dblclickcontent:!1,dblclickslide:!1,dblclickoutside:!1,mobile:{preventcaptionoverlap:!1,idletime:!1,clickcontent:function(t,e){return"image"===t.type&&"togglecontrols"},clickslide:function(t,e){return"image"===t.type?"togglecontrols":"close"},dblclickcontent:function(t,e){return"image"===t.type&&"zoom"},dblclickslide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{close:"close",next:"next",prev:"previous",error:"the requested content cannot be loaded.
please try again later.",play_start:"start slideshow",play_stop:"pause slideshow",full_screen:"full screen",thumbs:"thumbnails",download:"download",share:"share",zoom:"zoom"},de:{close:"schließen",next:"weiter",prev:"zurück",error:"die angeforderten daten konnten nicht geladen werden.
bitte versuchen sie es später nochmal.",play_start:"diaschau starten",play_stop:"diaschau beenden",full_screen:"vollbild",thumbs:"vorschaubilder",download:"herunterladen",share:"teilen",zoom:"vergrößern"}}},a=i(t),l=i(e),c=0,d=t.requestanimationframe||t.webkitrequestanimationframe||t.mozrequestanimationframe||t.orequestanimationframe||function(e){return t.settimeout(e,1e3/60)},u=t.cancelanimationframe||t.webkitcancelanimationframe||t.mozcancelanimationframe||t.ocancelanimationframe||function(e){t.cleartimeout(e)},h=function(){var t,i=e.createelement("fakeelement"),n={transition:"transitionend",otransition:"otransitionend",moztransition:"transitionend",webkittransition:"webkittransitionend"};for(t in n)if(void 0!==i.style[t])return n[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetheight},f=function(t,e){var n=i.extend(!0,{},t,e);return i.each(e,(function(t,e){i.isarray(e)&&(n[t]=e)})),n},g=function(t,e,n){this.opts=f({index:n},i.fancybox.defaults),i.isplainobject(e)&&(this.opts=f(this.opts,e)),i.fancybox.ismobile&&(this.opts=f(this.opts,this.opts.mobile)),this.id=this.opts.id||++c,this.currindex=parseint(this.opts.index,10)||0,this.previndex=null,this.prevpos=null,this.currpos=0,this.firstrun=!0,this.group=[],this.slides={},this.addcontent(t),this.group.length&&this.init()};i.extend(g.prototype,{init:function(){var n,o,s=this,r=s.group[s.currindex].opts;r.closeexisting&&i.fancybox.close(!0),i("body").addclass("fancybox-active"),!i.fancybox.getinstance()&&!1!==r.hidescrollbar&&!i.fancybox.ismobile&&e.body.scrollheight>t.innerheight&&(i("head").append('"),i("body").addclass("compensate-for-scrollbar")),o="",i.each(r.buttons,(function(t,e){o+=r.btntpl[e]||""})),n=i(s.translate(s,r.basetpl.replace("{{buttons}}",o).replace("{{arrows}}",r.btntpl.arrowleft+r.btntpl.arrowright))).attr("id","fancybox-container-"+s.id).addclass(r.baseclass).data("fancybox",s).appendto(r.parentel),s.$refs={container:n},["bg","inner","infobar","toolbar","stage","caption","navigation"].foreach((function(t){s.$refs[t]=n.find(".fancybox-"+t)})),s.trigger("oninit"),s.activate(),s.jumpto(s.currindex)},translate:function(t,e){var i=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,(function(t,e){return void 0===i[e]?t:i[e]}))},addcontent:function(t){var e,n=this,o=i.makearray(t);i.each(o,(function(t,e){var o,s,r,a,l,c={},d={};i.isplainobject(e)?(c=e,d=e.opts||e):"object"===i.type(e)&&i(e).length?(d=(o=i(e)).data()||{},(d=i.extend(!0,{},d,d.options)).$orig=o,c.src=n.opts.src||d.src||o.attr("href"),c.type||c.src||(c.type="inline",c.src=e)):c={type:"html",src:e+""},c.opts=i.extend(!0,{},n.opts,d),i.isarray(d.buttons)&&(c.opts.buttons=d.buttons),i.fancybox.ismobile&&c.opts.mobile&&(c.opts=f(c.opts,c.opts.mobile)),s=c.type||c.opts.type,a=c.src||"",!s&&a&&((r=a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(s="video",c.opts.video.format||(c.opts.video.format="video/"+("ogv"===r[1]?"ogg":r[1]))):a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":a.match(/\.(pdf)((\?|#).*)?$/i)?(s="iframe",c=i.extend(!0,c,{contenttype:"pdf",opts:{iframe:{preload:!1}}})):"#"===a.charat(0)&&(s="inline")),s?c.type=s:n.trigger("objectneedstype",c),c.contenttype||(c.contenttype=i.inarray(c.type,["html","inline","ajax"])>-1?"html":c.type),c.index=n.group.length,"auto"==c.opts.smallbtn&&(c.opts.smallbtn=i.inarray(c.type,["html","inline","ajax"])>-1),"auto"===c.opts.toolbar&&(c.opts.toolbar=!c.opts.smallbtn),c.$thumb=c.opts.$thumb||null,c.opts.$trigger&&c.index===n.opts.index&&(c.$thumb=c.opts.$trigger.find("img:first"),c.$thumb.length&&(c.opts.$orig=c.opts.$trigger)),c.$thumb&&c.$thumb.length||!c.opts.$orig||(c.$thumb=c.opts.$orig.find("img:first")),c.$thumb&&!c.$thumb.length&&(c.$thumb=null),c.thumb=c.opts.thumb||(c.$thumb?c.$thumb[0].src:null),"function"===i.type(c.opts.caption)&&(c.opts.caption=c.opts.caption.apply(e,[n,c])),"function"===i.type(n.opts.caption)&&(c.opts.caption=n.opts.caption.apply(e,[n,c])),c.opts.caption instanceof i||(c.opts.caption=void 0===c.opts.caption?"":c.opts.caption+""),"ajax"===c.type&&(l=a.split(/\s+/,2)).length>1&&(c.src=l.shift(),c.opts.filter=l.shift()),c.opts.modal&&(c.opts=i.extend(!0,c.opts,{trapfocus:!0,infobar:0,toolbar:0,smallbtn:0,keyboard:0,slideshow:0,fullscreen:0,thumbs:0,touch:0,clickcontent:!1,clickslide:!1,clickoutside:!1,dblclickcontent:!1,dblclickslide:!1,dblclickoutside:!1})),n.group.push(c)})),object.keys(n.slides).length&&(n.updatecontrols(),(e=n.thumbs)&&e.isactive&&(e.create(),e.focus()))},addevents:function(){var e=this;e.removeevents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",(function(t){t.stoppropagation(),t.preventdefault(),e.close(t)})).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",(function(t){t.stoppropagation(),t.preventdefault(),e.previous()})).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",(function(t){t.stoppropagation(),t.preventdefault(),e.next()})).on("click.fb","[data-fancybox-zoom]",(function(t){e[e.isscaleddown()?"scaletoactual":"scaletofit"]()})),a.on("orientationchange.fb resize.fb",(function(t){t&&t.originalevent&&"resize"===t.originalevent.type?(e.requestid&&u(e.requestid),e.requestid=d((function(){e.update(t)}))):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),settimeout((function(){e.$refs.stage.show(),e.update(t)}),i.fancybox.ismobile?600:250))})),l.on("keydown.fb",(function(t){var n=(i.fancybox?i.fancybox.getinstance():null).current,o=t.keycode||t.which;if(9!=o){if(!(!n.opts.keyboard||t.ctrlkey||t.altkey||t.shiftkey||i(t.target).is("input,textarea,video,audio,select")))return 8===o||27===o?(t.preventdefault(),void e.close(t)):37===o||38===o?(t.preventdefault(),void e.previous()):39===o||40===o?(t.preventdefault(),void e.next()):void e.trigger("afterkeydown",t,o)}else n.opts.trapfocus&&e.focus(t)})),e.group[e.currindex].opts.idletime&&(e.idlesecondscounter=0,l.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",(function(t){e.idlesecondscounter=0,e.isidle&&e.showcontrols(),e.isidle=!1})),e.idleinterval=t.setinterval((function(){e.idlesecondscounter++,e.idlesecondscounter>=e.group[e.currindex].opts.idletime&&!e.isdragging&&(e.isidle=!0,e.idlesecondscounter=0,e.hidecontrols())}),1e3))},removeevents:function(){a.off("orientationchange.fb resize.fb"),l.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleinterval&&(t.clearinterval(this.idleinterval),this.idleinterval=null)},previous:function(t){return this.jumpto(this.currpos-1,t)},next:function(t){return this.jumpto(this.currpos+1,t)},jumpto:function(t,e){var n,o,s,r,a,l,c,d,u,h=this,f=h.group.length;if(!(h.isdragging||h.isclosing||h.isanimating&&h.firstrun)){if(t=parseint(t,10),!(s=h.current?h.current.opts.loop:h.opts.loop)&&(t<0||t>=f))return!1;if(n=h.firstrun=!object.keys(h.slides).length,a=h.current,h.previndex=h.currindex,h.prevpos=h.currpos,r=h.createslide(t),f>1&&((s||r.index0)&&h.createslide(t-1)),h.current=r,h.currindex=r.index,h.currpos=r.pos,h.trigger("beforeshow",n),h.updatecontrols(),r.forcedduration=void 0,i.isnumeric(e)?r.forcedduration=e:e=r.opts[n?"animationduration":"transitionduration"],e=parseint(e,10),o=h.ismoved(r),r.$slide.addclass("fancybox-slide--current"),n)return r.opts.animationeffect&&e&&h.$refs.container.css("transition-duration",e+"ms"),h.$refs.container.addclass("fancybox-is-open").trigger("focus"),h.loadslide(r),void h.preload("image");l=i.fancybox.gettranslate(a.$slide),c=i.fancybox.gettranslate(h.$refs.stage),i.each(h.slides,(function(t,e){i.fancybox.stop(e.$slide,!0)})),a.pos!==r.pos&&(a.iscomplete=!1),a.$slide.removeclass("fancybox-slide--complete fancybox-slide--current"),o?(u=l.left-(a.pos*l.width+a.pos*a.opts.gutter),i.each(h.slides,(function(t,n){n.$slide.removeclass("fancybox-animated").removeclass((function(t,e){return(e.match(/(^|\s)fancybox-fx-\s+/g)||[]).join(" ")}));var o=n.pos*l.width+n.pos*n.opts.gutter;i.fancybox.settranslate(n.$slide,{top:0,left:o-c.left+u}),n.pos!==r.pos&&n.$slide.addclass("fancybox-slide--"+(n.pos>r.pos?"next":"previous")),p(n.$slide),i.fancybox.animate(n.$slide,{top:0,left:(n.pos-r.pos)*l.width+(n.pos-r.pos)*n.opts.gutter},e,(function(){n.$slide.css({transform:"",opacity:""}).removeclass("fancybox-slide--next fancybox-slide--previous"),n.pos===h.currpos&&h.complete()}))}))):e&&r.opts.transitioneffect&&(d="fancybox-animated fancybox-fx-"+r.opts.transitioneffect,a.$slide.addclass("fancybox-slide--"+(a.pos>r.pos?"next":"previous")),i.fancybox.animate(a.$slide,d,e,(function(){a.$slide.removeclass(d).removeclass("fancybox-slide--next fancybox-slide--previous")}),!1)),r.isloaded?h.revealcontent(r):h.loadslide(r),h.preload("image")}},createslide:function(t){var e,n;return n=(n=t%this.group.length)<0?this.group.length+n:n,!this.slides[t]&&this.group[n]&&(e=i('
').appendto(this.$refs.stage),this.slides[t]=i.extend(!0,{},this.group[n],{pos:t,$slide:e,isloaded:!1}),this.updateslide(this.slides[t])),this.slides[t]},scaletoactual:function(t,e,n){var o,s,r,a,l,c=this,d=c.current,u=d.$content,h=i.fancybox.gettranslate(d.$slide).width,p=i.fancybox.gettranslate(d.$slide).height,f=d.width,g=d.height;c.isanimating||c.ismoved()||!u||"image"!=d.type||!d.isloaded||d.haserror||(c.isanimating=!0,i.fancybox.stop(u),t=void 0===t?.5*h:t,e=void 0===e?.5*p:e,(o=i.fancybox.gettranslate(u)).top-=i.fancybox.gettranslate(d.$slide).top,o.left-=i.fancybox.gettranslate(d.$slide).left,a=f/o.width,l=g/o.height,s=.5*h-.5*f,r=.5*p-.5*g,f>h&&((s=o.left*a-(t*a-t))>0&&(s=0),sp&&((r=o.top*l-(e*l-e))>0&&(r=0),re-.5&&(l=e),(c*=o)>n-.5&&(c=n),"image"===t.type?(d.top=math.floor(.5*(n-c))+parsefloat(a.css("paddingtop")),d.left=math.floor(.5*(e-l))+parsefloat(a.css("paddingleft"))):"video"===t.contenttype&&(c>l/(s=t.opts.width&&t.opts.height?l/c:t.opts.ratio||16/9)?c=l/s:l>c*s&&(l=c*s)),d.width=l,d.height=c,d)},update:function(t){var e=this;i.each(e.slides,(function(i,n){e.updateslide(n,t)}))},updateslide:function(t,e){var n=t&&t.$content,o=t.width||t.opts.width,s=t.height||t.opts.height,r=t.$slide;this.adjustcaption(t),n&&(o||s||"video"===t.contenttype)&&!t.haserror&&(i.fancybox.stop(n),i.fancybox.settranslate(n,this.getfitpos(t)),t.pos===this.currpos&&(this.isanimating=!1,this.updatecursor())),this.adjustlayout(t),r.length&&(r.trigger("refresh"),t.pos===this.currpos&&this.$refs.toolbar.add(this.$refs.navigation.find(".fancybox-button--arrow_right")).toggleclass("compensate-for-scrollbar",r.get(0).scrollheight>r.get(0).clientheight)),this.trigger("onupdate",t,e)},centerslide:function(t){var e=this,n=e.current,o=n.$slide;!e.isclosing&&n&&(o.siblings().css({transform:"",opacity:""}),o.parent().children().removeclass("fancybox-slide--previous fancybox-slide--next"),i.fancybox.animate(o,{top:0,left:0,opacity:1},void 0===t?0:t,(function(){o.css({transform:"",opacity:""}),n.iscomplete||e.complete()}),!1))},ismoved:function(t){var e,n,o=t||this.current;return!!o&&(n=i.fancybox.gettranslate(this.$refs.stage),e=i.fancybox.gettranslate(o.$slide),!o.$slide.hasclass("fancybox-animated")&&(math.abs(e.top-n.top)>.5||math.abs(e.left-n.left)>.5))},updatecursor:function(t,e){var n,o,s=this.current,r=this.$refs.container;s&&!this.isclosing&&this.guestures&&(r.removeclass("fancybox-is-zoomable fancybox-can-zoomin fancybox-can-zoomout fancybox-can-swipe fancybox-can-pan"),o=!!(n=this.canpan(t,e))||this.iszoomable(),r.toggleclass("fancybox-is-zoomable",o),i("[data-fancybox-zoom]").prop("disabled",!o),n?r.addclass("fancybox-can-pan"):o&&("zoom"===s.opts.clickcontent||i.isfunction(s.opts.clickcontent)&&"zoom"==s.opts.clickcontent(s))?r.addclass("fancybox-can-zoomin"):s.opts.touch&&(s.opts.touch.vertical||this.group.length>1)&&"video"!==s.contenttype&&r.addclass("fancybox-can-swipe"))},iszoomable:function(){var t,e=this.current;if(e&&!this.isclosing&&"image"===e.type&&!e.haserror){if(!e.isloaded)return!0;if((t=this.getfitpos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isscaleddown:function(t,e){var n=!1,o=this.current,s=o.$content;return void 0!==t&&void 0!==e?n=t1.5||math.abs(o.height-s.height)>1.5)),s},loadslide:function(t){var e,n,o,s=this;if(!t.isloading&&!t.isloaded){if(t.isloading=!0,!1===s.trigger("beforeload",t))return t.isloading=!1,!1;switch(e=t.type,(n=t.$slide).off("refresh").trigger("onreset").addclass(t.opts.slideclass),e){case"image":s.setimage(t);break;case"iframe":s.setiframe(t);break;case"html":s.setcontent(t,t.src||t.content);break;case"video":s.setcontent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoformat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":i(t.src).length?s.setcontent(t,i(t.src)):s.seterror(t);break;case"ajax":s.showloading(t),o=i.ajax(i.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,i){"success"===i&&s.setcontent(t,e)},error:function(e,i){e&&"abort"!==i&&s.seterror(t)}})),n.one("onreset",(function(){o.abort()}));break;default:s.seterror(t)}return!0}},setimage:function(t){var n,o=this;settimeout((function(){var e=t.$image;o.isclosing||!t.isloading||e&&e.length&&e[0].complete||t.haserror||o.showloading(t)}),50),o.checksrcset(t),t.$content=i('
').addclass("fancybox-is-hidden").appendto(t.$slide.addclass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,(n=e.createelement("img")).onerror=function(){i(this).remove(),t.$ghost=null},n.onload=function(){o.afterload(t)},t.$ghost=i(n).addclass("fancybox-image").appendto(t.$content).attr("src",t.thumb)),o.setbigimage(t)},checksrcset:function(e){var i,n,o,s,r=e.opts.srcset||e.opts.image.srcset;if(r){o=t.devicepixelratio||1,s=t.innerwidth*o,(n=r.split(",").map((function(t){var e={};return t.trim().split(/\s+/).foreach((function(t,i){var n=parseint(t.substring(0,t.length-1),10);if(0===i)return e.url=t;n&&(e.value=n,e.postfix=t[t.length-1])})),e}))).sort((function(t,e){return t.value-e.value}));for(var a=0;a=s||"x"===l.postfix&&l.value>=o){i=l;break}}!i&&n.length&&(i=n[n.length-1]),i&&(e.src=i.url,e.width&&e.height&&"w"==i.postfix&&(e.height=e.width/e.height*i.value,e.width=i.value),e.opts.srcset=r)}},setbigimage:function(t){var n=this,o=e.createelement("img"),s=i(o);t.$image=s.one("error",(function(){n.seterror(t)})).one("load",(function(){var e;t.$ghost||(n.resolveimageslidesize(t,this.naturalwidth,this.naturalheight),n.afterload(t)),n.isclosing||(t.opts.srcset&&((e=t.opts.sizes)&&"auto"!==e||(e=(t.width/t.height>1&&a.width()/a.height()>1?"100":math.round(t.width/t.height*100))+"vw"),s.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&settimeout((function(){t.$ghost&&!n.isclosing&&t.$ghost.hide()}),math.min(300,math.max(1e3,t.height/1600))),n.hideloading(t))})).addclass("fancybox-image").attr("src",t.src).appendto(t.$content),(o.complete||"complete"==o.readystate)&&s.naturalwidth&&s.naturalheight?s.trigger("load"):o.error&&s.trigger("error")},resolveimageslidesize:function(t,e,i){var n=parseint(t.opts.width,10),o=parseint(t.opts.height,10);t.width=e,t.height=i,n>0&&(t.width=n,t.height=math.floor(n*i/e)),o>0&&(t.width=math.floor(o*e/i),t.height=o)},setiframe:function(t){var e,n=this,o=t.opts.iframe,s=t.$slide;t.$content=i('
').css(o.css).appendto(s),s.addclass("fancybox-slide--"+t.contenttype),t.$iframe=e=i(o.tpl.replace(/\{rnd\}/g,(new date).gettime())).attr(o.attr).appendto(t.$content),o.preload?(n.showloading(t),e.on("load.fb error.fb",(function(e){this.isready=1,t.$slide.trigger("refresh"),n.afterload(t)})),s.on("refresh.fb",(function(){var i,n=t.$content,r=o.css.width,a=o.css.height;if(1===e[0].isready){try{i=e.contents().find("body")}catch(t){}i&&i.length&&i.children().length&&(s.css("overflow","visible"),n.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===r&&(r=math.ceil(math.max(i[0].clientwidth,i.outerwidth(!0)))),n.css("width",r||"").css("max-width",""),void 0===a&&(a=math.ceil(math.max(i[0].clientheight,i.outerheight(!0)))),n.css("height",a||""),s.css("overflow","auto")),n.removeclass("fancybox-is-hidden")}}))):n.afterload(t),e.attr("src",t.src),s.one("onreset",(function(){try{i(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}i(this).off("refresh.fb").empty(),t.isloaded=!1,t.isrevealed=!1}))},setcontent:function(t,e){var n;this.isclosing||(this.hideloading(t),t.$content&&i.fancybox.stop(t.$content),t.$slide.empty(),(n=e)&&n.hasownproperty&&n instanceof i&&e.parent().length?((e.hasclass("fancybox-content")||e.parent().hasclass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onreset"),t.$placeholder=i("
").hide().insertafter(e),e.css("display","inline-block")):t.haserror||("string"===i.type(e)&&(e=i("
").append(i.trim(e)).contents()),t.opts.filter&&(e=i("
").html(e).find(t.opts.filter))),t.$slide.one("onreset",(function(){i(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeclass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallbtn&&(t.$smallbtn.remove(),t.$smallbtn=null),t.haserror||(i(this).empty(),t.isloaded=!1,t.isrevealed=!1)})),i(e).appendto(t.$slide),i(e).is("video,audio")&&(i(e).addclass("fancybox-video"),i(e).wrap("
"),t.contenttype="video",t.opts.width=t.opts.width||i(e).attr("width"),t.opts.height=t.opts.height||i(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapinner("
").children().first()),t.$content.addclass("fancybox-content"),t.$slide.addclass("fancybox-slide--"+t.contenttype),this.afterload(t))},seterror:function(t){t.haserror=!0,t.$slide.trigger("onreset").removeclass("fancybox-slide--"+t.contenttype).addclass("fancybox-slide--error"),t.contenttype="html",this.setcontent(t,this.translate(t,t.opts.errortpl)),t.pos===this.currpos&&(this.isanimating=!1)},showloading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=i(this.translate(this,this.opts.spinnertpl)).appendto(t.$slide).hide().fadein("fast"))},hideloading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterload:function(t){this.isclosing||(t.isloading=!1,t.isloaded=!0,this.trigger("afterload",t),this.hideloading(t),!t.opts.smallbtn||t.$smallbtn&&t.$smallbtn.length||(t.$smallbtn=i(this.translate(t,t.opts.btntpl.smallbtn)).appendto(t.$content)),t.opts.protect&&t.$content&&!t.haserror&&(t.$content.on("contextmenu.fb",(function(t){return 2==t.button&&t.preventdefault(),!0})),"image"===t.type&&i('
').appendto(t.$content)),this.adjustcaption(t),this.adjustlayout(t),t.pos===this.currpos&&this.updatecursor(),this.revealcontent(t))},adjustcaption:function(t){var e,i=t||this.current,n=i.opts.caption,o=i.opts.preventcaptionoverlap,s=this.$refs.caption,r=!1;s.toggleclass("fancybox-caption--separate",o),o&&n&&n.length&&(i.pos!==this.currpos?((e=s.clone().appendto(s.parent())).children().eq(0).empty().html(n),r=e.outerheight(!0),e.empty().remove()):this.$caption&&(r=this.$caption.outerheight(!0)),i.$slide.css("padding-bottom",r||""))},adjustlayout:function(t){var e,i,n,o,s=t||this.current;s.isloaded&&!0!==s.opts.disablelayoutfix&&(s.$content.css("margin-bottom",""),s.$content.outerheight()>s.$slide.height()+.5&&(n=s.$slide[0].style["padding-bottom"],o=s.$slide.css("padding-bottom"),parsefloat(o)>0&&(e=s.$slide[0].scrollheight,s.$slide.css("padding-bottom",0),math.abs(e-s.$slide[0].scrollheight)<1&&(i=o),s.$slide.css("padding-bottom",n))),s.$content.css("margin-bottom",i))},revealcontent:function(t){var e,n,o,s,r=this,a=t.$slide,l=!1,c=!1,d=r.ismoved(t),u=t.isrevealed;return t.isrevealed=!0,e=t.opts[r.firstrun?"animationeffect":"transitioneffect"],o=t.opts[r.firstrun?"animationduration":"transitionduration"],o=parseint(void 0===t.forcedduration?o:t.forcedduration,10),!d&&t.pos===r.currpos&&o||(e=!1),"zoom"===e&&(t.pos===r.currpos&&o&&"image"===t.type&&!t.haserror&&(c=r.getthumbpos(t))?l=r.getfitpos(t):e="fade"),"zoom"===e?(r.isanimating=!0,l.scalex=l.width/c.width,l.scaley=l.height/c.height,"auto"==(s=t.opts.zoomopacity)&&(s=math.abs(t.width/t.height-c.width/c.height)>.1),s&&(c.opacity=.1,l.opacity=1),i.fancybox.settranslate(t.$content.removeclass("fancybox-is-hidden"),c),p(t.$content),void i.fancybox.animate(t.$content,l,o,(function(){r.isanimating=!1,r.complete()}))):(r.updateslide(t),e?(i.fancybox.stop(a),n="fancybox-slide--"+(t.pos>=r.prevpos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,a.addclass(n).removeclass("fancybox-slide--current"),t.$content.removeclass("fancybox-is-hidden"),p(a),"image"!==t.type&&t.$content.hide().show(0),void i.fancybox.animate(a,"fancybox-slide--current",o,(function(){a.removeclass(n).css({transform:"",opacity:""}),t.pos===r.currpos&&r.complete()}),!0)):(t.$content.removeclass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.haserror||t.$content.hide().fadein("fast"),void(t.pos===r.currpos&&r.complete())))},getthumbpos:function(t){var n,o,s,r,a,l,c=t.$thumb;return!(!c||!function(t){var n,o;return!(!t||t.ownerdocument!==e)&&(i(".fancybox-container").css("pointer-events","none"),n={x:t.getboundingclientrect().left+t.offsetwidth/2,y:t.getboundingclientrect().top+t.offsetheight/2},o=e.elementfrompoint(n.x,n.y)===t,i(".fancybox-container").css("pointer-events",""),o)}(c[0]))&&(o=i.fancybox.gettranslate(c),s=parsefloat(c.css("border-top-width")||0),r=parsefloat(c.css("border-right-width")||0),a=parsefloat(c.css("border-bottom-width")||0),l=parsefloat(c.css("border-left-width")||0),n={top:o.top+s,left:o.left+l,width:o.width-r-l,height:o.height-s-a,scalex:1,scaley:1},o.width>0&&o.height>0&&n)},complete:function(){var t,e=this,n=e.current,o={};!e.ismoved()&&n.isloaded&&(n.iscomplete||(n.iscomplete=!0,n.$slide.siblings().trigger("onreset"),e.preload("inline"),p(n.$slide),n.$slide.addclass("fancybox-slide--complete"),i.each(e.slides,(function(t,n){n.pos>=e.currpos-1&&n.pos<=e.currpos+1?o[n.pos]=n:n&&(i.fancybox.stop(n.$slide),n.$slide.off().remove())})),e.slides=o),e.isanimating=!1,e.updatecursor(),e.trigger("aftershow"),n.opts.video.autostart&&n.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",(function(){document.exitfullscreen?document.exitfullscreen():this.webkitexitfullscreen&&this.webkitexitfullscreen(),e.next()})),n.opts.autofocus&&"html"===n.contenttype&&((t=n.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):e.focus(null,!0)),n.$slide.scrolltop(0).scrollleft(0))},preload:function(t){var e,i;this.group.length<2||(i=this.slides[this.currpos+1],(e=this.slides[this.currpos-1])&&e.type===t&&this.loadslide(e),i&&i.type===t&&this.loadslide(i))},focus:function(t,n){var o,s,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");this.isclosing||((o=(o=!t&&this.current&&this.current.iscomplete?this.current.$slide.find("*:visible"+(n?":not(.fancybox-close-small)":"")):this.$refs.container.find("*:visible")).filter(r).filter((function(){return"hidden"!==i(this).css("visibility")&&!i(this).hasclass("disabled")}))).length?(s=o.index(e.activeelement),t&&t.shiftkey?(s<0||0==s)&&(t.preventdefault(),o.eq(o.length-1).trigger("focus")):(s<0||s==o.length-1)&&(t&&t.preventdefault(),o.eq(0).trigger("focus"))):this.$refs.container.trigger("focus"))},activate:function(){var t=this;i(".fancybox-container").each((function(){var e=i(this).data("fancybox");e&&e.id!==t.id&&!e.isclosing&&(e.trigger("ondeactivate"),e.removeevents(),e.isvisible=!1)})),t.isvisible=!0,(t.current||t.isidle)&&(t.update(),t.updatecontrols()),t.trigger("onactivate"),t.addevents()},close:function(t,e){var n,o,s,r,a,l,c,u=this,h=u.current,f=function(){u.cleanup(t)};return!u.isclosing&&(u.isclosing=!0,!1===u.trigger("beforeclose",t)?(u.isclosing=!1,d((function(){u.update()})),!1):(u.removeevents(),s=h.$content,n=h.opts.animationeffect,o=i.isnumeric(e)?e:n?h.opts.animationduration:0,h.$slide.removeclass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?i.fancybox.stop(h.$slide):n=!1,h.$slide.siblings().trigger("onreset").remove(),o&&u.$refs.container.removeclass("fancybox-is-open").addclass("fancybox-is-closing").css("transition-duration",o+"ms"),u.hideloading(h),u.hidecontrols(!0),u.updatecursor(),"zoom"!==n||s&&o&&"image"===h.type&&!u.ismoved()&&!h.haserror&&(c=u.getthumbpos(h))||(n="fade"),"zoom"===n?(i.fancybox.stop(s),l={top:(r=i.fancybox.gettranslate(s)).top,left:r.left,scalex:r.width/c.width,scaley:r.height/c.height,width:c.width,height:c.height},"auto"==(a=h.opts.zoomopacity)&&(a=math.abs(h.width/h.height-c.width/c.height)>.1),a&&(c.opacity=0),i.fancybox.settranslate(s,l),p(s),i.fancybox.animate(s,c,o,f),!0):(n&&o?i.fancybox.animate(h.$slide.addclass("fancybox-slide--previous").removeclass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+n,o,f):!0===t?settimeout(f,o):f(),!0)))},cleanup:function(e){var n,o,s,r=this.current.opts.$orig;this.current.$slide.trigger("onreset"),this.$refs.container.empty().remove(),this.trigger("afterclose",e),this.current.opts.backfocus&&(r&&r.length&&r.is(":visible")||(r=this.$trigger),r&&r.length&&(o=t.scrollx,s=t.scrolly,r.trigger("focus"),i("html, body").scrolltop(s).scrollleft(o))),this.current=null,(n=i.fancybox.getinstance())?n.activate():(i("body").removeclass("fancybox-active compensate-for-scrollbar"),i("#fancybox-style-noscroll").remove())},trigger:function(t,e){var n,o=array.prototype.slice.call(arguments,1),s=this,r=e&&e.opts?e:s.current;if(r?o.unshift(r):r=s,o.unshift(s),i.isfunction(r.opts[t])&&(n=r.opts[t].apply(r,o)),!1===n)return n;"afterclose"!==t&&s.$refs?s.$refs.container.trigger(t+".fb",o):l.trigger(t+".fb",o)},updatecontrols:function(){var t=this.current,n=t.index,o=this.$refs.container,s=this.$refs.caption,r=t.opts.caption;t.$slide.trigger("refresh"),r&&r.length?(this.$caption=s,s.children().eq(0).html(r)):this.$caption=null,this.hashiddencontrols||this.isidle||this.showcontrols(),o.find("[data-fancybox-count]").html(this.group.length),o.find("[data-fancybox-index]").html(n+1),o.find("[data-fancybox-prev]").prop("disabled",!t.opts.loop&&n<=0),o.find("[data-fancybox-next]").prop("disabled",!t.opts.loop&&n>=this.group.length-1),"image"===t.type?o.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",t.opts.image.src||t.src).show():t.opts.toolbar&&o.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),i(e.activeelement).is(":hidden,[disabled]")&&this.$refs.container.trigger("focus")},hidecontrols:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventcaptionoverlap||e.push("caption"),this.$refs.container.removeclass(e.map((function(t){return"fancybox-show-"+t})).join(" ")),this.hashiddencontrols=!0},showcontrols:function(){var t=this.current?this.current.opts:this.opts,e=this.$refs.container;this.hashiddencontrols=!1,this.idlesecondscounter=0,e.toggleclass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleclass("fancybox-show-infobar",!!(t.infobar&&this.group.length>1)).toggleclass("fancybox-show-caption",!!this.$caption).toggleclass("fancybox-show-nav",!!(t.arrows&&this.group.length>1)).toggleclass("fancybox-is-modal",!!t.modal)},togglecontrols:function(){this.hashiddencontrols?this.showcontrols():this.hidecontrols()}}),i.fancybox={version:"3.5.7",defaults:r,getinstance:function(t){var e=i('.fancybox-container:not(".fancybox-is-closing"):last').data("fancybox"),n=array.prototype.slice.call(arguments,1);return e instanceof g&&("string"===i.type(t)?e[t].apply(e,n):"function"===i.type(t)&&t.apply(e,n),e)},open:function(t,e,i){return new g(t,e,i)},close:function(t){var e=this.getinstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),l.add("body").off("click.fb-start","**")},ismobile:/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.useragent),use3d:(o=e.createelement("div"),t.getcomputedstyle&&t.getcomputedstyle(o)&&t.getcomputedstyle(o).getpropertyvalue("transform")&&!(e.documentmode&&e.documentmode<11)),gettranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getboundingclientrect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parsefloat(t.css("opacity"))}},settranslate:function(t,e){var i="",n={};if(t&&e)return void 0===e.left&&void 0===e.top||(i=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),void 0!==e.scalex&&void 0!==e.scaley?i+=" scale("+e.scalex+", "+e.scaley+")":void 0!==e.scalex&&(i+=" scalex("+e.scalex+")"),i.length&&(n.transform=i),void 0!==e.opacity&&(n.opacity=e.opacity),void 0!==e.width&&(n.width=e.width),void 0!==e.height&&(n.height=e.height),t.css(n)},animate:function(t,e,n,o,s){var r,a=this;i.isfunction(n)&&(o=n,n=null),a.stop(t),r=a.gettranslate(t),t.on(h,(function(l){(!l||!l.originalevent||t.is(l.originalevent.target)&&"z-index"!=l.originalevent.propertyname)&&(a.stop(t),i.isnumeric(n)&&t.css("transition-duration",""),i.isplainobject(e)?void 0!==e.scalex&&void 0!==e.scaley&&a.settranslate(t,{top:e.top,left:e.left,width:r.width*e.scalex,height:r.height*e.scaley,scalex:1,scaley:1}):!0!==s&&t.removeclass(e),i.isfunction(o)&&o(l))})),i.isnumeric(n)&&t.css("transition-duration",n+"ms"),i.isplainobject(e)?(void 0!==e.scalex&&void 0!==e.scaley&&(delete e.width,delete e.height,t.parent().hasclass("fancybox-slide--image")&&t.parent().addclass("fancybox-is-scaling")),i.fancybox.settranslate(t,e)):t.addclass(e),t.data("timer",settimeout((function(){t.trigger(h)}),n+33))},stop:function(t,e){t&&t.length&&(cleartimeout(t.data("timer")),e&&t.trigger(h),t.off(h).css("transition-duration",""),t.parent().removeclass("fancybox-is-scaling"))}},i.fn.fancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?i("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},m):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},m),this},l.on("click.fb-start","[data-fancybox]",m),l.on("click.fb-start","[data-fancybox-trigger]",(function(t){i('[data-fancybox="'+i(this).attr("data-fancybox-trigger")+'"]').eq(i(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:i(this)})})),s=null,l.on("mousedown mouseup focus blur",".fancybox-button",(function(t){switch(t.type){case"mousedown":s=i(this);break;case"mouseup":s=null;break;case"focusin":i(".fancybox-button").removeclass("fancybox-focus"),i(this).is(s)||i(this).is("[disabled]")||i(this).addclass("fancybox-focus");break;case"focusout":i(".fancybox-button").removeclass("fancybox-focus")}}))}function m(t,e){var n,o,s,r=[],a=0;t&&t.isdefaultprevented()||(t.preventdefault(),e=e||{},t&&t.data&&(e=f(t.data.options,e)),n=e.$target||i(t.currenttarget).trigger("blur"),(s=i.fancybox.getinstance())&&s.$trigger&&s.$trigger.is(n)||(r=e.selector?i(e.selector):(o=n.attr("data-fancybox")||"")?(r=t.data?t.data.items:[]).length?r.filter('[data-fancybox="'+o+'"]'):i('[data-fancybox="'+o+'"]'):[n],(a=i(r).index(n))<0&&(a=0),(s=i.fancybox.open(r,e,a)).$trigger=n))}}(window,document,t),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listtype=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramplace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramplace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-za-z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexof("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},i=function(e,i,n){if(e)return n=n||"","object"===t.type(n)&&(n=t.param(n,!0)),t.each(i,(function(t,i){e=e.replace("$"+t,i||"")})),n.length&&(e+=(e.indexof("?")>0?"&":"?")+n),e};t(document).on("objectneedstype.fb",(function(n,o,s){var r,a,l,c,d,u,h,p=s.src||"",f=!1;r=t.extend(!0,{},e,s.opts.media),t.each(r,(function(e,n){if(l=p.match(n.matcher)){if(f=n.type,h=e,u={},n.paramplace&&l[n.paramplace]){"?"==(d=l[n.paramplace])[0]&&(d=d.substring(1)),d=d.split("&");for(var o=0;o1&&("youtube"===i.contentsource||"vimeo"===i.contentsource)&&n.load(i.contentsource)}})}(t),function(t,e,i){"use strict";var n=t.requestanimationframe||t.webkitrequestanimationframe||t.mozrequestanimationframe||t.orequestanimationframe||function(e){return t.settimeout(e,1e3/60)},o=t.cancelanimationframe||t.webkitcancelanimationframe||t.mozcancelanimationframe||t.ocancelanimationframe||function(e){t.cleartimeout(e)},s=function(e){var i=[];for(var n in e=(e=e.originalevent||e||t.e).touches&&e.touches.length?e.touches:e.changedtouches&&e.changedtouches.length?e.changedtouches:[e])e[n].pagex?i.push({x:e[n].pagex,y:e[n].pagey}):e[n].clientx&&i.push({x:e[n].clientx,y:e[n].clienty});return i},r=function(t,e,i){return e&&t?"x"===i?t.x-e.x:"y"===i?t.y-e.y:math.sqrt(math.pow(t.x-e.x,2)+math.pow(t.y-e.y,2)):0},a=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||i.isfunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,n=t[0].attributes,o=n.length;ei.clientheight,r=("scroll"===o||"auto"===o)&&i.scrollwidth>i.clientwidth,!(a=s||r)&&(e=e.parent()).length&&!e.hasclass("fancybox-stage")&&!e.is("body"););return a},c=function(t){this.instance=t,this.$bg=t.$refs.bg,this.$stage=t.$refs.stage,this.$container=t.$refs.container,this.destroy(),this.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(this,"ontouchstart"))};c.prototype.destroy=function(){this.$container.off(".fb.touch"),i(e).off(".fb.touch"),this.requestid&&(o(this.requestid),this.requestid=null),this.tapped&&(cleartimeout(this.tapped),this.tapped=null)},c.prototype.ontouchstart=function(n){var o=i(n.target),c=this.instance,d=c.current,u=d.$slide,h=d.$content,p="touchstart"==n.type;if(p&&this.$container.off("mousedown.fb.touch"),(!n.originalevent||2!=n.originalevent.button)&&u.length&&o.length&&!a(o)&&!a(o.parent())&&(o.is("img")||!(n.originalevent.clientx>o[0].clientwidth+o.offset().left))){if(!d||c.isanimating||d.$slide.hasclass("fancybox-animated"))return n.stoppropagation(),void n.preventdefault();this.realpoints=this.startpoints=s(n),this.startpoints.length&&(d.touch&&n.stoppropagation(),this.startevent=n,this.cantap=!0,this.$target=o,this.$content=h,this.opts=d.opts.touch,this.ispanning=!1,this.isswiping=!1,this.iszooming=!1,this.isscrolling=!1,this.canpan=c.canpan(),this.starttime=(new date).gettime(),this.distancex=this.distancey=this.distance=0,this.canvaswidth=math.round(u[0].clientwidth),this.canvasheight=math.round(u[0].clientheight),this.contentlastpos=null,this.contentstartpos=i.fancybox.gettranslate(this.$content)||{top:0,left:0},this.sliderstartpos=i.fancybox.gettranslate(u),this.stagepos=i.fancybox.gettranslate(c.$refs.stage),this.sliderstartpos.top-=this.stagepos.top,this.sliderstartpos.left-=this.stagepos.left,this.contentstartpos.top-=this.stagepos.top,this.contentstartpos.left-=this.stagepos.left,i(e).off(".fb.touch").on(p?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(this,"ontouchend")).on(p?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(this,"ontouchmove")),i.fancybox.ismobile&&e.addeventlistener("scroll",this.onscroll,!0),((this.opts||this.canpan)&&(o.is(this.$stage)||this.$stage.find(o).length)||(o.is(".fancybox-image")&&n.preventdefault(),i.fancybox.ismobile&&o.parents(".fancybox-caption").length))&&(this.isscrollable=l(o)||l(o.parent()),i.fancybox.ismobile&&this.isscrollable||n.preventdefault(),(1===this.startpoints.length||d.haserror)&&(this.canpan?(i.fancybox.stop(this.$content),this.ispanning=!0):this.isswiping=!0,this.$container.addclass("fancybox-is-grabbing")),2===this.startpoints.length&&"image"===d.type&&(d.isloaded||d.$ghost)&&(this.cantap=!1,this.isswiping=!1,this.ispanning=!1,this.iszooming=!0,i.fancybox.stop(this.$content),this.centerpointstartx=.5*(this.startpoints[0].x+this.startpoints[1].x)-i(t).scrollleft(),this.centerpointstarty=.5*(this.startpoints[0].y+this.startpoints[1].y)-i(t).scrolltop(),this.percentageofimageatpinchpointx=(this.centerpointstartx-this.contentstartpos.left)/this.contentstartpos.width,this.percentageofimageatpinchpointy=(this.centerpointstarty-this.contentstartpos.top)/this.contentstartpos.height,this.startdistancebetweenfingers=r(this.startpoints[0],this.startpoints[1]))))}},c.prototype.onscroll=function(t){this.isscrolling=!0,e.removeeventlistener("scroll",this.onscroll,!0)},c.prototype.ontouchmove=function(t){void 0===t.originalevent.buttons||0!==t.originalevent.buttons?this.isscrolling?this.cantap=!1:(this.newpoints=s(t),(this.opts||this.canpan)&&this.newpoints.length&&this.newpoints.length&&(this.isswiping&&!0===this.isswiping||t.preventdefault(),this.distancex=r(this.newpoints[0],this.startpoints[0],"x"),this.distancey=r(this.newpoints[0],this.startpoints[0],"y"),this.distance=r(this.newpoints[0],this.startpoints[0]),this.distance>0&&(this.isswiping?this.onswipe(t):this.ispanning?this.onpan():this.iszooming&&this.onzoom()))):this.ontouchend(t)},c.prototype.onswipe=function(e){var s,r=this,a=r.instance,l=r.isswiping,c=r.sliderstartpos.left||0;if(!0!==l)"x"==l&&(r.distancex>0&&(r.instance.group.length<2||0===r.instance.current.index&&!r.instance.current.opts.loop)?c+=math.pow(r.distancex,.8):r.distancex<0&&(r.instance.group.length<2||r.instance.current.index===r.instance.group.length-1&&!r.instance.current.opts.loop)?c-=math.pow(-r.distancex,.8):c+=r.distancex),r.sliderlastpos={top:"x"==l?0:r.sliderstartpos.top+r.distancey,left:c},r.requestid&&(o(r.requestid),r.requestid=null),r.requestid=n((function(){r.sliderlastpos&&(i.each(r.instance.slides,(function(t,e){var n=e.pos-r.instance.currpos;i.fancybox.settranslate(e.$slide,{top:r.sliderlastpos.top,left:r.sliderlastpos.left+n*r.canvaswidth+n*e.opts.gutter})})),r.$container.addclass("fancybox-is-sliding"))}));else if(math.abs(r.distance)>10){if(r.cantap=!1,a.group.length<2&&r.opts.vertical?r.isswiping="y":a.isdragging||!1===r.opts.vertical||"auto"===r.opts.vertical&&i(t).width()>800?r.isswiping="x":(s=math.abs(180*math.atan2(r.distancey,r.distancex)/math.pi),r.isswiping=s>45&&s<135?"y":"x"),"y"===r.isswiping&&i.fancybox.ismobile&&r.isscrollable)return void(r.isscrolling=!0);a.isdragging=r.isswiping,r.startpoints=r.newpoints,i.each(a.slides,(function(t,e){var n,o;i.fancybox.stop(e.$slide),n=i.fancybox.gettranslate(e.$slide),o=i.fancybox.gettranslate(a.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeclass("fancybox-animated").removeclass((function(t,e){return(e.match(/(^|\s)fancybox-fx-\s+/g)||[]).join(" ")})),e.pos===a.current.pos&&(r.sliderstartpos.top=n.top-o.top,r.sliderstartpos.left=n.left-o.left),i.fancybox.settranslate(e.$slide,{top:n.top-o.top,left:n.left-o.left})})),a.slideshow&&a.slideshow.isactive&&a.slideshow.stop()}},c.prototype.onpan=function(){var t=this;r(t.newpoints[0],t.realpoints[0])<(i.fancybox.ismobile?10:5)?t.startpoints=t.newpoints:(t.cantap=!1,t.contentlastpos=t.limitmovement(),t.requestid&&o(t.requestid),t.requestid=n((function(){i.fancybox.settranslate(t.$content,t.contentlastpos)})))},c.prototype.limitmovement=function(){var t,e,i,n,o,s,r=this.canvaswidth,a=this.canvasheight,l=this.distancex,c=this.distancey,d=this.contentstartpos,u=d.left,h=d.top,p=d.width,f=d.height;return o=p>r?u+l:u,s=h+c,t=math.max(0,.5*r-.5*p),e=math.max(0,.5*a-.5*f),i=math.min(r-p,.5*r-.5*p),n=math.min(a-f,.5*a-.5*f),l>0&&o>t&&(o=t-1+math.pow(-t+u+l,.8)||0),l<0&&o0&&s>e&&(s=e-1+math.pow(-e+h+c,.8)||0),c<0&&so?(t=t>0?0:t)s?(e=e>0?0:e)1&&(this.dms>130&&s>10||s>50);this.sliderlastpos=null,"y"==t&&!e&&math.abs(this.distancey)>50?(i.fancybox.animate(this.instance.current.$slide,{top:this.sliderstartpos.top+this.distancey+150*this.velocityy,opacity:0},200),n=this.instance.close(!0,250)):r&&this.distancex>0?n=this.instance.previous(300):r&&this.distancex<0&&(n=this.instance.next(300)),!1!==n||"x"!=t&&"y"!=t||this.instance.centerslide(200),this.$container.removeclass("fancybox-is-sliding")},c.prototype.endpanning=function(){var t,e,n;this.contentlastpos&&(!1===this.opts.momentum||this.dms>350?(t=this.contentlastpos.left,e=this.contentlastpos.top):(t=this.contentlastpos.left+500*this.velocityx,e=this.contentlastpos.top+500*this.velocityy),(n=this.limitposition(t,e,this.contentstartpos.width,this.contentstartpos.height)).width=this.contentstartpos.width,n.height=this.contentstartpos.height,i.fancybox.animate(this.$content,n,366))},c.prototype.endzooming=function(){var t,e,n,o,s=this.instance.current,r=this.newwidth,a=this.newheight;this.contentlastpos&&(t=this.contentlastpos.left,o={top:e=this.contentlastpos.top,left:t,width:r,height:a,scalex:1,scaley:1},i.fancybox.settranslate(this.$content,o),rs.width||a>s.height?this.instance.scaletoactual(this.centerpointstartx,this.centerpointstarty,150):(n=this.limitposition(t,e,r,a),i.fancybox.animate(this.$content,n,150)))},c.prototype.ontap=function(e){var n,o=this,r=i(e.target),a=o.instance,l=a.current,c=e&&s(e)||o.startpoints,d=c[0]?c[0].x-i(t).scrollleft()-o.stagepos.left:0,u=c[0]?c[0].y-i(t).scrolltop()-o.stagepos.top:0,h=function(t){var n=l.opts[t];if(i.isfunction(n)&&(n=n.apply(a,[l,e])),n)switch(n){case"close":a.close(o.startevent);break;case"togglecontrols":a.togglecontrols();break;case"next":a.next();break;case"nextorclose":a.group.length>1?a.next():a.close(o.startevent);break;case"zoom":"image"==l.type&&(l.isloaded||l.$ghost)&&(a.canpan()?a.scaletofit():a.isscaleddown()?a.scaletoactual(d,u):a.group.length<2&&a.close(o.startevent))}};if((!e.originalevent||2!=e.originalevent.button)&&(r.is("img")||!(d>r[0].clientwidth+r.offset().left))){if(r.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))n="outside";else if(r.is(".fancybox-slide"))n="slide";else{if(!a.current.$content||!a.current.$content.find(r).addback().filter(r).length)return;n="content"}if(o.tapped){if(cleartimeout(o.tapped),o.tapped=null,math.abs(d-o.tapx)>50||math.abs(u-o.tapy)>50)return this;h("dblclick"+n)}else o.tapx=d,o.tapy=u,l.opts["dblclick"+n]&&l.opts["dblclick"+n]!==l.opts["click"+n]?o.tapped=settimeout((function(){o.tapped=null,a.isanimating||h("click"+n)}),500):h("click"+n);return this}},i(e).on("onactivate.fb",(function(t,e){e&&!e.guestures&&(e.guestures=new c(e))})).on("beforeclose.fb",(function(t,e){e&&e.guestures&&e.guestures.destroy()}))}(window,document,t),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btntpl:{slideshow:''},slideshow:{autostart:!1,speed:3e3,progress:!0}});var i=function(t){this.instance=t,this.init()};e.extend(i.prototype,{timer:null,isactive:!1,$button:null,init:function(){var t=this,i=t.instance,n=i.group[i.currindex].opts.slideshow;t.$button=i.$refs.toolbar.find("[data-fancybox-play]").on("click",(function(){t.toggle()})),i.group.length<2||!n?t.$button.hide():n.progress&&(t.$progress=e('
').appendto(i.$refs.inner))},set:function(t){var i=this.instance,n=i.current;n&&(!0===t||n.opts.loop||i.currindex'},fullscreen:{autostart:!1}}),e(t).on(i.fullscreenchange,(function(){var t=n.isfullscreen(),i=e.fancybox.getinstance();i&&(i.current&&"image"===i.current.type&&i.isanimating&&(i.isanimating=!1,i.update(!0,!0,0),i.iscomplete||i.complete()),i.trigger("onfullscreenchange",t),i.$refs.container.toggleclass("fancybox-is-fullscreen",t),i.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleclass("fancybox-button--fsenter",!t).toggleclass("fancybox-button--fsexit",t))}))}e(t).on({"oninit.fb":function(t,e){i?e&&e.group[e.currindex].opts.fullscreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",(function(t){t.stoppropagation(),t.preventdefault(),n.toggle()})),e.opts.fullscreen&&!0===e.opts.fullscreen.autostart&&n.request(),e.fullscreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterkeydown.fb":function(t,e,i,n,o){e&&e.fullscreen&&70===o&&(n.preventdefault(),e.fullscreen.toggle())},"beforeclose.fb":function(t,e){e&&e.fullscreen&&e.$refs.container.hasclass("fancybox-is-fullscreen")&&n.exit()}})}(document,t),function(t,e){"use strict";var i="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btntpl:{thumbs:''},thumbs:{autostart:!1,hideonclose:!0,parentel:".fancybox-container",axis:"y"}},e.fancybox.defaults);var n=function(t){this.init(t)};e.extend(n.prototype,{$button:null,$grid:null,$list:null,isvisible:!1,isactive:!1,init:function(t){var e=this,i=t.group,n=0;e.instance=t,e.opts=i[t.currindex].opts.thumbs,t.thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,s=i.length;o1));o++);n>1&&e.opts?(e.$button.removeattr("style").on("click",(function(){e.toggle()})),e.isactive=!0):e.$button.hide()},create:function(){var t,n=this.instance,o=this.opts.parentel,s=[];this.$grid||(this.$grid=e('
').appendto(n.$refs.container.find(o).addback().filter(o)),this.$grid.on("click","a",(function(){n.jumpto(e(this).attr("data-index"))}))),this.$list||(this.$list=e('
').appendto(this.$grid)),e.each(n.group,(function(e,i){(t=i.thumb)||"image"!==i.type||(t=i.src),s.push('")})),this.$list[0].innerhtml=s.join(""),"x"===this.opts.axis&&this.$list.width(parseint(this.$grid.css("padding-right"),10)+n.group.length*this.$list.children().eq(0).outerwidth(!0))},focus:function(t){var e,i,n=this.$list,o=this.$grid;this.instance.current&&(i=(e=n.children().removeclass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addclass("fancybox-thumbs-active")).position(),"y"===this.opts.axis&&(i.top<0||i.top>n.height()-e.outerheight())?n.stop().animate({scrolltop:n.scrolltop()+i.top},t):"x"===this.opts.axis&&(i.lefto.scrollleft()+(o.width()-e.outerwidth()))&&n.parent().stop().animate({scrollleft:i.left},t))},update:function(){this.instance.$refs.container.toggleclass("fancybox-show-thumbs",this.isvisible),this.isvisible?(this.$grid||this.create(),this.instance.trigger("onthumbsshow"),this.focus(0)):this.$grid&&this.instance.trigger("onthumbshide"),this.instance.update()},hide:function(){this.isvisible=!1,this.update()},show:function(){this.isvisible=!0,this.update()},toggle:function(){this.isvisible=!this.isvisible,this.update()}}),e(t).on({"oninit.fb":function(t,e){var i;e&&!e.thumbs&&(i=new n(e)).isactive&&!0===i.opts.autostart&&i.show()},"beforeshow.fb":function(t,e,i,n){var o=e&&e.thumbs;o&&o.isvisible&&o.focus(n?0:250)},"afterkeydown.fb":function(t,e,i,n,o){var s=e&&e.thumbs;s&&s.isactive&&71===o&&(n.preventdefault(),s.toggle())},"beforeclose.fb":function(t,e){var i=e&&e.thumbs;i&&i.isvisible&&!1!==i.opts.hideonclose&&i.$grid.hide()}})}(document,t),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btntpl:{share:''},share:{url:function(t,e){return!t.currenthash&&"inline"!==e.type&&"html"!==e.type&&(e.origsrc||e.src)||window.location},tpl:''}}),e(t).on("click","[data-fancybox-share]",(function(){var t,i,n,o,s=e.fancybox.getinstance(),r=s.current||null;r&&("function"===e.type(r.opts.share.url)&&(t=r.opts.share.url.apply(r,[s,r])),i=r.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===r.type?encodeuricomponent(r.src):"").replace(/\{\{url\}\}/g,encodeuricomponent(t)).replace(/\{\{url_raw\}\}/g,(n=t,o={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},string(n).replace(/[&<>"'`=\/]/g,(function(t){return o[t]})))).replace(/\{\{descr\}\}/g,s.$caption?encodeuricomponent(s.$caption.text()):""),e.fancybox.open({src:s.translate(s,i),type:"html",opts:{touch:!1,animationeffect:!1,afterload:function(t,e){s.$refs.container.one("beforeclose.fb",(function(){t.close(null,0)})),e.$content.find(".fancybox-share__button").click((function(){return window.open(this.href,"share","width=550, height=450"),!1}))},mobile:{autofocus:!1}}}))}))}(document,t),function(t,e,i){"use strict";function n(){var e=t.location.hash.substr(1),i=e.split("-"),n=i.length>1&&/^\+?\d+$/.test(i[i.length-1])&&parseint(i.pop(-1),10)||1;return{hash:e,index:n<1?1:n,gallery:i.join("-")}}function o(t){""!==t.gallery&&i("[data-fancybox='"+i.escapeselector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function s(t){var e,i;return!!t&&(""!==(i=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&i)}i.escapeselector||(i.escapeselector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uffff\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charcodeat(t.length-1).tostring(16)+" ":"\\"+t}))}),i((function(){!1!==i.fancybox.defaults.hash&&(i(e).on({"oninit.fb":function(t,e){var i,o;!1!==e.group[e.currindex].opts.hash&&(i=n(),(o=s(e))&&i.gallery&&o==i.gallery&&(e.currindex=i.index-1))},"beforeshow.fb":function(i,n,o,r){var a;o&&!1!==o.opts.hash&&(a=s(n))&&(n.currenthash=a+(n.group.length>1?"-"+(o.index+1):""),t.location.hash!=="#"+n.currenthash&&(r&&!n.orighash&&(n.orighash=t.location.hash),n.hashtimer&&cleartimeout(n.hashtimer),n.hashtimer=settimeout((function(){"replacestate"in t.history?(t.history[r?"pushstate":"replacestate"]({},e.title,t.location.pathname+t.location.search+"#"+n.currenthash),r&&(n.hascreatedhistory=!0)):t.location.hash=n.currenthash,n.hashtimer=null}),300)))},"beforeclose.fb":function(i,n,o){o&&!1!==o.opts.hash&&(cleartimeout(n.hashtimer),n.currenthash&&n.hascreatedhistory?t.history.back():n.currenthash&&("replacestate"in t.history?t.history.replacestate({},e.title,t.location.pathname+t.location.search+(n.orighash||"")):t.location.hash=n.orighash),n.currenthash=null)}}),i(t).on("hashchange.fb",(function(){var t=n(),e=null;i.each(i(".fancybox-container").get().reverse(),(function(t,n){var o=i(n).data("fancybox");if(o&&o.currenthash)return e=o,!1})),e?e.currenthash===t.gallery+"-"+t.index||1===t.index&&e.currenthash==t.gallery||(e.currenthash=null,e.close()):""!==t.gallery&&o(t)})),settimeout((function(){i.fancybox.getinstance()||o(n())}),50))}))}(window,document,t),function(t,e){"use strict";var i=(new date).gettime();e(t).on({"oninit.fb":function(t,e,n){e.$refs.stage.on("mousewheel dommousescroll wheel mozmousepixelscroll",(function(t){var n=e.current,o=(new date).gettime();e.group.length<2||!1===n.opts.wheel||"auto"===n.opts.wheel&&"image"!==n.type||(t.preventdefault(),t.stoppropagation(),n.$slide.hasclass("fancybox-animated")||(t=t.originalevent||t,o-i<250||(i=o,e[(-t.deltay||-t.deltax||t.wheeldelta||-t.detail)<0?"next":"previous"]())))}))}})}(document,t)}).call(this,i(12))},205:function(t,e,i){(function(t){!function(t,e,i,n){"use strict";function o(t,e){var n,o,s,r=[],a=0;t&&t.isdefaultprevented()||(t.preventdefault(),e=e||{},t&&t.data&&(e=p(t.data.options,e)),n=e.$target||i(t.currenttarget).trigger("blur"),(s=i.fancybox.getinstance())&&s.$trigger&&s.$trigger.is(n)||(e.selector?r=i(e.selector):(o=n.attr("data-fancybox")||"")?r=(r=t.data?t.data.items:[]).length?r.filter('[data-fancybox="'+o+'"]'):i('[data-fancybox="'+o+'"]'):r=[n],(a=i(r).index(n))<0&&(a=0),(s=i.fancybox.open(r,e,a)).$trigger=n))}if(t.console=t.console||{info:function(t){}},i){if(i.fn.fancybox)return void console.info("fancybox already initialized");var s={closeexisting:!1,loop:!1,gutter:50,keyboard:!0,preventcaptionoverlap:!0,arrows:!0,infobar:!0,smallbtn:"auto",toolbar:"auto",buttons:["zoom","slideshow","thumbs","close"],idletime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'',format:"",autostart:!0},defaulttype:"image",animationeffect:"zoom",animationduration:366,zoomopacity:"auto",transitioneffect:"fade",transitionduration:366,slideclass:"",baseclass:"",basetpl:'',spinnertpl:'
',errortpl:'

{{error}}

',btntpl:{download:'',zoom:'',close:'',arrowleft:'',arrowright:'',smallbtn:''},parentel:"body",hidescrollbar:!0,autofocus:!0,backfocus:!0,trapfocus:!0,fullscreen:{autostart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideshow:{autostart:!1,speed:3e3},thumbs:{autostart:!1,hideonclose:!0,parentel:".fancybox-container",axis:"y"},wheel:"auto",oninit:i.noop,beforeload:i.noop,afterload:i.noop,beforeshow:i.noop,aftershow:i.noop,beforeclose:i.noop,afterclose:i.noop,onactivate:i.noop,ondeactivate:i.noop,clickcontent:function(t,e){return"image"===t.type&&"zoom"},clickslide:"close",clickoutside:"close",dblclickcontent:!1,dblclickslide:!1,dblclickoutside:!1,mobile:{preventcaptionoverlap:!1,idletime:!1,clickcontent:function(t,e){return"image"===t.type&&"togglecontrols"},clickslide:function(t,e){return"image"===t.type?"togglecontrols":"close"},dblclickcontent:function(t,e){return"image"===t.type&&"zoom"},dblclickslide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{close:"close",next:"next",prev:"previous",error:"the requested content cannot be loaded.
please try again later.",play_start:"start slideshow",play_stop:"pause slideshow",full_screen:"full screen",thumbs:"thumbnails",download:"download",share:"share",zoom:"zoom"},de:{close:"schließen",next:"weiter",prev:"zurück",error:"die angeforderten daten konnten nicht geladen werden.
bitte versuchen sie es später nochmal.",play_start:"diaschau starten",play_stop:"diaschau beenden",full_screen:"vollbild",thumbs:"vorschaubilder",download:"herunterladen",share:"teilen",zoom:"vergrößern"}}},r=i(t),a=i(e),l=0,c=t.requestanimationframe||t.webkitrequestanimationframe||t.mozrequestanimationframe||t.orequestanimationframe||function(e){return t.settimeout(e,1e3/60)},d=t.cancelanimationframe||t.webkitcancelanimationframe||t.mozcancelanimationframe||t.ocancelanimationframe||function(e){t.cleartimeout(e)},u=function(){var t,i=e.createelement("fakeelement"),n={transition:"transitionend",otransition:"otransitionend",moztransition:"transitionend",webkittransition:"webkittransitionend"};for(t in n)if(void 0!==i.style[t])return n[t];return"transitionend"}(),h=function(t){return t&&t.length&&t[0].offsetheight},p=function(t,e){var n=i.extend(!0,{},t,e);return i.each(e,(function(t,e){i.isarray(e)&&(n[t]=e)})),n},f=function(t){var n,o;return!(!t||t.ownerdocument!==e)&&(i(".fancybox-container").css("pointer-events","none"),n={x:t.getboundingclientrect().left+t.offsetwidth/2,y:t.getboundingclientrect().top+t.offsetheight/2},o=e.elementfrompoint(n.x,n.y)===t,i(".fancybox-container").css("pointer-events",""),o)},g=function(t,e,n){var o=this;o.opts=p({index:n},i.fancybox.defaults),i.isplainobject(e)&&(o.opts=p(o.opts,e)),i.fancybox.ismobile&&(o.opts=p(o.opts,o.opts.mobile)),o.id=o.opts.id||++l,o.currindex=parseint(o.opts.index,10)||0,o.previndex=null,o.prevpos=null,o.currpos=0,o.firstrun=!0,o.group=[],o.slides={},o.addcontent(t),o.group.length&&o.init()};i.extend(g.prototype,{init:function(){var n,o,s=this,r=s.group[s.currindex].opts;r.closeexisting&&i.fancybox.close(!0),i("body").addclass("fancybox-active"),!i.fancybox.getinstance()&&!1!==r.hidescrollbar&&!i.fancybox.ismobile&&e.body.scrollheight>t.innerheight&&(i("head").append('"),i("body").addclass("compensate-for-scrollbar")),o="",i.each(r.buttons,(function(t,e){o+=r.btntpl[e]||""})),n=i(s.translate(s,r.basetpl.replace("{{buttons}}",o).replace("{{arrows}}",r.btntpl.arrowleft+r.btntpl.arrowright))).attr("id","fancybox-container-"+s.id).addclass(r.baseclass).data("fancybox",s).appendto(r.parentel),s.$refs={container:n},["bg","inner","infobar","toolbar","stage","caption","navigation"].foreach((function(t){s.$refs[t]=n.find(".fancybox-"+t)})),s.trigger("oninit"),s.activate(),s.jumpto(s.currindex)},translate:function(t,e){var i=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,(function(t,e){return void 0===i[e]?t:i[e]}))},addcontent:function(t){var e,n=this,o=i.makearray(t);i.each(o,(function(t,e){var o,s,r,a,l,c={},d={};i.isplainobject(e)?(c=e,d=e.opts||e):"object"===i.type(e)&&i(e).length?(d=(o=i(e)).data()||{},(d=i.extend(!0,{},d,d.options)).$orig=o,c.src=n.opts.src||d.src||o.attr("href"),c.type||c.src||(c.type="inline",c.src=e)):c={type:"html",src:e+""},c.opts=i.extend(!0,{},n.opts,d),i.isarray(d.buttons)&&(c.opts.buttons=d.buttons),i.fancybox.ismobile&&c.opts.mobile&&(c.opts=p(c.opts,c.opts.mobile)),s=c.type||c.opts.type,a=c.src||"",!s&&a&&((r=a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(s="video",c.opts.video.format||(c.opts.video.format="video/"+("ogv"===r[1]?"ogg":r[1]))):a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":a.match(/\.(pdf)((\?|#).*)?$/i)?(s="iframe",c=i.extend(!0,c,{contenttype:"pdf",opts:{iframe:{preload:!1}}})):"#"===a.charat(0)&&(s="inline")),s?c.type=s:n.trigger("objectneedstype",c),c.contenttype||(c.contenttype=i.inarray(c.type,["html","inline","ajax"])>-1?"html":c.type),c.index=n.group.length,"auto"==c.opts.smallbtn&&(c.opts.smallbtn=i.inarray(c.type,["html","inline","ajax"])>-1),"auto"===c.opts.toolbar&&(c.opts.toolbar=!c.opts.smallbtn),c.$thumb=c.opts.$thumb||null,c.opts.$trigger&&c.index===n.opts.index&&(c.$thumb=c.opts.$trigger.find("img:first"),c.$thumb.length&&(c.opts.$orig=c.opts.$trigger)),c.$thumb&&c.$thumb.length||!c.opts.$orig||(c.$thumb=c.opts.$orig.find("img:first")),c.$thumb&&!c.$thumb.length&&(c.$thumb=null),c.thumb=c.opts.thumb||(c.$thumb?c.$thumb[0].src:null),"function"===i.type(c.opts.caption)&&(c.opts.caption=c.opts.caption.apply(e,[n,c])),"function"===i.type(n.opts.caption)&&(c.opts.caption=n.opts.caption.apply(e,[n,c])),c.opts.caption instanceof i||(c.opts.caption=void 0===c.opts.caption?"":c.opts.caption+""),"ajax"===c.type&&((l=a.split(/\s+/,2)).length>1&&(c.src=l.shift(),c.opts.filter=l.shift())),c.opts.modal&&(c.opts=i.extend(!0,c.opts,{trapfocus:!0,infobar:0,toolbar:0,smallbtn:0,keyboard:0,slideshow:0,fullscreen:0,thumbs:0,touch:0,clickcontent:!1,clickslide:!1,clickoutside:!1,dblclickcontent:!1,dblclickslide:!1,dblclickoutside:!1})),n.group.push(c)})),object.keys(n.slides).length&&(n.updatecontrols(),(e=n.thumbs)&&e.isactive&&(e.create(),e.focus()))},addevents:function(){var e=this;e.removeevents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",(function(t){t.stoppropagation(),t.preventdefault(),e.close(t)})).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",(function(t){t.stoppropagation(),t.preventdefault(),e.previous()})).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",(function(t){t.stoppropagation(),t.preventdefault(),e.next()})).on("click.fb","[data-fancybox-zoom]",(function(t){e[e.isscaleddown()?"scaletoactual":"scaletofit"]()})),r.on("orientationchange.fb resize.fb",(function(t){t&&t.originalevent&&"resize"===t.originalevent.type?(e.requestid&&d(e.requestid),e.requestid=c((function(){e.update(t)}))):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),settimeout((function(){e.$refs.stage.show(),e.update(t)}),i.fancybox.ismobile?600:250))})),a.on("keydown.fb",(function(t){var n=(i.fancybox?i.fancybox.getinstance():null).current,o=t.keycode||t.which;if(9!=o)return!n.opts.keyboard||t.ctrlkey||t.altkey||t.shiftkey||i(t.target).is("input,textarea,video,audio,select")?void 0:8===o||27===o?(t.preventdefault(),void e.close(t)):37===o||38===o?(t.preventdefault(),void e.previous()):39===o||40===o?(t.preventdefault(),void e.next()):void e.trigger("afterkeydown",t,o);n.opts.trapfocus&&e.focus(t)})),e.group[e.currindex].opts.idletime&&(e.idlesecondscounter=0,a.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",(function(t){e.idlesecondscounter=0,e.isidle&&e.showcontrols(),e.isidle=!1})),e.idleinterval=t.setinterval((function(){++e.idlesecondscounter>=e.group[e.currindex].opts.idletime&&!e.isdragging&&(e.isidle=!0,e.idlesecondscounter=0,e.hidecontrols())}),1e3))},removeevents:function(){var e=this;r.off("orientationchange.fb resize.fb"),a.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleinterval&&(t.clearinterval(e.idleinterval),e.idleinterval=null)},previous:function(t){return this.jumpto(this.currpos-1,t)},next:function(t){return this.jumpto(this.currpos+1,t)},jumpto:function(t,e){var n,o,s,r,a,l,c,d,u,p=this,f=p.group.length;if(!(p.isdragging||p.isclosing||p.isanimating&&p.firstrun)){if(t=parseint(t,10),!(s=p.current?p.current.opts.loop:p.opts.loop)&&(t<0||t>=f))return!1;if(n=p.firstrun=!object.keys(p.slides).length,a=p.current,p.previndex=p.currindex,p.prevpos=p.currpos,r=p.createslide(t),f>1&&((s||r.index0)&&p.createslide(t-1)),p.current=r,p.currindex=r.index,p.currpos=r.pos,p.trigger("beforeshow",n),p.updatecontrols(),r.forcedduration=void 0,i.isnumeric(e)?r.forcedduration=e:e=r.opts[n?"animationduration":"transitionduration"],e=parseint(e,10),o=p.ismoved(r),r.$slide.addclass("fancybox-slide--current"),n)return r.opts.animationeffect&&e&&p.$refs.container.css("transition-duration",e+"ms"),p.$refs.container.addclass("fancybox-is-open").trigger("focus"),p.loadslide(r),void p.preload("image");l=i.fancybox.gettranslate(a.$slide),c=i.fancybox.gettranslate(p.$refs.stage),i.each(p.slides,(function(t,e){i.fancybox.stop(e.$slide,!0)})),a.pos!==r.pos&&(a.iscomplete=!1),a.$slide.removeclass("fancybox-slide--complete fancybox-slide--current"),o?(u=l.left-(a.pos*l.width+a.pos*a.opts.gutter),i.each(p.slides,(function(t,n){n.$slide.removeclass("fancybox-animated").removeclass((function(t,e){return(e.match(/(^|\s)fancybox-fx-\s+/g)||[]).join(" ")}));var o=n.pos*l.width+n.pos*n.opts.gutter;i.fancybox.settranslate(n.$slide,{top:0,left:o-c.left+u}),n.pos!==r.pos&&n.$slide.addclass("fancybox-slide--"+(n.pos>r.pos?"next":"previous")),h(n.$slide),i.fancybox.animate(n.$slide,{top:0,left:(n.pos-r.pos)*l.width+(n.pos-r.pos)*n.opts.gutter},e,(function(){n.$slide.css({transform:"",opacity:""}).removeclass("fancybox-slide--next fancybox-slide--previous"),n.pos===p.currpos&&p.complete()}))}))):e&&r.opts.transitioneffect&&(d="fancybox-animated fancybox-fx-"+r.opts.transitioneffect,a.$slide.addclass("fancybox-slide--"+(a.pos>r.pos?"next":"previous")),i.fancybox.animate(a.$slide,d,e,(function(){a.$slide.removeclass(d).removeclass("fancybox-slide--next fancybox-slide--previous")}),!1)),r.isloaded?p.revealcontent(r):p.loadslide(r),p.preload("image")}},createslide:function(t){var e,n,o=this;return n=(n=t%o.group.length)<0?o.group.length+n:n,!o.slides[t]&&o.group[n]&&(e=i('
').appendto(o.$refs.stage),o.slides[t]=i.extend(!0,{},o.group[n],{pos:t,$slide:e,isloaded:!1}),o.updateslide(o.slides[t])),o.slides[t]},scaletoactual:function(t,e,n){var o,s,r,a,l,c=this,d=c.current,u=d.$content,h=i.fancybox.gettranslate(d.$slide).width,p=i.fancybox.gettranslate(d.$slide).height,f=d.width,g=d.height;c.isanimating||c.ismoved()||!u||"image"!=d.type||!d.isloaded||d.haserror||(c.isanimating=!0,i.fancybox.stop(u),t=void 0===t?.5*h:t,e=void 0===e?.5*p:e,(o=i.fancybox.gettranslate(u)).top-=i.fancybox.gettranslate(d.$slide).top,o.left-=i.fancybox.gettranslate(d.$slide).left,a=f/o.width,l=g/o.height,s=.5*h-.5*f,r=.5*p-.5*g,f>h&&((s=o.left*a-(t*a-t))>0&&(s=0),sp&&((r=o.top*l-(e*l-e))>0&&(r=0),re-.5&&(l=e),(c*=o)>n-.5&&(c=n),"image"===t.type?(d.top=math.floor(.5*(n-c))+parsefloat(a.css("paddingtop")),d.left=math.floor(.5*(e-l))+parsefloat(a.css("paddingleft"))):"video"===t.contenttype&&(c>l/(s=t.opts.width&&t.opts.height?l/c:t.opts.ratio||16/9)?c=l/s:l>c*s&&(l=c*s)),d.width=l,d.height=c,d)},update:function(t){var e=this;i.each(e.slides,(function(i,n){e.updateslide(n,t)}))},updateslide:function(t,e){var n=this,o=t&&t.$content,s=t.width||t.opts.width,r=t.height||t.opts.height,a=t.$slide;n.adjustcaption(t),o&&(s||r||"video"===t.contenttype)&&!t.haserror&&(i.fancybox.stop(o),i.fancybox.settranslate(o,n.getfitpos(t)),t.pos===n.currpos&&(n.isanimating=!1,n.updatecursor())),n.adjustlayout(t),a.length&&(a.trigger("refresh"),t.pos===n.currpos&&n.$refs.toolbar.add(n.$refs.navigation.find(".fancybox-button--arrow_right")).toggleclass("compensate-for-scrollbar",a.get(0).scrollheight>a.get(0).clientheight)),n.trigger("onupdate",t,e)},centerslide:function(t){var e=this,n=e.current,o=n.$slide;!e.isclosing&&n&&(o.siblings().css({transform:"",opacity:""}),o.parent().children().removeclass("fancybox-slide--previous fancybox-slide--next"),i.fancybox.animate(o,{top:0,left:0,opacity:1},void 0===t?0:t,(function(){o.css({transform:"",opacity:""}),n.iscomplete||e.complete()}),!1))},ismoved:function(t){var e,n,o=t||this.current;return!!o&&(n=i.fancybox.gettranslate(this.$refs.stage),e=i.fancybox.gettranslate(o.$slide),!o.$slide.hasclass("fancybox-animated")&&(math.abs(e.top-n.top)>.5||math.abs(e.left-n.left)>.5))},updatecursor:function(t,e){var n,o,s=this,r=s.current,a=s.$refs.container;r&&!s.isclosing&&s.guestures&&(a.removeclass("fancybox-is-zoomable fancybox-can-zoomin fancybox-can-zoomout fancybox-can-swipe fancybox-can-pan"),o=!!(n=s.canpan(t,e))||s.iszoomable(),a.toggleclass("fancybox-is-zoomable",o),i("[data-fancybox-zoom]").prop("disabled",!o),n?a.addclass("fancybox-can-pan"):o&&("zoom"===r.opts.clickcontent||i.isfunction(r.opts.clickcontent)&&"zoom"==r.opts.clickcontent(r))?a.addclass("fancybox-can-zoomin"):r.opts.touch&&(r.opts.touch.vertical||s.group.length>1)&&"video"!==r.contenttype&&a.addclass("fancybox-can-swipe"))},iszoomable:function(){var t,e=this,i=e.current;if(i&&!e.isclosing&&"image"===i.type&&!i.haserror){if(!i.isloaded)return!0;if((t=e.getfitpos(i))&&(i.width>t.width||i.height>t.height))return!0}return!1},isscaleddown:function(t,e){var n=!1,o=this.current,s=o.$content;return void 0!==t&&void 0!==e?n=t1.5||math.abs(o.height-s.height)>1.5)),s},loadslide:function(t){var e,n,o,s=this;if(!t.isloading&&!t.isloaded){if(t.isloading=!0,!1===s.trigger("beforeload",t))return t.isloading=!1,!1;switch(e=t.type,(n=t.$slide).off("refresh").trigger("onreset").addclass(t.opts.slideclass),e){case"image":s.setimage(t);break;case"iframe":s.setiframe(t);break;case"html":s.setcontent(t,t.src||t.content);break;case"video":s.setcontent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoformat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":i(t.src).length?s.setcontent(t,i(t.src)):s.seterror(t);break;case"ajax":s.showloading(t),o=i.ajax(i.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,i){"success"===i&&s.setcontent(t,e)},error:function(e,i){e&&"abort"!==i&&s.seterror(t)}})),n.one("onreset",(function(){o.abort()}));break;default:s.seterror(t)}return!0}},setimage:function(t){var n,o=this;settimeout((function(){var e=t.$image;o.isclosing||!t.isloading||e&&e.length&&e[0].complete||t.haserror||o.showloading(t)}),50),o.checksrcset(t),t.$content=i('
').addclass("fancybox-is-hidden").appendto(t.$slide.addclass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,(n=e.createelement("img")).onerror=function(){i(this).remove(),t.$ghost=null},n.onload=function(){o.afterload(t)},t.$ghost=i(n).addclass("fancybox-image").appendto(t.$content).attr("src",t.thumb)),o.setbigimage(t)},checksrcset:function(e){var i,n,o,s,r=e.opts.srcset||e.opts.image.srcset;if(r){o=t.devicepixelratio||1,s=t.innerwidth*o,(n=r.split(",").map((function(t){var e={};return t.trim().split(/\s+/).foreach((function(t,i){var n=parseint(t.substring(0,t.length-1),10);if(0===i)return e.url=t;n&&(e.value=n,e.postfix=t[t.length-1])})),e}))).sort((function(t,e){return t.value-e.value}));for(var a=0;a=s||"x"===l.postfix&&l.value>=o){i=l;break}}!i&&n.length&&(i=n[n.length-1]),i&&(e.src=i.url,e.width&&e.height&&"w"==i.postfix&&(e.height=e.width/e.height*i.value,e.width=i.value),e.opts.srcset=r)}},setbigimage:function(t){var n=this,o=e.createelement("img"),s=i(o);t.$image=s.one("error",(function(){n.seterror(t)})).one("load",(function(){var e;t.$ghost||(n.resolveimageslidesize(t,this.naturalwidth,this.naturalheight),n.afterload(t)),n.isclosing||(t.opts.srcset&&((e=t.opts.sizes)&&"auto"!==e||(e=(t.width/t.height>1&&r.width()/r.height()>1?"100":math.round(t.width/t.height*100))+"vw"),s.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&settimeout((function(){t.$ghost&&!n.isclosing&&t.$ghost.hide()}),math.min(300,math.max(1e3,t.height/1600))),n.hideloading(t))})).addclass("fancybox-image").attr("src",t.src).appendto(t.$content),(o.complete||"complete"==o.readystate)&&s.naturalwidth&&s.naturalheight?s.trigger("load"):o.error&&s.trigger("error")},resolveimageslidesize:function(t,e,i){var n=parseint(t.opts.width,10),o=parseint(t.opts.height,10);t.width=e,t.height=i,n>0&&(t.width=n,t.height=math.floor(n*i/e)),o>0&&(t.width=math.floor(o*e/i),t.height=o)},setiframe:function(t){var e,n=this,o=t.opts.iframe,s=t.$slide;t.$content=i('
').css(o.css).appendto(s),s.addclass("fancybox-slide--"+t.contenttype),t.$iframe=e=i(o.tpl.replace(/\{rnd\}/g,(new date).gettime())).attr(o.attr).appendto(t.$content),o.preload?(n.showloading(t),e.on("load.fb error.fb",(function(e){this.isready=1,t.$slide.trigger("refresh"),n.afterload(t)})),s.on("refresh.fb",(function(){var i,n=t.$content,r=o.css.width,a=o.css.height;if(1===e[0].isready){try{i=e.contents().find("body")}catch(t){}i&&i.length&&i.children().length&&(s.css("overflow","visible"),n.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===r&&(r=math.ceil(math.max(i[0].clientwidth,i.outerwidth(!0)))),n.css("width",r||"").css("max-width",""),void 0===a&&(a=math.ceil(math.max(i[0].clientheight,i.outerheight(!0)))),n.css("height",a||""),s.css("overflow","auto")),n.removeclass("fancybox-is-hidden")}}))):n.afterload(t),e.attr("src",t.src),s.one("onreset",(function(){try{i(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}i(this).off("refresh.fb").empty(),t.isloaded=!1,t.isrevealed=!1}))},setcontent:function(t,e){var n=this;n.isclosing||(n.hideloading(t),t.$content&&i.fancybox.stop(t.$content),t.$slide.empty(),function(t){return t&&t.hasownproperty&&t instanceof i}(e)&&e.parent().length?((e.hasclass("fancybox-content")||e.parent().hasclass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onreset"),t.$placeholder=i("
").hide().insertafter(e),e.css("display","inline-block")):t.haserror||("string"===i.type(e)&&(e=i("
").append(i.trim(e)).contents()),t.opts.filter&&(e=i("
").html(e).find(t.opts.filter))),t.$slide.one("onreset",(function(){i(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeclass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallbtn&&(t.$smallbtn.remove(),t.$smallbtn=null),t.haserror||(i(this).empty(),t.isloaded=!1,t.isrevealed=!1)})),i(e).appendto(t.$slide),i(e).is("video,audio")&&(i(e).addclass("fancybox-video"),i(e).wrap("
"),t.contenttype="video",t.opts.width=t.opts.width||i(e).attr("width"),t.opts.height=t.opts.height||i(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapinner("
").children().first()),t.$content.addclass("fancybox-content"),t.$slide.addclass("fancybox-slide--"+t.contenttype),n.afterload(t))},seterror:function(t){t.haserror=!0,t.$slide.trigger("onreset").removeclass("fancybox-slide--"+t.contenttype).addclass("fancybox-slide--error"),t.contenttype="html",this.setcontent(t,this.translate(t,t.opts.errortpl)),t.pos===this.currpos&&(this.isanimating=!1)},showloading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=i(e.translate(e,e.opts.spinnertpl)).appendto(t.$slide).hide().fadein("fast"))},hideloading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterload:function(t){var e=this;e.isclosing||(t.isloading=!1,t.isloaded=!0,e.trigger("afterload",t),e.hideloading(t),!t.opts.smallbtn||t.$smallbtn&&t.$smallbtn.length||(t.$smallbtn=i(e.translate(t,t.opts.btntpl.smallbtn)).appendto(t.$content)),t.opts.protect&&t.$content&&!t.haserror&&(t.$content.on("contextmenu.fb",(function(t){return 2==t.button&&t.preventdefault(),!0})),"image"===t.type&&i('
').appendto(t.$content)),e.adjustcaption(t),e.adjustlayout(t),t.pos===e.currpos&&e.updatecursor(),e.revealcontent(t))},adjustcaption:function(t){var e,i=this,n=t||i.current,o=n.opts.caption,s=n.opts.preventcaptionoverlap,r=i.$refs.caption,a=!1;r.toggleclass("fancybox-caption--separate",s),s&&o&&o.length&&(n.pos!==i.currpos?((e=r.clone().appendto(r.parent())).children().eq(0).empty().html(o),a=e.outerheight(!0),e.empty().remove()):i.$caption&&(a=i.$caption.outerheight(!0)),n.$slide.css("padding-bottom",a||""))},adjustlayout:function(t){var e,i,n,o,s=t||this.current;s.isloaded&&!0!==s.opts.disablelayoutfix&&(s.$content.css("margin-bottom",""),s.$content.outerheight()>s.$slide.height()+.5&&(n=s.$slide[0].style["padding-bottom"],o=s.$slide.css("padding-bottom"),parsefloat(o)>0&&(e=s.$slide[0].scrollheight,s.$slide.css("padding-bottom",0),math.abs(e-s.$slide[0].scrollheight)<1&&(i=o),s.$slide.css("padding-bottom",n))),s.$content.css("margin-bottom",i))},revealcontent:function(t){var e,n,o,s,r=this,a=t.$slide,l=!1,c=!1,d=r.ismoved(t),u=t.isrevealed;return t.isrevealed=!0,e=t.opts[r.firstrun?"animationeffect":"transitioneffect"],o=t.opts[r.firstrun?"animationduration":"transitionduration"],o=parseint(void 0===t.forcedduration?o:t.forcedduration,10),!d&&t.pos===r.currpos&&o||(e=!1),"zoom"===e&&(t.pos===r.currpos&&o&&"image"===t.type&&!t.haserror&&(c=r.getthumbpos(t))?l=r.getfitpos(t):e="fade"),"zoom"===e?(r.isanimating=!0,l.scalex=l.width/c.width,l.scaley=l.height/c.height,"auto"==(s=t.opts.zoomopacity)&&(s=math.abs(t.width/t.height-c.width/c.height)>.1),s&&(c.opacity=.1,l.opacity=1),i.fancybox.settranslate(t.$content.removeclass("fancybox-is-hidden"),c),h(t.$content),void i.fancybox.animate(t.$content,l,o,(function(){r.isanimating=!1,r.complete()}))):(r.updateslide(t),e?(i.fancybox.stop(a),n="fancybox-slide--"+(t.pos>=r.prevpos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,a.addclass(n).removeclass("fancybox-slide--current"),t.$content.removeclass("fancybox-is-hidden"),h(a),"image"!==t.type&&t.$content.hide().show(0),void i.fancybox.animate(a,"fancybox-slide--current",o,(function(){a.removeclass(n).css({transform:"",opacity:""}),t.pos===r.currpos&&r.complete()}),!0)):(t.$content.removeclass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.haserror||t.$content.hide().fadein("fast"),void(t.pos===r.currpos&&r.complete())))},getthumbpos:function(t){var e,n,o,s,r,a=!1,l=t.$thumb;return!(!l||!f(l[0]))&&(e=i.fancybox.gettranslate(l),n=parsefloat(l.css("border-top-width")||0),o=parsefloat(l.css("border-right-width")||0),s=parsefloat(l.css("border-bottom-width")||0),r=parsefloat(l.css("border-left-width")||0),a={top:e.top+n,left:e.left+r,width:e.width-o-r,height:e.height-n-s,scalex:1,scaley:1},e.width>0&&e.height>0&&a)},complete:function(){var t,e=this,n=e.current,o={};!e.ismoved()&&n.isloaded&&(n.iscomplete||(n.iscomplete=!0,n.$slide.siblings().trigger("onreset"),e.preload("inline"),h(n.$slide),n.$slide.addclass("fancybox-slide--complete"),i.each(e.slides,(function(t,n){n.pos>=e.currpos-1&&n.pos<=e.currpos+1?o[n.pos]=n:n&&(i.fancybox.stop(n.$slide),n.$slide.off().remove())})),e.slides=o),e.isanimating=!1,e.updatecursor(),e.trigger("aftershow"),n.opts.video.autostart&&n.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",(function(){document.exitfullscreen?document.exitfullscreen():this.webkitexitfullscreen&&this.webkitexitfullscreen(),e.next()})),n.opts.autofocus&&"html"===n.contenttype&&((t=n.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):e.focus(null,!0)),n.$slide.scrolltop(0).scrollleft(0))},preload:function(t){var e,i,n=this;n.group.length<2||(i=n.slides[n.currpos+1],(e=n.slides[n.currpos-1])&&e.type===t&&n.loadslide(e),i&&i.type===t&&n.loadslide(i))},focus:function(t,n){var o,s,r=this,a=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");r.isclosing||((o=(o=!t&&r.current&&r.current.iscomplete?r.current.$slide.find("*:visible"+(n?":not(.fancybox-close-small)":"")):r.$refs.container.find("*:visible")).filter(a).filter((function(){return"hidden"!==i(this).css("visibility")&&!i(this).hasclass("disabled")}))).length?(s=o.index(e.activeelement),t&&t.shiftkey?(s<0||0==s)&&(t.preventdefault(),o.eq(o.length-1).trigger("focus")):(s<0||s==o.length-1)&&(t&&t.preventdefault(),o.eq(0).trigger("focus"))):r.$refs.container.trigger("focus"))},activate:function(){var t=this;i(".fancybox-container").each((function(){var e=i(this).data("fancybox");e&&e.id!==t.id&&!e.isclosing&&(e.trigger("ondeactivate"),e.removeevents(),e.isvisible=!1)})),t.isvisible=!0,(t.current||t.isidle)&&(t.update(),t.updatecontrols()),t.trigger("onactivate"),t.addevents()},close:function(t,e){var n,o,s,r,a,l,d,u=this,p=u.current,f=function(){u.cleanup(t)};return!(u.isclosing||(u.isclosing=!0,!1===u.trigger("beforeclose",t)?(u.isclosing=!1,c((function(){u.update()})),1):(u.removeevents(),s=p.$content,n=p.opts.animationeffect,o=i.isnumeric(e)?e:n?p.opts.animationduration:0,p.$slide.removeclass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?i.fancybox.stop(p.$slide):n=!1,p.$slide.siblings().trigger("onreset").remove(),o&&u.$refs.container.removeclass("fancybox-is-open").addclass("fancybox-is-closing").css("transition-duration",o+"ms"),u.hideloading(p),u.hidecontrols(!0),u.updatecursor(),"zoom"!==n||s&&o&&"image"===p.type&&!u.ismoved()&&!p.haserror&&(d=u.getthumbpos(p))||(n="fade"),"zoom"===n?(i.fancybox.stop(s),r=i.fancybox.gettranslate(s),l={top:r.top,left:r.left,scalex:r.width/d.width,scaley:r.height/d.height,width:d.width,height:d.height},a=p.opts.zoomopacity,"auto"==a&&(a=math.abs(p.width/p.height-d.width/d.height)>.1),a&&(d.opacity=0),i.fancybox.settranslate(s,l),h(s),i.fancybox.animate(s,d,o,f),0):(n&&o?i.fancybox.animate(p.$slide.addclass("fancybox-slide--previous").removeclass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+n,o,f):!0===t?settimeout(f,o):f(),0))))},cleanup:function(e){var n,o,s,r=this,a=r.current.opts.$orig;r.current.$slide.trigger("onreset"),r.$refs.container.empty().remove(),r.trigger("afterclose",e),r.current.opts.backfocus&&(a&&a.length&&a.is(":visible")||(a=r.$trigger),a&&a.length&&(o=t.scrollx,s=t.scrolly,a.trigger("focus"),i("html, body").scrolltop(s).scrollleft(o))),r.current=null,(n=i.fancybox.getinstance())?n.activate():(i("body").removeclass("fancybox-active compensate-for-scrollbar"),i("#fancybox-style-noscroll").remove())},trigger:function(t,e){var n,o=array.prototype.slice.call(arguments,1),s=this,r=e&&e.opts?e:s.current;if(r?o.unshift(r):r=s,o.unshift(s),i.isfunction(r.opts[t])&&(n=r.opts[t].apply(r,o)),!1===n)return n;"afterclose"!==t&&s.$refs?s.$refs.container.trigger(t+".fb",o):a.trigger(t+".fb",o)},updatecontrols:function(){var t=this,n=t.current,o=n.index,s=t.$refs.container,r=t.$refs.caption,a=n.opts.caption;n.$slide.trigger("refresh"),a&&a.length?(t.$caption=r,r.children().eq(0).html(a)):t.$caption=null,t.hashiddencontrols||t.isidle||t.showcontrols(),s.find("[data-fancybox-count]").html(t.group.length),s.find("[data-fancybox-index]").html(o+1),s.find("[data-fancybox-prev]").prop("disabled",!n.opts.loop&&o<=0),s.find("[data-fancybox-next]").prop("disabled",!n.opts.loop&&o>=t.group.length-1),"image"===n.type?s.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",n.opts.image.src||n.src).show():n.opts.toolbar&&s.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),i(e.activeelement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hidecontrols:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventcaptionoverlap||e.push("caption"),this.$refs.container.removeclass(e.map((function(t){return"fancybox-show-"+t})).join(" ")),this.hashiddencontrols=!0},showcontrols:function(){var t=this,e=t.current?t.current.opts:t.opts,i=t.$refs.container;t.hashiddencontrols=!1,t.idlesecondscounter=0,i.toggleclass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleclass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleclass("fancybox-show-caption",!!t.$caption).toggleclass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleclass("fancybox-is-modal",!!e.modal)},togglecontrols:function(){this.hashiddencontrols?this.showcontrols():this.hidecontrols()}}),i.fancybox={version:"3.5.7",defaults:s,getinstance:function(t){var e=i('.fancybox-container:not(".fancybox-is-closing"):last').data("fancybox"),n=array.prototype.slice.call(arguments,1);return e instanceof g&&("string"===i.type(t)?e[t].apply(e,n):"function"===i.type(t)&&t.apply(e,n),e)},open:function(t,e,i){return new g(t,e,i)},close:function(t){var e=this.getinstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),a.add("body").off("click.fb-start","**")},ismobile:/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.useragent),use3d:function(){var i=e.createelement("div");return t.getcomputedstyle&&t.getcomputedstyle(i)&&t.getcomputedstyle(i).getpropertyvalue("transform")&&!(e.documentmode&&e.documentmode<11)}(),gettranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getboundingclientrect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parsefloat(t.css("opacity"))}},settranslate:function(t,e){var i="",n={};if(t&&e)return void 0===e.left&&void 0===e.top||(i=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),void 0!==e.scalex&&void 0!==e.scaley?i+=" scale("+e.scalex+", "+e.scaley+")":void 0!==e.scalex&&(i+=" scalex("+e.scalex+")"),i.length&&(n.transform=i),void 0!==e.opacity&&(n.opacity=e.opacity),void 0!==e.width&&(n.width=e.width),void 0!==e.height&&(n.height=e.height),t.css(n)},animate:function(t,e,n,o,s){var r,a=this;i.isfunction(n)&&(o=n,n=null),a.stop(t),r=a.gettranslate(t),t.on(u,(function(l){(!l||!l.originalevent||t.is(l.originalevent.target)&&"z-index"!=l.originalevent.propertyname)&&(a.stop(t),i.isnumeric(n)&&t.css("transition-duration",""),i.isplainobject(e)?void 0!==e.scalex&&void 0!==e.scaley&&a.settranslate(t,{top:e.top,left:e.left,width:r.width*e.scalex,height:r.height*e.scaley,scalex:1,scaley:1}):!0!==s&&t.removeclass(e),i.isfunction(o)&&o(l))})),i.isnumeric(n)&&t.css("transition-duration",n+"ms"),i.isplainobject(e)?(void 0!==e.scalex&&void 0!==e.scaley&&(delete e.width,delete e.height,t.parent().hasclass("fancybox-slide--image")&&t.parent().addclass("fancybox-is-scaling")),i.fancybox.settranslate(t,e)):t.addclass(e),t.data("timer",settimeout((function(){t.trigger(u)}),n+33))},stop:function(t,e){t&&t.length&&(cleartimeout(t.data("timer")),e&&t.trigger(u),t.off(u).css("transition-duration",""),t.parent().removeclass("fancybox-is-scaling"))}},i.fn.fancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?i("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},o):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},o),this},a.on("click.fb-start","[data-fancybox]",o),a.on("click.fb-start","[data-fancybox-trigger]",(function(t){i('[data-fancybox="'+i(this).attr("data-fancybox-trigger")+'"]').eq(i(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:i(this)})})),function(){var t=null;a.on("mousedown mouseup focus blur",".fancybox-button",(function(e){switch(e.type){case"mousedown":t=i(this);break;case"mouseup":t=null;break;case"focusin":i(".fancybox-button").removeclass("fancybox-focus"),i(this).is(t)||i(this).is("[disabled]")||i(this).addclass("fancybox-focus");break;case"focusout":i(".fancybox-button").removeclass("fancybox-focus")}}))}()}}(window,document,t),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listtype=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramplace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramplace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-za-z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexof("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},i=function(e,i,n){if(e)return n=n||"","object"===t.type(n)&&(n=t.param(n,!0)),t.each(i,(function(t,i){e=e.replace("$"+t,i||"")})),n.length&&(e+=(e.indexof("?")>0?"&":"?")+n),e};t(document).on("objectneedstype.fb",(function(n,o,s){var r,a,l,c,d,u,h,p=s.src||"",f=!1;r=t.extend(!0,{},e,s.opts.media),t.each(r,(function(e,n){if(l=p.match(n.matcher)){if(f=n.type,h=e,u={},n.paramplace&&l[n.paramplace]){"?"==(d=l[n.paramplace])[0]&&(d=d.substring(1)),d=d.split("&");for(var o=0;o1&&("youtube"===i.contentsource||"vimeo"===i.contentsource)&&n.load(i.contentsource)}})}(t),function(t,e,i){"use strict";var n=t.requestanimationframe||t.webkitrequestanimationframe||t.mozrequestanimationframe||t.orequestanimationframe||function(e){return t.settimeout(e,1e3/60)},o=t.cancelanimationframe||t.webkitcancelanimationframe||t.mozcancelanimationframe||t.ocancelanimationframe||function(e){t.cleartimeout(e)},s=function(e){var i=[];for(var n in e=(e=e.originalevent||e||t.e).touches&&e.touches.length?e.touches:e.changedtouches&&e.changedtouches.length?e.changedtouches:[e])e[n].pagex?i.push({x:e[n].pagex,y:e[n].pagey}):e[n].clientx&&i.push({x:e[n].clientx,y:e[n].clienty});return i},r=function(t,e,i){return e&&t?"x"===i?t.x-e.x:"y"===i?t.y-e.y:math.sqrt(math.pow(t.x-e.x,2)+math.pow(t.y-e.y,2)):0},a=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||i.isfunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,n=t[0].attributes,o=n.length;ee.clientheight,s=("scroll"===n||"auto"===n)&&e.scrollwidth>e.clientwidth;return o||s},c=function(t){for(var e=!1;!(e=l(t.get(0)))&&((t=t.parent()).length&&!t.hasclass("fancybox-stage")&&!t.is("body")););return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),i(e).off(".fb.touch"),t.requestid&&(o(t.requestid),t.requestid=null),t.tapped&&(cleartimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(n){var o=this,l=i(n.target),d=o.instance,u=d.current,h=u.$slide,p=u.$content,f="touchstart"==n.type;if(f&&o.$container.off("mousedown.fb.touch"),(!n.originalevent||2!=n.originalevent.button)&&h.length&&l.length&&!a(l)&&!a(l.parent())&&(l.is("img")||!(n.originalevent.clientx>l[0].clientwidth+l.offset().left))){if(!u||d.isanimating||u.$slide.hasclass("fancybox-animated"))return n.stoppropagation(),void n.preventdefault();o.realpoints=o.startpoints=s(n),o.startpoints.length&&(u.touch&&n.stoppropagation(),o.startevent=n,o.cantap=!0,o.$target=l,o.$content=p,o.opts=u.opts.touch,o.ispanning=!1,o.isswiping=!1,o.iszooming=!1,o.isscrolling=!1,o.canpan=d.canpan(),o.starttime=(new date).gettime(),o.distancex=o.distancey=o.distance=0,o.canvaswidth=math.round(h[0].clientwidth),o.canvasheight=math.round(h[0].clientheight),o.contentlastpos=null,o.contentstartpos=i.fancybox.gettranslate(o.$content)||{top:0,left:0},o.sliderstartpos=i.fancybox.gettranslate(h),o.stagepos=i.fancybox.gettranslate(d.$refs.stage),o.sliderstartpos.top-=o.stagepos.top,o.sliderstartpos.left-=o.stagepos.left,o.contentstartpos.top-=o.stagepos.top,o.contentstartpos.left-=o.stagepos.left,i(e).off(".fb.touch").on(f?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(o,"ontouchend")).on(f?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(o,"ontouchmove")),i.fancybox.ismobile&&e.addeventlistener("scroll",o.onscroll,!0),((o.opts||o.canpan)&&(l.is(o.$stage)||o.$stage.find(l).length)||(l.is(".fancybox-image")&&n.preventdefault(),i.fancybox.ismobile&&l.parents(".fancybox-caption").length))&&(o.isscrollable=c(l)||c(l.parent()),i.fancybox.ismobile&&o.isscrollable||n.preventdefault(),(1===o.startpoints.length||u.haserror)&&(o.canpan?(i.fancybox.stop(o.$content),o.ispanning=!0):o.isswiping=!0,o.$container.addclass("fancybox-is-grabbing")),2===o.startpoints.length&&"image"===u.type&&(u.isloaded||u.$ghost)&&(o.cantap=!1,o.isswiping=!1,o.ispanning=!1,o.iszooming=!0,i.fancybox.stop(o.$content),o.centerpointstartx=.5*(o.startpoints[0].x+o.startpoints[1].x)-i(t).scrollleft(),o.centerpointstarty=.5*(o.startpoints[0].y+o.startpoints[1].y)-i(t).scrolltop(),o.percentageofimageatpinchpointx=(o.centerpointstartx-o.contentstartpos.left)/o.contentstartpos.width,o.percentageofimageatpinchpointy=(o.centerpointstarty-o.contentstartpos.top)/o.contentstartpos.height,o.startdistancebetweenfingers=r(o.startpoints[0],o.startpoints[1]))))}},d.prototype.onscroll=function(t){this.isscrolling=!0,e.removeeventlistener("scroll",this.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalevent.buttons&&0===t.originalevent.buttons?void e.ontouchend(t):e.isscrolling?void(e.cantap=!1):(e.newpoints=s(t),void((e.opts||e.canpan)&&e.newpoints.length&&e.newpoints.length&&(e.isswiping&&!0===e.isswiping||t.preventdefault(),e.distancex=r(e.newpoints[0],e.startpoints[0],"x"),e.distancey=r(e.newpoints[0],e.startpoints[0],"y"),e.distance=r(e.newpoints[0],e.startpoints[0]),e.distance>0&&(e.isswiping?e.onswipe(t):e.ispanning?e.onpan():e.iszooming&&e.onzoom()))))},d.prototype.onswipe=function(e){var s,r=this,a=r.instance,l=r.isswiping,c=r.sliderstartpos.left||0;if(!0!==l)"x"==l&&(r.distancex>0&&(r.instance.group.length<2||0===r.instance.current.index&&!r.instance.current.opts.loop)?c+=math.pow(r.distancex,.8):r.distancex<0&&(r.instance.group.length<2||r.instance.current.index===r.instance.group.length-1&&!r.instance.current.opts.loop)?c-=math.pow(-r.distancex,.8):c+=r.distancex),r.sliderlastpos={top:"x"==l?0:r.sliderstartpos.top+r.distancey,left:c},r.requestid&&(o(r.requestid),r.requestid=null),r.requestid=n((function(){r.sliderlastpos&&(i.each(r.instance.slides,(function(t,e){var n=e.pos-r.instance.currpos;i.fancybox.settranslate(e.$slide,{top:r.sliderlastpos.top,left:r.sliderlastpos.left+n*r.canvaswidth+n*e.opts.gutter})})),r.$container.addclass("fancybox-is-sliding"))}));else if(math.abs(r.distance)>10){if(r.cantap=!1,a.group.length<2&&r.opts.vertical?r.isswiping="y":a.isdragging||!1===r.opts.vertical||"auto"===r.opts.vertical&&i(t).width()>800?r.isswiping="x":(s=math.abs(180*math.atan2(r.distancey,r.distancex)/math.pi),r.isswiping=s>45&&s<135?"y":"x"),"y"===r.isswiping&&i.fancybox.ismobile&&r.isscrollable)return void(r.isscrolling=!0);a.isdragging=r.isswiping,r.startpoints=r.newpoints,i.each(a.slides,(function(t,e){var n,o;i.fancybox.stop(e.$slide),n=i.fancybox.gettranslate(e.$slide),o=i.fancybox.gettranslate(a.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeclass("fancybox-animated").removeclass((function(t,e){return(e.match(/(^|\s)fancybox-fx-\s+/g)||[]).join(" ")})),e.pos===a.current.pos&&(r.sliderstartpos.top=n.top-o.top,r.sliderstartpos.left=n.left-o.left),i.fancybox.settranslate(e.$slide,{top:n.top-o.top,left:n.left-o.left})})),a.slideshow&&a.slideshow.isactive&&a.slideshow.stop()}},d.prototype.onpan=function(){var t=this;r(t.newpoints[0],t.realpoints[0])<(i.fancybox.ismobile?10:5)?t.startpoints=t.newpoints:(t.cantap=!1,t.contentlastpos=t.limitmovement(),t.requestid&&o(t.requestid),t.requestid=n((function(){i.fancybox.settranslate(t.$content,t.contentlastpos)})))},d.prototype.limitmovement=function(){var t,e,i,n,o,s,r=this,a=r.canvaswidth,l=r.canvasheight,c=r.distancex,d=r.distancey,u=r.contentstartpos,h=u.left,p=u.top,f=u.width,g=u.height;return o=f>a?h+c:h,s=p+d,t=math.max(0,.5*a-.5*f),e=math.max(0,.5*l-.5*g),i=math.min(a-f,.5*a-.5*f),n=math.min(l-g,.5*l-.5*g),c>0&&o>t&&(o=t-1+math.pow(-t+h+c,.8)||0),c<0&&o0&&s>e&&(s=e-1+math.pow(-e+p+d,.8)||0),d<0&&so?t=(t=t>0?0:t)s?e=(e=e>0?0:e)1&&(n.dms>130&&r>10||r>50);n.sliderlastpos=null,"y"==t&&!e&&math.abs(n.distancey)>50?(i.fancybox.animate(n.instance.current.$slide,{top:n.sliderstartpos.top+n.distancey+150*n.velocityy,opacity:0},200),o=n.instance.close(!0,250)):a&&n.distancex>0?o=n.instance.previous(300):a&&n.distancex<0&&(o=n.instance.next(300)),!1!==o||"x"!=t&&"y"!=t||n.instance.centerslide(200),n.$container.removeclass("fancybox-is-sliding")},d.prototype.endpanning=function(){var t,e,n,o=this;o.contentlastpos&&(!1===o.opts.momentum||o.dms>350?(t=o.contentlastpos.left,e=o.contentlastpos.top):(t=o.contentlastpos.left+500*o.velocityx,e=o.contentlastpos.top+500*o.velocityy),(n=o.limitposition(t,e,o.contentstartpos.width,o.contentstartpos.height)).width=o.contentstartpos.width,n.height=o.contentstartpos.height,i.fancybox.animate(o.$content,n,366))},d.prototype.endzooming=function(){var t,e,n,o,s=this,r=s.instance.current,a=s.newwidth,l=s.newheight;s.contentlastpos&&(t=s.contentlastpos.left,o={top:e=s.contentlastpos.top,left:t,width:a,height:l,scalex:1,scaley:1},i.fancybox.settranslate(s.$content,o),ar.width||l>r.height?s.instance.scaletoactual(s.centerpointstartx,s.centerpointstarty,150):(n=s.limitposition(t,e,a,l),i.fancybox.animate(s.$content,n,150)))},d.prototype.ontap=function(e){var n,o=this,r=i(e.target),a=o.instance,l=a.current,c=e&&s(e)||o.startpoints,d=c[0]?c[0].x-i(t).scrollleft()-o.stagepos.left:0,u=c[0]?c[0].y-i(t).scrolltop()-o.stagepos.top:0,h=function(t){var n=l.opts[t];if(i.isfunction(n)&&(n=n.apply(a,[l,e])),n)switch(n){case"close":a.close(o.startevent);break;case"togglecontrols":a.togglecontrols();break;case"next":a.next();break;case"nextorclose":a.group.length>1?a.next():a.close(o.startevent);break;case"zoom":"image"==l.type&&(l.isloaded||l.$ghost)&&(a.canpan()?a.scaletofit():a.isscaleddown()?a.scaletoactual(d,u):a.group.length<2&&a.close(o.startevent))}};if((!e.originalevent||2!=e.originalevent.button)&&(r.is("img")||!(d>r[0].clientwidth+r.offset().left))){if(r.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))n="outside";else if(r.is(".fancybox-slide"))n="slide";else{if(!a.current.$content||!a.current.$content.find(r).addback().filter(r).length)return;n="content"}if(o.tapped){if(cleartimeout(o.tapped),o.tapped=null,math.abs(d-o.tapx)>50||math.abs(u-o.tapy)>50)return this;h("dblclick"+n)}else o.tapx=d,o.tapy=u,l.opts["dblclick"+n]&&l.opts["dblclick"+n]!==l.opts["click"+n]?o.tapped=settimeout((function(){o.tapped=null,a.isanimating||h("click"+n)}),500):h("click"+n);return this}},i(e).on("onactivate.fb",(function(t,e){e&&!e.guestures&&(e.guestures=new d(e))})).on("beforeclose.fb",(function(t,e){e&&e.guestures&&e.guestures.destroy()}))}(window,document,t),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btntpl:{slideshow:''},slideshow:{autostart:!1,speed:3e3,progress:!0}});var i=function(t){this.instance=t,this.init()};e.extend(i.prototype,{timer:null,isactive:!1,$button:null,init:function(){var t=this,i=t.instance,n=i.group[i.currindex].opts.slideshow;t.$button=i.$refs.toolbar.find("[data-fancybox-play]").on("click",(function(){t.toggle()})),i.group.length<2||!n?t.$button.hide():n.progress&&(t.$progress=e('
').appendto(i.$refs.inner))},set:function(t){var i=this,n=i.instance,o=n.current;o&&(!0===t||o.opts.loop||n.currindex'},fullscreen:{autostart:!1}}),e(t).on(i.fullscreenchange,(function(){var t=n.isfullscreen(),i=e.fancybox.getinstance();i&&(i.current&&"image"===i.current.type&&i.isanimating&&(i.isanimating=!1,i.update(!0,!0,0),i.iscomplete||i.complete()),i.trigger("onfullscreenchange",t),i.$refs.container.toggleclass("fancybox-is-fullscreen",t),i.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleclass("fancybox-button--fsenter",!t).toggleclass("fancybox-button--fsexit",t))}))}e(t).on({"oninit.fb":function(t,e){i?e&&e.group[e.currindex].opts.fullscreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",(function(t){t.stoppropagation(),t.preventdefault(),n.toggle()})),e.opts.fullscreen&&!0===e.opts.fullscreen.autostart&&n.request(),e.fullscreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterkeydown.fb":function(t,e,i,n,o){e&&e.fullscreen&&70===o&&(n.preventdefault(),e.fullscreen.toggle())},"beforeclose.fb":function(t,e){e&&e.fullscreen&&e.$refs.container.hasclass("fancybox-is-fullscreen")&&n.exit()}})}(document,t),function(t,e){"use strict";var i="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btntpl:{thumbs:''},thumbs:{autostart:!1,hideonclose:!0,parentel:".fancybox-container",axis:"y"}},e.fancybox.defaults);var n=function(t){this.init(t)};e.extend(n.prototype,{$button:null,$grid:null,$list:null,isvisible:!1,isactive:!1,init:function(t){var e=this,i=t.group,n=0;e.instance=t,e.opts=i[t.currindex].opts.thumbs,t.thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,s=i.length;o1));o++);n>1&&e.opts?(e.$button.removeattr("style").on("click",(function(){e.toggle()})),e.isactive=!0):e.$button.hide()},create:function(){var t,n=this,o=n.instance,s=n.opts.parentel,r=[];n.$grid||(n.$grid=e('
').appendto(o.$refs.container.find(s).addback().filter(s)),n.$grid.on("click","a",(function(){o.jumpto(e(this).attr("data-index"))}))),n.$list||(n.$list=e('
').appendto(n.$grid)),e.each(o.group,(function(e,i){(t=i.thumb)||"image"!==i.type||(t=i.src),r.push('")})),n.$list[0].innerhtml=r.join(""),"x"===n.opts.axis&&n.$list.width(parseint(n.$grid.css("padding-right"),10)+o.group.length*n.$list.children().eq(0).outerwidth(!0))},focus:function(t){var e,i,n=this,o=n.$list,s=n.$grid;n.instance.current&&(i=(e=o.children().removeclass("fancybox-thumbs-active").filter('[data-index="'+n.instance.current.index+'"]').addclass("fancybox-thumbs-active")).position(),"y"===n.opts.axis&&(i.top<0||i.top>o.height()-e.outerheight())?o.stop().animate({scrolltop:o.scrolltop()+i.top},t):"x"===n.opts.axis&&(i.lefts.scrollleft()+(s.width()-e.outerwidth()))&&o.parent().stop().animate({scrollleft:i.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleclass("fancybox-show-thumbs",this.isvisible),t.isvisible?(t.$grid||t.create(),t.instance.trigger("onthumbsshow"),t.focus(0)):t.$grid&&t.instance.trigger("onthumbshide"),t.instance.update()},hide:function(){this.isvisible=!1,this.update()},show:function(){this.isvisible=!0,this.update()},toggle:function(){this.isvisible=!this.isvisible,this.update()}}),e(t).on({"oninit.fb":function(t,e){var i;e&&!e.thumbs&&((i=new n(e)).isactive&&!0===i.opts.autostart&&i.show())},"beforeshow.fb":function(t,e,i,n){var o=e&&e.thumbs;o&&o.isvisible&&o.focus(n?0:250)},"afterkeydown.fb":function(t,e,i,n,o){var s=e&&e.thumbs;s&&s.isactive&&71===o&&(n.preventdefault(),s.toggle())},"beforeclose.fb":function(t,e){var i=e&&e.thumbs;i&&i.isvisible&&!1!==i.opts.hideonclose&&i.$grid.hide()}})}(document,t),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btntpl:{share:''},share:{url:function(t,e){return!t.currenthash&&"inline"!==e.type&&"html"!==e.type&&(e.origsrc||e.src)||window.location},tpl:''}}),e(t).on("click","[data-fancybox-share]",(function(){var t,i,n=e.fancybox.getinstance(),o=n.current||null;o&&("function"===e.type(o.opts.share.url)&&(t=o.opts.share.url.apply(o,[n,o])),i=o.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===o.type?encodeuricomponent(o.src):"").replace(/\{\{url\}\}/g,encodeuricomponent(t)).replace(/\{\{url_raw\}\}/g,function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return string(t).replace(/[&<>"'`=\/]/g,(function(t){return e[t]}))}(t)).replace(/\{\{descr\}\}/g,n.$caption?encodeuricomponent(n.$caption.text()):""),e.fancybox.open({src:n.translate(n,i),type:"html",opts:{touch:!1,animationeffect:!1,afterload:function(t,e){n.$refs.container.one("beforeclose.fb",(function(){t.close(null,0)})),e.$content.find(".fancybox-share__button").click((function(){return window.open(this.href,"share","width=550, height=450"),!1}))},mobile:{autofocus:!1}}}))}))}(document,t),function(t,e,i){"use strict";function n(){var e=t.location.hash.substr(1),i=e.split("-"),n=i.length>1&&/^\+?\d+$/.test(i[i.length-1])&&parseint(i.pop(-1),10)||1;return{hash:e,index:n<1?1:n,gallery:i.join("-")}}function o(t){""!==t.gallery&&i("[data-fancybox='"+i.escapeselector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function s(t){var e,i;return!!t&&(""!==(i=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&i)}i.escapeselector||(i.escapeselector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uffff\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charcodeat(t.length-1).tostring(16)+" ":"\\"+t}))}),i((function(){!1!==i.fancybox.defaults.hash&&(i(e).on({"oninit.fb":function(t,e){var i,o;!1!==e.group[e.currindex].opts.hash&&(i=n(),(o=s(e))&&i.gallery&&o==i.gallery&&(e.currindex=i.index-1))},"beforeshow.fb":function(i,n,o,r){var a;o&&!1!==o.opts.hash&&(a=s(n))&&(n.currenthash=a+(n.group.length>1?"-"+(o.index+1):""),t.location.hash!=="#"+n.currenthash&&(r&&!n.orighash&&(n.orighash=t.location.hash),n.hashtimer&&cleartimeout(n.hashtimer),n.hashtimer=settimeout((function(){"replacestate"in t.history?(t.history[r?"pushstate":"replacestate"]({},e.title,t.location.pathname+t.location.search+"#"+n.currenthash),r&&(n.hascreatedhistory=!0)):t.location.hash=n.currenthash,n.hashtimer=null}),300)))},"beforeclose.fb":function(i,n,o){o&&!1!==o.opts.hash&&(cleartimeout(n.hashtimer),n.currenthash&&n.hascreatedhistory?t.history.back():n.currenthash&&("replacestate"in t.history?t.history.replacestate({},e.title,t.location.pathname+t.location.search+(n.orighash||"")):t.location.hash=n.orighash),n.currenthash=null)}}),i(t).on("hashchange.fb",(function(){var t=n(),e=null;i.each(i(".fancybox-container").get().reverse(),(function(t,n){var o=i(n).data("fancybox");if(o&&o.currenthash)return e=o,!1})),e?e.currenthash===t.gallery+"-"+t.index||1===t.index&&e.currenthash==t.gallery||(e.currenthash=null,e.close()):""!==t.gallery&&o(t)})),settimeout((function(){i.fancybox.getinstance()||o(n())}),50))}))}(window,document,t),function(t,e){"use strict";var i=(new date).gettime();e(t).on({"oninit.fb":function(t,e,n){e.$refs.stage.on("mousewheel dommousescroll wheel mozmousepixelscroll",(function(t){var n=e.current,o=(new date).gettime();e.group.length<2||!1===n.opts.wheel||"auto"===n.opts.wheel&&"image"!==n.type||(t.preventdefault(),t.stoppropagation(),n.$slide.hasclass("fancybox-animated")||(t=t.originalevent||t,o-i<250||(i=o,e[(-t.deltay||-t.deltax||t.wheeldelta||-t.detail)<0?"next":"previous"]())))}))}})}(document,t)}).call(this,i(12))},25:function(t,e,i){},45:function(t,e,i){"use strict";var n="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":typeof t},o=window.device,s={},r=[];window.device=s;var a=window.document.documentelement,l=window.navigator.useragent.tolowercase(),c=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];function d(t,e){return-1!==t.indexof(e)}function u(t){return d(l,t)}function h(t){return a.classname.match(new regexp(t,"i"))}function p(t){var e=null;h(t)||(e=a.classname.replace(/^\s+|\s+$/g,""),a.classname=e+" "+t)}function f(t){h(t)&&(a.classname=a.classname.replace(" "+t,""))}function g(){s.landscape()?(f("portrait"),p("landscape"),m("landscape")):(f("landscape"),p("portrait"),m("portrait")),y()}function m(t){for(var e in r)r[e](t)}s.macos=function(){return u("mac")},s.ios=function(){return s.iphone()||s.ipod()||s.ipad()},s.iphone=function(){return!s.windows()&&u("iphone")},s.ipod=function(){return u("ipod")},s.ipad=function(){return u("ipad")},s.android=function(){return!s.windows()&&u("android")},s.androidphone=function(){return s.android()&&u("mobile")},s.androidtablet=function(){return s.android()&&!u("mobile")},s.blackberry=function(){return u("blackberry")||u("bb10")||u("rim")},s.blackberryphone=function(){return s.blackberry()&&!u("tablet")},s.blackberrytablet=function(){return s.blackberry()&&u("tablet")},s.windows=function(){return u("windows")},s.windowsphone=function(){return s.windows()&&u("phone")},s.windowstablet=function(){return s.windows()&&u("touch")&&!s.windowsphone()},s.fxos=function(){return(u("(mobile")||u("(tablet"))&&u(" rv:")},s.fxosphone=function(){return s.fxos()&&u("mobile")},s.fxostablet=function(){return s.fxos()&&u("tablet")},s.meego=function(){return u("meego")},s.cordova=function(){return window.cordova&&"file:"===location.protocol},s.nodewebkit=function(){return"object"===n(window.process)},s.mobile=function(){return s.androidphone()||s.iphone()||s.ipod()||s.windowsphone()||s.blackberryphone()||s.fxosphone()||s.meego()},s.tablet=function(){return s.ipad()||s.androidtablet()||s.blackberrytablet()||s.windowstablet()||s.fxostablet()},s.desktop=function(){return!s.tablet()&&!s.mobile()},s.television=function(){for(var t=0;t1},s.landscape=function(){return screen.orientation&&object.prototype.hasownproperty.call(window,"onorientationchange")?d(screen.orientation.type,"landscape"):s.ios()&&object.prototype.hasownproperty.call(window,"orientation")?90===math.abs(window.orientation):window.innerheight/window.innerwidth<1},s.noconflict=function(){return window.device=o,this},s.ios()?s.ipad()?p("ios ipad tablet"):s.iphone()?p("ios iphone mobile"):s.ipod()&&p("ios ipod mobile"):s.macos()?p("macos desktop"):s.android()?s.androidtablet()?p("android tablet"):p("android mobile"):s.blackberry()?s.blackberrytablet()?p("blackberry tablet"):p("blackberry mobile"):s.windows()?s.windowstablet()?p("windows tablet"):s.windowsphone()?p("windows mobile"):p("windows desktop"):s.fxos()?s.fxostablet()?p("fxos tablet"):p("fxos mobile"):s.meego()?p("meego mobile"):s.nodewebkit()?p("node-webkit"):s.television()?p("television"):s.desktop()&&p("desktop"),s.cordova()&&p("cordova"),s.onchangeorientation=function(t){"function"==typeof t&&r.push(t)};var v="resize";function b(t){for(var e=0;e=c?t?"":void 0:(s=a.charcodeat(l))<55296||s>56319||l+1===c||(r=a.charcodeat(l+1))<56320||r>57343?t?a.charat(l):s:t?a.slice(l,l+2):r-56320+(s-55296<<10)+65536}}},"0390":function(t,e,i){"use strict";var n=i("02f4")(!0);t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},"07e3":function(t,e){var i={}.hasownproperty;t.exports=function(t,e){return i.call(t,e)}},"0a90":function(t,e,i){var n=i("63b6"),o=i("10ff");n(n.g+n.f*(parsefloat!=o),{parsefloat:o})},"0bfb":function(t,e,i){"use strict";var n=i("cb7c");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignorecase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"10ff":function(t,e,i){var n=i("e53d").parsefloat,o=i("a1ce").trim;t.exports=1/n(i("e692")+"-0")!=-1/0?function(t){var e=o(string(t),3),i=n(e);return 0===i&&"-"==e.charat(0)?-0:i}:n},"1bc3":function(t,e,i){var n=i("f772");t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.tostring)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueof)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.tostring)&&!n(o=i.call(t)))return o;throw typeerror("can't convert object to primitive value")}},"1ec9":function(t,e,i){var n=i("f772"),o=i("e53d").document,s=n(o)&&n(o.createelement);t.exports=function(t){return s?o.createelement(t):{}}},"214f":function(t,e,i){"use strict";i("b0c5");var n=i("2aba"),o=i("32e9"),s=i("79e5"),r=i("be13"),a=i("2b4c"),l=i("520a"),c=a("species"),d=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),u=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();t.exports=function(t,e,i){var h=a(t),p=!s((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),f=p?!s((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[c]=function(){return i}),i[h](""),!e})):void 0;if(!p||!f||"replace"===t&&!d||"split"===t&&!u){var g=/./[h],m=i(r,h,""[t],(function(t,e,i,n,o){return e.exec===l?p&&!o?{done:!0,value:g.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),v=m[0],b=m[1];n(string.prototype,t,v),o(regexp.prototype,h,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,i){var n=i("d3f4"),o=i("7726").document,s=n(o)&&n(o.createelement);t.exports=function(t){return s?o.createelement(t):{}}},"23c6":function(t,e,i){var n=i("2d95"),o=i("2b4c")("tostringtag"),s="arguments"==n(function(){return arguments}());t.exports=function(t){var e,i,r;return void 0===t?"undefined":null===t?"null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=object(t),o))?i:s?n(e):"object"==(r=n(e))&&"function"==typeof e.callee?"arguments":r}},"25eb":function(t,e){t.exports=function(t){if(null==t)throw typeerror("can't call method on "+t);return t}},"28a5":function(t,e,i){"use strict";var n=i("aae3"),o=i("cb7c"),s=i("ebd6"),r=i("0390"),a=i("9def"),l=i("5f1b"),c=i("520a"),d=i("79e5"),u=math.min,h=[].push,p="split",f="length",g="lastindex",m=4294967295,v=!d((function(){regexp(m,"y")}));i("214f")("split",2,(function(t,e,i,d){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[f]||2!="ab"[p](/(?:ab)*/)[f]||4!="."[p](/(.?)(.?)/)[f]||"."[p](/()()/)[f]>1||""[p](/.?/)[f]?function(t,e){var o=string(this);if(void 0===t&&0===e)return[];if(!n(t))return i.call(o,t,e);for(var s,r,a,l=[],d=(t.ignorecase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),u=0,p=void 0===e?m:e>>>0,v=new regexp(t.source,d+"g");(s=c.call(v,o))&&!((r=v[g])>u&&(l.push(o.slice(u,s.index)),s[f]>1&&s.index=p));)v[g]===s.index&&v[g]++;return u===o[f]?!a&&v.test("")||l.push(""):l.push(o.slice(u)),l[f]>p?l.slice(0,p):l}:"0"[p](void 0,0)[f]?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var o=t(this),s=null==i?void 0:i[e];return void 0!==s?s.call(i,o,n):b.call(string(o),i,n)},function(t,e){var n=d(b,t,this,e,b!==i);if(n.done)return n.value;var c=o(t),h=string(this),p=s(c,regexp),f=c.unicode,g=(c.ignorecase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),y=new p(v?c:"^(?:"+c.source+")",g),w=void 0===e?m:e>>>0;if(0===w)return[];if(0===h.length)return null===l(y,h)?[h]:[];for(var x=0,_=0,t=[];_0?n:i)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"520a":function(t,e,i){"use strict";var n=i("0bfb"),o=regexp.prototype.exec,s=string.prototype.replace,r=o,a="lastindex",l=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t[a]||0!==e[a]}(),c=void 0!==/()??/.exec("")[1];(l||c)&&(r=function(t){var e,i,r,d,u=this;return c&&(i=new regexp("^"+u.source+"$(?!\\s)",n.call(u))),l&&(e=u[a]),r=o.call(u,t),l&&r&&(u[a]=u.global?r.index+r[0].length:e),c&&r&&r.length>1&&s.call(r[0],i,(function(){for(d=1;d0?o(n(t),9007199254740991):0}},"9e1e":function(t,e,i){t.exports=!i("79e5")((function(){return 7!=object.defineproperty({},"a",{get:function(){return 7}}).a}))},a1ce:function(t,e,i){var n=i("63b6"),o=i("25eb"),s=i("294c"),r=i("e692"),a="["+r+"]",l=regexp("^"+a+a+"*"),c=regexp(a+a+"*$"),d=function(t,e,i){var o={},a=s((function(){return!!r[t]()||"​…"!="​…"[t]()})),l=o[t]=a?e(u):r[t];i&&(o[i]=l),n(n.p+n.f*a,"string",o)},u=d.trim=function(t,e){return t=string(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=d},aae3:function(t,e,i){var n=i("d3f4"),o=i("2d95"),s=i("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[s])?!!e:"regexp"==o(t))}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,i){"use strict";var n=i("520a");i("5ca1")({target:"regexp",proto:!0,forced:n!==/./.exec},{exec:n})},be13:function(t,e){t.exports=function(t){if(null==t)throw typeerror("can't call method on "+t);return t}},c69a:function(t,e,i){t.exports=!i("9e1e")&&!i("79e5")((function(){return 7!=object.defineproperty(i("230e")("div"),"a",{get:function(){return 7}}).a}))},ca5a:function(t,e){var i=0,n=math.random();t.exports=function(t){return"symbol(".concat(void 0===t?"":t,")_",(++i+n).tostring(36))}},cb7c:function(t,e,i){var n=i("d3f4");t.exports=function(t){if(!n(t))throw typeerror(t+" is not an object!");return t}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d864:function(t,e,i){var n=i("79aa");t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw typeerror(t+" is not a function!");return t}},d9f6:function(t,e,i){var n=i("e4ae"),o=i("794b"),s=i("1bc3"),r=object.defineproperty;e.f=i("8e60")?object.defineproperty:function(t,e,i){if(n(t),e=s(e,!0),n(i),o)try{return r(t,e,i)}catch(t){}if("get"in i||"set"in i)throw typeerror("accessors not supported!");return"value"in i&&(t[e]=i.value),t}},e4ae:function(t,e,i){var n=i("f772");t.exports=function(t){if(!n(t))throw typeerror(t+" is not an object!");return t}},e53d:function(t,e){var i=t.exports="undefined"!=typeof window&&window.math==math?window:"undefined"!=typeof self&&self.math==math?self:function("return this")();"number"==typeof __g&&(__g=i)},e692:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},ebd6:function(t,e,i){var n=i("cb7c"),o=i("d8e8"),s=i("2b4c")("species");t.exports=function(t,e){var i,r=n(t).constructor;return void 0===r||null==(i=n(r)[s])?e:o(i)}},f1de:function(t,e,i){t.exports=function(){"use strict";var t="undefined"==typeof document?{body:{},addeventlistener:function(){},removeeventlistener:function(){},activeelement:{blur:function(){},nodename:""},queryselector:function(){return null},queryselectorall:function(){return[]},getelementbyid:function(){return null},createevent:function(){return{initevent:function(){}}},createelement:function(){return{children:[],childnodes:[],style:{},setattribute:function(){},getelementsbytagname:function(){return[]}}},location:{hash:""}}:document,e="undefined"==typeof window?{document:t,navigator:{useragent:""},location:{},history:{},customevent:function(){return this},addeventlistener:function(){},removeeventlistener:function(){},getcomputedstyle:function(){return{getpropertyvalue:function(){return""}}},image:function(){},date:function(){},screen:{},settimeout:function(){},cleartimeout:function(){}}:window,i=function(t){for(var e=0;e")){var d="div";for(0===c.indexof(":~]/)?(o||t).queryselectorall(n.trim()):[t.getelementbyid(n.trim().split("#")[1])],r=0;r0&&e-1 in t)}t.fn=t.prototype={jquery:"3.4.1",constructor:t,length:0,toarray:function(){return l.call(this)},get:function(t){return null==t?l.call(this):t<0?this[t+this.length]:this[t]},pushstack:function(t){var e=t.merge(this.constructor(),t);return e.prevobject=this,e},each:function(t){return t.each(this,t)},map:function(t){return this.pushstack(t.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushstack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushstack(i>=0&&i+~]|"+f+")"+f+"*"),y=new regexp(f+"|>"),v=new regexp(j),w=new regexp("^"+h+"$"),g={id:new regexp("^#("+h+")"),class:new regexp("^\\.("+h+")"),tag:new regexp("^("+h+"|[*])"),attr:new regexp("^"+n),pseudo:new regexp("^"+j),child:new regexp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:new regexp("^(?:"+d+")$","i"),needscontext:new regexp("^"+f+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+f+"*((?:-\\d)?\\d*)"+f+"*\\)|)(?=[^-]|$)","i")},u=/html$/i,k=/^(?:input|select|textarea|button)$/i,z=/^h\d$/i,q=/^[^{]+\{\s*\[native \w/,j=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new regexp("\\\\([\\da-f]{1,6}"+f+"?|("+f+")|.)","ig"),it=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?string.fromcharcode(n+65536):string.fromcharcode(n>>10|55296,1023&n|56320)},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uffff\w-]/g,ot=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charcodeat(t.length-1).tostring(16)+" ":"\\"+t},st=function(){h()},rt=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodename.tolowercase()}),{dir:"parentnode",next:"legend"});try{z.apply(m=a.call(x.childnodes),x.childnodes),m[x.childnodes.length].nodetype}catch(t){z={apply:m.length?function(t,e){i.apply(t,a.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function at(t,e,n,o){var s,a,c,d,u,f,v,b=e&&e.ownerdocument,_=e?e.nodetype:9;if(n=n||[],"string"!=typeof t||!t||1!==_&&9!==_&&11!==_)return n;if(!o&&((e?e.ownerdocument||e:x)!==p&&h(e),e=e||p,g)){if(11!==_&&(u=j.exec(t)))if(s=u[1]){if(9===_){if(!(c=e.getelementbyid(s)))return n;if(c.id===s)return n.push(c),n}else if(b&&(c=b.getelementbyid(s))&&y(e,c)&&c.id===s)return n.push(c),n}else{if(u[2])return z.apply(n,e.getelementsbytagname(t)),n;if((s=u[3])&&i.getelementsbyclassname&&e.getelementsbyclassname)return z.apply(n,e.getelementsbyclassname(s)),n}if(i.qsa&&!$[t+" "]&&(!m||!m.test(t))&&(1!==_||"object"!==e.nodename.tolowercase())){if(v=t,b=e,1===_&&y.test(t)){for((d=e.getattribute("id"))?d=d.replace(nt,ot):e.setattribute("id",d=w),a=(f=r(t)).length;a--;)f[a]="#"+d+" "+yt(f[a]);v=f.join(","),b=tt.test(t)&&vt(e.parentnode)||e}try{return z.apply(n,b.queryselectorall(v)),n}catch(e){$(t,!0)}finally{d===w&&e.removeattribute("id")}}}return l(t.replace(b,"$1"),e,n,o)}function lt(){var t=[];return function e(i,o){return t.push(i+" ")>n.cachelength&&delete e[t.shift()],e[i+" "]=o}}function ct(t){return t[w]=!0,t}function dt(t){var e=p.createelement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentnode&&e.parentnode.removechild(e),e=null}}function ut(t,e){for(var i=t.split("|"),o=i.length;o--;)n.attrhandle[i[o]]=e}function ht(t,e){var i=e&&t,n=i&&1===t.nodetype&&1===e.nodetype&&t.sourceindex-e.sourceindex;if(n)return n;if(i)for(;i=i.nextsibling;)if(i===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodename.tolowercase()&&e.type===t}}function ft(t){return function(e){var i=e.nodename.tolowercase();return("input"===i||"button"===i)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentnode&&!1===e.disabled?"label"in e?"label"in e.parentnode?e.parentnode.disabled===t:e.disabled===t:e.isdisabled===t||e.isdisabled!==!t&&rt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ct((function(e){return e=+e,ct((function(i,n){for(var o,s=t([],i.length,e),r=s.length;r--;)i[o=s[r]]&&(i[o]=!(n[o]=i[o]))}))}))}function vt(t){return t&&void 0!==t.getelementsbytagname&&t}for(e in i=at.support={},s=at.isxml=function(t){var e=t.namespaceuri,i=(t.ownerdocument||t).documentelement;return!u.test(e||i&&i.nodename||"html")},h=at.setdocument=function(t){var e,o,r=t?t.ownerdocument||t:x;return r!==p&&9===r.nodetype&&r.documentelement?(f=(p=r).documentelement,g=!s(p),x!==p&&(o=p.defaultview)&&o.top!==o&&(o.addeventlistener?o.addeventlistener("unload",st,!1):o.attachevent&&o.attachevent("onunload",st)),i.attributes=dt((function(t){return t.classname="i",!t.getattribute("classname")})),i.getelementsbytagname=dt((function(t){return t.appendchild(p.createcomment("")),!t.getelementsbytagname("*").length})),i.getelementsbyclassname=q.test(p.getelementsbyclassname),i.getbyid=dt((function(t){return f.appendchild(t).id=w,!p.getelementsbyname||!p.getelementsbyname(w).length})),i.getbyid?(n.filter.id=function(t){var e=t.replace(et,it);return function(t){return t.getattribute("id")===e}},n.find.id=function(t,e){if(void 0!==e.getelementbyid&&g){var i=e.getelementbyid(t);return i?[i]:[]}}):(n.filter.id=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getattributenode&&t.getattributenode("id");return i&&i.value===e}},n.find.id=function(t,e){if(void 0!==e.getelementbyid&&g){var i,n,o,s=e.getelementbyid(t);if(s){if((i=s.getattributenode("id"))&&i.value===t)return[s];for(o=e.getelementsbyname(t),n=0;s=o[n++];)if((i=s.getattributenode("id"))&&i.value===t)return[s]}return[]}}),n.find.tag=i.getelementsbytagname?function(t,e){return void 0!==e.getelementsbytagname?e.getelementsbytagname(t):i.qsa?e.queryselectorall(t):void 0}:function(t,e){var i,n=[],o=0,s=e.getelementsbytagname(t);if("*"===t){for(;i=s[o++];)1===i.nodetype&&n.push(i);return n}return s},n.find.class=i.getelementsbyclassname&&function(t,e){if(void 0!==e.getelementsbyclassname&&g)return e.getelementsbyclassname(t)},v=[],m=[],(i.qsa=q.test(p.queryselectorall))&&(dt((function(t){f.appendchild(t).innerhtml="",t.queryselectorall("[msallowcapture^='']").length&&m.push("[*^$]="+f+"*(?:''|\"\")"),t.queryselectorall("[selected]").length||m.push("\\["+f+"*(?:value|"+d+")"),t.queryselectorall("[id~="+w+"-]").length||m.push("~="),t.queryselectorall(":checked").length||m.push(":checked"),t.queryselectorall("a#"+w+"+*").length||m.push(".#.+[+~]")})),dt((function(t){t.innerhtml="";var e=p.createelement("input");e.setattribute("type","hidden"),t.appendchild(e).setattribute("name","d"),t.queryselectorall("[name=d]").length&&m.push("name"+f+"*[*^$|!~]?="),2!==t.queryselectorall(":enabled").length&&m.push(":enabled",":disabled"),f.appendchild(t).disabled=!0,2!==t.queryselectorall(":disabled").length&&m.push(":enabled",":disabled"),t.queryselectorall("*,:x"),m.push(",.*:")}))),(i.matchesselector=q.test(b=f.matches||f.webkitmatchesselector||f.mozmatchesselector||f.omatchesselector||f.msmatchesselector))&&dt((function(t){i.disconnectedmatch=b.call(t,"*"),b.call(t,"[s!='']:x"),v.push("!=",j)})),m=m.length&&new regexp(m.join("|")),v=v.length&&new regexp(v.join("|")),e=q.test(f.comparedocumentposition),y=e||q.test(f.contains)?function(t,e){var i=9===t.nodetype?t.documentelement:t,n=e&&e.parentnode;return t===n||!(!n||1!==n.nodetype||!(i.contains?i.contains(n):t.comparedocumentposition&&16&t.comparedocumentposition(n)))}:function(t,e){if(e)for(;e=e.parentnode;)if(e===t)return!0;return!1},p=e?function(t,e){if(t===e)return u=!0,0;var n=!t.comparedocumentposition-!e.comparedocumentposition;return n||(1&(n=(t.ownerdocument||t)===(e.ownerdocument||e)?t.comparedocumentposition(e):1)||!i.sortdetached&&e.comparedocumentposition(t)===n?t===p||t.ownerdocument===x&&y(x,t)?-1:e===p||e.ownerdocument===x&&y(x,e)?1:d?o(d,t)-o(d,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,n=0,o=t.parentnode,s=e.parentnode,r=[t],a=[e];if(!o||!s)return t===p?-1:e===p?1:o?-1:s?1:d?o(d,t)-o(d,e):0;if(o===s)return ht(t,e);for(i=t;i=i.parentnode;)r.unshift(i);for(i=e;i=i.parentnode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?ht(r[n],a[n]):r[n]===x?-1:a[n]===x?1:0},p):p},at.matches=function(t,e){return at(t,null,null,e)},at.matchesselector=function(t,e){if((t.ownerdocument||t)!==p&&h(t),i.matchesselector&&g&&!$[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var n=b.call(t,e);if(n||i.disconnectedmatch||t.document&&11!==t.document.nodetype)return n}catch(t){$(e,!0)}return at(e,p,null,[t]).length>0},at.contains=function(t,e){return(t.ownerdocument||t)!==p&&h(t),y(t,e)},at.attr=function(t,e){(t.ownerdocument||t)!==p&&h(t);var o=n.attrhandle[e.tolowercase()],s=o&&k.call(n.attrhandle,e.tolowercase())?o(t,e,!g):void 0;return void 0!==s?s:i.attributes||!g?t.getattribute(e):(s=t.getattributenode(e))&&s.specified?s.value:null},at.escape=function(t){return(t+"").replace(nt,ot)},at.error=function(t){throw new error("syntax error, unrecognized expression: "+t)},at.uniquesort=function(t){var e,n=[],o=0,s=0;if(u=!i.detectduplicates,d=!i.sortstable&&t.slice(0),t.sort(p),u){for(;e=t[s++];)e===t[s]&&(o=n.push(s));for(;o--;)t.splice(n[o],1)}return d=null,t},o=at.gettext=function(t){var e,i="",n=0,s=t.nodetype;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textcontent)return t.textcontent;for(t=t.firstchild;t;t=t.nextsibling)i+=o(t)}else if(3===s||4===s)return t.nodevalue}else for(;e=t[n++];)i+=o(e);return i},(n=at.selectors={cachelength:50,createpseudo:ct,match:g,attrhandle:{},find:{},relative:{">":{dir:"parentnode",first:!0}," ":{dir:"parentnode"},"+":{dir:"previoussibling",first:!0},"~":{dir:"previoussibling"}},prefilter:{attr:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},child:function(t){return t[1]=t[1].tolowercase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},pseudo:function(t){var e,i=!t[6]&&t[2];return g.child.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&v.test(i)&&(e=r(i,!0))&&(e=i.indexof(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{tag:function(t){var e=t.replace(et,it).tolowercase();return"*"===t?function(){return!0}:function(t){return t.nodename&&t.nodename.tolowercase()===e}},class:function(t){var e=c[t+" "];return e||(e=new regexp("(^|"+f+")"+t+"("+f+"|$)"))&&c(t,(function(t){return e.test("string"==typeof t.classname&&t.classname||void 0!==t.getattribute&&t.getattribute("class")||"")}))},attr:function(t,e,i){return function(n){var o=at.attr(n,t);return null==o?"!="===e:!e||(o+="","="===e?o===i:"!="===e?o!==i:"^="===e?i&&0===o.indexof(i):"*="===e?i&&o.indexof(i)>-1:"$="===e?i&&o.slice(-i.length)===i:"~="===e?(" "+o.replace(r," ")+" ").indexof(i)>-1:"|="===e&&(o===i||o.slice(0,i.length+1)===i+"-"))}},child:function(t,e,i,n,o){var s="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===o?function(t){return!!t.parentnode}:function(e,i,l){var c,d,u,h,p,f,g=s!==r?"nextsibling":"previoussibling",m=e.parentnode,v=a&&e.nodename.tolowercase(),b=!l&&!a,y=!1;if(m){if(s){for(;g;){for(h=e;h=h[g];)if(a?h.nodename.tolowercase()===v:1===h.nodetype)return!1;f=g="only"===t&&!f&&"nextsibling"}return!0}if(f=[r?m.firstchild:m.lastchild],r&&b){for(y=(p=(c=(d=(u=(h=m)[w]||(h[w]={}))[h.uniqueid]||(u[h.uniqueid]={}))[t]||[])[0]===_&&c[1])&&c[2],h=p&&m.childnodes[p];h=++p&&h&&h[g]||(y=p=0)||f.pop();)if(1===h.nodetype&&++y&&h===e){d[t]=[_,p,y];break}}else if(b&&(y=p=(c=(d=(u=(h=e)[w]||(h[w]={}))[h.uniqueid]||(u[h.uniqueid]={}))[t]||[])[0]===_&&c[1]),!1===y)for(;(h=++p&&h&&h[g]||(y=p=0)||f.pop())&&((a?h.nodename.tolowercase()!==v:1!==h.nodetype)||!++y||(b&&((d=(u=h[w]||(h[w]={}))[h.uniqueid]||(u[h.uniqueid]={}))[t]=[_,y]),h!==e)););return(y-=o)===n||y%n==0&&y/n>=0}}},pseudo:function(t,e){var i,o=n.pseudos[t]||n.setfilters[t.tolowercase()]||at.error("unsupported pseudo: "+t);return o[w]?o(e):o.length>1?(i=[t,t,"",e],n.setfilters.hasownproperty(t.tolowercase())?ct((function(t,i){for(var n,s=o(t,e),r=s.length;r--;)t[n=o(t,s[r])]=!(i[n]=s[r])})):function(t){return o(t,0,i)}):o}},pseudos:{not:ct((function(t){var e=[],i=[],n=a(t.replace(b,"$1"));return n[w]?ct((function(t,e,i,o){for(var s,r=n(t,null,o,[]),a=t.length;a--;)(s=r[a])&&(t[a]=!(e[a]=s))})):function(t,o,s){return e[0]=t,n(e,null,s,i),e[0]=null,!i.pop()}})),has:ct((function(t){return function(e){return at(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,it),function(e){return(e.textcontent||o(e)).indexof(t)>-1}})),lang:ct((function(t){return w.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,it).tolowercase(),function(e){var i;do{if(i=g?e.lang:e.getattribute("xml:lang")||e.getattribute("lang"))return(i=i.tolowercase())===t||0===i.indexof(t+"-")}while((e=e.parentnode)&&1===e.nodetype);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeelement&&(!p.hasfocus||p.hasfocus())&&!!(t.type||t.href||~t.tabindex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodename.tolowercase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentnode&&t.parentnode.selectedindex,!0===t.selected},empty:function(t){for(t=t.firstchild;t;t=t.nextsibling)if(t.nodetype<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return z.test(t.nodename)},input:function(t){return k.test(t.nodename)},button:function(t){var e=t.nodename.tolowercase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodename.tolowercase()&&"text"===t.type&&(null==(e=t.getattribute("type"))||"text"===e.tolowercase())},first:mt((function(){return[0]})),last:mt((function(t,e){return[e-1]})),eq:mt((function(t,e,i){return[i<0?i+e:i]})),even:mt((function(t,e){for(var i=0;ie?e:i;--n>=0;)t.push(n);return t})),gt:mt((function(t,e,i){for(var n=i<0?i+e:i;++n1?function(e,i,n){for(var o=t.length;o--;)if(!t[o](e,i,n))return!1;return!0}:t[0]}function _t(t,e,i,n,o){for(var s,r=[],a=0,l=t.length,c=null!=e;a-1&&(s[c]=!(r[c]=u))}}else v=_t(v===r?v.splice(f,v.length):v),o?o(null,r,v,l):z.apply(r,v)}))}function ct(t){for(var e,i,o,s=t.length,r=n.relative[t[0].type],a=r||n.relative[" "],l=r?1:0,d=wt((function(t){return t===e}),a,!0),u=wt((function(t){return o(e,t)>-1}),a,!0),h=[function(t,i,n){var o=!r&&(n||i!==c)||((e=i).nodetype?d(t,i,n):u(t,i,n));return e=null,o}];l1&&xt(h),l>1&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(b,"$1"),i,l0,o=t.length>0,s=function(s,r,a,l,d){var u,f,m,v=0,b="0",y=s&&[],w=[],x=c,t=s||o&&n.find.tag("*",d),c=_+=null==x?1:math.random()||.1,s=t.length;for(d&&(c=r===p||r||d);b!==s&&null!=(u=t[b]);b++){if(o&&u){for(f=0,r||u.ownerdocument===p||(h(u),a=!g);m=t[f++];)if(m(u,r||p,a)){l.push(u);break}d&&(_=c)}i&&((u=!m&&u)&&v--,s&&y.push(u))}if(v+=b,i&&b!==v){for(f=0;m=e[f++];)m(y,w,r,a);if(s){if(v>0)for(;b--;)y[b]||w[b]||(w[b]=l.call(l));w=_t(w)}z.apply(l,w),d&&!s&&w.length>0&&v+e.length>1&&at.uniquesort(l)}return d&&(_=c,c=x),y};return i?ct(s):s}(s,o))).selector=t}return a},l=at.select=function(t,e,i,o){var s,l,c,d,u,h="function"==typeof t&&t,p=!o&&r(t=h.selector||t);if(i=i||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"id"===(c=l[0]).type&&9===e.nodetype&&g&&n.relative[l[1].type]){if(!(e=(n.find.id(c.matches[0].replace(et,it),e)||[])[0]))return i;h&&(e=e.parentnode),t=t.slice(l.shift().value.length)}for(s=g.needscontext.test(t)?0:l.length;s--&&(c=l[s],!n.relative[d=c.type]);)if((u=n.find[d])&&(o=u(c.matches[0].replace(et,it),tt.test(l[0].type)&&vt(e.parentnode)||e))){if(l.splice(s,1),!(t=o.length&&yt(l)))return z.apply(i,o),i;break}}return(h||a(t,p))(o,e,!g,i,!e||tt.test(t)&&vt(e.parentnode)||e),i},i.sortstable=w.split("").sort(p).join("")===w,i.detectduplicates=!!u,h(),i.sortdetached=dt((function(t){return 1&t.comparedocumentposition(p.createelement("fieldset"))})),dt((function(t){return t.innerhtml="","#"===t.firstchild.getattribute("href")}))||ut("type|href|height|width",(function(t,e,i){if(!i)return t.getattribute(e,"type"===e.tolowercase()?1:2)})),i.attributes&&dt((function(t){return t.innerhtml="",t.firstchild.setattribute("value",""),""===t.firstchild.getattribute("value")}))||ut("value",(function(t,e,i){if(!i&&"input"===t.nodename.tolowercase())return t.defaultvalue})),dt((function(t){return null==t.getattribute("disabled")}))||ut(d,(function(t,e,i){var n;if(!i)return!0===t[e]?e.tolowercase():(n=t.getattributenode(e))&&n.specified?n.value:null})),at}(i);t.find=e,t.expr=e.selectors,t.expr[":"]=t.expr.pseudos,t.uniquesort=t.unique=e.uniquesort,t.text=e.gettext,t.isxmldoc=e.isxml,t.contains=e.contains,t.escapeselector=e.escape;var $=function(t,e,i){for(var n=[],o=void 0!==i;(t=t[e])&&9!==t.nodetype;)if(1===t.nodetype){if(o&&t(t).is(i))break;n.push(t)}return n},p=function(t,e){for(var i=[];t;t=t.nextsibling)1===t.nodetype&&t!==e&&i.push(t);return i},k=t.expr.match.needscontext;function m(t,e){return t.nodename&&t.nodename.tolowercase()===e.tolowercase()}var l=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function i(t,e,i){return b(e)?t.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodetype?t.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?t.grep(t,(function(t){return u.call(e,t)>-1!==i})):t.filter(e,t,i)}t.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodetype?t.find.matchesselector(n,t)?[n]:[]:t.find.matches(t,t.grep(e,(function(t){return 1===t.nodetype})))},t.fn.extend({find:function(t){var e,i,n=this.length,o=this;if("string"!=typeof t)return this.pushstack(t(t).filter((function(){for(e=0;e1?t.uniquesort(i):i},filter:function(t){return this.pushstack(i(this,t||[],!1))},not:function(t){return this.pushstack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&k.test(t)?t(t):t||[],!1).length}});var z,a=/^(?:\s*(<[\w\w]+>)[^>]*|#([\w-]+))$/;(t.fn.init=function(t,e,i){var n,o;if(!t)return this;if(i=i||z,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:a.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof t?e[0]:e,t.merge(this,t.parsehtml(n[1],e&&e.nodetype?e.ownerdocument||e:r,!0)),l.test(n[1])&&t.isplainobject(e))for(n in e)b(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(o=r.getelementbyid(n[2]))&&(this[0]=o,this.length=1),this}return t.nodetype?(this[0]=t,this.length=1,this):b(t)?void 0!==i.ready?i.ready(t):t(t):t.makearray(t,this)}).prototype=t.fn,z=t(r);var o=/^(?:parents|prev(?:until|all))/,d={children:!0,contents:!0,next:!0,prev:!0};function f(t,e){for(;(t=t[e])&&1!==t.nodetype;);return t}t.fn.extend({has:function(t){var e=t(t,this),i=e.length;return this.filter((function(){for(var t=0;t-1:1===i.nodetype&&t.find.matchesselector(i,t))){s.push(i);break}return this.pushstack(s.length>1?t.uniquesort(s):s)},index:function(t){return t?"string"==typeof t?u.call(t(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentnode?this.first().prevall().length:-1},add:function(t,e){return this.pushstack(t.uniquesort(t.merge(this.get(),t(t,e))))},addback:function(t){return this.add(null==t?this.prevobject:this.prevobject.filter(t))}}),t.each({parent:function(t){var e=t.parentnode;return e&&11!==e.nodetype?e:null},parents:function(t){return $(t,"parentnode")},parentsuntil:function(t,e,i){return $(t,"parentnode",i)},next:function(t){return f(t,"nextsibling")},prev:function(t){return f(t,"previoussibling")},nextall:function(t){return $(t,"nextsibling")},prevall:function(t){return $(t,"previoussibling")},nextuntil:function(t,e,i){return $(t,"nextsibling",i)},prevuntil:function(t,e,i){return $(t,"previoussibling",i)},siblings:function(t){return p((t.parentnode||{}).firstchild,t)},children:function(t){return p(t.firstchild)},contents:function(t){return void 0!==t.contentdocument?t.contentdocument:(m(t,"template")&&(t=t.content||t),t.merge([],t.childnodes))}},(function(t,e){t.fn[t]=function(i,n){var o=t.map(this,e,i);return"until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=t.filter(n,o)),this.length>1&&(d[t]||t.uniquesort(o),o.test(t)&&o.reverse()),this.pushstack(o)}}));var h=/[^\x20\t\r\n\f]+/g;function n(t){return t}function j(t){throw t}function r(t,e,i,n){var o;try{t&&b(o=t.promise)?o.call(t).done(e).fail(i):t&&b(o=t.then)?o.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}t.callbacks=function(t){t="string"==typeof t?function(t){var e={};return t.each(t.match(h)||[],(function(t,i){e[i]=!0})),e}(t):t.extend({},t);var e,i,n,o,s=[],r=[],a=-1,l=function(){for(o=o||t.once,n=e=!0;r.length;a=-1)for(i=r.shift();++a-1;)s.splice(i,1),i<=a&&a--})),this},has:function(t){return t?t.inarray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=r=[],s=i="",this},disabled:function(){return!s},lock:function(){return o=r=[],i||e||(s=i=""),this},locked:function(){return!!o},firewith:function(t,i){return o||(i=[t,(i=i||[]).slice?i.slice():i],r.push(i),e||l()),this},fire:function(){return c.firewith(this,arguments),this},fired:function(){return!!n}};return c},t.extend({deferred:function(t){var e=[["notify","progress",t.callbacks("memory"),t.callbacks("memory"),2],["resolve","done",t.callbacks("once memory"),t.callbacks("once memory"),0,"resolved"],["reject","fail",t.callbacks("once memory"),t.callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return t.deferred((function(i){t.each(e,(function(e,n){var o=b(t[n[4]])&&t[n[4]];s[n[1]]((function(){var t=o&&o.apply(this,arguments);t&&b(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"with"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,o){var s=0;function r(t,e,n,o){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(t=s&&(n!==j&&(a=void 0,l=[i]),e.rejectwith(a,l))}};t?d():(t.deferred.getstackhook&&(d.stacktrace=t.deferred.getstackhook()),i.settimeout(d))}}return t.deferred((function(i){e[0][3].add(r(0,i,b(o)?o:n,i.notifywith)),e[1][3].add(r(0,i,b(t)?t:n)),e[2][3].add(r(0,i,b(n)?n:j))})).promise()},promise:function(t){return null!=t?t.extend(t,o):o}},s={};return t.each(e,(function(t,i){var r=i[2],a=i[5];o[i[1]]=r.add,a&&r.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),r.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"with"](this===s?void 0:this,arguments),this},s[i[0]+"with"]=r.firewith})),o.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,i=e,n=array(i),o=l.call(arguments),s=t.deferred(),r=function(t){return function(i){n[t]=this,o[t]=arguments.length>1?l.call(arguments):i,--e||s.resolvewith(n,o)}};if(e<=1&&(r(t,s.done(r(i)).resolve,s.reject,!e),"pending"===s.state()||b(o[i]&&o[i].then)))return s.then();for(;i--;)r(o[i],r(i),s.reject);return s.promise()}});var b=/^(eval|internal|range|reference|syntax|type|uri)error$/;t.deferred.exceptionhook=function(t,e){i.console&&i.console.warn&&t&&b.test(t.name)&&i.console.warn("jquery.deferred exception: "+t.message,t.stack,e)},t.readyexception=function(t){i.settimeout((function(){throw t}))};var q=t.deferred();function x(){r.removeeventlistener("domcontentloaded",x),i.removeeventlistener("load",x),t.ready()}t.fn.ready=function(t){return q.then(t).catch((function(t){t.readyexception(t)})),this},t.extend({isready:!1,readywait:1,ready:function(t){(!0===t?--t.readywait:t.isready)||(t.isready=!0,!0!==t&&--t.readywait>0||q.resolvewith(r,[t]))}}),t.ready.then=q.then,"complete"===r.readystate||"loading"!==r.readystate&&!r.documentelement.doscroll?i.settimeout(t.ready):(r.addeventlistener("domcontentloaded",x),i.addeventlistener("load",x));var y=function(t,e,i,n,o,s,r){var a=0,l=t.length,c=null==i;if("object"===_(i))for(a in o=!0,i)y(t,e,a,i[a],!0,s,r);else if(void 0!==n&&(o=!0,b(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(t(t),i)})),e))for(;a1,null,!0)},removedata:function(t){return this.each((function(){j.remove(this,t)}))}}),t.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=q.get(t,e),i&&(!n||array.isarray(i)?n=q.access(t,e,t.makearray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=t.queue(t,e),n=i.length,o=i.shift(),s=t._queuehooks(t,e);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===e&&i.unshift("inprogress"),delete s.stop,o.call(t,(function(){t.dequeue(t,e)}),s)),!n&&s&&s.empty.fire()},_queuehooks:function(t,e){var i=e+"queuehooks";return q.get(t,i)||q.access(t,i,{empty:t.callbacks("once memory").add((function(){q.remove(t,[e+"queue",i])}))})}}),t.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length\x20\t\r\n\f]*)/i,vt=/^$|^module$|\/(?:java|ecma)script/i,bt={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function yt(t,e){var i;return i=void 0!==t.getelementsbytagname?t.getelementsbytagname(e||"*"):void 0!==t.queryselectorall?t.queryselectorall(e||"*"):[],void 0===e||e&&m(t,e)?t.merge([t],i):i}function wt(t,e){for(var i=0,n=t.length;i-1)o&&o.push(s);else if(c=at(s),r=yt(u.appendchild(s),"script"),c&&wt(r),i)for(d=0;s=r[d++];)vt.test(s.type||"")&&i.push(s);return u}xt=r.createdocumentfragment().appendchild(r.createelement("div")),(_t=r.createelement("input")).setattribute("type","radio"),_t.setattribute("checked","checked"),_t.setattribute("name","t"),xt.appendchild(_t),v.checkclone=xt.clonenode(!0).clonenode(!0).lastchild.checked,xt.innerhtml="",v.noclonechecked=!!xt.clonenode(!0).lastchild.defaultvalue;var st=/^key/,et=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$t=/^([^.]*)(?:\.(.+)|)/;function pt(){return!0}function kt(){return!1}function mt(t,e){return t===function(){try{return r.activeelement}catch(t){}}()==("focus"===e)}function lt(t,e,i,n,o,s){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)lt(t,a,i,n,e[a],s);return t}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=kt;else if(!o)return t;return 1===s&&(r=o,(o=function(t){return t().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=t.guid++)),t.each((function(){t.event.add(this,e,o,n,i)}))}function it(t,e,i){i?(q.set(t,e,!1),t.event.add(t,e,{namespace:!1,handler:function(t){var n,o,s=q.get(this,e);if(1&t.istrigger&&this[e]){if(s.length)(t.event.special[e]||{}).delegatetype&&t.stoppropagation();else if(s=l.call(arguments),q.set(this,e,s),n=i(this,e),this[e](),s!==(o=q.get(this,e))||n?q.set(this,e,!1):o={},s!==o)return t.stopimmediatepropagation(),t.preventdefault(),o.value}else s.length&&(q.set(this,e,{value:t.event.trigger(t.extend(s[0],t.event.prototype),s.slice(1),this)}),t.stopimmediatepropagation())}})):void 0===q.get(t,e)&&t.event.add(t,e,pt)}t.event={global:{},add:function(t,e,i,n,o){var s,r,a,l,c,d,u,h,p,f,g,m=q.get(t);if(m)for(i.handler&&(i=(s=i).handler,o=s.selector),o&&t.find.matchesselector(rt,o),i.guid||(i.guid=t.guid++),(l=m.events)||(l=m.events={}),(r=m.handle)||(r=m.handle=function(e){return void 0!==t&&t.event.triggered!==e.type?t.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(h)||[""]).length;c--;)p=g=(a=$t.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(u=t.event.special[p]||{},p=(o?u.delegatetype:u.bindtype)||p,u=t.event.special[p]||{},d=t.extend({type:p,origtype:g,data:n,handler:i,guid:i.guid,selector:o,needscontext:o&&t.expr.match.needscontext.test(o),namespace:f.join(".")},s),(h=l[p])||((h=l[p]=[]).delegatecount=0,u.setup&&!1!==u.setup.call(t,n,f,r)||t.addeventlistener&&t.addeventlistener(p,r)),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=i.guid)),o?h.splice(h.delegatecount++,0,d):h.push(d),t.event.global[p]=!0)},remove:function(t,e,i,n,o){var s,r,a,l,c,d,u,h,p,f,g,m=q.hasdata(t)&&q.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(h)||[""]).length;c--;)if(p=g=(a=$t.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=t.event.special[p]||{},h=l[p=(n?u.delegatetype:u.bindtype)||p]||[],a=a[2]&&new regexp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=h.length;s--;)d=h[s],!o&&g!==d.origtype||i&&i.guid!==d.guid||a&&!a.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(h.splice(s,1),d.selector&&h.delegatecount--,u.remove&&u.remove.call(t,d));r&&!h.length&&(u.teardown&&!1!==u.teardown.call(t,f,m.handle)||t.removeevent(t,p,m.handle),delete l[p])}else for(p in l)t.event.remove(t,p+e[c],i,n,!0);t.isemptyobject(l)&&q.remove(t,"handle events")}},dispatch:function(t){var e,i,n,o,s,r,a=t.event.fix(t),l=new array(arguments.length),c=(q.get(this,"events")||{})[a.type]||[],d=t.event.special[a.type]||{};for(l[0]=a,e=1;e=1))for(;c!==this;c=c.parentnode||this)if(1===c.nodetype&&("click"!==t.type||!0!==c.disabled)){for(s=[],r={},i=0;i-1:t.find(o,this,null,[c]).length),r[o]&&s.push(n);s.length&&a.push({elem:c,handlers:s})}return c=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,at=/\s*$/g;function ft(t,e){return m(t,"table")&&m(11!==e.nodetype?e:e.firstchild,"tr")&&t(t).children("tbody")[0]||t}function ht(t){return t.type=(null!==t.getattribute("type"))+"/"+t.type,t}function nt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeattribute("type"),t}function jt(t,e){var i,n,o,s,r,a,l,c;if(1===e.nodetype){if(q.hasdata(t)&&(s=q.access(t),r=q.set(e,s),c=s.events))for(o in delete r.handle,r.events={},c)for(i=0,n=c[o].length;i1&&"string"==typeof f&&!v.checkclone&&ot.test(f))return t.each((function(o){var s=t.eq(o);g&&(e[0]=f.call(this,o,s.html())),bt(s,e,i,n)}));if(h&&(s=(o=ct(e,t[0].ownerdocument,!1,t,n)).firstchild,1===o.childnodes.length&&(o=s),s||n)){for(a=(r=t.map(yt(o,"script"),ht)).length;u")},clone:function(t,e,i){var n,o,s,r,a=t.clonenode(!0),l=at(t);if(!(v.noclonechecked||1!==t.nodetype&&11!==t.nodetype||t.isxmldoc(t)))for(r=yt(a),n=0,o=(s=yt(t)).length;n0&&wt(r,!l&&yt(t,"script")),a},cleandata:function(t){for(var e,i,n,o=t.event.special,s=0;void 0!==(i=t[s]);s++)if(k(i)){if(e=i[q.expando]){if(e.events)for(n in e.events)o[n]?t.event.remove(i,n):t.removeevent(i,n,e.handle);i[q.expando]=void 0}i[j.expando]&&(i[j.expando]=void 0)}}}),t.fn.extend({detach:function(t){return qt(this,t,!0)},remove:function(t){return qt(this,t)},text:function(t){return y(this,(function(t){return void 0===t?t.text(this):this.empty().each((function(){1!==this.nodetype&&11!==this.nodetype&&9!==this.nodetype||(this.textcontent=t)}))}),null,t,arguments.length)},append:function(){return bt(this,arguments,(function(t){1!==this.nodetype&&11!==this.nodetype&&9!==this.nodetype||ft(this,t).appendchild(t)}))},prepend:function(){return bt(this,arguments,(function(t){if(1===this.nodetype||11===this.nodetype||9===this.nodetype){var e=ft(this,t);e.insertbefore(t,e.firstchild)}}))},before:function(){return bt(this,arguments,(function(t){this.parentnode&&this.parentnode.insertbefore(t,this)}))},after:function(){return bt(this,arguments,(function(t){this.parentnode&&this.parentnode.insertbefore(t,this.nextsibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodetype&&(t.cleandata(yt(t,!1)),t.textcontent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return t.clone(this,t,e)}))},html:function(t){return y(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodetype)return e.innerhtml;if("string"==typeof t&&!at.test(t)&&!bt[(mt.exec(t)||["",""])[1].tolowercase()]){t=t.htmlprefilter(t);try{for(;i=0&&(l+=math.max(0,math.ceil(t["offset"+e[0].touppercase()+e.slice(1)]-s-l-a-.5))||0),l}function se(t,e,i){var n=yt(t),o=(!v.boxsizingreliable()||i)&&"border-box"===t.css(t,"boxsizing",!1,n),s=o,r=wt(t,e,n),a="offset"+e[0].touppercase()+e.slice(1);if(xt.test(r)){if(!i)return r;r="auto"}return(!v.boxsizingreliable()&&o||"auto"===r||!parsefloat(r)&&"inline"===t.css(t,"display",!1,n))&&t.getclientrects().length&&(o="border-box"===t.css(t,"boxsizing",!1,n),(s=a in t)&&(r=t[a])),(r=parsefloat(r)||0)+oe(t,e,i||(o?"border":"content"),s,n,r)+"px"}function re(t,e,i,n,o){return new re.prototype.init(t,e,i,n,o)}t.extend({csshooks:{opacity:{get:function(t,e){if(e){var i=wt(t,"opacity");return""===i?"1":i}}}},cssnumber:{animationiterationcount:!0,columncount:!0,fillopacity:!0,flexgrow:!0,flexshrink:!0,fontweight:!0,gridarea:!0,gridcolumn:!0,gridcolumnend:!0,gridcolumnstart:!0,gridrow:!0,gridrowend:!0,gridrowstart:!0,lineheight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zindex:!0,zoom:!0},cssprops:{},style:function(t,e,i,n){if(t&&3!==t.nodetype&&8!==t.nodetype&&t.style){var o,s,r,a=u(e),l=te.test(e),c=t.style;if(l||(e=qt(a)),r=t.csshooks[e]||t.csshooks[a],void 0===i)return r&&"get"in r&&void 0!==(o=r.get(t,!1,n))?o:c[e];"string"===(s=typeof i)&&(o=ot.exec(i))&&o[1]&&(i=ut(t,e,o),s="number"),null!=i&&i==i&&("number"!==s||l||(i+=o&&o[3]||(t.cssnumber[a]?"":"px")),v.clearclonestyle||""!==i||0!==e.indexof("background")||(c[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l?c.setproperty(e,i):c[e]=i))}},css:function(t,e,i,n){var o,s,r,a=u(e);return te.test(e)||(e=qt(a)),(r=t.csshooks[e]||t.csshooks[a])&&"get"in r&&(o=r.get(t,!0,i)),void 0===o&&(o=wt(t,e,n)),"normal"===o&&e in ie&&(o=ie[e]),""===i||i?(s=parsefloat(o),!0===i||isfinite(s)?s||0:o):o}}),t.each(["height","width"],(function(t,e){t.csshooks[e]={get:function(t,i,n){if(i)return!jt.test(t.css(t,"display"))||t.getclientrects().length&&t.getboundingclientrect().width?se(t,e,n):dt(t,ee,(function(){return se(t,e,n)}))},set:function(t,i,n){var o,s=yt(t),r=!v.scrollboxsize()&&"absolute"===s.position,a=(r||n)&&"border-box"===t.css(t,"boxsizing",!1,s),l=n?oe(t,e,n,a,s):0;return a&&r&&(l-=math.ceil(t["offset"+e[0].touppercase()+e.slice(1)]-parsefloat(s[e])-oe(t,e,"border",!1,s)-.5)),l&&(o=ot.exec(i))&&"px"!==(o[3]||"px")&&(t.style[e]=i,i=t.css(t,e)),ne(0,i,l)}}})),t.csshooks.marginleft=gt(v.reliablemarginleft,(function(t,e){if(e)return(parsefloat(wt(t,"marginleft"))||t.getboundingclientrect().left-dt(t,{marginleft:0},(function(){return t.getboundingclientrect().left})))+"px"})),t.each({margin:"",padding:"",border:"width"},(function(t,e){t.csshooks[t+e]={expand:function(i){for(var n=0,o={},s="string"==typeof i?i.split(" "):[i];n<4;n++)o[t+st[n]+e]=s[n]||s[n-2]||s[0];return o}},"margin"!==t&&(t.csshooks[t+e].set=ne)})),t.fn.extend({css:function(t,e){return y(this,(function(t,e,i){var n,o,s={},r=0;if(array.isarray(e)){for(n=yt(t),o=e.length;r1)}}),t.tween=re,re.prototype={constructor:re,init:function(t,e,i,n,o,s){this.elem=t,this.prop=i,this.easing=o||t.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(t.cssnumber[i]?"":"px")},cur:function(){var t=re.prophooks[this.prop];return t&&t.get?t.get(this):re.prophooks._default.get(this)},run:function(t){var e,i=re.prophooks[this.prop];return this.options.duration?this.pos=e=t.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):re.prophooks._default.set(this),this}},re.prototype.init.prototype=re.prototype,re.prophooks={_default:{get:function(t){var e;return 1!==t.elem.nodetype||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=t.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){t.fx.step[t.prop]?t.fx.step[t.prop](t):1!==t.elem.nodetype||!t.csshooks[t.prop]&&null==t.elem.style[qt(t.prop)]?t.elem[t.prop]=t.now:t.style(t.elem,t.prop,t.now+t.unit)}}},re.prophooks.scrolltop=re.prophooks.scrollleft={set:function(t){t.elem.nodetype&&t.elem.parentnode&&(t.elem[t.prop]=t.now)}},t.easing={linear:function(t){return t},swing:function(t){return.5-math.cos(t*math.pi)/2},_default:"swing"},t.fx=re.prototype.init,t.fx.step={};var ae,le,ce=/^(?:toggle|show|hide)$/,de=/queuehooks$/;function ue(){le&&(!1===r.hidden&&i.requestanimationframe?i.requestanimationframe(ue):i.settimeout(ue,t.fx.interval),t.fx.tick())}function he(){return i.settimeout((function(){ae=void 0})),ae=date.now()}function pe(t,e){var i,n=0,o={height:t};for(e=e?1:0;n<4;n+=2-e)o["margin"+(i=st[n])]=o["padding"+i]=t;return e&&(o.opacity=o.width=t),o}function fe(t,e,i){for(var n,o=(ge.tweeners[e]||[]).concat(ge.tweeners["*"]),s=0,r=o.length;s1)},removeattr:function(t){return this.each((function(){t.removeattr(this,t)}))}}),t.extend({attr:function(t,e,i){var n,o,s=t.nodetype;if(3!==s&&8!==s&&2!==s)return void 0===t.getattribute?t.prop(t,e,i):(1===s&&t.isxmldoc(t)||(o=t.attrhooks[e.tolowercase()]||(t.expr.match.bool.test(e)?me:void 0)),void 0!==i?null===i?void t.removeattr(t,e):o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:(t.setattribute(e,i+""),i):o&&"get"in o&&null!==(n=o.get(t,e))?n:null==(n=t.find.attr(t,e))?void 0:n)},attrhooks:{type:{set:function(t,e){if(!v.radiovalue&&"radio"===e&&m(t,"input")){var i=t.value;return t.setattribute("type",e),i&&(t.value=i),e}}}},removeattr:function(t,e){var i,n=0,o=e&&e.match(h);if(o&&1===t.nodetype)for(;i=o[n++];)t.removeattribute(i)}}),me={set:function(t,e,i){return!1===e?t.removeattr(t,i):t.setattribute(i,i),i}},t.each(t.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=ve[e]||t.find.attr;ve[e]=function(t,e,n){var o,s,r=e.tolowercase();return n||(s=ve[r],ve[r]=o,o=null!=i(t,e,n)?r:null,ve[r]=s),o}}));var be=/^(?:input|select|textarea|button)$/i,ye=/^(?:a|area)$/i;function we(t){return(t.match(h)||[]).join(" ")}function xe(t){return t.getattribute&&t.getattribute("class")||""}function _e(t){return array.isarray(t)?t:"string"==typeof t&&t.match(h)||[]}t.fn.extend({prop:function(t,e){return y(this,t.prop,t,e,arguments.length>1)},removeprop:function(t){return this.each((function(){delete this[t.propfix[t]||t]}))}}),t.extend({prop:function(t,e,i){var n,o,s=t.nodetype;if(3!==s&&8!==s&&2!==s)return 1===s&&t.isxmldoc(t)||(e=t.propfix[e]||e,o=t.prophooks[e]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},prophooks:{tabindex:{get:function(t){var e=t.find.attr(t,"tabindex");return e?parseint(e,10):be.test(t.nodename)||ye.test(t.nodename)&&t.href?0:-1}}},propfix:{for:"htmlfor",class:"classname"}}),v.optselected||(t.prophooks.selected={get:function(t){var e=t.parentnode;return e&&e.parentnode&&e.parentnode.selectedindex,null},set:function(t){var e=t.parentnode;e&&(e.selectedindex,e.parentnode&&e.parentnode.selectedindex)}}),t.each(["tabindex","readonly","maxlength","cellspacing","cellpadding","rowspan","colspan","usemap","frameborder","contenteditable"],(function(){t.propfix[this.tolowercase()]=this})),t.fn.extend({addclass:function(t){var e,i,n,o,s,r,a,l=0;if(b(t))return this.each((function(e){t(this).addclass(t.call(this,e,xe(this)))}));if((e=_e(t)).length)for(;i=this[l++];)if(o=xe(i),n=1===i.nodetype&&" "+we(o)+" "){for(r=0;s=e[r++];)n.indexof(" "+s+" ")<0&&(n+=s+" ");o!==(a=we(n))&&i.setattribute("class",a)}return this},removeclass:function(t){var e,i,n,o,s,r,a,l=0;if(b(t))return this.each((function(e){t(this).removeclass(t.call(this,e,xe(this)))}));if(!arguments.length)return this.attr("class","");if((e=_e(t)).length)for(;i=this[l++];)if(o=xe(i),n=1===i.nodetype&&" "+we(o)+" "){for(r=0;s=e[r++];)for(;n.indexof(" "+s+" ")>-1;)n=n.replace(" "+s+" "," ");o!==(a=we(n))&&i.setattribute("class",a)}return this},toggleclass:function(t,e){var i=typeof t,n="string"===i||array.isarray(t);return"boolean"==typeof e&&n?e?this.addclass(t):this.removeclass(t):b(t)?this.each((function(i){t(this).toggleclass(t.call(this,i,xe(this),e),e)})):this.each((function(){var e,o,s,r;if(n)for(o=0,s=t(this),r=_e(t);e=r[o++];)s.hasclass(e)?s.removeclass(e):s.addclass(e);else void 0!==t&&"boolean"!==i||((e=xe(this))&&q.set(this,"__classname__",e),this.setattribute&&this.setattribute("class",e||!1===t?"":q.get(this,"__classname__")||""))}))},hasclass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodetype&&(" "+we(xe(i))+" ").indexof(e)>-1)return!0;return!1}});var te=/\r/g;t.fn.extend({val:function(t){var e,i,n,o=this[0];return arguments.length?(n=b(t),this.each((function(i){var o;1===this.nodetype&&(null==(o=n?t.call(this,i,t(this).val()):t)?o="":"number"==typeof o?o+="":array.isarray(o)&&(o=t.map(o,(function(t){return null==t?"":t+""}))),(e=t.valhooks[this.type]||t.valhooks[this.nodename.tolowercase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=t.valhooks[o.type]||t.valhooks[o.nodename.tolowercase()])&&"get"in e&&void 0!==(i=e.get(o,"value"))?i:"string"==typeof(i=o.value)?i.replace(te,""):null==i?"":i:void 0}}),t.extend({valhooks:{option:{get:function(t){var e=t.find.attr(t,"value");return null!=e?e:we(t.text(t))}},select:{get:function(t){var e,i,n,o=t.options,s=t.selectedindex,r="select-one"===t.type,a=r?null:[],l=r?s+1:o.length;for(n=s<0?l:r?s:0;n-1)&&(i=!0);return i||(t.selectedindex=-1),s}}}}),t.each(["radio","checkbox"],(function(){t.valhooks[this]={set:function(t,e){if(array.isarray(e))return t.checked=t.inarray(t(t).val(),e)>-1}},v.checkon||(t.valhooks[this].get=function(t){return null===t.getattribute("value")?"on":t.value})})),v.focusin="onfocusin"in i;var ce=/^(?:focusinfocus|focusoutblur)$/,se=function(t){t.stoppropagation()};t.extend(t.event,{trigger:function(t,e,n,o){var s,a,l,c,d,u,h,p,g=[n||r],m=f.call(t,"type")?t.type:t,v=f.call(t,"namespace")?t.namespace.split("."):[];if(a=p=l=n=n||r,3!==n.nodetype&&8!==n.nodetype&&!ce.test(m+t.event.triggered)&&(m.indexof(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),d=m.indexof(":")<0&&"on"+m,(t=t[t.expando]?t:new t.event(m,"object"==typeof t&&t)).istrigger=o?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new regexp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:t.makearray(e,[t]),h=t.event.special[m]||{},o||!h.trigger||!1!==h.trigger.apply(n,e))){if(!o&&!h.nobubble&&!y(n)){for(c=h.delegatetype||m,ce.test(c+m)||(a=a.parentnode);a;a=a.parentnode)g.push(a),l=a;l===(n.ownerdocument||r)&&g.push(l.defaultview||l.parentwindow||i)}for(s=0;(a=g[s++])&&!t.ispropagationstopped();)p=a,t.type=s>1?c:h.bindtype||m,(u=(q.get(a,"events")||{})[t.type]&&q.get(a,"handle"))&&u.apply(a,e),(u=d&&a[d])&&u.apply&&k(a)&&(t.result=u.apply(a,e),!1===t.result&&t.preventdefault());return t.type=m,o||t.isdefaultprevented()||h._default&&!1!==h._default.apply(g.pop(),e)||!k(n)||d&&b(n[m])&&!y(n)&&((l=n[d])&&(n[d]=null),t.event.triggered=m,t.ispropagationstopped()&&p.addeventlistener(m,se),n[m](),t.ispropagationstopped()&&p.removeeventlistener(m,se),t.event.triggered=void 0,l&&(n[d]=l)),t.result}},simulate:function(t,e,i){var n=t.extend(new t.event,i,{type:t,issimulated:!0});t.event.trigger(n,null,e)}}),t.fn.extend({trigger:function(t,e){return this.each((function(){t.event.trigger(t,e,this)}))},triggerhandler:function(t,e){var i=this[0];if(i)return t.event.trigger(t,e,i,!0)}}),v.focusin||t.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){t.event.simulate(e,t.target,t.event.fix(t))};t.event.special[e]={setup:function(){var n=this.ownerdocument||this,o=q.access(n,e);o||n.addeventlistener(t,i,!0),q.access(n,e,(o||0)+1)},teardown:function(){var n=this.ownerdocument||this,o=q.access(n,e)-1;o?q.access(n,e,o):(n.removeeventlistener(t,i,!0),q.remove(n,e))}}}));var ee=i.location,$e=date.now(),pe=/\?/;t.parsexml=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new i.domparser).parsefromstring(t,"text/xml")}catch(t){e=void 0}return e&&!e.getelementsbytagname("parsererror").length||t.error("invalid xml: "+t),e};var ke=/\[\]$/,me=/\r?\n/g,le=/^(?:submit|button|image|reset|file)$/i,ie=/^(?:input|select|textarea|keygen)/i;function ze(t,e,i,n){var o;if(array.isarray(e))t.each(e,(function(e,o){i||ke.test(t)?n(t,o):ze(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,i,n)}));else if(i||"object"!==_(e))n(t,e);else for(o in e)ze(t+"["+o+"]",e[o],i,n)}t.param=function(t,e){var i,n=[],o=function(t,e){var i=b(e)?e():e;n[n.length]=encodeuricomponent(t)+"="+encodeuricomponent(null==i?"":i)};if(null==t)return"";if(array.isarray(t)||t.jquery&&!t.isplainobject(t))t.each(t,(function(){o(this.name,this.value)}));else for(i in t)ze(i,t[i],e,o);return n.join("&")},t.fn.extend({serialize:function(){return t.param(this.serializearray())},serializearray:function(){return this.map((function(){var t=t.prop(this,"elements");return t?t.makearray(t):this})).filter((function(){var t=this.type;return this.name&&!t(this).is(":disabled")&&ie.test(this.nodename)&&!le.test(t)&&(this.checked||!gt.test(t))})).map((function(t,e){var i=t(this).val();return null==i?null:array.isarray(i)?t.map(i,(function(t){return{name:e.name,value:t.replace(me,"\r\n")}})):{name:e.name,value:i.replace(me,"\r\n")}})).get()}});var ae=/%20/g,oe=/#.*$/,de=/([?&])_=[^&]*/,fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,he=/^(?:get|head)$/,ne=/^\/\//,je={},re={},be="*/".concat("*"),qe=r.createelement("a");function xe(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,o=0,s=e.tolowercase().match(h)||[];if(b(i))for(;n=s[o++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function ye(t,e,i,n){var o={},s=t===re;function r(a){var l;return o[a]=!0,t.each(t[a]||[],(function(t,a){var c=a(e,i,n);return"string"!=typeof c||s||o[c]?s?!(l=c):void 0:(e.datatypes.unshift(c),r(c),!1)})),l}return r(e.datatypes[0])||!o["*"]&&r("*")}function ve(t,e){var i,n,o=t.ajaxsettings.flatoptions||{};for(i in e)void 0!==e[i]&&((o[i]?t:n||(n={}))[i]=e[i]);return n&&t.extend(!0,t,n),t}qe.href=ee.href,t.extend({active:0,lastmodified:{},etag:{},ajaxsettings:{url:ee.href,type:"get",islocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ee.protocol),global:!0,processdata:!0,async:!0,contenttype:"application/x-www-form-urlencoded; charset=utf-8",accepts:{"*":be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responsefields:{xml:"responsexml",text:"responsetext",json:"responsejson"},converters:{"* text":string,"text html":!0,"text json":json.parse,"text xml":t.parsexml},flatoptions:{url:!0,context:!0}},ajaxsetup:function(t,e){return e?ve(ve(t,t.ajaxsettings),e):ve(t.ajaxsettings,t)},ajaxprefilter:xe(je),ajaxtransport:xe(re),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,o,s,a,l,c,d,u,h,p,f=t.ajaxsetup({},e),g=f.context||f,m=f.context&&(g.nodetype||g.jquery)?t(g):t.event,v=t.deferred(),b=t.callbacks("once memory"),y=f.statuscode||{},w={},x={},_="canceled",c={readystate:0,getresponseheader:function(t){var e;if(d){if(!a)for(a={};e=fe.exec(s);)a[e[1].tolowercase()+" "]=(a[e[1].tolowercase()+" "]||[]).concat(e[2]);e=a[t.tolowercase()+" "]}return null==e?null:e.join(", ")},getallresponseheaders:function(){return d?s:null},setrequestheader:function(t,e){return null==d&&(t=x[t.tolowercase()]=x[t.tolowercase()]||t,w[t]=e),this},overridemimetype:function(t){return null==d&&(f.mimetype=t),this},statuscode:function(t){var e;if(t)if(d)c.always(t[c.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),s(0,e),this}};if(v.promise(c),f.url=((t||f.url||ee.href)+"").replace(ne,ee.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.datatypes=(f.datatype||"*").tolowercase().match(h)||[""],null==f.crossdomain){c=r.createelement("a");try{c.href=f.url,c.href=c.href,f.crossdomain=qe.protocol+"//"+qe.host!=c.protocol+"//"+c.host}catch(t){f.crossdomain=!0}}if(f.data&&f.processdata&&"string"!=typeof f.data&&(f.data=t.param(f.data,f.traditional)),ye(je,f,e,c),d)return c;for(h in(u=t.event&&f.global)&&0==t.active++&&t.event.trigger("ajaxstart"),f.type=f.type.touppercase(),f.hascontent=!he.test(f.type),o=f.url.replace(oe,""),f.hascontent?f.data&&f.processdata&&0===(f.contenttype||"").indexof("application/x-www-form-urlencoded")&&(f.data=f.data.replace(ae,"+")):(p=f.url.slice(o.length),f.data&&(f.processdata||"string"==typeof f.data)&&(o+=(pe.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(de,"$1"),p=(pe.test(o)?"&":"?")+"_="+$e+++p),f.url=o+p),f.ifmodified&&(t.lastmodified[o]&&c.setrequestheader("if-modified-since",t.lastmodified[o]),t.etag[o]&&c.setrequestheader("if-none-match",t.etag[o])),(f.data&&f.hascontent&&!1!==f.contenttype||e.contenttype)&&c.setrequestheader("content-type",f.contenttype),c.setrequestheader("accept",f.datatypes[0]&&f.accepts[f.datatypes[0]]?f.accepts[f.datatypes[0]]+("*"!==f.datatypes[0]?", "+be+"; q=0.01":""):f.accepts["*"]),f.headers)c.setrequestheader(h,f.headers[h]);if(f.beforesend&&(!1===f.beforesend.call(g,c,f)||d))return c.abort();if(_="abort",b.add(f.complete),c.done(f.success),c.fail(f.error),n=ye(re,f,e,c)){if(c.readystate=1,u&&m.trigger("ajaxsend",[c,f]),d)return c;f.async&&f.timeout>0&&(l=i.settimeout((function(){c.abort("timeout")}),f.timeout));try{d=!1,n.send(w,s)}catch(t){if(d)throw t;s(-1,t)}}else s(-1,"no transport");function s(t,e,r,a){var c,h,p,w,x,_=e;d||(d=!0,l&&i.cleartimeout(l),n=void 0,s=a||"",c.readystate=t>0?4:0,c=t>=200&&t<300||304===t,r&&(w=function(t,e,i){for(var n,o,s,r,a=t.contents,l=t.datatypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimetype||e.getresponseheader("content-type"));if(n)for(o in a)if(a[o]&&a[o].test(n)){l.unshift(o);break}if(l[0]in i)s=l[0];else{for(o in i){if(!l[0]||t.converters[o+" "+l[0]]){s=o;break}r||(r=o)}s=s||r}if(s)return s!==l[0]&&l.unshift(s),i[s]}(f,c,r)),w=function(t,e,i,n){var o,s,r,a,l,c={},d=t.datatypes.slice();if(d[1])for(r in t.converters)c[r.tolowercase()]=t.converters[r];for(s=d.shift();s;)if(t.responsefields[s]&&(i[t.responsefields[s]]=e),!l&&n&&t.datafilter&&(e=t.datafilter(e,t.datatype)),l=s,s=d.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(o in c)if((a=o.split(" "))[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[o]:!0!==c[o]&&(s=a[0],d.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"no conversion from "+l+" to "+s}}}return{state:"success",data:e}}(f,w,c,c),c?(f.ifmodified&&((x=c.getresponseheader("last-modified"))&&(t.lastmodified[o]=x),(x=c.getresponseheader("etag"))&&(t.etag[o]=x)),204===t||"head"===f.type?_="nocontent":304===t?_="notmodified":(_=w.state,h=w.data,c=!(p=w.error))):(p=_,!t&&_||(_="error",t<0&&(t=0))),c.status=t,c.statustext=(e||_)+"",c?v.resolvewith(g,[h,_,c]):v.rejectwith(g,[c,_,p]),c.statuscode(y),y=void 0,u&&m.trigger(c?"ajaxsuccess":"ajaxerror",[c,f,c?h:p]),b.firewith(g,[c,_]),u&&(m.trigger("ajaxcomplete",[c,f]),--t.active||t.event.trigger("ajaxstop")))}return c},getjson:function(t,e,i){return t.get(t,e,i,"json")},getscript:function(t,e){return t.get(t,void 0,e,"script")}}),t.each(["get","post"],(function(t,e){t[e]=function(t,i,n,o){return b(i)&&(o=o||n,n=i,i=void 0),t.ajax(t.extend({url:t,type:e,datatype:o,data:i,success:n},t.isplainobject(t)&&t))}})),t._evalurl=function(t,e){return t.ajax({url:t,type:"get",datatype:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},datafilter:function(t){t.globaleval(t,e)}})},t.fn.extend({wrapall:function(t){var e;return this[0]&&(b(t)&&(t=t.call(this[0])),e=t(t,this[0].ownerdocument).eq(0).clone(!0),this[0].parentnode&&e.insertbefore(this[0]),e.map((function(){for(var t=this;t.firstelementchild;)t=t.firstelementchild;return t})).append(this)),this},wrapinner:function(t){return b(t)?this.each((function(e){t(this).wrapinner(t.call(this,e))})):this.each((function(){var e=t(this),i=e.contents();i.length?i.wrapall(t):e.append(t)}))},wrap:function(t){var e=b(t);return this.each((function(i){t(this).wrapall(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){t(this).replacewith(this.childnodes)})),this}}),t.expr.pseudos.hidden=function(t){return!t.expr.pseudos.visible(t)},t.expr.pseudos.visible=function(t){return!!(t.offsetwidth||t.offsetheight||t.getclientrects().length)},t.ajaxsettings.xhr=function(){try{return new i.xmlhttprequest}catch(t){}};var we={0:200,1223:204},ge=t.ajaxsettings.xhr();v.cors=!!ge&&"withcredentials"in ge,v.ajax=ge=!!ge,t.ajaxtransport((function(t){var e,n;if(v.cors||ge&&!t.crossdomain)return{send:function(o,s){var r,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrfields)for(r in t.xhrfields)a[r]=t.xhrfields[r];for(r in t.mimetype&&a.overridemimetype&&a.overridemimetype(t.mimetype),t.crossdomain||o["x-requested-with"]||(o["x-requested-with"]="xmlhttprequest"),o)a.setrequestheader(r,o[r]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statustext):s(we[a.status]||a.status,a.statustext,"text"!==(a.responsetype||"text")||"string"!=typeof a.responsetext?{binary:a.response}:{text:a.responsetext},a.getallresponseheaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readystate&&i.settimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hascontent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),t.ajaxprefilter((function(t){t.crossdomain&&(t.contents.script=!1)})),t.ajaxsetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return t.globaleval(t),t}}}),t.ajaxprefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossdomain&&(t.type="get")})),t.ajaxtransport("script",(function(t){var e,i;if(t.crossdomain||t.scriptattrs)return{send:function(n,o){e=t("