").html(e).find(t.opts.filter))),t.$slide.one("onreset",function(){n(this).find("video,audio").trigger("pause"),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)}),n(e).appendto(t.$slide),n(e).is("video,audio")&&(n(e).addclass("fancybox-video"),n(e).wrap("
"),t.contenttype="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio").first().addclass("fancybox-content"),t.$slide.addclass("fancybox-slide--"+t.contenttype),this.afterload(t))},seterror:function(t){t.haserror=!0,t.$slide.trigger("onreset").removeclass("fancybox-slide--"+t.contenttype).addclass("fancybox-slide--error"),t.contenttype="html",this.setcontent(t,this.translate(t,t.opts.errortpl)),t.pos===this.currpos&&(this.isanimating=!1)},showloading:function(t){var e=this;t=t||e.current,t&&!t.$spinner&&(t.$spinner=n(e.translate(e,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.pos===e.currpos&&e.updatecursor(),!t.opts.smallbtn||t.$smallbtn&&t.$smallbtn.length||(t.$smallbtn=n(e.translate(t,t.opts.btntpl.smallbtn)).prependto(t.$content)),t.opts.protect&&t.$content&&!t.haserror&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventdefault(),!0}),"image"===t.type&&n('
').appendto(t.$content)),e.revealcontent(t))},revealcontent:function(t){var e,i,a,s,r=this,c=t.$slide,l=!1,d=!1;return e=t.opts[r.firstrun?"animationeffect":"transitioneffect"],a=t.opts[r.firstrun?"animationduration":"transitionduration"],a=parseint(t.forcedduration===o?a:t.forcedduration,10),t.pos===r.currpos&&(t.iscomplete?e=!1:r.isanimating=!0),!t.ismoved&&t.pos===r.currpos&&a||(e=!1),"zoom"===e&&(t.pos===r.currpos&&a&&"image"===t.type&&!t.haserror&&(d=r.getthumbpos(t))?l=r.getfitpos(t):e="fade"),"zoom"===e?(l.scalex=l.width/d.width,l.scaley=l.height/d.height,s=t.opts.zoomopacity,"auto"==s&&(s=math.abs(t.width/t.height-d.width/d.height)>.1),s&&(d.opacity=.1,l.opacity=1),n.fancybox.settranslate(t.$content.removeclass("fancybox-is-hidden"),d),f(t.$content),void n.fancybox.animate(t.$content,l,a,function(){r.isanimating=!1,r.complete()})):(r.updateslide(t),e?(n.fancybox.stop(c),i="fancybox-animated fancybox-slide--"+(t.pos>=r.prevpos?"next":"previous")+" fancybox-fx-"+e,c.removeattr("style").removeclass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addclass(i),t.$content.removeclass("fancybox-is-hidden"),f(c),void n.fancybox.animate(c,"fancybox-slide--current",a,function(e){c.removeclass(i).removeattr("style"),t.pos===r.currpos&&r.complete()},!0)):(f(c),t.$content.removeclass("fancybox-is-hidden"),void(t.pos===r.currpos&&r.complete())))},getthumbpos:function(o){var i,a=this,s=!1,r=o.opts.$thumb,c=r&&r.length&&r[0].ownerdocument===e?r.offset():0,l=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.isanimating=!1,t.updatecursor(),t.trigger("aftershow"),o.$slide.find("video,audio").filter(":visible:first").trigger("play"),(n(e.activeelement).is("[disabled]")||o.opts.autofocus&&"image"!=o.type&&"iframe"!==o.type)&&t.focus())},preload:function(t){var e=this,n=e.slides[e.currpos+1],o=e.slides[e.currpos-1];n&&n.type===t&&e.loadslide(n),o&&o.type===t&&e.loadslide(o)},focus:function(){var t,e=this.current;this.isclosing||e&&e.iscomplete&&e.$content&&(t=e.$content.find("input[autofocus]:enabled:visible:first"),t.length||(t=e.$content.find("button,:input,[tabindex],a").filter(":enabled:visible:first")),t=t&&t.length?t:e.$content,t.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("fancybox");e&&e.id!==t.id&&!e.isclosing&&(e.trigger("ondeactivate"),e.removeevents(),e.isvisible=!1)}),t.isvisible=!0,(t.current||t.isidle)&&(t.update(),t.updatecontrols()),t.trigger("onactivate"),t.addevents()},close:function(t,e){var o,i,a,s,r,c,l,p=this,h=p.current,g=function(){p.cleanup(t)};return!p.isclosing&&(p.isclosing=!0,p.trigger("beforeclose",t)===!1?(p.isclosing=!1,d(function(){p.update()}),!1):(p.removeevents(),h.timouts&&cleartimeout(h.timouts),a=h.$content,o=h.opts.animationeffect,i=n.isnumeric(e)?e:o?h.opts.animationduration:0,h.$slide.off(u).removeclass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),h.$slide.siblings().trigger("onreset").remove(),i&&p.$refs.container.removeclass("fancybox-is-open").addclass("fancybox-is-closing"),p.hideloading(h),p.hidecontrols(),p.updatecursor(),"zoom"!==o||t!==!0&&a&&i&&"image"===h.type&&!h.haserror&&(l=p.getthumbpos(h))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.gettranslate(a),c={top:s.top,left:s.left,scalex:s.width/l.width,scaley:s.height/l.height,width:l.width,height:l.height},r=h.opts.zoomopacity,"auto"==r&&(r=math.abs(h.width/h.height-l.width/l.height)>.1),r&&(l.opacity=0),n.fancybox.settranslate(a,c),f(a),n.fancybox.animate(a,l,i,g),!0):(o&&i?t===!0?settimeout(g,i):n.fancybox.animate(h.$slide.removeclass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+o,i,g):g(),!0)))},cleanup:function(t){var e,o=this,i=n("body");o.current.$slide.trigger("onreset"),o.$refs.container.empty().remove(),o.trigger("afterclose",t),o.$lastfocus&&o.current.opts.backfocus&&o.$lastfocus.trigger("focus"),o.current=null,e=n.fancybox.getinstance(),e?e.activate():(i.removeclass("fancybox-active compensate-for-scrollbar"),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&&a.$refs?a.$refs.container.trigger(t+".fb",i):r.trigger(t+".fb",i))},updatecontrols:function(t){var e=this,n=e.current,o=n.index,i=n.opts.caption,a=e.$refs.container,s=e.$refs.caption;n.$slide.trigger("refresh"),e.$caption=i&&i.length?s.html(i):null,e.ishiddencontrols||e.isidle||e.showcontrols(),a.find("[data-fancybox-count]").html(e.group.length),a.find("[data-fancybox-index]").html(o+1),a.find("[data-fancybox-prev]").toggleclass("disabled",!n.opts.loop&&o<=0),a.find("[data-fancybox-next]").toggleclass("disabled",!n.opts.loop&&o>=e.group.length-1),"image"===n.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",n.opts.image.src||n.src).show():n.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide()},hidecontrols:function(){this.ishiddencontrols=!0,this.$refs.container.removeclass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showcontrols:function(){var t=this,e=t.current?t.current.opts:t.opts,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.3.5",defaults:a,getinstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').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.add("body").off("click.fb-start","**")},ismobile:e.createtouch!==o&&/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.useragent),use3d:function(){var n=e.createelement("div");return t.getcomputedstyle&&t.getcomputedstyle(n)&&t.getcomputedstyle(n).getpropertyvalue("transform")&&!(e.documentmode&&e.documentmode<11)}(),gettranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getboundingclientrect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parsefloat(t.css("opacity"))})},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=!1;n.isfunction(i)&&(a=i,i=null),n.isplainobject(e)||t.removeattr("style"),n.fancybox.stop(t),t.on(u,function(o){(!o||!o.originalevent||t.is(o.originalevent.target)&&"z-index"!=o.originalevent.propertyname)&&(n.fancybox.stop(t),r&&n.fancybox.settranslate(t,r),
n.isplainobject(e)?s===!1&&t.removeattr("style"):s!==!0&&t.removeclass(e),n.isfunction(a)&&a(o))}),n.isnumeric(i)&&t.css("transition-duration",i+"ms"),n.isplainobject(e)?(e.scalex!==o&&e.scaley!==o&&(r=n.extend({},e,{width:t.width()*e.scalex,height:t.height()*e.scaley,scalex:1,scaley:1}),delete e.width,delete e.height,t.parent().hasclass("fancybox-slide--image")&&t.parent().addclass("fancybox-is-scaling")),n.fancybox.settranslate(t,e)):t.addclass(e),t.data("timer",settimeout(function(){t.trigger("transitionend")},i+16))},stop:function(t){t&&t.length&&(cleartimeout(t.data("timer")),t.off("transitionend").css("transition-duration",""),t.parent().removeclass("fancybox-is-scaling"))}},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),r.on("click.fb-start","[data-trigger]",function(t){i(t,{$target:n('[data-fancybox="'+n(t.currenttarget).attr("data-trigger")+'"]').eq(n(t.currenttarget).attr("data-index")||0),$trigger:n(this)})})}}(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"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-za-z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexof("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};t(document).on("objectneedstype.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},n,a.opts.media),t.each(s,function(n,o){if(c=p.match(o.matcher)){if(h=o.type,f=n,u={},o.paramplace&&c[o.paramplace]){d=c[o.paramplace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;ie.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},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){this.$container.off(".fb.touch")},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$content,p="touchstart"==o.type;if(p&&i.$container.off("mousedown.fb.touch"),(!o.originalevent||2!=o.originalevent.button)&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalevent.clientx>c[0].clientwidth+c.offset().left))){if(!u||d.isanimating||d.isclosing)return o.stoppropagation(),void o.preventdefault();if(i.realpoints=i.startpoints=a(o),i.startpoints.length){if(o.stoppropagation(),i.startevent=o,i.cantap=!0,i.$target=c,i.$content=f,i.opts=u.opts.touch,i.ispanning=!1,i.isswiping=!1,i.iszooming=!1,i.isscrolling=!1,i.starttime=(new date).gettime(),i.distancex=i.distancey=i.distance=0,i.canvaswidth=math.round(u.$slide[0].clientwidth),i.canvasheight=math.round(u.$slide[0].clientheight),i.contentlastpos=null,i.contentstartpos=n.fancybox.gettranslate(i.$content)||{top:0,left:0},i.sliderstartpos=i.sliderlastpos||n.fancybox.gettranslate(u.$slide),i.stagepos=n.fancybox.gettranslate(d.$refs.stage),i.sliderstartpos.top-=i.stagepos.top,i.sliderstartpos.left-=i.stagepos.left,i.contentstartpos.top-=i.stagepos.top,i.contentstartpos.left-=i.stagepos.left,n(e).off(".fb.touch").on(p?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(p?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.ismobile&&e.addeventlistener("scroll",i.onscroll,!0),!i.opts&&!d.canpan()||!c.is(i.$stage)&&!i.$stage.find(c).length)return void(c.is(".fancybox-image")&&o.preventdefault());n.fancybox.ismobile&&(l(c)||l(c.parent()))||o.preventdefault(),(1===i.startpoints.length||u.haserror)&&(i.instance.canpan()?(n.fancybox.stop(i.$content),i.$content.css("transition-duration",""),i.ispanning=!0):i.isswiping=!0,i.$container.addclass("fancybox-controls--isgrabbing")),2===i.startpoints.length&&"image"===u.type&&(u.isloaded||u.$ghost)&&(i.cantap=!1,i.isswiping=!1,i.ispanning=!1,i.iszooming=!0,n.fancybox.stop(i.$content),i.$content.css("transition-duration",""),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]))}}},d.prototype.onscroll=function(t){var n=this;n.isscrolling=!0,e.removeeventlistener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this,o=n(t.target);return void 0!==t.originalevent.buttons&&0===t.originalevent.buttons?void e.ontouchend(t):e.isscrolling||!o.is(e.$stage)&&!e.$stage.find(o).length?void(e.cantap=!1):(e.newpoints=a(t),void((e.opts||e.instance.canpan())&&e.newpoints.length&&e.newpoints.length&&(e.isswiping&&e.isswiping===!0||t.preventdefault(),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&&(e.isswiping?e.onswipe(t):e.ispanning?e.onpan():e.iszooming&&e.onzoom()))))},d.prototype.onswipe=function(e){var a,s=this,r=s.isswiping,c=s.sliderstartpos.left||0;if(r!==!0)"x"==r&&(s.distancex>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?c+=math.pow(s.distancex,.8):s.distancex<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?c-=math.pow(-s.distancex,.8):c+=s.distancex),s.sliderlastpos={top:"x"==r?0:s.sliderstartpos.top+s.distancey,left:c},s.requestid&&(i(s.requestid),s.requestid=null),s.requestid=o(function(){s.sliderlastpos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currpos;n.fancybox.settranslate(e.$slide,{top:s.sliderlastpos.top,left:s.sliderlastpos.left+o*s.canvaswidth+o*e.opts.gutter})}),s.$container.addclass("fancybox-is-sliding"))});else if(math.abs(s.distance)>10){if(s.cantap=!1,s.instance.group.length<2&&s.opts.vertical?s.isswiping="y":s.instance.isdragging||s.opts.vertical===!1||"auto"===s.opts.vertical&&n(t).width()>800?s.isswiping="x":(a=math.abs(180*math.atan2(s.distancey,s.distancex)/math.pi),s.isswiping=a>45&&a<135?"y":"x"),s.cantap=!1,"y"===s.isswiping&&n.fancybox.ismobile&&(l(s.$target)||l(s.$target.parent())))return void(s.isscrolling=!0);s.instance.isdragging=s.isswiping,s.startpoints=s.newpoints,n.each(s.instance.slides,function(t,e){n.fancybox.stop(e.$slide),e.$slide.css("transition-duration",""),e.intransition=!1,e.pos===s.instance.current.pos&&(s.sliderstartpos.left=n.fancybox.gettranslate(e.$slide).left-n.fancybox.gettranslate(s.instance.$refs.stage).left)}),s.instance.slideshow&&s.instance.slideshow.isactive&&s.instance.slideshow.stop()}},d.prototype.onpan=function(){var t=this;return s(t.newpoints[0],t.realpoints[0])<(n.fancybox.ismobile?10:5)?void(t.startpoints=t.newpoints):(t.cantap=!1,t.contentlastpos=t.limitmovement(),t.requestid&&(i(t.requestid),t.requestid=null),void(t.requestid=o(function(){n.fancybox.settranslate(t.$content,t.contentlastpos)})))},d.prototype.limitmovement=function(){var t,e,n,o,i,a,s=this,r=s.canvaswidth,c=s.canvasheight,l=s.distancex,d=s.distancey,u=s.contentstartpos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,t=math.max(0,.5*r-.5*h),e=math.max(0,.5*c-.5*g),n=math.min(r-h,.5*r-.5*h),o=math.min(c-g,.5*c-.5*g),l>0&&i>t&&(i=t-1+math.pow(-t+f+l,.8)||0),l<0&&i0&&a>e&&(a=e-1+math.pow(-e+p+d,.8)||0),d<0&&aa?(t=t>0?0:t,t=ts?(e=e>0?0:e,e=e50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderstartpos.top+o.distancey+150*o.velocityy,opacity:0},200),i=o.instance.close(!0,200)):"x"==t&&o.distancex>50&&a>1?i=o.instance.previous(o.speedx):"x"==t&&o.distancex<-50&&a>1&&(i=o.instance.next(o.speedx)),i!==!1||"x"!=t&&"y"!=t||(e||a<2?o.instance.centerslide(o.instance.current,150):o.instance.jumpto(o.instance.current.index)),o.$container.removeclass("fancybox-is-sliding")},d.prototype.endpanning=function(){var t,e,o,i=this;i.contentlastpos&&(i.opts.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))},d.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)))},d.prototype.ontap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startpoints,d=l[0]?l[0].x-n(t).scrollleft()-i.stagepos.left:0,u=l[0]?l[0].y-n(t).scrolltop()-i.stagepos.top:0,f=function(t){var o=c.opts[t];if(n.isfunction(o)&&(o=o.apply(r,[c,e])),o)switch(o){case"close":r.close(i.startevent);break;case"togglecontrols":r.togglecontrols(!0);break;case"next":r.next();break;case"nextorclose":r.group.length>1?r.next():r.close(i.startevent);break;case"zoom":"image"==c.type&&(c.isloaded||c.$ghost)&&(r.canpan()?r.scaletofit():r.isscaleddown()?r.scaletoactual(d,u):r.group.length<2&&r.close(i.startevent))}};if((!e.originalevent||2!=e.originalevent.button)&&(s.is("img")||!(d>s[0].clientwidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="outside";else if(s.is(".fancybox-slide"))o="slide";else{if(!r.current.$content||!r.current.$content.find(s).addback().filter(s).length)return;o="content"}if(i.tapped){if(cleartimeout(i.tapped),i.tapped=null,math.abs(d-i.tapx)>50||math.abs(u-i.tapy)>50)return this;f("dblclick"+o)}else i.tapx=d,i.tapy=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=settimeout(function(){i.tapped=null,f("click"+o)},500):f("click"+o);return this}},n(e).on("onactivate.fb",function(t,e){e&&!e.guestures&&(e.guestures=new d(e))})}(window,document,window.jquery||jquery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btntpl:{slideshow:''},slideshow:{autostart:!1,speed:3e3}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isactive:!1,$button:null,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(t){var e=this;e.instance&&e.instance.current&&(t===!0||e.instance.current.opts.loop||e.instance.currindex'},fullscreen:{autostart:!1}}),e(t).on({"oninit.fb":function(t,e){var n;e&&e.group[e.currindex].opts.fullscreen?(n=e.$refs.container,n.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stoppropagation(),t.preventdefault(),o.toggle()}),e.opts.fullscreen&&e.opts.fullscreen.autostart===!0&&o.request(),e.fullscreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterkeydown.fb":function(t,e,n,o,i){e&&e.fullscreen&&70===i&&(o.preventdefault(),e.fullscreen.toggle())},"beforeclose.fb":function(t,e){e&&e.fullscreen&&e.$refs.container.hasclass("fancybox-is-fullscreen")&&o.exit()}}),e(t).on(n.fullscreenchange,function(){var t=o.isfullscreen(),n=e.fancybox.getinstance();n&&(n.current&&"image"===n.current.type&&n.isanimating&&(n.current.$content.css("transition","none"),n.isanimating=!1,n.update(!0,!0,0)),n.trigger("onfullscreenchange",t),n.$refs.container.toggleclass("fancybox-is-fullscreen",t))})}(document,window.jquery||jquery),function(t,e){"use strict";var n="fancybox-thumbs",o=n+"-active",i=n+"-loading";e.fancybox.defaults=e.extend(!0,{btntpl:{thumbs:''},thumbs:{autostart:!1,hideonclose:!0,parentel:".fancybox-container",axis:"y"}},e.fancybox.defaults);var a=function(t){this.init(t)};e.extend(a.prototype,{$button:null,$grid:null,$list:null,isvisible:!1,isactive:!1,init:function(t){var e,n,o=this;o.instance=t,t.thumbs=o,o.opts=t.group[t.currindex].opts.thumbs,e=t.group[0],e=e.opts.thumb||!(!e.opts.$thumb||!e.opts.$thumb.length)&&e.opts.$thumb.attr("src"),t.group.length>1&&(n=t.group[1],n=n.opts.thumb||!(!n.opts.$thumb||!n.opts.$thumb.length)&&n.opts.$thumb.attr("src")),o.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]"),o.opts&&e&&n&&e&&n?(o.$button.show().on("click",function(){o.toggle()}),o.isactive=!0):o.$button.hide()},create:function(){var t,o=this,a=o.instance,s=o.opts.parentel,r=[];o.$grid||(o.$grid=e('').appendto(a.$refs.container.find(s).addback().filter(s)),o.$grid.on("click","li",function(){a.jumpto(e(this).attr("data-index"))})),o.$list||(o.$list=e("").appendto(o.$grid)),e.each(a.group,function(e,n){t=n.opts.thumb||(n.opts.$thumb?n.opts.$thumb.attr("src"):null),t||"image"!==n.type||(t=n.src),r.push('':"")+">")}),o.$list[0].innerhtml=r.join(""),"x"===o.opts.axis&&o.$list.width(parseint(o.$grid.css("padding-right"),10)+a.group.length*o.$list.children().eq(0).outerwidth(!0))},focus:function(t){var e,n,i=this,a=i.$list,s=i.$grid;i.instance.current&&(e=a.children().removeclass(o).filter('[data-index="'+i.instance.current.index+'"]').addclass(o),n=e.position(),"y"===i.opts.axis&&(n.top<0||n.top>a.height()-e.outerheight())?a.stop().animate({scrolltop:a.scrolltop()+n.top},t):"x"===i.opts.axis&&(n.lefts.scrollleft()+(s.width()-e.outerwidth()))&&a.parent().stop().animate({scrollleft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleclass("fancybox-show-thumbs",this.isvisible),t.isvisible?(t.$grid||t.create(),t.instance.trigger("onthumbsshow"),t.focus(0)):t.$grid&&t.instance.trigger("onthumbshide"),t.instance.update()},hide:function(){this.isvisible=!1,this.update()},show:function(){this.isvisible=!0,this.update()},toggle:function(){this.isvisible=!this.isvisible,this.update()}}),e(t).on({"oninit.fb":function(t,e){var n;e&&!e.thumbs&&(n=new a(e),n.isactive&&n.opts.autostart===!0&&n.show())},"beforeshow.fb":function(t,e,n,o){var i=e&&e.thumbs;i&&i.isvisible&&i.focus(o?0:250)},"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&&n.opts.hideonclose!==!1&&n.$grid.hide()}})}(document,window.jquery||jquery),function(t,e){"use strict";function n(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return string(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e.extend(!0,e.fancybox.defaults,{btntpl:{share:''},share:{url:function(t,e){return!t.currenthash&&"inline"!==e.type&&"html"!==e.type&&(e.origsrc||e.src)||window.location},tpl:''}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,i=e.fancybox.getinstance(),a=i.current||null;a&&("function"===e.type(a.opts.share.url)&&(t=a.opts.share.url.apply(a,[i,a])),o=a.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===a.type?encodeuricomponent(a.src):"").replace(/\{\{url\}\}/g,encodeuricomponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeuricomponent(i.$caption.text()):""),e.fancybox.open({src:i.translate(i,o),type:"html",opts:{animationeffect:!1,afterload:function(t,e){i.$refs.container.one("beforeclose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__links a").click(function(){return window.open(this.href,"share","width=550, height=450"),!1})}}}))})}(document,window.jquery||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{hash:t,index:o<1?1:o,gallery:i}}function i(t){var e;""!==t.gallery&&(e=n("[data-fancybox='"+n.escapeselector(t.gallery)+"']").eq(t.index-1).trigger("click.fb-start"))}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,n=e.hash||(e.$orig?e.$orig.data("fancybox"):""),""!==n&&n)}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)}),n(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,s){var r;i&&i.opts.hash!==!1&&(r=a(o),r&&(o.currenthash=r+(o.group.length>1?"-"+(i.index+1):""),e.location.hash!=="#"+o.currenthash&&(o.orighash||(o.orighash=e.location.hash),o.hashtimer&&cleartimeout(o.hashtimer),o.hashtimer=settimeout(function(){"replacestate"in e.history?(e.history[s?"pushstate":"replacestate"]({},t.title,e.location.pathname+e.location.search+"#"+o.currenthash),s&&(o.hascreatedhistory=!0)):e.location.hash=o.currenthash,o.hashtimer=null},300))))},"beforeclose.fb":function(n,o,i){var s;i.opts.hash!==!1&&(s=a(o),o.currenthash&&o.hascreatedhistory?e.history.back():o.currenthash&&("replacestate"in e.history?e.history.replacestate({},t.title,e.location.pathname+e.location.search+(o.orighash||"")):e.location.hash=o.orighash),o.currenthash=null,cleartimeout(o.hashtimer))}}),n(e).on("hashchange.fb",function(){var t,e=o();n.each(n(".fancybox-container").get().reverse(),function(e,o){var i=n(o).data("fancybox");if(i.currenthash)return t=i,!1}),t?!t.currenthash||t.currenthash===e.gallery+"-"+e.index||1===e.index&&t.currenthash==e.gallery||(t.currenthash=null,t.close()):""!==e.gallery&&i(e)}),settimeout(function(){n.fancybox.getinstance()||i(o())},50))})}(document,window,window.jquery||jquery),function(t,e){"use strict";var n=(new date).gettime();e(t).on({"oninit.fb":function(t,e,o){e.$refs.stage.on("mousewheel dommousescroll wheel mozmousepixelscroll",function(t){var o=e.current,i=(new date).gettime();e.group.length<2||o.opts.wheel===!1||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventdefault(),t.stoppropagation(),o.$slide.hasclass("fancybox-animated")||(t=t.originalevent||t,i-n<250||(n=i,e[(-t.deltay||-t.deltax||t.wheeldelta||-t.detail)<0?"next":"previous"]())))})}})}(document,window.jquery||jquery);