!function(e,t){var s=function(s){Waypoint.refreshAll();var n=t.querySelectorAll(s);return(n=[].slice.call(n)).forEach((function(t){t.getVceParallax?t.getVceParallax.update():function(t){var s={element:null,bgElement:null,waypoint:null,observer:null,reverse:!1,speed:30,setup:function(e){return this.resize=this.resize.bind(this),this.handleAttributeChange=this.handleAttributeChange.bind(this),e.getVceParallax?this.update():(e.getVceParallax=this,this.element=e,this.bgElement=e.querySelector(e.dataset.vceAssetsParallax),this.prepareElement(),this.create()),e.getVceParallax},handleAttributeChange:function(){this.element.getAttribute("data-vce-assets-parallax")?this.update():this.destroy()},addScrollEvent:function(){e.addEventListener("scroll",this.resize),this.resize()},removeScrollEvent:function(){e.removeEventListener("scroll",this.resize)},resize:function(){if(this.element.clientHeight){var s=e.innerHeight,n=this.element.getBoundingClientRect(),i=n.height+s,l=-1*(n.top-s),a=0;if(l>=0&&l<=i&&(a=l/i),this.fixed="vceAssetsParallaxFixed"in t.dataset,this.fixed)this.bgElement.style.transform="translateY(0vh)",this.bgElement.style.top=-n.top+"px",this.bgElement.style.bottom=n.bottom-e.innerHeight+"px";else{var r=2*this.speed*a*-1+this.speed;"true"==this.reverse&&(r*=-1),this.bgElement.style.transform="translateY("+r+"vh)"}}},prepareElement:function(){var e=parseInt(t.dataset.vceAssetsParallaxSpeed);e&&(this.speed=e),"vceAssetsParallaxReverse"in t.dataset&&(this.reverse=t.dataset.vceAssetsParallaxReverse),this.fixed="vceAssetsParallaxFixed"in t.dataset,this.bgElement.style.top=this.fixed?"0vh":"-"+this.speed+"vh",this.bgElement.style.bottom=this.fixed?"0vh":"-"+this.speed+"vh"},create:function(){var e=this;this.waypoint={},this.waypoint.top=new Waypoint({element:e.element,handler:function(t){"up"===t&&e.removeScrollEvent(),"down"===t&&e.addScrollEvent()},offset:"100%"}),this.waypoint.bottom=new Waypoint({element:e.element,handler:function(t){"up"===t&&e.addScrollEvent(),"down"===t&&e.removeScrollEvent()},offset:function(){return-e.element.clientHeight}}),e.observer=new MutationObserver(this.handleAttributeChange),e.observer.observe(this.element,{attributes:!0})},update:function(){this.prepareElement(),this.resize(),Waypoint.refreshAll()},destroy:function(){this.removeScrollEvent(),this.bgElement.style.top=null,this.bgElement.style.bottom=null,this.bgElement.style.transform=null,this.bgElement=null,this.waypoint.top.destroy(),this.waypoint.bottom.destroy(),this.waypoint=null,this.observer.disconnect(),this.observer=null,delete this.element.getVceParallax,this.element=null}};s.setup(t)}(t)})),1===n.length?n.pop():n};e.vceAssetsParallax=s}(window,document),function(){"use strict";window.vcv.on("ready",(function(e,t){"merge"!==e&&setTimeout((function(){var e="[data-vce-assets-parallax]";e=t?'[data-vcv-element="'+t+'"] '+e:e,window.vceAssetsParallax(e)}),10)}))}();