").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(i(this).empty(),t.isLoaded=!1)}),t.$content=i(e).appendTo(t.$slide),t.opts.smallBtn&&!t.$smallBtn&&(t.$smallBtn=i(o.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content.filter("div").first())),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.removeClass("fancybox-slide--"+t.type),this.setContent(t,this.translate(t,t.opts.errorTpl))},showLoading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=i(e.opts.spinnerTpl).appendTo(t.$slide))},hideLoading:function(t){var e=this;t=t||e.current,t&&t.$spinner&&(t.$spinner.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.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(o){return o.button==2&&o.preventDefault(),!0}),t.type==="image"&&i('
').appendTo(t.$content)),e.revealContent(t))},revealContent:function(t){var e,o,a,c,r,p=this,$=t.$slide,b=!1;return e=t.opts[p.firstRun?"animationEffect":"transitionEffect"],a=t.opts[p.firstRun?"animationDuration":"transitionDuration"],a=parseInt(t.forcedDuration===l?a:t.forcedDuration,10),!t.isMoved&&t.pos===p.currPos&&a||(e=!1),e!=="zoom"||t.pos===p.currPos&&a&&t.type==="image"&&!t.hasError&&(b=p.getThumbPos(t))||(e="fade"),e==="zoom"?(r=p.getFitPos(t),r.scaleX=r.width/b.width,r.scaleY=r.height/b.height,delete r.width,delete r.height,c=t.opts.zoomOpacity,c=="auto"&&(c=Math.abs(t.width/t.height-b.width/b.height)>.1),c&&(b.opacity=.1,r.opacity=1),i.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),b),n(t.$content),void i.fancybox.animate(t.$content,r,a,function(){p.complete()})):(p.updateSlide(t),e?(i.fancybox.stop($),o="fancybox-animated fancybox-slide--"+(t.pos>=p.prevPos?"next":"previous")+" fancybox-fx-"+e,$.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(o),t.$content.removeClass("fancybox-is-hidden"),n($),void i.fancybox.animate($,"fancybox-slide--current",a,function(f){$.removeClass(o).removeAttr("style"),t.pos===p.currPos&&p.complete()},!0)):(n($),t.$content.removeClass("fancybox-is-hidden"),void(t.pos===p.currPos&&p.complete())))},getThumbPos:function(t){var e,o=this,a=!1,c=function($){for(var b,f=$[0],d=f.getBoundingClientRect(),C=[];f.parentElement!==null;)i(f.parentElement).css("overflow")!=="hidden"&&i(f.parentElement).css("overflow")!=="auto"||C.push(f.parentElement.getBoundingClientRect()),f=f.parentElement;return b=C.every(function(L){var T=Math.min(d.right,L.right)-Math.max(d.left,L.left),M=Math.min(d.bottom,L.bottom)-Math.max(d.top,L.top);return T>0&&M>0}),b&&d.bottom>0&&d.right>0&&d.left
=t.currPos-1&&c.pos<=t.currPos+1?o[c.pos]=c:c&&(i.fancybox.stop(c.$slide),c.$slide.off().remove())}),t.slides=o,t.updateCursor(),t.trigger("afterShow"),(i(y.activeElement).is("[disabled]")||e.opts.autoFocus&&e.type!="image"&&e.type!=="iframe")&&t.focus())},preload:function(){var t,e,o=this;o.group.length<2||(t=o.slides[o.currPos+1],e=o.slides[o.currPos-1],t&&t.type==="image"&&o.loadSlide(t),e&&e.type==="image"&&o.loadSlide(e))},focus:function(){var t,e=this.current;this.isClosing||(e&&e.isComplete&&(t=e.$slide.find("input[autofocus]:enabled:visible:first"),t.length||(t=e.$slide.find("button,:input,[tabindex],a").filter(":enabled:visible:first"))),t=t&&t.length?t:this.$refs.container,t.focus())},activate:function(){var t=this;i(".fancybox-container").each(function(){var e=i(this).data("FancyBox");e&&e.uid!==t.uid&&!e.isClosing&&e.trigger("onDeactivate")}),(t.current||t.isIdle)&&(t.$refs.container.index()>0&&t.$refs.container.prependTo(y.body),t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,a,c,r,p,$,b=this,f=b.current,d=function(){b.cleanUp(t)};return!b.isClosing&&(b.isClosing=!0,b.trigger("beforeClose",t)===!1?(b.isClosing=!1,w(function(){b.update()}),!1):(b.removeEvents(),f.timouts&&clearTimeout(f.timouts),c=f.$content,o=f.opts.animationEffect,a=i.isNumeric(e)?e:o?f.opts.animationDuration:0,f.$slide.off(s).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),f.$slide.siblings().trigger("onReset").remove(),a&&b.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing"),b.hideLoading(f),b.hideControls(),b.updateCursor(),o!=="zoom"||t!==!0&&c&&a&&f.type==="image"&&!f.hasError&&($=b.getThumbPos(f))||(o="fade"),o==="zoom"?(i.fancybox.stop(c),p=i.fancybox.getTranslate(c),p.width=p.width*p.scaleX,p.height=p.height*p.scaleY,r=f.opts.zoomOpacity,r=="auto"&&(r=Math.abs(f.width/f.height-$.width/$.height)>.1),r&&($.opacity=0),p.scaleX=p.width/$.width,p.scaleY=p.height/$.height,p.width=$.width,p.height=$.height,i.fancybox.setTranslate(f.$content,p),i.fancybox.animate(f.$content,$,a,d),!0):(o&&a?t===!0?setTimeout(d,a):i.fancybox.animate(f.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,a,d):d(),!0)))},cleanUp:function(t){var e,o,a=this,c=i("body");a.current.$slide.trigger("onReset"),a.$refs.container.empty().remove(),a.trigger("afterClose",t),a.$lastFocus&&a.current.opts.backFocus&&a.$lastFocus.focus(),a.current=null,e=i.fancybox.getInstance(),e?e.activate():(v.scrollTop(a.scrollTop).scrollLeft(a.scrollLeft),c.removeClass("fancybox-active compensate-for-scrollbar"),c.hasClass("fancybox-iosfix")&&(o=parseInt(y.body.style.top,10),c.removeClass("fancybox-iosfix").css("top","").scrollTop(o*-1)),i("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,a=Array.prototype.slice.call(arguments,1),c=this,r=e&&e.opts?e:c.current;return r?a.unshift(r):r=c,a.unshift(c),i.isFunction(r.opts[t])&&(o=r.opts[t].apply(r,a)),o===!1?o:void(t==="afterClose"?x.trigger(t+".fb",a):c.$refs.container.trigger(t+".fb",a))},updateControls:function(t){var e=this,o=e.current,a=o.index,c=o.opts.caption,r=e.$refs.caption;o.$slide.trigger("refresh"),e.$caption=c&&c.length?r.html(c):null,e.isHiddenControls||e.showControls(),i("[data-fancybox-count]").html(e.group.length),i("[data-fancybox-index]").html(a+1),i("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&a<=0),i("[data-fancybox-next]").prop("disabled",!o.opts.loop&&a>=e.group.length-1),o.type==="image"?i("[data-fancybox-download]").attr("href",o.opts.image.src||o.src):i("[data-fancybox-download]").hide()},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,o=t.$refs.container;t.isHiddenControls=!1,t.idleSecondsCounter=0,o.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal),t.$caption?o.addClass("fancybox-show-caption "):o.removeClass("fancybox-show-caption")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),i.fancybox={version:"3.2.0-beta.2",defaults:g,getInstance:function(t){var e=i('.fancybox-container:not(".fancybox-is-closing"):first').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof h&&(i.type(t)==="string"?e[t].apply(e,o):i.type(t)==="function"&&t.apply(e,o),e)},open:function(t,e,o){return new h(t,e,o)},close:function(t){var e=this.getInstance();e&&(e.close(),t===!0&&this.close())},destroy:function(){this.close(!0),x.off("click.fb-start")},isMobile:y.createTouch!==l&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:function(){var t=y.createElement("div");return m.getComputedStyle&&m.getComputedStyle(t).getPropertyValue("transform")&&!(y.documentMode&&y.documentMode<11)}(),getTranslate:function(t){var e;if(!t||!t.length)return!1;if(e=t.eq(0).css("transform"),e&&e.indexOf("matrix")!==-1?(e=e.split("(")[1],e=e.split(")")[0],e=e.split(",")):e=[],e.length)e=e.length>10?[e[13],e[12],e[0],e[5]]:[e[5],e[4],e[0],e[3]],e=e.map(parseFloat);else{e=[0,0,1,1];var o=/\.*translate\((.*)px,(.*)px\)/i,a=o.exec(t.eq(0).attr("style"));a&&(e[0]=parseFloat(a[2]),e[1]=parseFloat(a[1]))}return{top:e[0],left:e[1],scaleX:e[2],scaleY:e[3],opacity:parseFloat(t.css("opacity")),width:t.width(),height:t.height()}},setTranslate:function(t,e){var o="",a={};if(t&&e)return e.left===l&&e.top===l||(o=(e.left===l?t.position().left:e.left)+"px, "+(e.top===l?t.position().top:e.top)+"px",o=this.use3d?"translate3d("+o+", 0px)":"translate("+o+")"),e.scaleX!==l&&e.scaleY!==l&&(o=(o.length?o+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")"),o.length&&(a.transform=o),e.opacity!==l&&(a.opacity=e.opacity),e.width!==l&&(a.width=e.width),e.height!==l&&(a.height=e.height),t.css(a)},animate:function(t,e,o,a,c){var r=s||"transitionend";i.isFunction(o)&&(a=o,o=null),i.isPlainObject(e)||t.removeAttr("style"),t.on(r,function(p){(!p||!p.originalEvent||t.is(p.originalEvent.target)&&p.originalEvent.propertyName!="z-index")&&(t.off(r),i.isPlainObject(e)?e.scaleX!==l&&e.scaleY!==l&&(t.css("transition-duration","0ms"),e.width=Math.round(t.width()*e.scaleX),e.height=Math.round(t.height()*e.scaleY),e.scaleX=1,e.scaleY=1,i.fancybox.setTranslate(t,e)):c!==!0&&t.removeClass(e),i.isFunction(a)&&a(p))}),i.isNumeric(o)&&t.css("transition-duration",o+"ms"),i.isPlainObject(e)?i.fancybox.setTranslate(t,e):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger("transitionend")},o+16))},stop:function(t){clearTimeout(t.data("timer")),t.off(s)}},i.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?i("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},u):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},u),this},x.on("click.fb-start","[data-fancybox]",u)}})(window,document,window.jQuery||jQuery),function(m){var y=function(l,u,g){if(l)return g=g||"",m.type(g)==="object"&&(g=m.param(g,!0)),m.each(u,function(v,x){l=l.replace("$"+v,x||"")}),g.length&&(l+=(l.indexOf("?")>0?"&":"?")+g),l},i={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:"//www.youtube.com/embed/$4",thumb:"//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,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},vine:{matcher:/vine.co\/v\/([a-zA-Z0-9\?\=\-]+)/,type:"iframe",url:"//vine.co/v/$1/embed/simple"},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(l){return"//maps.google."+l[2]+"/?ll="+(l[9]?l[9]+"&z="+Math.floor(l[10])+(l[12]?l[12].replace(/^\//,"&"):""):l[12])+"&output="+(l[12]&&l[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(l){return"//maps.google."+l[2]+"/maps?q="+l[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};m(document).on("onInit.fb",function(l,u){m.each(u.group,function(g,v){var x,P,S,w,s,n,h,t=v.src||"",e=!1;v.type||(x=m.extend(!0,{},i,v.opts.media),m.each(x,function(o,a){if(S=t.match(a.matcher),n={},h=o,S){if(e=a.type,a.paramPlace&&S[a.paramPlace]){s=S[a.paramPlace],s[0]=="?"&&(s=s.substring(1)),s=s.split("&");for(var c=0;cs.clientHeight,e=(h==="scroll"||h==="auto")&&s.scrollWidth>s.clientWidth;return t||e},S=function(s){for(var n=!1;!((n=P(s.get(0)))||(s=s.parent(),!s.length||s.hasClass("fancybox-stage")||s.is("body"))););return n},w=function(s){var n=this;n.instance=s,n.$bg=s.$refs.bg,n.$stage=s.$refs.stage,n.$container=s.$refs.container,n.destroy(),n.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(n,"ontouchstart"))};w.prototype.destroy=function(){this.$container.off(".fb.touch")},w.prototype.ontouchstart=function(s){var n=this,h=i(s.target),t=n.instance,e=t.current,o=e.$content,a=s.type=="touchstart";if(a&&n.$container.off("mousedown.fb.touch"),!e||n.instance.isAnimating||n.instance.isClosing)return s.stopPropagation(),void s.preventDefault();if((!s.originalEvent||s.originalEvent.button!=2)&&h.length&&!x(h)&&!x(h.parent())&&!(s.originalEvent.clientX>h[0].clientWidth+h.offset().left)&&(n.startPoints=g(s),n.startPoints&&!(n.startPoints.length>1&&t.isSliding))){if(n.$target=h,n.$content=o,n.canTap=!0,i(y).off(".fb.touch"),i(y).on(a?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(n,"ontouchend")),i(y).on(a?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(n,"ontouchmove")),!t.current.opts.touch&&!t.canPan()||!h.is(n.$stage)&&!n.$stage.find(h).length)return void(h.is("img")&&s.preventDefault());s.stopPropagation(),i.fancybox.isMobile&&(S(n.$target)||S(n.$target.parent()))||s.preventDefault(),n.canvasWidth=Math.round(e.$slide[0].clientWidth),n.canvasHeight=Math.round(e.$slide[0].clientHeight),n.startTime=new Date().getTime(),n.distanceX=n.distanceY=n.distance=0,n.isPanning=!1,n.isSwiping=!1,n.isZooming=!1,n.sliderStartPos=n.sliderLastPos||{top:0,left:0},n.contentStartPos=i.fancybox.getTranslate(n.$content),n.contentLastPos=null,n.startPoints.length!==1||n.isZooming||(n.canTap=!t.isSliding,e.type==="image"&&(n.contentStartPos.width>n.canvasWidth+1||n.contentStartPos.height>n.canvasHeight+1)?(i.fancybox.stop(n.$content),n.$content.css("transition-duration","0ms"),n.isPanning=!0):n.isSwiping=!0,n.$container.addClass("fancybox-controls--isGrabbing")),n.startPoints.length!==2||t.isAnimating||e.hasError||e.type!=="image"||!e.isLoaded&&!e.$ghost||(n.isZooming=!0,n.isSwiping=!1,n.isPanning=!1,i.fancybox.stop(n.$content),n.$content.css("transition-duration","0ms"),n.centerPointStartX=.5*(n.startPoints[0].x+n.startPoints[1].x)-i(m).scrollLeft(),n.centerPointStartY=.5*(n.startPoints[0].y+n.startPoints[1].y)-i(m).scrollTop(),n.percentageOfImageAtPinchPointX=(n.centerPointStartX-n.contentStartPos.left)/n.contentStartPos.width,n.percentageOfImageAtPinchPointY=(n.centerPointStartY-n.contentStartPos.top)/n.contentStartPos.height,n.startDistanceBetweenFingers=v(n.startPoints[0],n.startPoints[1]))}},w.prototype.ontouchmove=function(s){var n=this;if(n.newPoints=g(s),i.fancybox.isMobile&&(S(n.$target)||S(n.$target.parent())))return s.stopPropagation(),void(n.canTap=!1);if((n.instance.current.opts.touch||n.instance.canPan())&&n.newPoints&&n.newPoints.length&&(n.distanceX=v(n.newPoints[0],n.startPoints[0],"x"),n.distanceY=v(n.newPoints[0],n.startPoints[0],"y"),n.distance=v(n.newPoints[0],n.startPoints[0]),n.distance>0)){if(!n.$target.is(n.$stage)&&!n.$stage.find(n.$target).length)return;s.stopPropagation(),s.preventDefault(),n.isSwiping?n.onSwipe():n.isPanning?n.onPan():n.isZooming&&n.onZoom()}},w.prototype.onSwipe=function(){var s,n=this,h=n.isSwiping,t=n.sliderStartPos.left||0;h===!0?Math.abs(n.distance)>10&&(n.canTap=!1,n.instance.group.length<2&&n.instance.opts.touch.vertical?n.isSwiping="y":n.instance.isSliding||n.instance.opts.touch.vertical===!1||n.instance.opts.touch.vertical==="auto"&&i(m).width()>800?n.isSwiping="x":(s=Math.abs(180*Math.atan2(n.distanceY,n.distanceX)/Math.PI),n.isSwiping=s>45&&s<135?"y":"x"),n.instance.isSliding=n.isSwiping,n.startPoints=n.newPoints,i.each(n.instance.slides,function(e,o){i.fancybox.stop(o.$slide),o.$slide.css("transition-duration","0ms"),o.inTransition=!1,o.pos===n.instance.current.pos&&(n.sliderStartPos.left=i.fancybox.getTranslate(o.$slide).left)}),n.instance.SlideShow&&n.instance.SlideShow.isActive&&n.instance.SlideShow.stop()):(h=="x"&&(n.distanceX>0&&(n.instance.group.length<2||n.instance.current.index===0&&!n.instance.current.opts.loop)?t+=Math.pow(n.distanceX,.8):n.distanceX<0&&(n.instance.group.length<2||n.instance.current.index===n.instance.group.length-1&&!n.instance.current.opts.loop)?t-=Math.pow(-n.distanceX,.8):t+=n.distanceX),n.sliderLastPos={top:h=="x"?0:n.sliderStartPos.top+n.distanceY,left:t},n.requestId&&(u(n.requestId),n.requestId=null),n.requestId=l(function(){n.sliderLastPos&&(i.each(n.instance.slides,function(e,o){var a=o.pos-n.instance.currPos;i.fancybox.setTranslate(o.$slide,{top:n.sliderLastPos.top,left:n.sliderLastPos.left+a*n.canvasWidth+a*o.opts.gutter})}),n.$container.addClass("fancybox-is-sliding"))}))},w.prototype.onPan=function(){var s,n,h,t=this;t.canTap=!1,s=t.contentStartPos.width>t.canvasWidth?t.contentStartPos.left+t.distanceX:t.contentStartPos.left,n=t.contentStartPos.top+t.distanceY,h=t.limitMovement(s,n,t.contentStartPos.width,t.contentStartPos.height),h.scaleX=t.contentStartPos.scaleX,h.scaleY=t.contentStartPos.scaleY,t.contentLastPos=h,t.requestId&&(u(t.requestId),t.requestId=null),t.requestId=l(function(){i.fancybox.setTranslate(t.$content,t.contentLastPos)})},w.prototype.limitMovement=function(s,n,h,t){var e,o,a,c,r=this,p=r.canvasWidth,$=r.canvasHeight,b=r.contentStartPos.left,f=r.contentStartPos.top,d=r.distanceX,C=r.distanceY;return e=Math.max(0,.5*p-.5*h),o=Math.max(0,.5*$-.5*t),a=Math.min(p-h,.5*p-.5*h),c=Math.min($-t,.5*$-.5*t),h>p&&(d>0&&s>e&&(s=e-1+Math.pow(-e+b+d,.8)||0),d<0&&s$&&(C>0&&n>o&&(n=o-1+Math.pow(-o+f+C,.8)||0),C<0&&no?(s=s>0?0:s,s=sa?(n=n>0?0:n,n=n50?(i.fancybox.animate(n.instance.current.$slide,{top:n.sliderStartPos.top+n.distanceY+150*n.velocityY,opacity:0},150),h=n.instance.close(!0,300)):s=="x"&&n.distanceX>50&&n.instance.group.length>1?h=n.instance.previous(n.speedX):s=="x"&&n.distanceX<-50&&n.instance.group.length>1&&(h=n.instance.next(n.speedX)),h!==!1||s!="x"&&s!="y"||n.instance.jumpTo(n.instance.current.index,150),n.$container.removeClass("fancybox-is-sliding")},w.prototype.endPanning=function(){var s,n,h,t=this;t.contentLastPos&&(t.instance.current.opts.touch.momentum===!1?(s=t.contentLastPos.left,n=t.contentLastPos.top):(s=t.contentLastPos.left+t.velocityX*t.speed,n=t.contentLastPos.top+t.velocityY*t.speed),h=t.limitPosition(s,n,t.contentStartPos.width,t.contentStartPos.height),h.width=t.contentStartPos.width,h.height=t.contentStartPos.height,i.fancybox.animate(t.$content,h,330))},w.prototype.endZooming=function(){var s,n,h,t,e=this,o=e.instance.current,a=e.newWidth,c=e.newHeight;e.contentLastPos&&(s=e.contentLastPos.left,n=e.contentLastPos.top,t={top:n,left:s,width:a,height:c,scaleX:1,scaleY:1},i.fancybox.setTranslate(e.$content,t),ao.width||c>o.height?e.instance.scaleToActual(e.centerPointStartX,e.centerPointStartY,150):(h=e.limitPosition(s,n,a,c),i.fancybox.setTranslate(e.content,i.fancybox.getTranslate(e.$content)),i.fancybox.animate(e.$content,h,150)))},w.prototype.onTap=function(s){var n,h=this,t=i(s.target),e=h.instance,o=e.current,a=s&&g(s)||h.startPoints,c=a[0]?a[0].x-h.$stage.offset().left:0,r=a[0]?a[0].y-h.$stage.offset().top:0,p=function($){var b=o.opts[$];if(i.isFunction(b)&&(b=b.apply(e,[o,s])),b)switch(b){case"close":e.close(h.startEvent);break;case"toggleControls":e.toggleControls(!0);break;case"next":e.next();break;case"nextOrClose":e.group.length>1?e.next():e.close(h.startEvent);break;case"zoom":o.type=="image"&&(o.isLoaded||o.$ghost)&&(e.canPan()?e.scaleToFit():e.isScaledDown()?e.scaleToActual(c,r):e.group.length<2&&e.close(h.startEvent))}};if(!(s.originalEvent&&s.originalEvent.button==2||e.isSliding||c>t[0].clientWidth+t.offset().left)){if(t.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))n="Outside";else if(t.is(".fancybox-slide"))n="Slide";else{if(!e.current.$content||!e.current.$content.has(s.target).length)return;n="Content"}if(h.tapped){if(clearTimeout(h.tapped),h.tapped=null,Math.abs(c-h.tapX)>50||Math.abs(r-h.tapY)>50||e.isSliding)return this;p("dblclick"+n)}else h.tapX=c,h.tapY=r,o.opts["dblclick"+n]&&o.opts["dblclick"+n]!==o.opts["click"+n]?h.tapped=setTimeout(function(){h.tapped=null,p("click"+n)},300):p("click"+n);return this}},i(y).on("onActivate.fb",function(s,n){n&&!n.Guestures&&(n.Guestures=new w(n))}),i(y).on("beforeClose.fb",function(s,n){n&&n.Guestures&&n.Guestures.destroy()})}(window,document,window.jQuery||jQuery),function(m,y){var i=function(l){this.instance=l,this.init()};y.extend(i.prototype,{timer:null,isActive:!1,$button:null,speed:3e3,init:function(){var l=this;l.$button=l.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){l.toggle()}),(l.instance.group.length<2||!l.instance.group[l.instance.currIndex].opts.slideShow)&&l.$button.hide()},set:function(l){var u=this;console.info("== set; force: "+l),u.instance&&u.instance.current&&(l===!0||u.instance.current.opts.loop||u.instance.currIndex> "+(u.instance.current.index+1%u.instance.group.length-1)),u.instance.jumpTo(u.instance.current.index%u.instance.group.length-1)},u.instance.current.opts.slideShow.speed||u.speed)):(u.stop(),u.instance.idleSecondsCounter=0,u.instance.showControls())},clear:function(){var l=this;clearTimeout(l.timer),l.timer=null},start:function(){var l=this,u=l.instance.current;u&&(console.info(u),l.isActive=!0,l.$button.attr("title",u.opts.i18n[u.opts.lang].PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),l.set(!0))},stop:function(){var l=this,u=l.instance.current;l.clear(),l.$button.attr("title",u.opts.i18n[u.opts.lang].PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),l.isActive=!1},toggle:function(){var l=this;l.isActive?l.stop():l.start()}}),y(m).on({"onInit.fb":function(l,u){u&&!u.SlideShow&&(u.SlideShow=new i(u))},"beforeShow.fb":function(l,u,g,v){var x=u&&u.SlideShow;v?x&&g.opts.slideShow.autoStart&&x.start():x&&x.isActive&&x.clear()},"afterShow.fb":function(l,u,g){var v=u&&u.SlideShow;v&&v.isActive&&v.set()},"afterKeydown.fb":function(l,u,g,v,x){var P=u&&u.SlideShow;!P||!g.opts.slideShow||x!==80&&x!==32||y(m.activeElement).is("button,a,input")||(v.preventDefault(),P.toggle())},"beforeClose.fb onDeactivate.fb":function(l,u){var g=u&&u.SlideShow;g&&g.stop()}}),y(m).on("visibilitychange",function(){var l=y.fancybox.getInstance(),u=l&&l.SlideShow;u&&u.isActive&&(m.hidden?u.clear():u.set())})}(document,window.jQuery||jQuery),function(m,y){var i=function(){var u,g,v,x=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],P={};for(g=0;g1&&l.instance.group[l.instance.currIndex].opts.thumbs&&(u.type=="image"||u.opts.thumb||u.opts.$thumb)&&(g.type=="image"||g.opts.thumb||g.opts.$thumb)?(l.$button.on("click",function(){l.toggle()}),l.isActive=!0):(l.$button.hide(),l.isActive=!1)},create:function(){var l,u,g=this.instance;this.$grid=y('').appendTo(g.$refs.container),l="",y.each(g.group,function(v,x){u=x.opts.thumb||(x.opts.$thumb?x.opts.$thumb.attr("src"):null),u||x.type!=="image"||(u=x.src),u&&u.length&&(l+='')}),l+="
",this.$list=y(l).appendTo(this.$grid).on("click","li",function(){g.jumpTo(y(this).data("index"))}),this.$list.find("img").hide().one("load",function(){var v,x,P,S,w=y(this).parent().removeClass("fancybox-thumbs-loading"),s=w.outerWidth(),n=w.outerHeight();v=this.naturalWidth||this.width,x=this.naturalHeight||this.height,P=v/s,S=x/n,P>=1&&S>=1&&(P>S?(v/=S,x=n):(v=s,x/=P)),y(this).css({width:Math.floor(v),height:Math.floor(x),"margin-top":Math.min(0,Math.floor(.3*n-.3*x)),"margin-left":Math.min(0,Math.floor(.5*s-.5*v))}).show()}).each(function(){this.src=y(this).data("src")})},focus:function(){this.instance.current&&this.$list.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("fancybox-thumbs-active").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.instance.trigger("onThumbsShow"),this.focus()):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()}}),y(m).on({"onInit.fb":function(l,u){u&&!u.Thumbs&&(u.Thumbs=new i(u))},"beforeShow.fb":function(l,u,g,v){var x=u&&u.Thumbs;if(x&&x.isActive){if(g.modal)return x.$button.hide(),void x.hide();v&&g.opts.thumbs.autoStart===!0&&x.show(),x.isVisible&&x.focus()}},"afterKeydown.fb":function(l,u,g,v,x){var P=u&&u.Thumbs;P&&P.isActive&&x===71&&(v.preventDefault(),P.toggle())},"beforeClose.fb":function(l,u){var g=u&&u.Thumbs;g&&g.isVisible&&u.opts.thumbs.hideOnClose!==!1&&g.close()}})}(document,window.jQuery||jQuery),function(m,y){y.extend(!0,y.fancybox.defaults,{btnTpl:{share:''},shareTpl:''}),y(m).on("click","[data-fancybox-share]",function(){var i=y.fancybox.getInstance();i&&y.fancybox.open({src:i.translate(i,i.current.opts.shareTpl.replace(/\{\{src\}\}/g,encodeURI(i.current.src)).replace(/\{\{descr\}\}/g,encodeURI(i.current.caption||""))),type:"html",opts:{autoFocus:!1,animationEffect:"fade"}})})}(document,window.jQuery||jQuery),function(m,y,i){function l(){var S=y.location.hash.substr(1),w=S.split("-"),s=w.length>1&&/^\+?\d+$/.test(w[w.length-1])&&parseInt(w.pop(-1),10)||1,n=w.join("-");return s<1&&(s=1),{hash:S,index:s,gallery:n}}function u(S){var w;S.gallery!==""&&(w=i("[data-fancybox='"+i.escapeSelector(S.gallery)+"']").eq(S.index-1),w.length||(w=i("#"+i.escapeSelector(S.gallery))),w.length&&(v=!1,w.trigger("click")))}function g(S){var w;return!!S&&(w=S.current?S.current.opts:S.opts,w.hash||(w.$orig?w.$orig.data("fancybox"):""))}i.escapeSelector||(i.escapeSelector=function(S){var w=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,s=function(n,h){return h?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n};return(S+"").replace(w,s)});var v=!0,x=null,P=null;i(function(){i(m).on({"onInit.fb":function(S,w){var s,n;w.group[w.currIndex].opts.hash!==!1&&(s=l(),n=g(w),n&&s.gallery&&n==s.gallery&&(w.currIndex=s.index-1))},"beforeShow.fb":function(S,w,s){var n;s&&s.opts.hash!==!1&&(n=g(w),n&&n!==""&&(y.location.hash.indexOf(n)<0&&(w.opts.origHash=y.location.hash),x=n+(w.group.length>1?"-"+(s.index+1):""),"replaceState"in y.history?(P&&clearTimeout(P),P=setTimeout(function(){y.history[v?"pushState":"replaceState"]({},m.title,y.location.pathname+y.location.search+"#"+x),P=null,v=!1},300)):y.location.hash=x))},"beforeClose.fb":function(S,w,s){var n,h;P&&clearTimeout(P),s.opts.hash!==!1&&(n=g(w),h=w&&w.opts.origHash?w.opts.origHash:"",n&&n!==""&&("replaceState"in history?y.history.replaceState({},m.title,y.location.pathname+y.location.search+h):(y.location.hash=h,i(y).scrollTop(w.scrollTop).scrollLeft(w.scrollLeft))),x=null)}}),i(y).on("hashchange.fb",function(){var S=l();i.fancybox.getInstance()?!x||x===S.gallery+"-"+S.index||S.index===1&&x==S.gallery||(x=null,i.fancybox.close()):S.gallery!==""&&u(S)}),u(l())})}(document,window,window.jQuery||jQuery);