1(function(window2,document2,$,undefined2){"use strict";if(window2.console=window2.console||{info:function(stuff){}},!$)return;if($.fn.fancybox){console.info("fancyBox already initialized");return}var defaults={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:!0,toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:".fancybox-wrapper",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:$.noop,beforeLoad:$.noop,afterLoad:$.noop,beforeShow:$.noop,afterShow:$.noop,beforeClose:$.noop,afterClose:$.noop,onActivate:$.noop,onDeactivate:$.noop,clickContent:function(current,event){return current.type==="image"?"zoom":!1},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(current,event){return current.type==="image"?"toggleControls":!1},clickSlide:function(current,event){return current.type==="image"?"toggleControls":"close"},dblclickContent:function(current,event){return current.type==="image"?"zoom":!1},dblclickSlide:function(current,event){return current.type==="image"?"zoom":!1}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> 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. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaub
1ilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},$W=$(window2),$D=$(document2),called=0,isQuery=function(obj){return obj&&obj.hasOwnProperty&&obj instanceof $},requestAFrame=(function(){return window2.requestAnimationFrame||window2.webkitRequestAnimationFrame||window2.mozRequestAnimationFrame||window2.oRequestAnimationFrame||function(callback){return window2.setTimeout(callback,1e3/60)}})(),cancelAFrame=(function(){return window2.cancelAnimationFrame||window2.webkitCancelAnimationFrame||window2.mozCancelAnimationFrame||window2.oCancelAnimationFrame||function(id){window2.clearTimeout(id)}})(),transitionEnd=(function(){var el=document2.createElement("fakeelement"),t,transitions={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in transitions)if(el.style[t]!==undefined2)return transitions[t];return"transitionend"})(),forceRedraw=function($el){return $el&&$el.length&&$el[0].offsetHeight},mergeOpts=function(opts1,opts2){var rez=$.extend(!0,{},opts1,opts2);return $.each(opts2,function(key,value){$.isArray(value)&&(rez[key]=value)}),rez},inViewport=function(elem){var elemCenter,rez;return!elem||elem.ownerDocument!==document2?!1:($(".fancybox-container").css("pointer-events","none"),elemCenter={x:elem.getBoundingClientRect().left+elem.offsetWidth/2,y:elem.getBoundingClientRect().top+elem.offsetHeight/2},rez=document2.elementFromPoint(elemCenter.x,elemCenter.y)===elem,$(".fancybox-container").css("pointer-events",""),rez)},FancyBox=function(content,opts,index){var self=this;self.opts=mergeOpts({index:index},$.fancybox.defaults),$.isPlainObject(opts)&&(self.opts=mergeOpts(self.opts,opts)),$.fancybox.isMobile&&(self.opts=mergeOpts(self.opts,self.opts.mobile)),self.id=self.opts.id||++called,self.currIndex=parseInt(self.opts.index,10)||0,self.prevIndex=null,self.prevPos=null,self.currPos=0,self.firstRun=!0,self.group=[],self.slides={},self.addContent(content),self.group.length&&self.init()};$.extend(FancyBox.prototype,{init:function(){var self=this,firstItem=self.group[self.currIndex],firstItemOpts=firstItem.opts,$container,buttonStr;firstItemOpts.closeExisting&&$.fancybox.close(!0),$("body").addClass("fancybox-active"),!$.fancybox.getInstance()&&firstItemOpts.hideScrollbar!==!1&&!$.fancybox.isMobile&&document2.body.scrollHeight>window2.innerHeight&&($("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(window2.innerWidth-document2.documentElement.clientWidth)+"px;}</style>"),$("body").addClass("compensate-for-scrollbar")),buttonStr="",$.each(firstItemOpts.buttons,function(index,value){buttonStr+=firstItemOpts.btnTpl[value]||""}),$container=$(self.translate(self,firstItemOpts.baseTpl.replace("{{buttons}}",buttonStr).replace("{{arrows}}",firstItemOpts.btnTpl.arrowLeft+firstItemOpts.btnTpl.arrowRight))).attr("id","fancybox-container-"+self.id).addClass(firstItemOpts.baseClass).data("FancyBox",self).appendTo(firstItemOpts.parentEl),self.$refs={container:$container},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(item){self.$refs[item]=$container.find(".fancybox-"+item)}),self.trigger("onInit"),self.activate(),self.jumpTo(self.currIndex)},translate:function(obj,str){var arr=obj.opts.i18n[obj.opts.lang]||obj.opts.i18n.en;return str.replace(/\{\{(\w+)\}\}/g,function(match,n){return arr[n]===undefined2?match:arr[n]})},addContent:function(content){var self=this,items=$.makeArray(content),thumbs;$.each(items,function(i,item){var obj={},opts={},$item,type,found,src,srcParts;$.isPlainObject(item)?(obj=item,opts=item.opts||item):$.type(item)==="object"&&$(item).length?($item=$(item),opts=$item.data()||{},opts=$.extend(!0,{},opts,opts.options),opts.$orig=$item,obj.src=self.opts.src||opts.src||$item.attr("href"),!obj.type&&!obj.src&&(obj.type="inline",obj.src=item)):obj={type:"html",src:item+""},obj.opts=$.extend(!0,{},self.opts,opts),$.isArray(opts.buttons)&&(obj.opts.buttons=opts.buttons),$.fancybox.isMobile&&obj.opts.mobile&&(obj.opts=mergeOpts(obj.opts,obj.opts.mobile)),type=obj.type||obj.opts.type,src=obj.src||"",!type&&src&&((found=src.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(type="video",obj.opts.video.format||(obj.opts.video.format="video/"+(found[1]==="ogv"?"ogg":found[1]))):src.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?type="image":src.match(/\.(pdf)((\?|#).*)?$/i)?(type="iframe",obj=$.extend(!0,obj,{contentType:"pdf",opts:{iframe:{preload:!1}}})):src.charAt(0)==="#"&&(type="inline")),type?obj.type=type:self.trigger("objectNeedsType",obj),obj.contentType||(obj.contentType=$.inArray(obj.type,["html","inline","ajax"])>-1?"html":obj.type),obj.index=self.group.length,obj.opts.smallBtn=="auto"&&(obj.opts.smallBtn=$.inArray(obj.type,["html","inline","ajax"])>-1),obj.opts.toolbar==="auto"&&(obj.opts.toolbar=!obj.opts.smallBtn),obj.$thumb=obj.opts.$thumb||null,obj.opts.$trigger&&obj.index===self.opts.index&&(obj.$thumb=obj.opts.$trigger.find("img:first"),obj.$thumb.length&&(obj.opts.$orig=obj.opts.$trigger)),!(obj.$thumb&&obj.$thumb.length)&&obj.opts.$orig&&(obj.$thumb=obj.opts.$orig.find("img:first")),obj.$thumb&&!obj.$thumb.length&&(obj.$thumb=null),obj.thumb=obj.opts.thumb||(obj.$thumb?obj.$thumb[0].src:null),$.type(obj.opts.caption)==="function"&&(obj.opts.caption=obj.opts.caption.apply(item,[self,obj])),$.type(self.opts.caption)==="function"&&(obj.opts.caption=self.opts.caption.apply(item,[self,obj])),obj.opts.caption instanceof $||(obj.opts.caption=obj.opts.caption===undefined2?"":obj.opts.caption+""),obj.type==="ajax"&&(srcParts=src.split(/\s+/,2),srcParts.length>1&&(obj.src=srcParts.shift(),obj.opts.filter=srcParts.shift())),obj.opts.modal&&(obj.opts=$.extend(!0,obj.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})),self.group.push(obj)}),Object.keys(self.slides).length&&(self.updateControls(),thumbs=self.Thumbs,thumbs&&thumbs.isActive&&(thumbs.create(),thumbs.focus()))},addEvents:function(){var self=this;self.removeEvents(),self.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation(),e.preventDefault(),self.close(e)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation(),e.preventDefault(),self.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(e){e.stopPropagation(),e.preventDefault(),self.next()}).on("click.fb","[data-fancybox-zoom]",function(e){self[self.isScaledDown()?"scaleToActual":"scaleToFit"]()}),$W.on("orientationchange.fb resize.fb",function(e){e&&e.originalEvent&&e.originalEvent.type==="resize"?(self.requestId&&cancelAFrame(self.requestId),self.requestId=requestAFrame(function(){self.update(e)})):(self.current&&self.current.type==="iframe"&&self.$refs.stage.hide(),setTimeout(function(){self.$refs.stage.show(),self.update(e)},$.fancybox.isMobile?600:250))}),$D.on("keydown.fb",function(e){var instance=$.fancybox?$.fancybox.getInstance():null,current=instance.current,keycode=e.keyCode||e.which;if(keycode==9){current.opts.trapFocus&&self.focus(e);return}if(!(!current.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||$(e.target).is("input,textarea,video,audio"))){if
vendor: 6,132 bytes, line 1
1(keycode===8||keycode===27){e.preventDefault(),self.close(e);return}if(keycode===37||keycode===38){e.preventDefault(),self.previous();return}if(keycode===39||keycode===40){e.preventDefault(),self.next();return}self.trigger("afterKeydown",e,keycode)}}),self.group[self.currIndex].opts.idleTime&&(self.idleSecondsCounter=0,$D.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(e){self.idleSecondsCounter=0,self.isIdle&&self.showControls(),self.isIdle=!1}),self.idleInterval=window2.setInterval(function(){self.idleSecondsCounter++,self.idleSecondsCounter>=self.group[self.currIndex].opts.idleTime&&!self.isDragging&&(self.isIdle=!0,self.idleSecondsCounter=0,self.hideControls())},1e3))},removeEvents:function(){var self=this;$W.off("orientationchange.fb resize.fb"),$D.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),self.idleInterval&&(window2.clearInterval(self.idleInterval),self.idleInterval=null)},previous:function(duration){return this.jumpTo(this.currPos-1,duration)},next:function(duration){return this.jumpTo(this.currPos+1,duration)},jumpTo:function(pos,duration){var self=this,groupLen=self.group.length,firstRun,isMoved,loop,current,previous,slidePos,stagePos,prop,diff;if(!(self.isDragging||self.isClosing||self.isAnimating&&self.firstRun)){if(pos=parseInt(pos,10),loop=self.current?self.current.opts.loop:self.opts.loop,!loop&&(pos<0||pos>=groupLen))return!1;if(firstRun=self.firstRun=!Object.keys(self.slides).length,previous=self.current,self.prevIndex=self.currIndex,self.prevPos=self.currPos,current=self.createSlide(pos),groupLen>1&&((loop||current.index<groupLen-1)&&self.createSlide(pos+1),(loop||current.index>0)&&self.createSlide(pos-1)),self.current=current,self.currIndex=current.index,self.currPos=current.pos,self.trigger("beforeShow",firstRun),self.updateControls(),current.forcedDuration=undefined2,$.isNumeric(duration)?current.forcedDuration=duration:duration=current.opts[firstRun?"animationDuration":"transitionDuration"],duration=parseInt(duration,10),isMoved=self.isMoved(current),current.$slide.addClass("fancybox-slide--current"),firstRun){current.opts.animationEffect&&duration&&self.$refs.container.css("transition-duration",duration+"ms"),self.$refs.container.addClass("fancybox-is-open").trigger("focus"),self.loadSlide(current),self.preload("image");return}slidePos=$.fancybox.getTranslate(previous.$slide),stagePos=$.fancybox.getTranslate(self.$refs.stage),$.each(self.slides,function(index,slide){$.fancybox.stop(slide.$slide,!0)}),previous.pos!==current.pos&&(previous.isComplete=!1),previous.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),isMoved?(diff=slidePos.left-(previous.pos*slidePos.width+previous.pos*previous.opts.gutter),$.each(self.slides,function(index,slide){slide.$slide.removeClass("fancybox-animated").removeClass(function(index2,className){return(className.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var leftPos=slide.pos*slidePos.width+slide.pos*slide.opts.gutter;$.fancybox.setTranslate(slide.$slide,{top:0,left:leftPos-stagePos.left+diff}),slide.pos!==current.pos&&slide.$slide.addClass("fancybox-slide--"+(slide.pos>current.pos?"next":"previous")),forceRedraw(slide.$slide),$.fancybox.animate(slide.$slide,{top:0,left:(slide.pos-current.pos)*slidePos.width+(slide.pos-current.pos)*slide.opts.gutter},duration,function(){slide.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),slide.pos===self.currPos&&self.complete()})})):duration&¤t.opts.transitionEffect&&(prop="fancybox-animated fancybox-fx-"+current.opts.transitionEffect,previous.$slide.addClass("fancybox-slide--"+(previous.pos>current.pos?"next":"previous")),$.fancybox.animate(previous.$slide,prop,duration,function(){previous.$slide.removeClass(prop).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),current.isLoaded?self.revealContent(current):self.loadSlide(current),self.preload("image")}},createSlide:function(pos){var self=this,$slide,index;return index=pos%self.group.length,index=index<0?self.group.length+index:index,!self.slides[pos]&&self.group[index]&&($slide=$('<div class="fancybox-slide"></div>').appendTo(self.$refs.stage),self.slides[pos]=$.extend(!0,{},self.group[index],{pos:pos,$slide:$slide,isLoaded:!1}),self.updateSlide(self.slides[pos])),self.slides[pos]},scaleToActual:function(x,y,duration){var self=this,current=self.current,$content=current.$content,canvasWidth=$.fancybox.getTranslate(current.$slide).width,canvasHeight=$.fancybox.getTranslate(current.$slide).height,newImgWidth=current.width,newImgHeight=current.height,imgPos,posX,posY,scaleX,scaleY;self.isAnimating||self.isMoved()||!$content||!(current.type=="image"&¤t.isLoaded&&!current.hasError)||(self.isAnimating=!0,$.fancybox.stop($content),x=x===undefined2?canvasWidth*.5:x,y=y===undefined2?canvasHeight*.5:y,imgPos=$.fancybox.getTranslate($content),imgPos.top-=$.fancybox.getTranslate(current.$slide).top,imgPos.left-=$.fancybox.getTranslate(current.$slide).left,scaleX=newImgWidth/imgPos.width,scaleY=newImgHeight/imgPos.height,posX=canvasWidth*.5-newImgWidth*.5,posY=canvasHeight*.5-newImgHeight*.5,newImgWidth>canvasWidth&&(posX=imgPos.left*scaleX-(x*scaleX-x),posX>0&&(posX=0),posX<canvasWidth-newImgWidth&&(posX=canvasWidth-newImgWidth)),newImgHeight>canvasHeight&&(posY=imgPos.top*scaleY-(y*scaleY-y),posY>0&&(posY=0),posY<canvasHeight-newImgHeight&&(posY=canvasHeight-newImgHeight)),self.updateCursor(newImgWidth,newImgHeight),$.fancybox.animate($content,{top:posY,left:posX,scaleX:scaleX,scaleY:scaleY},duration||366,function(){self.isAnimating=!1}),self.SlideShow&&self.SlideShow.isActive&&self.SlideShow.stop())},scaleToFit:function(duration){var self=this,current=self.current,$content=current.$content,end;self.isAnimating||self.isMoved()||!$content||!(current.type=="image"&¤t.isLoaded&&!current.hasError)||(self.isAnimating=!0,$.fancybox.stop($content),end=self.getFitPos(current),self.updateCursor(end.width,end.height),$.fancybox.animate($content,{top:end.top,left
1:end.left,scaleX:end.width/$content.width(),scaleY:end.height/$content.height()},duration||366,function(){self.isAnimating=!1}))},getFitPos:function(slide){var self=this,$content=slide.$content,$slide=slide.$slide,width=slide.width||slide.opts.width,height=slide.height||slide.opts.height,maxWidth,maxHeight,minRatio,aspectRatio,rez={};return!slide.isLoaded||!$content||!$content.length?!1:(maxWidth=$.fancybox.getTranslate(self.$refs.stage).width,maxHeight=$.fancybox.getTranslate(self.$refs.stage).height,maxWidth-=parseFloat($slide.css("paddingLeft"))+parseFloat($slide.css("paddingRight"))+parseFloat($content.css("marginLeft"))+parseFloat($content.css("marginRight")),maxHeight-=parseFloat($slide.css("paddingTop"))+parseFloat($slide.css("paddingBottom"))+parseFloat($content.css("marginTop"))+parseFloat($content.css("marginBottom")),(!width||!height)&&(width=maxWidth,height=maxHeight),minRatio=Math.min(1,maxWidth/width,maxHeight/height),width=minRatio*width,height=minRatio*height,width>maxWidth-.5&&(width=maxWidth),height>maxHeight-.5&&(height=maxHeight),slide.type==="image"?(rez.top=Math.floor((maxHeight-height)*.5)+parseFloat($slide.css("paddingTop")),rez.left=Math.floor((maxWidth-width)*.5)+parseFloat($slide.css("paddingLeft"))):slide.contentType==="video"&&(aspectRatio=slide.opts.width&&slide.opts.height?width/height:slide.opts.ratio||16/9,height>width/aspectRatio?height=width/aspectRatio:width>height*aspectRatio&&(width=height*aspectRatio)),rez.width=width,rez.height=height,rez)},update:function(e){var self=this;$.each(self.slides,function(key,slide){self.updateSlide(slide,e)})},updateSlide:function(slide,e){var self=this,$content=slide&&slide.$content,width=slide.width||slide.opts.width,height=slide.height||slide.opts.height,$slide=slide.$slide;self.adjustCaption(slide),$content&&(width||height||slide.contentType==="video")&&!slide.hasError&&($.fancybox.stop($content),$.fancybox.setTranslate($content,self.getFitPos(slide)),slide.pos===self.currPos&&(self.isAnimating=!1,self.updateCursor())),self.adjustLayout(slide),$slide.length&&($slide.trigger("refresh"),slide.pos===self.currPos&&self.$refs.toolbar.add(self.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",$slide.get(0).scrollHeight>$slide.get(0).clientHeight)),self.trigger("onUpdate",slide,e)},centerSlide:function(duration){var self=this,current=self.current,$slide=current.$slide;self.isClosing||!current||($slide.siblings().css({transform:"",opacity:""}),$slide.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),$.fancybox.animate($slide,{top:0,left:0,opacity:1},duration===undefined2?0:duration,function(){$slide.css({transform:"",opacity:""}),current.isComplete||self.complete()},!1))},isMoved:function(slide){var current=slide||this.current,slidePos,stagePos;return current?(stagePos=$.fancybox.getTranslate(this.$refs.stage),slidePos=$.fancybox.getTranslate(current.$slide),!current.$slide.hasClass("fancybox-animated")&&(Math.abs(slidePos.top-stagePos.top)>.5||Math.abs(slidePos.left-stagePos.left)>.5)):!1},updateCursor:function(nextWidth,nextHeight){var self=this,current=self.current,$container=self.$refs.container,canPan,isZoomable;!current||self.isClosing||!self.Guestures||($container.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),canPan=self.canPan(nextWidth,nextHeight),isZoomable=canPan?!0:self.isZoomable(),$container.toggleClass("fancybox-is-zoomable",isZoomable),$("[data-fancybox-zoom]").prop("disabled",!isZoomable),canPan?$container.addClass("fancybox-can-pan"):isZoomable&&(current.opts.clickContent==="zoom"||$.isFunction(current.opts.clickContent)&¤t.opts.clickContent(current)=="zoom")?$container.addClass("fancybox-can-zoomIn"):current.opts.touch&&(current.opts.touch.vertical||self.group.length>1)&¤t.contentType!=="video"&&$container.addClass("fancybox-can-swipe"))},isZoomable:function(){var self=this,current=self.current,fitPos;return!!(current&&!self.isClosing&¤t.type==="image"&&!current.hasError&&(!current.isLoaded||(fitPos=self.getFitPos(current),fitPos&&(current.width>fitPos.width||current.height>fitPos.height))))},isScaledDown:function(nextWidth,nextHeight){var self=this,rez=!1,current=self.current,$content=current.$content;return nextWidth!==undefined2&&nextHeight!==undefined2?rez=nextWidth<current.width&&nextHeight<current.height:$content&&(rez=$.fancybox.getTranslate($content),rez=rez.width<current.width&&rez.height<current.height),rez},canPan:function(nextWidth,nextHeight){var self=this,current=self.current,pos=null,rez=!1;return current.type==="image"&&(current.isComplete||nextWidth&&nextHeight)&&!current.hasError&&(rez=self.getFitPos(current),nextWidth!==undefined2&&nextHeight!==undefined2?pos={width:nextWidth,height:nextHeight}:current.isComplete&&(pos=$.fancybox.getTranslate(current.$content)),pos&&rez&&(rez=Math.abs(pos.width-rez.width)>1.5||Math.abs(pos.height-rez.height)>1.5)),rez},loadSlide:function(slide){var self=this,type,$slide,ajaxLoad;if(!(slide.isLoading||slide.isLoaded)){if(slide.isLoading=!0,self.trigger("beforeLoad",slide)===!1)return slide.isLoading=!1,!1;
1switch(type=slide.type,$slide=slide.$slide,$slide.off("refresh").trigger("onReset").addClass(slide.opts.slideClass),type){case"image":self.setImage(slide);break;case"iframe":self.setIframe(slide);break;case"html":self.setContent(slide,slide.src||slide.content);break;case"video":self.setContent(slide,slide.opts.video.tpl.replace(/\{\{src\}\}/gi,slide.src).replace("{{format}}",slide.opts.videoFormat||slide.opts.video.format||"").replace("{{poster}}",slide.thumb||""));break;case"inline":$(slide.src).length?self.setContent(slide,$(slide.src)):self.setError(slide);break;case"ajax":self.showLoading(slide),ajaxLoad=$.ajax($.extend({},slide.opts.ajax.settings,{url:slide.src,success:function(data,textStatus){textStatus==="success"&&self.setContent(slide,data)},error:function(jqXHR,textStatus){jqXHR&&textStatus!=="abort"&&self.setError(slide)}})),$slide.one("onReset",function(){ajaxLoad.abort()});break;default:self.setError(slide);break}return!0}},setImage:function(slide){var self=this,ghost;setTimeout(function(){var $img=slide.$image;!self.isClosing&&slide.isLoading&&(!$img||!$img.length||!$img[0].complete)&&!slide.hasError&&self.showLoading(slide)},50),self.checkSrcset(slide),slide.$content=$('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(slide.$slide.addClass("fancybox-slide--image")),slide.opts.preload!==!1&&slide.opts.width&&slide.opts.height&&slide.thumb&&(slide.width=slide.opts.width,slide.height=slide.opts.height,ghost=document2.createElement("img"),ghost.onerror=function(){$(this).remove(),slide.$ghost=null},ghost.onload=function(){self.afterLoad(slide)},slide.$ghost=$(ghost).addClass("fancybox-image").appendTo(slide.$content).attr("src",slide.thumb)),self.setBigImage(slide)},checkSrcset:function(slide){var srcset=slide.opts.srcset||slide.opts.image.srcset,found,temp,pxRatio,windowWidth;
vendor: 5,213 bytes, line 1
1if(srcset){pxRatio=window2.devicePixelRatio||1,windowWidth=window2.innerWidth*pxRatio,temp=srcset.split(",").map(function(el2){var ret={};return el2.trim().split(/\s+/).forEach(function(el3,i){var value=parseInt(el3.substring(0,el3.length-1),10);if(i===0)return ret.url=el3;value&&(ret.value=value,ret.postfix=el3[el3.length-1])}),ret}),temp.sort(function(a,b){return a.value-b.value});for(var j=0;j<temp.length;j++){var el=temp[j];if(el.postfix==="w"&&el.value>=windowWidth||el.postfix==="x"&&el.value>=pxRatio){found=el;break}}!found&&temp.length&&(found=temp[temp.length-1]),found&&(slide.src=found.url,slide.width&&slide.height&&found.postfix=="w"&&(slide.height=slide.width/slide.height*found.value,slide.width=found.value),slide.opts.srcset=srcset)}},setBigImage:function(slide){var self=this,img=document2.createElement("img"),$img=$(img);slide.$image=$img.one("error",function(){self.setError(slide)}).one("load",function(){var sizes;slide.$ghost||(self.resolveImageSlideSize(slide,this.naturalWidth,this.naturalHeight),self.afterLoad(slide)),!self.isClosing&&(slide.opts.srcset&&(sizes=slide.opts.sizes,(!sizes||sizes==="auto")&&(sizes=(slide.width/slide.height>1&&$W.width()/$W.height()>1?"100":Math.round(slide.width/slide.height*100))+"vw"),$img.attr("sizes",sizes).attr("srcset",slide.opts.srcset)),slide.$ghost&&setTimeout(function(){slide.$ghost&&!self.isClosing&&slide.$ghost.hide()},Math.min(300,Math.max(1e3,slide.height/1600))),self.hideLoading(slide))}).addClass("fancybox-image").attr("src",slide.src).appendTo(slide.$content),(img.complete||img.readyState=="complete")&&$img.naturalWidth&&$img.naturalHeight?$img.trigger("load"):img.error&&$img.trigger("error")},resolveImageSlideSize:function(slide,imgWidth,imgHeight){var maxWidth=parseInt(slide.opts.width,10),maxHeight=parseInt(slide.opts.height,10);slide.width=imgWidth,slide.height=imgHeight,maxWidth>0&&(slide.width=maxWidth,slide.height=Math.floor(maxWidth*imgHeight/imgWidth)),maxHeight>0&&(slide.width=Math.floor(maxHeight*imgWidth/imgHeight),slide.height=maxHeight)},setIframe:function(slide){var self=this,opts=slide.opts.iframe,$slide=slide.$slide,$iframe;slide.$content=$('<div class="fancybox-content'+(opts.preload?" fancybox-is-hidden":"")+'"></div>').css(opts.css).appendTo($slide),$slide.addClass("fancybox-slide--"+slide.contentType),slide.$iframe=$iframe=$(opts.tpl.replace(/\{rnd\}/g,new Date().getTime())).attr(opts.attr).appendTo(slide.$content),opts.preload?(self.showLoading(slide),$iframe.on("load.fb error.fb",function(e){this.isReady=1,slide.$slide.trigger("refresh"),self.afterLoad(slide)}),$slide.on("refresh.fb",function(){var $content=slide.$content,frameWidth=opts.css.width,frameHeight=opts.css.height,$contents,$body;if($iframe[0].isReady===1){try{$contents=$iframe.contents(),$body=$contents.find("body")}catch(ignore){}$body&&$body.length&&$body.children().length&&($slide.css("overflow","visible"),$content.css({width:"100%","max-width":"100%",height:"9999px"}),frameWidth===undefined2&&(frameWidth=Math.ceil(Math.max($body[0].clientWidth,$body.outerWidth(!0)))),$content.css("width",frameWidth||"").css("max-width",""),frameHeight===undefined2&&(frameHeight=Math.ceil(Math.max($body[0].clientHeight,$body.outerHeight(!0)))),$content.css("height",frameHeight||""),$slide.css("overflow","auto")),$content.removeClass("fancybox-is-hidden")}})):self.afterLoad(slide),$iframe.attr("src",slide.src),$slide.one("onReset",function(){try{$(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(ignore){}$(this).off("refresh.fb").empty(),slide.isLoaded=!1,slide.isRevealed=!1})},setContent:function(slide,content){var self=this;self.isClosing||(self.hideLoading(slide),slide.$content&&$.fancybox.stop(slide.$content),slide.$slide.empty(),isQuery(content)&&content.parent().length?((content.hasClass("fancybox-content")||content.parent().hasClass("fancybox-content"))&&content.parents(".fancybox-slide").trigger("onReset"),slide.$placeholder=$("<div>").hide().insertAfter(content),content.css("display","inline-block")):slide.hasError||($.type(content)==="string"&&(content=$("<div>").append($.trim(content)).contents()),slide.opts.filter&&(content=$("<div>").html(content).find(slide.opts.filter))),slide.$slide.one("onReset",function(){$(this).find("video,audio").trigger("pause"),slide.$placeholder&&(slide.$placeholder.after(content.removeClass("fancybox-content").hide()).remove(),slide.$placeholder=null),slide.$smallBtn&&(slide.$smallBtn.remove(),slide.$smallBtn=null),slide.hasError||($(this).empty(),slide.isLoaded=!1,slide.isRevealed=!1)}),$(content).appendTo(slide.$slide),$(content).is("video,audio")&&($(content).addClass("fancybox-video"),$(content).wrap("<div></div>"),slide.contentType="video",slide.opts.width=slide.opts.width||$(content).attr("width"),slide.opts.height=slide.opts.height||$(content).attr("height")),slide.$content=slide.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),slide.$content.siblings().hide(),slide.$content.length||(slide.$content=slide.$slide.wrapInner("<div></div>").children().first()),slide.$content.addClass("fancybox-content"),slide.$slide.addClass("fancybox-slide--"+slide.contentType),self.afterLoad(sli
1de))},setError:function(slide){slide.hasError=!0,slide.$slide.trigger("onReset").removeClass("fancybox-slide--"+slide.contentType).addClass("fancybox-slide--error"),slide.contentType="html",this.setContent(slide,this.translate(slide,slide.opts.errorTpl)),slide.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(slide){var self=this;slide=slide||self.current,slide&&!slide.$spinner&&(slide.$spinner=$(self.translate(self,self.opts.spinnerTpl)).appendTo(slide.$slide).hide().fadeIn("fast"))},hideLoading:function(slide){var self=this;slide=slide||self.current,slide&&slide.$spinner&&(slide.$spinner.stop().remove(),delete slide.$spinner)},afterLoad:function(slide){var self=this;self.isClosing||(slide.isLoading=!1,slide.isLoaded=!0,self.trigger("afterLoad",slide),self.hideLoading(slide),slide.opts.smallBtn&&(!slide.$smallBtn||!slide.$smallBtn.length)&&(slide.$smallBtn=$(self.translate(slide,slide.opts.btnTpl.smallBtn)).appendTo(slide.$content)),slide.opts.protect&&slide.$content&&!slide.hasError&&(slide.$content.on("contextmenu.fb",function(e){return e.button==2&&e.preventDefault(),!0}),slide.type==="image"&&$('<div class="fancybox-spaceball"></div>').appendTo(slide.$content)),self.adjustCaption(slide),self.adjustLayout(slide),slide.pos===self.currPos&&self.updateCursor(),self.revealContent(slide))},adjustCaption:function(slide){var self=this,current=slide||self.current,caption=current.opts.caption,preventOverlap=current.opts.preventCaptionOverlap,$caption=self.$refs.caption,$clone,captionH=!1;$caption.toggleClass("fancybox-caption--separate",preventOverlap),preventOverlap&&caption&&caption.length&&(current.pos!==self.currPos?($clone=$caption.clone().appendTo($caption.parent()),$clone.children().eq(0).empty().html(caption),captionH=$clone.outerHeight(!0),$clone.empty().remove()):self.$caption&&(captionH=self.$caption.outerHeight(!0)),current.$slide.css("padding-bottom",captionH||""))},adjustLayout:function(slide){var self=this,current=slide||self.current,scrollHeight,marginBottom,inlinePadding,actualPadding;current.isLoaded&¤t.opts.disableLayoutFix!==!0&&(current.$content.css("margin-bottom",""),current.$content.outerHeight()>current.$slide.height()+.5&&(inlinePadding=current.$slide[0].style["padding-bottom"],actualPadding=current.$slide.css("padding-bottom"),parseFloat(actualPadding)>0&&(scrollHeight=current.$slide[0].scrollHeight,current.$slide.css("padding-bottom",0),Math.abs(scrollHeight-current.$slide[0].scrollHeight)<1&&(marginBottom=actualPadding),current.$slide.css("padding-bottom",inlinePadding))),current.$content.css("margin-bottom",marginBottom))},revealContent:function(slide){var self=this,$slide=slide.$slide,end=!1,start=!1,isMoved=self.isMoved(slide),isRevealed=slide.isRevealed,effect,effectClassName,duration,opacity;if(slide.isRevealed=!0,effect=slide.opts[self.firstRun?"animationEffect":"transitionEffect"],duration=slide.opts[self.firstRun?"animationDuration":"transitionDuration"],duration=parseInt(slide.forcedDuration===undefined2?duration:slide.forcedDuration,10),(isMoved||slide.pos!==self.currPos||!duration)&&(effect=!1),effect==="zoom"&&(slide.pos===self.currPos&&duration&&slide.type==="image"&&!slide.hasError&&(start=self.getThumbPos(slide))?end=self.getFitPos(slide):effect="fade"),effect==="zoom"){self.isAnimating=!0,end.scaleX=end.width/start.width,end.scaleY=end.height/start.height,opacity=slide.opts.zoomOpacity,opacity=="auto"&&(opacity=Math.abs(slide.width/slide.height-start.width/start.height)>.1),opacity&&(start.opacity=.1,end.opacity=1),$.fancybox.setTranslate(slide.$content.removeClass("fancybox-is-hidden"),start),forceRedraw(slide.$content),$.fancybox.animate(slide.$content,end,duration,function(){self.isAnimating=!1,self.complete()});return}if(self.updateSlide(slide),!effect){slide.$content.removeClass("fancybox-is-hidden"),!isRevealed&&isMoved&&slide.type==="image"&&!slide.hasError&&slide.$content.hide().fadeIn("fast"),slide.pos===self.currPos&&self.complete();return}$.fancybox.stop($slide),effectClassName="fancybox-slide--"+(slide.pos>=self.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+effect,$slide.addClass(effectClassName).removeClass("fancybox-slide--current"),slide.$content.removeClass("fancybox-is-hidden"),forceRedraw($slide),slide.type!=="image"&&slide.$content.hide().show(0),$.fancybox.animate($slide,"fancybox-slide--current",duration,function(){$slide.removeClass(effectClassName).css({transform:"",opacity:""}),slide.pos===self.currPos&&self.complete()},!0)},getThumbPos:function(slide){var rez=!1,$thumb=slide.$thumb,thumbPos,btw,brw,bbw,blw;return!$thumb||!inViewport($thumb[0])?!1:(thumbPos=$.fancybox.getTranslate($thumb),btw=parseFloat($thumb.css("border-top-width")||0),brw=p
1arseFloat($thumb.css("border-right-width")||0),bbw=parseFloat($thumb.css("border-bottom-width")||0),blw=parseFloat($thumb.css("border-left-width")||0),rez={top:thumbPos.top+btw,left:thumbPos.left+blw,width:thumbPos.width-brw-blw,height:thumbPos.height-btw-bbw,scaleX:1,scaleY:1},thumbPos.width>0&&thumbPos.height>0?rez:!1)},complete:function(){var self=this,current=self.current,slides={},$el;self.isMoved()||!current.isLoaded||(current.isComplete||(current.isComplete=!0,current.$slide.siblings().trigger("onReset"),self.preload("inline"),forceRedraw(current.$slide),current.$slide.addClass("fancybox-slide--complete"),$.each(self.slides,function(key,slide){slide.pos>=self.currPos-1&&slide.pos<=self.currPos+1?slides[slide.pos]=slide:slide&&($.fancybox.stop(slide.$slide),slide.$slide.off().remove())}),self.slides=slides),self.isAnimating=!1,self.updateCursor(),self.trigger("afterShow"),current.opts.video.autoStart&¤t.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){this.webkitExitFullscreen&&this.webkitExitFullscreen(),self.next()}),current.opts.autoFocus&¤t.contentType==="html"&&($el=current.$content.find("input[autofocus]:enabled:visible:first"),$el.length?$el.trigger("focus"):self.focus(null,!0)),current.$slide.scrollTop(0).scrollLeft(0))},preload:function(type){var self=this,prev,next;self.group.length<2||(next=self.slides[self.currPos+1],prev=self.slides[self.currPos-1],prev&&prev.type===type&&self.loadSlide(prev),next&&next.type===type&&self.loadSlide(next))},focus:function(e,firstRun){var self=this,focusableStr=["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(","),focusableItems,focusedItemIndex;self.isClosing||(e||!self.current||!self.current.isComplete?focusableItems=self.$refs.container.find("*:visible"):focusableItems=self.current.$slide.find("*:visible"+(firstRun?":not(.fancybox-close-small)":"")),focusableItems=focusableItems.filter(focusableStr).filter(function(){return $(this).css("visibility")!=="hidden"&&!$(this).hasClass("disabled")}),focusableItems.length?(focusedItemIndex=focusableItems.index(document2.activeElement),e&&e.shiftKey?(focusedItemIndex<0||focusedItemIndex==0)&&(e.preventDefault(),focusableItems.eq(focusableItems.length-1).trigger("focus")):(focusedItemIndex<0||focusedItemIndex==focusableItems.length-1)&&(e&&e.preventDefault(),focusableItems.eq(0).trigger("focus"))):self.$refs.container.trigger("focus"))},activate:function(){var self=this;$(".fancybox-container").each(function(){var instance=$(this).data("FancyBox");instance&&instance.id!==self.id&&!instance.isClosing&&(instance.trigger("onDeactivate"),instance.removeEvents(),instance.isVisible=!1)}),self.isVisible=!0,(self.current||self.isIdle)&&(self.update(),self.updateControls()),self.trigger("onActivate"),self.addEvents()},close:function(e,d){var self=this,current=self.current,effect,duration,$content,domRect,opacity,start,end,done=function(){self.cleanUp(e)};return self.isClosing?!1:(self.isClosing=!0,self.trigger("beforeClose",e)===!1?(self.isClosing=!1,requestAFrame(function(){self.update()}),!1):(self.removeEvents(),$content=current.$content,effect=current.opts.animationEffect,duration=$.isNumeric(d)?d:effect?current.opts.animationDuration:0,current.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),e!==!0?$.fancybox.stop(current.$slide):effect=!1,current.$slide.siblings().trigger("onReset").remove(),duration&&self.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",duration+"ms"),self.hideLoading(current),self.hideControls(!0),self.updateCursor(),effect==="zoom"&&!($content&&duration&¤t.type==="image"&&!self.isMoved()&&!current.hasError&&(end=self.getThumbPos(current)))&&(effect="fade"),effect==="zoom"?($.fancybox.stop($content),domRect=$.fancybox.getTranslate($content),start={top:domRect.top,left
1:domRect.left,scaleX:domRect.width/end.width,scaleY:domRect.height/end.height,width:end.width,height:end.height},opacity=current.opts.zoomOpacity,opacity=="auto"&&(opacity=Math.abs(current.width/current.height-end.width/end.height)>.1),opacity&&(end.opacity=0),$.fancybox.setTranslate($content,start),forceRedraw($content),$.fancybox.animate($content,end,duration,done),!0):(effect&&duration?$.fancybox.animate(current.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+effect,duration,done):e===!0?setTimeout(done,duration):done(),!0)))},cleanUp:function(e){var self=this,instance,$focus=self.current.opts.$orig,x,y;self.current.$slide.trigger("onReset"),self.$refs.container.empty().remove(),self.trigger("afterClose",e),self.current.opts.backFocus&&((!$focus||!$focus.length||!$focus.is(":visible"))&&($focus=self.$trigger),$focus&&$focus.length&&(x=window2.scrollX,y=window2.scrollY,$focus.trigger("focus"),$("html, body").scrollTop(y).scrollLeft(x))),self.current=null,instance=$.fancybox.getInstance(),instance?instance.activate():($("body").removeClass("fancybox-active compensate-for-scrollbar"),$("#fancybox-style-noscroll").remove())},trigger:function(name,slide){var args=Array.prototype.slice.call(arguments,1),self=this,obj=slide&&slide.opts?slide:self.current,rez;if(obj?args.unshift(obj):obj=self,args.unshift(self),$.isFunction(obj.opts[name])&&(rez=obj.opts[name].apply(obj,args)),rez===!1)return rez;name==="afterClose"||!self.$refs?$D.trigger(name+".fb",args):self.$refs.container.trigger(name+".fb",args)},updateControls:function(){var self=this,current=self.current,index=current.index,$container=self.$refs.container,$caption=self.$refs.caption,caption=current.opts.caption;current.$slide.trigger("refresh"),caption&&caption.length?(self.$caption=$caption,$caption.children().eq(0).html(caption)):self.$caption=null,!self.hasHiddenControls&&!self.isIdle&&self.showControls(),$container.find("[data-fancybox-count]").html(self.group.length),$container.find("[data-fancybox-index]").html(index+1),$container.find("[data-fancybox-prev]").prop("disabled",!current.opts.loop&&index<=0),$container.find("[data-fancybox-next]").prop("disabled",!current.opts.loop&&index>=self.group.length-1),current.type==="image"?$container.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",current.opts.image.src||current.src).show():current.opts.toolbar&&$container.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),$(document2.activeElement).is(":hidden,[disabled]")&&self.$refs.container.trigger("focus")},hideControls:function(andCaption){var self=this,arr=["infobar","toolbar","nav"];(andCaption||!self.current.opts.preventCaptionOverlap)&&arr.push("caption"),this.$refs.container.removeClass(arr.map(function(i){return"fancybox-show-"+i}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var self=this,opts=self.current?self.current.opts:self.opts,$container=self.$refs.container;self.hasHiddenControls=!1,self.idleSecondsCounter=0,$container.toggleClass("fancybox-show-toolbar",!!(opts.toolbar&&opts.buttons)).toggleClass("fancybox-show-infobar",!!(opts.infobar&&self.group.length>1)).toggleClass("fancybox-show-caption",!!self.$caption).toggleClass("fancybox-show-nav",!!(opts.arrows&&self.group.length>1)).toggleClass("fancybox-is-modal",!!opts.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),$.fancybox={version:"3.5.6",defaults:defaults,getInstance:function(command){var instance=$('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),args=Array.prototype.slice.call(arguments,1);return instance instanceof FancyBox?($.type(command)==="string"?instance[command].apply(instance,args):$.type(command)==="function"&&command.apply(instance,args),instance):!1},open:function(items,opts,index){return new FancyBox(items,opts,index)},close:function(all){var instance=this.getInstance();instance&&(instance.close(),all===!0&&this.close(all))}
1,destroy:function(){this.close(!0),$D.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(function(){var div=document2.createElement("div");return window2.getComputedStyle&&window2.getComputedStyle(div)&&window2.getComputedStyle(div).getPropertyValue("transform")&&!(document2.documentMode&&document2.documentMode<11)})(),getTranslate:function($el){var domRect;return!$el||!$el.length?!1:(domRect=$el[0].getBoundingClientRect(),{top:domRect.top||0,left:domRect.left||0,width:domRect.width,height:domRect.height,opacity:parseFloat($el.css("opacity"))})},setTranslate:function($el,props){var str="",css={};if(!(!$el||!props))return(props.left!==undefined2||props.top!==undefined2)&&(str=(props.left===undefined2?$el.position().left:props.left)+"px, "+(props.top===undefined2?$el.position().top:props.top)+"px",this.use3d?str="translate3d("+str+", 0px)":str="translate("+str+")"),props.scaleX!==undefined2&&props.scaleY!==undefined2?str+=" scale("+props.scaleX+", "+props.scaleY+")":props.scaleX!==undefined2&&(str+=" scaleX("+props.scaleX+")"),str.length&&(css.transform=str),props.opacity!==undefined2&&(css.opacity=props.opacity),props.width!==undefined2&&(css.width=props.width),props.height!==undefined2&&(css.height=props.height),$el.css(css)},animate:function($el,to,duration,callback,leaveAnimationName){var self=this,from;$.isFunction(duration)&&(callback=duration,duration=null),self.stop($el),from=self.getTranslate($el),$el.on(transitionEnd,function(e){e&&e.originalEvent&&(!$el.is(e.originalEvent.target)||e.originalEvent.propertyName=="z-index")||(self.stop($el),$.isNumeric(duration)&&$el.css("transition-duration",""),$.isPlainObject(to)?to.scaleX!==undefined2&&to.scaleY!==undefined2&&self.setTranslate($el,{top:to.top,left:to.left,width:from.width*to.scaleX,height:from.height*to.scaleY,scaleX:1,scaleY:1}):leaveAnimationName!==!0&&$el.removeClass(to),$.isFunction(callback)&&callback(e))}),$.isNumeric(duration)&&$el.css("transition-duration",duration+"ms"),$.isPlainObject(to)?(to.scaleX!==undefined2&&to.scaleY!==undefined2&&(delete to.width,delete to.height,$el.parent().hasClass("fancybox-slide--image")&&$el.parent().addClass("fancybox-is-scaling")),$.fancybox.setTranslate($el,to)):$el.addClass(to),$el.data("timer",setTimeout(function(){$el.trigger(transitionEnd)},duration+33))},stop:function($el,callCallback){$el&&$el.length&&(clearTimeout($el.data("timer")),callCallback&&$el.trigger(transitionEnd),$el.off(transitionEnd).css("transition-duration",""),$el.parent().removeClass("fancybox-is-scaling"))}};function _run(e,opts){var items=[],index=0,$target,value,instance;e&&e.isDefaultPrevented()||(e.preventDefault(),opts=opts||{},e&&e.data&&(opts=mergeOpts(e.data.options,opts)),$target=opts.$target||$(e.currentTarget).trigger("blur"),instance=$.fancybox.getInstance(),!(instance&&instance.$trigger&&instance.$trigger.is($target))&&(opts.selector?items=$(opts.selector):(value=$target.attr("data-fancybox")||"",value?(items=e.data?e.data.items:[],items=items.length?items.filter('[data-fancybox="'+value+'"]'):$('[data-fancybox="'+value+'"]')):items=[$target]),index=$(items).index($target),index<0&&(index=0),instance=$.fancybox.open(items,opts,index),instance.$trigger=$target))}$.fn.fancybox=function(options){var selector;return options=options||{},selector=options.selector||!1,selector?$("body").off("click.fb-start",selector).on("click.fb-start",selector,{options:options},_run):this.off("click.fb-start").on("click.fb-start",{items:this,options:options},_run),this},$D.on("click.fb-start","[data-fancybox]",_run),$D.on("click.fb-start","[data-fancybox-trigger]",function(e){$('[data-fancybox="'+$(this).attr("data-fancybox-trigger")+'"]').eq($(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:$(this)})}),(function(){var buttonStr=".fancybox-button",focusStr="fancybox-focus",$pressed=null;$D.on("mousedown mouseup focus blur",buttonStr,function(e){switch(e.type){case"mousedown":$pressed=$(this);break;case"mouseup":$pressed=null;break;case"focusin":$(buttonStr).removeClass(focusStr),!$(this).is($pressed)&&!$(this).is("[disabled]")&&$(this).addClass(focusStr);break;case"focusout":$(buttonStr).removeClass(focusStr);break}})})()})(window,document,jQuery),(function($){"use strict";var defaults={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(rez){return"//maps.google."+rez[2]+"/?ll="+(rez[9]?rez[9]+"&z="+Math.floor(rez[10])+(rez[12]?rez[12].replace(/^\//,"&"):""):rez[12]+"").replace(/\?/,"&")+"&output="+(rez[12]&&rez[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(rez){return"//maps.google."+rez[2]+"/maps?q="+rez[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},format=function(url,rez,params){if(url)return params=params||"",$.type(params)==="object"&&(params=$.param(params,!0)),$.each(rez,function(key,value){url=url.replace("$"+key,value||"")}),params.length&&(url+=(url.indexOf("?")>
10?"&":"?")+params),url};$(document).on("objectNeedsType.fb",function(e,instance,item){var url=item.src||"",type=!1,media,thumb,rez,params,urlParams,paramObj,provider;media=$.extend(!0,{},defaults,item.opts.media),$.each(media,function(providerName,providerOpts){if(rez=url.match(providerOpts.matcher),!!rez){if(type=providerOpts.type,provider=providerName,paramObj={},providerOpts.paramPlace&&rez[providerOpts.paramPlace]){urlParams=rez[providerOpts.paramPlace],urlParams[0]=="?"&&(urlParams=urlParams.substring(1)),urlParams=urlParams.split("&");for(var m=0;m<urlParams.length;++m){var p=urlParams[m].split("=",2);p.length==2&&(paramObj[p[0]]=decodeURIComponent(p[1].replace(/\+/g," ")))}}return params=$.extend(!0,{},providerOpts.params,item.opts[providerName],paramObj),url=$.type(providerOpts.url)==="function"?providerOpts.url.call(this,rez,params,item):format(providerOpts.url,rez,params),thumb=$.type(providerOpts.thumb)==="function"?providerOpts.thumb.call(this,rez,params,item):format(providerOpts.thumb,rez),providerName==="youtube"?url=url.replace(/&t=((\d+)m)?(\d+)s/,function(match,p1,m2,s){return"&start="+((m2?parseInt(m2,10)*60:0)+parseInt(s,10))}):providerName==="vimeo"&&(url=url.replace("&%23","#")),!1}}),type?(!item.opts.thumb&&!(item.opts.$thumb&&item.opts.$thumb.length)&&(item.opts.thumb=thumb),type==="iframe"&&(item.opts=$.extend(!0,item.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),$.extend(item,{type:type,src:url,origSrc:item.src,contentSource:provider,contentType:type==="image"?"image":provider=="gmap_place"||provider=="gmap_search"?"map":"video"})):url&&(item.type=item.opts.defaultType)});var VideoAPILoader={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(vendor){var _this=this,script;if(this[vendor].loaded){setTimeout(function(){_this.done(vendor)});return}this[vendor].loading||(this[vendor].loading=!0,script=document.createElement("script"),script.type="text/javascript",script.src=this[vendor].src,vendor==="youtube"?window.onYouTubeIframeAPIReady=function(){_this[vendor].loaded=!0,_this.done(vendor)}:script.onload=function(){_this[vendor].loaded=!0,_this.done(vendor)},document.body.appendChild(script))},done:function(vendor){var instance,$el,player;vendor==="youtube"&&delete window.onYouTubeIframeAPIReady,instance=$.fancybox.getInstance(),instance&&($el=instance.current.$content.find("iframe"),vendor==="youtube"&&YT!==void 0&&YT?player=new YT.Player($el.attr("id"),{events:{onStateChange:function(e){e.data==0&&instance.next()}}}):vendor==="vimeo"&&Vimeo!==void 0&&Vimeo&&(player=new Vimeo.Player($el),player.on("ended",function(){instance.next()})))}};$(document).on({"afterShow.fb":function(e,instance,current){instance.group.length>1&&(current.contentSource==="youtube"||current.contentSource==="vimeo")&&VideoAPILoader.load(current.contentSource)}})})(jQuery),(function(window2,document2,$){"use strict";var requestAFrame=(function(){return window2.requestAnimationFrame||window2.webkitRequestAnimationFrame||window2.mozRequestAnimationFrame||window2.oRequestAnimationFrame||function(callback){return window2.setTimeout(callback,16.666666666666668)}})(),cancelAFrame=(function(){return window2.cancelAnimationFrame||window2.webkitCancelAnimationFrame||window2.mozCancelAnimationFrame||window2.oCancelAnimationFrame||function(id){window2.clearTimeout(id)}})(),getPointerXY=function(e){var result=[];e=e.originalEvent||e||window2.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var key in e)e[key].pageX?result.push({x:e[key].pageX,y:e[key].pageY}):e[key].clientX&&result.push({x:e[key].clientX,y:e[key].clientY});return result},distance=function(point2,point1,what){return!point1||!point2?0:what==="x"?point2.x-point1.x:what==="y"?point2.y-point1.y:Math.sqrt(Math.pow(point2.x-point1.x,2)+Math.pow(point2.y-point1.y,2))},isClickable=function($el){if($el.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||$.isFunction($el.get(0).onclick)||$el.data("selectable"))return!0;for(var i=0,atts=$el[0].attributes,n=atts.length;i<n;
1i++)if(atts[i].nodeName.substr(0,14)==="data-fancybox-")return!0;return!1},hasScrollbars=function(el){var overflowY=window2.getComputedStyle(el)["overflow-y"],overflowX=window2.getComputedStyle(el)["overflow-x"],vertical=(overflowY==="scroll"||overflowY==="auto")&&el.scrollHeight>el.clientHeight,horizontal=(overflowX==="scroll"||overflowX==="auto")&&el.scrollWidth>el.clientWidth;return vertical||horizontal},isScrollable=function($el){for(var rez=!1;rez=hasScrollbars($el.get(0)),!(rez||($el=$el.parent(),!$el.length||$el.hasClass("fancybox-stage")||$el.is("body"))););return rez},Guestures=function(instance){var self=this;self.instance=instance,self.$bg=instance.$refs.bg,self.$stage=instance.$refs.stage,self.$container=instance.$refs.container,self.destroy(),self.$container.on("touchstart.fb.touch mousedown.fb.touch",$.proxy(self,"ontouchstart"))};Guestures.prototype.destroy=function(){var self=this;self.$container.off(".fb.touch"),$(document2).off(".fb.touch"),self.requestId&&(cancelAFrame(self.requestId),self.requestId=null),self.tapped&&(clearTimeout(self.tapped),self.tapped=null)},Guestures.prototype.ontouchstart=function(e){var self=this,$target=$(e.target),instance=self.instance,current=instance.current,$slide=current.$slide,$content=current.$content,isTouchDevice=e.type=="touchstart";if(isTouchDevice&&self.$container.off("mousedown.fb.touch"),!(e.originalEvent&&e.originalEvent.button==2)&&!(!$slide.length||!$target.length||isClickable($target)||isClickable($target.parent()))&&!(!$target.is("img")&&e.originalEvent.clientX>$target[0].clientWidth+$target.offset().left)){if(!current||instance.isAnimating||current.$slide.hasClass("fancybox-animated")){e.stopPropagation(),e.preventDefault();return}self.realPoints=self.startPoints=getPointerXY(e),self.startPoints.length&&(current.touch&&e.stopPropagation(),self.startEvent=e,self.canTap=!0,self.$target=$target,self.$content=$content,self.opts=current.opts.touch,self.isPanning=!1,self.isSwiping=!1,self.isZooming=!1,self.isScrolling=!1,self.canPan=instance.canPan(),self.startTime=new Date().getTime(),self.distanceX=self.distanceY=self.distance=0,self.canvasWidth=Math.round($slide[0].clientWidth),self.canvasHeight=Math.round($slide[0].clientHeight),self.contentLastPos=null,self.contentStartPos=$.fancybox.getTranslate(self.$content)||{top:0,left:0},self.sliderStartPos=$.fancybox.getTranslate($slide),self.stagePos=$.fancybox.getTranslate(instance.$refs.stage),self.sliderStartPos.top-=self.stagePos.top,self.sliderStartPos.left-=self.stagePos.left,self.contentStartPos.top-=self.stagePos.top,self.contentStartPos.left-=self.stagePos.left,$(document2).off(".fb.touch").on(isTouchDevice?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",$.proxy(self,"ontouchend")).on(isTouchDevice?"touchmove.fb.touch":"mousemove.fb.touch",$.proxy(self,"ontouchmove")),$.fancybox.isMobile&&document2.addEventListener("scroll",self.onscroll,!0),!((!(self.opts||self.canPan)||!($target.is(self.$stage)||self.$stage.find($target).length))&&($target.is(".fancybox-image")&&e.preventDefault(),!($.fancybox.isMobile&&$target.parents(".fancybox-caption").length)))&&(self.isScrollable=isScrollable($target)||isScrollable($target.parent()),$.fancybox.isMobile&&self.isScrollable||e.preventDefault(),(self.startPoints.length===1||current.hasError)&&(self.canPan?($.fancybox.stop(self.$content),self.isPanning=!0):self.isSwiping=!0,self.$container.addClass("fancybox-is-grabbing")),self.startPoints.length===2&¤t.type==="image"&&(current.isLoaded||current.$ghost)&&(self.canTap=!1,self.isSwiping=!1,self.isPanning=!1,self.isZooming=!0,$.fancybox.stop(self.$content),self.centerPointStartX=(self.startPoints[0].x+self.startPoints[1].x)*.5-$(window2).scrollLeft(),self.centerPointStartY=(self.startPoints[0].y+self.startPoints[1].y)*.5-$(window2).scrollTop(),self.percentageOfImageAtPinchPointX=(self.centerPointStartX-self.contentStartPos.left)/self.contentStartPos.width,self.percentageOfImageAtPinchPointY=(self.centerPointStartY-self.contentStartPos.top)/self.contentStartPos.height,self.startDistanceBetweenFingers=distance(self.startPoints[0],self.startPoints[1]))))}},Guestures.prototype.onscroll=function(e){var self=this;self.isScrolling=!0,document2.removeEventListener("scroll",self.onscroll,!0)},Guestures.prototype.ontouchmove=function(e){var self=this;if(e.originalEvent.buttons!==void 0&&e.originalEvent.buttons===0){self.ontouchend(e);return}if(self.isScrolling){self.canTap=!1;return}
1self.newPoints=getPointerXY(e),!(!(self.opts||self.canPan)||!self.newPoints.length||!self.newPoints.length)&&(self.isSwiping&&self.isSwiping===!0||e.preventDefault(),self.distanceX=distance(self.newPoints[0],self.startPoints[0],"x"),self.distanceY=distance(self.newPoints[0],self.startPoints[0],"y"),self.distance=distance(self.newPoints[0],self.startPoints[0]),self.distance>0&&(self.isSwiping?self.onSwipe(e):self.isPanning?self.onPan():self.isZooming&&self.onZoom()))},Guestures.prototype.onSwipe=function(e){var self=this,instance=self.instance,swiping=self.isSwiping,left=self.sliderStartPos.left||0,angle;if(swiping===!0){if(Math.abs(self.distance)>10){if(self.canTap=!1,instance.group.length<2&&self.opts.vertical?self.isSwiping="y":instance.isDragging||self.opts.vertical===!1||self.opts.vertical==="auto"&&$(window2).width()>800?self.isSwiping="x":(angle=Math.abs(Math.atan2(self.distanceY,self.distanceX)*180/Math.PI),self.isSwiping=angle>45&&angle<135?"y":"x"),self.isSwiping==="y"&&$.fancybox.isMobile&&self.isScrollable){self.isScrolling=!0;return}instance.isDragging=self.isSwiping,self.startPoints=self.newPoints,$.each(instance.slides,function(index,slide){var slidePos,stagePos;$.fancybox.stop(slide.$slide),slidePos=$.fancybox.getTranslate(slide.$slide),stagePos=$.fancybox.getTranslate(instance.$refs.stage),slide.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(index2,className){return(className.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),slide.pos===instance.current.pos&&(self.sliderStartPos.top=slidePos.top-stagePos.top,self.sliderStartPos.left=slidePos.left-stagePos.left),$.fancybox.setTranslate(slide.$slide,{top:slidePos.top-stagePos.top,left
1:slidePos.left-stagePos.left})}),instance.SlideShow&&instance.SlideShow.isActive&&instance.SlideShow.stop()}return}swiping=="x"&&(self.distanceX>0&&(self.instance.group.length<2||self.instance.current.index===0&&!self.instance.current.opts.loop)?left=left+Math.pow(self.distanceX,.8):self.distanceX<0&&(self.instance.group.length<2||self.instance.current.index===self.instance.group.length-1&&!self.instance.current.opts.loop)?left=left-Math.pow(-self.distanceX,.8):left=left+self.distanceX),self.sliderLastPos={top:swiping=="x"?0:self.sliderStartPos.top+self.distanceY,left:left},self.requestId&&(cancelAFrame(self.requestId),self.requestId=null),self.requestId=requestAFrame(function(){self.sliderLastPos&&($.each(self.instance.slides,function(index,slide){var pos=slide.pos-self.instance.currPos;$.fancybox.setTranslate(slide.$slide,{top:self.sliderLastPos.top,left:self.sliderLastPos.left+pos*self.canvasWidth+pos*slide.opts.gutter})}),self.$container.addClass("fancybox-is-sliding"))})},Guestures.prototype.onPan=function(){var self=this;if(distance(self.newPoints[0],self.realPoints[0])<($.fancybox.isMobile?10:5)){self.startPoints=self.newPoints;return}self.canTap=!1,self.contentLastPos=self.limitMovement(),self.requestId&&cancelAFrame(self.requestId),self.requestId=requestAFrame(function(){$.fancybox.setTranslate(self.$content,self.contentLastPos)})},Guestures.prototype.limitMovement=function(){var self=this,canvasWidth=self.canvasWidth,canvasHeight=self.canvasHeight,distanceX=self.distanceX,distanceY=self.distanceY,contentStartPos=self.contentStartPos,currentOffsetX=contentStartPos.left,currentOffsetY=contentStartPos.top,currentWidth=contentStartPos.width,currentHeight=contentStartPos.height,minTranslateX,minTranslateY,maxTranslateX,maxTranslateY,newOffsetX,newOffsetY;return currentWidth>canvasWidth?newOffsetX=currentOffsetX+distanceX:newOffsetX=currentOffsetX,newOffsetY=currentOffsetY+distanceY,minTranslateX=Math.max(0,canvasWidth*.5-currentWidth*.5),minTranslateY=Math.max(0,canvasHeight*.5-currentHeight*.5),maxTranslateX=Math.min(canvasWidth-currentWidth,canvasWidth*.5-currentWidth*.5),maxTranslateY=Math.min(canvasHeight-currentHeight,canvasHeight*.5-currentHeight*.5),distanceX>0&&newOffsetX>minTranslateX&&(newOffsetX=minTranslateX-1+Math.pow(-minTranslateX+currentOffsetX+distanceX,.8)||0),distanceX<0&&newOffsetX<maxTranslateX&&(newOffsetX=maxTranslateX+1-Math.pow(maxTranslateX-currentOffsetX-distanceX,.8)||0),distanceY>0&&newOffsetY>minTranslateY&&(newOffsetY=minTranslateY-1+Math.pow(-minTranslateY+currentOffsetY+distanceY,.8)||0),distanceY<0&&newOffsetY<maxTranslateY&&(newOffsetY=maxTranslateY+1-Math.pow(maxTranslateY-currentOffsetY-distanceY,.8)||0),{top:newOffsetY,left:newOffsetX}},Guestures.prototype.limitPosition=function(newOffsetX,newOffsetY,newWidth,newHeight){var self=this,canvasWidth=self.canvasWidth,canvasHeight=self.canvasHeight;return newWidth>canvasWidth?(newOffsetX=newOffsetX>0?0:newOffsetX,newOffsetX=newOffsetX<canvasWidth-newWidth?canvasWidth-newWidth:newOffsetX):newOffsetX=Math.max(0,canvasWidth/2-newWidth/2),newHeight>canvasHeight?(newOffsetY=newOffsetY>0?0:newOffsetY,newOffsetY=newOffsetY<canvasHeight-newHeight?canvasHeight-newHeight:newOffsetY):newOffsetY=Math.max(0,canvasHeight/2-newHeight/2),{top:newOffsetY,left:newOffsetX}},Guestures.prototype.onZoom=function(){var self=this,contentStartPos=self.contentStartPos,currentWidth=contentStartPos.width,currentHeight=contentStartPos.height,currentOffsetX=contentStartPos.left,currentOffsetY=contentStartPos.top,endDistanceBetweenFingers=distance(self.newPoints[0],self.newPoints[1]),pinchRatio=endDistanceBetweenFingers/self.startDistanceBetweenFingers,newWidth=Math.floor(currentWidth*pinchRatio),newHeight=Math.floor(currentHeight*pinchRatio),translateFromZoomingX=(currentWidth-newWidth)*self.percentageOfImageAtPinchPointX,translateFromZoomingY=(currentHeight-newHeight)*self.percentageOfImageAtPinchPointY,centerPointEndX=(self.newPoints[0].x+self.newPoints[1].x)/2-$(window2).scrollLeft(),centerPointEndY=(self.newPoints[0].y+self.newPoints[1].y)/2-$(window2).scrollTop(),translateFromTranslatingX=centerPointEndX-self.centerPointStartX,translateFromTranslatingY=centerPointEndY-self.centerPointStartY,newOffsetX=currentOffsetX+(translateFromZoomingX+translateFromTranslatingX),newOffsetY=currentOffsetY+(translateFromZoomingY+translateFromTranslatingY),newPos={top:newOffsetY,left:newOffsetX,scaleX:pinchRatio,scaleY:pinchRatio};self.canTap=!1,self.newWidth=newWidth,self.newHeight=newHeight,self.contentLastPos=newPos,self.requestId&&cancelAFrame(self.requestId),self.requestId=requestAFrame(function(){$.fancybox.setTranslate(self.$content,self.contentLastPos)})},Guestures.prototype.ontouchend=function(e){var self=this,swiping=self.isSwiping,panning=self.isPanning,zooming=self.isZooming,scrolling=self.isScrolling;if(self.endPoints=getPointerXY(e),self.dMs=Math.max(new Date().getTime()-self.startTime,1),self.$container.removeClass("fancybox-is-grabbing"),$(document2).off(".fb.touch"),document2.removeEventListener("scroll",self.onscroll,!0),self.requestId&&(cancelAFrame(self.requestId),self.requestId=null),self.isSwiping=!1,self.isPanning=!1,self.isZooming=!1,self.isScrolling=!1,self.instance.isDragging=!1,self.canTap)return self.onTa
1p(e);self.speed=100,self.velocityX=self.distanceX/self.dMs*.5,self.velocityY=self.distanceY/self.dMs*.5,panning?self.endPanning():zooming?self.endZooming():self.endSwiping(swiping,scrolling)},Guestures.prototype.endSwiping=function(swiping,scrolling){var self=this,ret=!1,len=self.instance.group.length,distanceX=Math.abs(self.distanceX),canAdvance=swiping=="x"&&len>1&&(self.dMs>130&&distanceX>10||distanceX>50),speedX=300;self.sliderLastPos=null,swiping=="y"&&!scrolling&&Math.abs(self.distanceY)>50?($.fancybox.animate(self.instance.current.$slide,{top:self.sliderStartPos.top+self.distanceY+self.velocityY*150,opacity:0},200),ret=self.instance.close(!0,250)):canAdvance&&self.distanceX>0?ret=self.instance.previous(speedX):canAdvance&&self.distanceX<0&&(ret=self.instance.next(speedX)),ret===!1&&(swiping=="x"||swiping=="y")&&self.instance.centerSlide(200),self.$container.removeClass("fancybox-is-sliding")},Guestures.prototype.endPanning=function(){var self=this,newOffsetX,newOffsetY,newPos;self.contentLastPos&&(self.opts.momentum===!1||self.dMs>350?(newOffsetX=self.contentLastPos.left,newOffsetY=self.contentLastPos.top):(newOffsetX=self.contentLastPos.left+self.velocityX*500,newOffsetY=self.contentLastPos.top+self.velocityY*500),newPos=self.limitPosition(newOffsetX,newOffsetY,self.contentStartPos.width,self.contentStartPos.height),newPos.width=self.contentStartPos.width,newPos.height=self.contentStartPos.height,$.fancybox.animate(self.$content,newPos,366))},Guestures.prototype.endZooming=function(){var self=this,current=self.instance.current,newOffsetX,newOffsetY,newPos,reset,newWidth=self.newWidth,newHeight=self.newHeight;self.contentLastPos&&(newOffsetX=self.contentLastPos.left,newOffsetY=self.contentLastPos.top,reset={top:newOffsetY,left:newOffsetX,width:newWidth,height:newHeight,scaleX:1,scaleY:1},$.fancybox.setTranslate(self.$content,reset),newWidth<self.canvasWidth&&newHeight<self.canvasHeight?self.instance.scaleToFit(150):newWidth>current.width||newHeight>current.height?self.instance.scaleToActual(self.centerPointStartX,self.centerPointStartY,150):(newPos=self.limitPosition(newOffsetX,newOffsetY,newWidth,newHeight),$.fancybox.animate(self.$content,newPos,150)))},Guestures.prototype.onTap=function(e){var self=this,$target=$(e.target),instance=self.instance,current=instance.current,endPoints=e&&getPointerXY(e)||self.startPoints,tapX=endPoints[0]?endPoints[0].x-$(window2).scrollLeft()-self.stagePos.left:0,tapY=endPoints[0]?endPoints[0].y-$(window2).scrollTop()-self.stagePos.top:0,where,process=function(prefix){var action=current.opts[prefix];if($.isFunction(action)&&(action=action.apply(instance,[current,e])),!!action)switch(action){case"close":instance.close(self.startEvent);break;case"toggleControls":instance.toggleControls();break;case"next":instance.next();break;case"nextOrClose":instance.group.length>1?instance.next():instance.close(self.startEvent);break;case"zoom":current.type=="image"&&(current.isLoaded||current.$ghost)&&(instance.canPan()?instance.scaleToFit():instance.isScaledDown()?instance.scaleToActual(tapX,tapY):instance.group.length<2&&instance.close(self.startEvent));break}};if(!(e.originalEvent&&e.originalEvent.button==2)&&!(!$target.is("img")&&tapX>$target[0].clientWidth+$target.offset().left)){if($target.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))where="Outside";else if($target.is(".fancybox-slide"))where="Slide";else if(instance.current.$content&&instance.current.$content.find($target).addBack().filter($target).length)where="Content";else return;if(self.tapped){if(clearTimeout(self.tapped),self.tapped=null,Math.abs(tapX-self.tapX)>50||Math.abs(tapY-self.tapY)>50)return this;process("dblclick"+where)}else self.tapX=tapX,self.tapY=tapY,current.opts["dblclick"+where]&¤t.opts["dblclick"+where]!==current.opts["click"+where]?self.tapped=setTimeout(function(){self.tapped=null,instance.isAnimating||process("click"+where)},500):process("click"+where);return this}},$(document2).on("onActivate.fb",function(e,instance){instance&&!instance.Guestures&&(instance.Guestures=new Guestures(instance))}).on("beforeClose.fb",function(e,instance){instance&&instance.Guestures&&instance.Guestures.destroy()})})(window,document,jQuery),(function(document2,$){"use strict";$.extend(!0,$.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1<path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var SlideShow=function(instance){this.instance=instance,this.init()};$.extend(SlideShow.prototype,{timer:null,isActive:!1,$button:null,init:function(){var self=this,instance=self.instance,opts=instance.group[instance.currIndex].opts.slideShow;self.$button=instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){self.toggle()}),instance.group.length<2||!opts?self.$button.hide():opts.progress&&(self.$progress=$('<div class="fancybox-progress"></div>').appendTo(instance.$refs.inner))},set:function(force){var self=this,instance=self.instance,current=instance.current;current&&(force===!0||current.opts.loop||instance.currIndex<instance.group.length-1)?self.isActive&¤t.contentType!=="video"&&(self.$progress&&$.fancybox.animate(self.$progress.show(),{scaleX:1},current.opts.slideShow.speed),self.timer=setTimeout(function(){!instance.current.opts.loop&&instance.current.index==instance.group.length-1?instance.jumpTo(0):instance.next()},current.opts.slideShow.speed)):(self.stop(),instance.idleSecondsCounter=0,instance.showControls())},clear:function(){var self=this;clearTimeout(self.timer),self.timer=null,self.$progress&&self.$progress.removeAttr("style").hide()},start:function(){var self=this,current=self.instance.current;current&&(self.$button.attr("title",(current.opts.i18n[current.opts.lang]||current.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),self.isActive=!0,current.isComplete&&self.set(!0),self.instance.trigger("onSlideShowChange",!0))},stop:function(){var self=this,current=self.instance.current;self.clear(),self.$button.attr("title",(current.opts.i18n[current.opts.lang]||current.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),self.isActive=!1,self.instance.trigger("onSlideShowChange",!1),self.$progress&&self.$progress.removeAttr("style").hide()},toggle:function(){var self=this;self.isActive?self.stop():self.start()}}),$(document2).on({"onInit.fb":function(e,instance){instance&&!instance.SlideShow&&(instance.SlideShow=new SlideShow(instance))},"beforeShow.fb":function(e,instance,current,firstRun){var SlideShow2=instance&&instance.SlideShow;firstRun?SlideShow2&¤t.opts.slideShow.autoStart&&SlideShow2.start():SlideShow2&&SlideShow2.isActive&&SlideShow2.clear()},"afterShow.fb":function(e,instance,current){var SlideShow2=instance&&instance.SlideShow;SlideShow2&&SlideShow2.isActive&&SlideShow2.set()},"afterKeydown.fb":function(e,instance,current,keypress,keycode){var SlideShow2=instance&&instance.SlideShow;SlideShow2&¤t.opts.slideShow&&(keycode===80||keycode===32)&&!$(document2.activeElement).is("button,a,input")&&(keypress.preventDefault(),SlideShow2.toggle())},"beforeClose.fb onDeactivate.fb":function(e,instance){var SlideShow2=instance&&instance.SlideShow;SlideShow2&&SlideShow2.stop()}}),$(document2).on("visibilitychange",function(){var instance=$.fancybox.getInstance(),SlideShow2=instance&&instance.SlideShow;SlideShow2&&SlideShow2.isActive&&(document2.hidden?SlideShow2.clear():SlideShow2.set())})})(document,jQuery),(function(document2,$){"use strict";var fn=(function(){for(var fnMap=[["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"]],ret={},i=0;i<fnMap.length;i++){var val=fnMap[i];if(val&&val[1]in document2){for(var j=0;j<val.length;j++)ret[fnMap[0][j]]=val[j];return ret}}return!1})();if(fn){var FullScreen={request:function(elem){elem=elem||document2.documentElement,elem[fn.requestFullscreen](elem.ALLOW_KEYBOARD_INPUT)},exit:function(){document2[fn.exitFullscreen]()},toggle:function(elem){elem=elem||document2.documentElement,this.isFullscreen()?this.exit():this.request(elem)},isFullscreen:function(){return!!document2[fn.fullscreenElement]},enabled:function(){return!!document2[fn.fullscreenEnabled]}};$.extend(!0,$.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1<path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),$(document2).on(fn.fullscreenchange,function(){var isFullscreen=FullScreen.isFullscreen(),instance=$.fancybox.getInstance();instance&&(instance.current&&instance.current.type==="image"&&instance.isAnimating&&(instance.isAnimating=!1,instance.update(!0,!0,0),instance.isComplete||instance.complete()),instance.trigger("onFullscreenChange",isFullscreen),instance.$refs.container.toggleClass("fancybox-is-fullscreen",isFullscreen),instance.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!isFullscreen).toggleClass("fancybox-button--fsexit",isFullscreen))})}$(document2).on({"onInit.fb":function(e,instance){var $container;if(!fn){instance.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();return}instance&&instance.group[instance.currIndex].opts.fullScreen?($container=instance.$refs.container,$container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(e2){e2.stopPropagation(),e2.preventDefault(),FullScreen.toggle()}),instance.opts.fullScreen&&instance.opts.fullScreen.autoStart===!0&&FullScreen.request(),instance.FullScreen=FullScreen):instance&&instance.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(e,instance,current,keypress,keycode){instance&&instance.FullScreen&&keycode===70&&(keypress.preventDefault(),instance.FullScreen.toggle())},"beforeClose.fb":function(e,instance){instance&&instance.FullScreen&&instance.$refs.container.hasClass("fancybox-is-fullscreen")&&FullScreen.exit()}})})(document,jQuery),(function(document2,$){"use strict";var CLASS="fancybox-thumbs",CLASS_ACTIVE=CLASS+"-active";$.fancybox.defaults=$.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},$.fancybox.defaults);var FancyThumbs=function(instance){this.init(instance)};$.extend(FancyThumbs.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(instance){var self=this,group=instance.group,enabled=0;self.instance=instance,self.opts=group[instance.currIndex].opts.thumbs,instance.Thumbs=self,self.$button=instance.$refs.toolbar.find("[data-fancybox-thumbs]");for(var i=0,len=group.length;i<len&&(group[i].thumb&&enabled++,!(enabled>1));i++);enabled>1&&self.opts?(self.$button.removeAttr("style").on("click",function(){self.toggle()}),self.isActive=!0):self.$button.hide()},create:function(){var self=this,instance=self.instance,parentEl=self.opts.parentEl,list=[],src;self.$grid||(self.$grid=$('<div class="'+CLASS+" "+CLASS+"-"+self.opts.axis+'"></div>').appendTo(instance.$refs.container.find(parentEl).addBack().filter(parentEl)),self.$grid.on("click","a",function(){instance.jumpTo($(this).attr("data-index"))})),self.$list||(self.$list=$('<div class="'+CLASS+'__list">').appendTo(self.$grid)),$.each(instance.group,function(i,item){src=item.thumb,!src&&item.type==="image"&&(src=item.src),list.push('<a href="javascript:;" tabindex="0" data-index="'+i+'"'+(src&&src.length?' style="background-image:url('+src+')"':'class="fancybox-thumbs-missing"')+"></a>")}),self.$list[0].innerHTML=list.join(""),self.opts.axis==="x"&&self.$list.width(parseInt(self.$grid.css("padding-right"),10)+instance.group.length*self.$list.children().eq(0).outerWidth(!0))},focus:function(duration){var self=this,$list=self.$list,$grid=self.$grid,thumb,thumbPos;self.instance.current&&(thumb=$list.children().removeClass(CLASS_ACTIVE).filter('[data-index="'+self.instance.current.index+'"]').addClass(CLASS_ACTIVE),thumbPos=thumb.position(),self.opts.axis==="y"&&(thumbPos.top<0||thumbPos.top>$list.height()-thumb.outerHeight())?$list.stop().animate({scrollTop:$list.scrollTop()+thumbPos.top},duration):self.opts.axis==="x"&&(thumbPos.left<$grid.scrollLeft()||thumbPos.left>$grid.scrollLeft()+($grid.width()-thumb.outerWidth()))&&$list.parent().stop().animate({scrollLeft:thumbPos.left},duration))},update:function(){var that=this;that.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),that.isVisible?(that.$grid||that.create(),that.instance.trigger("onThumbsShow"),that.focus(0)):that.$grid&&that.instance.trigger("onThumbsHide"),that.instance.update(
1)},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),$(document2).on({"onInit.fb":function(e,instance){var Thumbs;instance&&!instance.Thumbs&&(Thumbs=new FancyThumbs(instance),Thumbs.isActive&&Thumbs.opts.autoStart===!0&&Thumbs.show())},"beforeShow.fb":function(e,instance,item,firstRun){var Thumbs=instance&&instance.Thumbs;Thumbs&&Thumbs.isVisible&&Thumbs.focus(firstRun?0:250)},"afterKeydown.fb":function(e,instance,current,keypress,keycode){var Thumbs=instance&&instance.Thumbs;Thumbs&&Thumbs.isActive&&keycode===71&&(keypress.preventDefault(),Thumbs.toggle())},"beforeClose.fb":function(e,instance){var Thumbs=instance&&instance.Thumbs;Thumbs&&Thumbs.isVisible&&Thumbs.opts.hideOnClose!==!1&&Thumbs.$grid.hide()}})})(document,jQuery),(function(document2,$){"use strict";$.extend(!0,$.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(instance,item){return(!instance.currentHash&&!(item.type==="inline"||item.type==="html")?item.origSrc||item.src:!1)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}});function escapeHtml(string){var entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(string).replace(/[&<>"'`=\/]/g,function(s){return entityMap[s]})}$(document2).on("click","[data-fancybox-share]",function(){var instance=$.fancybox.getInstance(),current=instance.current||null,url,tpl;current&&($.type(current.opts.share.url)==="function"&&(url=current.opts.share.url.apply(current,[instance,current])),tpl=current.opts.share.tpl.replace(/\{\{media\}\}/g,current.type==="image"?encodeURIComponent(current.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(url)).replace(/\{\{url_raw\}\}/g,escapeHtml(url)).replace(/\{\{descr\}\}/g,instance.$caption?encodeURIComponent(instance.$caption.text()):""),$.fancybox.open({src:instance.translate(instance,tpl),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(shareInstance,shareCurrent){instance.$refs.container.one("beforeClose.fb",function(){shareInstance.close(null,0)}),shareCurrent.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})})(document,jQuery),(function(window2,document2,$){"use strict";$.escapeSelector||($.escapeSelector=function(sel){var rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,fcssescape=function(ch,asCodePoint){return asCodePoint?ch==="\0"?"\uFFFD":ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" ":"\\"+ch};return(sel+"").replace(rcssescape,fcssescape)});function parseUrl(){var hash=window2.location.hash.substr(1),rez=hash.split("-"),index=rez.length>1&&/^\+?\d+$/.test(rez[rez.length-1])&&parseInt(rez.pop(-1),10)||1,gallery=rez.join("-");return{hash:hash,index:index<1?1:index,gallery:gallery}}function triggerFromUrl(url){url.gallery!==""&&$("[data-fancybox='"+$.escapeSelector(url.gallery)+"']").eq(url.index-1).focus().trigger("click.fb-start")}function getGalleryID(instance){var opts,ret;return instance?(opts=instance.current?instance.current.opts:instance.opts,ret=opts.hash||(opts.$orig?opts.$orig.data("fancybox")||opts.$orig.data("fancybox-trigger"):""),ret===""?!1:ret):!1}$(function(){$.fancybox.defaults.hash!==!1&&($(document2).on({"onInit.fb":function(e,instance){var url,gallery;instance.group[instance.currIndex].opts.hash!==!1&&(url=parseUrl(),gallery=getGalleryID(instance),gallery&&url.gallery&&gallery==url.gallery&&(instance.currIndex=url.index-1))},"beforeShow.fb":function(e,instance,current,firstRun){var gallery;!current||current.opts.hash===!1||(gallery=getGalleryID(instance),gallery&&(instance.currentHash=gallery+(instance.group.length>1?"-"+(current.index+1):""),window2.location.hash!=="#"+instance.currentHash&&(firstRun&&!instance.origHash&&(instance.origHash=window2.location.hash),instance.hashTimer&&clearTimeout(instance.hashTimer),instance.hashTimer=setTimeout(function(){"replaceState"in window2.history?(window2.history[firstRun?"pushState":"replaceState"]({},document2.title,window2.location.pathname+window2.location.search+"#"+instance.currentHash),firstRun&&(instance.hasCreatedHistory=!0)):window2.location.hash=instance.currentHash,instance.hashTimer=null},300))))},"beforeClose.fb":function(e,instance,current){!current||current.opts.hash===!1||(clearTimeout(instance.hashTimer),instance.currentHash&&instance.hasCreatedHistory?window2.history.back():instance.currentHash&&("replaceState"in window2.history?window2.history.replaceState({},document2.title,window2.location.pathname+window2.location.search+(instance.origHash||"")):window2.location.hash=instance.origHash),instance.currentHash=null)}}),$(window2).on("hashchange.fb",function(){var url=parseUrl(),fb=null;$.each($(".fancybox-container").get().reverse(),function(index,value){var tmp=$(value).data("FancyBox");if(tmp&&tmp.currentHash)return fb=tmp,!1}),fb?fb.currentHash!==url.gallery+"-"+url.index&&!(url.index===1&&fb.currentHash==url.gallery)&&(fb.currentHash=null,fb.close()):url.gallery!==""&&triggerFromUrl(url)}),setTimeout(function(){$.fancybox.getInstance()||triggerFromUrl(parseUrl())},50))})})(window,document,jQuery),(function(document2,$){"use strict";var prevTime=new Date().getTime();$(document2).on({"onInit.fb":function(e,instance,current){instance.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(e2){var current2=instance.current,currTime=new Date().getTime();instance.group.length<2||current2.opts.wheel===!1||current2.opts.wheel==="auto"&¤t2.type!=="image"||(e2.preventDefault(),e2.stopPropagation(),!current2.$slide.hasClass("fancybox-animated")&&(e2=e2.originalEvent||e2,!(currTime-prevTime<250)&&(prevTime=currTime,instance[(-e2.deltaY||-e2.deltaX||e2.wheelDelta||-e2.detail)<0?"next":"previous"]())))})}})})(document,jQuery); 2//# sourceMappingURL=/cdn/shop/t/818/assets/jquery.fancybox.js.map?v=54718021883229916321787596176
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.