/* * File composed of jquery.sticky.js, slick.js, isotope.pkgd.js, fitvids.js and slidebars.js */ var slidebars;!function(a){slidebars=function(){var b=a("[canvas]"),c={},d=!1,e=!1,f=["top","right","bottom","left"],g=["reveal","push","overlay","shift"],h=function(d){var e=a(),f="0px, 0px",g=1e3*parseFloat(c[d].element.css("transitionDuration"),10);return"reveal"!==c[d].style&&"push"!==c[d].style&&"shift"!==c[d].style||(e=e.add(b)),"push"!==c[d].style&&"overlay"!==c[d].style&&"shift"!==c[d].style||(e=e.add(c[d].element)),c[d].active&&("top"===c[d].side?f="0px, "+c[d].element.css("height"):"right"===c[d].side?f="-"+c[d].element.css("width")+", 0px":"bottom"===c[d].side?f="0px, -"+c[d].element.css("height"):"left"===c[d].side&&(f=c[d].element.css("width")+", 0px")),{elements:e,amount:f,duration:g}},i=function(a,b,d,e){if(j(a))throw"Error registering Slidebar, a Slidebar with id '"+a+"' already exists.";c[a]={id:a,side:b,style:d,element:e,active:!1}},j=function(a){return!!c.hasOwnProperty(a)};this.init=function(b){if(d)throw"Slidebars has already been initialized.";e||(a("[off-canvas]").each(function(){var b=a(this).attr("off-canvas").split(" ",3);if(!b||!b[0]||f.indexOf(b[1])===-1||g.indexOf(b[2])===-1)throw"Error registering Slidebar, please specifiy a valid id, side and style'.";i(b[0],b[1],b[2],a(this))}),e=!0),d=!0,this.css(),a(k).trigger("init"),"function"==typeof b&&b()},this.exit=function(b){if(!d)throw"Slidebars hasn't been initialized.";var c=function(){d=!1,a(k).trigger("exit"),"function"==typeof b&&b()};this.getActiveSlidebar()?this.close(c):c()},this.css=function(b){if(!d)throw"Slidebars hasn't been initialized.";for(var e in c)if(j(e)){var f;f="top"===c[e].side||"bottom"===c[e].side?c[e].element.css("height"):c[e].element.css("width"),"push"!==c[e].style&&"overlay"!==c[e].style&&"shift"!==c[e].style||c[e].element.css("margin-"+c[e].side,"-"+f)}this.getActiveSlidebar()&&this.open(this.getActiveSlidebar()),a(k).trigger("css"),"function"==typeof b&&b()},this.open=function(b,e){if(!d)throw"Slidebars hasn't been initialized.";if(!b||!j(b))throw"Error opening Slidebar, there is no Slidebar with id '"+b+"'.";var f=function(){c[b].active=!0,c[b].element.css("display","block"),a(k).trigger("opening",[c[b].id]);var d=h(b);d.elements.css({"transition-duration":d.duration+"ms",transform:"translate("+d.amount+")"}),setTimeout(function(){a(k).trigger("opened",[c[b].id]),"function"==typeof e&&e()},d.duration)};this.getActiveSlidebar()&&this.getActiveSlidebar()!==b?this.close(f):f()},this.close=function(b,e){if("function"==typeof b&&(e=b,b=null),!d)throw"Slidebars hasn't been initialized.";if(b&&!j(b))throw"Error closing Slidebar, there is no Slidebar with id '"+b+"'.";if(b||(b=this.getActiveSlidebar()),b&&c[b].active){c[b].active=!1,a(k).trigger("closing",[c[b].id]);var f=h(b);f.elements.css("transform",""),setTimeout(function(){f.elements.css("transition-duration",""),c[b].element.css("display",""),a(k).trigger("closed",[c[b].id]),"function"==typeof e&&e()},f.duration)}},this.toggle=function(a,b){if(!d)throw"Slidebars hasn't been initialized.";if(!a||!j(a))throw"Error toggling Slidebar, there is no Slidebar with id '"+a+"'.";c[a].active?this.close(a,function(){"function"==typeof b&&b()}):this.open(a,function(){"function"==typeof b&&b()})},this.isActive=function(a){return d},this.isActiveSlidebar=function(a){if(!d)throw"Slidebars hasn't been initialized.";if(!a)throw"You must provide a Slidebar id.";if(!j(a))throw"Error retrieving Slidebar, there is no Slidebar with id '"+a+"'.";return c[a].active},this.getActiveSlidebar=function(){if(!d)throw"Slidebars hasn't been initialized.";var a=!1;for(var b in c)if(j(b)&&c[b].active){a=c[b].id;break}return a},this.getSlidebars=function(){if(!d)throw"Slidebars hasn't been initialized.";var a=[];for(var b in c)j(b)&&a.push(c[b].id);return a},this.getSlidebar=function(a){if(!d)throw"Slidebars hasn't been initialized.";if(!a)throw"You must pass a Slidebar id.";if(!a||!j(a))throw"Error retrieving Slidebar, there is no Slidebar with id '"+a+"'.";return c[a]},this.events={};var k=this.events;a(window).on("resize",this.css.bind(this))}}(jQuery); !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){var b=Array.prototype.slice,c=Array.prototype.splice,d={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"auto"},e=a(window),f=a(document),g=[],h=e.height(),i=function(){for(var b=e.scrollTop(),c=f.height(),d=c-h,i=b>d?d-b:0,j=0,k=g.length;jo||null===l.currentTop&&o=q.offset().top+q.outerHeight()&&l.stickyElement.offset().top<=l.topSpacing;r?l.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):l.stickyElement.css("position","fixed").css("top",o).css("bottom","").css("z-index",l.zIndex)}}},j=function(){h=e.height();for(var b=0,c=g.length;b").attr("id",f).addClass(c.wrapperClassName);b.wrapAll(function(){if(0==a(this).parent("#"+f).length)return h});var i=b.parent();c.center&&i.css({width:b.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===b.css("float")&&b.css({float:"none"}).parent().css({float:"right"}),c.stickyElement=b,c.stickyWrapper=i,c.currentTop=null,g.push(c),k.setWrapperHeight(this),k.setupChangeListeners(this)})},setWrapperHeight:function(b){var c=a(b),d=c.parent();d&&d.css("height",c.outerHeight())},setupChangeListeners:function(a){if(window.MutationObserver){var b=new window.MutationObserver(function(b){(b[0].addedNodes.length||b[0].removedNodes.length)&&k.setWrapperHeight(a)});b.observe(a,{subtree:!0,childList:!0})}else a.addEventListener("DOMNodeInserted",function(){k.setWrapperHeight(a)},!1),a.addEventListener("DOMNodeRemoved",function(){k.setWrapperHeight(a)},!1)},update:i,unstick:function(b){return this.each(function(){for(var b=this,d=a(b),e=-1,f=g.length;f-- >0;)g[f].stickyElement.get(0)===b&&(c.call(g,f,1),e=f);e!==-1&&(d.unwrap(),d.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",i,!1),window.addEventListener("resize",j,!1)):window.attachEvent&&(window.attachEvent("onscroll",i),window.attachEvent("onresize",j)),a.fn.sticky=function(c){return k[c]?k[c].apply(this,b.call(arguments,1)):"object"!=typeof c&&c?void a.error("Method "+c+" does not exist on jQuery.sticky"):k.init.apply(this,arguments)},a.fn.unstick=function(c){return k[c]?k[c].apply(this,b.call(arguments,1)):"object"!=typeof c&&c?void a.error("Method "+c+" does not exist on jQuery.sticky"):k.unstick.apply(this,arguments)},a(function(){setTimeout(i,0)})}); !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('