").addClass(settings.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=$("<"+settings.navElement+">").addClass(settings.navClass[0]).html(settings.navText[0]).prependTo(this._controls.$relative).on("click",$.proxy(function(e){this.prev(settings.navSpeed)},this)),this._controls.$next=$("<"+settings.navElement+">").addClass(settings.navClass[1]).html(settings.navText[1]).appendTo(this._controls.$relative).on("click",$.proxy(function(e){this.next(settings.navSpeed)},this)),settings.dotsData||(this._templates=[$("
").addClass(settings.dotClass).append($("
")).prop("outerHTML")]),this._controls.$absolute=(settings.dotsContainer?$(settings.dotsContainer):$("").addClass(settings.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",$.proxy(function(e){var index=$(e.target).parent().is(this._controls.$absolute)?$(e.target).index():$(e.target).parent().index();e.preventDefault(),this.to(index,settings.dotsSpeed)},this));for(override in this._overrides)this._core[override]=$.proxy(this[override],this)},Navigation.prototype.destroy=function(){var handler,control,property,override;for(handler in this._handlers)this.$element.off(handler,this._handlers[handler]);for(control in this._controls)this._controls[control].remove();for(override in this.overides)this._core[override]=this._overrides[override];for(property in Object.getOwnPropertyNames(this))typeof this[property]!="function"&&(this[property]=null)},Navigation.prototype.update=function(){var i,j,k,lower=this._core.clones().length/2,upper=lower+this._core.items().length,maximum=this._core.maximum(!0),settings=this._core.settings,size=settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items;settings.slideBy!=="page"&&(settings.slideBy=Math.min(settings.slideBy,settings.items));if(settings.dots||settings.slideBy=="page"){this._pages=[];for(i=lower,j=0,k=0;i
=size||j===0){this._pages.push({start:Math.min(maximum,i-lower),end:i-lower+size-1});if(Math.min(maximum,i-lower)===maximum)break;j=0,++k}j+=this._core.mergers(this._core.relative(i))}}},Navigation.prototype.draw=function(){var difference,settings=this._core.settings,disabled=this._core.items().length<=settings.items,index=this._core.relative(this._core.current()),loop=settings.loop||settings.rewind;this._controls.$relative.toggleClass("disabled",!settings.nav||disabled),settings.nav&&(this._controls.$previous.toggleClass("disabled",!loop&&index<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!loop&&index>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!settings.dots||disabled),settings.dots&&(difference=this._pages.length-this._controls.$absolute.children().length,settings.dotsData&&difference!==0?this._controls.$absolute.html(this._templates.join("")):difference>0?this._controls.$absolute.append((new Array(difference+1)).join(this._templates[0])):difference<0&&this._controls.$absolute.children().slice(difference).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq($.inArray(this.current(),this._pages)).addClass("active"))},Navigation.prototype.onTrigger=function(event){var settings=this._core.settings;event.page={index:$.inArray(this.current(),this._pages),count:this._pages.length,size:settings&&(settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items)}},Navigation.prototype.current=function(){var current=this._core.relative(this._core.current());return $.grep(this._pages,$.proxy(function(page,index){return page.start<=current&&page.end>=current},this)).pop()},Navigation.prototype.getPosition=function(successor){var position,length,settings=this._core.settings;return settings.slideBy=="page"?(position=$.inArray(this.current(),this._pages),length=this._pages.length,successor?++position:--position,position=this._pages[(position%length+length)%length].start):(position=this._core.relative(this._core.current()),length=this._core.items().length,successor?position+=settings.slideBy:position-=settings.slideBy),position},Navigation.prototype.next=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!0),speed)},Navigation.prototype.prev=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!1),speed)},Navigation.prototype.to=function(position,speed,standard){var length;standard?$.proxy(this._overrides.to,this._core)(position,speed):(length=this._pages.length,$.proxy(this._overrides.to,this._core)(this._pages[(position%length+length)%length].start,speed))},$.fn.owlCarousel.Constructor.Plugins.Navigation=Navigation}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){"use strict";var Hash=function(carousel){this._core=carousel,this._hashes={},this.$element=this._core.$element,this._handlers={"prepared.owl.carousel":$.proxy(function(e){if(e.namespace){var hash=$(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!hash)return;this._hashes[hash]=e.content}},this),"changed.owl.carousel":$.proxy(function(e){if(e.namespace&&e.property.name==="position"){var current=this._core.items(this._core.relative(this._core.current())),hash=$.map(this._hashes,function(item,hash){return item===current?hash:null}).join();if(!hash||window.location.hash.slice(1)===hash)return;window.location.hash=hash}},this)},this._core.options=$.extend({},Hash.Defaults,this._core.options),this.$element.on(this._handlers)};Hash.Defaults={URLhashListener:!1},Hash.prototype.destroy=function(){var handler,property;$(window).off("hashchange.owl.navigation");for(handler in this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))typeof this[property]!="function"&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Hash=Hash}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){function test(property,prefixed){var result=!1,upper=property.charAt(0).toUpperCase()+property.slice(1);return $.each((property+" "+prefixes.join(upper+" ")+upper).split(" "),function(i,property){if(style[property]!==undefined)return result=prefixed?property:!0,!1}),result}function prefixed(property){return test(property,!0)}var style=$("").get(0).style,prefixes="Webkit Moz O ms".split(" "),events={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},tests={csstransforms:function(){return!!test("transform")},csstransforms3d:function(){return!!test("perspective")},csstransitions:function(){return!!test("transition")},cssanimations:function(){return!!test("animation")}};tests.csstransitions()&&($.support.transition=new String(prefixed("transition")),$.support.transition.end=events.transition.end[$.support.transition]),tests.cssanimations()&&($.support.animation=new String(prefixed("animation")),$.support.animation.end=events.animation.end[$.support.animation]),tests.csstransforms()&&($.support.transform=new String(prefixed("transform")),$.support.transform3d=tests.csstransforms3d())}(window.Zepto||window.jQuery,window,document),function(window,document,undefined){var absPos=function(element){var offsetLeft,offsetTop;offsetLeft=offsetTop=0;if(element.offsetParent)do offsetLeft+=element.offsetLeft,offsetTop+=element.offsetTop;while(element=element.offsetParent);return[offsetLeft,offsetTop]},ProgressCircle=function(params){this.canvas=params.canvas,this.minRadius=params.minRadius||15,this.arcWidth=params.arcWidth||5,this.gapWidth=params.gapWidth||3,this.centerX=params.centerX||this.canvas.width/2,this.centerY=params.centerY||this.canvas.height/2,this.infoLineLength=params.infoLineLength||60,this.horizLineLength=params.horizLineLength||10,this.infoLineAngleInterval=params.infoLineAngleInterval||Math.PI/8,this.infoLineBaseAngle=params.infoLineBaseAngle||Math.PI/6,this.context=this.canvas.getContext("2d"),this.width=this.canvas.width,this.height=this.canvas.height,this.circles=[],this.runningCount=0};ProgressCircle.prototype={constructor:ProgressCircle,addEntry:function(params){return this.circles.push(new Circle({canvas:this.canvas,context:this.context,centerX:this.centerX,centerY:this.centerY,innerRadius:this.minRadius+this.circles.length*(this.gapWidth+this.arcWidth),arcWidth:this.arcWidth,infoLineLength:this.infoLineLength,horizLineLength:this.horizLineLength,id:this.circles.length,fillColor:params.fillColor,outlineColor:params.outlineColor,progressListener:params.progressListener,infoListener:params.infoListener,infoLineAngle:this.infoLineBaseAngle+this.circles.length*this.infoLineAngleInterval})),this},start:function(interval){var self=this;return this.timer=setInterval(function(){self._update()},interval||33),this},stop:function(){clearTimeout(this.timer)},_update:function(){return this._clear(),this.circles.forEach(function(circle,idx,array){circle.update()}),this},_clear:function(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}};var Circle=function(params){this.id=params.id,this.canvas=params.canvas,this.context=params.context,this.centerX=params.centerX,this.centerY=params.centerY,this.arcWidth=params.arcWidth,this.innerRadius=params.innerRadius||0,this.fillColor=params.fillColor||"#fff",this.outlineColor=params.outlineColor||this.fillColor,this.progressListener=params.progressListener,this.infoLineLength=params.infoLineLength||250,this.horizLineLength=params.horizLineLength||50,this.infoListener=params.infoListener,this.infoLineAngle=params.infoLineAngle,this.outerRadius=this.innerRadius+this.arcWidth;if(!this.infoListener)return;var angle=this.infoLineAngle,arcDistance=(this.innerRadius+this.outerRadius)/2,sinA=Math.sin(angle),cosA=Math.cos(angle);this.infoLineStartX=this.centerX+sinA*arcDistance,this.infoLineStartY=this.centerY-cosA*arcDistance,this.infoLineMidX=this.centerX+sinA*this.infoLineLength,this.infoLineMidY=this.centerY-cosA*this.infoLineLength,this.infoLineEndX=this.infoLineMidX+(sinA<0?-this.horizLineLength:this.horizLineLength),this.infoLineEndY=this.infoLineMidY;var infoText=document.createElement("div"),style=infoText.style;style.color=this.fillColor,style.position="absolute",style.left=this.infoLineEndX+absPos(this.canvas)[0]+"px",infoText.className="ProgressCircleInfo",infoText.id="progress_circle_info_"+this.id,document.body.appendChild(infoText),this.infoText=infoText};Circle.prototype={constructor:Circle,update:function(){this.progress=this.progressListener(),this._draw(),this.infoListener&&(this.info=this.infoListener(),this._drawInfo())},_draw:function(){var ctx=this.context,ANGLE_OFFSET=-Math.PI/2,startAngle=0+ANGLE_OFFSET,endAngle=startAngle+this.progress*Math.PI*2,x=this.centerX,y=this.centerY,innerRadius=this.innerRadius-this.arcWidth-1,outerRadius=this.outerRadius-this.arcWidth-1;return ctx.fillStyle=this.fillColor,ctx.strokeStyle=this.outlineColor,ctx.beginPath(),ctx.arc(x,y,innerRadius,startAngle,endAngle,!1),ctx.arc(x,y,outerRadius,endAngle,startAngle,!0),ctx.closePath(),ctx.stroke(),ctx.fill(),this},_drawInfo:function(){var pointList,lineHeight;return pointList=[[this.infoLineStartX,this.infoLineStartY],[this.infoLineMidX,this.infoLineMidY],[this.infoLineEndX,this.infoLineEndY]],this._drawSegments(pointList,!1),this.infoText.innerHTML=this.info,lineHeight=this.infoText.offsetHeight,this.infoText.style.top=this.infoLineEndY+absPos(this.canvas)[1]-lineHeight/2+"px",this},_drawSegments:function(pointList,close){var ctx=this.context;ctx.beginPath(),ctx.moveTo(pointList[0][0],pointList[0][1]);for(var i=1;i=this.value)return this.circle.stop(),this.animated=!0,this.$label.html(this.label_value+this.options.units),this._progress_v;this._progress_v+=.01;if(!isNaN(this.label_value)){var label_value=this._progress_v/this.value*this.label_value,val=Math.round(label_value)+this.options.units;this.$label.html(val)}else this.$label.html(this.label_value+this.options.units);return this._progress_v},animate:function(){this.animated!==!0&&this.circle.addEntry({fillColor:this.color,progressListener:$.proxy(this.setProgress,this)}).start(10)},setWayPoint:function(){typeof $.fn.waypoint!="undefined"&&!UNCODE.isMobile?this.$el.waypoint($.proxy(this.animate,this),{offset:"85%"}):this.animate()}},$.fn.vcChat=function(option,value){return this.each(function(){var $this=$(this),data=$this.data("vc_chart"),options=typeof option=="object"?option:{color:$this.data("pie-color"),units:$this.data("pie-units")};typeof option=="undefined"&&$this.data("vc_chart",data=new VcChart(this,options)),typeof option=="string"&&data[option](value)})},typeof window["vc_pieChart"]!="function"&&(window.vc_pieChart=function(){$(".vc_pie_chart:visible").vcChat()}),$(document).ready(function(){!window.vc_iframe&&vc_pieChart()})}(window.jQuery),uncode_progress_bar(),function($){"use strict";$.fn.counterUp=function(options){var settings=$.extend({time:400,delay:10},options);return this.each(function(){var $this=$(this),$settings=settings,counterUpper=function(){var nums=[],divisions=$settings.time/$settings.delay,numReal=$this.attr("data-val"),num=numReal,isComma=/[0-9]+,[0-9]+/.test(num);num=num.replace(/,/g,"");var isInt=/^[0-9]+$/.test(num),isFloat=/^[0-9]+\.[0-9]+$/.test(num),decimalPlaces=isFloat?(num.split(".")[1]||[]).length:0;for(var i=divisions;i>=1;i--){var newNum=parseInt(num/divisions*i);isFloat&&(newNum=parseFloat(num/divisions*i).toFixed(decimalPlaces));if(isComma)while(/(\d+)(\d{3})/.test(newNum.toString()))newNum=newNum.toString().replace(/(\d+)(\d{3})/,"$1,$2");nums.unshift(newNum)}nums.push(numReal),$this.data("counterup-nums",nums),$this.text("0");var f=function(){$this.data("counterup-nums")!=null&&($this.text($this.data("counterup-nums").shift()),$this.data("counterup-nums").length?setTimeout($this.data("counterup-func"),$settings.delay):(delete $this.data("counterup-nums"),$this.data("counterup-nums",null),$this.data("counterup-func",null)))};$this.data("counterup-func",f),setTimeout($this.data("counterup-func"),$settings.delay)};new Waypoint({element:this,handler:function(){counterUpper(),this.destroy()},offset:"100%"})})}}(jQuery),function(factory){"use strict";typeof define=="function"&&define.amd?define(["jquery"],factory):factory(jQuery)}(function($){"use strict";function parseDateString(dateString){if(dateString instanceof Date)return dateString;if(String(dateString).match(matchers))return String(dateString).match(/^[0-9]*$/)&&(dateString=Number(dateString)),String(dateString).match(/\-/)&&(dateString=String(dateString).replace(/\-/g,"/")),new Date(dateString);throw new Error("Couldn't cast `"+dateString+"` to a date object.")}function strftime(offsetObject){return function(format){var directives=format.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(directives)for(var i=0,len=directives.length;iv2?marker=" > ":v1==v2&&(marker=" = "),marker}_debug("[TextFill] "+prefix+" { "+"font-size: "+ourText.css("font-size")+","+"Height: "+ourText.height()+"px "+_m(ourText.height(),maxHeight)+maxHeight+"px,"+"Width: "+ourText.width()+_m(ourText.width(),maxWidth)+maxWidth+","+"minFontPixels: "+minFontPixels+"px, "+"maxFontPixels: "+maxFontPixels+"px }")}function _sizing(prefix,ourText,func,max,maxHeight,maxWidth,minFontPixels,maxFontPixels){_debug_sizing(prefix,ourText,maxHeight,maxWidth,minFontPixels,maxFontPixels);while(minFontPixelsmaxWidth||ourText.height()>maxHeight&&!Opts.widthOnly?(ourText.css("font-size",oldFontSize),Opts.fail&&Opts.fail(this),_debug("[TextFill] Failure { Current Width: "+ourText.width()+", "+"Maximum Width: "+maxWidth+", "+"Current Height: "+ourText.height()+", "+"Maximum Height: "+maxHeight+" }")):Opts.success?Opts.success(this):Opts.callback&&(_warn("callback is deprecated, use success, instead"),Opts.callback(this))}),Opts.complete&&Opts.complete(this),_debug("[TextFill] End Debug"),this}}(window.jQuery),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Share=e()}}(function(){function getStyles(config){}var define,module,exports,ShareUtils;!("classList"in document.documentElement)&&Object.defineProperty&&typeof HTMLElement!="undefined"&&Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){var ret,self,update;return update=function(fn){return function(value){var classes,index;classes=self.className.split(/\s+/),index=classes.indexOf(value),fn(classes,index,value),self.className=classes.join(" ")}},self=this,ret={add:update(function(classes,index,value){~index||classes.push(value)}),remove:update(function(classes,index){~index&&classes.splice(index,1)}),toggle:update(function(classes,index,value){~index?classes.splice(index,1):classes.push(value)}),contains:function(value){return!!~self.className.split(/\s+/).indexOf(value)},item:function(i){return self.className.split(/\s+/)[i]||null}},Object.defineProperty(ret,"length",{get:function(){return self.className.split(/\s+/).length}}),ret}}),String.prototype.to_rfc3986=function(){var tmp;return tmp=encodeURIComponent(this),tmp.replace(/[!'()*]/g,function(c){return"%"+c.charCodeAt(0).toString(16)})},ShareUtils=function(){function ShareUtils(){}return ShareUtils.prototype.extend=function(to,from,overwrite){var hasProp,prop;for(prop in from){hasProp=to[prop]!==undefined;if(hasProp&&typeof from[prop]=="object")this.extend(to[prop],from[prop],overwrite);else if(overwrite||!hasProp)to[prop]=from[prop]}},ShareUtils.prototype.hide=function(el){return el.style.display="none"},ShareUtils.prototype.show=function(el){return el.style.display="block"},ShareUtils.prototype.has_class=function(el,class_name){return el.classList.contains(class_name)},ShareUtils.prototype.add_class=function(el,class_name){return el.classList.add(class_name)},ShareUtils.prototype.remove_class=function(el,class_name){return el.classList.remove(class_name)},ShareUtils.prototype.is_encoded=function(str){return str=str.to_rfc3986(),decodeURIComponent(str)!==str},ShareUtils.prototype.encode=function(str){return typeof str=="undefined"||this.is_encoded(str)?str:str.to_rfc3986()},ShareUtils.prototype.popup=function(url,params){var k,popup,qs,v;return params==null&&(params={}),popup={width:500,height:350},popup.top=screen.height/2-popup.height/2,popup.left=screen.width/2-popup.width/2,qs=function(){var _results;_results=[];for(k in params)v=params[k],_results.push(""+k+"="+this.encode(v));return _results}.call(this).join("&"),qs&&(qs="?"+qs),window.open(url+qs,"targetWindow","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left="+popup.left+",top="+popup.top+",width="+popup.width+",height="+popup.height)},ShareUtils}();var Share,__hasProp={}.hasOwnProperty,__extends=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)__hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child};return Share=function(_super){function Share(element,options){return this.element=element,this.el={head:document.getElementsByTagName("head")[0],body:document.getElementsByTagName("body")[0]},this.config={enabled_networks:0,protocol:["http","https"].indexOf(window.location.href.split(":")[0])===-1?"https://":"//",url:window.location.href.replace("&","%26"),caption:null,title:this.default_title(),image:this.default_image(),description:this.default_description(),ui:{flyout:"top center",button_text:"Share",button_font:!0,icon_font:!0},networks:{google_plus:{enabled:!0,url:null},twitter:{enabled:!0,url:null,title:null,description:null},facebook:{enabled:!0,load_sdk:!0,url:null,app_id:null,title:null,caption:null,description:null,image:null},pinterest:{enabled:!0,url:null,image:null,description:null},reddit:{enabled:!0,url:null,title:null},linkedin:{enabled:!0,url:null,title:null,description:null},xing:{enabled:!0,url:null,title:null,image:null,description:null},whatsapp:{enabled:!0,description:null,url:null},email:{enabled:!0,title:null,description:null,url:null}}},this.setup(element,options),this}return __extends(Share,_super),Share.prototype.setup=function(element,opts){var index,instance,instances,_i,_len;instances=document.querySelectorAll(element),this.extend(this.config,opts,!0),this.set_global_configuration(),this.normalize_network_configuration(),this.config.ui.icon_font&&this.inject_icons(),this.config.ui.button_font&&this.inject_fonts(),this.config.networks.facebook.enabled&&this.config.networks.facebook.load_sdk&&this.inject_facebook_sdk();for(index=_i=0,_len=instances.length;_i<_len;index=++_i)instance=instances[index],this.setup_instance(element,index)},Share.prototype.setup_instance=function(element,index){var button,instance,label,network,networks,_i,_len,_results,_this=this;instance=document.querySelectorAll(element)[index],this.hide(instance),this.add_class(instance,"sharer-"+index),instance=document.querySelectorAll(element)[index],this.inject_css(instance),this.inject_html(instance),this.show(instance),label=instance.getElementsByTagName("label")[0],button=instance.getElementsByClassName("social")[0],networks=instance.getElementsByTagName("li"),this.add_class(button,"networks-"+this.config.enabled_networks),label.addEventListener("click",function(){return _this.event_toggle(button)}),_this=this,_results=[];for(index=_i=0,_len=networks.length;_i<_len;index=++_i)network=networks[index],_results.push(network.addEventListener("click",function(){return _this.event_network(instance,this),_this.event_close(button)}));return _results},Share.prototype.event_toggle=function(button){return this.has_class(button,"active")?this.event_close(button):this.event_open(button)},Share.prototype.event_open=function(button){return this.has_class(button,"load")&&this.remove_class(button,"load"),this.add_class(button,"active")},Share.prototype.event_close=function(button){return this.remove_class(button,"active")},Share.prototype.event_network=function(instance,network){var name;return name=network.getAttribute("data-network"),this.hook("before",name,instance),this["network_"+name](),this.hook("after",name,instance)},Share.prototype.open=function(){return this["public"]("open")},Share.prototype.close=function(){return this["public"]("close")},Share.prototype.toggle=function(){return this["public"]("toggle")},Share.prototype["public"]=function(action){var button,index,instance,_i,_len,_ref,_results;_ref=document.querySelectorAll(this.element),_results=[];for(index=_i=0,_len=_ref.length;_i<_len;index=++_i)instance=_ref[index],button=instance.getElementsByClassName("social")[0],_results.push(this["event_"+action](button));return _results},Share.prototype.network_facebook=function(){return this.config.networks.facebook.load_sdk?window.FB?FB.ui({method:"feed",name:this.config.networks.facebook.title,link:this.config.networks.facebook.url,picture:this.config.networks.facebook.image,caption:this.config.networks.facebook.caption,description:this.config.networks.facebook.description}):console.error("The Facebook JS SDK hasn't loaded yet."):this.popup("https://www.facebook.com/sharer/sharer.php",{u:this.config.networks.facebook.url})},Share.prototype.network_twitter=function(){return this.popup("https://twitter.com/intent/tweet",{text:this.config.networks.twitter.title,url:this.config.networks.twitter.url})},Share.prototype.network_google_plus=function(){return this.popup("https://plus.google.com/share",{url:this.config.networks.google_plus.url})},Share.prototype.network_pinterest=function(){return this.popup("https://www.pinterest.com/pin/create/button",{url:this.config.networks.pinterest.url,media:this.config.networks.pinterest.image,description:this.config.networks.pinterest.description})},Share.prototype.network_linkedin=function(){return this.popup("https://www.linkedin.com/shareArticle",{url:this.config.networks.linkedin.url,title:this.config.networks.linkedin.title,summary:this.config.networks.linkedin.description})},Share.prototype.network_xing=function(){return this.popup("https://www.xing.com/spi/shares/new",{url:this.config.networks.xing.url,image:this.config.networks.xing.image,title:this.config.networks.xing.title,summary:this.config.networks.xing.description})},Share.prototype.network_email=function(){return this.popup("mailto:",{subject:this.config.networks.email.title,body:this.config.networks.email.url+"%0A%0A"+this.config.networks.email.description})},Share.prototype.inject_icons=function(){},Share.prototype.inject_fonts=function(){},Share.prototype.inject_stylesheet=function(url){var link;if(!this.el.head.querySelector('link[href="'+url+'"]'))return link=document.createElement("link"),link.setAttribute("rel","stylesheet"),link.setAttribute("href",url),this.el.head.appendChild(link)},Share.prototype.inject_css=function(instance){var css,meta,selector,style;selector="."+instance.getAttribute("class").split(" ").join(".");if(!this.el.head.querySelector("meta[name='sharer"+selector+"']"))return this.config.selector=selector,css=getStyles(this.config),style=document.createElement("style"),style.type="text/css",style.styleSheet?style.styleSheet.cssText=css:style.appendChild(document.createTextNode(css)),this.el.head.appendChild(style),delete this.config.selector,meta=document.createElement("meta"),meta.setAttribute("name","sharer"+selector),this.el.head.appendChild(meta)},Share.prototype.inject_html=function(instance){return instance.innerHTML=""+this.config.ui.button_text+" "},Share.prototype.inject_facebook_sdk=function(){var fb_root,script;if(!window.FB&&this.config.networks.facebook.app_id&&!this.el.body.querySelector("#fb-root"))return script=document.createElement("script"),script.text="window.fbAsyncInit=function(){FB.init({appId:'"+this.config.networks.facebook.app_id+"',status:true,xfbml:true})};(function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(e.getElementById(n)){return}r=e.createElement(t);r.id=n;r.src='"+this.config.protocol+"connect.facebook.net/en_US/all.js';i.parentNode.insertBefore(r,i)})(document,'script','facebook-jssdk')",fb_root=document.createElement("div"),fb_root.id="fb-root",this.el.body.appendChild(fb_root),this.el.body.appendChild(script)},Share.prototype.hook=function(type,network,instance){var fn,opts;fn=this.config.networks[network][type],typeof fn=="function"&&(opts=fn.call(this.config.networks[network],instance),opts!==void 0&&(opts=this.normalize_filter_config_updates(opts),this.extend(this.config.networks[network],opts,!0),this.normalize_network_configuration()))},Share.prototype.default_title=function(){var content;if(content=document.querySelector('meta[property="og:title"]')||document.querySelector('meta[name="twitter:title"]'))return encodeURIComponent(content.getAttribute("content"));if(content=document.querySelector("title"))return encodeURIComponent(content.innerText)},Share.prototype.default_image=function(){var content;if(content=document.querySelector('meta[property="og:image"]')||document.querySelector('meta[name="twitter:image"]'))return content.getAttribute("content")},Share.prototype.default_description=function(){var content;return(content=document.querySelector('meta[property="og:description"]')||document.querySelector('meta[name="twitter:description"]')||document.querySelector('meta[name="description"]'))?encodeURIComponent(content.getAttribute("content")):""},Share.prototype.set_global_configuration=function(){var display,network,option,options,_ref,_results;_ref=this.config.networks,_results=[];for(network in _ref){options=_ref[network];for(option in options)this.config.networks[network][option]==null&&(this.config.networks[network][option]=this.config[option]);this.config.networks[network].enabled?(display="block",this.config.enabled_networks+=1):display="none",_results.push(this.config.networks[network].display=display)}return _results},Share.prototype.normalize_network_configuration=function(){this.config.networks.facebook.app_id||(this.config.networks.facebook.load_sdk=!1),this.is_encoded(this.config.networks.twitter.description)||(this.config.networks.twitter.description=encodeURIComponent(this.config.networks.twitter.description));if(typeof this.config.networks.facebook.app_id=="number")return this.config.networks.facebook.app_id=this.config.networks.facebook.app_id.toString()},Share.prototype.normalize_filter_config_updates=function(opts){return this.config.networks.facebook.app_id!==opts.app_id&&(console.warn("You are unable to change the Facebook app_id after the button has been initialized. Please-in-out update your Facebook filters accordingly."),delete opts.app_id),this.config.networks.facebook.load_sdk!==opts.load_sdk&&(console.warn("You are unable to change the Facebook load_sdk option after the button has been initialized. Please-in-out update your Facebook filters accordingly."),delete opts.app_id),opts},Share}(ShareUtils),Share}),function(){var $,win;$=this.jQuery||window.jQuery,win=$(window),$.fn.stick_in_parent=function(opts){var doc,elm,enable_bottoming,fn,i,inner_scrolling,len,manual_spacer,offset_top,outer_width,parent_selector,recalc_every,sticky_class;opts==null&&(opts={}),sticky_class=opts.sticky_class,inner_scrolling=opts.inner_scrolling,recalc_every=opts.recalc_every,parent_selector=opts.parent,offset_top=opts.offset_top,manual_spacer=opts.spacer,enable_bottoming=opts.bottoming,offset_top==null&&(offset_top=0),parent_selector==null&&(parent_selector=void 0),inner_scrolling==null&&(inner_scrolling=!0),sticky_class==null&&(sticky_class="is_stuck"),doc=$(document),enable_bottoming==null&&(enable_bottoming=!0),outer_width=function(el){var _el,computed,w;return window.getComputedStyle?(_el=el[0],computed=window.getComputedStyle(el[0]),w=parseFloat(computed.getPropertyValue("width"))+parseFloat(computed.getPropertyValue("margin-left"))+parseFloat(computed.getPropertyValue("margin-right")),computed.getPropertyValue("box-sizing")!=="border-box"&&(w+=parseFloat(computed.getPropertyValue("border-left-width"))+parseFloat(computed.getPropertyValue("border-right-width"))+parseFloat(computed.getPropertyValue("padding-left"))+parseFloat(computed.getPropertyValue("padding-right"))),w):el.outerWidth(!0)},fn=function(elm,padding_bottom,parent_top,parent_height,top,height,el_float,detached){var bottomed,detach,fixed,last_pos,last_scroll_height,offset,parent,recalc,recalc_and_tick,recalc_counter,spacer,tick;if(elm.data("sticky_kit"))return;elm.data("sticky_kit",!0),last_scroll_height=doc.height(),parent=elm.parent(),parent_selector!=null&&(parent=parent.closest(parent_selector));if(!parent.length)throw"failed to find stick parent";fixed=!1,bottomed=!1,spacer=manual_spacer!=null?manual_spacer&&elm.closest(manual_spacer):$("
"),spacer&&spacer.css("position",elm.css("position")),recalc=function(){var border_top,padding_top,restore;if(detached)return;last_scroll_height=doc.height(),border_top=parseInt(parent.css("border-top-width"),10),padding_top=parseInt(parent.css("padding-top"),10),padding_bottom=parseInt(parent.css("padding-bottom"),10),parent_top=parent.offset().top+border_top+padding_top,parent_height=parent.height(),fixed&&(fixed=!1,bottomed=!1,manual_spacer==null&&(elm.insertAfter(spacer),spacer.detach()),elm.css({position:"",top:"",width:"",bottom:""}).removeClass(sticky_class),restore=!0),top=elm.offset().top-(parseInt(elm.css("margin-top"),10)||0)-offset_top,height=elm.outerHeight(!0),el_float=elm.css("float"),spacer&&spacer.css({width:outer_width(elm),height:height,display:elm.css("display"),"vertical-align":elm.css("vertical-align"),"float":el_float});if(restore)return tick()},recalc();if(height===parent_height)return;return last_pos=void 0,offset=offset_top,recalc_counter=recalc_every,tick=function(){var css,delta,recalced,scroll,will_bottom,win_height;if(detached)return;recalced=!1,recalc_counter!=null&&(recalc_counter-=1,recalc_counter<=0&&(recalc_counter=recalc_every,recalc(),recalced=!0)),!recalced&&doc.height()!==last_scroll_height&&(recalc(),recalced=!0),scroll=win.scrollTop(),last_pos!=null&&(delta=scroll-last_pos),last_pos=scroll,fixed?(enable_bottoming&&(will_bottom=scroll+height+offset>parent_height+parent_top,bottomed&&!will_bottom&&(bottomed=!1,elm.css({position:"fixed",bottom:"",top:offset}).trigger("sticky_kit:unbottom"))),scrollwin_height&&(bottomed||(offset-=delta,offset=Math.max(win_height-height,offset),offset=Math.min(offset_top,offset),fixed&&elm.css({top:offset+"px"}))))):scroll>top&&(fixed=!0,css={position:"fixed",top:offset},css.width=elm.css("box-sizing")==="border-box"?elm.outerWidth()+"px":elm.width()+"px",elm.css(css).addClass(sticky_class),manual_spacer==null&&(elm.after(spacer),(el_float==="left"||el_float==="right")&&spacer.append(elm)),elm.trigger("sticky_kit:stick"));if(fixed&&enable_bottoming){will_bottom==null&&(will_bottom=scroll+height+offset>parent_height+parent_top);if(!bottomed&&will_bottom)return bottomed=!0,parent.css("position")==="static"&&parent.css({position:"relative"}),elm.css({position:"absolute",bottom:padding_bottom,top:"auto"}).trigger("sticky_kit:bottom")}},recalc_and_tick=function(){return recalc(),tick()},detach=function(){detached=!0,win.off("touchmove",tick),win.off("scroll",tick),win.off("resize",recalc_and_tick),$(document.body).off("sticky_kit:recalc",recalc_and_tick),elm.off("sticky_kit:detach",detach),elm.removeData("sticky_kit"),elm.css({position:"",bottom:"",top:"",width:""}),parent.position("position","");if(fixed)return manual_spacer==null&&((el_float==="left"||el_float==="right")&&elm.insertAfter(spacer),spacer.remove()),elm.removeClass(sticky_class)},win.on("touchmove",tick),win.on("scroll",tick),win.on("resize",recalc_and_tick),$(document.body).on("sticky_kit:recalc",recalc_and_tick),elm.on("sticky_kit:detach",detach),setTimeout(tick,0)};for(i=0,len=this.length;i [data-tab-history], .panel-title.active [data-tab-history]").each(function(){var $activeTabElement=jQuery(this),selector=getTabSelector($activeTabElement);if(selector){var tabGroup=getTabGroup($activeTabElement);tabGroup&&(newState=createNewHistoryState(newState||history.state,tabGroup,selector))}}),newState&&history.replaceState(newState,"",null)}function createNewHistoryState(existingState,tabGroup,selector){var newState=jQuery.extend(!0,{},existingState,{bootstrapTabHistory:{}});return newState.bootstrapTabHistory[tabGroup]=selector,newState}function getTabGroup($tab){return parseTruthyAttributeValue($tab.data("tab-history"))}function getTabSelector($tab){return $tab.data("target")||$tab.attr("href")}function onShownTab(shownEvt){if(!showingTabsBasedOnState){var $activatedTab=jQuery(shownEvt.target);$activatedTab.hasClass("panel-collapse")&&($activatedTab=$activatedTab.closest(".panel").find("a"));var selector=getTabSelector($activatedTab);if(selector){var tabGroup=getTabGroup($activatedTab);if(tabGroup){var historyChanger=$activatedTab.data("tab-history-changer")||BootstrapTabHistory.options.defaultChanger,newState=createNewHistoryState(history.state,tabGroup,selector),updateURL=function($activatedTab){if(selector[0]==="#"){var elementUpdateURLOption=parseTruthyAttributeValue($activatedTab.data("tab-history-update-url"));return elementUpdateURLOption===undefined?BootstrapTabHistory.options.defaultUpdateURL:elementUpdateURLOption}return!1}($activatedTab);switch(historyChanger){case"push":history.pushState(newState,"",updateURL?selector:null);break;case"replace":history.replaceState(newState,"",updateURL?selector:null);break;default:throw new Error("Unknown tab-history-changer: "+historyChanger)}}}}}function onPopState(){var bootstrapTabHistory=history.state&&history.state.bootstrapTabHistory;bootstrapTabHistory&&showTabsBasedOnState(bootstrapTabHistory)}function parseTruthyAttributeValue(value){return value?value:value===""?!0:value}function showTabsBasedOnAnchor(){if(BootstrapTabHistory.options.showTabsBasedOnAnchor){var anchor=window.location&&window.location.hash;if(anchor){var $tabElement=showTabForSelector(anchor);if($tabElement&&window.addEventListener&&window.removeEventListener){var anchorYOffset=function($tabElement){var elementSetting=$tabElement.data("tab-history-anchor-y-offset");return elementSetting===undefined?BootstrapTabHistory.options.defaultAnchorYOffset:elementSetting}($tabElement);if(anchorYOffset||anchorYOffset===0){var scrollListener=function resetAnchorScroll(){window.removeEventListener("scroll",scrollListener),window.scrollTo(0,anchorYOffset)};window.addEventListener("scroll",scrollListener)}}}}}function showTabForSelector(selector){var $tabElement=function(selector){var $ret=null;return jQuery('[data-toggle="tab"], [data-toggle="pill"], [data-toggle="collapse"]').each(function(){var $potentialTab=jQuery(this);return $potentialTab.attr("href")!==selector&&$potentialTab.data("target")!==selector||!getTabGroup($potentialTab)?null:($ret=$potentialTab,!1)}),$ret}(selector);return $tabElement&&$tabElement.trigger("click"),$tabElement}function showTabsBasedOnState(bootstrapTabHistory){showingTabsBasedOnState=!0;try{for(var k in bootstrapTabHistory)bootstrapTabHistory.hasOwnProperty(k)&&showTabForSelector(bootstrapTabHistory[k])}finally{showingTabsBasedOnState=!1}}jQuery(function(){if(history&&history.pushState&&history.replaceState){var bootstrapTabHistory=history.state&&history.state.bootstrapTabHistory;bootstrapTabHistory?showTabsBasedOnState(bootstrapTabHistory):showTabsBasedOnAnchor(),backfillHistoryState(),jQuery(document).on("shown.bs.tab show.bs.collapse",onShownTab),jQuery(window).on("popstate",onPopState)}else showTabsBasedOnAnchor()});var showingTabsBasedOnState=!1}(),function($){function hasScrollBar(){return $("body").height()>$(window).height()}var JustifiedGallery=function($gallery,settings){this.settings=settings,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=settings.border>=0?settings.border:settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:$('
'),intervalId:null},this.checkWidthIntervalId=null,this.galleryWidth=$gallery.width(),this.$gallery=$gallery};JustifiedGallery.prototype.getSuffix=function(width,height){var longestSide,i;longestSide=width>height?width:height;for(i=0;i img, > a > img").stop().fadeTo(this.settings.imagesAnimationDuration,1,callback))},JustifiedGallery.prototype.extractImgSrcFromImage=function($image){var imageSrc=typeof $image.data("safe-src")!="undefined"?$image.data("safe-src"):$image.attr("src");return $image.data("jg.originalSrc",imageSrc),imageSrc},JustifiedGallery.prototype.imgFromEntry=function($entry){var $img=$entry.find("> img");return $img.length===0&&($img=$entry.find("> a > img")),$img.length===0&&($img=$entry.find(".t-entry-visual-cont img")),$img.length===0?null:$img},JustifiedGallery.prototype.captionFromEntry=function($entry){var $caption=$entry.find("> .caption");return $caption.length===0?null:$caption},JustifiedGallery.prototype.displayEntry=function($entry,x,y,imgWidth,imgHeight,rowHeight){$entry.width(imgWidth),$entry.height(Math.floor(rowHeight)),$entry.css("top",Math.floor(y)),$entry.css("left",x);var $image=this.imgFromEntry($entry);if($image!==null){$image.css("width",imgWidth),$image.css("height",imgHeight),$image.css("margin-left",-imgWidth/2),$image.css("margin-top",-imgHeight/2);var imageSrc=$image.attr("src"),newImageSrc=this.newSrc(imageSrc,imgWidth,imgHeight,$image[0]);$image.one("error",function(){$image.attr("src",$image.data("jg.originalSrc"))});var loadNewImage=function(){imageSrc!==newImageSrc&&$image.attr("src",newImageSrc)};$entry.data("jg.loaded")==="skipped"?this.onImageEvent(imageSrc,$.proxy(function(){this.showImg($entry,loadNewImage),$entry.data("jg.loaded",!0)},this)):this.showImg($entry,loadNewImage)}else this.showImg($entry);this.displayEntryCaption($entry)},JustifiedGallery.prototype.displayEntryCaption=function($entry){var $image=this.imgFromEntry($entry);if($image!==null&&this.settings.captions){var $imgCaption=this.captionFromEntry($entry);if($imgCaption===null){var caption=$image.attr("alt");this.isValidCaption(caption)||(caption=$entry.attr("title")),this.isValidCaption(caption)&&($imgCaption=$(''+caption+"
"),$entry.append($imgCaption),$entry.data("jg.createdCaption",!0))}$imgCaption!==null&&(this.settings.cssAnimation||$imgCaption.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers($entry))}else this.removeCaptionEventsHandlers($entry)},JustifiedGallery.prototype.isValidCaption=function(caption){return typeof caption!="undefined"&&caption.length>0},JustifiedGallery.prototype.onEntryMouseEnterForCaption=function(eventObject){var $caption=this.captionFromEntry($(eventObject.currentTarget));this.settings.cssAnimation?$caption.addClass("caption-visible").removeClass("caption-hidden"):$caption.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},JustifiedGallery.prototype.onEntryMouseLeaveForCaption=function(eventObject){var $caption=this.captionFromEntry($(eventObject.currentTarget));this.settings.cssAnimation?$caption.removeClass("caption-visible").removeClass("caption-hidden"):$caption.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},JustifiedGallery.prototype.addCaptionEventsHandlers=function($entry){var captionMouseEvents=$entry.data("jg.captionMouseEvents");typeof captionMouseEvents=="undefined"&&(captionMouseEvents={mouseenter:$.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:$.proxy(this.onEntryMouseLeaveForCaption,this)},$entry.on("mouseenter",undefined,undefined,captionMouseEvents.mouseenter),$entry.on("mouseleave",undefined,undefined,captionMouseEvents.mouseleave),$entry.data("jg.captionMouseEvents",captionMouseEvents))},JustifiedGallery.prototype.removeCaptionEventsHandlers=function($entry){var captionMouseEvents=$entry.data("jg.captionMouseEvents");typeof captionMouseEvents!="undefined"&&($entry.off("mouseenter",undefined,captionMouseEvents.mouseenter),$entry.off("mouseleave",undefined,captionMouseEvents.mouseleave),$entry.removeData("jg.captionMouseEvents"))},JustifiedGallery.prototype.prepareBuildingRow=function(isLastRow){var i,$entry,imgAspectRatio,newImgW,newImgH,justify=!0,minHeight=0,availableWidth=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,rowHeight=Math.floor(availableWidth/this.buildingRow.aspectRatio),defaultRowHeight=this.settings.rowHeight,justifiable=this.buildingRow.width/availableWidth>this.settings.justifyThreshold;if(isLastRow&&this.settings.lastRow==="hide"&&!justifiable){for(i=0;i img, > a > img").fadeTo(0,0));return-1}isLastRow&&!justifiable&&this.settings.lastRow!=="justify"&&this.settings.lastRow!=="hide"&&(justify=!1,this.rows>0&&(defaultRowHeight=(this.offY-this.border-this.settings.margins*this.rows)/this.rows,justify=defaultRowHeight*this.buildingRow.aspectRatio/availableWidth>this.settings.justifyThreshold));for(i=0;inewImgH)minHeight=newImgH}return this.buildingRow.height=minHeight,justify},JustifiedGallery.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},JustifiedGallery.prototype.flushRow=function(isLastRow){var settings=this.settings,$entry,buildingRowRes,offX=this.border,i;buildingRowRes=this.prepareBuildingRow(isLastRow);if(isLastRow&&settings.lastRow==="hide"&&buildingRowRes===-1){this.clearBuildingRow();return}this.maxRowHeight&&(this.maxRowHeight.isPercentage&&this.maxRowHeight.value*settings.rowHeight=settings.rowHeight&&this.maxRowHeight.valuethis.settings.refreshSensitivity&&(this.galleryWidth=galleryWidth,this.rewind(),this.startImgAnalyzer(!0)):(scrollBarOn=hasScrollBar(),this.galleryWidth=galleryWidth)},this),this.settings.refreshTime)},JustifiedGallery.prototype.isSpinnerActive=function(){return this.spinner.intervalId!==null},JustifiedGallery.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},JustifiedGallery.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.$gallery.height(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},JustifiedGallery.prototype.startLoadingSpinnerAnimation=function(){var spinnerContext=this.spinner,$spinnerPoints=spinnerContext.$el.find("span");clearInterval(spinnerContext.intervalId),this.$gallery.append(spinnerContext.$el),this.$gallery.height(this.offY+this.buildingRow.height+this.getSpinnerHeight()),spinnerContext.intervalId=setInterval(function(){spinnerContext.phase<$spinnerPoints.length?$spinnerPoints.eq(spinnerContext.phase).fadeTo(spinnerContext.timeSlot,1):$spinnerPoints.eq(spinnerContext.phase-$spinnerPoints.length).fadeTo(spinnerContext.timeSlot,0),spinnerContext.phase=(spinnerContext.phase+1)%($spinnerPoints.length*2)},spinnerContext.timeSlot)},JustifiedGallery.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},JustifiedGallery.prototype.updateEntries=function(norewind){var newEntries;return norewind&&this.lastFetchedEntry!=null?newEntries=$(this.lastFetchedEntry).nextAll(this.settings.selector).toArray():(this.entries=[],newEntries=this.$gallery.children(this.settings.selector).toArray()),newEntries.length>0&&($.isFunction(this.settings.sort)?newEntries=this.sortArray(newEntries):this.settings.randomize&&(newEntries=this.shuffleArray(newEntries)),this.lastFetchedEntry=newEntries[newEntries.length-1],this.settings.filter?newEntries=this.filterArray(newEntries):this.resetFilters(newEntries)),this.entries=this.entries.concat(newEntries),!0},JustifiedGallery.prototype.insertToGallery=function(entries){var that=this;$.each(entries,function(){$(this).appendTo(that.$gallery)})},JustifiedGallery.prototype.shuffleArray=function(a){var i,j,temp;for(i=a.length-1;i>0;i--)j=Math.floor(Math.random()*(i+1)),temp=a[i],a[i]=a[j],a[j]=temp;return this.insertToGallery(a),a},JustifiedGallery.prototype.sortArray=function(a){return a.sort(this.settings.sort),this.insertToGallery(a),a},JustifiedGallery.prototype.resetFilters=function(a){for(var i=0;i=this.yield.every){this.startImgAnalyzer(isForResize);return}}this.buildingRow.entriesBuff.push($entry),this.buildingRow.aspectRatio+=imgAspectRatio,this.buildingRow.width+=imgAspectRatio*this.settings.rowHeight,this.lastAnalyzedIndex=i}else if($entry.data("jg.loaded")!=="error")return}this.buildingRow.entriesBuff.length>0&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.$gallery.trigger(isForResize?"jg.resize":"jg.complete"),this.$gallery.height(this.galleryHeightToSet)},JustifiedGallery.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,this.imgAnalyzerTimeout!==null&&clearTimeout(this.imgAnalyzerTimeout)},JustifiedGallery.prototype.startImgAnalyzer=function(isForResize){var that=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){that.analyzeImages(isForResize)},.001)},JustifiedGallery.prototype.onImageEvent=function(imageSrc,onLoad,onError){if(!onLoad&&!onError)return;var memImage=new Image,$memImage=$(memImage);onLoad&&$memImage.one("load",function(){$memImage.off("load error"),onLoad(memImage)}),onError&&$memImage.one("error",function(){$memImage.off("load error"),onError(memImage)}),memImage.src=imageSrc},JustifiedGallery.prototype.init=function(){var imagesToLoad=!1,skippedImages=!1,that=this;$.each(this.entries,function(index,entry){var $entry=$(entry),$image=that.imgFromEntry($entry);$entry.addClass("jg-entry");if($entry.data("jg.loaded")!==!0&&$entry.data("jg.loaded")!=="skipped"){that.settings.rel!==null&&$entry.attr("rel",that.settings.rel),that.settings.target!==null&&$entry.attr("target",that.settings.target);if($image!==null){var imageSrc=that.extractImgSrcFromImage($image);$image.attr("src",imageSrc);if(that.settings.waitThumbnailsLoad===!1){var width=parseFloat($image.attr("width")),height=parseFloat($image.attr("height"));if(!isNaN(width)&&!isNaN(height))return $entry.data("jg.width",width),$entry.data("jg.height",height),$entry.data("jg.loaded","skipped"),skippedImages=!0,that.startImgAnalyzer(!1),!0}$entry.data("jg.loaded",!1),imagesToLoad=!0,that.isSpinnerActive()||that.startLoadingSpinnerAnimation(),that.onImageEvent(imageSrc,function(loadImg){$entry.data("jg.width",loadImg.width),$entry.data("jg.height",loadImg.height),$entry.data("jg.loaded",!0),that.startImgAnalyzer(!1)},function(){$entry.data("jg.loaded","error"),that.startImgAnalyzer(!1)})}else $entry.data("jg.loaded",!0),$entry.data("jg.width",$entry.width()|parseFloat($entry.css("width"))|1),$entry.data("jg.height",$entry.height()|parseFloat($entry.css("height"))|1)}}),!imagesToLoad&&!skippedImages&&this.startImgAnalyzer(!1),this.checkWidth()},JustifiedGallery.prototype.checkOrConvertNumber=function(settingContainer,settingName){$.type(settingContainer[settingName])==="string"&&(settingContainer[settingName]=parseFloat(settingContainer[settingName]));if($.type(settingContainer[settingName])!=="number")throw settingName+" must be a number";if(isNaN(settingContainer[settingName]))throw"invalid number for "+settingName},JustifiedGallery.prototype.checkSizeRangesSuffixes=function(){if($.type(this.settings.sizeRangeSuffixes)!=="object")throw"sizeRangeSuffixes must be defined and must be an object";var suffixRanges=[];for(var rangeIdx in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(rangeIdx)&&suffixRanges.push(rangeIdx);var newSizeRngSuffixes={0:""};for(var i=0;i1)throw"justifyThreshold must be in the interval [0,1]";if($.type(this.settings.cssAnimation)!=="boolean")throw"cssAnimation must be a boolean";if($.type(this.settings.captions)!=="boolean")throw"captions must be a boolean";this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity");if(this.settings.captionSettings.visibleOpacity<0||this.settings.captionSettings.visibleOpacity>1)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity");if(this.settings.captionSettings.nonVisibleOpacity<0||this.settings.captionSettings.nonVisibleOpacity>1)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity");if($.type(this.settings.randomize)!=="boolean")throw"randomize must be a boolean";if($.type(this.settings.selector)!=="string")throw"selector must be a string";if(this.settings.sort!==!1&&!$.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(this.settings.filter!==!1&&!$.isFunction(this.settings.filter)&&$.type(this.settings.filter)!=="string")throw"filter must be false, a string or a filter function"},JustifiedGallery.prototype.retrieveSuffixRanges=function(){var suffixRanges=[];for(var rangeIdx in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(rangeIdx)&&suffixRanges.push(parseInt(rangeIdx,10));return suffixRanges.sort(function(a,b){return a>b?1:a=0?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},$.fn.justifiedGallery=function(arg){return this.each(function(index,gallery){var $gallery=$(gallery);$gallery.addClass("justified-gallery");var controller=$gallery.data("jg.controller");if(typeof controller=="undefined"){if(typeof arg!="undefined"&&arg!==null&&$.type(arg)!=="object"){if(arg==="destroy")return;throw"The argument must be an object"}controller=new JustifiedGallery($gallery,$.extend({},$.fn.justifiedGallery.defaults,arg)),$gallery.data("jg.controller",controller)}else if(arg!=="norewind"){if(arg==="destroy"){controller.destroy();return}controller.updateSettings(arg),controller.rewind()}if(!controller.updateEntries(arg==="norewind"))return;controller.init()})},$.fn.justifiedGallery.defaults={sizeRangeSuffixes:{},thumbnailPath:undefined,rowHeight:120,maxRowHeight:!1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,sort:!1,filter:!1,selector:"a, div:not(.spinner)"}}(jQuery),function(window,document,Math){function IScroll(el,options){this.wrapper=typeof el=="string"?document.querySelector(el):el,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!utils.hasPointer,disableTouch:utils.hasPointer||!utils.hasTouch,disableMouse:utils.hasPointer||utils.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|LABEL)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:typeof window.onmousedown=="undefined"};for(var i in options)this.options[i]=options[i];this.translateZ=this.options.HWCompositing&&utils.hasPerspective?" translateZ(0)":"",this.options.useTransition=utils.hasTransition&&this.options.useTransition,this.options.useTransform=utils.hasTransform&&this.options.useTransform,this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY=this.options.eventPassthrough=="vertical"?!1:this.options.scrollY,this.options.scrollX=this.options.eventPassthrough=="horizontal"?!1:this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing=typeof this.options.bounceEasing=="string"?utils.ease[this.options.bounceEasing]||utils.ease.circular:this.options.bounceEasing,this.options.resizePolling=this.options.resizePolling===undefined?60:this.options.resizePolling,this.options.tap===!0&&(this.options.tap="tap"),!this.options.useTransition&&!this.options.useTransform&&(/relative|absolute/i.test(this.scrollerStyle.position)||(this.scrollerStyle.position="relative")),this.options.shrinkScrollbars=="scale"&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}function createDefaultScrollbar(direction,interactive,type){var scrollbar=document.createElement("div"),indicator=document.createElement("div");return type===!0&&(scrollbar.style.cssText="position:absolute;z-index:9999",indicator.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),indicator.className="iScrollIndicator",direction=="h"?(type===!0&&(scrollbar.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",indicator.style.height="100%"),scrollbar.className="iScrollHorizontalScrollbar"):(type===!0&&(scrollbar.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",indicator.style.width="100%"),scrollbar.className="iScrollVerticalScrollbar"),scrollbar.style.cssText+=";overflow:hidden",interactive||(scrollbar.style.pointerEvents="none"),scrollbar.appendChild(indicator),scrollbar}function Indicator(scroller,options){this.wrapper=typeof options.el=="string"?document.querySelector(options.el):options.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=scroller,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0};for(var i in options)this.options[i]=options[i];this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(utils.addEvent(this.indicator,"touchstart",this),utils.addEvent(window,"touchend",this)),this.options.disablePointer||(utils.addEvent(this.indicator,utils.prefixPointerEvent("pointerdown"),this),utils.addEvent(window,utils.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(utils.addEvent(this.indicator,"mousedown",this),utils.addEvent(window,"mouseup",this)));if(this.options.fade){this.wrapperStyle[utils.style.transform]=this.scroller.translateZ;var durationProp=utils.style.transitionDuration;if(!durationProp)return;this.wrapperStyle[durationProp]=utils.isBadAndroid?"0.0001ms":"0ms";var self=this;utils.isBadAndroid&&rAF(function(){self.wrapperStyle[durationProp]==="0.0001ms"&&(self.wrapperStyle[durationProp]="0s")}),this.wrapperStyle.opacity="0"}}var rAF=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1e3/60)},utils=function(){function _prefixStyle(style){return _vendor===!1?!1:_vendor===""?style:_vendor+style.charAt(0).toUpperCase()+style.substr(1)}var me={},_elementStyle=document.createElement("div").style,_vendor=function(){var vendors=["t","webkitT","MozT","msT","OT"],transform,i=0,l=vendors.length;for(;i0&&(destination=wrapperSize?wrapperSize/2.5*(speed/8):0,distance=Math.abs(current)+destination,duration=distance/speed),{destination:Math.round(destination),duration:duration}};var _transform=_prefixStyle("transform");return me.extend(me,{hasTransform:_transform!==!1,hasPerspective:_prefixStyle("perspective")in _elementStyle,hasTouch:"ontouchstart"in window,hasPointer:!!window.PointerEvent||!!window.MSPointerEvent,hasTransition:_prefixStyle("transition")in _elementStyle}),me.isBadAndroid=function(){var appVersion=window.navigator.appVersion;if(/Android/.test(appVersion)&&!/Chrome\/\d/.test(appVersion)){var safariVersion=appVersion.match(/Safari\/(\d+.\d)/);return safariVersion&&typeof safariVersion=="object"&&safariVersion.length>=2?parseFloat(safariVersion[1])<535.19:!0}return!1}(),me.extend(me.style={},{transform:_transform,transitionTimingFunction:_prefixStyle("transitionTimingFunction"),transitionDuration:_prefixStyle("transitionDuration"),transitionDelay:_prefixStyle("transitionDelay"),transformOrigin:_prefixStyle("transformOrigin")}),me.hasClass=function(e,c){var re=new RegExp("(^|\\s)"+c+"(\\s|$)");return re.test(e.className)},me.addClass=function(e,c){if(me.hasClass(e,c))return;var newclass=e.className.split(" ");newclass.push(c),e.className=newclass.join(" ")},me.removeClass=function(e,c){if(!me.hasClass(e,c))return;var re=new RegExp("(^|\\s)"+c+"(\\s|$)","g");e.className=e.className.replace(re," ")},me.offset=function(el){var left=-el.offsetLeft,top=-el.offsetTop;while(el=el.offsetParent)left-=el.offsetLeft,top-=el.offsetTop;return{left:left,top:top}},me.preventDefaultException=function(el,exceptions){for(var i in exceptions)if(exceptions[i].test(el[i]))return!0;return!1},me.extend(me.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),me.extend(me.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(k){return k*(2-k)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(k){return Math.sqrt(1- --k*k)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(k){var b=4;return(k-=1)*k*((b+1)*k+b)+1}},bounce:{style:"",fn:function(k){return(k/=1)<1/2.75?7.5625*k*k:k<2/2.75?7.5625*(k-=1.5/2.75)*k+.75:k<2.5/2.75?7.5625*(k-=2.25/2.75)*k+.9375:7.5625*(k-=2.625/2.75)*k+.984375}},elastic:{style:"",fn:function(k){var f=.22,e=.4;return k===0?0:k==1?1:e*Math.pow(2,-10*k)*Math.sin((k-f/4)*2*Math.PI/f)+1}}}),me.tap=function(e,eventName){var ev=document.createEvent("Event");ev.initEvent(eventName,!0,!0),ev.pageX=e.pageX,ev.pageY=e.pageY,e.target.dispatchEvent(ev)},me.click=function(e){var target=e.target,ev;/(SELECT|INPUT|TEXTAREA)/i.test(target.tagName)||(ev=document.createEvent(window.MouseEvent?"MouseEvents":"Event"),ev.initEvent("click",!0,!0),ev.view=e.view||window,ev.detail=1,ev.screenX=target.screenX||0,ev.screenY=target.screenY||0,ev.clientX=target.clientX||0,ev.clientY=target.clientY||0,ev.ctrlKey=!!e.ctrlKey,ev.altKey=!!e.altKey,ev.shiftKey=!!e.shiftKey,ev.metaKey=!!e.metaKey,ev.button=0,ev.relatedTarget=null,ev._constructed=!0,target.dispatchEvent(ev))},me}();IScroll.prototype={version:"5.2.0",_init:function(){this._initEvents(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),clearTimeout(this.resizeTimeout),this.resizeTimeout=null,this._execEvent("destroy")},_transitionEnd:function(e){if(e.target!=this.scroller||!this.isInTransition)return;this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd"))},_start:function(e){if(utils.eventType[e.type]!=1){var button;e.which?button=e.button:button=e.button<2?0:e.button==4?1:2;if(button!==0)return}if(!this.enabled||this.initiated&&utils.eventType[e.type]!==this.initiated)return;this.options.preventDefault&&!utils.isBadAndroid&&!utils.preventDefaultException(e.target,this.options.preventDefaultException)&&e.preventDefault();var point=e.touches?e.touches[0]:e,pos;this.initiated=utils.eventType[e.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=utils.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,pos=this.getComputedPosition(),this._translate(Math.round(pos.x),Math.round(pos.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=point.pageX,this.pointY=point.pageY,this._execEvent("beforeScrollStart")},_move:function(e){if(!this.enabled||utils.eventType[e.type]!==this.initiated)return;this.options.preventDefault&&e.preventDefault();var point=e.touches?e.touches[0]:e,deltaX=point.pageX-this.pointX,deltaY=point.pageY-this.pointY,timestamp=utils.getTime(),newX,newY,absDistX,absDistY;this.pointX=point.pageX,this.pointY=point.pageY,this.distX+=deltaX,this.distY+=deltaY,absDistX=Math.abs(this.distX),absDistY=Math.abs(this.distY);if(timestamp-this.endTime>300&&absDistX<10&&absDistY<10)return;!this.directionLocked&&!this.options.freeScroll&&(absDistX>absDistY+this.options.directionLockThreshold?this.directionLocked="h":absDistY>=absDistX+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n");if(this.directionLocked=="h"){if(this.options.eventPassthrough=="vertical")e.preventDefault();else if(this.options.eventPassthrough=="horizontal"){this.initiated=!1;return}deltaY=0}else if(this.directionLocked=="v"){if(this.options.eventPassthrough=="horizontal")e.preventDefault();else if(this.options.eventPassthrough=="vertical"){this.initiated=!1;return}deltaX=0}deltaX=this.hasHorizontalScroll?deltaX:0,deltaY=this.hasVerticalScroll?deltaY:0,newX=this.x+deltaX,newY=this.y+deltaY;if(newX>0||newX0?0:this.maxScrollX;if(newY>0||newY0?0:this.maxScrollY;this.directionX=deltaX>0?-1:deltaX<0?1:0,this.directionY=deltaY>0?-1:deltaY<0?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(newX,newY),timestamp-this.startTime>300&&(this.startTime=timestamp,this.startX=this.x,this.startY=this.y)},_end:function(e){if(!this.enabled||utils.eventType[e.type]!==this.initiated)return;this.options.preventDefault&&!utils.preventDefaultException(e.target,this.options.preventDefaultException)&&e.preventDefault();var point=e.changedTouches?e.changedTouches[0]:e,momentumX,momentumY,duration=utils.getTime()-this.startTime,newX=Math.round(this.x),newY=Math.round(this.y),distanceX=Math.abs(newX-this.startX),distanceY=Math.abs(newY-this.startY),time=0,easing="";this.isInTransition=0,this.initiated=0,this.endTime=utils.getTime();if(this.resetPosition(this.options.bounceTime))return;this.scrollTo(newX,newY);if(!this.moved){this.options.tap&&utils.tap(e,this.options.tap),this.options.click&&utils.click(e),this._execEvent("scrollCancel");return}if(this._events.flick&&duration<200&&distanceX<100&&distanceY<100){this._execEvent("flick");return}this.options.momentum&&duration<300&&(momentumX=this.hasHorizontalScroll?utils.momentum(this.x,this.startX,duration,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:newX,duration:0},momentumY=this.hasVerticalScroll?utils.momentum(this.y,this.startY,duration,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:newY,duration:0},newX=momentumX.destination,newY=momentumY.destination,time=Math.max(momentumX.duration,momentumY.duration),this.isInTransition=1);if(this.options.snap){var snap=this._nearestSnap(newX,newY);this.currentPage=snap,time=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(newX-snap.x),1e3),Math.min(Math.abs(newY-snap.y),1e3)),300),newX=snap.x,newY=snap.y,this.directionX=0,this.directionY=0,easing=this.options.bounceEasing}if(newX!=this.x||newY!=this.y){if(newX>0||newX0||newY0?x=0:this.x0?y=0:this.y-1&&this._events[type].splice(index,1)},_execEvent:function(type){if(!this._events[type])return;var i=0,l=this._events[type].length;if(!l)return;for(;i0;var transitionType=this.options.useTransition&&easing.style;!time||transitionType?(transitionType&&(this._transitionTimingFunction(easing.style),this._transitionTime(time)),this._translate(x,y)):this._animate(x,y,time,easing.fn)},scrollToElement:function(el,time,offsetX,offsetY,easing){el=el.nodeType?el:this.scroller.querySelector(el);if(!el)return;var pos=utils.offset(el);pos.left-=this.wrapperOffset.left,pos.top-=this.wrapperOffset.top,offsetX===!0&&(offsetX=Math.round(el.offsetWidth/2-this.wrapper.offsetWidth/2)),offsetY===!0&&(offsetY=Math.round(el.offsetHeight/2-this.wrapper.offsetHeight/2)),pos.left-=offsetX||0,pos.top-=offsetY||0,pos.left=pos.left>0?0:pos.left0?0:pos.top-1)return!1;this.options.useTransform?this.scrollerStyle[utils.style.transform]="translate("+x+"px,"+y+"px)"+this.translateZ:(x=Math.round(x),y=Math.round(y),this.scrollerStyle.left=x+"px",this.scrollerStyle.top=y+"px"),this.x=x,this.y=y;if(this.indicators)for(var i=this.indicators.length;i--;)this.indicators[i].updatePosition();var uncodevent=new CustomEvent("fp-slide-scroll");window.dispatchEvent(uncodevent)},_initEvents:function(remove){var eventType=remove?utils.removeEvent:utils.addEvent,target=this.options.bindToWrapper?this.wrapper:window;eventType(window,"orientationchange",this),eventType(window,"resize",this),this.options.click&&eventType(this.wrapper,"click",this,!0),this.options.disableMouse||(eventType(this.wrapper,"mousedown",this),eventType(target,"mousemove",this),eventType(target,"mousecancel",this),eventType(target,"mouseup",this)),utils.hasPointer&&!this.options.disablePointer&&(eventType(this.wrapper,utils.prefixPointerEvent("pointerdown"),this),eventType(target,utils.prefixPointerEvent("pointermove"),this),eventType(target,utils.prefixPointerEvent("pointercancel"),this),eventType(target,utils.prefixPointerEvent("pointerup"),this)),utils.hasTouch&&!this.options.disableTouch&&(eventType(this.wrapper,"touchstart",this),eventType(target,"touchmove",this),eventType(target,"touchcancel",this),eventType(target,"touchend",this)),eventType(this.scroller,"transitionend",this),eventType(this.scroller,"webkitTransitionEnd",this),eventType(this.scroller,"oTransitionEnd",this),eventType(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var matrix=window.getComputedStyle(this.scroller,null),x,y;return this.options.useTransform?(matrix=matrix[utils.style.transform].split(")")[0].split(", "),x=+(matrix[12]||matrix[4]),y=+(matrix[13]||matrix[5])):(x=+matrix.left.replace(/[^-\d.]/g,""),y=+matrix.top.replace(/[^-\d.]/g,"")),{x:x,y:y}},_initIndicators:function(){function _indicatorsMap(fn){if(that.indicators)for(var i=that.indicators.length;i--;)fn.call(that.indicators[i])}var interactive=this.options.interactiveScrollbars,customStyle=typeof this.options.scrollbars!="string",indicators=[],indicator,that=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(indicator={el:createDefaultScrollbar("v",interactive,this.options.scrollbars),interactive:interactive,defaultScrollbars:!0,customStyle:customStyle,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(indicator.el),indicators.push(indicator)),this.options.scrollX&&(indicator={el:createDefaultScrollbar("h",interactive,this.options.scrollbars),interactive:interactive,defaultScrollbars:!0,customStyle:customStyle,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(indicator.el),indicators.push(indicator))),this.options.indicators&&(indicators=indicators.concat(this.options.indicators));for(var i=indicators.length;i--;)this.indicators.push(new Indicator(this,indicators[i]));this.options.fadeScrollbars&&(this.on("scrollEnd",function(){_indicatorsMap(function(){this.fade()})}),this.on("scrollCancel",function(){_indicatorsMap(function(){this.fade()})}),this.on("scrollStart",function(){_indicatorsMap(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){_indicatorsMap(function(){this.fade(1,!0)})})),this.on("refresh",function(){_indicatorsMap(function(){this.refresh()})}),this.on("destroy",function(){_indicatorsMap(function(){this.destroy()}),delete this.indicators})},_initWheel:function(){utils.addEvent(this.wrapper,"wheel",this),utils.addEvent(this.wrapper,"mousewheel",this),utils.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){clearTimeout(this.wheelTimeout),this.wheelTimeout=null,utils.removeEvent(this.wrapper,"wheel",this),utils.removeEvent(this.wrapper,"mousewheel",this),utils.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(e){if(!this.enabled)return;var wheelDeltaX,wheelDeltaY,newX,newY,that=this;this.wheelTimeout===undefined&&that._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){that.options.snap||that._execEvent("scrollEnd"),that.wheelTimeout=undefined},400);if("deltaX"in e)e.deltaMode===1?(wheelDeltaX=-e.deltaX*this.options.mouseWheelSpeed,wheelDeltaY=-e.deltaY*this.options.mouseWheelSpeed):(wheelDeltaX=-e.deltaX,wheelDeltaY=-e.deltaY);else if("wheelDeltaX"in e)wheelDeltaX=e.wheelDeltaX/120*this.options.mouseWheelSpeed,wheelDeltaY=e.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in e)wheelDeltaX=wheelDeltaY=e.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in e))return;wheelDeltaX=wheelDeltaY=-e.detail/3*this.options.mouseWheelSpeed}wheelDeltaX*=this.options.invertWheelDirection,wheelDeltaY*=this.options.invertWheelDirection,this.hasVerticalScroll||(wheelDeltaX=wheelDeltaY,wheelDeltaY=0);if(this.options.snap){newX=this.currentPage.pageX,newY=this.currentPage.pageY,wheelDeltaX>0?newX--:wheelDeltaX<0&&newX++,wheelDeltaY>0?newY--:wheelDeltaY<0&&newY++,this.goToPage(newX,newY);return}newX=this.x+Math.round(this.hasHorizontalScroll?wheelDeltaX:0),newY=this.y+Math.round(this.hasVerticalScroll?wheelDeltaY:0),this.directionX=wheelDeltaX>0?-1:wheelDeltaX<0?1:0,this.directionY=wheelDeltaY>0?-1:wheelDeltaY<0?1:0,newX>0?newX=0:newX0?newY=0:newY-this.scrollerWidth){this.pages[i]=[],l=0,y=0;while(y>-this.scrollerHeight)this.pages[i][l]={x:Math.max(x,this.maxScrollX),y:Math.max(y,this.maxScrollY),width:stepX,height:stepY,cx:x-cx,cy:y-cy},y-=stepY,l++;x-=stepX,i++}}else{el=this.options.snap,l=el.length,n=-1;for(;ithis.maxScrollX&&m++}}this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),this.options.snapThreshold%1===0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}),this.on("flick",function(){var time=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(this.x-this.startX),1e3),Math.min(Math.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,time)})},_nearestSnap:function(x,y){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0,l=this.pages.length,m=0;if(Math.abs(x-this.absStartX)0?x=0:x0?y=0:y=this.pages[i][0].cx){x=this.pages[i][0].x;break}l=this.pages[i].length;for(;m=this.pages[0][m].cy){y=this.pages[0][m].y;break}return i==this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),x=this.pages[i][0].x),m==this.currentPage.pageY&&(m+=this.directionY,m<0?m=0:m>=this.pages[0].length&&(m=this.pages[0].length-1),y=this.pages[0][m].y),{x:x,y:y,pageX:i,pageY:m}},goToPage:function(x,y,time,easing){easing=easing||this.options.bounceEasing,x>=this.pages.length?x=this.pages.length-1:x<0&&(x=0),y>=this.pages[x].length?y=this.pages[x].length-1:y<0&&(y=0);var posX=this.pages[x][y].x,posY=this.pages[x][y].y;time=time===undefined?this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(posX-this.x),1e3),Math.min(Math.abs(posY-this.y),1e3)),300):time,this.currentPage={x:posX,y:posY,pageX:x,pageY:y},this.scrollTo(posX,posY,time,easing)},next:function(time,easing){var x=this.currentPage.pageX,y=this.currentPage.pageY;x++,x>=this.pages.length&&this.hasVerticalScroll&&(x=0,y++),this.goToPage(x,y,time,easing)},prev:function(time,easing){var x=this.currentPage.pageX,y=this.currentPage.pageY;x--,x<0&&this.hasVerticalScroll&&(x=0,y--),this.goToPage(x,y,time,easing)},_initKeys:function(e){var keys={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40},i;if(typeof this.options.keyBindings=="object")for(i in this.options.keyBindings)typeof this.options.keyBindings[i]=="string"&&(this.options.keyBindings[i]=this.options.keyBindings[i].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(i in keys)this.options.keyBindings[i]=this.options.keyBindings[i]||keys[i];utils.addEvent(window,"keydown",this),this.on("destroy",function(){utils.removeEvent(window,"keydown",this)})},_key:function(e){if(!this.enabled)return;var snap=this.options.snap,newX=snap?this.currentPage.pageX:this.x,newY=snap?this.currentPage.pageY:this.y,now=utils.getTime(),prevTime=this.keyTime||0,acceleration=.25,pos;this.options.useTransition&&this.isInTransition&&(pos=this.getComputedPosition(),this._translate(Math.round(pos.x),Math.round(pos.y)),this.isInTransition=!1),this.keyAcceleration=now-prevTime<200?Math.min(this.keyAcceleration+acceleration,50):0;switch(e.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?newX+=snap?1:this.wrapperWidth:newY+=snap?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?newX-=snap?1:this.wrapperWidth:newY-=snap?1:this.wrapperHeight;break;case this.options.keyBindings.end:newX=snap?this.pages.length-1:this.maxScrollX,newY=snap?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:newX=0,newY=0;break;case this.options.keyBindings.left:newX+=snap?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:newY+=snap?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:newX-=snap?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:newY-=snap?1:5+this.keyAcceleration>>0;break;default:return}if(snap){this.goToPage(newX,newY);return}newX>0?(newX=0,this.keyAcceleration=0):newX0?(newY=0,this.keyAcceleration=0):newY=destTime){that.isAnimating=!1,that._translate(destX,destY),that.resetPosition(that.options.bounceTime)||that._execEvent("scrollEnd");return}now=(now-startTime)/duration,easing=easingFn(now),newX=(destX-startX)*easing+startX,newY=(destY-startY)*easing+startY,that._translate(newX,newY),that.isAnimating&&rAF(step)}var that=this,startX=this.x,startY=this.y,startTime=utils.getTime(),destTime=startTime+duration;this.isAnimating=!0,step()},handleEvent:function(e){switch(e.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(e);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(e);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(e);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(e);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(e);break;case"keydown":this._key(e);break;case"click":this.enabled&&!e._constructed&&(e.preventDefault(),e.stopPropagation())}}},Indicator.prototype={handleEvent:function(e){switch(e.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(e);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(e);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(e)}},destroy:function(){this.options.fadeScrollbars&&(clearTimeout(this.fadeTimeout),this.fadeTimeout=null),this.options.interactive&&(utils.removeEvent(this.indicator,"touchstart",this),utils.removeEvent(this.indicator,utils.prefixPointerEvent("pointerdown"),this),utils.removeEvent(this.indicator,"mousedown",this),utils.removeEvent(window,"touchmove",this),utils.removeEvent(window,utils.prefixPointerEvent("pointermove"),this),utils.removeEvent(window,"mousemove",this),utils.removeEvent(window,"touchend",this),utils.removeEvent(window,utils.prefixPointerEvent("pointerup"),this),utils.removeEvent(window,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(e){var point=e.touches?e.touches[0]:e;e.preventDefault(),e.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=point.pageX,this.lastPointY=point.pageY,this.startTime=utils.getTime(),this.options.disableTouch||utils.addEvent(window,"touchmove",this),this.options.disablePointer||utils.addEvent(window,utils.prefixPointerEvent("pointermove"),this),this.options.disableMouse||utils.addEvent(window,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(e){var point=e.touches?e.touches[0]:e,deltaX,deltaY,newX,newY,timestamp=utils.getTime();this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,deltaX=point.pageX-this.lastPointX,this.lastPointX=point.pageX,deltaY=point.pageY-this.lastPointY,this.lastPointY=point.pageY,newX=this.x+deltaX,newY=this.y+deltaY,this._pos(newX,newY),e.preventDefault(),e.stopPropagation()},_end:function(e){if(!this.initiated)return;this.initiated=!1,e.preventDefault(),e.stopPropagation(),utils.removeEvent(window,"touchmove",this),utils.removeEvent(window,utils.prefixPointerEvent("pointermove"),this),utils.removeEvent(window,"mousemove",this);if(this.scroller.options.snap){var snap=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),time=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-snap.x),1e3),Math.min(Math.abs(this.scroller.y-snap.y),1e3)),300);if(this.scroller.x!=snap.x||this.scroller.y!=snap.y)this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=snap,this.scroller.scrollTo(snap.x,snap.y,time,this.scroller.options.bounceEasing)}this.moved&&this.scroller._execEvent("scrollEnd")},transitionTime:function(time){time=time||0;var durationProp=utils.style.transitionDuration;if(!durationProp)return;this.indicatorStyle[durationProp]=time+"ms";if(!time&&utils.isBadAndroid){this.indicatorStyle[durationProp]="0.0001ms";var self=this;rAF(function(){self.indicatorStyle[durationProp]==="0.0001ms"&&(self.indicatorStyle[durationProp]="0s")})}},transitionTimingFunction:function(easing){this.indicatorStyle[utils.style.transitionTimingFunction]=easing},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(utils.addClass(this.wrapper,"iScrollBothScrollbars"),utils.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(utils.removeClass(this.wrapper,"iScrollBothScrollbars"),utils.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px"));var r=this.wrapper.offsetHeight;this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=Math.max(Math.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,this.options.shrink=="clip"?(this.minBoundaryX=-this.indicatorWidth+8,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=Math.max(Math.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.options.shrink=="clip"?(this.minBoundaryY=-this.indicatorHeight+8,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var x=this.options.listenX&&Math.round(this.sizeRatioX*this.scroller.x)||0,y=this.options.listenY&&Math.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(xthis.maxBoundaryX?this.options.shrink=="scale"?(this.width=Math.max(this.indicatorWidth-(x-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",x=this.maxPosX+this.indicatorWidth-this.width):x=this.maxBoundaryX:this.options.shrink=="scale"&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),ythis.maxBoundaryY?this.options.shrink=="scale"?(this.height=Math.max(this.indicatorHeight-(y-this.maxPosY)*3,8),this.indicatorStyle.height=this.height+"px",y=this.maxPosY+this.indicatorHeight-this.height):y=this.maxBoundaryY:this.options.shrink=="scale"&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=x,this.y=y,this.scroller.options.useTransform?this.indicatorStyle[utils.style.transform]="translate("+x+"px,"+y+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=x+"px",this.indicatorStyle.top=y+"px")},_pos:function(x,y){x<0?x=0:x>this.maxPosX&&(x=this.maxPosX),y<0?y=0:y>this.maxPosY&&(y=this.maxPosY),x=this.options.listenX?Math.round(x/this.sizeRatioX):this.scroller.x,y=this.options.listenY?Math.round(y/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(x,y)},fade:function(val,hold){if(hold&&!this.visible)return;clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var time=val?250:500,delay=val?0:300;val=val?"1":"0",this.wrapperStyle[utils.style.transitionDuration]=time+"ms",this.fadeTimeout=setTimeout(function(val){this.wrapperStyle.opacity=val,this.visible=+val}.bind(this,val),delay)}},IScroll.utils=utils,typeof module!="undefined"&&module.exports?module.exports=IScroll:typeof define=="function"&&define.amd?define(function(){return IScroll}):window.IScroll=IScroll}(window,document,Math),function(global,factory){"use strict";typeof define=="function"&&define.amd?define(["jquery"],function($){return factory($,global,global.document,global.Math)}):typeof exports=="object"&&exports?module.exports=factory(require("jquery"),global,global.document,global.Math):factory(jQuery,global,global.document,global.Math)}(typeof window!="undefined"?window:this,function($,window,document,Math,undefined){"use strict";var WRAPPER="fullpage-wrapper",WRAPPER_SEL="."+WRAPPER,SCROLLABLE="fp-scrollable",SCROLLABLE_SEL="."+SCROLLABLE,RESPONSIVE="fp-responsive",NO_TRANSITION="fp-notransition",DESTROYED="fp-destroyed",ENABLED="fp-enabled",VIEWING_PREFIX="fp-viewing",ACTIVE="active",ACTIVE_SEL="."+ACTIVE,COMPLETELY="fp-completely",COMPLETELY_SEL="."+COMPLETELY,SECTION_DEFAULT_SEL=".section",SECTION="fp-section",SECTION_SEL="."+SECTION,SECTION_ACTIVE_SEL=SECTION_SEL+ACTIVE_SEL,SECTION_FIRST_SEL=SECTION_SEL+":first",SECTION_LAST_SEL=SECTION_SEL+":last",TABLE_CELL="fp-tableCell",TABLE_CELL_SEL="."+TABLE_CELL,AUTO_HEIGHT="fp-auto-height",AUTO_HEIGHT_SEL=".fp-auto-height",NORMAL_SCROLL="fp-normal-scroll",NORMAL_SCROLL_SEL=".fp-normal-scroll",SECTION_NAV="fp-nav",SECTION_NAV_SEL="#"+SECTION_NAV,SECTION_NAV_TOOLTIP="fp-tooltip",SECTION_NAV_TOOLTIP_SEL="."+SECTION_NAV_TOOLTIP,SHOW_ACTIVE_TOOLTIP="fp-show-active",SLIDE_DEFAULT_SEL=".slide",SLIDE="fp-slide",SLIDE_SEL="."+SLIDE,SLIDE_ACTIVE_SEL=SLIDE_SEL+ACTIVE_SEL,SLIDES_WRAPPER="fp-slides",SLIDES_WRAPPER_SEL="."+SLIDES_WRAPPER,SLIDES_CONTAINER="fp-slidesContainer",SLIDES_CONTAINER_SEL="."+SLIDES_CONTAINER,TABLE="fp-table",SLIDES_NAV="fp-slidesNav",SLIDES_NAV_SEL="."+SLIDES_NAV,SLIDES_NAV_LINK_SEL=SLIDES_NAV_SEL+" a",SLIDES_ARROW="fp-controlArrow",SLIDES_ARROW_SEL="."+SLIDES_ARROW,SLIDES_PREV="fp-prev",SLIDES_PREV_SEL="."+SLIDES_PREV,SLIDES_ARROW_PREV=SLIDES_ARROW+" "+SLIDES_PREV,SLIDES_ARROW_PREV_SEL=SLIDES_ARROW_SEL+SLIDES_PREV_SEL,SLIDES_NEXT="fp-next",SLIDES_NEXT_SEL="."+SLIDES_NEXT,SLIDES_ARROW_NEXT=SLIDES_ARROW+" "+SLIDES_NEXT,SLIDES_ARROW_NEXT_SEL=SLIDES_ARROW_SEL+SLIDES_NEXT_SEL,$window=$(window),$document=$(document),iscrollOptions={scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0,bounce:!1};$.fn.fullpage=function(options){function setAutoScrolling(value,type){value||silentScroll(0),setVariableState("autoScrolling",value,type);var element=$(SECTION_ACTIVE_SEL);options.autoScrolling&&!options.scrollBar?($htmlBody.css({overflow:"hidden !important",height:"100%"}),container.css({"-ms-touch-action":"none","touch-action":"none"}),element.length&&silentScroll(element.position().top)):($htmlBody.css({overflow:"visible !important",height:"initial"}),container.css({"-ms-touch-action":"","touch-action":""}),element.length&&$htmlBody.scrollTop(element.position().top))}function setRecordHistory(value,type){setVariableState("recordHistory",value,type)}function setScrollingSpeed(value,type){setVariableState("scrollingSpeed",value,type)}function setFitToSection(value,type){setVariableState("fitToSection",value,type)}function setLockAnchors(value){options.lockAnchors=value}function setMouseWheelScrolling(value){value?(addMouseWheelHandler(),addMiddleWheelHandler()):(removeMouseWheelHandler(),removeMiddleWheelHandler())}function setAllowScrolling(value,directions){typeof directions!="undefined"?(directions=directions.replace(/ /g,"").split(","),$.each(directions,function(index,direction){setIsScrollAllowed(value,direction,"m")})):value?(setMouseWheelScrolling(!0),addTouchHandler()):(setMouseWheelScrolling(!1),removeTouchHandler())}function setKeyboardScrolling(value,directions){typeof directions!="undefined"?(directions=directions.replace(/ /g,"").split(","),$.each(directions,function(index,direction){setIsScrollAllowed(value,direction,"k")})):options.keyboardScrolling=value}function moveSectionUp(){var prev=$(SECTION_ACTIVE_SEL).prev(SECTION_SEL);!prev.length&&(options.loopTop||options.continuousVertical)&&(prev=$(SECTION_SEL).last()),prev.length&&scrollPage(prev,null,!0)}function moveSectionDown(){var next=$(SECTION_ACTIVE_SEL).next(SECTION_SEL);!next.length&&(options.loopBottom||options.continuousVertical)&&(next=$(SECTION_SEL).first()),next.length&&scrollPage(next,null,!1)}function silentMoveTo(sectionAnchor,slideAnchor){setScrollingSpeed(0,"internal"),moveTo(sectionAnchor,slideAnchor),setScrollingSpeed(originals.scrollingSpeed,"internal")}function moveTo(sectionAnchor,slideAnchor){var destiny=getSectionByAnchor(sectionAnchor);typeof slideAnchor!="undefined"?scrollPageAndSlide(sectionAnchor,slideAnchor):destiny.length>0&&scrollPage(destiny)}function moveSlideRight(section){moveSlide("right",section)}function moveSlideLeft(section){moveSlide("left",section)}function reBuild(resizing){if(container.hasClass(DESTROYED))return;isResizing=!0,windowsHeight=$window.height(),$(SECTION_SEL).each(function(){var slidesWrap=$(this).find(SLIDES_WRAPPER_SEL),slides=$(this).find(SLIDE_SEL);options.verticalCentered&&$(this).find(TABLE_CELL_SEL).css("height",getTableHeight($(this))+"px"),$(this).css("height",windowsHeight+"px"),options.scrollOverflow&&(slides.length?slides.each(function(){createScrollBar($(this))}):createScrollBar($(this))),slides.length>1&&landscapeScroll(slidesWrap,slidesWrap.find(SLIDE_ACTIVE_SEL))});var activeSection=$(SECTION_ACTIVE_SEL),sectionIndex=activeSection.index(SECTION_SEL);sectionIndex&&silentMoveTo(sectionIndex+1),isResizing=!1,$.isFunction(options.afterResize)&&resizing&&options.afterResize.call(container),$.isFunction(options.afterReBuild)&&!resizing&&options.afterReBuild.call(container)}function setResponsive(active){var isResponsive=$body.hasClass(RESPONSIVE);active?isResponsive||(setAutoScrolling(!1,"internal"),setFitToSection(!1,"internal"),$(SECTION_NAV_SEL).hide(),$body.addClass(RESPONSIVE),$.isFunction(options.afterResponsive)&&options.afterResponsive.call(container,active)):isResponsive&&(setAutoScrolling(originals.autoScrolling,"internal"),setFitToSection(originals.autoScrolling,"internal"),$(SECTION_NAV_SEL).show(),$body.removeClass(RESPONSIVE),$.isFunction(options.afterResponsive)&&options.afterResponsive.call(container,active))}function init(){options.css3&&(options.css3=support3d()),options.scrollBar=options.scrollBar||options.hybrid,setOptionsFromDOM(),prepareDom(),setAllowScrolling(!0),setAutoScrolling(options.autoScrolling,"internal"),responsive(),setBodyClass()}function bindEvents(){$window.on("hashchange",hashChangeHandler).blur(blurHandler).resize(resizeHandler),$document.keydown(keydownHandler).keyup(keyUpHandler).on("click touchstart",SECTION_NAV_SEL+" a",sectionBulletHandler).on("click touchstart",SLIDES_NAV_LINK_SEL,slideBulletHandler).on("click",SECTION_NAV_TOOLTIP_SEL,tooltipTextHandler),$(SECTION_SEL).on("click touchstart",SLIDES_ARROW_SEL,slideArrowHandler),options.normalScrollElements&&($document.on("mouseenter",options.normalScrollElements,function(){setMouseWheelScrolling(!1)}),$document.on("mouseleave",options.normalScrollElements,function(){setMouseWheelScrolling(!0)}))}function setOptionsFromDOM(){var sections=container.find(options.sectionSelector);options.anchors.length||(options.anchors=sections.filter("[data-anchor]").map(function(){return $(this).data("anchor").toString()}).get()),options.navigationTooltips.length||(options.navigationTooltips=sections.filter("[data-tooltip]").map(function(){return $(this).data("tooltip").toString()}).get())}function prepareDom(){container.css({height:"100%",position:"relative"}),container.addClass(WRAPPER),$("html").addClass(ENABLED),windowsHeight=$window.height(),container.removeClass(DESTROYED),addInternalSelectors(),$(SECTION_SEL).each(function(index){var section=$(this),slides=section.find(SLIDE_SEL),numSlides=slides.length;styleSection(section,index),styleMenu(section,index),numSlides>0?styleSlides(section,slides,numSlides):options.verticalCentered&&addTableClass(section)}),options.fixedElements&&options.css3&&$(options.fixedElements).appendTo($body),options.navigation&&addVerticalNavigation(),enableYoutubeAPI(),options.scrollOverflow?(document.readyState==="complete"&&createScrollBarHandler(),$window.on("load",createScrollBarHandler)):afterRenderActions()}function styleSlides(section,slides,numSlides){var sliderWidth=numSlides*100,slideWidth=100/numSlides;slides.wrapAll('
'),slides.parent().wrap('
'),section.find(SLIDES_CONTAINER_SEL).css("width",sliderWidth+"%"),numSlides>1&&(options.controlArrows&&createSlideArrows(section),options.slidesNavigation&&addSlidesNavigation(section,numSlides)),slides.each(function(index){$(this).css("width",slideWidth+"%"),options.verticalCentered&&addTableClass($(this))});var startingSlide=section.find(SLIDE_ACTIVE_SEL);startingSlide.length&&($(SECTION_ACTIVE_SEL).index(SECTION_SEL)!==0||$(SECTION_ACTIVE_SEL).index(SECTION_SEL)===0&&startingSlide.index()!==0)?silentLandscapeScroll(startingSlide,"internal"):slides.eq(0).addClass(ACTIVE)}function styleSection(section,index){!index&&$(SECTION_ACTIVE_SEL).length===0&§ion.addClass(ACTIVE),startingSection=$(SECTION_ACTIVE_SEL),section.css("height",windowsHeight+"px"),options.paddingTop&§ion.css("padding-top",options.paddingTop),options.paddingBottom&§ion.css("padding-bottom",options.paddingBottom),typeof options.sectionsColor[index]!="undefined"&§ion.css("background-color",options.sectionsColor[index]),typeof options.anchors[index]!="undefined"&§ion.attr("data-anchor",options.anchors[index])}function styleMenu(section,index){typeof options.anchors[index]!="undefined"&§ion.hasClass(ACTIVE)&&activateMenuAndNav(options.anchors[index],index),options.menu&&options.css3&&$(options.menu).closest(WRAPPER_SEL).length&&$(options.menu).appendTo($body)}function addInternalSelectors(){container.find(options.sectionSelector).addClass(SECTION),container.find(options.slideSelector).addClass(SLIDE)}function createSlideArrows(section){section.find(SLIDES_WRAPPER_SEL).after('
'),options.controlArrowColor!="#fff"&&(section.find(SLIDES_ARROW_NEXT_SEL).css("border-color","transparent transparent transparent "+options.controlArrowColor),section.find(SLIDES_ARROW_PREV_SEL).css("border-color","transparent "+options.controlArrowColor+" transparent transparent")),options.loopHorizontal||section.find(SLIDES_ARROW_PREV_SEL).hide()}function addVerticalNavigation(){$body.append('');var nav=$(SECTION_NAV_SEL);nav.addClass(function(){return options.showActiveTooltip?SHOW_ACTIVE_TOOLTIP+" "+options.navigationPosition:options.navigationPosition});for(var i=0;i<$(SECTION_SEL).length;i++){var link="";options.anchors.length&&(link=options.anchors[i]);var li=' ',tooltip=options.navigationTooltips[i];typeof tooltip!="undefined"&&tooltip!==""&&(li+=''+tooltip+"
"),li+=" ",nav.find("ul").append(li)}$(SECTION_NAV_SEL).css("margin-top","-"+$(SECTION_NAV_SEL).height()/2+"px"),$(SECTION_NAV_SEL).find("li").eq($(SECTION_ACTIVE_SEL).index(SECTION_SEL)).find("a").addClass(ACTIVE)}function createScrollBarHandler(){$(SECTION_SEL).each(function(){var slides=$(this).find(SLIDE_SEL);slides.length?slides.each(function(){createScrollBar($(this))}):createScrollBar($(this))}),afterRenderActions()}function enableYoutubeAPI(){container.find('iframe[src*="youtube.com/embed/"]').each(function(){addURLParam($(this),"enablejsapi=1")})}function addURLParam(element,newParam){var originalSrc=element.attr("src");element.attr("src",originalSrc+getUrlParamSign(originalSrc)+newParam)}function getUrlParamSign(url){return/\?/.test(url)?"&":"?"}function afterRenderActions(){var section=$(SECTION_ACTIVE_SEL);section.addClass(COMPLETELY),options.scrollOverflowHandler.afterRender&&options.scrollOverflowHandler.afterRender(section),lazyLoad(section),playMedia(section),options.scrollOverflowHandler.afterLoad(),isDestinyTheStartingSection()&&$.isFunction(options.afterLoad)&&options.afterLoad.call(section,section.data("anchor"),section.index(SECTION_SEL)+1),$.isFunction(options.afterRender)&&options.afterRender.call(container)}function isDestinyTheStartingSection(){var anchors=window.location.hash.replace("#","").split("/"),destinationSection=getSectionByAnchor(decodeURIComponent(anchors[0]));return!destinationSection.length||destinationSection.length&&destinationSection.index()===startingSection.index()}function scrollHandler(){var currentSection;if(!options.autoScrolling||options.scrollBar){var currentScroll=$window.scrollTop(),scrollDirection=getScrollDirection(currentScroll),visibleSectionIndex=0,screen_mid=currentScroll+$window.height()/2,isAtBottom=$body.height()-$window.height()===currentScroll,sections=document.querySelectorAll(SECTION_SEL);if(isAtBottom)visibleSectionIndex=sections.length-1;else if(!currentScroll)visibleSectionIndex=0;else for(var i=0;i=$window.scrollTop()+$window.height():top<=$window.scrollTop()}function getScrollDirection(currentScroll){var direction=currentScroll>lastScroll?"down":"up";return lastScroll=currentScroll,previousDestTop=currentScroll,direction}function scrolling(type,scrollable){if(!isScrollAllowed.m[type])return;var check=type==="down"?"bottom":"top",scrollSection=type==="down"?moveSectionDown:moveSectionUp;if(scrollable.length>0){if(!options.scrollOverflowHandler.isScrolled(check,scrollable))return!0;scrollSection()}else scrollSection()}function preventBouncing(event){var e=event.originalEvent;!checkParentForNormalScrollElement(event.target)&&options.autoScrolling&&isReallyTouch(e)&&isScrollAllowed.m.up&&event.preventDefault()}function touchMoveHandler(event){var e=event.originalEvent,activeSection=$(e.target).closest(SECTION_SEL);if(!checkParentForNormalScrollElement(event.target)&&isReallyTouch(e)){options.autoScrolling&&event.preventDefault();var scrollable=options.scrollOverflowHandler.scrollable(activeSection),touchEvents=getEventsPage(e);touchEndY=touchEvents.y,touchEndX=touchEvents.x,activeSection.find(SLIDES_WRAPPER_SEL).length&&Math.abs(touchStartX-touchEndX)>Math.abs(touchStartY-touchEndY)?!slideMoving&&Math.abs(touchStartX-touchEndX)>$window.outerWidth()/100*options.touchSensitivity&&(touchStartX>touchEndX?isScrollAllowed.m.right&&moveSlideRight(activeSection):isScrollAllowed.m.left&&moveSlideLeft(activeSection)):options.autoScrolling&&canScroll&&Math.abs(touchStartY-touchEndY)>$window.height()/100*options.touchSensitivity&&(touchStartY>touchEndY?scrolling("down",scrollable):touchEndY>touchStartY&&scrolling("up",scrollable))}}function checkParentForNormalScrollElement(el,hop){hop=hop||0;var parent=$(el).parent();return hop149&&scrollings.shift(),scrollings.push(Math.abs(value)),options.scrollBar&&(e.preventDefault?e.preventDefault():e.returnValue=!1);var activeSection=$(SECTION_ACTIVE_SEL),scrollable=options.scrollOverflowHandler.scrollable(activeSection),timeDiff=curTime-prevTime;prevTime=curTime,timeDiff>200&&(scrollings=[]);if(canScroll){var averageEnd=getAverage(scrollings,10),averageMiddle=getAverage(scrollings,70),isAccelerating=averageEnd>=averageMiddle;isAccelerating&&isScrollingVertically&&(delta<0?scrolling("down",scrollable):scrolling("up",scrollable))}return!1}options.fitToSection&&$htmlBody.stop()}function moveSlide(direction,section){var activeSection=typeof section=="undefined"?$(SECTION_ACTIVE_SEL):section,slides=activeSection.find(SLIDES_WRAPPER_SEL),numSlides=slides.find(SLIDE_SEL).length;if(!slides.length||slideMoving||numSlides<2)return;var currentSlide=slides.find(SLIDE_ACTIVE_SEL),destiny=null;direction==="left"?destiny=currentSlide.prev(SLIDE_SEL):destiny=currentSlide.next(SLIDE_SEL);if(!destiny.length){if(!options.loopHorizontal)return;direction==="left"?destiny=currentSlide.siblings(":last"):destiny=currentSlide.siblings(":first")}slideMoving=!0,landscapeScroll(slides,destiny,direction)}function keepSlidesPosition(){$(SLIDE_ACTIVE_SEL).each(function(){silentLandscapeScroll($(this),"internal")})}function getDestinationPosition(element){var elemPosition=element.position(),position=elemPosition.top,isScrollingDown=elemPosition.top>previousDestTop,sectionBottom=position-windowsHeight+element.outerHeight(),bigSectionsDestination=options.bigSectionsDestination,containerH=container.outerHeight(),containerPosition=container.offset();!$masthead.hasClass("menu-transparent")&&$("body").hasClass("uncode-fp-menu-shrink")&&!element.is(":first-child")&&(position+=18);if(containerH+menuHeight+bodyBorder+adminBarHeight-windowsHeight-1&&e.preventDefault(),controlPressed=e.ctrlKey,keydownId=setTimeout(function(){onkeydown(e)},150)}}function tooltipTextHandler(){$(this).prev().trigger("click")}function keyUpHandler(e){isWindowFocused&&(controlPressed=e.ctrlKey)}function mouseDownHandler(e){e.which==2&&(oldPageY=e.pageY,container.on("mousemove",mouseMoveHandler))}function mouseUpHandler(e){e.which==2&&container.off("mousemove")}function slideArrowHandler(){var section=$(this).closest(SECTION_SEL);$(this).hasClass(SLIDES_PREV)?isScrollAllowed.m.left&&moveSlideLeft(section):isScrollAllowed.m.right&&moveSlideRight(section)}function blurHandler(){isWindowFocused=!1,controlPressed=!1}function sectionBulletHandler(e){e.preventDefault();var index=$(this).parent().index();scrollPage($(SECTION_SEL).eq(index))}function slideBulletHandler(e){e.preventDefault();var slides=$(this).closest(SECTION_SEL).find(SLIDES_WRAPPER_SEL),destiny=slides.find(SLIDE_SEL).eq($(this).closest("li").index());landscapeScroll(slides,destiny)}function onkeydown(e){var shiftPressed=e.shiftKey;if(!canScroll&&[37,39].indexOf(e.which)<0)return;switch(e.which){case 38:case 33:isScrollAllowed.k.up&&moveSectionUp();break;case 32:if(shiftPressed&&isScrollAllowed.k.up){moveSectionUp();break};case 40:case 34:isScrollAllowed.k.down&&moveSectionDown();break;case 36:isScrollAllowed.k.up&&moveTo(1);break;case 35:isScrollAllowed.k.down&&moveTo($(SECTION_SEL).length);break;case 37:isScrollAllowed.k.left&&moveSlideLeft();break;case 39:isScrollAllowed.k.right&&moveSlideRight();break;default:return}}function mouseMoveHandler(e){canScroll&&(e.pageYoldPageY&&isScrollAllowed.m.down&&moveSectionDown()),oldPageY=e.pageY}function landscapeScroll(slides,destiny,direction){var section=slides.closest(SECTION_SEL),v={slides:slides,destiny:destiny,direction:direction,destinyPos:destiny.position(),slideIndex:destiny.index(),section:section,sectionIndex:section.index(SECTION_SEL),anchorLink:section.data("anchor"),slidesNav:section.find(SLIDES_NAV_SEL),slideAnchor:getAnchor(destiny),prevSlide:section.find(SLIDE_ACTIVE_SEL),prevSlideIndex:section.find(SLIDE_ACTIVE_SEL).index(),localIsResizing:isResizing};v.xMovement=getXmovement(v.prevSlideIndex,v.slideIndex),v.direction=v.direction?v.direction:v.xMovement,v.localIsResizing||(canScroll=!1);if(options.onSlideLeave&&!v.localIsResizing&&v.xMovement!=="none"&&$.isFunction(options.onSlideLeave)&&options.onSlideLeave.call(v.prevSlide,v.anchorLink,v.sectionIndex+1,v.prevSlideIndex,v.xMovement,v.slideIndex)===!1){slideMoving=!1;return}destiny.addClass(ACTIVE).siblings().removeClass(ACTIVE),v.localIsResizing||(stopMedia(v.prevSlide),lazyLoad(destiny)),!options.loopHorizontal&&options.controlArrows&&(section.find(SLIDES_ARROW_PREV_SEL).toggle(v.slideIndex!==0),section.find(SLIDES_ARROW_NEXT_SEL).toggle(!destiny.is(":last-child"))),section.hasClass(ACTIVE)&&!v.localIsResizing&&setState(v.slideIndex,v.slideAnchor,v.anchorLink,v.sectionIndex),performHorizontalMove(slides,v,!0)}function afterSlideLoads(v){activeSlidesNavigation(v.slidesNav,v.slideIndex),v.localIsResizing||($.isFunction(options.afterSlideLoad)&&options.afterSlideLoad.call(v.destiny,v.anchorLink,v.sectionIndex+1,v.slideAnchor,v.slideIndex),canScroll=!0,playMedia(v.destiny)),slideMoving=!1}function performHorizontalMove(slides,v,fireCallback){var destinyPos=v.destinyPos;if(options.css3){var translate3d="translate3d(-"+Math.round(destinyPos.left)+"px, 0px, 0px)";addAnimation(slides.find(SLIDES_CONTAINER_SEL)).css(getTransforms(translate3d),v),afterSlideLoadsId=setTimeout(function(){fireCallback&&afterSlideLoads(v)},options.scrollingSpeed,options.easing)}else slides.animate({scrollLeft:Math.round(destinyPos.left)},options.scrollingSpeed,options.easing,function(){fireCallback&&afterSlideLoads(v)})}function activeSlidesNavigation(slidesNav,slideIndex){slidesNav.find(ACTIVE_SEL).removeClass(ACTIVE),slidesNav.find("li").eq(slideIndex).find("a").addClass(ACTIVE)}function resizeHandler(){responsive();if(isTouchDevice){var activeElement=$(document.activeElement);if(!activeElement.is("textarea")&&!activeElement.is("input")&&!activeElement.is("select")){var currentHeight=$window.height();Math.abs(currentHeight-previousHeight)>20*Math.max(previousHeight,currentHeight)/100&&(reBuild(!0),previousHeight=currentHeight)}}else clearTimeout(resizeId),resizeId=setTimeout(function(){reBuild(!0)},350)}function responsive(){var widthLimit=options.responsive||options.responsiveWidth,heightLimit=options.responsiveHeight,isBreakingPointWidth=widthLimit&&$window.outerWidth()toIndex?"up":"down"}function getXmovement(fromIndex,toIndex){return fromIndex==toIndex?"none":fromIndex>toIndex?"left":"right"}function createScrollBar(element){if(element.hasClass("fp-noscroll"))return;element.css("overflow","hidden");var scrollOverflowHandler=options.scrollOverflowHandler,wrap=scrollOverflowHandler.wrapContent(),section=element.closest(SECTION_SEL),scrollable=scrollOverflowHandler.scrollable(element),contentHeight;scrollable.length?contentHeight=scrollOverflowHandler.scrollHeight(element):(contentHeight=element.get(0).scrollHeight,options.verticalCentered&&(contentHeight=element.find(TABLE_CELL_SEL).get(0).scrollHeight));var scrollHeight=windowsHeight-parseInt(section.css("padding-bottom"))-parseInt(section.css("padding-top"));contentHeight>scrollHeight?scrollable.length?scrollOverflowHandler.update(element,scrollHeight):(options.verticalCentered?element.find(TABLE_CELL_SEL).wrapInner(wrap):element.wrapInner(wrap),scrollOverflowHandler.create(element,scrollHeight)):scrollOverflowHandler.remove(element),element.css("overflow","")}function addTableClass(element){element.hasClass(TABLE)||element.addClass(TABLE).wrapInner('
')}function getTableHeight(element){var sectionHeight=windowsHeight;if(options.paddingTop||options.paddingBottom){var section=element;section.hasClass(SECTION)||(section=element.closest(SECTION_SEL));var paddings=parseInt(section.css("padding-top"))+parseInt(section.css("padding-bottom"));sectionHeight=windowsHeight-paddings}return sectionHeight}function transformContainer(translate3d,animated){animated?addAnimation(container):removeAnimation(container),container.css(getTransforms(translate3d)),setTimeout(function(){container.removeClass(NO_TRANSITION)},10)}function getSectionByAnchor(sectionAnchor){if(!sectionAnchor)return[];var section=container.find(SECTION_SEL+'[data-anchor="'+sectionAnchor+'"]');return section.length||(section=$(SECTION_SEL).eq(sectionAnchor-1)),section}function getSlideByAnchor(slideAnchor,section){var slides=section.find(SLIDES_WRAPPER_SEL),slide=slides.find(SLIDE_SEL+'[data-anchor="'+slideAnchor+'"]');return slide.length||(slide=slides.find(SLIDE_SEL).eq(slideAnchor)),slide}function scrollPageAndSlide(destiny,slide){var section=getSectionByAnchor(destiny);if(!section.length)return;typeof slide=="undefined"&&(slide=0),destiny!==lastScrolledDestiny&&!section.hasClass(ACTIVE)?scrollPage(section,function(){scrollSlider(section,slide)}):scrollSlider(section,slide)}function scrollSlider(section,slideAnchor){if(typeof slideAnchor!="undefined"){var slides=section.find(SLIDES_WRAPPER_SEL),destiny=getSlideByAnchor(slideAnchor,section);destiny.length&&landscapeScroll(slides,destiny)}}function addSlidesNavigation(section,numSlides){section.append('');var nav=section.find(SLIDES_NAV_SEL);nav.addClass(options.slidesNavPosition);for(var i=0;i ');nav.css("margin-left","-"+nav.width()/2+"px"),nav.find("li").first().find("a").addClass(ACTIVE)}function setState(slideIndex,slideAnchor,anchorLink,sectionIndex){var sectionHash="";options.anchors.length&&!options.lockAnchors&&(slideIndex?(typeof anchorLink!="undefined"&&(sectionHash=anchorLink),typeof slideAnchor=="undefined"&&(slideAnchor=slideIndex),lastScrolledSlide=slideAnchor,setUrlHash(sectionHash+"/"+slideAnchor)):typeof slideIndex!="undefined"?(lastScrolledSlide=slideAnchor,setUrlHash(anchorLink)):setUrlHash(anchorLink)),setBodyClass()}function setUrlHash(url){if(typeof SiteParameters.slide_footer!="undefined"&&url==SiteParameters.slide_footer)return!1;if(!options.recordHistory)return!1;location.hash=url}function getAnchor(element){var anchor=element.data("anchor"),index=element.index();return typeof anchor=="undefined"&&(anchor=index),anchor}function setBodyClass(){var section=$(SECTION_ACTIVE_SEL),slide=section.find(SLIDE_ACTIVE_SEL),sectionAnchor=getAnchor(section),slideAnchor=getAnchor(slide),text=String(sectionAnchor);slide.length&&(text=text+"-"+slideAnchor),text=text.replace("/","-").replace("#","");var classRe=new RegExp("\\b\\s?"+VIEWING_PREFIX+"-[^\\s]+\\b","g");$body[0].className=$body[0].className.replace(classRe,""),$body.addClass(VIEWING_PREFIX+"-"+text)}function support3d(){var el=document.createElement("p"),has3d,transforms={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.insertBefore(el,null);for(var t in transforms)el.style[t]!==undefined&&(el.style[t]="translate3d(1px,1px,1px)",has3d=window.getComputedStyle(el).getPropertyValue(transforms[t]));return document.body.removeChild(el),has3d!==undefined&&has3d.length>0&&has3d!=="none"}function removeMouseWheelHandler(){document.addEventListener?(document.removeEventListener("mousewheel",MouseWheelHandler,!1),document.removeEventListener("wheel",MouseWheelHandler,!1),document.removeEventListener("MozMousePixelScroll",MouseWheelHandler,!1)):document.detachEvent("onmousewheel",MouseWheelHandler)}function addMouseWheelHandler(){var prefix="",_addEventListener;window.addEventListener?_addEventListener="addEventListener":(_addEventListener="attachEvent",prefix="on");var support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll",passiveEvent=g_supportsPassive?{passive:!1}:!1;support=="DOMMouseScroll"?document[_addEventListener](prefix+"MozMousePixelScroll",MouseWheelHandler,passiveEvent):document[_addEventListener](prefix+support,MouseWheelHandler,passiveEvent)}function addMiddleWheelHandler(){container.on("mousedown",mouseDownHandler).on("mouseup",mouseUpHandler)}function removeMiddleWheelHandler(){container.off("mousedown",mouseDownHandler).off("mouseup",mouseUpHandler)}function addTouchHandler(){if(isTouchDevice||isTouch)options.autoScrolling&&$body.off(events.touchmove).on(events.touchmove,preventBouncing),$(WRAPPER_SEL).off(events.touchstart).on(events.touchstart,touchStartHandler).off(events.touchmove).on(events.touchmove,touchMoveHandler)}function removeTouchHandler(){(isTouchDevice||isTouch)&&$(WRAPPER_SEL).off(events.touchstart).off(events.touchmove)}function getMSPointer(){var pointer;return window.PointerEvent?pointer={down:"pointerdown",move:"pointermove"}:pointer={down:"MSPointerDown",move:"MSPointerMove"},pointer}function getEventsPage(e){var events=[];return events.y=typeof e.pageY!="undefined"&&(e.pageY||e.pageX)?e.pageY:e.touches[0].pageY,events.x=typeof e.pageX!="undefined"&&(e.pageY||e.pageX)?e.pageX:e.touches[0].pageX,isTouch&&isReallyTouch(e)&&options.scrollBar&&(events.y=e.touches[0].pageY,events.x=e.touches[0].pageX),events}function silentLandscapeScroll(activeSlide,noCallbacks){setScrollingSpeed(0,"internal"),typeof noCallbacks!="undefined"&&(isResizing=!0),landscapeScroll(activeSlide.closest(SLIDES_WRAPPER_SEL),activeSlide),typeof noCallbacks!="undefined"&&(isResizing=!1),setScrollingSpeed(originals.scrollingSpeed,"internal")}function silentScroll(top){var roundedTop=Math.round(top);if(options.css3&&options.autoScrolling&&!options.scrollBar){var translate3d="translate3d(0px, -"+roundedTop+"px, 0px)";transformContainer(translate3d,!1)}else options.autoScrolling&&!options.scrollBar?container.css("top",-roundedTop):$htmlBody.scrollTop(roundedTop)}function getTransforms(translate3d){return{"-webkit-transform":translate3d,"-moz-transform":translate3d,"-ms-transform":translate3d,transform:translate3d}}function setIsScrollAllowed(value,direction,type){switch(direction){case"up":isScrollAllowed[type].up=value;break;case"down":isScrollAllowed[type].down=value;break;case"left":isScrollAllowed[type].left=value;break;case"right":isScrollAllowed[type].right=value;break;case"all":type=="m"?setAllowScrolling(value):setKeyboardScrolling(value)}}function destroy(all){setAutoScrolling(!1,"internal"),setAllowScrolling(!1),setKeyboardScrolling(!1),container.addClass(DESTROYED),clearTimeout(afterSlideLoadsId),clearTimeout(afterSectionLoadsId),clearTimeout(resizeId),clearTimeout(scrollId),clearTimeout(scrollId2),$window.off("scroll",scrollHandler).off("hashchange",hashChangeHandler).off("resize",resizeHandler),$document.off("click touchstart",SECTION_NAV_SEL+" a").off("mouseenter",SECTION_NAV_SEL+" li").off("mouseleave",SECTION_NAV_SEL+" li").off("click touchstart",SLIDES_NAV_LINK_SEL).off("mouseover",options.normalScrollElements).off("mouseout",options.normalScrollElements),$(SECTION_SEL).off("click touchstart",SLIDES_ARROW_SEL),clearTimeout(afterSlideLoadsId),clearTimeout(afterSectionLoadsId),all&&destroyStructure()}function destroyStructure(){silentScroll(0),container.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){setSrc($(this),"src")}),container.find("img[data-srcset]").each(function(){setSrc($(this),"srcset")}),$(SECTION_NAV_SEL+", "+SLIDES_NAV_SEL+", "+SLIDES_ARROW_SEL).remove(),$(SECTION_SEL).css({height:"","background-color":"",padding:""}),$(SLIDE_SEL).css({width:""}),container.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),$htmlBody.css({overflow:"",height:""}),$("html").removeClass(ENABLED),$body.removeClass(RESPONSIVE),$.each($body.get(0).className.split(/\s+/),function(index,className){className.indexOf(VIEWING_PREFIX)===0&&$body.removeClass(className)}),$(SECTION_SEL+", "+SLIDE_SEL).each(function(){options.scrollOverflowHandler.remove($(this)),$(this).removeClass(TABLE+" "+ACTIVE)}),removeAnimation(container),container.find(TABLE_CELL_SEL+", "+SLIDES_CONTAINER_SEL+", "+SLIDES_WRAPPER_SEL).each(function(){$(this).replaceWith(this.childNodes)}),container.css({"-webkit-transition":"none",transition:"none"}),$htmlBody.scrollTop(0);var usedSelectors=[SECTION,SLIDE,SLIDES_CONTAINER];$.each(usedSelectors,function(index,value){$("."+value).removeClass(value)})}function setVariableState(variable,value,type){options[variable]=value,type!=="internal"&&(originals[variable]=value)}function displayWarnings(){var extensions=["fadingEffect","continuousHorizontal","scrollHorizontally","interlockedSlides","resetSliders","responsiveSlides","offsetSections","dragAndMove","scrollOverflowReset","parallax"];$.each(extensions,function(index,extension){options[extension]&&showError("warn","fullpage.js extensions require jquery.fullpage.extensions.min.js file instead of the usual jquery.fullpage.js. Requested: "+extension)}),$.each(options.anchors,function(index,name){var nameAttr=$document.find("[name]").filter(function(){return $(this).attr("name")&&$(this).attr("name").toLowerCase()==name.toLowerCase()}),idAttr=$document.find("[id]").filter(function(){return $(this).attr("id")&&$(this).attr("id").toLowerCase()==name.toLowerCase()});if(idAttr.length||nameAttr.length)showError("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),idAttr.length&&showError("error",'"'+name+'" is is being used by another element `id` property'),nameAttr.length&&showError("error",'"'+name+'" is is being used by another element `name` property')})}function showError(type,text){console&&console[type]&&console[type]("fullPage: "+text)}if($("html").hasClass(ENABLED)){displayWarnings();return}var $htmlBody=$("html, body"),$body=$("body"),FP=$.fn.fullpage;options=$.extend({menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:1e3,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!1,scrollHorizontally:!1,interlockedSlides:!1,dragAndMove:!1,offsetSections:!1,resetSliders:!1,fadingEffect:!1,normalScrollElements:null,scrollOverflow:!1,scrollOverflowReset:!1,scrollOverflowHandler:iscrollHandler,scrollOverflowOptions:null,touchSensitivity:5,normalScrollElementTouchThreshold:5,bigSectionsDestination:null,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:!1,parallax:!1,parallaxOptions:{type:"reveal",percentage:62,property:"translate"},sectionSelector:SECTION_DEFAULT_SEL,slideSelector:SLIDE_DEFAULT_SEL,afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,lazyLoading:!0},options);var slideMoving=!1,isTouchDevice=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),isTouch="ontouchstart"in window||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,container=$(this),windowsHeight=$window.height(),isResizing=!1,isWindowFocused=!0,lastScrolledDestiny,lastScrolledSlide,canScroll=!0,scrollings=[],controlPressed,startingSection,isScrollAllowed={};isScrollAllowed.m={up:!0,down:!0,left:!0,right:!0},isScrollAllowed.k=$.extend(!0,{},isScrollAllowed.m);var MSPointer=getMSPointer(),events={touchmove:"ontouchmove"in window?"touchmove":MSPointer.move,touchstart:"ontouchstart"in window?"touchstart":MSPointer.down},g_supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){g_supportsPassive=!0}});window.addEventListener("testPassive",null,opts),window.removeEventListener("testPassive",null,opts)}catch(e){}var resizeId,afterSectionLoadsId,afterSlideLoadsId,scrollId,scrollId2,keydownId,originals=$.extend(!0,{},options),$masthead=$("#masthead"),hideMenu=!$("body").hasClass("vmenu")&&$("body").hasClass("uncode-fp-menu-hide")?!0:!1,menuHeight=$masthead.hasClass("menu-transparent")||hideMenu?0:UNCODE.menuHeight,bodyBorder=UNCODE.bodyBorder,adminBarHeight=UNCODE.adminBarHeight;displayWarnings(),iscrollOptions.click=isTouch,iscrollOptions=$.extend(iscrollOptions,options.scrollOverflowOptions),$.extend($.easing,{easeInOutCubic:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t*t+b:c/2*((t-=2)*t*t+2)+b}}),$(this).length&&(FP.setAutoScrolling=setAutoScrolling,FP.setRecordHistory=setRecordHistory,FP.setScrollingSpeed=setScrollingSpeed,FP.setFitToSection=setFitToSection,FP.setLockAnchors=setLockAnchors,FP.setMouseWheelScrolling=setMouseWheelScrolling,FP.setAllowScrolling=setAllowScrolling,FP.setKeyboardScrolling=setKeyboardScrolling,FP.moveSectionUp=moveSectionUp,FP.moveSectionDown=moveSectionDown,FP.silentMoveTo=silentMoveTo,FP.moveTo=moveTo,FP.moveSlideRight=moveSlideRight,FP.moveSlideLeft=moveSlideLeft,FP.fitToSection=fitToSection,FP.reBuild=reBuild,FP.setResponsive=setResponsive,FP.destroy=destroy,init(),bindEvents());var isScrolling=!1,lastScroll=0,touchStartY=0,touchStartX=0,touchEndY=0,touchEndX=0,prevTime=(new Date).getTime(),previousDestTop=0,oldPageY=0,previousHeight=windowsHeight},typeof IScroll!="undefined"&&(IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this),this.wrapper.addEventListener("mousewheel",this),this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this),this.wrapper.removeEventListener("mousewheel",this),this.wrapper.removeEventListener("DOMMouseScroll",this)});var iscrollHandler={refreshId:null,iScrollInstances:[],toggleWheel:function(value){var scrollable=$(SECTION_ACTIVE_SEL).find(SCROLLABLE_SEL);scrollable.each(function(){var iScrollInstance=$(this).data("iscrollInstance");typeof iScrollInstance!="undefined"&&iScrollInstance&&(value?iScrollInstance.wheelOn():iScrollInstance.wheelOff())})},onLeave:function(){iscrollHandler.toggleWheel(!1)},beforeLeave:function(){iscrollHandler.onLeave()},afterLoad:function(){iscrollHandler.toggleWheel(!0)},create:function(element,scrollHeight){var scrollable=element.find(SCROLLABLE_SEL);scrollable.height(scrollHeight),scrollable.each(function(){var $this=$(this),iScrollInstance=$this.data("iscrollInstance");iScrollInstance&&$.each(iscrollHandler.iScrollInstances,function(){$(this).destroy()}),iScrollInstance=new IScroll($this.get(0),iscrollOptions),iscrollHandler.iScrollInstances.push(iScrollInstance),iScrollInstance.wheelOff(),$this.data("iscrollInstance",iScrollInstance)})},isScrolled:function(type,scrollable){var scroller=scrollable.data("iscrollInstance");if(!scroller)return!0;if(type==="top")return scroller.y>=0&&!scrollable.scrollTop();if(type==="bottom")return 0-scroller.y+scrollable.scrollTop()+1+scrollable.innerHeight()>=scrollable[0].scrollHeight},scrollable:function(activeSection){return activeSection.find(SLIDES_WRAPPER_SEL).length?activeSection.find(SLIDE_ACTIVE_SEL).find(SCROLLABLE_SEL):activeSection.find(SCROLLABLE_SEL)},scrollHeight:function(element){return element.find(SCROLLABLE_SEL).children().first().get(0).scrollHeight},remove:function(element){var scrollable=element.find(SCROLLABLE_SEL);if(scrollable.length){var iScrollInstance=scrollable.data("iscrollInstance");iScrollInstance.destroy(),scrollable.data("iscrollInstance",null)}element.find(SCROLLABLE_SEL).children().first().children().first().unwrap().unwrap()},update:function(element,scrollHeight){clearTimeout(iscrollHandler.refreshId),iscrollHandler.refreshId=setTimeout(function(){$.each(iscrollHandler.iScrollInstances,function(){$(this).get(0).refresh()})},150),element.find(SCROLLABLE_SEL).css("height",scrollHeight+"px").parent().css("height",scrollHeight+"px")},wrapContent:function(){return''}}}),+function($){"use strict";var Collapse=function(element,options){this.$element=$(element),this.options=$.extend({},Collapse.DEFAULTS,options),this.transitioning=null,this.options.parent&&(this.$parent=$(this.options.parent)),this.options.toggle&&this.toggle()};Collapse.DEFAULTS={toggle:!0},Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass("width");return hasWidth?"width":"height"},Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;var startEvent=$.Event("show.bs.collapse");this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;var actives=this.$parent&&this.$parent.find("> .panel > .in");if(actives&&actives.length){var hasData=actives.data("bs.collapse");if(hasData&&hasData.transitioning)return;actives.collapse("hide"),hasData||actives.data("bs.collapse",null)}var dimension=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[dimension](0),this.transitioning=1;var complete=function(e){if(e&&e.target!=this.$element[0])return;this.$element.removeClass("collapsing").addClass("collapse in")[dimension]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!$.support.transition)return complete.call(this);var scrollSize=$.camelCase(["scroll",dimension].join("-"));this.$element.one($.support.transition.end,$.proxy(complete,this)).emulateTransitionEnd(350)[dimension](this.$element[0][scrollSize])},Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;var startEvent=$.Event("hide.bs.collapse");this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;var dimension=this.dimension();this.$element[dimension](this.$element[dimension]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var complete=function(e){if(e&&e.target!=this.$element[0])return;this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!$.support.transition)return complete.call(this);this.$element[dimension](0).one($.support.transition.end,$.proxy(complete,this)).emulateTransitionEnd(350)},Collapse.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var old=$.fn.collapse;$.fn.collapse=function(option){return this.each(function(){var $this=$(this),data=$this.data("bs.collapse"),options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=="object"&&option);!data&&options.toggle&&option=="show"&&(option=!option),data||$this.data("bs.collapse",data=new Collapse(this,options)),typeof option=="string"&&data[option]()})},$.fn.collapse.Constructor=Collapse,$.fn.collapse.noConflict=function(){return $.fn.collapse=old,this},$(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var $this=$(this),href,target=$this.attr("data-target")||e.preventDefault()||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,""),_target=href.replace(/^#/,"");if($('[data-id="'+_target+'"]').length)var $target=$('[data-id="'+_target+'"]');else var $target=$(target);var data=$target.data("bs.collapse"),option=data?"toggle":$this.data(),parent=$this.attr("data-parent"),$parent=parent&&$(parent);if(!data||!data.transitioning)$parent&&$parent.find('[data-toggle="collapse"][data-parent="'+parent+'"]').not($this).addClass("collapsed"),$this[$target.hasClass("in")?"addClass":"removeClass"]("collapsed");$target.collapse(option)})}(jQuery),+function($){"use strict";var Tab=function(element){this.element=$(element)};Tab.prototype.show=function(){var $this=this.element,$ul=$this.closest("ul:not(.dropdown-menu)"),selector=$this.data("target");selector||(selector=$this.attr("href"),selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,""));if($this.parent("li").hasClass("active"))return;var previous=$ul.find(".active:last a")[0],e=$.Event("show.bs.tab",{relatedTarget:previous});$this.trigger(e);if(e.isDefaultPrevented())return;var _target=selector.replace(/^#/,"");if($('[data-id="'+_target+'"]').length)var $target=$('[data-id="'+_target+'"]');else var $target=$(selector);this.activate($this.parent("li"),$ul),this.activate($target,$target.parent(),function(){$this.trigger({type:"shown.bs.tab",relatedTarget:previous})})},Tab.prototype.activate=function(element,container,callback){function next(){$active.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),element.addClass("active"),transition?(element[0].offsetWidth,element.addClass("in")):element.removeClass("fade"),element.parent(".dropdown-menu")&&element.closest("li.dropdown").addClass("active"),callback&&callback()}var $active=container.find("> .active"),transition=callback&&$.support.transition&&$active.hasClass("fade");transition?$active.one($.support.transition.end,next).emulateTransitionEnd(150):next(),$active.removeClass("in")};var old=$.fn.tab;$.fn.tab=function(option){return this.each(function(){var $this=$(this),data=$this.data("bs.tab");data||$this.data("bs.tab",data=new Tab(this)),typeof option=="string"&&data[option]()})},$.fn.tab.Constructor=Tab,$.fn.tab.noConflict=function(){return $.fn.tab=old,this},$(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),$(this).tab("show")})}(jQuery),+function($){"use strict";var Tooltip=function(element,options){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",element,options)};Tooltip.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},Tooltip.prototype.init=function(type,element,options){this.enabled=!0,this.type=type,this.$element=$(element),this.options=this.getOptions(options),this.$viewport=this.options.viewport&&$(this.options.viewport.selector||this.options.viewport);var triggers=this.options.trigger.split(" ");for(var i=triggers.length;i--;){var trigger=triggers[i];if(trigger=="click")this.$element.on("click."+this.type,this.options.selector,$.proxy(this.toggle,this));else if(trigger!="manual"){var eventIn=trigger=="hover"?"mouseenter":"focusin",eventOut=trigger=="hover"?"mouseleave":"focusout";this.$element.on(eventIn+"."+this.type,this.options.selector,$.proxy(this.enter,this)),this.$element.on(eventOut+"."+this.type,this.options.selector,$.proxy(this.leave,this))}}this.options.selector?this._options=$.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS},Tooltip.prototype.getOptions=function(options){return options=$.extend({},this.getDefaults(),this.$element.data(),options),options.delay&&typeof options.delay=="number"&&(options.delay={show:options.delay,hide:options.delay}),options},Tooltip.prototype.getDelegateOptions=function(){var options={},defaults=this.getDefaults();return this._options&&$.each(this._options,function(key,value){defaults[key]!=value&&(options[key]=value)}),options},Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(self.timeout),self.hoverState="in";if(!self.options.delay||!self.options.delay.show)return self.show();self.timeout=setTimeout(function(){self.hoverState=="in"&&self.show()},self.options.delay.show)},Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(self.timeout),self.hoverState="out";if(!self.options.delay||!self.options.delay.hide)return self.hide();self.timeout=setTimeout(function(){self.hoverState=="out"&&self.hide()},self.options.delay.hide)},Tooltip.prototype.show=function(){var e=$.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);if(e.isDefaultPrevented())return;var that=this,$tip=this.tip();this.setContent(),this.options.animation&&$tip.addClass("fade");var placement=typeof this.options.placement=="function"?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement,autoToken=/\s?auto?\s?/i,autoPlace=autoToken.test(placement);autoPlace&&(placement=placement.replace(autoToken,"")||"top"),$tip.detach().css({top:0,left:0,display:"block"}).addClass(placement),this.options.container?$tip.appendTo($(document).find(this.options.container)):$tip.insertAfter(this.$element);var pos=this.getPosition(),actualWidth=$tip[0].offsetWidth,actualHeight=$tip[0].offsetHeight;if(autoPlace){var orgPlacement=placement,$parent=this.$element.parent(),parentDim=this.getPosition($parent);placement=placement=="bottom"&&pos.top+pos.height+actualHeight-parentDim.scroll>parentDim.height?"top":placement=="top"&&pos.top-parentDim.scroll-actualHeight<0?"bottom":placement=="right"&&pos.right+actualWidth>parentDim.width?"left":placement=="left"&&pos.left-actualWidthviewportDimensions.top+viewportDimensions.height&&(delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset)}else{var leftEdgeOffset=pos.left-viewportPadding,rightEdgeOffset=pos.left+viewportPadding+actualWidth;leftEdgeOffsetviewportDimensions.width&&(delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset)}return delta},Tooltip.prototype.getTitle=function(){var title,$e=this.$element,o=this.options;return title=$e.attr("data-original-title")||(typeof o.title=="function"?o.title.call($e[0]):o.title),title},Tooltip.prototype.tip=function(){return this.$tip=this.$tip||$(this.options.template)},Tooltip.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},Tooltip.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},Tooltip.prototype.enable=function(){this.enabled=!0},Tooltip.prototype.disable=function(){this.enabled=!1},Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled},Tooltip.prototype.toggle=function(e){var self=e?$(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;self.tip().hasClass("in")?self.leave(self):self.enter(self)},Tooltip.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var old=$.fn.tooltip;$.fn.tooltip=function(option){return this.each(function(){var $this=$(this),data=$this.data("bs.tooltip"),options=typeof option=="object"&&option;if(!data&&option=="destroy")return;data||$this.data("bs.tooltip",data=new Tooltip(this,options)),typeof option=="string"&&data[option]()})},$.fn.tooltip.Constructor=Tooltip,$.fn.tooltip.noConflict=function(){return $.fn.tooltip=old,this}}(jQuery),+function($){"use strict";function transitionEnd(){var el=document.createElement("bootstrap"),transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var name in transEndEventNames)if(el.style[name]!==undefined)return{end:transEndEventNames[name]};return!1}$.fn.emulateTransitionEnd=function(duration){var called=!1,$el=this;$(this).one($.support.transition.end,function(){called=!0});var callback=function(){called||$($el).trigger($.support.transition.end)};return setTimeout(callback,duration),this},$(function(){$.support.transition=transitionEnd()})}(jQuery);
(function($){"use strict";var UNCODE=window.UNCODE||{};window.UNCODE=UNCODE,window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback,element){window.setTimeout(callback,1e3/60)}}(),window.requestTimeout=function(fn,delay){function loop(){var current=(new Date).getTime(),delta=current-start;delta>=delay?fn.call():handle.value=requestAnimFrame(loop)}if(!window.requestAnimationFrame&&!window.webkitRequestAnimationFrame&&(!window.mozRequestAnimationFrame||!window.mozCancelRequestAnimationFrame)&&!window.oRequestAnimationFrame&&!window.msRequestAnimationFrame)return window.setTimeout(fn,delay);var start=(new Date).getTime(),handle=new Object;return handle.value=requestAnimFrame(loop),handle},window.clearRequestTimeout=function(handle){typeof handle!="undefined"&&(window.cancelAnimationFrame?window.cancelAnimationFrame(handle.value):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(handle.value):window.webkitCancelRequestAnimationFrame?window.webkitCancelRequestAnimationFrame(handle.value):window.mozCancelRequestAnimationFrame?window.mozCancelRequestAnimationFrame(handle.value):window.oCancelRequestAnimationFrame?window.oCancelRequestAnimationFrame(handle.value):window.msCancelRequestAnimationFrame?window.msCancelRequestAnimationFrame(handle.value):clearTimeout(handle))},UNCODE.utils=function(){$(".btn-tooltip").tooltip(),$("a").hover(function(){$(this).attr("data-title",$(this).attr("title")),$(this).removeAttr("title")},function(){$(this).attr("title",$(this).attr("data-title"))}),$(".counter").each(function(){var $counter=$(this);if($counter.closest(".owl-carousel").length)return;$counter.addClass("started").counterUp({delay:10,time:1500})}),$("[data-countdown]").each(function(){var $this=$(this),finalDate=$(this).data("countdown");$this.countdown(finalDate,function(event){$this.html(event.strftime("%D "+SiteParameters.days+" %H "+SiteParameters.hours+" %M "+SiteParameters.minutes+" %S "+SiteParameters.seconds+" "))})});var share_button_top=new Share(".share-button",{ui:{flyout:"top center",button_font:!1,button_text:"",icon_font:!1}});this.get_scroll_offset=function(target){var scroll_offset=0,is_first_link=!1;return($(".menu-hide").length||$(".menu-hide-vertical").length)&&UNCODE.bodyTop>UNCODE.wheight/2&&UNCODE.hideMenu(100),$(".menu-sticky .menu-container:not(.menu-hide)").length&&!$(".menu-shrink").length?scroll_offset+=$(".menu-sticky .menu-container").outerHeight():$(".menu-sticky").length&&!$(".menu-hide").length||$(".menu-sticky-vertical").length&&!$(".menu-hide-vertical").length?scroll_offset+=UNCODE.menuMobileHeight:UNCODE.wwidth\/?]/,anchor=this.hash.slice(1);!specialFormat.test(hash)&&location.pathname.replace(/^\//g,"")==this.pathname.replace(/^\//g,"")&&location.hostname==this.hostname&&(specialFormat.test(hash)||$(hash).length&&(anchor=$(hash)))}if(is_scrolltop||anchor!="")if(is_scrolltop){e.preventDefault();var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(bodyTop)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),scrollSpeed==0?($("html, body").scrollTop(0),UNCODE.scrolling=!1):$("html, body").animate({scrollTop:0},scrollSpeed,"easeInOutCubic",function(){UNCODE.scrolling=!1})}else{var scrollSection=typeof anchor=="string"?$("[data-name="+anchor+"]"):anchor;$.each($(".menu-container .menu-item > a, .widget_nav_menu .menu-smart .menu-item > a"),function(index,val){var get_href=$(val).attr("href");get_href!=undefined&&(get_href.substring(get_href.indexOf("#")+1)==anchor?$(val).parent().addClass("active"):$(val).parent().removeClass("active"))});if(scrollSection.length){$("body").hasClass("uncode-scroll-no-history")&&e.preventDefault(),UNCODE.menuOpened&&(UNCODE.wwidth0?calc_scroll-.1:calc_scroll},scrollSpeed,"easeInOutCubic",function(){UNCODE.scrolling=!1,getOffset!=UNCODE.get_scroll_offset(e.target)&&(calc_scroll=scrollSection.offset().top,getOffset=UNCODE.get_scroll_offset(e.target),calc_scroll-=getOffset,$("html, body").animate({scrollTop:delta>0?calc_scroll-.1:calc_scroll},scrollSpeed,"easeInOutCubic",function(){UNCODE.scrolling=!1}))})}}}),$(".header-scrolldown").on("click",function(event){event.preventDefault();var pageHeader=$(event.target).closest("#page-header"),pageHeaderTop=pageHeader.offset().top,pageHeaderHeight=pageHeader.outerHeight(),scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(pageHeaderTop+pageHeaderHeight)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3);var calc_scroll=pageHeaderTop+pageHeaderHeight,getOffset=UNCODE.get_scroll_offset(event.target);calc_scroll-=getOffset;var shrink=typeof $(".navbar-brand").data("padding-shrink")!="undefined"?$(".navbar-brand").data("padding-shrink")*2:36;$(".menu-sticky .menu-container:not(.menu-hide)").length&&$(".menu-shrink").length&&(scrollTo+=UNCODE.menuHeight-($(".navbar-brand").data("minheight")+shrink)),scrollSpeed==0?($("html, body").scrollTop(calc_scroll),UNCODE.scrolling=!1):$("html, body").animate({scrollTop:calc_scroll},scrollSpeed,"easeInOutCubic",function(){UNCODE.scrolling=!1,getOffset!=UNCODE.get_scroll_offset(event.target)&&(calc_scroll=pageHeaderTop+pageHeaderHeight,getOffset=UNCODE.get_scroll_offset(e.target),calc_scroll-=getOffset,$("html, body").animate({scrollTop:calc_scroll},scrollSpeed,"easeInOutCubic",function(){UNCODE.scrolling=!1}))})})),$(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),$(this).tab("show"),requestTimeout(function(){window.dispatchEvent(UNCODE.boxEvent)},300)}),$(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var $this=$(this),href,target=$this.attr("data-target")||e.preventDefault()||(href=$this.attr("href"))&&href.replace(/.*(?=#[^\s]+$)/,""),$target=$(target),data=$target.data("bs.collapse"),option=data?"toggle":$this.data(),parent=$this.attr("data-parent"),$parent=parent&&$(parent),$title=$(this).parent();$parent&&($parent.find('[data-toggle="collapse"][data-parent="'+parent+'"]').not($this).addClass("collapsed"),$title.hasClass("active")?$title.removeClass("active"):($parent.find(".panel-title").removeClass("active"),$title[$target.hasClass("in")?"removeClass":"addClass"]("active"))),$this[$target.hasClass("in")?"addClass":"removeClass"]("collapsed")}),window.uncode_textfill=function(el,loaded){el==undefined&&(el=$("body")),$.each($(".bigtext",el),function(index,val){$(val).bigtext({minfontsize:24}),!$(val).parent().hasClass("blocks-animation")&&!$(val).hasClass("animate_when_almost_visible")&&$(val).css({opacity:1}),requestTimeout(function(){$(val).find(".animate_when_almost_visible").length!=0&&$(val).css({opacity:1})},400)})},window.uncode_textfill(),$(document).on("mouseenter",".col-link",function(e){var uncol=$(e.target).prev(".uncol"),el=uncol.find(".column-background");if(el){$(".btn-container .btn",uncol).toggleClass("active");var elOverlay=$(el[0]).find(".block-bg-overlay");if(elOverlay.length){var getOpacity=$(elOverlay).css("opacity");if(getOpacity!=1){getOpacity=Math.round(getOpacity*100)/100;var newOpacity=getOpacity+.1;$(elOverlay).data("data-opacity",getOpacity),$(elOverlay).css("opacity",newOpacity)}}}}).on("mouseleave",".col-link",function(e){var uncol=$(e.target).prev(".uncol"),el=uncol.find(".column-background");$(".btn-container .btn",uncol).toggleClass("active");if(el){var elOverlay=$(el[0]).find(".block-bg-overlay");if(elOverlay.length){var getOpacity=$(elOverlay).data("data-opacity");$(elOverlay).css("opacity",getOpacity)}}}),$(window).on("load",function(){$(".rev_slider_wrapper").each(function(){var $this=jQuery(this),id_array=$this.attr("id").split("_"),id=id_array[2];id!=undefined&&id!=""&&($.globalEval("revapi"+id+'.bind("revolution.slide.onloaded",function (e, data){ if(jQuery(e.currentTarget).closest(".header-revslider").length){ var style=jQuery(e.currentTarget).find("li").eq(0).attr("data-skin"), scrolltop=jQuery(document).scrollTop(); if(style!=undefined) UNCODE.switchColorsMenu(scrolltop, style);}})'),$.globalEval("revapi"+id+'.bind("revolution.slide.onchange",function (e,data){ if(jQuery(e.currentTarget).closest(".header-revslider").length){ var style=jQuery(e.currentTarget).find("li").eq(data.slideIndex - 1).attr("data-skin"), scrolltop=jQuery(document).scrollTop(); if(style!=undefined) UNCODE.switchColorsMenu(scrolltop, style);}})'))})}),$(window).on("load",function(){$(".ls-wp-container").on("slideTimelineDidStart",function(event,slider){var slideData=slider.slides.current.data,scrolltop=$(document).scrollTop();slideData&&slideData.skin&&UNCODE.switchColorsMenu(scrolltop,slideData.skin)})}),$(window).resize(function(){if($("html").hasClass("admin-mode")){var getAdminBar=$("#wpadminbar");if(getAdminBar.length&&getAdminBar.css("position")!=="hidden"){var getAdminBarHeight=getAdminBar.height();getAdminBar.css("position")==="fixed"?($("html").css({"margin-top":getAdminBarHeight+"px","padding-top":UNCODE.bodyBorder+"px"}),$(".body-borders .top-border").css({"margin-top":getAdminBarHeight+"px"})):($("html").css({"padding-top":UNCODE.bodyBorder+"px","margin-top":"0px"}),$(".body-borders .top-border").css({"margin-top":"0px"}))}}}),this.fb_timeout=undefined,$(window).resize(function(){$(".facebook-object").each(function(index,el){var el=$(el),parentWidth=el.closest(".tmb").width();el.width(parentWidth)}),this.fb_timeout==undefined&&$(".facebook-object").length&&(window.clearTimeout(this.fb_timeout),this.fb_timeout=window.setTimeout(function(msg){window.dispatchEvent(UNCODE.boxEvent)},1e3))});var beforePrint=function(){window.dispatchEvent(new CustomEvent("resize")),window.dispatchEvent(UNCODE.boxEvent)};if(window.matchMedia){var mediaQueryList=window.matchMedia("print");mediaQueryList.addListener(function(mql){mql.matches&&beforePrint()})}window.onbeforeprint=beforePrint},UNCODE.lettering=function(){var setCTA,highlightStill=function(){var $heading_texts=$(".heading-text:not(.animate_inner_when_almost_visible)");$.each($heading_texts,function(key,el){var $heading=$(el);if(!$('.heading-text-highlight-inner[data-animated="yes"]',$heading).length)return;var waypoint=new Waypoint({element:el,handler:function(){var $anims=$('.heading-text-highlight-inner[data-animated="yes"]',this.element),anims_l=$anims.length;$anims.each(function(_key_,_el_){var $anim=$(_el_);$anim.hasClass("heading-text-highlight-animated")||($anim.addClass("heading-text-highlight-animated"),$heading.data("animate")===!0?$anim.css({"-webkit-transition-duration":"0ms","-moz-transition-duration":"0ms","-o-transition-duration":"0ms","transition-duration":"0ms"}):$anim.css({"-webkit-transition-delay":(_key_+2)*200+"ms","-moz-transition-delay":(_key_+2)*200+"ms","-o-transition-delay":(_key_+2)*200+"ms","transition-delay":(_key_+2)*200+"ms"}))}),$anims.last().one("webkitTransitionEnd oTransitionEnd mozTransitionEnd msTransitionEnd transitionEnd",function(e){$heading.data("animate",!0)}),$anims.removeAttr("data-animated")},offset:"100%"})}),Waypoint.refreshAll(),$(document.body).trigger("uncode_waypoints")};requestTimeout(function(){highlightStill(),$(window).on("resize",function(){clearRequestTimeout(setCTA),setCTA=requestTimeout(highlightStill,100)})},400)},UNCODE.menuSystem=function(){function menuMobile(){var $body=$("body"),$mobileToggleButton=$(".mobile-menu-button"),$box,$el,$el_transp,elHeight,check,animating=!1,stickyMobile=!1,menuClose=new CustomEvent("menuMobileClose"),menuOpen=new CustomEvent("menuMobileOpen");UNCODE.menuOpened=!1,$mobileToggleButton.on("click",function(event){var btn=this;if($(btn).hasClass("overlay-close"))return;event.preventDefault();if(UNCODE.wwidth .vmenu-container").css({position:"fixed",top:$(".menu-container").outerHeight()+UNCODE.bodyBorder+UNCODE.adminBarHeight+"px"}),$("body.menu-offcanvas").length?($(".menu-container:not(.sticky-element):not(.isotope-filters)").css({position:"fixed"}),$(".vmenu-container.menu-container:not(.sticky-element):not(.isotope-filters)").css({position:"fixed",top:UNCODE.menuMobileHeight+UNCODE.bodyBorder+UNCODE.adminBarHeight+"px"})):$(".menu-container:not(.sticky-element):not(.isotope-filters)").css({position:"fixed"})),$("body.hmenu-center").length&&$(".menu-hide, .menu-sticky").length&&$(".menu-container:not(.sticky-element):not(.isotope-filters)").css({position:"fixed",top:UNCODE.menuMobileHeight+UNCODE.bodyBorder+UNCODE.adminBarHeight+"px"}),btn.classList.add("close"),$box.addClass("open-items"),$el_transp.length&&$("body.menu-mobile-transparent").length&&$el_transp.addClass("is_mobile_open"),$box.animate({height:elHeight},600,"easeInOutCirc",function(){animating=!1,stickyMobile||$box.css("height","auto")}))},close=function(){animating||(window.dispatchEvent(menuClose),animating=!0,UNCODE.menuOpened=!1,btn.classList.remove("close"),btn.classList.add("closing"),$box.addClass("close"),requestTimeout(function(){$box.removeClass("close"),$box.removeClass("open-items"),btn.classList.remove("closing"),$el_transp.length&&$el_transp.removeClass("is_mobile_open")},500),$box.animate({height:0},{duration:600,easing:"easeInOutCirc",complete:function(elements){$(elements).css("height",""),animating=!1,$('body[class*="vmenu-"]').length&&$(".main-header > .vmenu-container").add(".menu-container:not(.sticky-element):not(.isotope-filters)").css("position","relative"),$body.removeClass("open-overlay-menu")}}))};check=UNCODE.menuOpened?close():open()}}),window.addEventListener("menuMobileTrigged",function(e){$mobileToggleButton.trigger("click")}),window.addEventListener("resize",function(){if($(window).width()UNCODE.mediaQuery&&($(event.currentTarget).hasClass("close")?($(event.currentTarget).removeClass("close"),$(event.currentTarget).addClass("closing"),requestTimeout(function(){$(event.currentTarget).removeClass("closing"),window.dispatchEvent(menuClose)},500)):($(event.currentTarget).addClass("close"),window.dispatchEvent(menuOpen))),$("body").toggleClass("off-opened")})}function menuSmart(){var $menusmart=$('[class*="menu-smart"]');$menusmart.length>0&&($menusmart.smartmenus({subIndicators:!1,subIndicatorsPos:"append",subMenusMinWidth:"13em",subIndicatorsText:"",showTimeout:50,hideTimeout:50,showFunction:function($ul,complete){$ul.fadeIn(0,"linear",complete),$ul.addClass("open-animated")},hideFunction:function($ul,complete){var fixIE=$("html.ie").length;if(fixIE){var $rowParent=$($ul).closest(".main-menu-container");$rowParent.height("auto")}$ul.fadeOut(0,"linear",complete),$ul.removeClass("open-animated")},collapsibleShowFunction:function($ul,complete){$ul.slideDown(400,"easeInOutCirc",function(){12})},collapsibleHideFunction:function($ul,complete){$ul.slideUp(200,"easeInOutCirc",complete)},hideOnClick:!0}),$("body").hasClass("menu-accordion-active")&&requestTimeout(function(){$menusmart.smartmenus("itemActivate",$menusmart.find(".current-menu-item > a").eq(-1)),$menusmart.addClass("menu-smart-init")},1e3))}function menuOverlay(){$(".overlay").length&&$(".overlay").removeClass("hidden"),$(".overlay-sequential, .menu-mobile-animated").length>0&&$(".overlay-sequential .menu-smart > li, .menu-sticky .menu-container .menu-smart > li, .menu-hide.menu-container .menu-smart > li, .vmenu-container .menu-smart > li").each(function(index,el){var transDelay=index/20+.1;$("body").hasClass("menu-mobile-centered")&&$(window).width() ul",$firstNav),$ulSecond=$("> ul",$secondNav),setCTA,appendCTA=function(){return!0},appendSplit=function(){return!0};if($body.hasClass("cta-not-appended"))return!1;($body.hasClass("menu-offcanvas")||$body.hasClass("menu-overlay")||$body.hasClass("hmenu-center-split"))&&$cta.length&&($ulCta=$("> ul",$cta),appendCTA=function(){UNCODE.wwidth ';OKEvents.utils.isMobile()?target.append('
'):(base.options.controls===3&&target.append(mask),base.options.adproof===1?target.append('
'):target.append('
')),$("#okplayer-mask-"+base.options.id).css("background-image","url("+BLANK_GIF+")"),base.options.playlist.list===null?base.options.video.provider==="youtube"?base.loadYouTubeAPI():base.options.video.provider==="vimeo"&&(base.options.volume/=100,base.loadVimeoAPI()):base.loadYouTubeAPI()}},base.setOptions=function(){for(var key in this.options)this.options[key]===!0&&(this.options[key]=1),this.options[key]===!1&&(this.options[key]=3);base.options.playlist.list===null&&(base.options.video=base.determineProvider()),$(window).data("okoptions-"+base.options.id,base.options)},base.insertJS=function(src,callback){var tag=document.createElement("script");callback&&(tag.readyState?tag.onreadystatechange=function(){if(tag.readyState==="loaded"||tag.readyState==="complete")tag.onreadystatechange=null,callback()}:tag.onload=function(){callback()}),tag.src=src;var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)},base.loadYouTubeAPI=function(callback){base.insertJS("https://www.youtube.com/player_api")},base.loadYouTubePlaylist=function(){player.loadPlaylist(base.options.playlist.list,base.options.playlist.index,base.options.playlist.startSeconds,base.options.playlist.suggestedQuality)},base.loadVimeoAPI=function(){var source="//player.vimeo.com/video/"+base.options.video.id+"?background=1&api=1&title=0&byline=0&portrait=0&playbar=0&loop="+base.options.loop+"&autoplay="+(base.options.autoplay===1?1:0)+"&player_id=okplayer-"+base.options.id,jIframe=$('');$(window).data("okoptions-"+base.options.id).jobject=jIframe,$("#okplayer-"+base.options.id).replaceWith(jIframe[0]),base.insertJS("//f.vimeocdn.com/js/froogaloop2.min.js",function(){vimeoPlayerReady(base.options.id)})},base.determineProvider=function(){var a=document.createElement("a");a.href=base.options.video;if(/youtube.com/.test(base.options.video)||/youtu.be/.test(base.options.video)){var videoid=a.href.split("/")[3].toString(),query=videoid.substring(videoid.indexOf("?")+1);if(query!=""){var vars=query.split("&");for(var i=0;i-1?url.substring(url.indexOf("#")+1):null,autoplay:1,controls:0,volume:0,adproof:0,caller:$this,hd:1,onReady:function(player){var getPlayer=player.c||player,getContainer=$(getPlayer).closest(".background-element");getContainer.length&&UNCODE.initVideoComponent(getContainer[0],".uncode-video-container.video")}})}),$(".background-video-shortcode").each(function(index,el){if(SiteParameters.block_mobile_videos===!0)return!1;var $video_el=$(this),$parent_carousel=$video_el.parents(".uncode-slider").eq(0),video_id=$video_el.attr("id");if(typeof MediaElement=="function")var media=new MediaElement(video_id,{startVolume:0,loop:!0,success:function(mediaElement,domObject){domObject.volume=0,$(mediaElement).data("started",!1),mediaElement.addEventListener("timeupdate",function(e){$(e.target).data("started")||$(mediaElement).data("started",!0)}),mediaElement.addEventListener("loadedmetadata",function(e){mediaElement.play()}),UNCODE.isMobile||requestTimeout(function(){UNCODE.initVideoComponent(document.body,".uncode-video-container.video, .uncode-video-container.self-video")},100),$("html.firefox").length&&!$parent_carousel.length&&mediaElement.play(),mediaElement.addEventListener("play",function(){$(mediaElement).closest(".uncode-video-container").css("opacity","1"),$(mediaElement).closest("#page-header").addClass("video-started"),$(mediaElement).closest(".background-wrapper").find(".block-bg-blend-mode.not-ie").css("opacity","1")},!0)},error:function(){}})});var manageVideoSize=function(){var setVideoFit;$(".wp-block-embed").each(function(){var $this=$(this);if($("iframe",$this).length){var $iframe=$("> iframe, > a > iframe",$this),w=parseFloat($iframe.attr("width")),h=parseFloat($iframe.attr("height")),url=$iframe.attr("src"),ratio,frW;if(typeof url!="undefined"&&url.indexOf("soundcloud")==-1&&h!==0){ratio=h/w;var resizeiFrame=function(){frW=$iframe.width(),console.log(frW,h,w),$iframe.css({height:frW*ratio})};resizeiFrame(),$(window).on("resize load",resizeiFrame)}}})};manageVideoSize()},UNCODE.disableHoverScroll=function(){if(!UNCODE.isMobile&&!UNCODE.isFullPage){var body=document.body,timer;window.addEventListener("scroll",function(){clearRequestTimeout(timer),body.classList&&(body.classList.contains("disable-hover")||body.classList.add("disable-hover"),timer=requestTimeout(function(){body.classList.remove("disable-hover")},300))},!1)}},UNCODE.isotopeLayout=function(){if($(".isotope-layout").length>0){var isotopeContainersArray=[],typeGridArray=[],layoutGridArray=[],screenLgArray=[],screenMdArray=[],screenSmArray=[],transitionDuration=[],$filterItems=[],$filters=$(".isotope-filters"),$itemSelector=".tmb-iso",$items,itemMargin,correctionFactor=0,firstLoad=!0,isOriginLeft=$("body").hasClass("rtl")?!1:!0;$('[class*="isotope-container"]').each(function(){var isoData=$(this).data(),$data_lg,$data_md,$data_sm;$(this).children(".tmb").addClass("tmb-iso"),isoData.lg!==undefined?$data_lg=$(this).attr("data-lg"):$data_lg="1000",isoData.md!==undefined?$data_md=$(this).attr("data-md"):$data_md="600",isoData.sm!==undefined?$data_sm=$(this).attr("data-sm"):$data_sm="480",screenLgArray.push($data_lg),screenMdArray.push($data_md),screenSmArray.push($data_sm),transitionDuration.push($(".t-inside.animate_when_almost_visible",this).length>0?0:"0.5s"),isoData.type=="metro"?typeGridArray.push(!0):typeGridArray.push(!1),isoData.layout!==undefined?layoutGridArray.push(isoData.layout):layoutGridArray.push("masonry"),isotopeContainersArray.push($(this))});var colWidth=function(index){$(isotopeContainersArray[index]).width("");var isPx=$(isotopeContainersArray[index]).parent().hasClass("px-gutter"),widthAvailable=$(isotopeContainersArray[index]).width(),columnNum=12,columnWidth=0,data_vp_height=$(isotopeContainersArray[index]).attr("data-vp-height"),consider_menu=$(isotopeContainersArray[index]).attr("data-vp-menu"),winHeight=UNCODE.wheight-UNCODE.adminBarHeight,$rowContainer,paddingRow,$colContainer,paddingCol;consider_menu&&(winHeight-=UNCODE.menuHeight),data_vp_height==="1"&&($rowContainer=$(isotopeContainersArray[index]).parents(".row-parent").eq(0),paddingRow=parseInt($rowContainer.css("padding-top"))+parseInt($rowContainer.css("padding-bottom")),$colContainer=$(isotopeContainersArray[index]).parents(".uncell").eq(0),paddingCol=parseInt($colContainer.css("padding-top"))+parseInt($colContainer.css("padding-bottom")),winHeight-=paddingRow+paddingCol),isPx?(columnWidth=Math.ceil(widthAvailable/columnNum),$(isotopeContainersArray[index]).width(columnNum*Math.ceil(columnWidth))):columnWidth=$("html.firefox").length?Math.floor(widthAvailable/columnNum):widthAvailable/columnNum,$items=$(isotopeContainersArray[index]).find(".tmb-iso:not(.tmb-carousel)"),itemMargin=parseInt($(isotopeContainersArray[index]).find(".t-inside").css("margin-top"));for(var i=0,len=$items.length;i=screenMdArray[index]&&widthAvailable=screenSmArray[index]&&widthAvailable=widthAvailable?($item.css({width:widthAvailable}),typeGridArray[index]&&$item.children().add($item.find(".backimg")).css({height:height})):($item.css({width:width}),typeGridArray[index]&&$item.children().add($item.find(".backimg")).css({height:height}))}return columnWidth},init_isotope=function(){for(var i=0,len=isotopeContainersArray.length;i0&&el_top>0&&firstRow?firstRow=!1:index==0&&el_top==0&&(firstRow=!0),firstRow?$el.removeClass("tmb-isotope-further-row"):$el.addClass("tmb-isotope-further-row")})};$(isotopeContainersArray[i]).isotope({itemSelector:$itemSelector,layoutMode:$layoutMode,transitionDuration:transitionDuration[i],masonry:{columnWidth:colWidth(i)},vertical:{horizontalAlignment:.5},sortBy:"original-order",isOriginLeft:isOriginLeft}).on("layoutComplete",onLayout($(isotopeContainersArray[i]),0)).on("layoutComplete",function(event,items){typeof items[0]!="undefined"&&$(items[0].element).closest(".off-grid-layout").length&&setIsotopeFirstRow(items)}).on("arrangeComplete",function(event,items){typeof items[0]!="undefined"&&$(items[0].element).closest(".off-grid-layout").length&&(clearRequestTimeout(setIsotopeFirstRowTimeOut),setIsotopeFirstRowTimeOut=requestTimeout(function(){setIsotopeFirstRow(items)},100))});if($(isotopeContainersArray[i]).hasClass("isotope-infinite")){$(isotopeContainersArray[i]).infinitescroll({navSelector:"#"+isotopeId+" .loadmore-button",nextSelector:"#"+isotopeId+" .loadmore-button a",itemSelector:"#"+isotopeId+" .isotope-layout .tmb, #"+isotopeId+" .isotope-filters li",animate:!1,behavior:"local",debug:!1,loading:{selector:"#"+isotopeId+".isotope-system .isotope-footer-inner",speed:0,finished:undefined,msg:$("#"+isotopeId+" .loadmore-button")},errorCallback:function(){var isotope_system=$(this).closest(".isotope-system");$(".loading-button",isotope_system).hide(),$(".loadmore-button",isotope_system).attr("style","display:none !important")}},function(newElements,opts){var $isotope=$(this),isotopeId=$isotope.closest(".isotope-system").attr("id"),filters=new Array,$loading_button=$isotope.closest(".isotope-system").find(".loading-button"),$infinite_button=$isotope.closest(".isotope-system").find(".loadmore-button"),$numPages=$("a",$infinite_button).data("pages"),delay=300;$("a",$infinite_button).html($("a",$infinite_button).data("label")),$infinite_button.show(),$loading_button.hide(),$numPages!=undefined&&opts.state.currPage==$numPages&&$infinite_button.hide(),$("> li",$isotope).remove(),$.each($(newElements),function(index,val){$(val).addClass("tmb-iso"),$(val).is("li")&&filters.push($(val)[0])}),newElements=newElements.filter(function(x){return filters.indexOf(x)<0}),$.each($(filters),function(index,val){$("#"+isotopeId+' a[data-filter="'+$("a",val).attr("data-filter")+'"]').length==0&&$("#"+isotopeId+" .isotope-filters ul").append($(val))}),$isotope.isotope("reloadItems",onLayout($isotope,newElements.length));var getLightbox=UNCODE.lightboxArray["ilightbox_"+isotopeId];typeof getLightbox=="object"&&getLightbox.refresh(),typeof twttr!="undefined"&&twttr.widgets.load(isotopeContainersArray[i])});if($(isotopeContainersArray[i]).hasClass("isotope-infinite-button")){var $infinite_isotope=$(isotopeContainersArray[i]),$infinite_button=$infinite_isotope.closest(".isotope-system").find(".loadmore-button a");$infinite_isotope.infinitescroll("pause"),$infinite_button.on("click",function(event){event.preventDefault();var $infinite_system=$(event.target).closest(".isotope-system"),$infinite_isotope=$infinite_system.find(".isotope-container"),isotopeId=$infinite_system.attr("id");$(event.currentTarget).html(SiteParameters.loading),$infinite_isotope.infinitescroll("resume"),$infinite_isotope.infinitescroll("retrieve"),$infinite_isotope.infinitescroll("pause")})}}}},onLayout=function(isotopeObj,startIndex){window.uncode_textfill(),isotopeObj.css("opacity",1),isotopeObj.closest(".isotope-system").find(".isotope-footer").css("opacity",1),requestTimeout(function(){window.dispatchEvent(UNCODE.boxEvent),UNCODE.adaptive(),$(isotopeObj).find("audio,video").each(function(){$(this).mediaelementplayer({pauseOtherPlayers:!1})}),$(isotopeObj).find(".nested-carousel").length?(UNCODE.carousel($(isotopeObj).find(".nested-carousel")),requestTimeout(function(){boxAnimation($(".tmb-iso",isotopeObj),startIndex,!0,isotopeObj)},200)):boxAnimation($(".tmb-iso",isotopeObj),startIndex,!0,isotopeObj)},100)},boxAnimation=function(items,startIndex,sequential,container){var $allItems=items.length-startIndex,showed=0,index=0;if(container.closest(".owl-item").length==1)return!1;$.each(items,function(index,val){var elInner=$("> .t-inside",val);val[0]&&(val=val[0]),elInner.hasClass("animate_when_almost_visible")&&!elInner.hasClass("force-anim")?new Waypoint({element:val,handler:function(){var element=$("> .t-inside",this.element),parent=$(this.element),currentIndex=parent.index(),delay=sequential?startIndex!==0?currentIndex-$allItems:currentIndex:index,delayAttr=parseInt(element.attr("data-delay"));isNaN(delayAttr)&&(delayAttr=100),delay-=showed;var objTimeout=requestTimeout(function(){element.removeClass("zoom-reverse").addClass("start_animation"),showed=parent.index()},delay*delayAttr);parent.data("objTimeout",objTimeout),this.destroy()},offset:"100%"}):elInner.hasClass("force-anim")?elInner.addClass("start_animation"):elInner.css("opacity",1),index++})};$(".isotope-pagination").length>0&&$(".isotope-system").on("click",".pagination a",function(evt){evt.preventDefault();var filterContainer=$(this).closest(".isotope-system").find(".isotope-filters"),container=$(this).closest(".isotope-system"),calc_scroll=container.closest(".uncol").offset().top,getFilterSpanPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span",filterContainer).css("padding-bottom"),getFilterPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span a",filterContainer).css("padding-bottom"),filterOffset=getFilterSpanPadding!=undefined&&getFilterSpanPadding!=0?parseInt(getFilterSpanPadding.replace("px","")):0;filterOffset+=getFilterPadding!=undefined&&getFilterPadding!=0?parseInt(getFilterPadding.replace("px","")):0,calc_scroll-=filterOffset-1,calc_scroll-=UNCODE.get_scroll_offset();var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),UNCODE.isFullPage||(scrollSpeed==0?$("html, body").scrollTop(calc_scroll):$("html, body").animate({scrollTop:calc_scroll},{easing:"easeInOutQuad",duration:scrollSpeed,complete:function(){UNCODE.scrolling=!1}})),loadIsotope($(this)),evt.preventDefault()}),$filters.on("click","a",function(evt){var $filter=$(this),filterContainer=$filter.closest(".isotope-filters"),filterValue=$filter.attr("data-filter"),container=$filter.closest(".isotope-system").find($(".isotope-layout")),transitionDuration=container.data().isotope.options.transitionDuration,delay=300,filterItems=[];if(!$filter.hasClass("active")){if(filterContainer.hasClass("filter-scroll")){var calc_scroll=container.closest(".uncol").offset().top,getFilterSpanPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span",filterContainer).css("padding-bottom"),getFilterPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span a",filterContainer).css("padding-bottom"),filterOffset=getFilterSpanPadding!=undefined&&getFilterSpanPadding!=0?parseInt(getFilterSpanPadding.replace("px","")):0;filterOffset+=getFilterPadding!=undefined&&getFilterPadding!=0?parseInt(getFilterPadding.replace("px","")):0,calc_scroll-=filterOffset-1,calc_scroll-=UNCODE.get_scroll_offset();var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),UNCODE.isFullPage||(scrollSpeed==0?($("html, body").scrollTop(calc_scroll),UNCODE.scrolling=!1):$("html, body").animate({scrollTop:calc_scroll},{easing:"easeInOutQuad",duration:scrollSpeed,complete:function(){UNCODE.scrolling=!1}}))}filterValue!==undefined?($.each($("> .tmb-iso > .t-inside",container),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse").removeClass("start_animation"),clearRequestTimeout(objTimeout)),transitionDuration==0&&($(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-anim force-anim"))}),requestTimeout(function(){filterValue=="*"?container.removeClass("isotope-filtered"):container.addClass("isotope-filtered"),container.isotope({filter:function(){var block=$(this),filterable=filterValue=="*"||block.hasClass(filterValue),lightboxElements=$("[data-lbox^=ilightbox]",block);return filterable?(lightboxElements.length&&(lightboxElements.removeClass("lb-disabled"),container.data("lbox",$(lightboxElements[0]).data("lbox"))),filterItems.push(block)):lightboxElements.length&&lightboxElements.addClass("lb-disabled"),filterable}}),$(".t-inside.zoom-reverse",container).removeClass("zoom-reverse")},delay),container.isotope("once","arrangeComplete",function(){var getLightbox=UNCODE.lightboxArray[container.data("lbox")];typeof getLightbox=="object"&&getLightbox.refresh(),transitionDuration==0&&requestTimeout(function(){boxAnimation(filterItems,0,!1,container)},100),requestTimeout(function(){Waypoint.refreshAll()},2e3)})):($.each($("> .tmb-iso > .t-inside",container),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse").removeClass("start_animation"),clearRequestTimeout(objTimeout)),transitionDuration==0&&($(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-anim force-anim"))}),container.parent().addClass("isotope-loading"),loadIsotope($filter))}evt.preventDefault()}),$(window).on("popstate",function(e){if(e.originalEvent.state===null)return;var params={};if(location.search){var parts=location.search.substring(1).split("&");for(var i=0;i .tmb > .t-inside",isotopeContainer),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse").removeClass("start_animation"),clearRequestTimeout(objTimeout)),$(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-in force-anim")}),requestTimeout(function(){if(isotopeContainer.data("isotope")){isotopeContainer.html($resultItems).children(".tmb").addClass("tmb-iso"),isotopeContainer.isotope("reloadItems",onLayout(isotopeContainer,0)),UNCODE.adaptive();var getLightbox=UNCODE.lightboxArray["ilightbox_"+isotopeContainer.closest(".isotope-system").attr("id")];typeof getLightbox=="object"&&getLightbox.refresh()}},300),$(".pagination",isotopeFooter).remove(),isotopeFooter.append($resultPagination)})};$filters.each(function(i,buttonGroup){var $buttonGroup=$(buttonGroup);$buttonGroup.on("click","a",function(){$buttonGroup.find(".active").removeClass("active"),$(this).addClass("active")})}),window.addEventListener("boxResized",function(e){$.each($(".isotope-layout"),function(index,val){var $layoutMode=$(this).data("layout");$layoutMode===undefined&&($layoutMode="masonry"),$(this).data("isotope")&&($(this).isotope({itemSelector:$itemSelector,layoutMode:$layoutMode,transitionDuration:transitionDuration[index],masonry:{columnWidth:colWidth(index)},vertical:{horizontalAlignment:.5},sortBy:"original-order",isOriginLeft:isOriginLeft}),$(this).isotope("unbindResize")),$(this).find(".mejs-video,.mejs-audio").each(function(){$(this).trigger("resize")})})},!1),init_isotope()}},UNCODE.lightbox=function(){UNCODE.lightboxArray={},requestTimeout(function(){var groupsArr={};$("[data-lbox^=ilightbox]:not(.lb-disabled)").each(function(){var group=this.getAttribute("data-lbox"),values=$(this).data();groupsArr[group]=values});for(var i in groupsArr){var skin=groupsArr[i].skin||"black",path=groupsArr[i].dir||"horizontal",thumbs=!groupsArr[i].notmb||!1,arrows=!groupsArr[i].noarr||!1,social=groupsArr[i].social||!1,deeplink=groupsArr[i].deep||!1,$els=$('[data-lbox="'+i+'"]:not(.lb-disabled)'),counter=$els.length,dataAlbum=$els.attr("data-album");social&&(social={facebook:!0,twitter:!0,reddit:!0,digg:!0,delicious:!0}),UNCODE.lightboxArray[i]=$els.iLightBox({skin:skin,path:path,linkId:deeplink,infinite:!1,smartRecognition:!1,fullAlone:!0,maxScale:1,minScale:.02,overlay:{opacity:.94},controls:{arrows:counter>1||typeof dataAlbum!="undefined"?arrows:!1,fullscreen:!0,thumbnail:thumbs,slideshow:counter>1||typeof dataAlbum!="undefined"?!0:!1},show:{speed:200},hide:{speed:200},social:{start:!1,buttons:social},caption:{start:!1},styles:{nextOpacity:1,nextScale:1,prevOpacity:1,prevScale:1},effects:{switchSpeed:400},slideshow:{pauseTime:5e3},thumbnails:{maxWidth:60,maxHeight:60,activeOpacity:.2},html5video:{preload:!0},callback:{onOpen:function(){$("body").hasClass("ilb-no-bounce")&&typeof iNoBounce!="undefined"&&iNoBounce.enable()},onHide:function(){$("body").hasClass("ilb-no-bounce")&&typeof iNoBounce!="undefined"&&iNoBounce.disable()}}}),$(document).on("infinite-loaded",function(){UNCODE.lightboxArray[i].refresh()})}},100)},UNCODE.carousel=function(container){function firstLoaded(el,event){var el=$(el),uncode_slider=el.find(".uncode-slider");el.find(".owl-carousel").css("opacity",1),uncode_slider.addClass("slider-loaded"),window.uncode_textfill(el.find(".owl-item.active")),requestTimeout(function(){var lastDelayElems=animate_elems(el.find(".owl-item.index-active")),lastDelayThumb=animate_thumb(el.find(".owl-item.active .t-inside"),event);if(uncode_slider.length&&el.find(".owl-carousel").data("autoplay")){lastDelayElems==undefined&&(lastDelayElems=0),lastDelayThumb==undefined&&(lastDelayThumb=0);var maxDelay=Math.max(lastDelayElems,lastDelayThumb);$("> .owl-carousel",uncode_slider).trigger("stop.owl.autoplay"),requestTimeout(function(){$("> .owl-carousel",uncode_slider).trigger("play.owl.autoplay")},maxDelay)}},500)}function navHover(el){var $owlCont=el,$owlPrev=$owlCont.find(".owl-prev"),$owlNext=$owlCont.find(".owl-next"),$owlDots=$owlCont.find(".owl-dots-inside .owl-dots"),$owlPagination=$owlCont.next(),owlPrevW=$owlPrev.outerWidth(),owlNextW=$owlNext.outerWidth(),owlDotsH=$owlDots.innerHeight(),owlTime=400,owlNested=$owlCont.parent().parent().hasClass("nested-carousel");$("body").hasClass("rtl")?($owlPrev.css("margin-right",-owlPrevW),$owlNext.css("margin-left",-owlNextW)):($owlPrev.css("margin-left",-owlPrevW),$owlNext.css("margin-right",-owlNextW)),owlNested||$owlDots.css("bottom",-owlDotsH),$owlCont.mouseenter(function(){owlNested=$owlCont.parent().parent().hasClass("nested-carousel"),$owlPrev.add($owlNext).css({marginLeft:0,marginRight:0}),owlNested||$owlDots.css({opacity:1,bottom:0})}).mouseleave(function(){owlNested=$owlCont.parent().parent().hasClass("nested-carousel"),$("body").hasClass("rtl")?($owlPrev.css("margin-right",-owlPrevW),$owlNext.css("margin-left",-owlNextW)):($owlPrev.css("margin-left",-owlPrevW),$owlNext.css("margin-right",-owlNextW)),owlNested||$owlDots.css({opacity:1,bottom:-owlDotsH})})}function animate_elems($this){var lastDelay;return $.each($(".animate_when_almost_visible:not(.t-inside), .animate_inner_when_almost_visible:not(.t-inside), .animate_when_parent_almost_visible:not(.t-inside)",$this),function(index,val){var element=$(val),delayAttr=element.attr("data-delay"),$first_item=element.closest('.owl-item[data-index="1"]');if($first_item.length&&$first_item.attr("data-already-reached")!=="true")return!1;delayAttr==undefined&&(delayAttr=0),requestTimeout(function(){element.addClass("start_animation")},delayAttr),lastDelay=delayAttr}),lastDelay}function animate_thumb(items,event){var lastDelay,itemIndex,tempIndex=$(event.currentTarget).data("tempIndex")==undefined?$(".owl-item.active",event.currentTarget).first().index():$(event.currentTarget).data("tempIndex"),numActives=$(".owl-item.active",event.currentTarget).length,stagePadding=$(event.currentTarget).data("stagepadding");return stagePadding=stagePadding==undefined||stagePadding==0?!1:!0,$(event.currentTarget).data("tempIndex",event.item.index),$.each(items,function(index,val){var parent=$(val).closest(".owl-item");if(!$(val).hasClass("start_animation"))if(parent.hasClass("active")||stagePadding||$owlWrapper.hasClass("carousel-animation-first"))var thumbInView=new Waypoint.Inview({element:val,enter:function(direction){var element=$(this.element),delayAttr=parseInt(element.attr("data-delay")),itemIndex=element.closest(".owl-item").index()+1,diffItem=Math.abs(itemIndex-tempIndex)-1;itemIndex>tempIndex&&$(event.currentTarget).data("tempIndex",itemIndex),isNaN(delayAttr)&&(delayAttr=100);if(stagePadding){var objTimeout=requestTimeout(function(){element.addClass("start_animation")},index*delayAttr);lastDelay=index*delayAttr}else{$('.owl-item.cloned[data-index="'+element.closest(".owl-item").data("index")+'"] .t-inside',event.currentTarget).addClass("start_animation");var objTimeout=requestTimeout(function(){element.addClass("start_animation")},diffItem*delayAttr);lastDelay=diffItem*delayAttr}parent.data("objTimeout",objTimeout),this.destroy()}})}),lastDelay}function setItemsHeight(item){$.each($(".owl-item",item),function(index,val){var availableThumbHeight=$(".t-inside",$(val)).height(),innerThumbHeight=$(".t-entry-text-tc",$(val)).outerHeight(),difference=availableThumbHeight-innerThumbHeight;if($(".tmb-content-under",val).length){var visualPart=$(".t-entry-visual",val);visualPart.length&&(difference-=$(".t-entry-visual",val).height())}$(".tmb-content-lateral",val).length||$(".t-entry > *:last-child",val).css("transform","translateY("+difference+"px)")})}function setItemsRelHeight(item){$.each($(".owl-item",item),function(index,val){var $rowContainer=$(item).parents(".row-parent").eq(0),paddingRow=parseInt($rowContainer.css("padding-top"))+parseInt($rowContainer.css("padding-bottom")),$colContainer=$(item).parents(".uncell").eq(0),paddingCol=parseInt($colContainer.css("padding-top"))+parseInt($colContainer.css("padding-bottom")),winHeight=UNCODE.wheight,multiplier_h=parseInt($(item).attr("data-vp-height")),data_viewport_h,consider_menu=$(item).data("vp-menu");consider_menu&&(winHeight-=UNCODE.menuHeight),data_viewport_h=Math.ceil(winHeight/(100/multiplier_h))-(UNCODE.bodyBorder+paddingRow+paddingCol),$(".t-inside",val).css("height",data_viewport_h)})}function pauseOnHover(slider){$(".owl-dots, .owl-prev, .owl-next",slider).on({mouseenter:function(){$(slider).addClass("owl-mouseenter"),$(slider).trigger("stop.owl.autoplay")},mouseleave:function(){$(slider).removeClass("owl-mouseenter"),$(slider).trigger("play.owl.autoplay")}})}var $owlContainer=$(".owl-carousel-container",container),$owlWrapper=$owlContainer.closest(".owl-carousel-wrapper"),$owlSelector=$('> [class*="owl-carousel"]',$owlContainer),values={},tempTimeStamp,currentIndex,$owlInsideEqual=[],owlWwidth=UNCODE.wwidth;$owlSelector.each(function(){function manageFluidCarouseHeight(){clearRequestTimeout(setFluidResize),setFluidResize=requestTimeout(function(){UNCODE.wwidth!==owlWwidth&&(owlWwidth=UNCODE.wwidth,setItemsRelHeight($elSelector))},100)}var itemID=$(this).attr("id"),$elSelector=$(("#"+itemID).toString());values.id=itemID,values.items=1,values.columns=3,values.fade=!1,values.nav=!1,values.navmobile=!1,values.navskin="light",values.navspeed=400,values.dots=!1,values.dotsmobile=!1,values.loop=!1,values.autoplay=!1,values.timeout=3e3,values.autoheight=!1,values.stagepadding=0,values.margin=0,values.lg=1,values.md=1,values.sm=1,$.each($(this).data(),function(i,v){values[i]=v}),$(this).closest(".uncode-slider").length?(values.navskin="",values.navmobile=!1):values.navskin=" style-"+values.navskin+" style-override";var setIndexActive=function(event){if(tempTimeStamp!=event.timeStamp)var scrolltop=$(document).scrollTop(),size=event.page.size,i,setIndex=requestTimeout(function(){for(i=0;i .owl-stage-outer > .owl-stage > .owl-item")[itemCont];$(event.currentTarget).closest(".row-slider").length&&(currentItem==undefined&&(currentItem=$(event.currentTarget).children()[i]),$(currentItem).closest("#page-header").length&&($(".row-container > .row > .row-inner > div > .style-dark",currentItem).closest(".uncode-slider").length?UNCODE.switchColorsMenu(scrolltop,"dark"):$(".row-container > .row > .row-inner > div > .style-light",currentItem).closest(".uncode-slider").length&&UNCODE.switchColorsMenu(scrolltop,"light")));var itendIndex=$(currentItem).attr("data-index");isNaN(itendIndex)&&(itendIndex=1),$elSelector.find(".owl-item:not(.new-indexed)").removeClass("index-active"),$elSelector.find('.owl-item[data-index="'+itendIndex+'"]').addClass("index-active").addClass("new-indexed"),$elSelector.find('.owl-item[data-index="'+itendIndex+'"] .counter').each(function(){var $counter=$(this);$counter.addClass("started").counterUp({delay:10,time:1500})})}$elSelector.find(".owl-item.new-indexed").removeClass("new-indexed")},200);tempTimeStamp=event.timeStamp};$elSelector.on("initialized.owl.carousel",function(event){$(".owl-dot.active",$elSelector).on("click",function(){return!1});var thiis=$(event.currentTarget),time=thiis.data("timer-id"),rowParent=thiis.closest(".row-parent");typeof rowParent[0]!="undefined"&&rowParent[0].dispatchEvent(new CustomEvent("owl-carousel-initialized")),time&&clearRequestTimeout(time),thiis.addClass("showControls");var new_time=requestTimeout(function(){thiis.closest(".owl-carousel-container").removeClass("owl-carousel-loading"),thiis.hasClass("owl-height-viewport")&&setItemsRelHeight(event.currentTarget),thiis.hasClass("owl-height-equal")&&setItemsHeight(event.currentTarget),!UNCODE.isMobile&&!$elSelector.closest(".header-wrapper").length&&navHover($elSelector.parent()),thiis.closest(".unequal, .unexpand").length&&UNCODE.setRowHeight(rowParent[0],!0)},350);thiis.data("timer-id",new_time);var scrolltop=$(document).scrollTop();$(event.currentTarget).closest(".uncode-slider").find("video").removeAttr("poster"),$(window).on("load",function(){$(event.currentTarget).data("autoplay")&&$(event.currentTarget).trigger("stop.autoplay.owl");var carouselInView=new Waypoint.Inview({element:$(event.currentTarget)[0],exited:function(){var el=$(this.element);el.data("autoplay")&&(el.trigger("stop.owl.autoplay"),el.data("stopped","true"))},enter:function(direction){var el=$(this.element);requestTimeout(function(){el.data("autoplay")&&(el.trigger("play.owl.autoplay"),el.data("stopped","false"))},100)}})}),$(event.currentTarget).closest(".isotope-system").length||requestTimeout(function(){animate_thumb($(".t-inside",el),event)},400);var currentItem=$(event.currentTarget).find("> .owl-stage-outer > .owl-stage > .owl-item")[event.item.index],currentIndex=$(currentItem).attr("data-index");$.each($(".owl-item:not(.active) .start_animation",$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeClass("start_animation")}),$.each($(".owl-item:not(.active) .already-animated",$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeClass("already-animated")}),$.each($('.owl-item:not(.active) [data-animated="yes"]',$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeAttr("data-animated")}),$.each($(".owl-item.cloned",event.currentTarget),function(index,val){$(".t-entry-visual-cont > a",$(val)).attr("data-lbox-clone",!0)}),$.each($(".owl-item:not(.active)",event.currentTarget),function(index,val){$(val).attr("data-index")!=currentIndex&&($(".start_animation:not(.t-inside)",val).removeClass("start_animation"),$(".already-animated:not(.t-inside)",val).removeClass("already-animated")),$(val).attr("data-index")!=currentIndex&&$('[data-animated="yes"]:not(.t-inside)',val).removeAttr("data-animated"),$(val).attr("data-index")==currentIndex&&$(".animate_when_almost_visible:not(.t-inside), .animate_inner_when_almost_visible:not(.t-inside)",val).addClass("start_animation")});if($(event.currentTarget).closest(".uncode-slider").length){var el=$(event.currentTarget).closest(".row-parent")[0];$(el).data("imgready")?firstLoaded(el,event):el.addEventListener("imgLoaded",function(el){firstLoaded(el.target,event)},!1);var transHeight=$(".hmenu .menu-transparent.menu-primary .menu-container").height()-UNCODE.bodyBorder;transHeight!=null&&requestTimeout(function(){$(event.currentTarget).closest(".uncode-slider").find(".owl-prev, .owl-next").css("paddingTop",transHeight/2+"px")},100)}else{var el=$(event.currentTarget);el.closest(".uncode-slider").addClass("slider-loaded")}requestTimeout(function(){window.uncode_textfill(thiis),$(event.currentTarget).closest(".uncode-slider").length&&$(event.currentTarget).data("autoplay")&&pauseOnHover(event.currentTarget)},500),$(event.currentTarget).closest(".unequal").length&&$owlInsideEqual.push($(event.currentTarget).closest(".row-parent"));var containerClasses="",containerStyle="";$(".owl-dots-classes",$owlContainer).length&&(containerClasses=$(".owl-dots-classes",$owlContainer).attr("class"),containerStyle=$(".owl-dots-classes",$owlContainer).attr("style"),$(".owl-dots-classes",$owlContainer).remove()),containerClasses!==""&&requestTimeout(function(){containerClasses!==""&&$(".owl-dots",$owlContainer).attr("style",containerStyle),containerStyle!==""&&$(".owl-dots",$owlContainer).addClass(containerClasses)},100),$.each($(".column_child.pos-bottom",event.currentTarget),function(index,val){$(val).closest(".row-inner").css({"margin-top":"-1px"})}),setIndexActive(event)}),$elSelector.on("resized.owl.carousel",function(event){$(this).closest(".nested-carousel").length&&requestTimeout(function(){window.dispatchEvent(UNCODE.boxEvent)},200),$(event.currentTarget).hasClass("owl-height-equal")&&setItemsHeight(event.currentTarget),UNCODE.wwidth!==owlWwidth&&(owlWwidth=UNCODE.wwidth,setItemsRelHeight($elSelector)),setIndexActive(event)});var setFluidResize;window.addEventListener("resize",manageFluidCarouseHeight),$elSelector.on("change.owl.carousel",function(event){UNCODE.isMobile||UNCODE.owlStopVideo(event.currentTarget)}),$elSelector.on("changed.owl.carousel",function(event){var $row=$elSelector.parents(".row")[0];typeof $row!="undefined"&&$row.dispatchEvent(new CustomEvent("owl-carousel-changed")),setIndexActive(event)}),$elSelector.on("translate.owl.carousel",function(event){UNCODE.isMobile&&$(event.currentTarget).addClass("owl-translating")}),$elSelector.on("translated.owl.carousel",function(event){var currentItem=$(event.currentTarget).find("> .owl-stage-outer > .owl-stage > .owl-item")[event.item.index],currentIndex=$(currentItem).attr("data-index"),stagePadding=$(event.currentTarget).data("stagepadding");stagePadding=stagePadding==undefined||stagePadding==0?!1:!0,UNCODE.isMobile||UNCODE.owlPlayVideo(event.currentTarget),requestTimeout(function(){var lastDelayElems=animate_elems($(".owl-item.index-active",event.currentTarget)),lastDelayThumb=animate_thumb($(".owl-item"+(stagePadding?"":".active")+" .t-inside",event.currentTarget),event);if($(event.currentTarget).closest(".uncode-slider").length&&$(event.currentTarget).data("autoplay")){lastDelayElems==undefined&&(lastDelayElems=0),lastDelayThumb==undefined&&(lastDelayThumb=0);var maxDelay=Math.max(lastDelayElems,lastDelayThumb);$(event.currentTarget).trigger("stop.owl.autoplay"),requestTimeout(function(){!$(event.currentTarget).hasClass("owl-mouseenter")&&$(event.currentTarget).data("stopped")!="true"&&$(event.currentTarget).trigger("play.owl.autoplay")},maxDelay)}},200),$.each($(".owl-item:not(.active) .start_animation",$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeClass("start_animation")}),$.each($(".owl-item:not(.active) .already-animated",$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeClass("already-animated")}),$.each($('.owl-item:not(.active) [data-animated="yes"]',$(event.target)),function(index,val){$(val).closest(".uncode-slider").length&&$(val).removeAttr("data-animated")}),$.each($(".owl-item:not(.active)",event.currentTarget),function(index,val){$(val).attr("data-index")!=currentIndex&&($(".start_animation:not(.t-inside)",val).removeClass("start_animation"),$(".already-animated:not(.t-inside)",val).removeClass("already-animated")),$(val).attr("data-index")!=currentIndex&&$('[data-animated="yes"]:not(.t-inside)',val).removeClass("start_animation"),$(val).attr("data-index")==currentIndex&&$(".animate_when_almost_visible:not(.t-inside), .animate_inner_when_almost_visible:not(.t-inside)",val).addClass("start_animation")}),UNCODE.isMobile&&$(event.currentTarget).removeClass("owl-translating"),setIndexActive(event)}),UNCODE.wwidth25&&(values.stagepadding=25),$elSelector.owlCarousel({items:values.items,animateIn:values["fade"]==1?"fadeIn":null,animateOut:values["fade"]==1?"fadeOut":null,nav:values.nav,dots:values.dots,loop:values.loop,stagePadding:values.stagepadding,margin:0,video:!0,autoWidth:!1,autoplay:!1,autoplayTimeout:values.timeout,autoplaySpeed:values.navspeed,autoplayHoverPause:$(this).closest(".uncode-slider").length?!1:!0,autoHeight:$(this).hasClass("owl-height-equal")?!1:$(this).hasClass("owl-height-auto")?!0:values.autoheight,rtl:$("body").hasClass("rtl")?!0:!1,fluidSpeed:!0,navSpeed:values.navspeed,dotsSpeed:values.navspeed/values.items,navClass:["owl-prev"+values.navskin,"owl-next"+values.navskin],navText:['
','
'],navContainer:values.nav?$elSelector:!1,responsiveClass:!0,responsiveBaseElement:".box-container",responsive:{0:{items:values.sm,nav:values.navmobile,dots:values.dotsmobile,dotsSpeed:values.navspeed/values.sm},480:{items:values.sm,nav:values.navmobile,dots:values.dotsmobile,dotsSpeed:values.navspeed/values.sm},570:{items:values.md,nav:values.navmobile,dots:values.dotsmobile,dotsSpeed:values.navspeed/values.md},960:{items:values.lg,dotsSpeed:values.navspeed/values.lg}}});var transDuration=parseFloat(values.navspeed)*.3,transDuration2=parseFloat(values.navspeed)*.8;$(".owl-item .tmb",$elSelector).css({"-webkit-transition-delay":transDuration+"ms","-moz-transition-delay":transDuration+"ms","-o-transition-delay":transDuration+"ms","transition-delay":transDuration+"ms","-webkit-transition-duration":transDuration2+"ms","-moz-transition-duration":transDuration2+"ms","-o-transition-duration":transDuration2+"ms","transition-duration":transDuration2+"ms"}),requestTimeout(function(){for(var i=$owlInsideEqual.length-1;i>=0;i--)UNCODE.setRowHeight($owlInsideEqual[i])},300),$(window).on("load",function(){var $elCarousel=$elSelector.data("owl.carousel");if(typeof $elCarousel!="undefined"){$elCarousel.trigger("refreshed");for(var i=$owlInsideEqual.length-1;i>=0;i--)UNCODE.setRowHeight($owlInsideEqual[i])}})})},UNCODE.owlPlayVideo=function(carousel){var player,iframe;$(".owl-item.active .uncode-video-container",carousel).each(function(index,val){var content=$(val).html();if(content==""){var getCloned=$('.owl-item:not(.active) .uncode-video-container[data-id="'+$(this).attr("data-id")+'"]').children().first().clone();$(val).append(getCloned)}if($(this).attr("data-provider")=="vimeo")iframe=$(this).find("iframe"),player=$f(iframe[0]),player.api("play");else if($(this).attr("data-provider")=="youtube")youtubePlayers[$(this).attr("data-id")]!=undefined&&youtubePlayers[$(this).attr("data-id")].playVideo();else{var player=$(this).find("video");player.length&&($(this).find("video")[0].volume=0,$(this).find("video")[0].play(),$(val).css("opacity",1))}})},UNCODE.owlStopVideo=function(carousel){$(".owl-item .uncode-video-container",carousel).each(function(index,val){var player,iframe;if($(this).attr("data-provider")=="vimeo")iframe=$(this).find("iframe"),player=$f(iframe[0]),player.api("pause");else if($(this).attr("data-provider")=="youtube")youtubePlayers[$(this).attr("data-id")]!=undefined&&youtubePlayers[$(this).attr("data-id")].pauseVideo();else{var player=$(this).find("video");player.length&&($(this).find("video")[0].volume=0,$(this).find("video")[0].play())}})},UNCODE.animations=function(){var highlightComplexFunc=function($wrap){var $lines=$(".heading-line-wrap",$wrap),not_animate=!1;$wrap.data("animate")===!0&&(not_animate=!0),$lines.each(function(_key,_value){var $line=$(_value),$inners=$(".split-word-inner",$line),$highlights=$(".heading-text-highlight-inner",$line);$('.heading-text-highlight-inner[data-animated="yes"]',$line).length&&(not_animate?($highlights.each(function(h_key,high){var $highlight=$(high);$highlight.css({"-webkit-transition-duration":"0ms","-moz-transition-duration":"0ms","-o-transition-duration":"0ms","transition-duration":"0ms"})}),$highlights.removeAttr("data-animated")):$inners.last().one("webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd",function(e){var delay=0;$highlights.each(function(h_key,high){var $highlight=$(high),$split=$highlight.closest(".split-word"),$nextSplit=$split.next(),$next=$(".heading-text-highlight-inner",$nextSplit),countCh=$split.text().length;$highlight.css({"-webkit-transition-duration":30*countCh+"ms","-moz-transition-duration":30*countCh+"ms","-o-transition-duration":30*countCh+"ms","transition-duration":30*countCh+"ms"}),delay+=30*countCh,$next.css({"-webkit-transition-delay":delay+"ms","-moz-transition-delay":delay+"ms","-o-transition-delay":delay+"ms","transition-delay":delay+"ms"})}),$highlights.removeAttr("data-animated"),_key+1===$lines.length&&$wrap.data("animate",!0)}))})};$.each($(".header-content-inner"),function(index,val){var element=$(val),transition="";element.hasClass("top-t-bottom")&&(transition="top-t-bottom"),element.hasClass("bottom-t-top")&&(transition="bottom-t-top"),element.hasClass("left-t-right")&&(transition="left-t-right"),element.hasClass("right-t-left")&&(transition="right-t-left"),element.hasClass("zoom-in")&&(transition="zoom-in"),element.hasClass("zoom-out")&&(transition="zoom-out"),element.hasClass("alpha-anim")&&(transition="alpha-anim");if(transition!=""){$(val).removeClass(transition);var container=element,containerDelay=container.attr("data-delay"),containerSpeed=container.attr("data-speed"),items=$(".header-title > *, .post-info",container);$.each(items,function(index,val){var element=$(val),delayAttr=containerDelay!=undefined?containerDelay:400;element.hasClass("animate_when_almost_visible")||(delayAttr=Number(delayAttr)+400*index,containerSpeed!=undefined&&element.attr("data-speed",containerSpeed),element.addClass(transition+" animate_when_almost_visible").attr("data-delay",delayAttr))}),container.css("opacity",1)}}),window.waypoint_animation=function(){$.each($(".animate_when_almost_visible:not(.start_animation):not(.t-inside), .tmb-media .animate_when_almost_visible:not(.start_animation)"),function(index,val){if($(val).hasClass("el-text-split"))return!0;var run=!0,$carousel=$(val).closest(".owl-carousel"),$first_item=$(val).closest('.owl-item[data-index="1"]'),$all_first=$('.owl-item[data-index="1"]',$carousel);$carousel.length&&(!$first_item.length||$first_item.attr("data-already-reached")==="true")&&(run=!1),run&&new Waypoint({element:val,handler:function(){var element=$(this.element),index=element.index(),delayAttr=element.attr("data-delay");delayAttr==undefined&&(delayAttr=0),requestTimeout(function(){$first_item.length&&$first_item.attr("data-already-reached")!==!0&&$all_first.attr("data-already-reached","true"),element.addClass("start_animation")},delayAttr),this.destroy()},offset:UNCODE.isFullPage?"100%":"90%"})}),$.each($(".animate_inner_when_almost_visible"),function(index,val){var run=!0,$carousel=$(val).closest(".owl-carousel"),$first_item=$(val).closest('.owl-item[data-index="1"]'),$all_first=$('.owl-item[data-index="1"]',$carousel);$carousel.length&&(!$first_item.length||$first_item.attr("data-already-reached")===!0)&&(run=!1),run&&new Waypoint({element:val,handler:function(){var $element=$(this.element),$childs=$(".animate_when_parent_almost_visible",$element);$childs.each(function(key,el){var $child=$(el),delaySpeed=$child.attr("data-speed"),delayAttr=$child.attr("data-delay"),intervalAttr=$child.attr("data-interval");delayAttr==undefined&&(delayAttr=50*key),requestTimeout(function(){$first_item.length&&$first_item.attr("data-already-reached")!==!0&&$all_first.attr("data-already-reached","true"),$child.addClass("start_animation"),$child.hasClass("anim-line-checker")&&$child.on("webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd",function(e){var $line=$child.closest(".heading-line-wrap")});var $wrapText=$child.closest(".animate_inner_when_almost_visible");highlightComplexFunc($wrapText),$child.hasClass("anim-tot-checker")&&$child.on("webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd",function(e){$child.hasClass("anim-tot-checker")&&$wrapText.addClass("already-animated")})},delayAttr)}),$element.addClass("start_animation"),this.destroy()},offset:UNCODE.isFullPage?"100%":"90%"})})};var runWaypoints=function(){requestTimeout(function(){window.waypoint_animation()},400)};runWaypoints(),$(document.body).on("uncode_waypoints",runWaypoints);var $wraps=$(".tmb.tmb-image-anim-move .t-inside").has(".t-background-cover, img:not(.avatar)");$wraps.each(function(){var $wrap=$(this),$pushed=$(".t-entry-visual",$wrap),$img=$(".t-background-cover, .t-entry-visual img:not(.avatar)",$wrap),$tmb=$wrap.closest(".tmb"),parentOffset,wrapW,wrapH;$pushed.on("mousemove",function(e){parentOffset=$pushed.offset(),wrapW=$pushed.width(),wrapH=$pushed.height();var pageX=(e.pageX-parentOffset.left)/wrapW*100+"% ",pageY=(e.pageY-parentOffset.top)/wrapH*100+"%";$img.css({"transform-origin":pageX+pageY})}),$wrap.on("mouseover",function(e){$img.css({transform:"scale(1.05)"})}).on("mouseleave",function(e){$img.css({transform:"scale(1)"})})})},UNCODE.tapHover=function(){var $el=$("html.touch .tmb:not(.tmb-no-double-tap) .t-entry-visual-cont > a"),elClass="hover";$el.on("click",function(e){var link=$(this);return link.hasClass(elClass)?!0:(link.addClass("hover"),$el.not(this).removeClass(elClass),e.preventDefault(),!1)})},UNCODE.onePage=function(isMobile){function init_onepage(){isSectionscroller&&!isMobile&&!$("body").hasClass("uncode-scroll-no-dots")&&!UNCODE.isFullPageSnap&&$("").prependTo("body"),last=$(".onepage-pagination li").last().find("a").data("index"),$.each($("div[data-parent=true]"),function(index,val){$(this).attr("data-section",index);if(isMobile)return;var sectionDown=new Waypoint({element:val,handler:function(direction){direction=="down"&&changeMenuActive(this.element,index)},offset:function(){return 5+getOffset()}}),sectionUp=new Waypoint({element:val,handler:function(direction){direction=="up"&&changeMenuActive(this.element,index)},offset:function(){return-5-getOffset()}});if(isSectionscroller){var label;$(this).attr("data-label")!=undefined?label=$(this).attr("data-label"):label="";var getName=$(this).attr("data-name");getName==undefined&&(getName=index),label!=""&&(isOnePage=!0,label=''+label+" ",$("ul.onepage-pagination").append(" "+label+" "))}}),isSectionscroller&&$.each($("ul.onepage-pagination li"),function(index,val){var $this=$(val);$this.on("click",function(evt){$("body").hasClass("uncode-scroll-no-history")&&evt.preventDefault(),Waypoint.refreshAll();var el=$("a",evt.currentTarget);current=lastScrolled=parseInt(el.attr("data-index")),lastScrolled+=1,scrollBody(current)})});var goToSection=parseInt(window.location.hash.replace(/[^\d.]/g,""));isNaN(goToSection)&&window.location.hash!=undefined&&window.location.hash!=""&&(goToSection=String(window.location.hash).replace(/^#/,""),goToSection=Number($("[data-name="+goToSection+"]").attr("data-section"))),typeof goToSection=="number"&&!isNaN(goToSection)&&(current=lastScrolled=goToSection,requestTimeout(function(){scrollBody(goToSection)},500))}function changeMenuActive(section,index){current=lastScrolled=parseInt($(section).attr("data-section"));if(isOnePage){var newSection=$(".onepage-pagination li a[data-index="+index+"]");newSection.length&&($("ul.onepage-pagination li a").removeClass("is-selected"),newSection.addClass("is-selected"));var getName=$("[data-section="+index+"]").attr("data-name");getName!=undefined&&getName!==""&&$.each($(".menu-container .menu-item > a, .widget_nav_menu .menu-smart .menu-item > a"),function(i,val){var get_href=$(val).attr("href");get_href!=undefined&&get_href.substring(get_href.indexOf("#")+1)==getName&&($(val).closest("ul").find(".active").removeClass("active"),$(val).parent().addClass("active"))})}}var current=0,last=0,lastScrollTop=0,forceScroll=!1,lastScrolled=0,isSectionscroller=$(".main-onepage").length?!0:!1,isOnePage=!1,getOffset=function(){var calculateOffset=$(".menu-sticky .menu-container:not(.menu-hide)").length&&$(window).width()>UNCODE.mediaQuery?$(".menu-sticky .menu-container:not(.menu-hide)").outerHeight():0;return calculateOffset};isOnePage&&$(window).on("scroll",function(){var bodyTop=document.documentElement.scrollTop||document.body.scrollTop;if(bodyTop==0){$("ul.onepage-pagination li a").removeClass("is-selected"),$(".onepage-pagination li a[data-index=0]").addClass("is-selected");var getName=$("[data-section=0]").attr("data-name");getName!=undefined&&getName!==""&&$.each($(".menu-container .menu-item > a"),function(i,val){var get_href=$(val).attr("href");get_href!=undefined&&get_href.substring(get_href.indexOf("#")+1)==getName&&($(val).closest("ul").find(".active").removeClass("active"),$(val).parent().addClass("active"))})}else if(window.innerHeight+bodyTop>=$(".box-container").height()){var lastSection=$('.onepage-pagination li a[data-index="'+last+'"]');lastSection.length&&($("ul.onepage-pagination li a").removeClass("is-selected"),lastSection.addClass("is-selected"))}});var scrollBody=function(index){$("ul.onepage-pagination li a").removeClass("is-selected"),$(".onepage-pagination li a[data-index="+index+"]").addClass("is-selected");var getSection=$("[data-section="+index+"]"),scrollTo;if(getSection==undefined)return;var body=$("html, body"),bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-($("[data-section="+index+"]").length?$("[data-section="+index+"]").offset().top:0),getOffset=UNCODE.get_scroll_offset(index);if(typeof getSection.offset()=="undefined")return;scrollTo=getSection.offset().top;var shrink=typeof $(".navbar-brand").data("padding-shrink")!="undefined"?$(".navbar-brand").data("padding-shrink")*2:36;$(".menu-sticky .menu-container:not(.menu-hide)").length&&$(".menu-shrink").length&&(scrollTo+=UNCODE.menuHeight-($(".navbar-brand").data("minheight")+shrink)),$(".menu-sticky .menu-container:not(.menu-hide)").length&&!$(".menu-shrink").length?index===0?scrollTo=0:scrollTo-=$(".menu-sticky .menu-container").outerHeight():scrollTo-=getOffset;var scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),index!=0&&(UNCODE.scrolling=!0),scrollSpeed==0?(body.scrollTop(delta>0?scrollTo-.1:scrollTo),UNCODE.scrolling=!1):body.animate({scrollTop:delta>0?scrollTo-.1:scrollTo},scrollSpeed,"easeInOutQuad",function(){requestTimeout(function(){UNCODE.scrolling=!1,getOffset!=UNCODE.get_scroll_offset(index)&&scrollBody(index)},100)})};init_onepage()},UNCODE.stickyElements=function(){var isMobile_wide=UNCODE.isMobile&&UNCODE.wwidth<1024;if(!isMobile_wide){var calculateOffset=function(el){var getRowPadding=$(el).hasClass("with-bg")?0:$(el).closest(".row-parent").css("padding-top"),sideOffset=getRowPadding!=undefined&&getRowPadding!=0?parseInt(getRowPadding.replace("px","")):0,shrink=typeof $(".navbar-brand").data("padding-shrink")!="undefined"?$(".navbar-brand").data("padding-shrink")*2:0;return sideOffset+=UNCODE.bodyBorder,UNCODE.adminBarHeight>0&&(sideOffset+=UNCODE.adminBarHeight),$(".menu-sticky .menu-container:not(.menu-hide)").length&&($(".menu-shrink").length?sideOffset+=parseFloat($(".navbar-brand").data("minheight"))+shrink:sideOffset+=$("body.hmenu-center").length?$("#masthead .menu-container").outerHeight():parseInt(UNCODE.menuMobileHeight)),sideOffset},initStickyElement=function(){$.each($(".sticky-element"),function(index,element){$(element).stick_in_parent({sticky_class:"is_stucked",offset_top:calculateOffset(element),bottoming:!0,inner_scrolling:!1})})};requestTimeout(function(){$(".sticky-element").length&&($(window).width()>UNCODE.mediaQuery&&initStickyElement(),$(window).on("resize",function(event){$(window).width()>UNCODE.mediaQuery?initStickyElement():$(".sticky-element").trigger("sticky_kit:detach")}))},1e3)}},UNCODE.twentytwenty=function(){if(!$(".twentytwenty-container").length)return;(function(module){typeof define=="function"&&define.amd?define(["jquery"],module):module(jQuery)})(function(jQuery,undefined){function Timer(fn){function trigger(time){active?(callback(),requestFrame(trigger),running=!0,active=!1):running=!1}var callback=fn,active=!1,running=!1;this.kick=function(fn){active=!0,running||trigger()},this.end=function(fn){var cb=callback;if(!fn)return;running?(callback=active?function(){cb(),fn()}:fn,active=!0):fn()}}function returnTrue(){return!0}function returnFalse(){return!1}function preventDefault(e){e.preventDefault()}function preventIgnoreTags(e){if(ignoreTags[e.target.tagName.toLowerCase()])return;e.preventDefault()}function isLeftButton(e){return e.which===1&&!e.ctrlKey&&!e.altKey}function identifiedTouch(touchList,id){var i,l;if(touchList.identifiedTouch)return touchList.identifiedTouch(id);i=-1,l=touchList.length;while(++i "),container.append("
");var beforeImg=container.find("img:first"),afterImg=container.find("img:last");container.append("
");var slider=container.find(".twentytwenty-handle");slider.append("
"),slider.append("
"),container.addClass("twentytwenty-container"),beforeImg.addClass("twentytwenty-before"),afterImg.addClass("twentytwenty-after");var overlay=container.find(".twentytwenty-overlay");overlay.append("
"),overlay.append("
");var calcOffset=function(dimensionPct){var w=beforeImg.width(),h=beforeImg.height();return{w:w+"px",h:h+"px",cw:dimensionPct*w+"px",ch:dimensionPct*h+"px"}},adjustContainer=function(offset){sliderOrientation==="vertical"?beforeImg.css("clip","rect(0,"+offset.w+","+offset.ch+",0)"):beforeImg.css("clip","rect(0,"+offset.cw+","+offset.h+",0)"),container.css("height",offset.h)},adjustSlider=function(pct){var offset=calcOffset(pct);slider.css(sliderOrientation==="vertical"?"top":"left",sliderOrientation==="vertical"?offset.ch:offset.cw),adjustContainer(offset)};$(window).on("resize.twentytwenty",function(e){adjustSlider(sliderPct)});var offsetX=0,offsetY=0,imgWidth=0,imgHeight=0;slider.on("movestart",function(e){(e.distX>e.distY&&e.distX<-e.distY||e.distX
-e.distY)&&sliderOrientation!=="vertical"?e.preventDefault():(e.distXe.distY&&e.distX>-e.distY)&&sliderOrientation==="vertical"&&e.preventDefault(),container.addClass("active"),offsetX=container.offset().left,offsetY=container.offset().top,imgWidth=beforeImg.width(),imgHeight=beforeImg.height()}),slider.on("moveend",function(e){container.removeClass("active")}),slider.on("move",function(e){container.hasClass("active")&&(sliderPct=sliderOrientation==="vertical"?(e.pageY-offsetY)/imgHeight:(e.pageX-offsetX)/imgWidth,sliderPct<0&&(sliderPct=0),sliderPct>1&&(sliderPct=1),adjustSlider(sliderPct))}),container.find("img").on("mousedown",function(event){event.preventDefault()}),$(window).trigger("resize.twentytwenty")})},$(".twentytwenty-container").twentytwenty()},UNCODE.justifiedGallery=function(){if($(".justified-layout").length>0){var justifiedContainersArray=[],typeGridArray=[],layoutGridArray=[],screenLgArray=[],screenMdArray=[],screenSmArray=[],transitionDuration=[],$filterItems=[],$filters=$(".isotope-filters"),$itemSelector=".tmb",$items,itemMargin,correctionFactor=0,firstLoad=!0,isOriginLeft=$("body").hasClass("rtl")?!1:!0;$('[class*="justified-container"]').each(function(){var isoData=$(this).data(),$data_lg,$data_md,$data_sm;isoData.lg!==undefined?$data_lg=$(this).attr("data-lg"):$data_lg="1000",isoData.md!==undefined?$data_md=$(this).attr("data-md"):$data_md="600",isoData.sm!==undefined?$data_sm=$(this).attr("data-sm"):$data_sm="480",screenLgArray.push($data_lg),screenMdArray.push($data_md),screenSmArray.push($data_sm),transitionDuration.push($(".t-inside.animate_when_almost_visible",this).length>0?0:"0.5s"),isoData.type=="metro"?typeGridArray.push(!0):typeGridArray.push(!1),isoData.layout!==undefined?layoutGridArray.push(isoData.layout):layoutGridArray.push("masonry"),justifiedContainersArray.push($(this))});var init_justifiedGallery=function(){for(var i=0,len=justifiedContainersArray.length;i .t-inside",val);val[0]&&(val=val[0]),elInner.hasClass("animate_when_almost_visible")&&!elInner.hasClass("force-anim")?new Waypoint({element:val,handler:function(){var element=$("> .t-inside",this.element),parent=$(this.element),currentIndex=parent.index(),delay=sequential?startIndex!==0?currentIndex-$allItems:currentIndex:index,delayAttr=parseInt(element.attr("data-delay"));isNaN(delayAttr)&&(delayAttr=100),delay-=showed;var objTimeout=requestTimeout(function(){element.removeClass("zoom-reverse").addClass("start_animation"),showed=parent.index()},delay*delayAttr);parent.data("objTimeout",objTimeout),this.destroy()},offset:"100%"}):(elInner.removeClass("animate_when_almost_visible"),$(val).addClass("no-waypoint-animation")),index++})};$filters.on("click","a",function(evt){var $filter=$(this),filterContainer=$filter.closest(".isotope-filters"),filterValue=$filter.attr("data-filter"),container=$filter.closest(".justified-system").find($(".justified-layout")),lastRow=container.data("last-row"),transitionDuration=0,delay=300,filterItems=[];lastRow=typeof lastRow=="undefined"||lastRow===""?"nojustify":lastRow;if(!$filter.hasClass("active")){if(filterContainer.hasClass("filter-scroll")){var calc_scroll=container.closest(".uncol").offset().top,getFilterSpanPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span",filterContainer).css("padding-bottom"),getFilterPadding=filterContainer.hasClass("with-bg")?0:$(".filter-show-all span a",filterContainer).css("padding-bottom"),filterOffset=getFilterSpanPadding!=undefined&&getFilterSpanPadding!=0?parseInt(getFilterSpanPadding.replace("px","")):0;filterOffset+=getFilterPadding!=undefined&&getFilterPadding!=0?parseInt(getFilterPadding.replace("px","")):0,calc_scroll-=filterOffset-1,calc_scroll-=UNCODE.get_scroll_offset();var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),UNCODE.isFullPage||(scrollSpeed==0?($("html, body").scrollTop(calc_scroll),UNCODE.scrolling=!1):$("html, body").animate({scrollTop:calc_scroll},{easing:"easeInOutQuad",duration:scrollSpeed,complete:function(){UNCODE.scrolling=!1}}))}filterValue!==undefined?($.each($("> .tmb > .t-inside",container),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse"),clearRequestTimeout(objTimeout)),transitionDuration==0&&($(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-anim force-anim"))}),requestTimeout(function(){var $block,selector,lightboxElements,$boxes;filterValue!==""&&filterValue!=="*"?($("[data-lbox^=ilightbox]",container).addClass("lb-disabled"),selector="."+filterValue,$.each($(selector,container),function(index,block){lightboxElements=$("[data-lbox^=ilightbox]",block),lightboxElements.length&&(lightboxElements.removeClass("lb-disabled"),container.data("lbox",$(lightboxElements[0]).data("lbox"))),filterItems.push(block)}),container.justifiedGallery({filter:selector,lastRow:"nojustify"})):(container.justifiedGallery({filter:!1,lastRow:lastRow}),$("[data-lbox^=ilightbox]",$block).removeClass("lb-disabled"),filterItems=$("> .tmb",container)),$(".t-inside.zoom-reverse",container).removeClass("zoom-reverse");var getLightbox=UNCODE.lightboxArray[container.data("lbox")];typeof getLightbox=="object"&&getLightbox.refresh(),transitionDuration==0&&requestTimeout(function(){boxAnimation(filterItems,0,!1,container)},100),requestTimeout(function(){Waypoint.refreshAll()},2e3)},delay)):($.each($("> .tmb > .t-inside",container),function(index,val){var parent=$(val).parent(),objTimeout=parent.data("objTimeout");objTimeout&&($(val).removeClass("zoom-reverse").removeClass("start_animation"),clearRequestTimeout(objTimeout)),transitionDuration==0&&($(val).hasClass("animate_when_almost_visible")?$(val).addClass("zoom-reverse").removeClass("start_animation"):$(val).addClass("animate_when_almost_visible zoom-reverse zoom-anim force-anim"))}),container.parent().addClass("justified-loading"))}evt.preventDefault()}),$filters.each(function(i,buttonGroup){var $buttonGroup=$(buttonGroup);$buttonGroup.on("click","a",function(){$buttonGroup.find(".active").removeClass("active"),$(this).addClass("active")})}),window.addEventListener("boxResized",function(e){$.each($(".justified-layout"),function(index,val){var $layoutMode=$(this).data("layout");$layoutMode===undefined&&($layoutMode="masonry"),$(this).data("justified")&&($(this).justified({}),$(this).justified("unbindResize")),$(this).find(".mejs-video,.mejs-audio").each(function(){$(this).trigger("resize")})})},!1),init_justifiedGallery()}},UNCODE.preventDoubleTransition=function(){$(".sticky-element .animate_when_almost_visible").each(function(){var $el=$(this).one("webkitAnimationEnd mozAnimationEnd oAnimationEnd animationEnd",function(e){$el.addClass("do_not_reanimate")})})},UNCODE.checkScrollForTabs=function(){var goToSection=window.location.hash.replace("#",""),$index;goToSection=goToSection.replace(/[^-A-Za-z0-9+&@#/%?=~_]/g,""),goToSection=encodeURIComponent(goToSection),$index=$('[data-id="'+goToSection+'"]').closest(".uncode-tabs"),$index.attr("data-parent","parent-"+goToSection),window.location.hash!=undefined&&window.location.hash!=""&&requestTimeout(function(){scrollBody("parent-"+goToSection)},500),$('.page-body a[href*="#"]').not("[data-tab-history]").not(".scroll-top").click(function(e){var hash=e.currentTarget.hash,index=e.currentTarget.closest(".uncode-tabs");$('.uncode-tabs a[href="'+hash+'"][data-tab-history]').length&&($('a[href="'+hash+'"][data-tab-history]').click(),scrollBody(index))});var scrollBody=function(index){var getSection=$('a[href="'+index+'"][data-tab-history]'),scrollTo;getSection.length||(getSection=$('div[data-parent="'+index+'"]'));if(typeof getSection=="undefined"||!getSection.length)return;var body=$("html, body"),bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-(getSection.length?getSection.offset().top:0),getOffset=UNCODE.get_scroll_offset();if(typeof getSection.offset()=="undefined")return;scrollTo=getSection.offset().top-27,scrollTo-=getOffset;var scrollSpeed=SiteParameters.constant_scroll=="on"?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;scrollSpeed<1e3&&SiteParameters.constant_scroll=="on"&&(scrollSpeed=1e3),index!=0&&(UNCODE.scrolling=!0),scrollSpeed==0?(body.scrollTop(delta>0?scrollTo-.1:scrollTo),UNCODE.scrolling=!1):body.animate({scrollTop:delta>0?scrollTo-.1:scrollTo},scrollSpeed,"easeInOutQuad",function(){requestTimeout(function(){UNCODE.scrolling=!1,getOffset!=UNCODE.get_scroll_offset()&&scrollBody(index)},100)})}},UNCODE.printScreen=function(){function changeMediaStyle(){clearRequestTimeout(setResize),setResize=requestTimeout(function(){var $head=document.getElementsByTagName("head")[0],$newStyle=document.createElement("style"),winW=window.innerWidth,printH=window.innerHeight;$newStyle.setAttribute("type","text/css"),$newStyle.setAttribute("media","print"),$newStyle.appendChild(document.createTextNode("@page { size: "+winW+"px "+printH+"px; margin: 0; }")),inlineMediaStyle!=null?$head.replaceChild($newStyle,inlineMediaStyle):$head.appendChild($newStyle),inlineMediaStyle=$newStyle},1e3)}var inlineMediaStyle=null,setResize;changeMediaStyle(),window.addEventListener("resize",changeMediaStyle)},UNCODE.fullPage=function(){if(!UNCODE.isFullPage&&!UNCODE.isFullPageSnap)return $("body").removeClass("uncode-fullpage").removeClass("uncode-fullpage-slide").removeClass("fp-waiting"),!1;requestTimeout(function(){window.scrollTo(0,0)},10);var $masthead=$("#masthead"),$logo=$("#logo-container-mobile"),$logolink=$("[data-minheight]",$logo),logoMinScale=$logolink.data("minheight"),logoMaxScale=$("[data-maxheight]",$logo).data("maxheight"),$mainWrapper=$(".main-wrapper")[0],$container=$(".main-container .post-content"),$mobileMenuWrapper=$(".menu-wrapper"),mobMenuPos,$rows=$container.find(".vc_row").addClass("uncode-scroll-lock fp-auto-height"),$header=$("#page-header").addClass("uncode-scroll-lock fp-auto-height"),headerName=$(".vc_row[data-name]",$header).attr("data-name"),headerLabel=$(".vc_row[data-label]",$header).attr("data-label"),headerWithOpacity=$(".header-scroll-opacity",$header).length,menuHidden=!$("body").hasClass("vmenu")&&$("body").hasClass("uncode-fp-menu-hide")?!0:!1,menuHeight=$masthead.hasClass("menu-transparent")||menuHidden?0:UNCODE.menuHeight,footerAdd=$("body").hasClass("hmenu")&&$("body").hasClass("uncode-fp-menu-shrink")&&!$masthead.hasClass("menu-transparent")?-18:0,$footer=$("#colophon").addClass("uncode-scroll-lock fp-auto-height"),$scrollTop=$(".scroll-top"),scrollBar=!0,effect,animationEndTimeOut,fp_anim_time=900,fp_easing="cubic-bezier(0.37, 0.31, 0.2, 0.85)",is_scrolling=!1,dataNames=[],is_first=!0,no_history=$("body").hasClass("uncode-scroll-no-history"),theres_footer=!0;($("> div",$footer).outerHeight()<2||!$footer.length)&&$("> div",$footer).each(function(index,el){$(el).outerHeight()<2?theres_footer=!1:theres_footer=!0}),$footer.length||(theres_footer=!1),UNCODE.isFullPageSnap||($("body").hasClass("uncode-fullpage-zoom")?effect="scaleDown":$("body").hasClass("uncode-fullpage-parallax")?effect="moveparallax":effect="movecurtain"),$("body").hasClass("uncode-fullpage-trid")&&(fp_anim_time*=2),$header.length&&(headerName!==""&&$header.attr("data-name",headerName),headerLabel!==""&&$header.attr("data-label",headerLabel),$container.prepend($header)),theres_footer&&($container.append($footer),$footer.attr("data-anchor",SiteParameters.slide_footer).data("name",SiteParameters.slide_footer),$("aside.widget ul",$footer).addClass("no-list"));var $all=$rows.add($header);theres_footer&&($all=$all.add($footer)),$all.each(function(index,row){index===0&&$(row).addClass("uncode-scroll-active")}),!UNCODE.isMobile&&!$("body").hasClass("uncode-scroll-no-dots")&&$("").prependTo("body"),$all.each(function(index,val){var getName=$(val).data("name"),label;if(typeof getName=="undefined"||getName=="undefined")getName=SiteParameters.slide_name+"-"+index;dataNames.indexOf(getName)>0&&(getName+="_"+index,$(val).data("name",getName)),dataNames.push(getName),$(val).attr("data-section",index+1).attr("data-anchor",getName),typeof $(val).attr("data-label")!="undefined"?label=$(val).attr("data-label"):label="";if($(val).is($footer))return;label!=""?(label=''+label+" ",$("ul.onepage-pagination").append(" "+label+" ")):label==""&&$("body").hasClass("uncode-empty-dots")&&$("ul.onepage-pagination").append(" ")});var checkVisible=function(el,off){typeof jQuery=="function"&&el instanceof jQuery&&(el=el[0]),off=typeof off=="undefined"?50:off;var rect=el.getBoundingClientRect();return rect.top>=0&&rect.top+off<=(window.innerHeight||document.documentElement.clientHeight)||rect.bottom>=off&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)||rect.top<=0&&rect.bottom>=(window.innerHeight||document.documentElement.clientHeight)},animationEndAction=function(index,nextIndex){var $currentSlide=$('.uncode-scroll-lock[data-section="'+index+'"]',$container),$nextSlide=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),player,iframe;$nextSlide.is($footer)||$(".no-scrolloverflow").removeClass("no-scrolloverflow"),UNCODE.isFullPageSnap||activateKBurns(nextIndex),$("body:not(.uncode-fullpage-zoom) .background-video-shortcode, .uncode-video-container.video",$currentSlide).each(function(index,val){$(this).attr("data-provider")=="vimeo"?(iframe=$(this).find("iframe"),player=$f(iframe[0]),player.api("pause")):$(this).attr("data-provider")=="youtube"?youtubePlayers[$(this).attr("data-id")]!=undefined&&youtubePlayers[$(this).attr("data-id")].pauseVideo():$(this).is("video")&&($(this)[0].volume=0,$(this)[0].pause())}),!UNCODE.isMobile&&headerWithOpacity&&$nextSlide.is($header)&&$header.removeClass("header-scrolled");var $otherEl=$(".uncode-scroll-lock:not(.hidden-scroll)",$container).not($nextSlide);$otherEl.each(function(){var $otherThis=$(this),$bgwrapperOther=$(".background-inner",$otherThis);checkVisible($otherThis)||$bgwrapperOther.removeClass("uncode-kburns").removeClass("uncode-zoomout")});if(!checkVisible($currentSlide)){$currentSlide.removeClass("uncode-scroll-visible");var currentScroll=$(".fp-scrollable",$currentSlide).data("iscrollInstance");typeof currentScroll!="undefined"&&!UNCODE.isFullPageSnap&¤tScroll.scrollTo(0,0,0)}clearRequestTimeout(animationEndTimeOut),animationEndTimeOut=requestTimeout(function(){Waypoint.refreshAll(),$(document.body).trigger("uncode_waypoints");var eventFP=new CustomEvent("fp-slide-changed");window.dispatchEvent(eventFP),is_scrolling=!1,is_first&&($("ul.onepage-pagination a").removeClass("is-selected"),$('ul.onepage-pagination a[data-index="'+(nextIndex-1)+'"]').addClass("is-selected"),is_first=!1)},500)},postLeaveActions=function(nextIndex){if(menuHidden&&!UNCODE.isMobile)return!1;var $el=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),$cols=$(".uncol",$el),anchor=$el.data("anchor");UNCODE.isFullPageSnap||$.each($cols,function(index,val){if($(val).hasClass("style-light"))return $masthead.removeClass("style-dark-override").addClass("style-light-override"),!1;if($(val).hasClass("style-dark"))return $masthead.removeClass("style-light-override").addClass("style-dark-override"),!1}),typeof anchor!="undefined"&&anchor!==""&&$('.menu-item > a[href="#'+anchor+'"]').length&&($(".menu-item").removeClass("active"),$('.menu-item > a[href="#'+anchor+'"]').closest(".menu-item").addClass("active")),UNCODE.isFullPageSnap||activateBackWash(nextIndex)},activateBackWash=function(nextIndex){var $el=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),$bgwrapper;if(!$el.length)return!1;if($el.hasClass("with-zoomout"))$bgwrapper=$(".background-inner:nth-child(1)",$el);else{if(!$(".with-zoomout",$el).length)return!1;$bgwrapper=$(".with-zoomout .background-inner:nth-child(1)",$el)}$bgwrapper.addClass("uncode-zoomout")},activateKBurns=function(nextIndex){var $el=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),$bgwrapper;if(!$el.length)return!1;if($el.hasClass("with-kburns"))$bgwrapper=$(".background-inner:nth-child(1)",$el);else{if(!$(".with-kburns",$el).length)return!1;$bgwrapper=$(".with-kburns .background-inner:nth-child(1)",$el)}$bgwrapper.addClass("uncode-kburns")},activateParallax=function(nextIndex,direction){var $el=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),$cell=$(".fp-tableCell",$el),animationEnd="webkitAnimationEnd animationend",cellAnim;switch(direction){case"up":cellAnim="moveFromTopInner";break;default:cellAnim="moveFromBottomInner"}$cell.css({"animation-name":cellAnim,"animation-duration":fp_anim_time+"ms","animation-delay":"","animation-timing-function":fp_easing,"animation-fill-mode":"both"}).off(animationEnd).on(animationEnd,function(event){event.originalEvent.animationName===cellAnim&&$cell.css({"animation-name":"","animation-duration":"","animation-delay":"","animation-timing-function":"","animation-fill-mode":""})})},scrollHashes=function(){var hash=window.location.hash.replace("#","").split("/"),hashInd;hash[0]!==""&&hash[0]!==SiteParameters.slide_footer?$('.uncode-scroll-lock[data-anchor="'+hash[0]+'"]').length&&(hashInd=$('.uncode-scroll-lock[data-anchor="'+hash[0]+'"]').index("[data-anchor]"),$.fn.fullpage.moveTo(hashInd+1)):hash[0]===""&&$.fn.fullpage.moveTo(1)},hideMenu=function(index,nextIndex){if($("body").hasClass("vmenu")||UNCODE.isFullPageSnap||!$("body").hasClass("uncode-fp-menu-hide"))return!1;var hMenu=UNCODE.menuHeight,transTime=hMenu*2;if(index===1&&nextIndex>1)hMenu*=-1;else{if(index===1||nextIndex!==1)return!1;hMenu=0}$masthead.css({"-webkit-transform":"translate3d(0, "+hMenu+"px, 0)",transform:"translate3d(0, "+hMenu+"px, 0)","-webkit-transition":"transform 0.5s ease-in-out",transition:"transform 0.5s ease-in-out"})},shrinkMenu=function(index,nextIndex){if($("body").hasClass("vmenu")||!$("body").hasClass("uncode-fp-menu-shrink"))return!1;if(index===1&&nextIndex>1)$logo.addClass("shrinked"),$("div",$logo).each(function(index,val){$(val).css({height:logoMinScale,"line-height":logoMinScale}),$(val).hasClass("text-logo")&&$(val).css({"font-size":logoMinScale+"px"})}),requestTimeout(function(){UNCODE.menuMobileHeight=$masthead.outerHeight()},300);else{if(index===1||nextIndex!==1)return!1;$logo.removeClass("shrinked"),$("div",$logo).each(function(index,val){$(val).css({height:logoMaxScale,"line-height":logoMaxScale}),$(val).hasClass("text-logo")&&$(val).css({"font-size":logoMaxScale+"px"})}),requestTimeout(function(){UNCODE.menuMobileHeight=$masthead.outerHeight()},300)}},anchorLink=function(){$container.add(".menu-item").find('a[href*="#"]').click(function(e){var $this=$(e.currentTarget),hash=e.currentTarget.href.split("#"),current=window.location.href.split("#"),ind,currentMenuOpened=UNCODE.menuOpened,go=!1,hash_url=hash[0].replace(/\/?$/,"/"),current_url=current[0].replace(/\/?$/,"/");(hash_url==current_url||hash_url=="")&&hash[1]!=""&&(hash="#"+hash[1],e.preventDefault(),go=!0),go&&($(hash).length?ind=$(hash).closest(".fp-section").index():(hash=hash.slice(1),ind=$('.fp-section[data-anchor="'+hash+'"]').index(".fp-section")),typeof $this.attr("data-filter")!="undefined"&&$this.attr("data-filter")!=""&&(ind=$this.closest(".fp-section").index()),UNCODE.menuOpened=!1,$.fn.fullpage.moveTo(ind+1),UNCODE.menuOpened=currentMenuOpened,UNCODE.menuOpened&&(UNCODE.wwidth a[href="#'+anchor+'"]').length&&($(".menu-item").removeClass("active"),$('.menu-item > a[href="#'+anchor+'"]').closest(".menu-item").addClass("active"))},slideLeave=function(index,nextIndex,direction){var $currentSlide=$('.uncode-scroll-lock[data-section="'+index+'"]',$container),$nextSlide=$('.uncode-scroll-lock[data-section="'+nextIndex+'"]',$container),animationEnd="webkitAnimationEnd animationend",transitionEnd="webkitTransitionEnd transitionend",animOut=effect!="scaleDown"?effect+direction:effect,animIn,animInDelay=effect=="scaleDown"?0:0,isFooter=!1,isFooterNext=!1,isHeader=!1,isHeaderNext=!1,containerOff=$container.offset().top,footerH=$footer.outerHeight(),timeout,dataHash=$nextSlide.attr("data-anchor"),player,iframe,footerCoeff;switch(direction){case"up":animIn="moveFromTop";break;default:animIn="moveFromBottom"}$("body").hasClass("uncode-fullpage-trid")?(animOut=animIn+"trid",animIn=animOut+"In"):UNCODE.isFullPageSnap&&(animIn=animOut="none"),hideMenu(index,nextIndex),shrinkMenu(index,nextIndex),$(".uncode-fullpage-zoom .background-video-shortcode, .uncode-video-container.video",$currentSlide).each(function(index,val){$(this).attr("data-provider")=="vimeo"?(iframe=$(this).find("iframe"),player=$f(iframe[0]),player.api("pause")):$(this).attr("data-provider")=="youtube"?youtubePlayers[$(this).attr("data-id")]!=undefined&&youtubePlayers[$(this).attr("data-id")].pauseVideo():$(this).is("video")&&($(this)[0].volume=0,$(this)[0].pause())}),$(".background-video-shortcode, .uncode-video-container.video",$nextSlide).each(function(index,val){$(this).attr("data-provider")=="vimeo"?(iframe=$(this).find("iframe"),player=$f(iframe[0]),player.api("play")):$(this).attr("data-provider")=="youtube"?youtubePlayers[$(this).attr("data-id")]!=undefined&&youtubePlayers[$(this).attr("data-id")].playVideo():$(this).is("video")&&($(this)[0].volume=0,$(this)[0].play())}),$currentSlide.is($footer)&&(isFooter=!0),$nextSlide.is($footer)&&(isFooterNext=!0),!UNCODE.isMobile&&headerWithOpacity&&$currentSlide.is($header)&&$header.addClass("header-scrolled"),footerCoeff=footerH;if(UNCODE.isFullPageSnap)postLeaveActions(nextIndex),activateBackWash(nextIndex),activateKBurns(nextIndex),requestTimeout(function(){animationEndAction(index,nextIndex)},fp_anim_time+150);else if(isFooterNext){var $iscrollWrapper=$currentSlide.find(".fp-scrollable");$iscrollWrapper.addClass("no-scrolloverflow"),$nextSlide.add($currentSlide).addClass("uncode-scroll-front").addClass("uncode-scroll-active").addClass("uncode-scroll-visible"),$container.css({"-webkit-transform":"translate3d(0, -"+footerCoeff+"px, 0)",transform:"translate3d(0, -"+footerCoeff+"px, 0)","-webkit-transition":"transform "+footerCoeff*2+"ms "+fp_easing,transition:"transform "+footerCoeff*2+"ms "+fp_easing}).off(transitionEnd).one(transitionEnd,function(){animationEndAction(index,nextIndex)})}else if(isFooter)$('.uncode-scroll-lock[data-section="'+(index-1)+'"]',$container).add($currentSlide).addClass("uncode-scroll-front").addClass("uncode-scroll-active").addClass("uncode-scroll-visible"),$container.css({"-webkit-transform":"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)","-webkit-transition":"transform "+footerCoeff*2+"ms "+fp_easing,transition:"transform "+footerCoeff*2+"ms "+fp_easing}).one(transitionEnd,function(){nextIndex!==index-1&&(clearRequestTimeout(timeout),timeout=requestTimeout(function(){$.fn.fullpage.moveTo(nextIndex),slideLeave(index-1,nextIndex,"up"),$container.off(transitionEnd)},50)),animationEndAction(index,nextIndex)});else{postLeaveActions(nextIndex),$("body").hasClass("uncode-fullpage-trid")||activateParallax(nextIndex,direction);var $outBg=$(".background-wrapper",$currentSlide);$nextSlide.addClass("uncode-scroll-front").addClass("uncode-scroll-active").addClass("uncode-scroll-visible").addClass("uncode-scroll-animating-in").css({"z-index":4,"animation-name":animIn,"animation-duration":fp_anim_time+"ms","animation-delay":"","animation-timing-function":fp_easing,"animation-fill-mode":"both",transition:"initial"}).off(animationEnd).on(animationEnd,function(event){event.originalEvent.animationName===animIn&&($(this).addClass("uncode-scroll-already").removeClass("uncode-scroll-front").removeClass("uncode-scroll-animating-in").css({"animation-name":"","animation-duration":"","animation-delay":"","animation-timing-function":"","animation-fill-mode":"",transition:"initial"}),$currentSlide.removeClass("uncode-scroll-active").add($outBg).css({"animation-name":"","animation-duration":"","animation-delay":"","animation-timing-function":"","animation-fill-mode":"",transition:"initial"}),animationEndAction(index,nextIndex)),nextIndex>1?$("body").addClass("window-scrolled"):$("body").removeClass("window-scrolled")}),$currentSlide.addClass("uncode-scroll-animating-out").removeClass("uncode-scroll-front").css({"z-index":"1","animation-name":animOut,"animation-duration":fp_anim_time+"ms","animation-delay":"","animation-timing-function":fp_easing,"animation-fill-mode":"both",transition:"initial","will-change":"auto"}).off(animationEnd).on(animationEnd,function(event){event.originalEvent.animationName===animOut&&$currentSlide.removeClass("uncode-scroll-animating-out")}),$("body").hasClass("uncode-fp-opacity")&&$currentSlide.find("> div").css({"animation-name":"opacityout","animation-duration":fp_anim_time+"ms","animation-delay":"","animation-timing-function":fp_easing,"animation-fill-mode":"both",transition:"initial"}).off(animationEnd).on(animationEnd,function(event){event.originalEvent.animationName==="opacityout"&&$(event.currentTarget).css({"animation-name":"","animation-duration":"","animation-delay":"","animation-timing-function":"","animation-fill-mode":"",transition:""})})}$(".scroll-top").on("click",function(e){return $.fn.fullpage.moveTo(1),!1})},init_fullPage=function(mode){var checkFPeffects;$container.fullpage({sectionSelector:".uncode-scroll-lock",scrollOverflow:!0,scrollOverflowOptions:{click:!1,preventDefaultException:{tagName:/.*/}},navigation:!1,scrollBar:scrollBar,scrollingSpeed:fp_anim_time,verticalCentered:!0,anchors:no_history?!1:dataNames,recordHistory:!no_history,afterRender:function(){$("body").removeClass("fp-waiting"),$(".uncode-scroll-lock",$container).not(":visible").each(function(){var $invisible=$(this).addClass("hidden-scroll")}),$(".uncode-scroll-lock.active",$container).filter(":visible").each(function(){var $visible=$(this).addClass("uncode-scroll-visible"),visIndex=$visible.index(".uncode-scroll-lock:not(.hidden-scroll)");$('ul.onepage-pagination a[data-index="'+visIndex+'"]').addClass("is-selected")}),$("ul.onepage-pagination a").on("click",function(e){e.preventDefault();var $a=$(this),toIndex=$a.data("index");$.fn.fullpage.moveTo(toIndex+1)}),requestTimeout(function(){scrollHashes()},1e3),$(window).on("hashchange",function(e){requestTimeout(function(){scrollHashes()},500)}),anchorLink(),$("body").hasClass("uncode-fp-opacity")&&$all.each(function(index,row){var testmatch=$(row)[0].className.match(/\bstyle-.*?-bg\b/g,""),classBg;typeof testmatch!="undefined"&&testmatch!==null&&(classBg=testmatch[0],$(row).removeClass(classBg).find(".fp-tableCell").addClass(classBg))}),!$("body").hasClass("vmenu")&&!$("body").hasClass("menu-offcanvas")&&$(window).on("menuOpen gdprOpen",function(){$.fn.fullpage.setAutoScrolling(!1)}).on("menuClose gdprClose",function(){$.fn.fullpage.setAutoScrolling(!0)}),$(window).on("menuMobileOpen menuCanvasOpen",function(){requestTimeout(function(){$.fn.fullpage.setAutoScrolling(!1)},1e3)}).on("menuMobileClose menuCanvasClose",function(){$.fn.fullpage.setAutoScrolling(!0)}),UNCODE.isFullPageSnap||(clearRequestTimeout(checkFPeffects),checkFPeffects=requestTimeout(function(){activateBackWash(1),activateKBurns(1)},100))},onLeave:function(index,nextIndex,direction){if(UNCODE.menuOpened||is_scrolling)return!1;is_scrolling=!0;var event=new CustomEvent("fp-slide-leave");window.dispatchEvent(event),slideLeave(index,nextIndex,direction);if($(".uncode-scroll-lock",$container).eq(nextIndex-1).hasClass("hidden-scroll"))return direction==="up"?$.fn.fullpage.moveTo(nextIndex-1):$.fn.fullpage.moveTo(nextIndex+1),!1;$("ul.onepage-pagination a").removeClass("is-selected"),$('ul.onepage-pagination a[data-index="'+(nextIndex-1)+'"]').addClass("is-selected")}})};init_fullPage(),$(window).on("load",function(){requestTimeout(function(){$.fn.fullpage.reBuild()},3e3)});var addScrollingClass,removeScrollingClass;window.addEventListener("fp-slide-scroll",function(){addScrollingClass=requestTimeout(function(){$("body").addClass("fp-slide-scrolling")},10),clearRequestTimeout(removeScrollingClass),removeScrollingClass=requestTimeout(function(){$("body").removeClass("fp-slide-scrolling")},150),Waypoint.refreshAll()},!1);var setFPheight=function(){var $body=document.body,$footer=document.getElementById("colophon"),$maincontainer=document.querySelector(".main-wrapper"),rect=$maincontainer.getBoundingClientRect();$body.style.height=UNCODE.wheight+"px",theres_footer&&($footer.style.top=rect.height+"px")};setFPheight(),window.addEventListener("resize",setFPheight,!1),window.addEventListener("orientationchange",setFPheight,!1)},UNCODE.init=function(){var wfl_check=!1,wfl_request,waypoint_request;UNCODE.preventDoubleTransition(),UNCODE.utils(),UNCODE.menuSystem(),UNCODE.okvideo(),UNCODE.tapHover(),UNCODE.isotopeLayout(),UNCODE.justifiedGallery(),UNCODE.lightbox(),UNCODE.carousel($("body")),UNCODE.lettering(),UNCODE.animations(),UNCODE.stickyElements(),UNCODE.twentytwenty(),UNCODE.disableHoverScroll(),UNCODE.printScreen(),UNCODE.isFullPage||UNCODE.checkScrollForTabs(),UNCODE.onePage(UNCODE.isMobile),$(document).on("ready",function(){UNCODE.fullPage()}),$(window).on("load",function(){clearRequestTimeout(waypoint_request),waypoint_request=requestTimeout(function(){Waypoint.refreshAll()},1e3)})},UNCODE.init()})(jQuery);
(function($){"use strict";function get_cart(){window.wc_add_to_cart_params!=undefined&&$.post({url:wc_add_to_cart_params.ajax_url,dataType:"JSON",data:{action:"woomenucart_ajax"},success:function(data,textStatus,XMLHttpRequest){$(".uncode-cart-dropdown").html(data.cart),data!=""&&($(".uncode-cart .badge, .mobile-shopping-cart .badge").length?data.articles>0?($(".uncode-cart .badge, .mobile-shopping-cart .badge").html(data.articles),$(".uncode-cart .badge, .mobile-shopping-cart .badge").show()):$(".uncode-cart .badge, .mobile-shopping-cart .badge").hide():$(".uncode-cart .cart-icon-container").append(''+data.articles+" "))}})}function remove_from_cart(){$(document).on("click",".uncode-cart-dropdown a.remove",function(e){var $remove=$(this),product_id=$remove.attr("data-product_id"),item_key=$remove.attr("data-item_key"),$li=$remove.parents(".cart-item-list").eq(0).addClass("removing-item").animate({opacity:.5},150);return $.post({dataType:"json",url:wc_add_to_cart_params.ajax_url,data:{action:"woomenucart_remove_ajax",item_key:item_key},success:function(html){$li.slideUp(200,function(){get_cart()})}}),!1})}function change_images(event,variation){if(variation.image_src!==""){var get_href=$("a.woocommerce-main-image"),image_variable=$("> img",get_href),getLightbox=UNCODE.lightboxArray[get_href.data("lbox")];get_href.data("options","thumbnail: '"+variation.image_src+"'"),image_variable.attr("src",variation.image_src),image_variable.hasClass("async-done")&&(image_variable.attr("data-path",variation.uncode_image_path),image_variable.attr("data-guid",variation.uncode_image_guid),image_variable.removeClass("async-done").addClass("adaptive-async"),UNCODE.adaptive()),getLightbox!=undefined&&getLightbox.refresh(),$(window).trigger("focus")}}$(document).ready(function(){remove_from_cart(),$("body").bind("added_to_cart",get_cart),$("body").bind("wc_fragments_refreshed",get_cart),$(".variations_form").bind("show_variation",change_images)}),$("body").on("init","#rating",function(){setTimeout(function(){$(".comment-form-rating").each(function(){var $wrap=$(this),$stars=$("p.stars",$wrap).remove();$('select[name="rating"]',$wrap).hide().before('1 2 3 4 5
')})},10)}),$(".woocommerce-product-gallery").each(function(){var $slider=$(this);if($.fn.flexslider){var $plcholder=$("#woocommerce-product-single-plchold");$slider.flexslider({start:function(){$("img[data-large_image]",$slider).each(function(){var $img=$(this),url=$img.attr("data-large_image")}),setTimeout(function(){$plcholder.remove()},600)}}),$(window).on("load",function(){$(".woocommerce-product-gallery__wrapper",$slider).css({"max-width":"none"})})}if($.fn.zoom&&$("body").hasClass("wc-zoom-enabled")){var $zoomTrgt=$(".woocommerce-product-gallery__image",$slider);$(".thumbnails",$slider).length&&($zoomTrgt=$zoomTrgt.first()),$zoomTrgt.trigger("zoom.destroy"),$zoomTrgt.zoom();var checkForZoom=function(){var galleryWidth=$zoomTrgt.width(),zoom_options={touch:!1,callback:function(){$(".woocommerce-product-gallery__image").each(function(){var $wrap=$(this),$zoom=$("a.zoom",$wrap),$zoomImg=$(".zoomImg",$wrap);$wrap.prepend($zoomImg)})}};"ontouchstart"in window&&(zoom_options.on="click"),$zoomTrgt.trigger("zoom.destroy"),$zoomTrgt.each(function(){var $thisTrgt=$(this),$img=$("img",$thisTrgt);$img.data("large_image_width")>galleryWidth&&$thisTrgt.zoom(zoom_options)})};checkForZoom();var setCheckForZoom;$(window).on("resize",function(){clearTimeout(setCheckForZoom),setCheckForZoom=setTimeout(checkForZoom,150)})}})})(jQuery);
!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);