(function(a){a(function(){b.init()});var b={showLogs:!1,round:1e3,init:function(){return this._log("init"),this._inited?(this._log("Already Inited"),void(this._inited=!0)):void(this._requestAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(c){window.setTimeout(c,1e3/60)}}(),this._onScroll(!0))},_inited:!1,_properties:["x","y","z","rotateX","rotateY","rotateZ","scaleX","scaleY","scaleZ","scale"],_requestAnimationFrame:null,_log:function(c){this.showLogs&&console.log("Parallax Scroll / "+c)},_onScroll:function(c){var d=a(document).scrollTop(),e=a(window).height();this._log("onScroll "+d),a("[data-parallax]").each(a.proxy(function(f,g){var h=a(g),i=[],j=!1,k=h.data("style");k==void 0&&(k=h.attr("style")||"",h.data("style",k));var l=[h.data("parallax")],m;for(m=2;;m++)if(h.data("parallax"+m))l.push(h.data("parallax-"+m));else break;var n=l.length;for(m=0;m<n;m++){var o=l[m],p=o["from-scroll"];void 0==p&&(p=Math.max(0,a(g).offset().top-e)),p|=0;var q=o.distance,r=o["to-scroll"];void 0==q&&void 0==r&&(q=e),q=Math.max(0|q,1);var s=o.easing,t=o["easing-return"];if(void 0!=s&&a.easing&&a.easing[s]||(s=null),void 0!=t&&a.easing&&a.easing[t]||(t=s),s){var u=o.duration;void 0==u&&(u=q),u=Math.max(0|u,1);var v=o["duration-return"];void 0==v&&(v=u),q=1;var w=h.data("current-time");void 0==w&&(w=0)}void 0==r&&(r=p+q),r|=0;var x=o.smoothness;void 0==x&&(x=30),x|=0,(c||0==x)&&(x=1),x|=0;var y=d;y=Math.max(y,p),y=Math.min(y,r),s&&(void 0==h.data("sens")&&h.data("sens","back"),y>p&&("back"==h.data("sens")?(w=1,h.data("sens","go")):w++),y<r&&("go"==h.data("sens")?(w=1,h.data("sens","back")):w++),c&&(w=u),h.data("current-time",w)),this._properties.map(a.proxy(function(F){var G=0,H=o[F];if(void 0!=H){"scale"==F||"scaleX"==F||"scaleY"==F||"scaleZ"==F?G=1:H|=0;var I=h.data("_"+F);void 0==I&&(I=G);var J=(H-G)*((y-p)/(r-p))+G,K=I+(J-I)/x;if(s&&0<w&&w<=u){var L=G;"back"==h.data("sens")&&(L=H,H=-H,s=t,u=v),K=a.easing[s](null,w,L,H,u)}K=Math.ceil(K*this.round)/this.round,K==I&&J==H&&(K=H),i[F]||(i[F]=0),i[F]+=K,I!=i[F]&&(h.data("_"+F,i[F]),j=!0)}},this))}if(j){if(i.z!=void 0){var z=o.perspective;z==void 0&&(z=800);var A=h.parent();A.data("style")||A.data("style",A.attr("style")||""),A.attr("style","perspective:"+z+"px; -webkit-perspective:"+z+"px; "+A.data("style"))}i.scaleX==void 0&&(i.scaleX=1),i.scaleY==void 0&&(i.scaleY=1),i.scaleZ==void 0&&(i.scaleZ=1),i.scale!=void 0&&(i.scaleX*=i.scale,i.scaleY*=i.scale,i.scaleZ*=i.scale);var B="translate3d("+(i.x?i.x:0)+"px, "+(i.y?i.y:0)+"px, "+(i.z?i.z:0)+"px)",C="rotateX("+(i.rotateX?i.rotateX:0)+"deg) rotateY("+(i.rotateY?i.rotateY:0)+"deg) rotateZ("+(i.rotateZ?i.rotateZ:0)+"deg)",D="scaleX("+i.scaleX+") scaleY("+i.scaleY+") scaleZ("+i.scaleZ+")",E=B+" "+C+" "+D+";";this._log(E),h.attr("style","transform:"+E+" -webkit-transform:"+E+" "+k)}},this)),window.requestAnimationFrame?window.requestAnimationFrame(a.proxy(this._onScroll,this,!1)):this._requestAnimationFrame(a.proxy(this._onScroll,this,!1))}}})(jQuery);
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));