{"size": 124030, "ext": "js", "max_stars_repo_path": "web/js/scripts.min.js", "max_stars_repo_name": "svforg/debem_catalog", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "web/js/scripts.min.js", "max_issues_repo_name": "svforg/debem_catalog", "max_issues_repo_issues_event_min_datetime": "2020-10-16T09:08:16.000Z", "max_issues_repo_issues_event_max_datetime": "2020-10-16T09:08:17.000Z", "max_forks_repo_path": "web/js/scripts.min.js", "max_forks_repo_name": "svforg/debem_catalog", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 124030.0, "max_line_length": 124030, "alphanum_fraction": 0.7087075707}
function e(t,i){var s=!1,e=t.charAt(0).toUpperCase()+t.slice(1);return n.each((t+" "+r.join(e+" ")+e).split(" "),function(t,e){if(a[e]!==o)return s=!i||e,!1}),s}function t(t){return e(t,!0)}var n,o,a,r,i,s,l,c,h,d,p,u,f,g,m,v,y,b,w,x,_,C,T,S,P,k,z,E,M,I,D,L,A;function F(t,e){this.settings=null,this.options=z.extend({},F.Defaults,e),this.$element=z(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},z.each(["onResize","onThrottledResize"],z.proxy(function(t,e){this._handlers[e]=z.proxy(this[e],this)},this)),z.each(F.Plugins,z.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),z.each(F.Workers,z.proxy(function(t,e){this._pipe.push({filter:e.filter,run:z.proxy(e.run,this)})},this)),this.setup(),this.initialize()}z=window.Zepto||window.jQuery,E=window,M=document,F.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:E,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},F.Width={Default:"default",Inner:"inner",Outer:"outer"},F.Type={Event:"event",State:"state"},F.Plugins={},F.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,s=this.settings.rtl,n={width:"auto","margin-left":s?e:"","margin-right":s?"":e};i||this.$stage.children().css(n),t.css=n}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,s=this._items.length,n=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};s--;)i=this._mergers[s],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=1<i||t.items.merge,o[s]=n?e*i:this._items[s].width();this._widths=o}},{filter:["items","settings"],run:function(){var t=[],e=this._items,i=this.settings,s=Math.max(2*i.items,4),n=2*Math.ceil(e.length/2),o=i.loop&&e.length?i.rewind?s:Math.max(s,n):0,a="",r="";for(o/=2;0<o;)t.push(this.normalize(t.length/2,!0)),a+=e[t[t.length-1]][0].outerHTML,t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),r=e[t[t.length-1]][0].outerHTML+r,o-=1;this._clones=t,z(a).addClass("cloned").appendTo(this.$stage),z(r).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,s=0,n=0,o=[];++i<e;)s=o[i-1]||0,n=this._widths[this.relative(i)]+this.settings.margin,o.push(s+n*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,s=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],s.eq(e).css(t.css);else i&&(t.css.width=t.items.width,s.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,s,n=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,a=this.coordinates(this.current())+o,r=a+this.width()*n,l=[];for(i=0,s=this._coordinates.length;i<s;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*n,(this.op(t,"<=",a)&&this.op(t,">",r)||this.op(e,"<",a)&&this.op(e,">",r))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],F.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=z("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(z("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},F.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return z(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},F.prototype.initialize=function(){var t,e,i;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:I,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},F.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},F.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,s=null;t?(z.each(t,function(t){t<=e&&i<t&&(i=Number(t))}),"function"==typeof(s=z.extend({},this.options,t[i])).stagePadding&&(s.stagePadding=s.stagePadding()),delete s.responsive,s.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):s=z.extend({},this.options),this.trigger("change",{property:{name:"settings",value:s}}),this._breakpoint=i,this.settings=s,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},F.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},F.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=z("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},F.prototype.update=function(){for(var t=0,e=this._pipe.length,i=z.proxy(function(t){return this[t]},this._invalidated),s={};t<e;)(this._invalidated.all||0<z.grep(this._pipe[t].filter,i).length)&&this._pipe[t].run(s),t++;this._invalidated={},this.is("valid")||this.enter("valid")},F.prototype.width=function(t){switch(t=t||F.Width.Default){case F.Width.Inner:case F.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},F.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},F.prototype.onThrottledResize=function(){E.clearTimeout(this.resizeTimer),this.resizeTimer=E.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},F.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},F.prototype.registerEventHandlers=function(){z.support.transition&&this.$stage.on(z.support.transition.end+".owl.core",z.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(E,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",z.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",z.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",z.proxy(this.onDragEnd,this)))},F.prototype.onDragStart=function(t){var e=null;3!==t.which&&(e=z.support.transform?{x:(e=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===e.length?12:4],y:e[16===e.length?13:5]}:(e=this.$stage.position(),{x:this.settings.rtl?e.left+this.$stage.width()-this.width()+this.settings.margin:e.left,y:e.top}),this.is("animating")&&(z.support.transform?this.animate(e.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=z(t.target),this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this.pointer(t),z(M).on("mouseup.owl.core touchend.owl.core",z.proxy(this.onDragEnd,this)),z(M).one("mousemove.owl.core touchmove.owl.core",z.proxy(function(t){var e=this.difference(this._drag.pointer,this.pointer(t));z(M).on("mousemove.owl.core touchmove.owl.core",z.proxy(this.onDragMove,this)),Math.abs(e.x)<Math.abs(e.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},F.prototype.onDragMove=function(t){var e=null,i=null,s=null,n=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,n);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),s=this.settings.pullDrag?-1*n.x/5:0,o.x=Math.max(Math.min(o.x,e+s),i+s)),this._drag.stage.current=o,this.animate(o.x))},F.prototype.onDragEnd=function(t){var e=this.difference(this._drag.pointer,this.pointer(t)),i=this._drag.stage.current,s=0<e.x^this.settings.rtl?"left":"right";z(M).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==e.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(i.x,0!==e.x?s:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=s,(3<Math.abs(e.x)||300<(new Date).getTime()-this._drag.time)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},F.prototype.closest=function(i,s){var n=-1,o=this.width(),a=this.coordinates();return this.settings.freeDrag||z.each(a,z.proxy(function(t,e){return"left"===s&&e-30<i&&i<e+30?n=t:"right"===s&&e-o-30<i&&i<e-o+30?n=t+1:this.op(i,"<",e)&&this.op(i,">",a[t+1]!==I?a[t+1]:e-o)&&(n="left"===s?t+1:t),-1===n},this)),this.settings.loop||(this.op(i,">",a[this.minimum()])?n=i=this.minimum():this.op(i,"<",a[this.maximum()])&&(n=i=this.maximum())),n},F.prototype.animate=function(t){var e=0<this.speed();this.is("animating")&&this.onTransitionEnd(),e&&(this.enter("animating"),this.trigger("translate")),z.support.transform3d&&z.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):e?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,z.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},F.prototype.is=function(t){return this._states.current[t]&&0<this._states.current[t]},F.prototype.current=function(t){if(t===I)return this._current;if(0===this._items.length)return I;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==I&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},F.prototype.invalidate=function(t){return"string"===z.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),z.map(this._invalidated,function(t,e){return e})},F.prototype.reset=function(t){(t=this.normalize(t))!==I&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},F.prototype.normalize=function(t,e){var i=this._items.length,s=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=I:(t<0||i+s<=t)&&(t=((t-s/2)%i+i)%i+s/2),t},F.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},F.prototype.maximum=function(t){var e,i,s,n=this.settings,o=this._coordinates.length;if(n.loop)o=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge){if(e=this._items.length)for(i=this._items[--e].width(),s=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>s););o=e+1}else o=n.center?this._items.length-1:this._items.length-n.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},F.prototype.minimum=function(t){return t?0:this._clones.length/2},F.prototype.items=function(t){return t===I?this._items.slice():(t=this.normalize(t,!0),this._items[t])},F.prototype.mergers=function(t){return t===I?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},F.prototype.clones=function(i){function s(t){return t%2==0?n+t/2:e-(t+1)/2}var e=this._clones.length/2,n=e+this._items.length;return i===I?z.map(this._clones,function(t,e){return s(e)}):z.map(this._clones,function(t,e){return t===i?s(e):null})},F.prototype.speed=function(t){return t!==I&&(this._speed=t),this._speed},F.prototype.coordinates=function(t){var e,i=1,s=t-1;return t===I?z.map(this._coordinates,z.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,s=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[s]||0))/2*i):e=this._coordinates[s]||0,e=Math.ceil(e))},F.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},F.prototype.to=function(t,e){var i=this.current(),s=null,n=t-this.relative(i),o=(0<n)-(n<0),a=this._items.length,r=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>a/2&&(n+=-1*o*a),(s=(((t=i+n)-r)%a+a)%a+r)!==t&&s-n<=l&&0<s-n&&(i=s-n,t=s,this.reset(i))):t=this.settings.rewind?(t%(l+=1)+l)%l:Math.max(r,Math.min(l,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},F.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},F.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},F.prototype.onTransitionEnd=function(t){if(t!==I&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},F.prototype.viewport=function(){var t;return this.options.responsiveBaseElement!==E?t=z(this.options.responsiveBaseElement).width():E.innerWidth?t=E.innerWidth:M.documentElement&&M.documentElement.clientWidth?t=M.documentElement.clientWidth:console.warn("Can not detect viewport width."),t},F.prototype.replace=function(t){this.$stage.empty(),this._items=[],t=t&&(t instanceof jQuery?t:z(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(z.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},F.prototype.add=function(t,e){var i=this.relative(this._current);e=e===I?this._items.length:this.normalize(e,!0),t=t instanceof jQuery?t:z(t),this.trigger("add",{content:t,position:e}),t=this.prepare(t),0===this._items.length||e===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[e-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate("items"),this.trigger("added",{content:t,position:e})},F.prototype.remove=function(t){(t=this.normalize(t,!0))!==I&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},F.prototype.preloadAutoWidthImages=function(t){t.each(z.proxy(function(t,e){this.enter("pre-loading"),e=z(e),z(new Image).one("load",z.proxy(function(t){e.attr("src",t.target.src),e.css("opacity",1),this.leave("pre-loading"),this.is("pre-loading")||this.is("initializing")||this.refresh()},this)).attr("src",e.attr("src")||e.attr("data-src")||e.attr("data-src-retina"))},this))},F.prototype.destroy=function(){for(var t in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),z(M).off(".owl.core"),!1!==this.settings.responsive&&(E.clearTimeout(this.resizeTimer),this.off(E,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[t].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},F.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?i<t:t<i;case">":return s?t<i:i<t;case">=":return s?t<=i:i<=t;case"<=":return s?i<=t:t<=i}},F.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},F.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},F.prototype.trigger=function(t,e,i,s,n){var o={item:{count:this._items.length,index:this.current()}},a=z.camelCase(z.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),r=z.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),z.extend({relatedTarget:this},o,e));return this._supress[t]||(z.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(r)}),this.register({type:F.Type.Event,name:t}),this.$element.trigger(r),this.settings&&"function"==typeof this.settings[a]&&this.settings[a].call(this,r)),r},F.prototype.enter=function(t){z.each([t].concat(this._states.tags[t]||[]),z.proxy(function(t,e){this._states.current[e]===I&&(this._states.current[e]=0),this._states.current[e]++},this))},F.prototype.leave=function(t){z.each([t].concat(this._states.tags[t]||[]),z.proxy(function(t,e){this._states.current[e]--},this))},F.prototype.register=function(i){if(i.type===F.Type.Event){if(z.event.special[i.name]||(z.event.special[i.name]={}),!z.event.special[i.name].owl){var e=z.event.special[i.name]._default;z.event.special[i.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&-1<t.namespace.indexOf("owl"):e.apply(this,arguments)},z.event.special[i.name].owl=!0}}else i.type===F.Type.State&&(this._states.tags[i.name]?this._states.tags[i.name]=this._states.tags[i.name].concat(i.tags):this._states.tags[i.name]=i.tags,this._states.tags[i.name]=z.grep(this._states.tags[i.name],z.proxy(function(t,e){return z.inArray(t,this._states.tags[i.name])===e},this)))},F.prototype.suppress=function(t){z.each(t,z.proxy(function(t,e){this._supress[e]=!0},this))},F.prototype.release=function(t){z.each(t,z.proxy(function(t,e){delete this._supress[e]},this))},F.prototype.pointer=function(t){var e={x:null,y:null};return(t=(t=t.originalEvent||t||E.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},F.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},F.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},z.fn.owlCarousel=function(e){var s=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=z(this),i=t.data("owl.carousel");i||(i=new F(this,"object"==typeof e&&e),t.data("owl.carousel",i),z.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,e){i.register({type:F.Type.Event,name:e}),i.$element.on(e+".owl.carousel.core",z.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([e]),i[e].apply(this,[].slice.call(arguments,1)),this.release([e]))},i))})),"string"==typeof e&&"_"!==e.charAt(0)&&i[e].apply(i,s)})},z.fn.owlCarousel.Constructor=F,S=window.Zepto||window.jQuery,P=window,document,(k=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":S.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=S.extend({},k.Defaults,this._core.options),this._core.$element.on(this._handlers)}).Defaults={autoRefresh:!0,autoRefreshInterval:500},k.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=P.setInterval(S.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},k.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},k.prototype.destroy=function(){var t,e;for(t in P.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},S.fn.owlCarousel.Constructor.Plugins.AutoRefresh=k,_=window.Zepto||window.jQuery,C=window,document,(T=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":_.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,s=e.center&&-1*i||0,n=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+s,o=this._core.clones().length,a=_.proxy(function(t,e){this.load(e)},this);for(0<e.lazyLoadEager&&(i+=e.lazyLoadEager,e.loop&&(n-=e.lazyLoadEager,i++));s++<i;)this.load(o/2+this._core.relative(n)),o&&_.each(this._core.clones(this._core.relative(n)),a),n++}},this)},this._core.options=_.extend({},T.Defaults,this._core.options),this._core.$element.on(this._handlers)}).Defaults={lazyLoad:!1,lazyLoadEager:0},T.prototype.load=function(t){var e=this._core.$stage.children().eq(t),i=e&&e.find(".owl-lazy");!i||-1<_.inArray(e.get(0),this._loaded)||(i.each(_.proxy(function(t,e){var i,s=_(e),n=1<C.devicePixelRatio&&s.attr("data-src-retina")||s.attr("data-src")||s.attr("data-srcset");this._core.trigger("load",{element:s,url:n},"lazy"),s.is("img")?s.one("load.owl.lazy",_.proxy(function(){s.css("opacity",1),this._core.trigger("loaded",{element:s,url:n},"lazy")},this)).attr("src",n):s.is("source")?s.one("load.owl.lazy",_.proxy(function(){this._core.trigger("loaded",{element:s,url:n},"lazy")},this)).attr("srcset",n):((i=new Image).onload=_.proxy(function(){s.css({"background-image":'url("'+n+'")',opacity:"1"}),this._core.trigger("loaded",{element:s,url:n},"lazy")},this),i.src=n)},this)),this._loaded.push(e.get(0)))},T.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},_.fn.owlCarousel.Constructor.Plugins.Lazy=T,b=window.Zepto||window.jQuery,w=window,document,(x=function(t){this._core=t,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":b.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":b.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()},this),"loaded.owl.lazy":b.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=b.extend({},x.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var e=this;b(w).on("load",function(){e._core.settings.autoHeight&&e.update()}),b(w).resize(function(){e._core.settings.autoHeight&&(null!=e._intervalId&&clearTimeout(e._intervalId),e._intervalId=setTimeout(function(){e.update()},250))})}).Defaults={autoHeight:!1,autoHeightClass:"owl-height"},x.prototype.update=function(){var t=this._core._current,e=t+this._core.settings.items,i=this._core.settings.lazyLoad,s=this._core.$stage.children().toArray().slice(t,e),n=[],o=0;b.each(s,function(t,e){n.push(b(e).height())}),(o=Math.max.apply(null,n))<=1&&i&&this._previousHeight&&(o=this._previousHeight),this._previousHeight=o,this._core.$stage.parent().height(o).addClass(this._core.settings.autoHeightClass)},x.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},b.fn.owlCarousel.Constructor.Plugins.AutoHeight=x,m=window.Zepto||window.jQuery,window,v=document,(y=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":m.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":m.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":m.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":m.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":m.proxy(function(t){if(t.namespace){var e=m(t.content).find(".owl-video");e.length&&(e.css("display","none"),this.fetch(e,m(t.content)))}},this)},this._core.options=m.extend({},y.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",m.proxy(function(t){this.play(t)},this))}).Defaults={video:!1,videoHeight:!1,videoWidth:!1},y.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,a=t.attr("href");if(!a)throw new Error("Missing video URL.");if(-1<(s=a.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu"))i="youtube";else if(-1<s[3].indexOf("vimeo"))i="vimeo";else{if(!(-1<s[3].indexOf("vzaar")))throw new Error("Video URL not supported.");i="vzaar"}s=s[6],this._videos[a]={type:i,id:s,width:n,height:o},e.attr("data-video",a),this.thumbnail(t,this._videos[a])},y.prototype.thumbnail=function(e,t){function i(t){'<div class="owl-video-play-icon"></div>',s=c.lazyLoad?m("<div/>",{class:"owl-video-tn "+l,srcType:t}):m("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+t+")"}),e.after(s),e.after('<div class="owl-video-play-icon"></div>')}var s,n,o=t.width&&t.height?"width:"+t.width+"px;height:"+t.height+"px;":"",a=e.find("img"),r="src",l="",c=this._core.settings;if(e.wrap(m("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(r="data-src",l="owl-lazy"),a.length)return i(a.attr(r)),a.remove(),!1;"youtube"===t.type?(n="//img.youtube.com/vi/"+t.id+"/hqdefault.jpg",i(n)):"vimeo"===t.type?m.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,i(n)}}):"vzaar"===t.type&&m.ajax({type:"GET",url:"//vzaar.com/api/videos/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t.framegrab_url,i(n)}})},y.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},y.prototype.play=function(t){var e,i=m(t.target).closest("."+this._core.settings.itemClass),s=this._videos[i.attr("data-video")],n=s.width||"100%",o=s.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),i=this._core.items(this._core.relative(i.index())),this._core.reset(i.index()),(e=m('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",o),e.attr("width",n),"youtube"===s.type?e.attr("src","//www.youtube.com/embed/"+s.id+"?autoplay=1&rel=0&v="+s.id):"vimeo"===s.type?e.attr("src","//player.vimeo.com/video/"+s.id+"?autoplay=1"):"vzaar"===s.type&&e.attr("src","//view.vzaar.com/"+s.id+"/player?autoplay=true"),m(e).wrap('<div class="owl-video-frame" />').insertAfter(i.find(".owl-video")),this._playing=i.addClass("owl-video-playing"))},y.prototype.isInFullScreen=function(){var t=v.fullscreenElement||v.mozFullScreenElement||v.webkitFullscreenElement;return t&&m(t).parent().hasClass("owl-video-frame")},y.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},m.fn.owlCarousel.Constructor.Plugins.Video=y,f=window.Zepto||window.jQuery,window,document,(g=function(t){this.core=t,this.core.options=f.extend({},g.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":f.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":f.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":f.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)}).Defaults={animateOut:!1,animateIn:!1},g.prototype.swap=function(){if(1===this.core.settings.items&&f.support.animation&&f.support.transition){this.core.speed(0);var t,e=f.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),n=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(f.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),n&&s.one(f.support.animation.end,e).addClass("animated owl-animated-in").addClass(n))}},g.prototype.clear=function(t){f(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},g.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},f.fn.owlCarousel.Constructor.Plugins.Animate=g,h=window.Zepto||window.jQuery,d=window,p=document,(u=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":h.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":h.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":h.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":h.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":h.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":h.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":h.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":h.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=h.extend({},u.Defaults,this._core.options)}).Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},u.prototype._next=function(t){this._call=d.setTimeout(h.proxy(this._next,this,t),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||p.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},u.prototype.read=function(){return(new Date).getTime()-this._time},u.prototype.play=function(t,e){var i;this._core.is("rotating")||this._core.enter("rotating"),t=t||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||t),t),this._paused?(this._time=this.read(),this._paused=!1):d.clearTimeout(this._call),this._time+=this.read()%t-i,this._timeout=t,this._call=d.setTimeout(h.proxy(this._next,this,e),t-i)},u.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,d.clearTimeout(this._call),this._core.leave("rotating"))},u.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,d.clearTimeout(this._call))},u.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},h.fn.owlCarousel.Constructor.Plugins.autoplay=u,function(o){"use strict";var e=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+o(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":o.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":o.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":o.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=o.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?o(i.navContainer):o("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=o("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",o.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=o("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",o.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[o('<button role="button">').addClass(i.dotClass).append(o("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?o(i.dotsContainer):o("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",o.proxy(function(t){var e=o(t.target).parent().is(this._controls.$absolute)?o(t.target).index():o(t.target).parent().index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),this._overrides)this._core[t]=o.proxy(this[t],this)},e.prototype.destroy=function(){var t,e,i,s,n;for(t in n=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&n.navContainer?this._controls[e].html(""):this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i=this._core.clones().length/2,s=i+this._core.items().length,n=this._core.maximum(!0),o=this._core.settings,a=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0;t<s;t++){if(a<=e||0===e){if(this._pages.push({start:Math.min(n,t-i),end:t-i+a-1}),Math.min(n,t-i)===n)break;e=0,0}e+=this._core.mergers(this._core.relative(t))}},e.prototype.draw=function(){var t,e=this._core.settings,i=this._core.items().length<=e.items,s=this._core.relative(this._core.current()),n=e.loop||e.rewind;this._controls.$relative.toggleClass("disabled",!e.nav||i),e.nav&&(this._controls.$previous.toggleClass("disabled",!n&&s<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!n&&s>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!e.dots||i),e.dots&&(t=this._pages.length-this._controls.$absolute.children().length,e.dotsData&&0!=t?this._controls.$absolute.html(this._templates.join("")):0<t?this._controls.$absolute.append(new Array(1+t).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(o.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:o.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotsData?1:e.dotsEach||e.items)}},e.prototype.current=function(){var i=this._core.relative(this._core.current());return o.grep(this._pages,o.proxy(function(t,e){return t.start<=i&&t.end>=i},this)).pop()},e.prototype.getPosition=function(t){var e,i,s=this._core.settings;return"page"==s.slideBy?(e=o.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=s.slideBy:e-=s.slideBy),e},e.prototype.next=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},e.prototype.prev=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},e.prototype.to=function(t,e,i){var s;!i&&this._pages.length?(s=this._pages.length,o.proxy(this._overrides.to,this._core)(this._pages[(t%s+s)%s].start,e)):o.proxy(this._overrides.to,this._core)(t,e)},o.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(s,n){"use strict";var e=function(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":s.proxy(function(t){t.namespace&&"URLHash"===this._core.settings.startPosition&&s(n).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":s.proxy(function(t){if(t.namespace){var e=s(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!e)return;this._hashes[e]=t.content}},this),"changed.owl.carousel":s.proxy(function(t){if(t.namespace&&"position"===t.property.name){var i=this._core.items(this._core.relative(this._core.current())),e=s.map(this._hashes,function(t,e){return t===i?e:null}).join();if(!e||n.location.hash.slice(1)===e)return;n.location.hash=e}},this)},this._core.options=s.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),s(n).on("hashchange.owl.navigation",s.proxy(function(t){var e=n.location.hash.substring(1),i=this._core.$stage.children(),s=this._hashes[e]&&i.index(this._hashes[e]);void 0!==s&&s!==this._core.current()&&this._core.to(this._core.relative(s),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var t,e;for(t in s(n).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),n=window.Zepto||window.jQuery,window,document,a=n("<support>").get(0).style,r="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},s=function(){return!!e("transform")},l=function(){return!!e("perspective")},c=function(){return!!e("animation")},function(){return!!e("transition")}()&&(n.support.transition=new String(t("transition")),n.support.transition.end=i.transition.end[n.support.transition]),c()&&(n.support.animation=new String(t("animation")),n.support.animation.end=i.animation.end[n.support.animation]),s()&&(n.support.transform=new String(t("transform")),n.support.transform3d=l()),D=jQuery,L=location.href.split("?")[0],(A=(A=window.location.search.substring(1)).replace("tab","oldtab")).length&&null!=window.history&&null!=window.history.pushState&&window.history.pushState({},document.title,L+"?"+A),D.organicTabs=function(t,e){var a=this;a.$el=D(t),a.$nav=a.$el.find(".nav"),a.init=function(){a.options=D.extend({},D.organicTabs.defaultOptions,e),D(".hides").css({position:"relative",top:0,left:0,display:"none"}),a.$nav.delegate("a","click",function(t){t.preventDefault();var e=a.$el.find("a.tabs__nav-link_current").attr("href").substring(1),i=D(this),s=i.attr("href").substring(1),n=a.$el.find(".tabs__content"),o=n.height();n.height(o),s!=e&&0==a.$el.find(":animated").length&&a.$el.find("#"+e).fadeOut(a.options.speed,function(){a.$el.find("#"+s).fadeIn(a.options.speed);var t=a.$el.find("#"+s).height();n.animate({height:t},a.options.speed),a.$el.find(".nav li a").removeClass("tabs__nav-link_current"),i.addClass("tabs__nav-link_current"),window.history&&history.pushState&&history.replaceState("","","?"+a.options.param+"="+s)})});var n={};if(window.location.href.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(t,e,i,s){n[e]=s}),n[a.options.param]){var t=D("a[href='#"+n[a.options.param]+"']");t.closest(".nav").find("a").removeClass("tabs__nav-link_current").end().next(".tabs__content").find("ul").hide(),t.addClass("tabs__nav-link_current"),D("#"+n[a.options.param]).show()}},a.init()},D.organicTabs.defaultOptions={speed:300,param:"tab"},D.fn.organicTabs=function(t){return this.each(function(){new D.organicTabs(this,t)})},function(l,c,g){"use strict";function i(t,e){var i,s,n,o=[],a=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=d(t.data.options,e)),i=e.$target||g(t.currentTarget).trigger("blur"),(n=g.fancybox.getInstance())&&n.$trigger&&n.$trigger.is(i)||(o=e.selector?g(e.selector):(s=i.attr("data-fancybox")||"")?(o=t.data?t.data.items:[]).length?o.filter('[data-fancybox="'+s+'"]'):g('[data-fancybox="'+s+'"]'):[i],(a=g(o).index(i))<0&&(a=0),(n=g.fancybox.open(o,e,a)).$trigger=i))}if(l.console=l.console||{info:function(t){}},g){if(g.fn.fancybox)return console.info("fancyBox already initialized");var t={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<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>&nbsp;/&nbsp;<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:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:g.noop,beforeLoad:g.noop,afterLoad:g.noop,beforeShow:g.noop,afterShow:g.noop,beforeClose:g.noop,afterClose:g.noop,onActivate:g.noop,onDeactivate:g.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <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&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},n=g(l),a=g(c),o=0,p=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(t){return l.setTimeout(t,1e3/60)},e=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(t){l.clearTimeout(t)},h=function(){var t,e=c.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(void 0!==e.style[t])return i[t];return"transitionend"}(),u=function(t){return t&&t.length&&t[0].offsetHeight},d=function(t,e){var i=g.extend(!0,{},t,e);return g.each(e,function(t,e){g.isArray(e)&&(i[t]=e)}),i},s=function(t,e,i){var s=this;s.opts=d({index:i},g.fancybox.defaults),g.isPlainObject(e)&&(s.opts=d(s.opts,e)),g.fancybox.isMobile&&(s.opts=d(s.opts,s.opts.mobile)),s.id=s.opts.id||++o,s.currIndex=parseInt(s.opts.index,10)||0,s.prevIndex=null,s.prevPos=null,s.currPos=0,s.firstRun=!0,s.group=[],s.slides={},s.addContent(t),s.group.length&&s.init()};g.extend(s.prototype,{init:function(){var e,i,s=this,n=s.group[s.currIndex].opts;n.closeExisting&&g.fancybox.close(!0),g("body").addClass("fancybox-active"),!g.fancybox.getInstance()&&!1!==n.hideScrollbar&&!g.fancybox.isMobile&&c.body.scrollHeight>l.innerHeight&&(g("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-c.documentElement.clientWidth)+"px;}</style>"),g("body").addClass("compensate-for-scrollbar")),i="",g.each(n.buttons,function(t,e){i+=n.btnTpl[e]||""}),e=g(s.translate(s,n.baseTpl.replace("{{buttons}}",i).replace("{{arrows}}",n.btnTpl.arrowLeft+n.btnTpl.arrowRight))).attr("id","fancybox-container-"+s.id).addClass(n.baseClass).data("FancyBox",s).appendTo(n.parentEl),s.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){s.$refs[t]=e.find(".fancybox-"+t)}),s.trigger("onInit"),s.activate(),s.jumpTo(s.currIndex)},translate:function(t,e){var i=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return void 0===i[e]?t:i[e]})},addContent:function(t){var e,c=this,i=g.makeArray(t);g.each(i,function(t,e){var i,s,n,o,a,r={},l={};g.isPlainObject(e)?l=(r=e).opts||e:"object"===g.type(e)&&g(e).length?(l=(i=g(e)).data()||{},(l=g.extend(!0,{},l,l.options)).$orig=i,r.src=c.opts.src||l.src||i.attr("href"),r.type||r.src||(r.type="inline",r.src=e)):r={type:"html",src:e+""},r.opts=g.extend(!0,{},c.opts,l),g.isArray(l.buttons)&&(r.opts.buttons=l.buttons),g.fancybox.isMobile&&r.opts.mobile&&(r.opts=d(r.opts,r.opts.mobile)),s=r.type||r.opts.type,o=r.src||"",!s&&o&&((n=o.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(s="video",r.opts.video.format||(r.opts.video.format="video/"+("ogv"===n[1]?"ogg":n[1]))):o.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":o.match(/\.(pdf)((\?|#).*)?$/i)?(s="iframe",r=g.extend(!0,r,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===o.charAt(0)&&(s="inline")),s?r.type=s:c.trigger("objectNeedsType",r),r.contentType||(r.contentType=-1<g.inArray(r.type,["html","inline","ajax"])?"html":r.type),r.index=c.group.length,"auto"==r.opts.smallBtn&&(r.opts.smallBtn=-1<g.inArray(r.type,["html","inline","ajax"])),"auto"===r.opts.toolbar&&(r.opts.toolbar=!r.opts.smallBtn),r.$thumb=r.opts.$thumb||null,r.opts.$trigger&&r.index===c.opts.index&&(r.$thumb=r.opts.$trigger.find("img:first"),r.$thumb.length&&(r.opts.$orig=r.opts.$trigger)),r.$thumb&&r.$thumb.length||!r.opts.$orig||(r.$thumb=r.opts.$orig.find("img:first")),r.$thumb&&!r.$thumb.length&&(r.$thumb=null),r.thumb=r.opts.thumb||(r.$thumb?r.$thumb[0].src:null),"function"===g.type(r.opts.caption)&&(r.opts.caption=r.opts.caption.apply(e,[c,r])),"function"===g.type(c.opts.caption)&&(r.opts.caption=c.opts.caption.apply(e,[c,r])),r.opts.caption instanceof g||(r.opts.caption=void 0===r.opts.caption?"":r.opts.caption+""),"ajax"!==r.type||1<(a=o.split(/\s+/,2)).length&&(r.src=a.shift(),r.opts.filter=a.shift()),r.opts.modal&&(r.opts=g.extend(!0,r.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})),c.group.push(r)}),Object.keys(c.slides).length&&(c.updateControls(),(e=c.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var s=this;s.removeEvents(),s.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),s.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),s.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),s.next()}).on("click.fb","[data-fancybox-zoom]",function(t){s[s.isScaledDown()?"scaleToActual":"scaleToFit"]()}),n.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(s.requestId&&e(s.requestId),s.requestId=p(function(){s.update(t)})):(s.current&&"iframe"===s.current.type&&s.$refs.stage.hide(),setTimeout(function(){s.$refs.stage.show(),s.update(t)},g.fancybox.isMobile?600:250))}),a.on("keydown.fb",function(t){var e=(g.fancybox?g.fancybox.getInstance():null).current,i=t.keyCode||t.which;if(9!=i)return!e.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||g(t.target).is("input,textarea,video,audio,select")?void 0:8===i||27===i?(t.preventDefault(),void s.close(t)):37===i||38===i?(t.preventDefault(),void s.previous()):39===i||40===i?(t.preventDefault(),void s.next()):void s.trigger("afterKeydown",t,i);e.opts.trapFocus&&s.focus(t)}),s.group[s.currIndex].opts.idleTime&&(s.idleSecondsCounter=0,a.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){s.idleSecondsCounter=0,s.isIdle&&s.showControls(),s.isIdle=!1}),s.idleInterval=l.setInterval(function(){++s.idleSecondsCounter>=s.group[s.currIndex].opts.idleTime&&!s.isDragging&&(s.isIdle=!0,s.idleSecondsCounter=0,s.hideControls())},1e3))},removeEvents:function(){n.off("orientationchange.fb resize.fb"),a.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,s){var e,i,n,o,a,r,l,c,h,d=this,p=d.group.length;if(!(d.isDragging||d.isClosing||d.isAnimating&&d.firstRun)){if(t=parseInt(t,10),!(n=d.current?d.current.opts.loop:d.opts.loop)&&(t<0||p<=t))return!1;if(e=d.firstRun=!Object.keys(d.slides).length,a=d.current,d.prevIndex=d.currIndex,d.prevPos=d.currPos,o=d.createSlide(t),1<p&&((n||o.index<p-1)&&d.createSlide(t+1),(n||0<o.index)&&d.createSlide(t-1)),d.current=o,d.currIndex=o.index,d.currPos=o.pos,d.trigger("beforeShow",e),d.updateControls(),o.forcedDuration=void 0,g.isNumeric(s)?o.forcedDuration=s:s=o.opts[e?"animationDuration":"transitionDuration"],s=parseInt(s,10),i=d.isMoved(o),o.$slide.addClass("fancybox-slide--current"),e)return o.opts.animationEffect&&s&&d.$refs.container.css("transition-duration",s+"ms"),d.$refs.container.addClass("fancybox-is-open").trigger("focus"),d.loadSlide(o),void d.preload("image");r=g.fancybox.getTranslate(a.$slide),l=g.fancybox.getTranslate(d.$refs.stage),g.each(d.slides,function(t,e){g.fancybox.stop(e.$slide,!0)}),a.pos!==o.pos&&(a.isComplete=!1),a.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),i?(h=r.left-(a.pos*r.width+a.pos*a.opts.gutter),g.each(d.slides,function(t,e){e.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var i=e.pos*r.width+e.pos*e.opts.gutter;g.fancybox.setTranslate(e.$slide,{top:0,left:i-l.left+h}),e.pos!==o.pos&&e.$slide.addClass("fancybox-slide--"+(e.pos>o.pos?"next":"previous")),u(e.$slide),g.fancybox.animate(e.$slide,{top:0,left:(e.pos-o.pos)*r.width+(e.pos-o.pos)*e.opts.gutter},s,function(){e.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),e.pos===d.currPos&&d.complete()})})):s&&o.opts.transitionEffect&&(c="fancybox-animated fancybox-fx-"+o.opts.transitionEffect,a.$slide.addClass("fancybox-slide--"+(a.pos>o.pos?"next":"previous")),g.fancybox.animate(a.$slide,c,s,function(){a.$slide.removeClass(c).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),o.isLoaded?d.revealContent(o):d.loadSlide(o),d.preload("image")}},createSlide:function(t){var e,i,s=this;return i=(i=t%s.group.length)<0?s.group.length+i:i,!s.slides[t]&&s.group[i]&&(e=g('<div class="fancybox-slide"></div>').appendTo(s.$refs.stage),s.slides[t]=g.extend(!0,{},s.group[i],{pos:t,$slide:e,isLoaded:!1}),s.updateSlide(s.slides[t])),s.slides[t]},scaleToActual:function(t,e,i){var s,n,o,a,r,l=this,c=l.current,h=c.$content,d=g.fancybox.getTranslate(c.$slide).width,p=g.fancybox.getTranslate(c.$slide).height,u=c.width,f=c.height;l.isAnimating||l.isMoved()||!h||"image"!=c.type||!c.isLoaded||c.hasError||(l.isAnimating=!0,g.fancybox.stop(h),t=void 0===t?.5*d:t,e=void 0===e?.5*p:e,(s=g.fancybox.getTranslate(h)).top-=g.fancybox.getTranslate(c.$slide).top,s.left-=g.fancybox.getTranslate(c.$slide).left,a=u/s.width,r=f/s.height,n=.5*d-.5*u,o=.5*p-.5*f,d<u&&(0<(n=s.left*a-(t*a-t))&&(n=0),n<d-u&&(n=d-u)),p<f&&(0<(o=s.top*r-(e*r-e))&&(o=0),o<p-f&&(o=p-f)),l.updateCursor(u,f),g.fancybox.animate(h,{top:o,left:n,scaleX:a,scaleY:r},i||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,i=this,s=i.current,n=s.$content;i.isAnimating||i.isMoved()||!n||"image"!=s.type||!s.isLoaded||s.hasError||(i.isAnimating=!0,g.fancybox.stop(n),e=i.getFitPos(s),i.updateCursor(e.width,e.height),g.fancybox.animate(n,{top:e.top,left:e.left,scaleX:e.width/n.width(),scaleY:e.height/n.height()},t||366,function(){i.isAnimating=!1}))},getFitPos:function(t){var e,i,s,n,o=t.$content,a=t.$slide,r=t.width||t.opts.width,l=t.height||t.opts.height,c={};return!!(t.isLoaded&&o&&o.length)&&(e=g.fancybox.getTranslate(this.$refs.stage).width,i=g.fancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(a.css("paddingLeft"))+parseFloat(a.css("paddingRight"))+parseFloat(o.css("marginLeft"))+parseFloat(o.css("marginRight")),i-=parseFloat(a.css("paddingTop"))+parseFloat(a.css("paddingBottom"))+parseFloat(o.css("marginTop"))+parseFloat(o.css("marginBottom")),r&&l||(r=e,l=i),e-.5<(r*=s=Math.min(1,e/r,i/l))&&(r=e),i-.5<(l*=s)&&(l=i),"image"===t.type?(c.top=Math.floor(.5*(i-l))+parseFloat(a.css("paddingTop")),c.left=Math.floor(.5*(e-r))+parseFloat(a.css("paddingLeft"))):"video"===t.contentType&&(r/(n=t.opts.width&&t.opts.height?r/l:t.opts.ratio||16/9)<l?l=r/n:l*n<r&&(r=l*n)),c.width=r,c.height=l,c)},update:function(i){var s=this;g.each(s.slides,function(t,e){s.updateSlide(e,i)})},updateSlide:function(t,e){var i=this,s=t&&t.$content,n=t.width||t.opts.width,o=t.height||t.opts.height,a=t.$slide;i.adjustCaption(t),s&&(n||o||"video"===t.contentType)&&!t.hasError&&(g.fancybox.stop(s),g.fancybox.setTranslate(s,i.getFitPos(t)),t.pos===i.currPos&&(i.isAnimating=!1,i.updateCursor())),i.adjustLayout(t),a.length&&(a.trigger("refresh"),t.pos===i.currPos&&i.$refs.toolbar.add(i.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",a.get(0).scrollHeight>a.get(0).clientHeight)),i.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,i=e.current,s=i.$slide;!e.isClosing&&i&&(s.siblings().css({transform:"",opacity:""}),s.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),g.fancybox.animate(s,{top:0,left:0,opacity:1},void 0===t?0:t,function(){s.css({transform:"",opacity:""}),i.isComplete||e.complete()},!1))},isMoved:function(t){var e,i,s=t||this.current;return!!s&&(i=g.fancybox.getTranslate(this.$refs.stage),e=g.fancybox.getTranslate(s.$slide),!s.$slide.hasClass("fancybox-animated")&&(.5<Math.abs(e.top-i.top)||.5<Math.abs(e.left-i.left)))},updateCursor:function(t,e){var i,s,n=this,o=n.current,a=n.$refs.container;o&&!n.isClosing&&n.Guestures&&(a.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),s=!!(i=n.canPan(t,e))||n.isZoomable(),a.toggleClass("fancybox-is-zoomable",s),g("[data-fancybox-zoom]").prop("disabled",!s),i?a.addClass("fancybox-can-pan"):s&&("zoom"===o.opts.clickContent||g.isFunction(o.opts.clickContent)&&"zoom"==o.opts.clickContent(o))?a.addClass("fancybox-can-zoomIn"):o.opts.touch&&(o.opts.touch.vertical||1<n.group.length)&&"video"!==o.contentType&&a.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing&&"image"===e.type&&!e.hasError){if(!e.isLoaded)return!0;if((t=this.getFitPos(e))&&(e.width>t.width||e.height>t.height))return!0}return!1},isScaledDown:function(t,e){var i=!1,s=this.current,n=s.$content;return void 0!==t&&void 0!==e?i=t<s.width&&e<s.height:n&&(i=(i=g.fancybox.getTranslate(n)).width<s.width&&i.height<s.height),i},canPan:function(t,e){var i=this.current,s=null,n=!1;return"image"===i.type&&(i.isComplete||t&&e)&&!i.hasError&&(n=this.getFitPos(i),void 0!==t&&void 0!==e?s={width:t,height:e}:i.isComplete&&(s=g.fancybox.getTranslate(i.$content)),s&&n&&(n=1.5<Math.abs(s.width-n.width)||1.5<Math.abs(s.height-n.height))),n},loadSlide:function(i){var t,e,s,n=this;if(!i.isLoading&&!i.isLoaded){if(!(i.isLoading=!0)===n.trigger("beforeLoad",i))return i.isLoading=!1;switch(t=i.type,(e=i.$slide).off("refresh").trigger("onReset").addClass(i.opts.slideClass),t){case"image":n.setImage(i);break;case"iframe":n.setIframe(i);break;case"html":n.setContent(i,i.src||i.content);break;case"video":n.setContent(i,i.opts.video.tpl.replace(/\{\{src\}\}/gi,i.src).replace("{{format}}",i.opts.videoFormat||i.opts.video.format||"").replace("{{poster}}",i.thumb||""));break;case"inline":g(i.src).length?n.setContent(i,g(i.src)):n.setError(i);break;case"ajax":n.showLoading(i),s=g.ajax(g.extend({},i.opts.ajax.settings,{url:i.src,success:function(t,e){"success"===e&&n.setContent(i,t)},error:function(t,e){t&&"abort"!==e&&n.setError(i)}})),e.one("onReset",function(){s.abort()});break;default:n.setError(i)}return!0}},setImage:function(e){var t,i=this;setTimeout(function(){var t=e.$image;i.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||i.showLoading(e)},50),i.checkSrcset(e),e.$content=g('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(t=c.createElement("img")).onerror=function(){g(this).remove(),e.$ghost=null},t.onload=function(){i.afterLoad(e)},e.$ghost=g(t).addClass("fancybox-image").appendTo(e.$content).attr("src",e.thumb)),i.setBigImage(e)},checkSrcset:function(t){var e,i,s,n,o=t.opts.srcset||t.opts.image.srcset;if(o){s=l.devicePixelRatio||1,n=l.innerWidth*s,(i=o.split(",").map(function(t){var s={};return t.trim().split(/\s+/).forEach(function(t,e){var i=parseInt(t.substring(0,t.length-1),10);if(0===e)return s.url=t;i&&(s.value=i,s.postfix=t[t.length-1])}),s})).sort(function(t,e){return t.value-e.value});for(var a=0;a<i.length;a++){var r=i[a];if("w"===r.postfix&&r.value>=n||"x"===r.postfix&&r.value>=s){e=r;break}}!e&&i.length&&(e=i[i.length-1]),e&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value),t.opts.srcset=o)}},setBigImage:function(e){var i=this,t=c.createElement("img"),s=g(t);e.$image=s.one("error",function(){i.setError(e)}).one("load",function(){var t;e.$ghost||(i.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),i.afterLoad(e)),i.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(1<e.width/e.height&&1<n.width()/n.height()?"100":Math.round(e.width/e.height*100))+"vw"),s.attr("sizes",t).attr("srcset",e.opts.srcset)),e.$ghost&&setTimeout(function(){e.$ghost&&!i.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),i.hideLoading(e))}).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),(t.complete||"complete"==t.readyState)&&s.naturalWidth&&s.naturalHeight?s.trigger("load"):t.error&&s.trigger("error")},resolveImageSlideSize:function(t,e,i){var s=parseInt(t.opts.width,10),n=parseInt(t.opts.height,10);t.width=e,t.height=i,0<s&&(t.width=s,t.height=Math.floor(s*i/e)),0<n&&(t.width=Math.floor(n*e/i),t.height=n)},setIframe:function(n){var o,e=this,a=n.opts.iframe,r=n.$slide;n.$content=g('<div class="fancybox-content'+(a.preload?" fancybox-is-hidden":"")+'"></div>').css(a.css).appendTo(r),r.addClass("fancybox-slide--"+n.contentType),n.$iframe=o=g(a.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(a.attr).appendTo(n.$content),a.preload?(e.showLoading(n),o.on("load.fb error.fb",function(t){this.isReady=1,n.$slide.trigger("refresh"),e.afterLoad(n)}),r.on("refresh.fb",function(){var t,e=n.$content,i=a.css.width,s=a.css.height;if(1===o[0].isReady){try{t=o.contents().find("body")}catch(t){}t&&t.length&&t.children().length&&(r.css("overflow","visible"),e.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===i&&(i=Math.ceil(Math.max(t[0].clientWidth,t.outerWidth(!0)))),e.css("width",i||"").css("max-width",""),void 0===s&&(s=Math.ceil(Math.max(t[0].clientHeight,t.outerHeight(!0)))),e.css("height",s||""),r.css("overflow","auto")),e.removeClass("fancybox-is-hidden")}})):e.afterLoad(n),o.attr("src",n.src),r.one("onReset",function(){try{g(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}g(this).off("refresh.fb").empty(),n.isLoaded=!1,n.isRevealed=!1})},setContent:function(t,e){this.isClosing||(this.hideLoading(t),t.$content&&g.fancybox.stop(t.$content),t.$slide.empty(),function(t){return t&&t.hasOwnProperty&&t instanceof g}(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=g("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===g.type(e)&&(e=g("<div>").append(g.trim(e)).contents()),t.opts.filter&&(e=g("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){g(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(g(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),g(e).appendTo(t.$slide),g(e).is("video,audio")&&(g(e).addClass("fancybox-video"),g(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||g(e).attr("width"),t.opts.height=t.opts.height||g(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=g(this.translate(this,this.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=g(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&g('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,i=this,s=t||i.current,n=s.opts.caption,o=s.opts.preventCaptionOverlap,a=i.$refs.caption,r=!1;a.toggleClass("fancybox-caption--separate",o),o&&n&&n.length&&(s.pos!==i.currPos?((e=a.clone().appendTo(a.parent())).children().eq(0).empty().html(n),r=e.outerHeight(!0),e.empty().remove()):i.$caption&&(r=i.$caption.outerHeight(!0)),s.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,i,s,n,o=t||this.current;o.isLoaded&&!0!==o.opts.disableLayoutFix&&(o.$content.css("margin-bottom",""),o.$content.outerHeight()>o.$slide.height()+.5&&(s=o.$slide[0].style["padding-bottom"],n=o.$slide.css("padding-bottom"),0<parseFloat(n)&&(e=o.$slide[0].scrollHeight,o.$slide.css("padding-bottom",0),Math.abs(e-o.$slide[0].scrollHeight)<1&&(i=n),o.$slide.css("padding-bottom",s))),o.$content.css("margin-bottom",i))},revealContent:function(t){var e,i,s,n,o=this,a=t.$slide,r=!1,l=!1,c=o.isMoved(t),h=t.isRevealed;return t.isRevealed=!0,e=t.opts[o.firstRun?"animationEffect":"transitionEffect"],s=t.opts[o.firstRun?"animationDuration":"transitionDuration"],s=parseInt(void 0===t.forcedDuration?s:t.forcedDuration,10),!c&&t.pos===o.currPos&&s||(e=!1),"zoom"===e&&(t.pos===o.currPos&&s&&"image"===t.type&&!t.hasError&&(l=o.getThumbPos(t))?r=o.getFitPos(t):e="fade"),"zoom"===e?(o.isAnimating=!0,r.scaleX=r.width/l.width,r.scaleY=r.height/l.height,"auto"==(n=t.opts.zoomOpacity)&&(n=.1<Math.abs(t.width/t.height-l.width/l.height)),n&&(l.opacity=.1,r.opacity=1),g.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),l),u(t.$content),void g.fancybox.animate(t.$content,r,s,function(){o.isAnimating=!1,o.complete()})):(o.updateSlide(t),e?(g.fancybox.stop(a),i="fancybox-slide--"+(t.pos>=o.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,a.addClass(i).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),u(a),"image"!==t.type&&t.$content.hide().show(0),void g.fancybox.animate(a,"fancybox-slide--current",s,function(){a.removeClass(i).css({transform:"",opacity:""}),t.pos===o.currPos&&o.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),h||!c||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===o.currPos&&o.complete())))},getThumbPos:function(t){var e,i,s,n,o,a=!1,r=t.$thumb;return!(!r||!function(t){var e,i;return!(!t||t.ownerDocument!==c)&&(g(".fancybox-container").css("pointer-events","none"),e={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},i=c.elementFromPoint(e.x,e.y)===t,g(".fancybox-container").css("pointer-events",""),i)}(r[0]))&&(e=g.fancybox.getTranslate(r),i=parseFloat(r.css("border-top-width")||0),s=parseFloat(r.css("border-right-width")||0),n=parseFloat(r.css("border-bottom-width")||0),o=parseFloat(r.css("border-left-width")||0),a={top:e.top+i,left:e.left+o,width:e.width-s-o,height:e.height-i-n,scaleX:1,scaleY:1},0<e.width&&0<e.height&&a)},complete:function(){var t,i=this,e=i.current,s={};!i.isMoved()&&e.isLoaded&&(e.isComplete||(e.isComplete=!0,e.$slide.siblings().trigger("onReset"),i.preload("inline"),u(e.$slide),e.$slide.addClass("fancybox-slide--complete"),g.each(i.slides,function(t,e){e.pos>=i.currPos-1&&e.pos<=i.currPos+1?s[e.pos]=e:e&&(g.fancybox.stop(e.$slide),e.$slide.off().remove())}),i.slides=s),i.isAnimating=!1,i.updateCursor(),i.trigger("afterShow"),e.opts.video.autoStart&&e.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),i.next()}),e.opts.autoFocus&&"html"===e.contentType&&((t=e.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):i.focus(null,!0)),e.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,i,s=this;s.group.length<2||(i=s.slides[s.currPos+1],(e=s.slides[s.currPos-1])&&e.type===t&&s.loadSlide(e),i&&i.type===t&&s.loadSlide(i))},focus:function(t,e){var i,s,n=this,o=["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(",");n.isClosing||((i=(i=!t&&n.current&&n.current.isComplete?n.current.$slide.find("*:visible"+(e?":not(.fancybox-close-small)":"")):n.$refs.container.find("*:visible")).filter(o).filter(function(){return"hidden"!==g(this).css("visibility")&&!g(this).hasClass("disabled")})).length?(s=i.index(c.activeElement),t&&t.shiftKey?(s<0||0==s)&&(t.preventDefault(),i.eq(i.length-1).trigger("focus")):(s<0||s==i.length-1)&&(t&&t.preventDefault(),i.eq(0).trigger("focus"))):n.$refs.container.trigger("focus"))},activate:function(){var e=this;g(".fancybox-container").each(function(){var t=g(this).data("FancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function i(){h.cleanUp(t)}var s,n,o,a,r,l,c,h=this,d=h.current;return!h.isClosing&&(!(h.isClosing=!0)===h.trigger("beforeClose",t)?(h.isClosing=!1,p(function(){h.update()}),!1):(h.removeEvents(),o=d.$content,s=d.opts.animationEffect,n=g.isNumeric(e)?e:s?d.opts.animationDuration:0,d.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?g.fancybox.stop(d.$slide):s=!1,d.$slide.siblings().trigger("onReset").remove(),n&&h.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",n+"ms"),h.hideLoading(d),h.hideControls(!0),h.updateCursor(),"zoom"!==s||o&&n&&"image"===d.type&&!h.isMoved()&&!d.hasError&&(c=h.getThumbPos(d))||(s="fade"),"zoom"===s?(g.fancybox.stop(o),l={top:(a=g.fancybox.getTranslate(o)).top,left:a.left,scaleX:a.width/c.width,scaleY:a.height/c.height,width:c.width,height:c.height},"auto"==(r=d.opts.zoomOpacity)&&(r=.1<Math.abs(d.width/d.height-c.width/c.height)),r&&(c.opacity=0),g.fancybox.setTranslate(o,l),u(o),g.fancybox.animate(o,c,n,i)):s&&n?g.fancybox.animate(d.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+s,n,i):!0===t?setTimeout(i,n):i(),!0))},cleanUp:function(t){var e,i,s,n=this,o=n.current.opts.$orig;n.current.$slide.trigger("onReset"),n.$refs.container.empty().remove(),n.trigger("afterClose",t),n.current.opts.backFocus&&(o&&o.length&&o.is(":visible")||(o=n.$trigger),o&&o.length&&(i=l.scrollX,s=l.scrollY,o.trigger("focus"),g("html, body").scrollTop(s).scrollLeft(i))),n.current=null,(e=g.fancybox.getInstance())?e.activate():(g("body").removeClass("fancybox-active compensate-for-scrollbar"),g("#fancybox-style-noscroll").remove())},trigger:function(t,e){var i,s=Array.prototype.slice.call(arguments,1),n=this,o=e&&e.opts?e:n.current;if(o?s.unshift(o):o=n,s.unshift(n),g.isFunction(o.opts[t])&&(i=o.opts[t].apply(o,s)),!1===i)return i;"afterClose"!==t&&n.$refs?n.$refs.container.trigger(t+".fb",s):a.trigger(t+".fb",s)},updateControls:function(){var t=this,e=t.current,i=e.index,s=t.$refs.container,n=t.$refs.caption,o=e.opts.caption;e.$slide.trigger("refresh"),o&&o.length?(t.$caption=n).children().eq(0).html(o):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),s.find("[data-fancybox-count]").html(t.group.length),s.find("[data-fancybox-index]").html(i+1),s.find("[data-fancybox-prev]").prop("disabled",!e.opts.loop&&i<=0),s.find("[data-fancybox-next]").prop("disabled",!e.opts.loop&&i>=t.group.length-1),"image"===e.type?s.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",e.opts.image.src||e.src).show():e.opts.toolbar&&s.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),g(c.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,i=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,i.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),g.fancybox={version:"3.5.7",defaults:t,getInstance:function(t){var e=g('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),i=Array.prototype.slice.call(arguments,1);return e instanceof s&&("string"===g.type(t)?e[t].apply(e,i):"function"===g.type(t)&&t.apply(e,i),e)},open:function(t,e,i){return new s(t,e,i)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),a.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(f=c.createElement("div"),l.getComputedStyle&&l.getComputedStyle(f)&&l.getComputedStyle(f).getPropertyValue("transform")&&!(c.documentMode&&c.documentMode<11)),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var i="",s={};if(t&&e)return void 0===e.left&&void 0===e.top||(i=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),void 0!==e.scaleX&&void 0!==e.scaleY?i+=" scale("+e.scaleX+", "+e.scaleY+")":void 0!==e.scaleX&&(i+=" scaleX("+e.scaleX+")"),i.length&&(s.transform=i),void 0!==e.opacity&&(s.opacity=e.opacity),void 0!==e.width&&(s.width=e.width),void 0!==e.height&&(s.height=e.height),t.css(s)},animate:function(e,i,s,n,o){var a,r=this;g.isFunction(s)&&(n=s,s=null),r.stop(e),a=r.getTranslate(e),e.on(h,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(r.stop(e),g.isNumeric(s)&&e.css("transition-duration",""),g.isPlainObject(i)?void 0!==i.scaleX&&void 0!==i.scaleY&&r.setTranslate(e,{top:i.top,left:i.left,width:a.width*i.scaleX,height:a.height*i.scaleY,scaleX:1,scaleY:1}):!0!==o&&e.removeClass(i),g.isFunction(n)&&n(t))}),g.isNumeric(s)&&e.css("transition-duration",s+"ms"),g.isPlainObject(i)?(void 0!==i.scaleX&&void 0!==i.scaleY&&(delete i.width,delete i.height,e.parent().hasClass("fancybox-slide--image")&&e.parent().addClass("fancybox-is-scaling")),g.fancybox.setTranslate(e,i)):e.addClass(i),e.data("timer",setTimeout(function(){e.trigger(h)},s+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(h),t.off(h).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},g.fn.fancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?g("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},a.on("click.fb-start","[data-fancybox]",i),a.on("click.fb-start","[data-fancybox-trigger]",function(t){g('[data-fancybox="'+g(this).attr("data-fancybox-trigger")+'"]').eq(g(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:g(this)})}),r=null,a.on("mousedown mouseup focus blur",".fancybox-button",function(t){switch(t.type){case"mousedown":r=g(this);break;case"mouseup":r=null;break;case"focusin":g(".fancybox-button").removeClass("fancybox-focus"),g(this).is(r)||g(this).is("[disabled]")||g(this).addClass("fancybox-focus");break;case"focusout":g(".fancybox-button").removeClass("fancybox-focus")}})}var r,f}(window,document,jQuery),function(u){"use strict";function f(i,t,e){if(i)return e=e||"","object"===u.type(e)&&(e=u.param(e,!0)),u.each(t,function(t,e){i=i.replace("$"+t,e||"")}),e.length&&(i+=(0<i.indexOf("?")?"&":"?")+e),i}var s={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"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"}}};u(document).on("objectNeedsType.fb",function(t,e,n){var i,o,a,r,l,c,h,d=n.src||"",p=!1;i=u.extend(!0,{},s,n.opts.media),u.each(i,function(t,e){if(a=d.match(e.matcher)){if(p=e.type,h=t,c={},e.paramPlace&&a[e.paramPlace]){"?"==(l=a[e.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var i=0;i<l.length;++i){var s=l[i].split("=",2);2==s.length&&(c[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return r=u.extend(!0,{},e.params,n.opts[t],c),d="function"===u.type(e.url)?e.url.call(this,a,r,n):f(e.url,a,r),o="function"===u.type(e.thumb)?e.thumb.call(this,a,r,n):f(e.thumb,a),"youtube"===t?d=d.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,i,s){return"&start="+((i?60*parseInt(i,10):0)+parseInt(s,10))}):"vimeo"===t&&(d=d.replace("&%23","#")),!1}}),p?(n.opts.thumb||n.opts.$thumb&&n.opts.$thumb.length||(n.opts.thumb=o),"iframe"===p&&(n.opts=u.extend(!0,n.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),u.extend(n,{type:p,src:d,origSrc:n.src,contentSource:h,contentType:"image"===p?"image":"gmap_place"==h||"gmap_search"==h?"map":"video"})):d&&(n.type=n.opts.defaultType)});var n={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(t){var e,i=this;this[t].loaded?setTimeout(function(){i.done(t)}):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){i[t].loaded=!0,i.done(t)}:e.onload=function(){i[t].loaded=!0,i.done(t)},document.body.appendChild(e))},done:function(t){var e,i;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(e=u.fancybox.getInstance())&&(i=e.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(i.attr("id"),{events:{onStateChange:function(t){0==t.data&&e.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(i).on("ended",function(){e.next()}))}};u(document).on({"afterShow.fb":function(t,e,i){1<e.group.length&&("youtube"===i.contentSource||"vimeo"===i.contentSource)&&n.load(i.contentSource)}})}(jQuery),function(g,l,m){"use strict";function h(t){var e=[];for(var i in t=(t=t.originalEvent||t||g.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[i].pageX?e.push({x:t[i].pageX,y:t[i].pageY}):t[i].clientX&&e.push({x:t[i].clientX,y:t[i].clientY});return e}function v(t,e,i){return e&&t?"x"===i?t.x-e.x:"y"===i?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function c(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||m.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,i=t[0].attributes,s=i.length;e<s;e++)if("data-fancybox-"===i[e].nodeName.substr(0,14))return!0;return!1}function d(t){for(var e=!1;(i=t.get(0),void 0,s=g.getComputedStyle(i)["overflow-y"],n=g.getComputedStyle(i)["overflow-x"],o=("scroll"===s||"auto"===s)&&i.scrollHeight>i.clientHeight,a=("scroll"===n||"auto"===n)&&i.scrollWidth>i.clientWidth,!(e=o||a))&&((t=t.parent()).length&&!t.hasClass("fancybox-stage")&&!t.is("body")););var i,s,n,o,a;return e}function i(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",m.proxy(e,"ontouchstart"))}var y=g.requestAnimationFrame||g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||g.oRequestAnimationFrame||function(t){return g.setTimeout(t,1e3/60)},b=g.cancelAnimationFrame||g.webkitCancelAnimationFrame||g.mozCancelAnimationFrame||g.oCancelAnimationFrame||function(t){g.clearTimeout(t)};i.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),m(l).off(".fb.touch"),t.requestId&&(b(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},i.prototype.ontouchstart=function(t){var e=this,i=m(t.target),s=e.instance,n=s.current,o=n.$slide,a=n.$content,r="touchstart"==t.type;if(r&&e.$container.off("mousedown.fb.touch"),(!t.originalEvent||2!=t.originalEvent.button)&&o.length&&i.length&&!c(i)&&!c(i.parent())&&(i.is("img")||!(t.originalEvent.clientX>i[0].clientWidth+i.offset().left))){if(!n||s.isAnimating||n.$slide.hasClass("fancybox-animated"))return t.stopPropagation(),void t.preventDefault();e.realPoints=e.startPoints=h(t),e.startPoints.length&&(n.touch&&t.stopPropagation(),e.startEvent=t,e.canTap=!0,e.$target=i,e.$content=a,e.opts=n.opts.touch,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.isScrolling=!1,e.canPan=s.canPan(),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.canvasWidth=Math.round(o[0].clientWidth),e.canvasHeight=Math.round(o[0].clientHeight),e.contentLastPos=null,e.contentStartPos=m.fancybox.getTranslate(e.$content)||{top:0,left:0},e.sliderStartPos=m.fancybox.getTranslate(o),e.stagePos=m.fancybox.getTranslate(s.$refs.stage),e.sliderStartPos.top-=e.stagePos.top,e.sliderStartPos.left-=e.stagePos.left,e.contentStartPos.top-=e.stagePos.top,e.contentStartPos.left-=e.stagePos.left,m(l).off(".fb.touch").on(r?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",m.proxy(e,"ontouchend")).on(r?"touchmove.fb.touch":"mousemove.fb.touch",m.proxy(e,"ontouchmove")),m.fancybox.isMobile&&l.addEventListener("scroll",e.onscroll,!0),((e.opts||e.canPan)&&(i.is(e.$stage)||e.$stage.find(i).length)||(i.is(".fancybox-image")&&t.preventDefault(),m.fancybox.isMobile&&i.parents(".fancybox-caption").length))&&(e.isScrollable=d(i)||d(i.parent()),m.fancybox.isMobile&&e.isScrollable||t.preventDefault(),1!==e.startPoints.length&&!n.hasError||(e.canPan?(m.fancybox.stop(e.$content),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("fancybox-is-grabbing")),2===e.startPoints.length&&"image"===n.type&&(n.isLoaded||n.$ghost)&&(e.canTap=!1,e.isSwiping=!1,e.isPanning=!1,e.isZooming=!0,m.fancybox.stop(e.$content),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-m(g).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-m(g).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=v(e.startPoints[0],e.startPoints[1]))))}},i.prototype.onscroll=function(t){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},i.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=h(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=v(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=v(e.newPoints[0],e.startPoints[0],"y"),e.distance=v(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},i.prototype.onSwipe=function(t){var e,n=this,o=n.instance,i=n.isSwiping,s=n.sliderStartPos.left||0;if(!0!==i)"x"==i&&(0<n.distanceX&&(n.instance.group.length<2||0===n.instance.current.index&&!n.instance.current.opts.loop)?s+=Math.pow(n.distanceX,.8):n.distanceX<0&&(n.instance.group.length<2||n.instance.current.index===n.instance.group.length-1&&!n.instance.current.opts.loop)?s-=Math.pow(-n.distanceX,.8):s+=n.distanceX),n.sliderLastPos={top:"x"==i?0:n.sliderStartPos.top+n.distanceY,left:s},n.requestId&&(b(n.requestId),n.requestId=null),n.requestId=y(function(){n.sliderLastPos&&(m.each(n.instance.slides,function(t,e){var i=e.pos-n.instance.currPos;m.fancybox.setTranslate(e.$slide,{top:n.sliderLastPos.top,left:n.sliderLastPos.left+i*n.canvasWidth+i*e.opts.gutter})}),n.$container.addClass("fancybox-is-sliding"))});else if(10<Math.abs(n.distance)){if(n.canTap=!1,o.group.length<2&&n.opts.vertical?n.isSwiping="y":o.isDragging||!1===n.opts.vertical||"auto"===n.opts.vertical&&800<m(g).width()?n.isSwiping="x":(e=Math.abs(180*Math.atan2(n.distanceY,n.distanceX)/Math.PI),n.isSwiping=45<e&&e<135?"y":"x"),"y"===n.isSwiping&&m.fancybox.isMobile&&n.isScrollable)return void(n.isScrolling=!0);o.isDragging=n.isSwiping,n.startPoints=n.newPoints,m.each(o.slides,function(t,e){var i,s;m.fancybox.stop(e.$slide),i=m.fancybox.getTranslate(e.$slide),s=m.fancybox.getTranslate(o.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===o.current.pos&&(n.sliderStartPos.top=i.top-s.top,n.sliderStartPos.left=i.left-s.left),m.fancybox.setTranslate(e.$slide,{top:i.top-s.top,left:i.left-s.left})}),o.SlideShow&&o.SlideShow.isActive&&o.SlideShow.stop()}},i.prototype.onPan=function(){var t=this;v(t.newPoints[0],t.realPoints[0])<(m.fancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&b(t.requestId),t.requestId=y(function(){m.fancybox.setTranslate(t.$content,t.contentLastPos)}))},i.prototype.limitMovement=function(){var t,e,i,s,n,o,a=this,r=a.canvasWidth,l=a.canvasHeight,c=a.distanceX,h=a.distanceY,d=a.contentStartPos,p=d.left,u=d.top,f=d.width,g=d.height;return n=r<f?p+c:p,o=u+h,t=Math.max(0,.5*r-.5*f),e=Math.max(0,.5*l-.5*g),i=Math.min(r-f,.5*r-.5*f),s=Math.min(l-g,.5*l-.5*g),0<c&&t<n&&(n=t-1+Math.pow(-t+p+c,.8)||0),c<0&&n<i&&(n=i+1-Math.pow(i-p-c,.8)||0),0<h&&e<o&&(o=e-1+Math.pow(-e+u+h,.8)||0),h<0&&o<s&&(o=s+1-Math.pow(s-u-h,.8)||0),{top:o,left:n}},i.prototype.limitPosition=function(t,e,i,s){var n=this.canvasWidth,o=this.canvasHeight;return t=n<i?(t=0<t?0:t)<n-i?n-i:t:Math.max(0,n/2-i/2),{top:e=o<s?(e=0<e?0:e)<o-s?o-s:e:Math.max(0,o/2-s/2),left:t}},i.prototype.onZoom=function(){var t=this,e=t.contentStartPos,i=e.width,s=e.height,n=e.left,o=e.top,a=v(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,r=Math.floor(i*a),l=Math.floor(s*a),c=(i-r)*t.percentageOfImageAtPinchPointX,h=(s-l)*t.percentageOfImageAtPinchPointY,d=(t.newPoints[0].x+t.newPoints[1].x)/2-m(g).scrollLeft(),p=(t.newPoints[0].y+t.newPoints[1].y)/2-m(g).scrollTop(),u=d-t.centerPointStartX,f={top:o+(h+(p-t.centerPointStartY)),left:n+(c+u),scaleX:a,scaleY:a};t.canTap=!1,t.newWidth=r,t.newHeight=l,t.contentLastPos=f,t.requestId&&b(t.requestId),t.requestId=y(function(){m.fancybox.setTranslate(t.$content,t.contentLastPos)})},i.prototype.ontouchend=function(t){var e=this,i=e.isSwiping,s=e.isPanning,n=e.isZooming,o=e.isScrolling;if(e.endPoints=h(t),e.dMs=Math.max((new Date).getTime()-e.startTime,1),e.$container.removeClass("fancybox-is-grabbing"),m(l).off(".fb.touch"),l.removeEventListener("scroll",e.onscroll,!0),e.requestId&&(b(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.isScrolling=!1,e.instance.isDragging=!1,e.canTap)return e.onTap(t);e.speed=100,e.velocityX=e.distanceX/e.dMs*.5,e.velocityY=e.distanceY/e.dMs*.5,s?e.endPanning():n?e.endZooming():e.endSwiping(i,o)},i.prototype.endSwiping=function(t,e){var i=this,s=!1,n=i.instance.group.length,o=Math.abs(i.distanceX),a="x"==t&&1<n&&(130<i.dMs&&10<o||50<o);i.sliderLastPos=null,"y"==t&&!e&&50<Math.abs(i.distanceY)?(m.fancybox.animate(i.instance.current.$slide,{top:i.sliderStartPos.top+i.distanceY+150*i.velocityY,opacity:0},200),s=i.instance.close(!0,250)):a&&0<i.distanceX?s=i.instance.previous(300):a&&i.distanceX<0&&(s=i.instance.next(300)),!1!==s||"x"!=t&&"y"!=t||i.instance.centerSlide(200),i.$container.removeClass("fancybox-is-sliding")},i.prototype.endPanning=function(){var t,e,i,s=this;s.contentLastPos&&(e=!1===s.opts.momentum||350<s.dMs?(t=s.contentLastPos.left,s.contentLastPos.top):(t=s.contentLastPos.left+500*s.velocityX,s.contentLastPos.top+500*s.velocityY),(i=s.limitPosition(t,e,s.contentStartPos.width,s.contentStartPos.height)).width=s.contentStartPos.width,i.height=s.contentStartPos.height,m.fancybox.animate(s.$content,i,366))},i.prototype.endZooming=function(){var t,e,i,s,n=this,o=n.instance.current,a=n.newWidth,r=n.newHeight;n.contentLastPos&&(t=n.contentLastPos.left,s={top:e=n.contentLastPos.top,left:t,width:a,height:r,scaleX:1,scaleY:1},m.fancybox.setTranslate(n.$content,s),a<n.canvasWidth&&r<n.canvasHeight?n.instance.scaleToFit(150):a>o.width||r>o.height?n.instance.scaleToActual(n.centerPointStartX,n.centerPointStartY,150):(i=n.limitPosition(t,e,a,r),m.fancybox.animate(n.$content,i,150)))},i.prototype.onTap=function(i){function t(t){var e=a.opts[t];if(m.isFunction(e)&&(e=e.apply(o,[a,i])),e)switch(e){case"close":o.close(s.startEvent);break;case"toggleControls":o.toggleControls();break;case"next":o.next();break;case"nextOrClose":1<o.group.length?o.next():o.close(s.startEvent);break;case"zoom":"image"==a.type&&(a.isLoaded||a.$ghost)&&(o.canPan()?o.scaleToFit():o.isScaledDown()?o.scaleToActual(l,c):o.group.length<2&&o.close(s.startEvent))}}var e,s=this,n=m(i.target),o=s.instance,a=o.current,r=i&&h(i)||s.startPoints,l=r[0]?r[0].x-m(g).scrollLeft()-s.stagePos.left:0,c=r[0]?r[0].y-m(g).scrollTop()-s.stagePos.top:0;if((!i.originalEvent||2!=i.originalEvent.button)&&(n.is("img")||!(l>n[0].clientWidth+n.offset().left))){if(n.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))e="Outside";else if(n.is(".fancybox-slide"))e="Slide";else{if(!o.current.$content||!o.current.$content.find(n).addBack().filter(n).length)return;e="Content"}if(s.tapped){if(clearTimeout(s.tapped),s.tapped=null,50<Math.abs(l-s.tapX)||50<Math.abs(c-s.tapY))return this;t("dblclick"+e)}else s.tapX=l,s.tapY=c,a.opts["dblclick"+e]&&a.opts["dblclick"+e]!==a.opts["click"+e]?s.tapped=setTimeout(function(){s.tapped=null,o.isAnimating||t("click"+e)},500):t("click"+e);return this}},m(l).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new i(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(a,r){"use strict";r.extend(!0,r.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"><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}});function i(t){this.instance=t,this.init()}r.extend(i.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,e=t.instance,i=e.group[e.currIndex].opts.slideShow;t.$button=e.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),e.group.length<2||!i?t.$button.hide():i.progress&&(t.$progress=r('<div class="fancybox-progress"></div>').appendTo(e.$refs.inner))},set:function(t){var e=this,i=e.instance,s=i.current;s&&(!0===t||s.opts.loop||i.currIndex<i.group.length-1)?e.isActive&&"video"!==s.contentType&&(e.$progress&&r.fancybox.animate(e.$progress.show(),{scaleX:1},s.opts.slideShow.speed),e.timer=setTimeout(function(){i.current.opts.loop||i.current.index!=i.group.length-1?i.next():i.jumpTo(0)},s.opts.slideShow.speed)):(e.stop(),i.idleSecondsCounter=0,i.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),r(a).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new i(e))},"beforeShow.fb":function(t,e,i,s){var n=e&&e.SlideShow;s?n&&i.opts.slideShow.autoStart&&n.start():n&&n.isActive&&n.clear()},"afterShow.fb":function(t,e,i){var s=e&&e.SlideShow;s&&s.isActive&&s.set()},"afterKeydown.fb":function(t,e,i,s,n){var o=e&&e.SlideShow;!o||!i.opts.slideShow||80!==n&&32!==n||r(a.activeElement).is("button,a,input")||(s.preventDefault(),o.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var i=e&&e.SlideShow;i&&i.stop()}}),r(a).on("visibilitychange",function(){var t=r.fancybox.getInstance(),e=t&&t.SlideShow;e&&e.isActive&&(a.hidden?e.clear():e.set())})}(document,jQuery),function(o,i){"use strict";var s=function(){for(var t=[["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"]],e={},i=0;i<t.length;i++){var s=t[i];if(s&&s[1]in o){for(var n=0;n<s.length;n++)e[t[0][n]]=s[n];return e}}return!1}();if(s){var n={request:function(t){(t=t||o.documentElement)[s.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){o[s.exitFullscreen]()},toggle:function(t){t=t||o.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(o[s.fullscreenElement])},enabled:function(){return Boolean(o[s.fullscreenEnabled])}};i.extend(!0,i.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"><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}}),i(o).on(s.fullscreenchange,function(){var t=n.isFullscreen(),e=i.fancybox.getInstance();e&&(e.current&&"image"===e.current.type&&e.isAnimating&&(e.isAnimating=!1,e.update(!0,!0,0),e.isComplete||e.complete()),e.trigger("onFullscreenChange",t),e.$refs.container.toggleClass("fancybox-is-fullscreen",t),e.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}i(o).on({"onInit.fb":function(t,e){s?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),n.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,i,s,n){e&&e.FullScreen&&70===n&&(s.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,o){"use strict";var a="fancybox-thumbs";o.fancybox.defaults=o.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"}},o.fancybox.defaults);function s(t){this.init(t)}o.extend(s.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,i=t.group,s=0;e.instance=t,e.opts=i[t.currIndex].opts.thumbs,(t.Thumbs=e).$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var n=0,o=i.length;n<o&&(i[n].thumb&&s++,!(1<s));n++);1<s&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var i,t=this,e=t.instance,s=t.opts.parentEl,n=[];t.$grid||(t.$grid=o('<div class="'+a+" "+a+"-"+t.opts.axis+'"></div>').appendTo(e.$refs.container.find(s).addBack().filter(s)),t.$grid.on("click","a",function(){e.jumpTo(o(this).attr("data-index"))})),t.$list||(t.$list=o('<div class="'+a+'__list">').appendTo(t.$grid)),o.each(e.group,function(t,e){(i=e.thumb)||"image"!==e.type||(i=e.src),n.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(i&&i.length?' style="background-image:url('+i+')"':'class="fancybox-thumbs-missing"')+"></a>")}),t.$list[0].innerHTML=n.join(""),"x"===t.opts.axis&&t.$list.width(parseInt(t.$grid.css("padding-right"),10)+e.group.length*t.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,i,s=this,n=s.$list,o=s.$grid;s.instance.current&&(i=(e=n.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+s.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===s.opts.axis&&(i.top<0||i.top>n.height()-e.outerHeight())?n.stop().animate({scrollTop:n.scrollTop()+i.top},t):"x"===s.opts.axis&&(i.left<o.scrollLeft()||i.left>o.scrollLeft()+(o.width()-e.outerWidth()))&&n.parent().stop().animate({scrollLeft:i.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),o(t).on({"onInit.fb":function(t,e){var i;!e||e.Thumbs||(i=new s(e)).isActive&&!0===i.opts.autoStart&&i.show()},"beforeShow.fb":function(t,e,i,s){var n=e&&e.Thumbs;n&&n.isVisible&&n.focus(s?0:250)},"afterKeydown.fb":function(t,e,i,s,n){var o=e&&e.Thumbs;o&&o.isActive&&71===n&&(s.preventDefault(),o.toggle())},"beforeClose.fb":function(t,e){var i=e&&e.Thumbs;i&&i.isVisible&&!1!==i.opts.hideOnClose&&i.$grid.hide()}})}(document,jQuery),function(t,n){"use strict";n.extend(!0,n.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(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),n(t).on("click","[data-fancybox-share]",function(){var t,e,i=n.fancybox.getInstance(),s=i.current||null;s&&("function"===n.type(s.opts.share.url)&&(t=s.opts.share.url.apply(s,[i,s])),e=s.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===s.type?encodeURIComponent(s.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,function(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):""),n.fancybox.open({src:i.translate(i,e),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(o,a,n){"use strict";function r(){var t=o.location.hash.substr(1),e=t.split("-"),i=1<e.length&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||1;return{hash:t,index:i<1?1:i,gallery:e.join("-")}}function e(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function l(t){var e,i;return!!t&&(""!==(i=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&i)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(a).on({"onInit.fb":function(t,e){var i,s;!1!==e.group[e.currIndex].opts.hash&&(i=r(),(s=l(e))&&i.gallery&&s==i.gallery&&(e.currIndex=i.index-1))},"beforeShow.fb":function(t,e,i,s){var n;i&&!1!==i.opts.hash&&(n=l(e))&&(e.currentHash=n+(1<e.group.length?"-"+(i.index+1):""),o.location.hash!=="#"+e.currentHash&&(s&&!e.origHash&&(e.origHash=o.location.hash),e.hashTimer&&clearTimeout(e.hashTimer),e.hashTimer=setTimeout(function(){"replaceState"in o.history?(o.history[s?"pushState":"replaceState"]({},a.title,o.location.pathname+o.location.search+"#"+e.currentHash),s&&(e.hasCreatedHistory=!0)):o.location.hash=e.currentHash,e.hashTimer=null},300)))},"beforeClose.fb":function(t,e,i){i&&!1!==i.opts.hash&&(clearTimeout(e.hashTimer),e.currentHash&&e.hasCreatedHistory?o.history.back():e.currentHash&&("replaceState"in o.history?o.history.replaceState({},a.title,o.location.pathname+o.location.search+(e.origHash||"")):o.location.hash=e.origHash),e.currentHash=null)}}),n(o).on("hashchange.fb",function(){var t=r(),s=null;n.each(n(".fancybox-container").get().reverse(),function(t,e){var i=n(e).data("FancyBox");if(i&&i.currentHash)return s=i,!1}),s?s.currentHash===t.gallery+"-"+t.index||1===t.index&&s.currentHash==t.gallery||(s.currentHash=null,s.close()):""!==t.gallery&&e(t)}),setTimeout(function(){n.fancybox.getInstance()||e(r())},50))})}(window,document,jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,s,e){s.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=s.current,i=(new Date).getTime();s.group.length<2||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,s[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery),$(function(){"use strict";var t=$(".search-wrapper"),e=$(".login-wrapper"),i=$(".cart-wrapper"),s=$(".floating-menu"),n=$(".floating-menu a"),o=$(".open-search"),a=$(".open-login"),r=$(".open-cart"),l=$(".open-menu"),c=$(".open-dropdown"),h=$(".nav-settings .nav-settings-list li"),d=$(".close-menu");function p(t){$(t).toggleClass("open")}function u(){t.removeClass("open"),o.removeClass("open")}function f(){e.removeClass("open"),a.removeClass("open")}function g(){i.removeClass("open"),r.removeClass("open")}a.on("click",function(){p($(this)),e.toggleClass("open"),u(),g()}),o.on("click",function(){p($(this)),t.toggleClass("open"),t.find("input").focus(),f(),g()}),r.on("click",function(){p($(this)),i.toggleClass("open"),f(),u()}),l.on("click",function(){s.addClass("expanded"),u(),f(),g()}),h.on("click",function(){$(this).closest(".nav-settings").find(".nav-settings-value").text($(this).text())}),$("nav").hasClass("navbar-single-page")&&n.on("click",function(){s.removeClass("expanded")}),c.on("click",function(t){t.preventDefault();var e=$(this).parent().parent(),i=e.find(".navbar-dropdown");e.toggleClass("expanded"),e.hasClass("expanded")?i.slideDown():i.slideUp()}),d.on("click",function(){$("nav").find(".expanded").removeClass("expanded"),$("nav").find(".navbar-dropdown").slideUp()});var m=$("nav.navbar-fixed");94<$(document).scrollTop()&&m.addClass("navbar-sticked"),$(document).on("bind ready scroll",function(){10<=$(document).scrollTop()?m.addClass("navbar-sticked"):m.removeClass("navbar-sticked")}),$('[data-toggle="tooltip"]').tooltip(),$(".mfp-open").magnificPopup({type:"inline",fixedContentPos:!1,fixedBgPos:!0,overflowY:"auto",closeBtnInside:!0,preloader:!1,midClick:!0,removalDelay:300,mainClass:"my-mfp-zoom-in",callbacks:{open:function(){$(".popup-main .owl-carousel").hide(),setTimeout(function(){$(".popup-main .owl-carousel").slideDown()},500)}}}),$(".open-popup-gallery").magnificPopup({delegate:"a",type:"image",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},fixedContentPos:!1,fixedBgPos:!0,overflowY:"auto",closeBtnInside:!0,preloader:!1,midClick:!0,removalDelay:300,mainClass:"my-mfp-zoom-in"});var v=['<span class="icon icon-chevron-left"></span>','<span class="icon icon-chevron-right"></span>'],y=$(".main-page-slider__slider");y.owlCarousel({margin:24,responsiveClass:!0,singleItem:!1,paginationSpeed:400,loop:!0,items:4,slideBy:1,slideSpeed:300,autoplay:!0,autoplayTimeout:3e3,autoplayHoverPause:!0,nav:!1,dots:!1,navText:['<svg width="100%" height="100%" viewBox="0 0 11 20"><path style="fill:none;stroke-width: 1px;stroke: #fff;" d="M9.554,1.001l-8.607,8.607l8.607,8.606"/></svg>','<svg width="100%" height="100%" viewBox="0 0 11 20" version="1.1"><path style="fill:none;stroke-width: 1px;stroke: #fff;" d="M1.054,18.214l8.606,-8.606l-8.606,-8.607"/></svg>'],responsive:{991:{items:4,nav:!0},768:{items:3,nav:!1},500:{items:2,nav:!1},420:{items:1,nav:!1}},onInitialized:function(t){var e,i,s=y.find(".slider__item");e=s,i=0,$.each(e,function(){var t=$(this).height();i<t&&(i=t)}),e.height(i),setTimeout(function(t){y.trigger("refresh.owl.carousel")},1)}}),$.each($(".owl-icons"),function(t,e){$(e).owlCarousel({autoHeight:!1,pagination:!1,navigation:!0,navigationText:v,items:6,itemsDesktop:[1199,5],itemsDesktopSmall:[979,5],itemsTablet:[768,4],itemsTabletSmall:!1,itemsMobile:[479,3],addClassActive:!0,autoPlay:5500,stopOnHover:!0})}),$.each($(".owl-product-gallery"),function(t,e){$(e).owlCarousel({autoHeight:!0,slideSpeed:800,navigation:!0,navigationText:v,pagination:!0,items:1,singleItem:!0})}),$(".wrapper").append($("<div class='scroll-top'><i class='icon icon-chevron-up'></i></div>"));var b=$(".scroll-top");$(document).on("ready scroll",function(){var t=$(document).scrollTop(),e=$(window).scrollTop()+$(window).height()==$(document).height();150<=t?b.addClass("visible"):b.removeClass("visible"),e?b.addClass("active"):b.removeClass("active")}),b.on("click",function(){return $("html,body").animate({scrollTop:$("body").offset().top},1e3),!1}),$.each($(".product-colors"),function(t,e){var i=$(".color-btn");i.on("click",function(){$(this).parent().find(i).removeClass("checked"),$(this).addClass("checked")})});var w=$(".tabsy .tabsy-images > div"),x=$(".tabsy .tabsy-links figure");w.each(function(t,e){$(e).css("background-image","url("+$(e).find("img").attr("src")+")")}),x.bind("mouseenter mouseleave",function(){var t=$(this),e=t.attr("data-image");x.removeClass("current"),w.removeClass("current"),t.addClass("current"),t.closest(".tabsy").find("#"+e).addClass("current")}),$(".add-favorite").on("click",function(){$(this).toggleClass("added")}),$(".info-box-addto").on("click",function(){$(this).toggleClass("added")}),$(".filters .filter-box").each(function(){$(this).hasClass("active")&&$(this).find(".filter-content").show()});var _=$(".filters .title");_.append("<span></span>"),_.on("click",function(t){var e=$(this).parent();e.toggleClass("active"),e.hasClass("active")?e.find(".filter-content").slideDown(300):e.find(".filter-content").slideUp(200)}),$(".filters .filter-update").on("click",function(t){$(this).closest(".filter-box").removeClass("active").find(".filter-content").slideUp(200)}),$(".filters input").on("change",function(){if($(this).is(":checked")){var t=$(this).parent().find("label").text();$(this).closest(".filter-box").find(".title").find("span").text(t)}}),$(".toggle-filters-mobile").on("click",function(){$(".filters").addClass("active")}),$(".toggle-filters-close").on("click",function(){return $(".filters").removeClass("active"),$("html,body").animate({scrollTop:$("body").offset().top},800),!1}),$(".stretcher-item").bind({mouseenter:function(t){$(this).addClass("active"),$(this).siblings().addClass("inactive")},mouseleave:function(t){$(this).removeClass("active"),$(this).siblings().removeClass("inactive")}}),$(".blog-post-text img").each(function(){var t=$(this);if(t.wrap('<span class="blog-image"></span>'),t.attr("alt")){var e=this.alt;t.attr("data");t.after('<span class="caption">'+e+"</span>")}}),$(".form-coupon").hide(),$("#couponCodeID").on("click",function(){$(this).is(":checked")?$(".form-coupon").fadeIn():$(".form-coupon").fadeOut()});var C=$(".login-wrapper"),T=C.find(".btn-login"),S=C.find(".btn-register"),P=C.find(".login-block-signup"),k=C.find(".login-block-signin");T.on("click",function(){k.slideDown(),P.slideUp()}),S.on("click",function(){k.slideUp(),P.slideDown()}),$(function(){var e=0,i=$("#blog"),t=$("#filters input"),s=$("#sort-price"),n=[];$(".item").addClass("show-me"),n.push(".show-me"),i.isotope({itemSelector:".item",getSortData:{number:".price parseInt"},sortBy:"number"}),s.on("change",function(){var t="asc"==$("option:selected",this).attr("data-option-value");i.isotope({itemSelector:".item",getSortData:{number:".price parseInt"},sortBy:"number",sortAscending:t,filter:n})}),t.on("change",function(){(n=[]).push(".show-me"),t.filter(":checked").each(function(){n.push(this.value)}),n=n.join(""),i.isotope({filter:n})}),$("#range-price-slider").ionRangeSlider({type:"double",min:0,max:4e3,from:150,to:3800,prefix:"$",onChange:function(t){$(".item").each(function(){e=parseInt($(this).find(".price").text(),10),t.from<=e&&t.to>=e?$(this).addClass("show-me"):$(this).removeClass("show-me")}),i.isotope({itemSelector:".item",filter:n})}})}),$(function(){var i=$(".box-filters figure"),s=$("#box-filters-results").isotope({itemSelector:".item"});i.on("click",function(){var t=$(this);if(t.hasClass("active"))t.removeClass("active"),s.isotope({filter:""});else{i.removeClass("active"),t.addClass("active");var e=t.attr("data-filter");s.isotope({filter:e})}})});var z=$(".team article");if(z.bind({mouseenter:function(t){z.addClass("inactive"),$(this).addClass("active")},mouseleave:function(t){z.removeClass("inactive"),$(this).removeClass("active")}}),$(".open-form").on("click",function(){var t=$(this),e=t.parent();e.toggleClass("active"),e.hasClass("active")?(t.text(t.data("text-close")),$(".contact-form").slideDown()):(t.text(t.data("text-open")),$(".contact-form").slideUp())}),$("nav").hasClass("navbar-single-page")){var E=$(".navigation-main a");E.on("click",function(){return E.removeClass("current"),$(this).addClass("current"),$("html, body").animate({scrollTop:$($(this).attr("href")).offset().top-$(".navigation-main").height()},500),!1}),$(".mfp-open-scrollto").on("click",function(){return $("html,body").animate({scrollTop:$(".mfp-content").offset().top-200},300),!1})}$(".sidebar-site").find(".menu__item").hover(function(t){$(this).find(".menu__sub-menu").stop(!0,!0).css("display","block").animate({top:["0","swing"],opacity:"1"},150)},function(t){$(this).find(".menu__sub-menu").stop(!0,!0).hide().removeAttr("style")})}),$(window).bind("load",function(){setTimeout(function(){$(".page-loader").addClass("loaded")},1e3)}),$(function(t){$(".single-page-tabs__tabs").organicTabs({speed:100,param:"tab"}),$(".button-spoiler").on("click",function(t){$(this).closest("li").find(".list-spoilers__desc").stop().slideToggle(300);var e=$(this).closest("li").find(".list-spoilers__button"),i=$(this).closest("li").find(".list-spoilers__button-icon");$(this).hasClass("list-spoilers__button_active")?(e.removeClass("list-spoilers__button_active"),i.removeClass("list-spoilers__button-icon_active")):(e.addClass("list-spoilers__button_active"),i.addClass("list-spoilers__button-icon_active"))})}),$(document).ready(function(){$(".item__fancybox").fancybox({titleShow:!1,transitionIn:"elastic",transitionOut:"elastic",easingIn:"easeOutBack",easingOut:"easeInBack",animationEffect:"circular"});var i=$("#sync1"),a=$("#sync2");i.owlCarousel({items:1,slideSpeed:2e3,nav:!0,autoplay:!1,dots:!0,loop:!0,responsiveRefreshRate:200,navText:['<svg width="100%" height="100%" viewBox="0 0 11 20"><path style="fill:none;stroke-width: 1px;stroke: #183F93;" d="M9.554,1.001l-8.607,8.607l8.607,8.606"/></svg>','<svg width="100%" height="100%" viewBox="0 0 11 20" version="1.1"><path style="fill:none;stroke-width: 1px;stroke: #183F93;" d="M1.054,18.214l8.606,-8.606l-8.606,-8.607"/></svg>']}).on("changed.owl.carousel",function(t){var e=t.item.count-1,i=Math.round(t.item.index-t.item.count/2-.5);i<0&&(i=e);e<i&&(i=0);a.find(".owl-item").removeClass("current").eq(i).addClass("current");var s=a.find(".owl-item.active").length-1,n=a.find(".owl-item.active").first().index(),o=a.find(".owl-item.active").last().index();o<i&&a.data("owl.carousel").to(i,100,!0);i<n&&a.data("owl.carousel").to(i-s,100,!0)}),a.on("initialized.owl.carousel",function(){a.find(".owl-item").eq(0).addClass("current")}).owlCarousel({items:4,dots:!0,nav:!0,smartSpeed:200,slideSpeed:500,slideBy:4,responsiveRefreshRate:100}).on("changed.owl.carousel",function(t){{var e=t.item.index;i.data("owl.carousel").to(e,100,!0)}}),a.on("click",".owl-item",function(t){t.preventDefault();var e=$(this).index();i.data("owl.carousel").to(e,300,!0)})});