").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||(n(this).empty(),t.isloaded=!1)}),t.$content=n(e).appendto(t.$slide),t.opts.smallbtn&&!t.$smallbtn&&(t.$smallbtn=n(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=n(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(t){return 2==t.button&&t.preventdefault(),!0}),"image"===t.type&&n('
').appendto(t.$content)),e.revealcontent(t))},revealcontent:function(t){var e,i,a,s,r,c=this,l=t.$slide,u=!1;return e=t.opts[c.firstrun?"animationeffect":"transitioneffect"],a=t.opts[c.firstrun?"animationduration":"transitionduration"],a=parseint(t.forcedduration===o?a:t.forcedduration,10),!t.ismoved&&t.pos===c.currpos&&a||(e=!1),"zoom"!==e||t.pos===c.currpos&&a&&"image"===t.type&&!t.haserror&&(u=c.getthumbpos(t))||(e="fade"),"zoom"===e?(r=c.getfitpos(t),r.scalex=r.width/u.width,r.scaley=r.height/u.height,delete r.width,delete r.height,s=t.opts.zoomopacity,"auto"==s&&(s=math.abs(t.width/t.height-u.width/u.height)>.1),s&&(u.opacity=.1,r.opacity=1),n.fancybox.settranslate(t.$content.removeclass("fancybox-is-hidden"),u),f(t.$content),void n.fancybox.animate(t.$content,r,a,function(){c.complete()})):(c.updateslide(t),e?(n.fancybox.stop(l),i="fancybox-animated fancybox-slide--"+(t.pos>c.prevpos?"next":"previous")+" fancybox-fx-"+e,l.removeattr("style").removeclass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addclass(i),t.$content.removeclass("fancybox-is-hidden"),f(l),void n.fancybox.animate(l,"fancybox-slide--current",a,function(e){l.removeclass(i).removeattr("style"),t.pos===c.currpos&&c.complete()},!0)):(f(l),t.$content.removeclass("fancybox-is-hidden"),void(t.pos===c.currpos&&c.complete())))},getthumbpos:function(o){var i,a=this,s=!1,r=function(e){for(var o,i=e[0],a=i.getboundingclientrect(),s=[];null!==i.parentelement;)"hidden"!==n(i.parentelement).css("overflow")&&"auto"!==n(i.parentelement).css("overflow")||s.push(i.parentelement.getboundingclientrect()),i=i.parentelement;return o=s.every(function(t){var e=math.min(a.right,t.right)-math.max(a.left,t.left),n=math.min(a.bottom,t.bottom)-math.max(a.top,t.top);return e>0&&n>0}),o&&a.bottom>0&&a.right>0&&a.left
=t.currpos-1&&o.pos<=t.currpos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),t.slides=i,t.updatecursor(),t.trigger("aftershow"),(n(e.activeelement).is("[disabled]")||o.opts.autofocus&&"image"!=o.type&&"iframe"!==o.type)&&t.focus())},preload:function(){var t,e,n=this;n.group.length<2||(t=n.slides[n.currpos+1],e=n.slides[n.currpos-1],t&&"image"===t.type&&n.loadslide(t),e&&"image"===e.type&&n.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;n(".fancybox-container").each(function(){var e=n(this).data("fancybox");e&&e.uid!==t.uid&&!e.isclosing&&e.trigger("ondeactivate")}),t.current&&(t.$refs.container.index()>0&&t.$refs.container.prependto(e.body),t.updatecontrols()),t.trigger("onactivate"),t.addevents()},close:function(t,e){var o,i,a,s,r,c,l=this,f=l.current,h=function(){l.cleanup(t)};return!l.isclosing&&(l.isclosing=!0,l.trigger("beforeclose",t)===!1?(l.isclosing=!1,u(function(){l.update()}),!1):(l.removeevents(),f.timouts&&cleartimeout(f.timouts),a=f.$content,o=f.opts.animationeffect,i=n.isnumeric(e)?e:o?f.opts.animationduration:0,f.$slide.off(d).removeclass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),f.$slide.siblings().trigger("onreset").remove(),i&&l.$refs.container.removeclass("fancybox-is-open").addclass("fancybox-is-closing"),l.hideloading(f),l.hidecontrols(),l.updatecursor(),"zoom"!==o||t!==!0&&a&&i&&"image"===f.type&&!f.haserror&&(c=l.getthumbpos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),r=n.fancybox.gettranslate(a),r.width=r.width*r.scalex,r.height=r.height*r.scaley,s=f.opts.zoomopacity,"auto"==s&&(s=math.abs(f.width/f.height-c.width/c.height)>.1),s&&(c.opacity=0),r.scalex=r.width/c.width,r.scaley=r.height/c.height,r.width=c.width,r.height=c.height,n.fancybox.settranslate(f.$content,r),n.fancybox.animate(f.$content,c,i,h),!0):(o&&i?t===!0?settimeout(h,i):n.fancybox.animate(f.$slide.removeclass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,i,h):h(),!0)))},cleanup:function(t){var e,o=this;o.current.$slide.trigger("onreset"),o.$refs.container.empty().remove(),o.trigger("afterclose",t),o.$lastfocus&&o.current.opts.backfocus&&o.$lastfocus.focus(),o.current=null,e=n.fancybox.getinstance(),e?e.activate():(s.scrolltop(o.scrolltop).scrollleft(o.scrollleft),n("html").removeclass("fancybox-enabled"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;return s?i.unshift(s):s=a,i.unshift(a),n.isfunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),o===!1?o:void("afterclose"===t?r.trigger(t+".fb",i):a.$refs.container.trigger(t+".fb",i))},updatecontrols:function(t){var e=this,o=e.current,i=o.index,a=o.opts,s=a.caption,r=e.$refs.caption;o.$slide.trigger("refresh"),e.$caption=s&&s.length?r.html(s):null,e.ishiddencontrols||e.showcontrols(),n("[data-fancybox-count]").html(e.group.length),n("[data-fancybox-index]").html(i+1),n("[data-fancybox-prev]").prop("disabled",!a.loop&&i<=0),n("[data-fancybox-next]").prop("disabled",!a.loop&&i>=e.group.length-1)},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,n=t.$refs.container;t.ishiddencontrols=!1,t.idlesecondscounter=0,n.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?n.addclass("fancybox-show-caption "):n.removeclass("fancybox-show-caption")},togglecontrols:function(){this.ishiddencontrols?this.showcontrols():this.hidecontrols()}}),n.fancybox={version:"3.1.28",defaults:a,getinstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):first').data("fancybox"),o=array.prototype.slice.call(arguments,1);return e instanceof h&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new h(t,e,n)},close:function(t){var e=this.getinstance();e&&(e.close(),t===!0&&this.close())},destroy:function(){this.close(!0),r.off("click.fb-start")},ismobile:e.createtouch!==o&&/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.useragent),use3d:function(){var n=e.createelement("div");return t.getcomputedstyle&&t.getcomputedstyle(n).getpropertyvalue("transform")&&!(e.documentmode&&e.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 n=/\.*translate\((.*)px,(.*)px\)/i,o=n.exec(t.eq(0).attr("style"));o&&(e[0]=parsefloat(o[2]),e[1]=parsefloat(o[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 n="",i={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().left:e.left)+"px, "+(e.top===o?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scalex!==o&&e.scaley!==o&&(n=(n.length?n+" ":"")+"scale("+e.scalex+", "+e.scaley+")"),n.length&&(i.transform=n),e.opacity!==o&&(i.opacity=e.opacity),e.width!==o&&(i.width=e.width),e.height!==o&&(i.height=e.height),t.css(i)},animate:function(t,e,i,a,s){var r=d||"transitionend";n.isfunction(i)&&(a=i,i=null),n.isplainobject(e)||t.removeattr("style"),t.on(r,function(i){(!i||!i.originalevent||t.is(i.originalevent.target)&&"z-index"!=i.originalevent.propertyname)&&(t.off(r),n.isplainobject(e)?e.scalex!==o&&e.scaley!==o&&(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,n.fancybox.settranslate(t,e)):s!==!0&&t.removeclass(e),n.isfunction(a)&&a(i))}),n.isnumeric(i)&&t.css("transition-duration",i+"ms"),n.isplainobject(e)?n.fancybox.settranslate(t,e):t.addclass(e),t.data("timer",settimeout(function(){t.trigger("transitionend")},i+16))},stop:function(t){cleartimeout(t.data("timer")),t.off(d)}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i)}}(window,document,window.jquery||jquery),function(t){"use strict";var e=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexof("?")>0?"&":"?")+o),e},n={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(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12])+"&output="+(t[12]&&t[12].indexof("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};t(document).on("oninit.fb",function(o,i){t.each(i.group,function(o,i){var a,s,r,c,l,u,d,f=i.src||"",h=!1;i.type||(a=t.extend(!0,{},n,i.opts.media),t.each(a,function(n,o){if(r=f.match(o.matcher),u={},d=n,r){if(h=o.type,o.paramplace&&r[o.paramplace]){l=r[o.paramplace],"?"==l[0]&&(l=l.substring(1)),l=l.split("&");for(var a=0;ae.clientheight,a=("scroll"===o||"auto"===o)&&e.scrollwidth>e.clientwidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasclass("fancybox-stage")||t.is("body"))break}return e},u=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};u.prototype.destroy=function(){this.$container.off(".fb.touch")},u.prototype.ontouchstart=function(o){var i=this,c=n(o.target),u=i.instance,d=u.current,f=d.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),!d||i.instance.isanimating||i.instance.isclosing)return o.stoppropagation(),void o.preventdefault();if((!o.originalevent||2!=o.originalevent.button)&&c.length&&!r(c)&&!r(c.parent())&&!(o.originalevent.clientx>c[0].clientwidth+c.offset().left)&&(i.startpoints=a(o),i.startpoints&&!(i.startpoints.length>1&&u.issliding))){if(i.$target=c,i.$content=f,i.cantap=!0,n(e).off(".fb.touch"),n(e).on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")),n(e).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),!u.current.opts.touch&&!u.canpan()||!c.is(i.$stage)&&!i.$stage.find(c).length)return void(c.is("img")&&o.preventdefault());o.stoppropagation(),n.fancybox.ismobile&&(l(i.$target)||l(i.$target.parent()))||o.preventdefault(),i.canvaswidth=math.round(d.$slide[0].clientwidth),i.canvasheight=math.round(d.$slide[0].clientheight),i.starttime=(new date).gettime(),i.distancex=i.distancey=i.distance=0,i.ispanning=!1,i.isswiping=!1,i.iszooming=!1,i.sliderstartpos=i.sliderlastpos||{top:0,left:0},i.contentstartpos=n.fancybox.gettranslate(i.$content),i.contentlastpos=null,1!==i.startpoints.length||i.iszooming||(i.cantap=!u.issliding,"image"===d.type&&(i.contentstartpos.width>i.canvaswidth+1||i.contentstartpos.height>i.canvasheight+1)?(n.fancybox.stop(i.$content),i.$content.css("transition-duration","0ms"),i.ispanning=!0):i.isswiping=!0,i.$container.addclass("fancybox-controls--isgrabbing")),2!==i.startpoints.length||u.isanimating||d.haserror||"image"!==d.type||!d.isloaded&&!d.$ghost||(i.iszooming=!0,i.isswiping=!1,i.ispanning=!1,n.fancybox.stop(i.$content),i.$content.css("transition-duration","0ms"),i.centerpointstartx=.5*(i.startpoints[0].x+i.startpoints[1].x)-n(t).scrollleft(),i.centerpointstarty=.5*(i.startpoints[0].y+i.startpoints[1].y)-n(t).scrolltop(),i.percentageofimageatpinchpointx=(i.centerpointstartx-i.contentstartpos.left)/i.contentstartpos.width,i.percentageofimageatpinchpointy=(i.centerpointstarty-i.contentstartpos.top)/i.contentstartpos.height,i.startdistancebetweenfingers=s(i.startpoints[0],i.startpoints[1]))}},u.prototype.ontouchmove=function(t){var e=this;if(e.newpoints=a(t),n.fancybox.ismobile&&(l(e.$target)||l(e.$target.parent())))return t.stoppropagation(),void(e.cantap=!1);if((e.instance.current.opts.touch||e.instance.canpan())&&e.newpoints&&e.newpoints.length&&(e.distancex=s(e.newpoints[0],e.startpoints[0],"x"),e.distancey=s(e.newpoints[0],e.startpoints[0],"y"),e.distance=s(e.newpoints[0],e.startpoints[0]),e.distance>0)){if(!e.$target.is(e.$stage)&&!e.$stage.find(e.$target).length)return;t.stoppropagation(),t.preventdefault(),e.isswiping?e.onswipe():e.ispanning?e.onpan():e.iszooming&&e.onzoom()}},u.prototype.onswipe=function(){var e,a=this,s=a.isswiping,r=a.sliderstartpos.left||0;s===!0?math.abs(a.distance)>10&&(a.cantap=!1,a.instance.group.length<2&&a.instance.opts.touch.vertical?a.isswiping="y":a.instance.issliding||a.instance.opts.touch.vertical===!1||"auto"===a.instance.opts.touch.vertical&&n(t).width()>800?a.isswiping="x":(e=math.abs(180*math.atan2(a.distancey,a.distancex)/math.pi),a.isswiping=e>45&&e<135?"y":"x"),a.instance.issliding=a.isswiping,a.startpoints=a.newpoints,n.each(a.instance.slides,function(t,e){n.fancybox.stop(e.$slide),e.$slide.css("transition-duration","0ms"),e.intransition=!1,e.pos===a.instance.current.pos&&(a.sliderstartpos.left=n.fancybox.gettranslate(e.$slide).left)}),a.instance.slideshow&&a.instance.slideshow.isactive&&a.instance.slideshow.stop()):("x"==s&&(a.distancex>0&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?r+=math.pow(a.distancex,.8):a.distancex<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?r-=math.pow(-a.distancex,.8):r+=a.distancex),a.sliderlastpos={top:"x"==s?0:a.sliderstartpos.top+a.distancey,left:r},a.requestid&&(i(a.requestid),a.requestid=null),a.requestid=o(function(){a.sliderlastpos&&(n.each(a.instance.slides,function(t,e){var o=e.pos-a.instance.currpos;n.fancybox.settranslate(e.$slide,{top:a.sliderlastpos.top,left:a.sliderlastpos.left+o*a.canvaswidth+o*e.opts.gutter})}),a.$container.addclass("fancybox-is-sliding"))}))},u.prototype.onpan=function(){var t,e,a,s=this;s.cantap=!1,t=s.contentstartpos.width>s.canvaswidth?s.contentstartpos.left+s.distancex:s.contentstartpos.left,e=s.contentstartpos.top+s.distancey,a=s.limitmovement(t,e,s.contentstartpos.width,s.contentstartpos.height),a.scalex=s.contentstartpos.scalex,a.scaley=s.contentstartpos.scaley,s.contentlastpos=a,s.requestid&&(i(s.requestid),s.requestid=null),s.requestid=o(function(){n.fancybox.settranslate(s.$content,s.contentlastpos)})},u.prototype.limitmovement=function(t,e,n,o){var i,a,s,r,c=this,l=c.canvaswidth,u=c.canvasheight,d=c.contentstartpos.left,f=c.contentstartpos.top,h=c.distancex,p=c.distancey;return i=math.max(0,.5*l-.5*n),a=math.max(0,.5*u-.5*o),s=math.min(l-n,.5*l-.5*n),r=math.min(u-o,.5*u-.5*o),n>l&&(h>0&&t>i&&(t=i-1+math.pow(-i+d+h,.8)||0),h<0&&tu&&(p>0&&e>a&&(e=a-1+math.pow(-a+f+p,.8)||0),p<0&&ea?(t=t>0?0:t,t=ts?(e=e>0?0:e,e=e50?(n.fancybox.animate(e.instance.current.$slide,{top:e.sliderstartpos.top+e.distancey+150*e.velocityy,opacity:0},150),o=e.instance.close(!0,300)):"x"==t&&e.distancex>50&&e.instance.group.length>1?o=e.instance.previous(e.speedx):"x"==t&&e.distancex<-50&&e.instance.group.length>1&&(o=e.instance.next(e.speedx)),o!==!1||"x"!=t&&"y"!=t||e.instance.jumpto(e.instance.current.index,150),e.$container.removeclass("fancybox-is-sliding")},u.prototype.endpanning=function(){var t,e,o,i=this;i.contentlastpos&&(i.instance.current.opts.touch.momentum===!1?(t=i.contentlastpos.left,e=i.contentlastpos.top):(t=i.contentlastpos.left+i.velocityx*i.speed,e=i.contentlastpos.top+i.velocityy*i.speed),o=i.limitposition(t,e,i.contentstartpos.width,i.contentstartpos.height),o.width=i.contentstartpos.width,o.height=i.contentstartpos.height,n.fancybox.animate(i.$content,o,330))},u.prototype.endzooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newwidth,c=a.newheight;a.contentlastpos&&(t=a.contentlastpos.left,e=a.contentlastpos.top,i={top:e,left:t,width:r,height:c,scalex:1,scaley:1},n.fancybox.settranslate(a.$content,i),rs.width||c>s.height?a.instance.scaletoactual(a.centerpointstartx,a.centerpointstarty,150):(o=a.limitposition(t,e,r,c),n.fancybox.settranslate(a.content,n.fancybox.gettranslate(a.$content)),n.fancybox.animate(a.$content,o,150)))},u.prototype.ontap=function(t){var e,o=this,i=n(t.target),s=o.instance,r=s.current,c=t&&a(t)||o.startpoints,l=c[0]?c[0].x-o.$stage.offset().left:0,u=c[0]?c[0].y-o.$stage.offset().top:0,d=function(e){var i=r.opts[e];if(n.isfunction(i)&&(i=i.apply(s,[r,t])),i)switch(i){case"close":s.close(o.startevent);break;case"togglecontrols":s.togglecontrols(!0);break;case"next":s.next();break;case"nextorclose":s.group.length>1?s.next():s.close(o.startevent);break;case"zoom":"image"==r.type&&(r.isloaded||r.$ghost)&&(s.canpan()?s.scaletofit():s.isscaleddown()?s.scaletoactual(l,u):s.group.length<2&&s.close(o.startevent))}};if(!(t.originalevent&&2==t.originalevent.button||s.issliding||l>i[0].clientwidth+i.offset().left)){if(i.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))e="outside";else if(i.is(".fancybox-slide"))e="slide";else{if(!s.current.$content||!s.current.$content.has(t.target).length)return;e="content"}if(o.tapped){if(cleartimeout(o.tapped),o.tapped=null,math.abs(l-o.tapx)>50||math.abs(u-o.tapy)>50||s.issliding)return this;d("dblclick"+e)}else o.tapx=l,o.tapy=u,r.opts["dblclick"+e]&&r.opts["dblclick"+e]!==r.opts["click"+e]?o.tapped=settimeout(function(){o.tapped=null,d("click"+e)},300):d("click"+e);return this}},n(e).on("onactivate.fb",function(t,e){e&&!e.guestures&&(e.guestures=new u(e))}),n(e).on("beforeclose.fb",function(t,e){e&&e.guestures&&e.guestures.destroy()})}(window,document,window.jquery),function(t,e){"use strict";var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isactive:!1,$button:null,speed:3e3,init:function(){var t=this;t.$button=t.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),(t.instance.group.length<2||!t.instance.group[t.instance.currindex].opts.slideshow)&&t.$button.hide()},set:function(){var t=this;t.instance&&t.instance.current&&(t.instance.current.opts.loop||t.instance.currindex1&&t.instance.group[t.instance.currindex].opts.thumbs&&("image"==e.type||e.opts.thumb||e.opts.$thumb)&&("image"==n.type||n.opts.thumb||n.opts.$thumb)?(t.$button.on("click",function(){t.toggle()}),t.isactive=!0):(t.$button.hide(),t.isactive=!1)},create:function(){var t,n,o=this.instance;this.$grid=e('').appendto(o.$refs.container),t="",e.each(o.group,function(e,o){n=o.opts.thumb||(o.opts.$thumb?o.opts.$thumb.attr("src"):null),n||"image"!==o.type||(n=o.src),n&&n.length&&(t+='')}),t+="
",this.$list=e(t).appendto(this.$grid).on("click","li",function(){o.jumpto(e(this).data("index"))}),this.$list.find("img").hide().one("load",function(){var t,n,o,i,a=e(this).parent().removeclass("fancybox-thumbs-loading"),s=a.outerwidth(),r=a.outerheight();t=this.naturalwidth||this.width,n=this.naturalheight||this.height,o=t/s,i=n/r,o>=1&&i>=1&&(o>i?(t/=i,n=r):(t=s,n/=o)),e(this).css({width:math.floor(t),height:math.floor(n),"margin-top":math.min(0,math.floor(.3*r-.3*n)),"margin-left":math.min(0,math.floor(.5*s-.5*t))}).show()}).each(function(){this.src=e(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()}}),e(t).on({"oninit.fb":function(t,e){e&&!e.thumbs&&(e.thumbs=new n(e))},"beforeshow.fb":function(t,e,n,o){var i=e&&e.thumbs;if(i&&i.isactive){if(n.modal)return i.$button.hide(),void i.hide();o&&n.opts.thumbs.autostart===!0&&i.show(),i.isvisible&&i.focus()}},"afterkeydown.fb":function(t,e,n,o,i){var a=e&&e.thumbs;a&&a.isactive&&71===i&&(o.preventdefault(),a.toggle())},"beforeclose.fb":function(t,e){var n=e&&e.thumbs;n&&n.isvisible&&e.opts.thumbs.hideonclose!==!1&&n.close()}})}(document,window.jquery),function(t,e,n){"use strict";function o(){var t=e.location.hash.substr(1),n=t.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseint(n.pop(-1),10)||1:1,i=n.join("-");return o<1&&(o=1),{hash:t,index:o,gallery:i}}function i(t){var e;""!==t.gallery&&(e=n("[data-fancybox='"+n.escapeselector(t.gallery)+"']").eq(t.index-1),e.length||(e=n("#"+n.escapeselector(t.gallery))),e.length&&(s=!1,e.trigger("click")))}function a(t){var e;return!!t&&(e=t.current?t.current.opts:t.opts,e.hash||(e.$orig?e.$orig.data("fancybox"):""))}n.escapeselector||(n.escapeselector=function(t){var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uffff\w-]/g,n=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charcodeat(t.length-1).tostring(16)+" ":"\\"+t};return(t+"").replace(e,n)});var s=!0,r=null,c=null;n(function(){settimeout(function(){n.fancybox.defaults.hash!==!1&&(n(t).on({"oninit.fb":function(t,e){var n,i;e.group[e.currindex].opts.hash!==!1&&(n=o(),i=a(e),i&&n.gallery&&i==n.gallery&&(e.currindex=n.index-1))},"beforeshow.fb":function(n,o,i){var l;i&&i.opts.hash!==!1&&(l=a(o),l&&""!==l&&(e.location.hash.indexof(l)<0&&(o.opts.orighash=e.location.hash),r=l+(o.group.length>1?"-"+(i.index+1):""),"replacestate"in e.history?(c&&cleartimeout(c),c=settimeout(function(){e.history[s?"pushstate":"replacestate"]({},t.title,e.location.pathname+e.location.search+"#"+r),c=null,s=!1},300)):e.location.hash=r))},"beforeclose.fb":function(o,i,s){var l,u;c&&cleartimeout(c),s.opts.hash!==!1&&(l=a(i),u=i&&i.opts.orighash?i.opts.orighash:"",l&&""!==l&&("replacestate"in history?e.history.replacestate({},t.title,e.location.pathname+e.location.search+u):(e.location.hash=u,n(e).scrolltop(i.scrolltop).scrollleft(i.scrollleft))),r=null)}}),n(e).on("hashchange.fb",function(){var t=o();n.fancybox.getinstance()?!r||r===t.gallery+"-"+t.index||1===t.index&&r==t.gallery||(r=null,n.fancybox.close()):""!==t.gallery&&i(t)}),i(o()))},50)})}(document,window,window.jquery);