!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.AOS=t()}(this,function(){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t="Expected a function",n=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,m=u||d||Function("return this")(),f=Object.prototype.toString,l=Math.max,p=Math.min,b=function(){return m.Date.now()};function v(e,n,o){var i,r,a,s,c,u,d=0,m=!1,f=!1,v=!0;if("function"!=typeof e)throw new TypeError(t);function w(t){var n=i,o=r;return i=r=void 0,d=t,s=e.apply(o,n)}function h(e){var t=e-u;return void 0===u||t>=n||t<0||f&&e-d>=a}function k(){var e=b();if(h(e))return x(e);c=setTimeout(k,function(e){var t=n-(e-u);return f?p(t,a-(e-d)):t}(e))}function x(e){return c=void 0,v&&i?w(e):(i=r=void 0,s)}function E(){var e=b(),t=h(e);if(i=arguments,r=this,u=e,t){if(void 0===c)return function(e){return d=e,c=setTimeout(k,n),m?w(e):s}(u);if(f)return c=setTimeout(k,n),w(u)}return void 0===c&&(c=setTimeout(k,n)),s}return n=y(n)||0,g(o)&&(m=!!o.leading,a=(f="maxWait"in o)?l(y(o.maxWait)||0,n):a,v="trailing"in o?!!o.trailing:v),E.cancel=function(){void 0!==c&&clearTimeout(c),d=0,i=u=r=c=void 0},E.flush=function(){return void 0===c?s:x(b())},E}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&f.call(e)==o}(e))return n;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var u=a.test(e);return u||s.test(e)?c(e.slice(2),u?2:8):r.test(e)?n:+e}var w=function(e,n,o){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(t);return g(o)&&(i="leading"in o?!!o.leading:i,r="trailing"in o?!!o.trailing:r),v(e,n,{leading:i,maxWait:n,trailing:r})},h="Expected a function",k=NaN,x="[object Symbol]",E=/^\s+|\s+$/g,A=/^[-+]0x[0-9a-f]+$/i,O=/^0b[01]+$/i,j=/^0o[0-7]+$/i,N=parseInt,T="object"==typeof e&&e&&e.Object===Object&&e,S="object"==typeof self&&self&&self.Object===Object&&self,z=T||S||Function("return this")(),C=Object.prototype.toString,q=Math.max,L=Math.min,M=function(){return z.Date.now()};function D(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function H(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&C.call(e)==x}(e))return k;if(D(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=D(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(E,"");var n=O.test(e);return n||j.test(e)?N(e.slice(2),n?2:8):A.test(e)?k:+e}var $=function(e,t,n){var o,i,r,a,s,c,u=0,d=!1,m=!1,f=!0;if("function"!=typeof e)throw new TypeError(h);function l(t){var n=o,r=i;return o=i=void 0,u=t,a=e.apply(r,n)}function p(e){var n=e-c;return void 0===c||n>=t||n<0||m&&e-u>=r}function b(){var e=M();if(p(e))return v(e);s=setTimeout(b,function(e){var n=t-(e-c);return m?L(n,r-(e-u)):n}(e))}function v(e){return s=void 0,f&&o?l(e):(o=i=void 0,a)}function g(){var e=M(),n=p(e);if(o=arguments,i=this,c=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(b,t),d?l(e):a}(c);if(m)return s=setTimeout(b,t),l(c)}return void 0===s&&(s=setTimeout(b,t)),a}return t=H(t)||0,D(n)&&(d=!!n.leading,r=(m="maxWait"in n)?q(H(n.maxWait)||0,t):r,f="trailing"in n?!!n.trailing:f),g.cancel=function(){void 0!==s&&clearTimeout(s),u=0,o=c=i=s=void 0},g.flush=function(){return void 0===s?a:v(M())},g},R=function(){};function W(e){e&&e.forEach(function(e){var t=Array.prototype.slice.call(e.addedNodes),n=Array.prototype.slice.call(e.removedNodes);if(function e(t){var n=void 0,o=void 0;for(n=0;n=o.out)r();else if(t>=o.in){if(e.bindAnimatedEvent||(e.bindAnimatedEvent=!0,i.addEventListener(V,function t(){if(console.log(987),X(e))return i.removeEventListener(V,t,!1);i.style.animation="none",setTimeout(function(){a()},0)},!1)),!function(e){return!!e.getAttribute("data-aos")}(i)){if(e.notEventAnimate)return;a(),e.notEventAnimate=!0}}else r()},ne=function(e){return e.forEach(function(e,t){return function(e,t){var n=e.options,o=e.position,i=e.node,r=(e.data,function(){e.animated&&(e.stressRepeatTimes=0,function(e,t){t&&t.forEach(function(t){return e.classList.remove(t)})}(i,n.animatedClassNames),ee("aos:out",i),e.options.id&&ee("aos:in:"+e.options.id,i),e.animated=!1)});n.mirror&&t>=o.out&&!n.once?r():t>=o.in?e.animated||(function(e,t){t&&t.forEach(function(t){return e.classList.add(t)})}(i,n.animatedClassNames),ee("aos:in",i),e.options.id&&ee("aos:in:"+e.options.id,i),e.animated=!0):e.animated&&!n.once&&r()}(e,window.pageYOffset)})},oe=function(e){return e.forEach(function(e){return te(e,window.pageYOffset)})},ie=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}},re=function(e,t,n){var o=e.getAttribute("data-aos-"+t);if(void 0!==o){if("true"===o)return!0;if("false"===o)return!1}return o||n},ae=function(e,t){return e.forEach(function(e,n){if(e.options&&t.isStress){if(e.stressRepeatTimes)return;e.stressRepeatTimes=1;var o=Number(e.node.getAttribute("stress-repeat-times"));o>1&&(e.stressRepeatTimes=o)}else{var i=re(e.node,"mirror",t.mirror),r=re(e.node,"once",t.once),a=re(e.node,"id"),s=t.useClassNames&&e.node.getAttribute("data-aos"),c=[t.animatedClassName].concat(s?s.split(" "):[]).filter(function(e){return"string"==typeof e});t.initClassName&&e.node.classList.add(t.initClassName),e.position={in:function(e,t,n){var o=window.innerHeight,i=re(e,"anchor"),r=re(e,"anchor-placement"),a=Number(re(e,"offset",r?0:t)),s=r||n,c=e;i&&document.querySelectorAll(i)&&(c=document.querySelectorAll(i)[0]);var u=ie(c).top-o;switch(s){case"top-bottom":break;case"center-bottom":u+=c.offsetHeight/2;break;case"bottom-bottom":u+=c.offsetHeight;break;case"top-center":u+=o/2;break;case"center-center":u+=o/2+c.offsetHeight/2;break;case"bottom-center":u+=o/2+c.offsetHeight;break;case"top-top":u+=o;break;case"bottom-top":u+=o+c.offsetHeight;break;case"center-top":u+=o+c.offsetHeight/2}return u+a}(e.node,t.offset,t.anchorPlacement),out:i&&function(e,t){window.innerHeight;var n=re(e,"anchor"),o=re(e,"offset",t),i=e;return n&&document.querySelectorAll(n)&&(i=document.querySelectorAll(n)[0]),ie(i).top+i.offsetHeight-o}(e.node,t.offset)},e.options={once:r,mirror:i,animatedClassNames:c,id:a}}}),e},se=function(){return [].slice.call(document.querySelectorAll("[stress-animation-styles]")).filter(function(e){return!!e.getAttribute("stress-animation-styles")}).map(function(e){return{node:e}})},ce=function(){var e=document.querySelectorAll("[data-aos]");return Array.prototype.map.call(e,function(e){return{node:e}})},ue=[],de=[],me=!1,fe={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,mirror:!1,anchorPlacement:"top-bottom",startEvent:"DOMContentLoaded",animatedClassName:"aos-animate",initClassName:"aos-init",useClassNames:!1,disableMutationObserver:!1,throttleDelay:99,debounceDelay:50},le=function(){return document.all&&!window.atob},pe=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(me=!0),me&&(ue=ae(ue,fe),de=ae(de,F(fe,{isStress:!0})),ne(ue),oe(de),window.addEventListener("scroll",w(function(){ne(ue,fe.once),oe(de)},fe.throttleDelay)))},be=function(){if(ue=ce(),de=se(),ge(fe.disable)||le())return ve();pe()},ve=function(){ue.forEach(function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay"),fe.initClassName&&e.node.classList.remove(fe.initClassName),fe.animatedClassName&&e.node.classList.remove(fe.animatedClassName)})},ge=function(e){return!0===e||"mobile"===e&&U.mobile()||"phone"===e&&U.phone()||"tablet"===e&&U.tablet()||"function"==typeof e&&!0===e()};return{init:function(e){return fe=F(fe,e),ue=ce(),de=se(),fe.disableMutationObserver||Y.isSupported()||(console.info('\n aos: MutationObserver is not supported on this browser,\n code mutations observing has been disabled.\n You may have to call "refreshHard()" by yourself.\n '),fe.disableMutationObserver=!0),fe.disableMutationObserver||Y.ready("[data-aos]",be),ge(fe.disable)||le()?ve():(document.querySelector("body").setAttribute("data-aos-easing",fe.easing),document.querySelector("body").setAttribute("data-aos-duration",fe.duration),document.querySelector("body").setAttribute("data-aos-delay",fe.delay),-1===["DOMContentLoaded","load"].indexOf(fe.startEvent)?document.addEventListener(fe.startEvent,function(){pe(!0)}):window.addEventListener("load",function(){pe(!0)}),"DOMContentLoaded"===fe.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1&&pe(!0),window.addEventListener("resize",$(pe,fe.debounceDelay,!0)),window.addEventListener("orientationchange",$(pe,fe.debounceDelay,!0)),ue)},refresh:pe,refreshHard:be}});