"use strict";var defaultInstanceSettings={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},defaultTweenSettings={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},validTransforms=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],cache={CSS:{},springs:{}};function minMax(t,e,n){return Math.min(Math.max(t,e),n)}function stringContains(t,e){return-1<t.indexOf(e)}function applyArguments(t,e){return t.apply(null,e)}var is={arr:function(t){return Array.isArray(t)},obj:function(t){return stringContains(Object.prototype.toString.call(t),"Object")},pth:function(t){return is.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||is.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return is.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return is.hex(t)||is.rgb(t)||is.hsl(t)},key:function(t){return!defaultInstanceSettings.hasOwnProperty(t)&&!defaultTweenSettings.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function parseEasingParameters(t){t=/\(([^)]+)\)/.exec(t);return t?t[1].split(",").map(function(t){return parseFloat(t)}):[]}function spring(r,n){var t=parseEasingParameters(r),e=minMax(is.und(t[0])?1:t[0],.1,100),a=minMax(is.und(t[1])?100:t[1],.1,100),i=minMax(is.und(t[2])?10:t[2],.1,100),t=minMax(is.und(t[3])?0:t[3],.1,100),o=Math.sqrt(a/e),s=i/(2*Math.sqrt(a*e)),u=s<1?o*Math.sqrt(1-s*s):0,l=s<1?(s*o-t)/u:-t+o;function g(t){var e=n?n*t/1e3:t,e=s<1?Math.exp(-e*s*o)*(+Math.cos(u*e)+l*Math.sin(u*e)):(1+l*e)*Math.exp(-e*o);return 0===t||1===t?t:1-e}return n?g:function(){var t=cache.springs[r];if(t)return t;for(var e=0,n=0;;)if(1===g(e+=1/6)){if(16<=++n)break}else n=0;return t=e*(1/6)*1e3,cache.springs[r]=t}}function steps(e){return void 0===e&&(e=10),function(t){return Math.ceil(minMax(t,1e-6,1)*e)*(1/e)}}var bezier=function(){function r(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function F(t,e,n){return((r(e,n)*t+a(e,n))*t+3*e)*t}function T(t,e,n){return 3*r(e,n)*t*t+2*a(e,n)*t+3*e}return function(b,e,O,n){if(0<=b&&b<=1&&0<=O&&O<=1){var x=new Float32Array(11);if(b!==e||O!==n)for(var t=0;t<11;++t)x[t]=F(.1*t,b,O);return function(t){return b===e&&O===n||0===t||1===t?t:F(r(t),e,n)}}function r(t){for(var e=0,n=1;10!==n&&x[n]<=t;++n)e+=.1;var r=e+.1*((t-x[--n])/(x[n+1]-x[n])),a=T(r,b,O);if(.001<=a){for(var i=t,o=r,s=b,u=O,l=0;l<4;++l){var g=T(o,s,u);if(0===g)return o;o-=(F(o,s,u)-i)/g}return o}if(0===a)return r;for(var c,f,d=t,p=e,m=e+.1,h=b,v=O,y=0;0<(c=F(f=p+(m-p)/2,h,v)-d)?m=f:p=f,1e-7<Math.abs(c)&&++y<10;);return f}}}(),penner=function(){var e={linear:function(){return function(t){return t}}},n={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===e&&(e=.5);var n=minMax(t=void 0===t?1:t,1,10),r=minMax(e,.1,2);return function(t){return 0===t||1===t?t:-n*Math.pow(2,10*(t-1))*Math.sin((t-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}};return["Quad","Cubic","Quart","Quint","Expo"].forEach(function(t,e){n[t]=function(){return function(t){return Math.pow(t,e+2)}}}),Object.keys(n).forEach(function(t){var r=n[t];e["easeIn"+t]=r,e["easeOut"+t]=function(e,n){return function(t){return 1-r(e,n)(1-t)}},e["easeInOut"+t]=function(e,n){return function(t){return t<.5?r(e,n)(2*t)/2:1-r(e,n)(-2*t+2)/2}},e["easeOutIn"+t]=function(e,n){return function(t){return t<.5?(1-r(e,n)(1-2*t))/2:(r(e,n)(2*t-1)+1)/2}}}),e}();function parseEasings(t,e){if(is.fnc(t))return t;var n=t.split("(")[0],r=penner[n],a=parseEasingParameters(t);switch(n){case"spring":return spring(t,e);case"cubicBezier":return applyArguments(bezier,a);case"steps":return applyArguments(steps,a);default:return applyArguments(r,a)}}function selectString(t){try{return document.querySelectorAll(t)}catch(t){}}function filterArray(t,e){for(var n,r=t.length,a=2<=arguments.length?e:void 0,i=[],o=0;o<r;o++)o in t&&(n=t[o],e.call(a,n,o,t))&&i.push(n);return i}function flattenArray(t){return t.reduce(function(t,e){return t.concat(is.arr(e)?flattenArray(e):e)},[])}function toArray(t){return is.arr(t)?t:(t=is.str(t)?selectString(t)||t:t)instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t]}function arrayContains(t,e){return t.some(function(t){return t===e})}function cloneObject(t){var e,n={};for(e in t)n[e]=t[e];return n}function replaceObjectProps(t,e){var n,r=cloneObject(t);for(n in t)r[n]=(e.hasOwnProperty(n)?e:t)[n];return r}function mergeObjects(t,e){var n,r=cloneObject(t);for(n in e)r[n]=(is.und(t[n])?e:t)[n];return r}function rgbToRgba(t){var e=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t);return e?"rgba("+e[1]+",1)":t}function hexToRgba(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,r){return e+e+n+n+r+r}),t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(t[1],16)+","+parseInt(t[2],16)+","+parseInt(t[3],16)+",1)"}function hslToRgba(t){var e,n,r,t=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t),a=parseInt(t[1],10)/360,i=parseInt(t[2],10)/100,o=parseInt(t[3],10)/100,t=t[4]||1;function s(t,e,n){return n<0&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}return 0==i?e=n=r=o:(e=s(i=2*o-(o=o<.5?o*(1+i):o+i-o*i),o,a+1/3),n=s(i,o,a),r=s(i,o,a-1/3)),"rgba("+255*e+","+255*n+","+255*r+","+t+")"}function colorToRgb(t){return is.rgb(t)?rgbToRgba(t):is.hex(t)?hexToRgba(t):is.hsl(t)?hslToRgba(t):void 0}function getUnit(t){t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(t)return t[1]}function getTransformUnit(t){return stringContains(t,"translate")||"perspective"===t?"px":stringContains(t,"rotate")||stringContains(t,"skew")?"deg":void 0}function getFunctionValue(t,e){return is.fnc(t)?t(e.target,e.id,e.total):t}function getAttribute(t,e){if(e)return t.getAttribute(e)}function convertPxToUnit(t,e,n){var r,a,i;return arrayContains([n,"deg","rad","turn"],getUnit(e))?e:(r=cache.CSS[e+n],is.und(r)?(a=document.createElement(t.tagName),(t=t.parentNode&&t.parentNode!==document?t.parentNode:document.body).appendChild(a),a.style.position="absolute",a.style.width=100+n,i=100/a.offsetWidth,t.removeChild(a),t=i*parseFloat(e),cache.CSS[e+n]=t):r)}function getCSSValue(t,e,n){var r;if(e in t.style)return r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e=t.style[e]||getComputedStyle(t).getPropertyValue(r)||"0",n?convertPxToUnit(t,e,n):e}function getAnimationType(t,e){return is.dom(t)&&!is.inp(t)&&(!is.nil(getAttribute(t,e))||is.svg(t)&&t[e])?"attribute":is.dom(t)&&arrayContains(validTransforms,e)?"transform":is.dom(t)&&"transform"!==e&&getCSSValue(t,e)?"css":null!=t[e]?"object":void 0}function getElementTransforms(t){if(is.dom(t)){for(var e,n=t.style.transform||"",r=/(\w+)\(([^)]*)\)/g,a=new Map;e=r.exec(n);)a.set(e[1],e[2]);return a}}function getTransformValue(t,e,n,r){var a=stringContains(e,"scale")?1:0+getTransformUnit(e),a=getElementTransforms(t).get(e)||a;return n&&(n.transforms.list.set(e,a),n.transforms.last=e),r?convertPxToUnit(t,a,r):a}function getOriginalTargetValue(t,e,n,r){switch(getAnimationType(t,e)){case"transform":return getTransformValue(t,e,r,n);case"css":return getCSSValue(t,e,n);case"attribute":return getAttribute(t,e);default:return t[e]||0}}function getRelativeValue(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=getUnit(t)||0,a=parseFloat(e),i=parseFloat(t.replace(n[0],""));switch(n[0][0]){case"+":return a+i+r;case"-":return a-i+r;case"*":return a*i+r}}function validateValue(t,e){var n;return is.col(t)?colorToRgb(t):/\s/g.test(t)?t:(n=(n=getUnit(t))?t.substr(0,t.length-n.length):t,e?n+e:n)}function getDistance(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function getCircleLength(t){return 2*Math.PI*getAttribute(t,"r")}function getRectLength(t){return 2*getAttribute(t,"width")+2*getAttribute(t,"height")}function getLineLength(t){return getDistance({x:getAttribute(t,"x1"),y:getAttribute(t,"y1")},{x:getAttribute(t,"x2"),y:getAttribute(t,"y2")})}function getPolylineLength(t){for(var e,n=t.points,r=0,a=0;a<n.numberOfItems;a++){var i=n.getItem(a);0<a&&(r+=getDistance(e,i)),e=i}return r}function getPolygonLength(t){var e=t.points;return getPolylineLength(t)+getDistance(e.getItem(e.numberOfItems-1),e.getItem(0))}function getTotalLength(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return getCircleLength(t);case"rect":return getRectLength(t);case"line":return getLineLength(t);case"polyline":return getPolylineLength(t);case"polygon":return getPolygonLength(t)}}function setDashoffset(t){var e=getTotalLength(t);return t.setAttribute("stroke-dasharray",e),e}function getParentSvgEl(t){for(var e=t.parentNode;is.svg(e)&&is.svg(e.parentNode);)e=e.parentNode;return e}function getParentSvg(t,e){var e=e||{},t=e.el||getParentSvgEl(t),n=t.getBoundingClientRect(),r=getAttribute(t,"viewBox"),a=n.width,n=n.height,e=e.viewBox||(r?r.split(" "):[0,0,a,n]);return{el:t,viewBox:e,x:+e[0],y:+e[1],w:a,h:n,vW:e[2],vH:e[3]}}function getPath(t,e){var n=is.str(t)?selectString(t)[0]:t,r=e||100;return function(t){return{property:t,el:n,svg:getParentSvg(n),totalLength:getTotalLength(n)*(r/100)}}}function getPathProgress(e,n,t){function r(t){return e.el.getPointAtLength(1<=n+(t=void 0===t?0:t)?n+t:0)}var a=getParentSvg(e.el,e.svg),i=r(),o=r(-1),s=r(1),u=t?1:a.w/a.vW,l=t?1:a.h/a.vH;switch(e.property){case"x":return(i.x-a.x)*u;case"y":return(i.y-a.y)*l;case"angle":return 180*Math.atan2(s.y-o.y,s.x-o.x)/Math.PI}}function decomposeValue(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=validateValue(is.pth(t)?t.totalLength:t,e)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:is.str(t)||e?r.split(n):[]}}function parseTargets(t){return filterArray(t?flattenArray(is.arr(t)?t.map(toArray):toArray(t)):[],function(t,e,n){return n.indexOf(t)===e})}function getAnimatables(t){var n=parseTargets(t);return n.map(function(t,e){return{target:t,id:e,total:n.length,transforms:{list:getElementTransforms(t)}}})}function normalizePropertyTweens(t,n){var e,r=cloneObject(n),a=(/^spring/.test(r.easing)&&(r.duration=spring(r.easing)),is.arr(t)&&(2===(e=t.length)&&!is.obj(t[0])?t={value:t}:is.fnc(n.duration)||(r.duration=n.duration/e)),is.arr(t)?t:[t]);return a.map(function(t,e){t=is.obj(t)&&!is.pth(t)?t:{value:t};return is.und(t.delay)&&(t.delay=e?0:n.delay),is.und(t.endDelay)&&(t.endDelay=e===a.length-1?n.endDelay:0),t}).map(function(t){return mergeObjects(t,r)})}function flattenKeyframes(e){for(var n=filterArray(flattenArray(e.map(function(t){return Object.keys(t)})),function(t){return is.key(t)}).reduce(function(t,e){return t.indexOf(e)<0&&t.push(e),t},[]),a={},t=0;t<n.length;t++)!function(t){var r=n[t];a[r]=e.map(function(t){var e,n={};for(e in t)is.key(e)?e==r&&(n.value=t[e]):n[e]=t[e];return n})}(t);return a}function getProperties(t,e){var n,r=[],a=e.keyframes;for(n in e=a?mergeObjects(flattenKeyframes(a),e):e)is.key(n)&&r.push({name:n,tweens:normalizePropertyTweens(e[n],t)});return r}function normalizeTweenValues(t,e){var n,r={};for(n in t){var a=getFunctionValue(t[n],e);is.arr(a)&&1===(a=a.map(function(t){return getFunctionValue(t,e)})).length&&(a=a[0]),r[n]=a}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}function normalizeTweens(s,u){var l;return s.tweens.map(function(t){var t=normalizeTweenValues(t,u),e=t.value,n=is.arr(e)?e[1]:e,r=getUnit(n),a=getOriginalTargetValue(u.target,s.name,r,u),i=l?l.to.original:a,o=is.arr(e)?e[0]:i,a=getUnit(o)||getUnit(a),r=r||a;return is.und(n)&&(n=i),t.from=decomposeValue(o,r),t.to=decomposeValue(getRelativeValue(n,o),r),t.start=l?l.end:0,t.end=t.start+t.delay+t.duration+t.endDelay,t.easing=parseEasings(t.easing,t.duration),t.isPath=is.pth(e),t.isPathTargetInsideSVG=t.isPath&&is.svg(u.target),t.isColor=is.col(t.from.original),t.isColor&&(t.round=1),l=t})}var setProgressValue={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,a){var i;r.list.set(e,n),e!==r.last&&!a||(i="",r.list.forEach(function(t,e){i+=e+"("+t+") "}),t.style.transform=i)}};function setTargetsValue(t,o){getAnimatables(t).forEach(function(t){for(var e in o){var n=getFunctionValue(o[e],t),r=t.target,a=getUnit(n),i=getOriginalTargetValue(r,e,a,t),n=getRelativeValue(validateValue(n,a||getUnit(i)),i),a=getAnimationType(r,e);setProgressValue[a](r,e,n,t.transforms,!0)}})}function createAnimation(t,e){var n,r,a=getAnimationType(t.target,e.name);if(a)return r=(n=normalizeTweens(e,t))[n.length-1],{type:a,property:e.name,animatable:t,tweens:n,duration:r.end,delay:n[0].delay,endDelay:r.endDelay}}function getAnimations(t,n){return filterArray(flattenArray(t.map(function(e){return n.map(function(t){return createAnimation(e,t)})})),function(t){return!is.und(t)})}function getInstanceTimings(t,e){function n(t){return t.timelineOffset||0}var r=t.length,a={};return a.duration=r?Math.max.apply(Math,t.map(function(t){return n(t)+t.duration})):e.duration,a.delay=r?Math.min.apply(Math,t.map(function(t){return n(t)+t.delay})):e.delay,a.endDelay=r?a.duration-Math.max.apply(Math,t.map(function(t){return n(t)+t.duration-t.endDelay})):e.endDelay,a}var instanceID=0;function createNewInstance(t){var e=replaceObjectProps(defaultInstanceSettings,t),n=replaceObjectProps(defaultTweenSettings,t),r=getProperties(n,t),t=getAnimatables(t.targets),r=getAnimations(t,r),n=getInstanceTimings(r,n),a=instanceID;return instanceID++,mergeObjects(e,{id:a,children:[],animatables:t,animations:r,duration:n.duration,delay:n.delay,endDelay:n.endDelay})}var activeInstances=[],engine=function(){var a;function i(t){for(var e=activeInstances.length,n=0;n<e;){var r=activeInstances[n];r.paused?(activeInstances.splice(n,1),e--):(r.tick(t),n++)}a=0<n?requestAnimationFrame(i):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){anime.suspendWhenDocumentHidden&&(isDocumentHidden()?a=cancelAnimationFrame(a):(activeInstances.forEach(function(t){return t._onDocumentVisibility()}),engine()))}),function(){!(a||isDocumentHidden()&&anime.suspendWhenDocumentHidden)&&0<activeInstances.length&&(a=requestAnimationFrame(i))}}();function isDocumentHidden(){return!!document&&document.hidden}function anime(t){var u,l=0,g=0,c=0,f=0,d=null;function p(t){var e=window.Promise&&new Promise(function(t){return d=t});return t.finished=e}var T=createNewInstance(t=void 0===t?{}:t);p(T);function m(){var t=T.direction;"alternate"!==t&&(T.direction="normal"!==t?"normal":"reverse"),T.reversed=!T.reversed,u.forEach(function(t){return t.reversed=T.reversed})}function h(t){return T.reversed?T.duration-t:t}function e(){l=0,g=h(T.currentTime)*(1/anime.speed)}function v(t,e){e&&e.seek(t-e.timelineOffset)}function y(e){for(var t=0,n=T.animations,r=n.length;t<r;){for(var a=n[t],i=a.animatable,o=a.tweens,s=o.length-1,u=o[s],s=(s&&(u=filterArray(o,function(t){return e<t.end})[0]||u),minMax(e-u.start-u.delay,0,u.duration)/u.duration),l=isNaN(s)?1:u.easing(s),g=u.to.strings,c=u.round,f=[],d=u.to.numbers.length,p=void 0,m=0;m<d;m++){var h=void 0,v=u.to.numbers[m],y=u.from.numbers[m]||0,h=u.isPath?getPathProgress(u.value,l*v,u.isPathTargetInsideSVG):y+l*(v-y);!c||u.isColor&&2<m||(h=Math.round(h*c)/c),f.push(h)}var b=g.length;if(b)for(var p=g[0],O=0;O<b;O++){g[O];var x=g[O+1],F=f[O];isNaN(F)||(p+=x?F+x:F+" ")}else p=f[0];setProgressValue[a.type](i.target,a.property,p,i.transforms),a.currentValue=p,t++}}function b(t){T[t]&&!T.passThrough&&T[t](T)}function n(t){var e=T.duration,n=T.delay,r=e-T.endDelay,a=h(t);if(T.progress=minMax(a/e*100,0,100),T.reversePlayback=a<T.currentTime,u){var i=a;if(T.reversePlayback)for(var o=f;o--;)v(i,u[o]);else for(var s=0;s<f;s++)v(i,u[s])}!T.began&&0<T.currentTime&&(T.began=!0,b("begin")),!T.loopBegan&&0<T.currentTime&&(T.loopBegan=!0,b("loopBegin")),a<=n&&0!==T.currentTime&&y(0),(r<=a&&T.currentTime!==e||!e)&&y(e),n<a&&a<r?(T.changeBegan||(T.changeBegan=!0,T.changeCompleted=!1,b("changeBegin")),b("change"),y(a)):T.changeBegan&&(T.changeCompleted=!0,T.changeBegan=!1,b("changeComplete")),T.currentTime=minMax(a,0,e),T.began&&b("update"),e<=t&&(g=0,T.remaining&&!0!==T.remaining&&T.remaining--,T.remaining?(l=c,b("loopComplete"),T.loopBegan=!1,"alternate"===T.direction&&m()):(T.paused=!0,T.completed||(T.completed=!0,b("loopComplete"),b("complete"),!T.passThrough&&"Promise"in window&&(d(),p(T)))))}return T.reset=function(){var t=T.direction;T.passThrough=!1,T.currentTime=0,T.progress=0,T.paused=!0,T.began=!1,T.loopBegan=!1,T.changeBegan=!1,T.completed=!1,T.changeCompleted=!1,T.reversePlayback=!1,T.reversed="reverse"===t,T.remaining=T.loop,u=T.children;for(var e=f=u.length;e--;)T.children[e].reset();(T.reversed&&!0!==T.loop||"alternate"===t&&1===T.loop)&&T.remaining++,y(T.reversed?T.duration:0)},T._onDocumentVisibility=e,T.set=function(t,e){return setTargetsValue(t,e),T},T.tick=function(t){n(((c=t)+(g-(l=l||c)))*anime.speed)},T.seek=function(t){n(h(t))},T.pause=function(){T.paused=!0,e()},T.play=function(){T.paused&&(T.completed&&T.reset(),T.paused=!1,activeInstances.push(T),e(),engine())},T.reverse=function(){m(),T.completed=!T.reversed,e()},T.restart=function(){T.reset(),T.play()},T.remove=function(t){removeTargetsFromInstance(parseTargets(t),T)},T.reset(),T.autoplay&&T.play(),T}function removeTargetsFromAnimations(t,e){for(var n=e.length;n--;)arrayContains(t,e[n].animatable.target)&&e.splice(n,1)}function removeTargetsFromInstance(t,e){var n=e.animations,r=e.children;removeTargetsFromAnimations(t,n);for(var a=r.length;a--;){var i=r[a],o=i.animations;removeTargetsFromAnimations(t,o),o.length||i.children.length||r.splice(a,1)}n.length||r.length||e.pause()}function removeTargetsFromActiveInstances(t){for(var e=parseTargets(t),n=activeInstances.length;n--;)removeTargetsFromInstance(e,activeInstances[n])}function stagger(t,e){var s=(e=void 0===e?{}:e).direction||"normal",u=e.easing?parseEasings(e.easing):null,l=e.grid,g=e.axis,c=e.from||0,f="first"===c,d="center"===c,p="last"===c,m=is.arr(t),h=m?parseFloat(t[0]):parseFloat(t),v=m?parseFloat(t[1]):0,y=getUnit(m?t[1]:t)||0,b=e.start||0+(m?h:0),O=[],x=0;return function(t,e,n){if(f&&(c=0),d&&(c=(n-1)/2),p&&(c=n-1),!O.length){for(var r,a,i,o=0;o<n;o++)l?(r=d?(l[0]-1)/2:c%l[0],a=d?(l[1]-1)/2:Math.floor(c/l[0]),r=r-o%l[0],a=a-Math.floor(o/l[0]),i=Math.sqrt(r*r+a*a),"x"===g&&(i=-r),O.push(i="y"===g?-a:i)):O.push(Math.abs(c-o)),x=Math.max.apply(Math,O);u&&(O=O.map(function(t){return u(t/x)*x})),"reverse"===s&&(O=O.map(function(t){return g?t<0?-1*t:-t:Math.abs(x-t)}))}return b+(m?(v-h)/x:h)*(Math.round(100*O[e])/100)+y}}function timeline(o){var s=anime(o=void 0===o?{}:o);return s.duration=0,s.add=function(t,e){var n=activeInstances.indexOf(s),r=s.children;function a(t){t.passThrough=!0}-1<n&&activeInstances.splice(n,1);for(var i=0;i<r.length;i++)a(r[i]);n=mergeObjects(t,replaceObjectProps(defaultTweenSettings,o)),n.targets=n.targets||o.targets,t=s.duration,n.autoplay=!1,n.direction=s.direction,n.timelineOffset=is.und(e)?t:getRelativeValue(e,t),a(s),s.seek(n.timelineOffset),e=anime(n),a(e),r.push(e),t=getInstanceTimings(r,o);return s.delay=t.delay,s.endDelay=t.endDelay,s.duration=t.duration,s.seek(0),s.reset(),s.autoplay&&s.play(),s},s}anime.version="3.2.1",anime.speed=1,anime.suspendWhenDocumentHidden=!0,anime.running=activeInstances,anime.remove=removeTargetsFromActiveInstances,anime.get=getOriginalTargetValue,anime.set=setTargetsValue,anime.convertPx=convertPxToUnit,anime.path=getPath,anime.setDashoffset=setDashoffset,anime.stagger=stagger,anime.timeline=timeline,anime.easing=parseEasings,anime.penner=penner,anime.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},jQuery(window).on("elementor/frontend/init",function(){var e=elementorModules.frontend.handlers.Base.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{direction:"alternate",easing:"easeInOutSine",loop:!0,targets:this.$element[0]}},onElementChange:function(t){0===t.indexOf("etheme_parallax")&&(this.anime&&this.anime.reset(),this.run())},parallaxHoverDestroy:function(){this.$element[0].style.transform=null,this.$element[0].style.transition=null},getFloatingOption:function(t){return this.getElementSettings("etheme_parallax_floating_"+t)},run:function(){var t,e;this.getElementSettings("etheme_parallax")&&(t=this.getElementSettings(),e="mobile"==elementorFrontend.getCurrentDeviceMode(),t.etheme_parallax_mobile&&e||!e)&&"floating_effects"==t.etheme_parallax_type&&(e=this.getDefaultSettings(),this.getFloatingOption("translate_toggle")&&((this.getFloatingOption("translate_x.size")||this.getFloatingOption("translate_x.sizes.to"))&&(e.translateX={value:[this.getFloatingOption("translate_x.sizes.from")||0,this.getFloatingOption("translate_x.size")||this.getFloatingOption("translate_x.sizes.to")],duration:this.getFloatingOption("translate_duration.size"),delay:this.getFloatingOption("translate_delay.size")||0}),this.getFloatingOption("translate_y.size")||this.getFloatingOption("translate_y.sizes.to"))&&(e.translateY={value:[this.getFloatingOption("translate_y.sizes.from")||0,this.getFloatingOption("translate_y.size")||this.getFloatingOption("translate_y.sizes.to")],duration:this.getFloatingOption("translate_duration.size"),delay:this.getFloatingOption("translate_delay.size")||0}),this.getFloatingOption("rotate_toggle")&&((this.getFloatingOption("rotate_x.size")||this.getFloatingOption("rotate_x.sizes.to"))&&(e.rotateX={value:[this.getFloatingOption("rotate_x.sizes.from")||0,this.getFloatingOption("rotate_x.size")||this.getFloatingOption("rotate_x.sizes.to")],duration:this.getFloatingOption("rotate_duration.size"),delay:this.getFloatingOption("rotate_delay.size")||0}),(this.getFloatingOption("rotate_y.size")||this.getFloatingOption("rotate_y.sizes.to"))&&(e.rotateY={value:[this.getFloatingOption("rotate_y.sizes.from")||0,this.getFloatingOption("rotate_y.size")||this.getFloatingOption("rotate_y.sizes.to")],duration:this.getFloatingOption("rotate_duration.size"),delay:this.getFloatingOption("rotate_delay.size")||0}),this.getFloatingOption("rotate_z.size")||this.getFloatingOption("rotate_z.sizes.to"))&&(e.rotateZ={value:[this.getFloatingOption("rotate_z.sizes.from")||0,this.getFloatingOption("rotate_z.size")||this.getFloatingOption("rotate_z.sizes.to")],duration:this.getFloatingOption("rotate_duration.size"),delay:this.getFloatingOption("rotate_delay.size")||0}),this.getFloatingOption("scale_toggle")&&((this.getFloatingOption("scale_x.size")||this.getFloatingOption("scale_x.sizes.to"))&&(e.scaleX={value:[this.getFloatingOption("scale_x.sizes.from")||0,this.getFloatingOption("scale_x.size")||this.getFloatingOption("scale_x.sizes.to")],duration:this.getFloatingOption("scale_duration.size"),delay:this.getFloatingOption("scale_delay.size")||0}),this.getFloatingOption("scale_y.size")||this.getFloatingOption("scale_y.sizes.to"))&&(e.scaleY={value:[this.getFloatingOption("scale_y.sizes.from")||0,this.getFloatingOption("scale_y.size")||this.getFloatingOption("scale_y.sizes.to")],duration:this.getFloatingOption("scale_duration.size"),delay:this.getFloatingOption("scale_delay.size")||0}),this.getFloatingOption("translate_toggle")||this.getFloatingOption("rotate_toggle")||this.getFloatingOption("scale_toggle"))&&(this.findElement(".elementor-widget-container").css("will-change","transform"),this.anime=window.anime&&window.anime(e))}});elementorFrontend.hooks.addAction("frontend/element_ready/widget",function(t){elementorFrontend.elementsHandler.addHandler(e,{$element:t})})});