!function(e){var t={};function s(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=e,s.c=t,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)s.d(n,r,function(t){return e[t]}.bind(null,r));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p=".",s(s.s=0)}({"./src/parallax.js":function(e,t,s){"use strict";s.r(t),window.vcv.on("ready",(function(e,t){if("merge"!==e){var s="[data-vce-assets-parallax-mouse-move]";s=t?'[data-vcv-element="'+t+'"] '+s:s,window.vceAssetsParallaxMouseMove(s)}}))},"./src/plugin.js":function(e,t){!function(e,t){var s=function(s){var n=t.querySelectorAll(s);return(n=[].slice.call(n)).forEach((function(s){s.getVceParallaxMouseMove?s.getVceParallaxMouseMove.update():function(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),this.mouseParallax=this.mouseParallax.bind(this),this.update=this.update.bind(this),e.getVceParallaxMouseMove?this.update():(e.getVceParallaxMouseMove=this,this.element=e,this.bgElement=e.querySelector(e.dataset.vceAssetsParallaxMouseMove),this.elementRoot=t.getElementById("el-"+e.dataset.vceAssetsParallaxMouseMoveElement),this.prepareElement(),this.create()),e.getVceParallaxMouseMove},handleAttributeChange:function(){this.element.getAttribute("data-vce-assets-parallax-move-mouse")?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 t=e.innerHeight,s=this.element.getBoundingClientRect(),n=s.height+t,r=-1*(s.top-t),i=0;r>=0&&r<=n&&(i=r/n);var l=2*this.speed*i*-1+this.speed;"true"===this.reverse&&(l*=-1),this.bgElement.style.transform="translateY("+l+"vh)"}},prepareElement:function(){this.speed=parseInt(s.dataset.vceAssetsParallaxSpeed)||30,"vceAssetsParallaxReverse"in s.dataset&&(this.reverse=s.dataset.vceAssetsParallaxReverse),this.bgElement.style.left="-"+this.speed+"vw",this.bgElement.style.top="-"+this.speed+"vh",this.bgElement.style.right="-"+this.speed+"vw",this.bgElement.style.bottom="-"+this.speed+"vh",this.bgElement.style.transform="translate(0px, 0px)"},addMouseMoveEvent:function(){this.elementRoot.addEventListener("mousemove",this.mouseParallax),e.addEventListener("resize",this.update)},removeMouseMoveEvent:function(){this.elementRoot.removeEventListener("mousemove",this.mouseParallax),e.removeEventListener("resize",this.update)},create:function(){this.addMouseMoveEvent(),this.observer=new MutationObserver(this.handleAttributeChange),this.observer.observe(this.element,{attributes:!0})},mouseParallax:function(t){var s,n,r=t.clientX,i=t.clientY,l=this.bgElement.parentNode.getBoundingClientRect(),a=l.left+l.width/2,o=l.top+l.height/2;"true"===this.reverse?(s=r-a-this.speed,n=i-o-this.speed):(s=a-r-this.speed,n=o-i-this.speed);var u=e.innerWidth/100,h=e.innerHeight/100;s<-this.speed*u?s=-this.speed*u:s>this.speed*u&&(s=this.speed*u),n<-this.speed*h?n=-this.speed*h:n>this.speed*h&&(n=this.speed*h),this.bgElement.style.transform=`translate(${s}px, ${n}px)`},update:function(){this.prepareElement()},destroy:function(){this.removeMouseMoveEvent(),this.bgElement.style.top=null,this.bgElement.style.bottom=null,this.bgElement.style.transform=null,this.bgElement=null,this.observer.disconnect(),this.observer=null,delete this.element.getVceParallaxMouseMove,this.element=null}}).setup(s)}(s)})),1===n.length?n.pop():n};e.vceAssetsParallaxMouseMove=s}(window,document)},0:function(e,t,s){s("./src/plugin.js"),e.exports=s("./src/parallax.js")}});