// source --> https://gartengestaltung-gar10.at/wp-content/plugins/LayerSlider/assets/static/layerslider/js/layerslider.utils.js?ver=7.8.0 

/*
	* LayerSlider Utils
	*
	* (c) 2011-2023 George Krupa, John Gera & Kreatura Media
	*
	* LayerSlider home:		https://layerslider.com/
	* Licensing:			https://layerslider.com/licensing/
*/



;var _initLayerSlider=function(i,t,e){var r=jQuery;r(document).ready(function(){void 0===r.fn.layerSlider?window._layerSlider&&window._layerSlider.showNotice&&window._layerSlider.showNotice(i,"jquery"):(e&&r.each(e,function(t,e){r(i).on(t,e)}),r(i).layerSlider(t))})};if("object"==typeof LS_Meta&&LS_Meta.fixGSAP){var LS_oldGS=window.GreenSockGlobals,LS_oldGSQueue=window._gsQueue,LS_oldGSDefine=window._gsDefine;window._gsDefine=null,delete window._gsDefine;var LS_GSAP=window.GreenSockGlobals={}}var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function l(e){var i=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return(Math.round(t/e)*e*i|0)/i}}function h(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next}var t,e,P,T,w,b,g,i,m,r;function y(t,e,i,r){i===r&&(i=r-(r-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=r,this.da=r-t,this.ca=i-t,this.ba=e-t}function S(t,e,i,r){var n={a:t},s={},a={},o={c:r},l=(t+e)/2,h=(e+i)/2,u=(i+r)/2,_=(l+h)/2,f=(h+u)/2,c=(f-_)/8;return n.b=l+(t-l)/4,s.b=_+c,n.c=s.a=(n.b+s.b)/2,s.c=a.a=(_+f)/2,a.b=f-c,o.b=u+(r-u)/4,a.c=o.a=(a.b+o.b)/2,[n,s,a,o]}function v(t,e,i,r,n){var s,a,o,l,h,u,_,f,c,p,d,m,g,y=t.length-1,v=0,x=t[0].a;for(s=0;s<y;s++)a=(h=t[v]).a,o=h.d,l=t[v+1].d,f=n?(d=T[s],g=((m=w[s])+d)*e*.25/(r?.5:b[s]||.5),o-((u=o-(o-a)*(r?.5*e:0!==d?g/d:0))+(((_=o+(l-o)*(r?.5*e:0!==m?g/m:0))-u)*(3*d/(d+m)+.5)/4||0))):o-((u=o-(o-a)*e*.5)+(_=o+(l-o)*e*.5))/2,u+=f,_+=f,h.c=c=u,h.b=0!==s?x:x=h.a+.6*(h.c-h.a),h.da=o-a,h.ca=c-a,h.ba=x-a,i?(p=S(a,x,c,o),t.splice(v,1,p[0],p[1],p[2],p[3]),v+=4):v++,x=_;(h=t[v]).b=x,h.c=x+.4*(h.d-x),h.da=h.d-h.a,h.ca=h.c-h.a,h.ba=x-h.a,i&&(p=S(h.a,x,h.c,h.d),t.splice(v,1,p[0],p[1],p[2],p[3]))}function x(t,e,i,r){var n,s,a,o,l,h,u=[];if(r)for(s=(t=[r].concat(t)).length;-1<--s;)"string"==typeof(h=t[s][e])&&"="===h.charAt(1)&&(t[s][e]=r[e]+Number(h.charAt(0)+h.substr(2)));if((n=t.length-2)<0)return u[0]=new y(t[0][e],0,0,t[0][e]),u;for(s=0;s<n;s++)a=t[s][e],o=t[s+1][e],u[s]=new y(a,0,0,o),i&&(l=t[s+2][e],T[s]=(T[s]||0)+(o-a)*(o-a),w[s]=(w[s]||0)+(l-o)*(l-o));return u[s]=new y(t[s][e],0,0,t[s+1][e]),u}function c(t,e,i,r,n,s){var a,o,l,h,u,_,f,c,p={},d=[],m=s||t[0];for(o in n="string"==typeof n?","+n+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==e&&(e=1),t[0])d.push(o);if(1<t.length){for(c=t[t.length-1],f=!0,a=d.length;-1<--a;)if(o=d[a],.05<Math.abs(m[o]-c[o])){f=!1;break}f&&(t=t.concat(),s&&t.unshift(s),t.push(t[1]),s=t[t.length-3])}for(T.length=w.length=b.length=0,a=d.length;-1<--a;)o=d[a],g[o]=-1!==n.indexOf(","+o+","),p[o]=x(t,o,g[o],s);for(a=T.length;-1<--a;)T[a]=Math.sqrt(T[a]),w[a]=Math.sqrt(w[a]);if(!r){for(a=d.length;-1<--a;)if(g[o])for(_=(l=p[d[a]]).length-1,h=0;h<_;h++)u=l[h+1].da/w[h]+l[h].da/T[h]||0,b[h]=(b[h]||0)+u*u;for(a=b.length;-1<--a;)b[a]=Math.sqrt(b[a])}for(a=d.length,h=i?4:1;-1<--a;)l=p[o=d[a]],v(l,e,i,r,g[o]),f&&(l.splice(0,h),l.splice(l.length-h,h));return p}function p(t,e,i){for(var r,n,s,a,o,l,h,u,_,f,c,p=1/i,d=t.length;-1<--d;)for(s=(f=t[d]).a,a=f.d-s,o=f.c-s,l=f.b-s,r=n=0,u=1;u<=i;u++)r=n-(n=((h=p*u)*h*a+3*(_=1-h)*(h*o+_*l))*h),e[c=d*i+u-1]=(e[c]||0)+r*r}_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(r,u,v){function d(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i}function m(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle}function g(t){if("function"==typeof t)return t;var p="object"==typeof t?t:{each:t},d=p.ease,m=p.from||0,g=p.base||0,y={},v=isNaN(m),x=p.axis,T={center:.5,end:1}[m]||0;return function(t,e,i){var r,n,s,a,o,l,h,u,_,f=(i||p).length,c=y[f];if(!c){if(!(_="auto"===p.grid?0:(p.grid||[1/0])[0])){for(h=-1/0;h<(h=i[_++].getBoundingClientRect().left)&&_<f;);_--}for(c=y[f]=[],r=v?Math.min(_,f)*T-.5:m%_,n=v?f*T/_-.5:m/_|0,u=1/(h=0),l=0;l<f;l++)s=l%_-r,a=n-(l/_|0),c[l]=o=x?Math.abs("y"===x?a:s):Math.sqrt(s*s+a*a),h<o&&(h=o),o<u&&(u=o);c.max=h-u,c.min=u,c.v=f=p.amount||p.each*(f<_?f-1:x?"y"===x?f/_:_:Math.max(_,f/_))||0,c.b=f<0?g-f:g}return f=(c[t]-c.min)/c.max,c.b+(d?d.getRatio(f):f)*c.v}}var y=function(t,e,i){v.call(this,t,e,i),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=y.prototype.render},x=1e-8,T=v._internals,w=T.isSelector,b=T.isArray,t=y.prototype=v.to({},.1,{}),P=[];y.version="2.1.3",t.constructor=y,t.kill()._gc=!1,y.killTweensOf=y.killDelayedCallsTo=v.killTweensOf,y.getTweensOf=v.getTweensOf,y.lagSmoothing=v.lagSmoothing,y.ticker=v.ticker,y.render=v.render,y.distribute=g,t.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),v.prototype.invalidate.call(this)},t.updateTo=function(t,e){var i,r=this,n=r.ratio,s=r.vars.immediateRender||t.immediateRender;for(i in e&&r._startTime<r._timeline._time&&(r._startTime=r._timeline._time,r._uncache(!1),r._gc?r._enabled(!0,!1):r._timeline.insert(r,r._startTime-r._delay)),t)r.vars[i]=t[i];if(r._initted||s)if(e)r._initted=!1,s&&r.render(0,!0,!0);else if(r._gc&&r._enabled(!0,!1),r._notifyPluginsOfEnabled&&r._firstPT&&v._onPluginEvent("_onDisable",r),.998<r._time/r._duration){var a=r._totalTime;r.render(0,!0,!1),r._initted=!1,r.render(a,!0,!1)}else if(r._initted=!1,r._init(),0<r._time||s)for(var o,l=1/(1-n),h=r._firstPT;h;)o=h.s+h.c,h.c*=l,h.s=o-h.c,h=h._next;return r},t.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,n,s,a,o,l,h,u,_,f=this,c=f._dirty?f.totalDuration():f._totalDuration,p=f._time,d=f._totalTime,m=f._cycle,g=f._duration,y=f._rawPrevTime;if(c-x<=t&&0<=t?(f._totalTime=c,f._cycle=f._repeat,f._yoyo&&0!=(1&f._cycle)?(f._time=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0):(f._time=g,f.ratio=f._ease._calcEnd?f._ease.getRatio(1):1),f._reversed||(r=!0,n="onComplete",i=i||f._timeline.autoRemoveChildren),0!==g||!f._initted&&f.vars.lazy&&!i||(f._startTime===f._timeline._duration&&(t=0),(y<0||t<=0&&-x<=t||y===x&&"isPause"!==f.data)&&y!==t&&(i=!0,x<y&&(n="onReverseComplete")),f._rawPrevTime=u=!e||t||y===t?t:x)):t<x?(f._totalTime=f._time=f._cycle=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0,(0!==d||0===g&&0<y)&&(n="onReverseComplete",r=f._reversed),-x<t?t=0:t<0&&(f._active=!1,0!==g||!f._initted&&f.vars.lazy&&!i||(0<=y&&(i=!0),f._rawPrevTime=u=!e||t||y===t?t:x)),f._initted||(i=!0)):(f._totalTime=f._time=t,0!==f._repeat&&(a=g+f._repeatDelay,f._cycle=f._totalTime/a>>0,0!==f._cycle&&f._cycle===f._totalTime/a&&d<=t&&f._cycle--,f._time=f._totalTime-f._cycle*a,f._yoyo&&0!=(1&f._cycle)&&(f._time=g-f._time,(_=f._yoyoEase||f.vars.yoyoEase)&&(f._yoyoEase||(!0!==_||f._initted?f._yoyoEase=_=!0===_?f._ease:_ instanceof Ease?_:Ease.map[_]:(_=f.vars.ease,f._yoyoEase=_=_?_ instanceof Ease?_:"function"==typeof _?new Ease(_,f.vars.easeParams):Ease.map[_]||v.defaultEase:v.defaultEase)),f.ratio=_?1-_.getRatio((g-f._time)/g):0)),f._time>g?f._time=g:f._time<0&&(f._time=0)),f._easeType&&!_?(o=f._time/g,(1===(l=f._easeType)||3===l&&.5<=o)&&(o=1-o),3===l&&(o*=2),1===(h=f._easePower)?o*=o:2===h?o*=o*o:3===h?o*=o*o*o:4===h&&(o*=o*o*o*o),f.ratio=1===l?1-o:2===l?o:f._time/g<.5?o/2:1-o/2):_||(f.ratio=f._ease.getRatio(f._time/g))),p!==f._time||i||m!==f._cycle){if(!f._initted){if(f._init(),!f._initted||f._gc)return;if(!i&&f._firstPT&&(!1!==f.vars.lazy&&f._duration||f.vars.lazy&&!f._duration))return f._time=p,f._totalTime=d,f._rawPrevTime=y,f._cycle=m,T.lazyTweens.push(f),void(f._lazy=[t,e]);!f._time||r||_?r&&this._ease._calcEnd&&!_&&(f.ratio=f._ease.getRatio(0===f._time?0:1)):f.ratio=f._ease.getRatio(f._time/g)}for(!1!==f._lazy&&(f._lazy=!1),f._active||!f._paused&&f._time!==p&&0<=t&&(f._active=!0),0===d&&(2===f._initted&&0<t&&f._init(),f._startAt&&(0<=t?f._startAt.render(t,!0,i):n=n||"_dummyGS"),!f.vars.onStart||0===f._totalTime&&0!==g||(e||f._callback("onStart"))),s=f._firstPT;s;)s.f?s.t[s.p](s.c*f.ratio+s.s):s.t[s.p]=s.c*f.ratio+s.s,s=s._next;f._onUpdate&&(t<0&&f._startAt&&f._startTime&&f._startAt.render(t,!0,i),e||f._totalTime===d&&!n||f._callback("onUpdate")),f._cycle!==m&&(e||f._gc||f.vars.onRepeat&&f._callback("onRepeat")),!n||f._gc&&!i||(t<0&&f._startAt&&!f._onUpdate&&f._startTime&&f._startAt.render(t,!0,i),r&&(f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!e&&f.vars[n]&&f._callback(n),0===g&&f._rawPrevTime===x&&u!==x&&(f._rawPrevTime=0))}else d!==f._totalTime&&f._onUpdate&&(e||f._callback("onUpdate"))},y.to=function(t,e,i){return new y(t,e,i)},y.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new y(t,e,i)},y.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new y(t,e,r)},y.staggerTo=y.allTo=function(t,e,i,r,n,s,a){var o,l,h,u,_=[],f=g(i.stagger||r),c=i.cycle,p=(i.startAt||P).cycle;for(b(t)||("string"==typeof t&&(t=v.selector(t)||t),w(t)&&(t=d(t))),o=(t=t||[]).length-1,h=0;h<=o;h++){for(u in l={},i)l[u]=i[u];if(c&&(m(l,t,h),null!=l.duration&&(e=l.duration,delete l.duration)),p){for(u in p=l.startAt={},i.startAt)p[u]=i.startAt[u];m(l.startAt,t,h)}l.delay=f(h,t[h],t)+(l.delay||0),h===o&&n&&(l.onComplete=function(){i.onComplete&&i.onComplete.apply(i.onCompleteScope||this,arguments),n.apply(a||i.callbackScope||this,s||P)}),_[h]=new y(t[h],e,l)}return _},y.staggerFrom=y.allFrom=function(t,e,i,r,n,s,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,y.staggerTo(t,e,i,r,n,s,a)},y.staggerFromTo=y.allFromTo=function(t,e,i,r,n,s,a,o){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,y.staggerTo(t,e,r,n,s,a,o)},y.delayedCall=function(t,e,i,r,n){return new y(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},y.set=function(t,e){return new y(t,0,e)},y.isTweening=function(t){return 0<v.getTweensOf(t,!0).length};var s=function(t,e){for(var i=[],r=0,n=t._first;n;)n instanceof v?i[r++]=n:(e&&(i[r++]=n),r=(i=i.concat(s(n,e))).length),n=n._next;return i},_=y.getAllTweens=function(t){return s(r._rootTimeline,t).concat(s(r._rootFramesTimeline,t))};y.killAll=function(t,e,i,r){null==e&&(e=!0),null==i&&(i=!0);var n,s,a,o=_(0!=r),l=o.length,h=e&&i&&r;for(a=0;a<l;a++)s=o[a],(h||s instanceof u||(n=s.target===s.vars.onComplete)&&i||e&&!n)&&(t?s.totalTime(s._reversed?0:s.totalDuration()):s._enabled(!1,!1))},y.killChildTweensOf=function(t,e){if(null!=t){var i,r,n,s,a,o=T.tweenLookup;if("string"==typeof t&&(t=v.selector(t)||t),w(t)&&(t=d(t)),b(t))for(s=t.length;-1<--s;)y.killChildTweensOf(t[s],e);else{for(n in i=[],o)for(r=o[n].target.parentNode;r;)r===t&&(i=i.concat(o[n].tweens)),r=r.parentNode;for(a=i.length,s=0;s<a;s++)e&&i[s].totalTime(i[s].totalDuration()),i[s]._enabled(!1,!1)}}};function n(t,e,i,r){e=!1!==e,i=!1!==i;for(var n,s,a=_(r=!1!==r),o=e&&i&&r,l=a.length;-1<--l;)s=a[l],(o||s instanceof u||(n=s.target===s.vars.onComplete)&&i||e&&!n)&&s.paused(t)}return y.pauseAll=function(t,e,i){n(!0,t,e,i)},y.resumeAll=function(t,e,i){n(!1,t,e,i)},y.globalTimeScale=function(t){var e=r._rootTimeline,i=v.ticker.time;return arguments.length?(t=t||x,e._startTime=i-(i-e._startTime)*e._timeScale/t,e=r._rootFramesTimeline,i=v.ticker.frame,e._startTime=i-(i-e._startTime)*e._timeScale/t,e._timeScale=r._rootTimeline._timeScale=t,t):e._timeScale},t.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this.duration()?this._time/this._duration:this.ratio},t.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},t.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<t&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},t.duration=function(t){return arguments.length?r.prototype.duration.call(this,t):this._duration},t.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},t.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},t.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},t.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},y},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(_,f,p){function d(t){f.call(this,t);var e,i,r=this,n=r.vars;for(i in r._labels={},r.autoRemoveChildren=!!n.autoRemoveChildren,r.smoothChildTiming=!!n.smoothChildTiming,r._sortChildren=!0,r._onUpdate=n.onUpdate,n)e=n[i],c(e)&&-1!==e.join("").indexOf("{self}")&&(n[i]=r._swapSelfInParams(e));c(n.tweens)&&r.add(n.tweens,0,n.align,n.stagger)}function m(t){var e,i={};for(e in t)i[e]=t[e];return i}function g(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle}function h(t,e,i,r){var n="immediateRender";return n in e||(e[n]=!(i&&!1===i[n]||r)),e}function y(t){if("function"==typeof t)return t;var p="object"==typeof t?t:{each:t},d=p.ease,m=p.from||0,g=p.base||0,y={},v=isNaN(m),x=p.axis,T={center:.5,end:1}[m]||0;return function(t,e,i){var r,n,s,a,o,l,h,u,_,f=(i||p).length,c=y[f];if(!c){if(!(_="auto"===p.grid?0:(p.grid||[1/0])[0])){for(h=-1/0;h<(h=i[_++].getBoundingClientRect().left)&&_<f;);_--}for(c=y[f]=[],r=v?Math.min(_,f)*T-.5:m%_,n=v?f*T/_-.5:m/_|0,u=1/(h=0),l=0;l<f;l++)s=l%_-r,a=n-(l/_|0),c[l]=o=x?Math.abs("y"===x?a:s):Math.sqrt(s*s+a*a),h<o&&(h=o),o<u&&(u=o);c.max=h-u,c.min=u,c.v=f=p.amount||p.each*(f<_?f-1:x?"y"===x?f/_:_:Math.max(_,f/_))||0,c.b=f<0?g-f:g}return f=(c[t]-c.min)/c.max,c.b+(d?d.getRatio(f):f)*c.v}}var v=1e-8,t=p._internals,e=d._internals={},x=t.isSelector,c=t.isArray,T=t.lazyTweens,w=t.lazyRender,a=_gsScope._gsDefine.globals,s=e.pauseCallback=function(){},i=d.prototype=new f;return d.version="2.1.3",d.distribute=y,i.constructor=d,i.kill()._gc=i._forcingPlayhead=i._hasPause=!1,i.to=function(t,e,i,r){var n=i.repeat&&a.TweenMax||p;return e?this.add(new n(t,e,i),r):this.set(t,i,r)},i.from=function(t,e,i,r){return this.add((i.repeat&&a.TweenMax||p).from(t,e,h(0,i)),r)},i.fromTo=function(t,e,i,r,n){var s=r.repeat&&a.TweenMax||p;return r=h(0,r,i),e?this.add(s.fromTo(t,e,i,r),n):this.set(t,r,n)},i.staggerTo=function(t,e,i,r,n,s,a,o){var l,h,u=new d({onComplete:s,onCompleteParams:a,callbackScope:o,smoothChildTiming:this.smoothChildTiming}),_=y(i.stagger||r),f=i.startAt,c=i.cycle;for("string"==typeof t&&(t=p.selector(t)||t),x(t=t||[])&&(t=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i}(t)),h=0;h<t.length;h++)l=m(i),f&&(l.startAt=m(f),f.cycle&&g(l.startAt,t,h)),c&&(g(l,t,h),null!=l.duration&&(e=l.duration,delete l.duration)),u.to(t[h],e,l,_(h,t[h],t));return this.add(u,n)},i.staggerFrom=function(t,e,i,r,n,s,a,o){return i.runBackwards=!0,this.staggerTo(t,e,h(0,i),r,n,s,a,o)},i.staggerFromTo=function(t,e,i,r,n,s,a,o,l){return r.startAt=i,this.staggerTo(t,e,h(0,r,i),n,s,a,o,l)},i.call=function(t,e,i,r){return this.add(p.delayedCall(0,t,e,i),r)},i.set=function(t,e,i){return this.add(new p(t,0,h(0,e,null,!0)),i)},d.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var i,r,n,s,a=new d(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,n=o._first;n;)s=n._next,e&&n instanceof p&&n.target===n.vars.onComplete||((r=n._startTime-n._delay)<0&&(i=1),a.add(n,r)),n=s;return o.add(a,0),i&&a.totalDuration(),a},i.add=function(t,e,i,r){var n,s,a,o,l,h,u=this;if("number"!=typeof e&&(e=u._parseTimeOrLabel(e,0,!0,t)),!(t instanceof _)){if(t instanceof Array||t&&t.push&&c(t)){for(i=i||"normal",r=r||0,n=e,s=t.length,a=0;a<s;a++)c(o=t[a])&&(o=new d({tweens:o})),u.add(o,n),"string"!=typeof o&&"function"!=typeof o&&("sequence"===i?n=o._startTime+o.totalDuration()/o._timeScale:"start"===i&&(o._startTime-=o.delay())),n+=r;return u._uncache(!0)}if("string"==typeof t)return u.addLabel(t,e);if("function"!=typeof t)throw"Cannot add "+t+" into the timeline; it is not a tween, timeline, function, or string.";t=p.delayedCall(0,t)}if(f.prototype.add.call(u,t,e),(t._time||!t._duration&&t._initted)&&(n=(u.rawTime()-t._startTime)*t._timeScale,(!t._duration||1e-5<Math.abs(Math.max(0,Math.min(t.totalDuration(),n)))-t._totalTime)&&t.render(n,!1,!1)),(u._gc||u._time===u._duration)&&!u._paused&&u._duration<u.duration())for(h=(l=u).rawTime()>t._startTime;l._timeline;)h&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return u},i.remove=function(t){if(t instanceof _){this._remove(t,!1);var e=t._timeline=t.vars.useFrames?_._rootFramesTimeline:_._rootTimeline;return t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this}if(t instanceof Array||t&&t.push&&c(t)){for(var i=t.length;-1<--i;)this.remove(t[i]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},i._remove=function(t,e){return f.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},i.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},i.insert=i.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},i.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},i.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},i.addPause=function(t,e,i,r){var n=p.delayedCall(0,s,i,r||this);return n.vars.onComplete=n.vars.onReverseComplete=e,n.data="isPause",this._hasPause=!0,this.add(n,t)},i.removeLabel=function(t){return delete this._labels[t],this},i.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},i._parseTimeOrLabel=function(t,e,i,r){var n,s;if(r instanceof _&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&c(r)))for(s=r.length;-1<--s;)r[s]instanceof _&&r[s].timeline===this&&this.remove(r[s]);if(n="number"!=typeof t||e?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,i&&"number"==typeof t&&null==this._labels[e]?t-n:0,i);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=n);else{if(-1===(s=t.indexOf("=")))return null==this._labels[t]?i?this._labels[t]=n+e:e:this._labels[t]+e;e=parseInt(t.charAt(s-1)+"1",10)*Number(t.substr(s+1)),t=1<s?this._parseTimeOrLabel(t.substr(0,s-1),0,i):n}return Number(t)+e},i.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},i.stop=function(){return this.paused(!0)},i.gotoAndPlay=function(t,e){return this.play(t,e)},i.gotoAndStop=function(t,e){return this.pause(t,e)},i.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,a,o,l,h,u,_=this,f=_._time,c=_._dirty?_.totalDuration():_._totalDuration,p=_._startTime,d=_._timeScale,m=_._paused;if(f!==_._time&&(t+=_._time-f),_._hasPause&&!_._forcingPlayhead&&!e){if(f<t)for(r=_._first;r&&r._startTime<=t&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===_._rawPrevTime||(l=r),r=r._next;else for(r=_._last;r&&r._startTime>=t&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(_._time=_._totalTime=t=l._startTime,u=_._startTime+(_._reversed?_._duration-t:t)/_._timeScale)}if(c-v<=t&&0<=t)_._totalTime=_._time=c,_._reversed||_._hasPausedChild()||(n=!0,a="onComplete",o=!!_._timeline.autoRemoveChildren,0===_._duration&&(t<=0&&-v<=t||_._rawPrevTime<0||_._rawPrevTime===v)&&_._rawPrevTime!==t&&_._first&&(o=!0,_._rawPrevTime>v&&(a="onReverseComplete"))),_._rawPrevTime=_._duration||!e||t||_._rawPrevTime===t?t:v,t=c+1e-4;else if(t<v)if(_._totalTime=_._time=0,-v<t&&(t=0),(0!==f||0===_._duration&&_._rawPrevTime!==v&&(0<_._rawPrevTime||t<0&&0<=_._rawPrevTime))&&(a="onReverseComplete",n=_._reversed),t<0)_._active=!1,_._timeline.autoRemoveChildren&&_._reversed?(o=n=!0,a="onReverseComplete"):0<=_._rawPrevTime&&_._first&&(o=!0),_._rawPrevTime=t;else{if(_._rawPrevTime=_._duration||!e||t||_._rawPrevTime===t?t:v,0===t&&n)for(r=_._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,_._initted||(o=!0)}else _._totalTime=_._time=_._rawPrevTime=t;if(_._time!==f&&_._first||i||o||l){if(_._initted||(_._initted=!0),_._active||!_._paused&&_._time!==f&&0<t&&(_._active=!0),0===f&&_.vars.onStart&&(0===_._time&&_._duration||e||_._callback("onStart")),f<=(h=_._time))for(r=_._first;r&&(s=r._next,h===_._time&&(!_._paused||m));)(r._active||r._startTime<=h&&!r._paused&&!r._gc)&&(l===r&&(_.pause(),_._pauseTime=u),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s;else for(r=_._last;r&&(s=r._prev,h===_._time&&(!_._paused||m));){if(r._active||r._startTime<=f&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>_._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,_.pause(),_._pauseTime=u}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=s}_._onUpdate&&(e||(T.length&&w(),_._callback("onUpdate"))),a&&(_._gc||p!==_._startTime&&d===_._timeScale||!(0===_._time||c>=_.totalDuration())||(n&&(T.length&&w(),_._timeline.autoRemoveChildren&&_._enabled(!1,!1),_._active=!1),!e&&_.vars[a]&&_._callback(a)))}},i._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof d&&t._hasPausedChild())return!0;t=t._next}return!1},i.getChildren=function(t,e,i,r){r=r||-9999999999;for(var n=[],s=this._first,a=0;s;)s._startTime<r||(s instanceof p?!1!==e&&(n[a++]=s):(!1!==i&&(n[a++]=s),!1!==t&&(a=(n=n.concat(s.getChildren(!0,e,i))).length))),s=s._next;return n},i.getTweensOf=function(t,e){var i,r,n=this._gc,s=[],a=0;for(n&&this._enabled(!0,!0),r=(i=p.getTweensOf(t)).length;-1<--r;)(i[r].timeline===this||e&&this._contains(i[r]))&&(s[a++]=i[r]);return n&&this._enabled(!1,!0),s},i.recent=function(){return this._recent},i._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},i.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return this._uncache(!0)},i._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;-1<--r;)i[r]._kill(t,e)&&(n=!0);return n},i.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;-1<--i;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},i.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return _.prototype.invalidate.call(this)},i._enabled=function(t,e){if(t===this._gc)for(var i=this._first;i;)i._enabled(t,!0),i=i._next;return f.prototype._enabled.call(this,t,e)},i.totalTime=function(t,e,i){this._forcingPlayhead=!0;var r=_.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},i.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},i.totalDuration=function(t){if(arguments.length)return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this;if(this._dirty){for(var e,i,r=0,n=this,s=n._last,a=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>a&&n._sortChildren&&!s._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(s,s._startTime-s._delay),n._calculatingDuration=0):a=s._startTime,s._startTime<0&&!s._paused&&(r-=s._startTime,n._timeline.smoothChildTiming&&(n._startTime+=s._startTime/n._timeScale,n._time-=s._startTime,n._totalTime-=s._startTime,n._rawPrevTime-=s._startTime),n.shiftChildren(-s._startTime,!1,-9999999999),a=0),r<(i=s._startTime+s._totalDuration/s._timeScale)&&(r=i),s=e;n._duration=n._totalDuration=r,n._dirty=!1}return this._totalDuration},i.paused=function(t){if(!1===t&&this._paused)for(var e=this._first;e;)e._startTime===this._time&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return _.prototype.paused.apply(this,arguments)},i.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===_._rootFramesTimeline},i.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},d},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(e,o,t){function i(t){e.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0}var C=1e-8,r=o._internals,R=r.lazyTweens,A=r.lazyRender,l=_gsScope._gsDefine.globals,h=new t(null,null,1,0),n=i.prototype=new e;return n.constructor=i,n.kill()._gc=!1,i.version="2.1.3",n.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),e.prototype.invalidate.call(this)},n.addCallback=function(t,e,i,r){return this.add(o.delayedCall(0,t,i,r),e)},n.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),r=i.length,n=this._parseTimeOrLabel(e);-1<--r;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},n.removePause=function(t){return this.removeCallback(e._internals.pauseCallback,t)},n.tweenTo=function(t,e){e=e||{};var i,r,n,s={ease:h,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},a=e.repeat&&l.TweenMax||o;for(r in e)s[r]=e[r];return s.time=this._parseTimeOrLabel(t),i=Math.abs(Number(s.time)-this._time)/this._timeScale||.001,n=new a(this,i,s),s.onStart=function(){n.target.paused(!0),n.vars.time===n.target.time()||i!==n.duration()||n.isFromTo||n.duration(Math.abs(n.vars.time-n.target.time())/n.target._timeScale).render(n.time(),!0,!0),e.onStart&&e.onStart.apply(e.onStartScope||e.callbackScope||n,e.onStartParams||[])},n},n.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender;var r=this.tweenTo(e,i);return r.isFromTo=1,r.duration(Math.abs(r.vars.time-t)/this._timeScale||.001)},n.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,a,o,l,h,u,_,f=this,c=f._time,p=f._dirty?f.totalDuration():f._totalDuration,d=f._duration,m=f._totalTime,g=f._startTime,y=f._timeScale,v=f._rawPrevTime,x=f._paused,T=f._cycle;if(c!==f._time&&(t+=f._time-c),p-C<=t&&0<=t)f._locked||(f._totalTime=p,f._cycle=f._repeat),f._reversed||f._hasPausedChild()||(n=!0,a="onComplete",o=!!f._timeline.autoRemoveChildren,0===f._duration&&(t<=0&&-C<=t||v<0||v===C)&&v!==t&&f._first&&(o=!0,C<v&&(a="onReverseComplete"))),f._rawPrevTime=f._duration||!e||t||f._rawPrevTime===t?t:C,f._yoyo&&1&f._cycle?f._time=t=0:t=(f._time=d)+1e-4;else if(t<C)if(f._locked||(f._totalTime=f._cycle=0),f._time=0,-C<t&&(t=0),(0!==c||0===d&&v!==C&&(0<v||t<0&&0<=v)&&!f._locked)&&(a="onReverseComplete",n=f._reversed),t<0)f._active=!1,f._timeline.autoRemoveChildren&&f._reversed?(o=n=!0,a="onReverseComplete"):0<=v&&f._first&&(o=!0),f._rawPrevTime=t;else{if(f._rawPrevTime=d||!e||t||f._rawPrevTime===t?t:C,0===t&&n)for(r=f._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,f._initted||(o=!0)}else 0===d&&v<0&&(o=!0),f._time=f._rawPrevTime=t,f._locked||(f._totalTime=t,0!==f._repeat&&(l=d+f._repeatDelay,f._cycle=f._totalTime/l>>0,f._cycle&&f._cycle===f._totalTime/l&&m<=t&&f._cycle--,f._time=f._totalTime-f._cycle*l,f._yoyo&&1&f._cycle&&(f._time=d-f._time),f._time>d?t=(f._time=d)+1e-4:f._time<0?f._time=t=0:t=f._time));if(f._hasPause&&!f._forcingPlayhead&&!e){if(c<(t=f._time)||f._repeat&&T!==f._cycle)for(r=f._first;r&&r._startTime<=t&&!h;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===f._rawPrevTime||(h=r),r=r._next;else for(r=f._last;r&&r._startTime>=t&&!h;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(h=r),r=r._prev;h&&(_=f._startTime+(f._reversed?f._duration-h._startTime:h._startTime)/f._timeScale,h._startTime<d&&(f._time=f._rawPrevTime=t=h._startTime,f._totalTime=t+f._cycle*(f._totalDuration+f._repeatDelay)))}if(f._cycle!==T&&!f._locked){var w=f._yoyo&&0!=(1&T),b=w===(f._yoyo&&0!=(1&f._cycle)),P=f._totalTime,S=f._cycle,O=f._rawPrevTime,k=f._time;if(f._totalTime=T*d,f._cycle<T?w=!w:f._totalTime+=d,f._time=c,f._rawPrevTime=0===d?v-1e-4:v,f._cycle=T,f._locked=!0,c=w?0:d,f.render(c,e,0===d),e||f._gc||f.vars.onRepeat&&(f._cycle=S,f._locked=!1,f._callback("onRepeat")),c!==f._time)return;if(b&&(f._cycle=T,f._locked=!0,c=w?d+1e-4:-1e-4,f.render(c,!0,!1)),f._locked=!1,f._paused&&!x)return;f._time=k,f._totalTime=P,f._cycle=S,f._rawPrevTime=O}if(f._time!==c&&f._first||i||o||h){if(f._initted||(f._initted=!0),f._active||!f._paused&&f._totalTime!==m&&0<t&&(f._active=!0),0===m&&f.vars.onStart&&(0===f._totalTime&&f._totalDuration||e||f._callback("onStart")),c<=(u=f._time))for(r=f._first;r&&(s=r._next,u===f._time&&(!f._paused||x));)(r._active||r._startTime<=f._time&&!r._paused&&!r._gc)&&(h===r&&(f.pause(),f._pauseTime=_),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s;else for(r=f._last;r&&(s=r._prev,u===f._time&&(!f._paused||x));){if(r._active||r._startTime<=c&&!r._paused&&!r._gc){if(h===r){for(h=r._prev;h&&h.endTime()>f._time;)h.render(h._reversed?h.totalDuration()-(t-h._startTime)*h._timeScale:(t-h._startTime)*h._timeScale,e,i),h=h._prev;h=null,f.pause(),f._pauseTime=_}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=s}f._onUpdate&&(e||(R.length&&A(),f._callback("onUpdate"))),a&&(f._locked||f._gc||g!==f._startTime&&y===f._timeScale||!(0===f._time||p>=f.totalDuration())||(n&&(R.length&&A(),f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!e&&f.vars[a]&&f._callback(a)))}else m!==f._totalTime&&f._onUpdate&&(e||f._callback("onUpdate"))},n.getActive=function(t,e,i){var r,n,s=[],a=this.getChildren(t||null==t,e||null==t,!!i),o=0,l=a.length;for(r=0;r<l;r++)(n=a[r]).isActive()&&(s[o++]=n);return s},n.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),r=i.length;for(e=0;e<r;e++)if(i[e].time>t)return i[e].name;return null},n.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;-1<--i;)if(e[i].time<t)return e[i].name;return null},n.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},n.invalidate=function(){return this._locked=!1,e.prototype.invalidate.call(this)},n.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()||0},n.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},n.totalDuration=function(t){return arguments.length?-1!==this._repeat&&t?this.timeScale(this.totalDuration()/t):this:(this._dirty&&(e.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},n.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<t&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},n.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},n.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},n.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+C)},i},!0),P=180/Math.PI,T=[],w=[],b=[],g={},i=_gsScope._gsDefine.globals,m=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.9",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var r,n,s,a,o,l=e.values||[],h={},u=l[0],_=e.autoRotate||i.vars.orientToBezier;for(r in this._autoRotate=_?_ instanceof Array?_:[["x","y","rotation",!0===_?0:Number(_)||0]]:null,u)this._props.push(r);for(s=this._props.length;-1<--s;)r=this._props[s],this._overwriteProps.push(r),n=this._func[r]="function"==typeof t[r],h[r]=n?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(t[r]),o||h[r]!==l[0][r]&&(o=h);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?c(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,o):function(t,e,i){var r,n,s,a,o,l,h,u,_,f,c,p={},d="cubic"===(e=e||"soft")?3:2,m="soft"===e,g=[];if(m&&i&&(t=[i].concat(t)),null==t||t.length<1+d)throw"invalid Bezier data";for(_ in t[0])g.push(_);for(l=g.length;-1<--l;){for(p[_=g[l]]=o=[],f=0,u=t.length,h=0;h<u;h++)r=null==i?t[h][_]:"string"==typeof(c=t[h][_])&&"="===c.charAt(1)?i[_]+Number(c.charAt(0)+c.substr(2)):Number(c),m&&1<h&&h<u-1&&(o[f++]=(r+o[f-2])/2),o[f++]=r;for(u=f-d+1,h=f=0;h<u;h+=d)r=o[h],n=o[h+1],s=o[h+2],a=2==d?0:o[h+3],o[f++]=c=3==d?new y(r,n,s,a):new y(r,(2*n+r)/3,(2*n+s)/3,s);o.length=f}return p}(l,e.type,h),this._segCount=this._beziers[r].length,this._timeRes){var f=function(t,e){var i,r,n,s,a=[],o=[],l=0,h=0,u=(e=e>>0||6)-1,_=[],f=[];for(i in t)p(t[i],a,e);for(n=a.length,r=0;r<n;r++)l+=Math.sqrt(a[r]),f[s=r%e]=l,s===u&&(h+=l,_[s=r/e>>0]=f,o[s]=h,l=0,f=[]);return{length:h,lengths:o,segments:_}}(this._beziers,this._timeRes);this._length=f.length,this._lengths=f.lengths,this._segments=f.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(_=this._autoRotate)for(this._initialRotations=[],_[0]instanceof Array||(this._autoRotate=_=[_]),s=_.length;-1<--s;){for(a=0;a<3;a++)r=_[s][a],this._func[r]="function"==typeof t[r]&&t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)];r=_[s][2],this._initialRotations[s]=(this._func[r]?this._func[r].call(this._target):this._target[r])||0,this._overwriteProps.push(r)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(t){var e,i,r,n,s,a,o,l,h,u,_,f=this._segCount,c=this._func,p=this._target,d=t!==this._startRatio;if(this._timeRes){if(h=this._lengths,u=this._curSeg,_=t*this._length,r=this._li,_>this._l2&&r<f-1){for(l=f-1;r<l&&(this._l2=h[++r])<=_;);this._l1=h[r-1],this._li=r,this._curSeg=u=this._segments[r],this._s2=u[this._s1=this._si=0]}else if(_<this._l1&&0<r){for(;0<r&&(this._l1=h[--r])>=_;);0===r&&_<this._l1?this._l1=0:r++,this._l2=h[r],this._li=r,this._curSeg=u=this._segments[r],this._s1=u[(this._si=u.length-1)-1]||0,this._s2=u[this._si]}if(e=r,_-=this._l1,r=this._si,_>this._s2&&r<u.length-1){for(l=u.length-1;r<l&&(this._s2=u[++r])<=_;);this._s1=u[r-1],this._si=r}else if(_<this._s1&&0<r){for(;0<r&&(this._s1=u[--r])>=_;);0===r&&_<this._s1?this._s1=0:r++,this._s2=u[r],this._si=r}a=1===t?1:(r+(_-this._s1)/(this._s2-this._s1))*this._prec||0}else a=(t-(e=t<0?0:1<=t?f-1:f*t>>0)*(1/f))*f;for(i=1-a,r=this._props.length;-1<--r;)n=this._props[r],o=(a*a*(s=this._beziers[n][e]).da+3*i*(a*s.ca+i*s.ba))*a+s.a,this._mod[n]&&(o=this._mod[n](o,p)),c[n]?p[n](o):p[n]=o;if(this._autoRotate){var m,g,y,v,x,T,w,b=this._autoRotate;for(r=b.length;-1<--r;)n=b[r][2],T=b[r][3]||0,w=!0===b[r][4]?1:P,s=this._beziers[b[r][0]],m=this._beziers[b[r][1]],s&&m&&(s=s[e],m=m[e],g=s.a+(s.b-s.a)*a,g+=((v=s.b+(s.c-s.b)*a)-g)*a,v+=(s.c+(s.d-s.c)*a-v)*a,y=m.a+(m.b-m.a)*a,y+=((x=m.b+(m.c-m.b)*a)-y)*a,x+=(m.c+(m.d-m.c)*a-x)*a,o=d?Math.atan2(x-y,v-g)*w+T:this._initialRotations[r],this._mod[n]&&(o=this._mod[n](o,p)),c[n]?p[n](o):p[n]=o)}}}),r=m.prototype,m.bezierThrough=c,m.cubicToQuadratic=S,m._autoCSS=!0,m.quadraticToCubic=function(t,e,i){return new y(t,(2*e+t)/3,(2*e+i)/3,i)},m._cssRegister=function(){var t=i.CSSPlugin;if(t){var e=t._internals,c=e._parseToProxy,p=e._setPluginRatio,d=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,i,r,n,s){e instanceof Array&&(e={values:e}),s=new m;var a,o,l,h=e.values,u=h.length-1,_=[],f={};if(u<0)return n;for(a=0;a<=u;a++)l=c(t,h[a],r,n,s,u!==a),_[a]=l.end;for(o in e)f[o]=e[o];return f.values=_,(n=new d(t,"bezier",0,0,l.pt,2)).data=l,n.plugin=s,n.setRatio=p,0===f.autoRotate&&(f.autoRotate=!0),!f.autoRotate||f.autoRotate instanceof Array||(a=!0===f.autoRotate?0:Number(f.autoRotate),f.autoRotate=null!=l.end.left?[["left","top","rotation",a,!1]]:null!=l.end.x&&[["x","y","rotation",a,!1]]),f.autoRotate&&(r._transform||r._enableTransforms(!1),l.autoRotate=r._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,r._overwriteProps.push("rotation")),s._onInitTween(l.proxy,f,r._tween),n}})}},r._mod=function(t){for(var e,i=this._overwriteProps,r=i.length;-1<--r;)(e=t[i[r]])&&"function"==typeof e&&(this._mod[i[r]]=e)},r._kill=function(t){var e,i,r=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=r.length;-1<--i;)r[i]===e&&r.splice(i,1);if(r=this._autoRotate)for(i=r.length;-1<--i;)t[r[i][2]]&&r.splice(i,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(s,X){var p,P,S,d,B=function(){s.call(this,"css"),this._overwriteProps.length=0,this.setRatio=B.prototype.setRatio},h=_gsScope._gsDefine.globals,m={},t=B.prototype=new s("css");(t.constructor=B).version="2.1.3",B.API=2,B.defaultTransformPerspective=0,B.defaultSkewType="compensated",B.defaultSmoothOrigin=!0,t="px",B.suffixMap={top:t,right:t,bottom:t,left:t,width:t,height:t,fontSize:t,padding:t,margin:t,perspective:t,lineHeight:""};function a(t,e){return e.toUpperCase()}function o(t,e){var i=it.createElementNS?it.createElementNS(e||"h"+"t"+"t"+"p"+":"+"/"+"/"+"www.w3.org/1999/xhtml",t):it.createElement(t);return i.style?i:it.createElement(t)}function l(t){return j.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1}function g(t){_gsScope.console&&console.log(t)}function O(t,e){var i,r,n=(e=e||rt).style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;-1<--r&&void 0===n[i[r]+t];);return 0<=r?(lt="-"+(ht=3===r?"ms":i[r]).toLowerCase()+"-",ht+t):null}function y(t){return ut.getComputedStyle(t)}function v(t,e){var i,r,n,s={};if(e=e||y(t))if(i=e.length)for(;-1<--i;)-1!==(n=e[i]).indexOf("-transform")&&Xt!==n||(s[n.replace(V,a)]=e.getPropertyValue(n));else for(i in e)-1!==i.indexOf("Transform")&&jt!==i||(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(V,a)]=e[i]);return ot||(s.opacity=l(t)),r=$t(t,e,!1),s.rotation=r.rotation,s.skewX=r.skewX,s.scaleX=r.scaleX,s.scaleY=r.scaleY,s.x=r.x,s.y=r.y,Yt&&(s.z=r.z,s.rotationX=r.rotationX,s.rotationY=r.rotationY,s.scaleZ=r.scaleZ),s.filters&&delete s.filters,s}function x(t,e,i,r,n){var s,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(s=i[a])||n&&n[a])&&-1===a.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[a]="auto"!==s||"left"!==a&&"top"!==a?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[a]||""===e[a].replace(u,"")?s:0:ct(t,a),void 0!==h[a]&&(o=new bt(h,a,h[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}}function T(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||y(t))[e]||0;if(t.getCTM&&Qt(t))return t.getBBox()[e]||0;var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=pt[e],s=n.length;for(i=i||y(t);-1<--s;)r-=parseFloat(_t(t,"padding"+n[s],i,!0))||0,r-=parseFloat(_t(t,"border"+n[s]+"Width",i,!0))||0;return r}function k(t,e){return"function"==typeof t&&(t=t(L,F)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0}function C(t,e){"function"==typeof t&&(t=t(L,F));var i="string"==typeof t&&"="===t.charAt(1);return"string"==typeof t&&"v"===t.charAt(t.length-2)&&(t=(i?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(i?t.substr(2):t)/100)),null==t?e:i?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0}function R(t,e,i,r){var n,s,a,o,l;return"function"==typeof t&&(t=t(L,F)),(o=null==t?e:"number"==typeof t?t:(n=360,s=t.split("_"),a=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:J)-(l?0:e),s.length&&(r&&(r[i]=e+a),-1!==t.indexOf("short")&&((a%=n)!==a%180&&(a=a<0?a+n:a-n)),-1!==t.indexOf("_cw")&&a<0?a=(a+3599999999640)%n-(a/n|0)*n:-1!==t.indexOf("ccw")&&0<a&&(a=(a-3599999999640)%n-(a/n|0)*n)),e+a))<1e-6&&-1e-6<o&&(o=0),o}function c(t,e,i){return 255*(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0}function r(t,e){var i,r,n,s=t.match(vt)||[],a=0,o="";if(!s.length)return t;for(i=0;i<s.length;i++)r=s[i],a+=(n=t.substr(a,t.indexOf(r,a)-a)).length+r.length,3===(r=yt(r,e)).length&&r.push(1),o+=n+(e?"hsla("+r[0]+","+r[1]+"%,"+r[2]+"%,"+r[3]:"rgba("+r.join(","))+")";return o+t.substr(a)}var A,w,b,Y,M,D,F,L,e,i,z=/(?:\-|\.|\b)(\d|\.|e\-)+/g,E=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,I=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,n=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,u=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,N=/(?:\d|\-|\+|=|#|\.)*/g,j=/opacity *= *([^)]*)/i,G=/opacity:([^;]*)/i,_=/alpha\(opacity *=.+?\)/i,U=/^(rgb|hsl)/,f=/([A-Z])/g,V=/-([a-z])/gi,q=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,W=/(?:Left|Right|Width)/i,Q=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,Z=/,(?=[^\)]*(?:\(|$))/gi,$=/[\s,\(]/i,K=Math.PI/180,J=180/Math.PI,tt={},et={style:{}},it=_gsScope.document||{createElement:function(){return et}},rt=o("div"),nt=o("img"),st=B._internals={_specialProps:m},at=(_gsScope.navigator||{}).userAgent||"",ot=(e=at.indexOf("Android"),i=o("a"),b=-1!==at.indexOf("Safari")&&-1===at.indexOf("Chrome")&&(-1===e||3<parseFloat(at.substr(e+8,2))),M=b&&parseFloat(at.substr(at.indexOf("Version/")+8,2))<6,Y=-1!==at.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(at)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(at))&&(D=parseFloat(RegExp.$1)),!!i&&(i.style.cssText="top:1px;opacity:.55;",/^0.55/.test(i.style.opacity))),lt="",ht="",ut="undefined"!=typeof window?window:it.defaultView||{getComputedStyle:function(){}},_t=B.getStyle=function(t,e,i,r,n){var s;return ot||"opacity"!==e?(!r&&t.style[e]?s=t.style[e]:(i=i||y(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(f,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==n||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:n):l(t)},ft=st.convertToPixels=function(t,e,i,r,n){if("px"===r||!r&&"lineHeight"!==e)return i;if("auto"===r||!i)return 0;var s,a,o,l=W.test(e),h=t,u=rt.style,_=i<0,f=1===i;if(_&&(i=-i),f&&(i*=100),"lineHeight"!==e||r)if("%"===r&&-1!==e.indexOf("border"))s=i/100*(l?t.clientWidth:t.clientHeight);else{if(u.cssText="border:0 solid red;position:"+_t(t,"position")+";line-height:0;","%"!==r&&h.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)u[l?"borderLeftWidth":"borderTopWidth"]=i+r;else{if(h=t.parentNode||it.body,-1!==_t(h,"display").indexOf("flex")&&(u.position="absolute"),a=h._gsCache,o=X.ticker.frame,a&&l&&a.time===o)return a.width*i/100;u[l?"width":"height"]=i+r}h.appendChild(rt),s=parseFloat(rt[l?"offsetWidth":"offsetHeight"]),h.removeChild(rt),l&&"%"===r&&!1!==B.cacheWidths&&((a=h._gsCache=h._gsCache||{}).time=o,a.width=s/i*100),0!==s||n||(s=ft(t,e,i,r,!0))}else a=y(t).lineHeight,t.style.lineHeight=i,s=parseFloat(y(t).lineHeight),t.style.lineHeight=a;return f&&(s/=100),_?-s:s},ct=st.calculateOffset=function(t,e,i){if("absolute"!==_t(t,"position",i))return 0;var r="left"===e?"Left":"Top",n=_t(t,"margin"+r,i);return t["offset"+r]-(ft(t,e,parseFloat(n),n.replace(N,""))||0)},pt={width:["Left","Right"],height:["Top","Bottom"]},dt=["marginLeft","marginRight","marginTop","marginBottom"],mt=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var i,r=t.split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":r[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":r[1];if(3<r.length&&!e){for(r=t.split(", ").join(",").split(","),t=[],i=0;i<r.length;i++)t.push(mt(r[i]));return t.join(",")}return null==s?s="center"===n?"50%":"0":"center"===s&&(s="50%"),("center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("="))&&(n="50%"),t=n+" "+s+(2<r.length?" "+r[2]:""),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(n.replace(u,"")),e.oy=parseFloat(s.replace(u,"")),e.v=t),e||t},gt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},yt=B.parseColor=function(t,e){var i,r,n,s,a,o,l,h,u,_,f;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),gt[t])i=gt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(r=t.charAt(1))+r+(n=t.charAt(2))+n+(s=t.charAt(3))+s),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=f=t.match(z),e){if(-1!==t.indexOf("="))return t.match(E)}else a=Number(i[0])%360/360,o=Number(i[1])/100,r=2*(l=Number(i[2])/100)-(n=l<=.5?l*(o+1):l+o-l*o),3<i.length&&(i[3]=Number(i[3])),i[0]=c(a+1/3,r,n),i[1]=c(a,r,n),i[2]=c(a-1/3,r,n);else i=t.match(z)||gt.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),3<i.length&&(i[3]=Number(i[3]))}else i=gt.black;return e&&!f&&(r=i[0]/255,n=i[1]/255,s=i[2]/255,l=((h=Math.max(r,n,s))+(u=Math.min(r,n,s)))/2,h===u?a=o=0:(_=h-u,o=.5<l?_/(2-h-u):_/(h+u),a=h===r?(n-s)/_+(n<s?6:0):h===n?(s-r)/_+2:(r-n)/_+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},vt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in gt)vt+="|"+t+"\\b";vt=new RegExp(vt+")","gi"),B.colorStringFilter=function(t){var e,i=t[0]+" "+t[1];vt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=r(t[0],e),t[1]=r(t[1],e)),vt.lastIndex=0},X.defaultStringFilter||(X.defaultStringFilter=B.colorStringFilter);function xt(t,e,s,a){if(null==t)return function(t){return t};var o,l=e?(t.match(vt)||[""])[0]:"",h=t.split(l).join("").match(I)||[],u=t.substr(0,t.indexOf(h[0])),_=")"===t.charAt(t.length-1)?")":"",f=-1!==t.indexOf(" ")?" ":",",c=h.length,p=0<c?h[0].replace(z,""):"";return c?o=e?function(t){var e,i,r,n;if("number"==typeof t)t+=p;else if(a&&Z.test(t)){for(n=t.replace(Z,"|").split("|"),r=0;r<n.length;r++)n[r]=o(n[r]);return n.join(",")}if(e=(t.match(vt)||[l])[0],r=(i=t.split(e).join("").match(I)||[]).length,c>r--)for(;++r<c;)i[r]=s?i[(r-1)/2|0]:h[r];return u+i.join(f)+f+e+_+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,i,r;if("number"==typeof t)t+=p;else if(a&&Z.test(t)){for(i=t.replace(Z,"|").split("|"),r=0;r<i.length;r++)i[r]=o(i[r]);return i.join(",")}if(r=(e=t.match(","==f?I:n)||[]).length,c>r--)for(;++r<c;)e[r]=s?e[(r-1)/2|0]:h[r];return(u&&"none"!==t&&t.substr(0,t.indexOf(e[0]))||u)+e.join(f)+_}:function(t){return t}}function Tt(h){return h=h.split(","),function(t,e,i,r,n,s,a){var o,l=(e+"").split(" ");for(a={},o=0;o<4;o++)a[h[o]]=l[o]=l[o]||l[(o-1)/2>>0];return r.parse(t,a,n,s)}}function wt(t,e,i,r,n,s){var a=new Pt(t,e,i,r-i,n,-1,s);return a.b=i,a.e=a.xs0=r,a}var bt=(st._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,n,s,a=this.data,o=a.proxy,l=a.firstMPT;l;)e=o[l.v],l.r?e=l.r(e):e<1e-6&&-1e-6<e&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,o.rotation,this.t,this._tween):o.rotation),1===t||0===t)for(l=a.firstMPT,s=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,r=1;r<i.l;r++)n+=i["xn"+r]+i["xs"+(r+1)];i[s]=n}}else i[s]=i.s+i.xs0;l=l._next}},function(t,e,i,r,n){this.t=t,this.p=e,this.v=i,this.r=n,r&&((r._prev=this)._next=r)}),Pt=(st._parseToProxy=function(t,e,i,r,n,s){var a,o,l,h,u,_=r,f={},c={},p=i._transform,d=tt;for(i._transform=null,tt=e,r=u=i.parse(t,e,r,n),tt=d,s&&(i._transform=p,_&&(_._prev=null,_._prev&&(_._prev._next=null)));r&&r!==_;){if(r.type<=1&&(c[o=r.p]=r.s+r.c,f[o]=r.s,s||(h=new bt(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;0<--a;)l="xn"+a,c[o=r.p+"_"+l]=r.data[l],f[o]=r[l],s||(h=new bt(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:f,end:c,firstMPT:h,pt:u}},st.CSSPropTween=function(t,e,i,r,n,s,a,o,l,h,u){this.t=t,this.p=e,this.s=i,this.c=r,this.n=a||e,t instanceof Pt||d.push(this.n),this.r=o?"function"==typeof o?o:Math.round:o,this.type=s||0,l&&(this.pr=l,p=!0),this.b=void 0===h?i:h,this.e=void 0===u?i+r:u,n&&((this._next=n)._prev=this)}),St=B.parseComplex=function(t,e,i,r,n,s,a,o,l,h){i=i||s||"","function"==typeof r&&(r=r(L,F)),a=new Pt(t,e,0,0,a,h?2:1,null,!1,o,i,r),r+="",n&&vt.test(r+i)&&(r=[i,r],B.colorStringFilter(r),i=r[0],r=r[1]);var u,_,f,c,p,d,m,g,y,v,x,T,w,b=i.split(", ").join(",").split(" "),P=r.split(", ").join(",").split(" "),S=b.length,O=!1!==A;for(-1===r.indexOf(",")&&-1===i.indexOf(",")||(P=-1!==(r+i).indexOf("rgb")||-1!==(r+i).indexOf("hsl")?(b=b.join(" ").replace(Z,", ").split(" "),P.join(" ").replace(Z,", ").split(" ")):(b=b.join(" ").split(",").join(", ").split(" "),P.join(" ").split(",").join(", ").split(" ")),S=b.length),S!==P.length&&(S=(b=(s||"").split(" ")).length),a.plugin=l,a.setRatio=h,u=vt.lastIndex=0;u<S;u++)if(c=b[u],p=P[u]+"",(g=parseFloat(c))||0===g)a.appendXtra("",g,k(p,g),p.replace(E,""),O&&-1!==p.indexOf("px")&&Math.round,!0);else if(n&&vt.test(c))T=")"+((T=p.indexOf(")")+1)?p.substr(T):""),w=-1!==p.indexOf("hsl")&&ot,v=p,c=yt(c,w),p=yt(p,w),(y=6<c.length+p.length)&&!ot&&0===p[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(P[u]).join("transparent")):(ot||(y=!1),w?a.appendXtra(v.substr(0,v.indexOf("hsl"))+(y?"hsla(":"hsl("),c[0],k(p[0],c[0]),",",!1,!0).appendXtra("",c[1],k(p[1],c[1]),"%,",!1).appendXtra("",c[2],k(p[2],c[2]),y?"%,":"%"+T,!1):a.appendXtra(v.substr(0,v.indexOf("rgb"))+(y?"rgba(":"rgb("),c[0],p[0]-c[0],",",Math.round,!0).appendXtra("",c[1],p[1]-c[1],",",Math.round).appendXtra("",c[2],p[2]-c[2],y?",":T,Math.round),y&&(c=c.length<4?1:c[3],a.appendXtra("",c,(p.length<4?1:p[3])-c,T,!1))),vt.lastIndex=0;else if(d=c.match(z)){if(!(m=p.match(E))||m.length!==d.length)return a;for(_=f=0;_<d.length;_++)x=d[_],v=c.indexOf(x,f),a.appendXtra(c.substr(f,v-f),Number(x),k(m[_],x),"",O&&"px"===c.substr(v+x.length,2)&&Math.round,0===_),f=v+x.length;a["xs"+a.l]+=c.substr(f)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+p:p;if(-1!==r.indexOf("=")&&a.data){for(T=a.xs0+a.data.s,u=1;u<a.l;u++)T+=a["xs"+u]+a.data["xn"+u];a.e=T+a["xs"+u]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},Ot=9;for((t=Pt.prototype).l=t.pr=0;0<--Ot;)t["xn"+Ot]=0,t["xs"+Ot]="";t.xs0="",t._next=t._prev=t.xfirst=t.data=t.plugin=t.setRatio=t.rxp=null,t.appendXtra=function(t,e,i,r,n,s){var a=this,o=a.l;return a["xs"+o]+=s&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",0<o?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=n,a["xn"+o]=e,a.plugin||(a.xfirst=new Pt(a,"xn"+o,e,i,a.xfirst||a,0,a.n,n,a.pr),a.xfirst.xs0=0)):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=n)):a["xs"+o]+=e+(r||""),a};function kt(t,e){e=e||{},this.p=e.prefix&&O(t)||t,m[t]=m[this.p]=this,this.format=e.formatter||xt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.allowFunc=e.allowFunc,this.pr=e.priority||0}var Ct=st._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,n=t.split(","),s=e.defaultValue;for(i=i||[s],r=0;r<n.length;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||s,new kt(n[r],e)},Rt=st._registerPluginProp=function(t){if(!m[t]){var l=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Ct(t,{parser:function(t,e,i,r,n,s,a){var o=h.com.greensock.plugins[l];return o?(o._cssRegister(),m[i].parse(t,e,i,r,n,s,a)):(g("Error: "+l+" js file not loaded."),n)}})}};(t=kt.prototype).parseComplex=function(t,e,i,r,n,s){var a,o,l,h,u,_,f=this.keyword;if(this.multi&&(Z.test(i)||Z.test(e)?(o=e.replace(Z,"|").split("|"),l=i.replace(Z,"|").split("|")):f&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;a<h;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,f&&((u=e.indexOf(f))!==(_=i.indexOf(f))&&(-1===_?o[a]=o[a].split(f).join(""):-1===u&&(o[a]+=" "+f)));e=o.join(", "),i=l.join(", ")}return St(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,n,s)},t.parse=function(t,e,i,r,n,s,a){return this.parseComplex(t.style,this.format(_t(t,this.p,S,!1,this.dflt)),this.format(e),n,s)},B.registerSpecialProp=function(t,l,h){Ct(t,{parser:function(t,e,i,r,n,s,a){var o=new Pt(t,i,0,0,n,2,i,!1,h);return o.plugin=s,o.setRatio=l(t,e,r._tween,i),o},priority:h})},B.useSVGTransformAttr=!0;function At(t,e,i){var r,n=it.createElementNS("h"+"t"+"t"+"p"+":"+"/"+"/"+"www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(r in i)n.setAttributeNS(null,r.replace(s,"$1-$2").toLowerCase(),i[r]);return e.appendChild(n),n}function Mt(t,e,i,r,n,s){var a,o,l,h,u,_,f,c,p,d,m,g,y,v,x=t._gsTransform,T=Zt(t,!0);x&&(y=x.xOrigin,v=x.yOrigin),(!r||(a=r.split(" ")).length<2)&&(0===(f=t.getBBox()).x&&0===f.y&&f.width+f.height===0&&(f={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),a=[(-1!==(e=mt(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*f.width:parseFloat(e[0]))+f.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*f.height:parseFloat(e[1]))+f.y]),i.xOrigin=h=parseFloat(a[0]),i.yOrigin=u=parseFloat(a[1]),r&&T!==Ht&&(_=T[0],f=T[1],c=T[2],p=T[3],d=T[4],m=T[5],(g=_*p-f*c)&&(o=h*(p/g)+u*(-c/g)+(c*m-p*d)/g,l=h*(-f/g)+u*(_/g)-(_*m-f*d)/g,h=i.xOrigin=a[0]=o,u=i.yOrigin=a[1]=l)),x&&(s&&(i.xOffset=x.xOffset,i.yOffset=x.yOffset,x=i),n||!1!==n&&!1!==B.defaultSmoothOrigin?(o=h-y,l=u-v,x.xOffset+=o*T[0]+l*T[2]-o,x.yOffset+=o*T[1]+l*T[3]-l):x.xOffset=x.yOffset=0),s||t.setAttribute("data-svg-origin",a.join(" "))}function Dt(t){var e,i,r=this.data,n=-r.rotation*K,s=n+r.skewX*K,a=1e5,o=(Math.cos(n)*r.scaleX*a|0)/a,l=(Math.sin(n)*r.scaleX*a|0)/a,h=(Math.sin(s)*-r.scaleY*a|0)/a,u=(Math.cos(s)*r.scaleY*a|0)/a,_=this.t.style,f=this.t.currentStyle;if(f){i=l,l=-h,h=-i,e=f.filter,_.filter="";var c,p,d=this.t.offsetWidth,m=this.t.offsetHeight,g="absolute"!==f.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,v=r.x+d*r.xPercent/100,x=r.y+m*r.yPercent/100;if(null!=r.ox&&(v+=(c=(r.oxp?d*r.ox*.01:r.ox)-d/2)-(c*o+(p=(r.oyp?m*r.oy*.01:r.oy)-m/2)*l),x+=p-(c*h+p*u)),g?y+=", Dx="+((c=d/2)-(c*o+(p=m/2)*l)+v)+", Dy="+(p-(c*h+p*u)+x)+")":y+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?_.filter=e.replace(H,y):_.filter=y+" "+e,0!==t&&1!==t||1!=o||0!==l||0!==h||1!=u||(g&&-1===y.indexOf("Dx=0, Dy=0")||j.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&_.removeAttribute("filter")),!g){var T,w,b,P=D<8?1:-1;for(c=r.ieOffsetX||0,p=r.ieOffsetY||0,r.ieOffsetX=Math.round((d-((o<0?-o:o)*d+(l<0?-l:l)*m))/2+v),r.ieOffsetY=Math.round((m-((u<0?-u:u)*m+(h<0?-h:h)*d))/2+x),Ot=0;Ot<4;Ot++)b=(i=-1!==(T=f[w=dt[Ot]]).indexOf("px")?parseFloat(T):ft(this.t,w,parseFloat(T),T.replace(N,""))||0)!==r[w]?Ot<2?-r.ieOffsetX:-r.ieOffsetY:Ot<2?c-r.ieOffsetX:p-r.ieOffsetY,_[w]=(r[w]=Math.round(i-b*(0===Ot||2===Ot?1:P)))+"px"}}}var Ft,Lt,zt,Et,It,Nt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),jt=O("transform"),Xt=lt+"transform",Bt=O("transformOrigin"),Yt=null!==O("perspective"),Gt=st.Transform=function(){this.perspective=parseFloat(B.defaultTransformPerspective)||0,this.force3D=!(!1===B.defaultForce3D||!Yt)&&(B.defaultForce3D||"auto")},Ut=_gsScope.SVGElement,Vt=it.documentElement||{},qt=(It=D||/Android/i.test(at)&&!_gsScope.chrome,it.createElementNS&&Vt.appendChild&&!It&&(Lt=At("svg",Vt),Et=(zt=At("rect",Lt,{width:100,height:50,x:100})).getBoundingClientRect().width,zt.style[Bt]="50% 50%",zt.style[jt]="scaleX(0.5)",It=Et===zt.getBoundingClientRect().width&&!(Y&&Yt),Vt.removeChild(Lt)),It),Wt=function(t){var e,i=o("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"h"+"t"+"t"+"p"+":"+"/"+"/"+"www.w3.org/2000/svg"),r=this.parentNode,n=this.nextSibling,s=this.style.cssText;if(Vt.appendChild(i),i.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Wt}catch(t){}else this._originalGetBBox&&(e=this._originalGetBBox());return n?r.insertBefore(this,n):r.appendChild(this),Vt.removeChild(i),this.style.cssText=s,e},Qt=function(t){return!(!Ut||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(e){try{return e.getBBox()}catch(t){return Wt.call(e,!0)}}(t))},Ht=[1,0,0,1,0,0],Zt=function(t,e){var i,r,n,s,a,o,l,h=t._gsTransform||new Gt,u=t.style;if(jt?r=_t(t,Xt,null,!0):t.currentStyle&&(r=(r=t.currentStyle.filter.match(Q))&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),h.x||0,h.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,jt&&i&&!t.offsetParent&&t!==Vt&&(s=u.display,u.display="block",(l=t.parentNode)&&t.offsetParent||(a=1,o=t.nextSibling,Vt.appendChild(t)),i=!(r=_t(t,Xt,null,!0))||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,s?u.display=s:ee(u,"display"),a&&(o?l.insertBefore(t,o):l?l.appendChild(t):Vt.removeChild(t))),(h.svg||t.getCTM&&Qt(t))&&(i&&-1!==(u[jt]+"").indexOf("matrix")&&(r=u[jt],i=0),n=t.getAttribute("transform"),i&&n&&(r="matrix("+(n=t.transform.baseVal.consolidate().matrix).a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")",i=0)),i)return Ht;for(n=(r||"").match(z)||[],Ot=n.length;-1<--Ot;)s=Number(n[Ot]),n[Ot]=(a=s-(s|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+s:s;return e&&6<n.length?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},$t=st.getTransform=function(t,e,i,r){if(t._gsTransform&&i&&!r)return t._gsTransform;var n,s,a,o,l,h,u=i&&t._gsTransform||new Gt,_=u.scaleX<0,f=Yt&&(parseFloat(_t(t,Bt,e,!1,"0 0 0").split(" ")[2])||u.zOrigin)||0,c=parseFloat(B.defaultTransformPerspective)||0;if(u.svg=!(!t.getCTM||!Qt(t)),u.svg&&(Mt(t,_t(t,Bt,e,!1,"50% 50%")+"",u,t.getAttribute("data-svg-origin")),Ft=B.useSVGTransformAttr||qt),(n=Zt(t))!==Ht){if(16===n.length){var p,d,m,g,y,v=n[0],x=n[1],T=n[2],w=n[3],b=n[4],P=n[5],S=n[6],O=n[7],k=n[8],C=n[9],R=n[10],A=n[12],M=n[13],D=n[14],F=n[11],L=Math.atan2(S,R);u.zOrigin&&(A=k*(D=-u.zOrigin)-n[12],M=C*D-n[13],D=R*D+u.zOrigin-n[14]),u.rotationX=L*J,L&&(p=b*(g=Math.cos(-L))+k*(y=Math.sin(-L)),d=P*g+C*y,m=S*g+R*y,k=b*-y+k*g,C=P*-y+C*g,R=S*-y+R*g,F=O*-y+F*g,b=p,P=d,S=m),L=Math.atan2(-T,R),u.rotationY=L*J,L&&(d=x*(g=Math.cos(-L))-C*(y=Math.sin(-L)),m=T*g-R*y,C=x*y+C*g,R=T*y+R*g,F=w*y+F*g,v=p=v*g-k*y,x=d,T=m),L=Math.atan2(x,v),u.rotation=L*J,L&&(p=v*(g=Math.cos(L))+x*(y=Math.sin(L)),d=b*g+P*y,m=k*g+C*y,x=x*g-v*y,P=P*g-b*y,C=C*g-k*y,v=p,b=d,k=m),u.rotationX&&359.9<Math.abs(u.rotationX)+Math.abs(u.rotation)&&(u.rotationX=u.rotation=0,u.rotationY=180-u.rotationY),L=Math.atan2(b,P),u.scaleX=(1e5*Math.sqrt(v*v+x*x+T*T)+.5|0)/1e5,u.scaleY=(1e5*Math.sqrt(P*P+S*S)+.5|0)/1e5,u.scaleZ=(1e5*Math.sqrt(k*k+C*C+R*R)+.5|0)/1e5,v/=u.scaleX,b/=u.scaleY,x/=u.scaleX,P/=u.scaleY,2e-5<Math.abs(L)?(u.skewX=L*J,b=0,"simple"!==u.skewType&&(u.scaleY*=1/Math.cos(L))):u.skewX=0,u.perspective=F?1/(F<0?-F:F):0,u.x=A,u.y=M,u.z=D,u.svg&&(u.x-=u.xOrigin-(u.xOrigin*v-u.yOrigin*b),u.y-=u.yOrigin-(u.yOrigin*x-u.xOrigin*P))}else if(!Yt||r||!n.length||u.x!==n[4]||u.y!==n[5]||!u.rotationX&&!u.rotationY){var z=6<=n.length,E=z?n[0]:1,I=n[1]||0,N=n[2]||0,j=z?n[3]:1;u.x=n[4]||0,u.y=n[5]||0,a=Math.sqrt(E*E+I*I),o=Math.sqrt(j*j+N*N),l=E||I?Math.atan2(I,E)*J:u.rotation||0,h=N||j?Math.atan2(N,j)*J+l:u.skewX||0,u.scaleX=a,u.scaleY=o,u.rotation=l,u.skewX=h,Yt&&(u.rotationX=u.rotationY=u.z=0,u.perspective=c,u.scaleZ=1),u.svg&&(u.x-=u.xOrigin-(u.xOrigin*E+u.yOrigin*N),u.y-=u.yOrigin-(u.xOrigin*I+u.yOrigin*j))}for(s in 90<Math.abs(u.skewX)&&Math.abs(u.skewX)<270&&(_?(u.scaleX*=-1,u.skewX+=u.rotation<=0?180:-180,u.rotation+=u.rotation<=0?180:-180):(u.scaleY*=-1,u.skewX+=u.skewX<=0?180:-180)),u.zOrigin=f,u)u[s]<2e-5&&-2e-5<u[s]&&(u[s]=0)}return i&&((t._gsTransform=u).svg&&(Ft&&t.style[jt]?X.delayedCall(.001,function(){ee(t.style,jt)}):!Ft&&t.getAttribute("transform")&&X.delayedCall(.001,function(){t.removeAttribute("transform")}))),u},Kt=st.set3DTransformRatio=st.setTransformRatio=function(t){var e,i,r,n,s,a,o,l,h,u,_,f,c,p,d,m,g,y,v,x,T,w,b,P=this.data,S=this.t.style,O=P.rotation,k=P.rotationX,C=P.rotationY,R=P.scaleX,A=P.scaleY,M=P.scaleZ,D=P.x,F=P.y,L=P.z,z=P.svg,E=P.perspective,I=P.force3D,N=P.skewY,j=P.skewX;if(N&&(j+=N,O+=N),!((1!==t&&0!==t||"auto"!==I||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&I||L||E||C||k||1!==M)||Ft&&z||!Yt)O||j||z?(O*=K,w=j*K,b=1e5,i=Math.cos(O)*R,s=Math.sin(O)*R,r=Math.sin(O-w)*-A,a=Math.cos(O-w)*A,w&&"simple"===P.skewType&&(e=Math.tan(w-N*K),r*=e=Math.sqrt(1+e*e),a*=e,N&&(e=Math.tan(N*K),i*=e=Math.sqrt(1+e*e),s*=e)),z&&(D+=P.xOrigin-(P.xOrigin*i+P.yOrigin*r)+P.xOffset,F+=P.yOrigin-(P.xOrigin*s+P.yOrigin*a)+P.yOffset,Ft&&(P.xPercent||P.yPercent)&&(d=this.t.getBBox(),D+=.01*P.xPercent*d.width,F+=.01*P.yPercent*d.height),D<(d=1e-6)&&-d<D&&(D=0),F<d&&-d<F&&(F=0)),v=(i*b|0)/b+","+(s*b|0)/b+","+(r*b|0)/b+","+(a*b|0)/b+","+D+","+F+")",z&&Ft?this.t.setAttribute("transform","matrix("+v):S[jt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix(":"matrix(")+v):S[jt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix(":"matrix(")+R+",0,0,"+A+","+D+","+F+")";else{if(Y&&(R<(d=1e-4)&&-d<R&&(R=M=2e-5),A<d&&-d<A&&(A=M=2e-5),!E||P.z||P.rotationX||P.rotationY||(E=0)),O||j)O*=K,m=i=Math.cos(O),g=s=Math.sin(O),j&&(O-=j*K,m=Math.cos(O),g=Math.sin(O),"simple"===P.skewType&&(e=Math.tan((j-N)*K),m*=e=Math.sqrt(1+e*e),g*=e,P.skewY&&(e=Math.tan(N*K),i*=e=Math.sqrt(1+e*e),s*=e))),r=-g,a=m;else{if(!(C||k||1!==M||E||z))return void(S[jt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) translate3d(":"translate3d(")+D+"px,"+F+"px,"+L+"px)"+(1!==R||1!==A?" scale("+R+","+A+")":""));i=a=1,r=s=0}u=1,n=o=l=h=_=f=0,c=E?-1/E:0,p=P.zOrigin,d=1e-6,x=",",T="0",(O=C*K)&&(m=Math.cos(O),_=c*(l=-(g=Math.sin(O))),n=i*g,o=s*g,c*=u=m,i*=m,s*=m),(O=k*K)&&(e=r*(m=Math.cos(O))+n*(g=Math.sin(O)),y=a*m+o*g,h=u*g,f=c*g,n=r*-g+n*m,o=a*-g+o*m,u*=m,c*=m,r=e,a=y),1!==M&&(n*=M,o*=M,u*=M,c*=M),1!==A&&(r*=A,a*=A,h*=A,f*=A),1!==R&&(i*=R,s*=R,l*=R,_*=R),(p||z)&&(p&&(D+=n*-p,F+=o*-p,L+=u*-p+p),z&&(D+=P.xOrigin-(P.xOrigin*i+P.yOrigin*r)+P.xOffset,F+=P.yOrigin-(P.xOrigin*s+P.yOrigin*a)+P.yOffset),D<d&&-d<D&&(D=T),F<d&&-d<F&&(F=T),L<d&&-d<L&&(L=0)),v=P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix3d(":"matrix3d(",v+=(i<d&&-d<i?T:i)+x+(s<d&&-d<s?T:s)+x+(l<d&&-d<l?T:l),v+=x+(_<d&&-d<_?T:_)+x+(r<d&&-d<r?T:r)+x+(a<d&&-d<a?T:a),k||C||1!==M?(v+=x+(h<d&&-d<h?T:h)+x+(f<d&&-d<f?T:f)+x+(n<d&&-d<n?T:n),v+=x+(o<d&&-d<o?T:o)+x+(u<d&&-d<u?T:u)+x+(c<d&&-d<c?T:c)+x):v+=",0,0,0,0,1,0,",v+=D+x+F+x+L+x+(E?1+-L/E:1)+")",S[jt]=v}};(t=Gt.prototype).x=t.y=t.z=t.skewX=t.skewY=t.rotation=t.rotationX=t.rotationY=t.zOrigin=t.xPercent=t.yPercent=t.xOffset=t.yOffset=0,t.scaleX=t.scaleY=t.scaleZ=1,Ct("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,r,n,s,a){if(r._lastParsedTransform===a)return n;var o=(r._lastParsedTransform=a).scale&&"function"==typeof a.scale?a.scale:0;o&&(a.scale=o(L,t));var l,h,u,_,f,c,p,d,m,g=t._gsTransform,y=t.style,v=Nt.length,x=a,T={},w="transformOrigin",b=$t(t,S,!0,x.parseTransform),P=x.transform&&("function"==typeof x.transform?x.transform(L,F):x.transform);if(b.skewType=x.skewType||b.skewType||B.defaultSkewType,r._transform=b,"rotationZ"in x&&(x.rotation=x.rotationZ),P&&"string"==typeof P&&jt)(h=rt.style)[jt]=P,h.display="block",h.position="absolute",-1!==P.indexOf("%")&&(h.width=_t(t,"width"),h.height=_t(t,"height")),it.body.appendChild(rt),l=$t(rt,null,!1),"simple"===b.skewType&&(l.scaleY*=Math.cos(l.skewX*K)),b.svg&&(c=b.xOrigin,p=b.yOrigin,l.x-=b.xOffset,l.y-=b.yOffset,(x.transformOrigin||x.svgOrigin)&&(P={},Mt(t,mt(x.transformOrigin),P,x.svgOrigin,x.smoothOrigin,!0),c=P.xOrigin,p=P.yOrigin,l.x-=P.xOffset-b.xOffset,l.y-=P.yOffset-b.yOffset),(c||p)&&(d=Zt(rt,!0),l.x-=c-(c*d[0]+p*d[2]),l.y-=p-(c*d[1]+p*d[3]))),it.body.removeChild(rt),l.perspective||(l.perspective=b.perspective),null!=x.xPercent&&(l.xPercent=C(x.xPercent,b.xPercent)),null!=x.yPercent&&(l.yPercent=C(x.yPercent,b.yPercent));else if("object"==typeof x){if(l={scaleX:C(null!=x.scaleX?x.scaleX:x.scale,b.scaleX),scaleY:C(null!=x.scaleY?x.scaleY:x.scale,b.scaleY),scaleZ:C(x.scaleZ,b.scaleZ),x:C(x.x,b.x),y:C(x.y,b.y),z:C(x.z,b.z),xPercent:C(x.xPercent,b.xPercent),yPercent:C(x.yPercent,b.yPercent),perspective:C(x.transformPerspective,b.perspective)},null!=(f=x.directionalRotation))if("object"==typeof f)for(h in f)x[h]=f[h];else x.rotation=f;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(l.x=0,l.xPercent=C(x.x,b.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(l.y=0,l.yPercent=C(x.y,b.yPercent)),l.rotation=R("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":b.rotation,b.rotation,"rotation",T),Yt&&(l.rotationX=R("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":b.rotationX||0,b.rotationX,"rotationX",T),l.rotationY=R("rotationY"in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":b.rotationY||0,b.rotationY,"rotationY",T)),l.skewX=R(x.skewX,b.skewX),l.skewY=R(x.skewY,b.skewY)}for(Yt&&null!=x.force3D&&(b.force3D=x.force3D,_=!0),(u=b.force3D||b.z||b.rotationX||b.rotationY||l.z||l.rotationX||l.rotationY||l.perspective)||null==x.scale||(l.scaleZ=1);-1<--v;)(1e-6<(P=l[m=Nt[v]]-b[m])||P<-1e-6||null!=x[m]||null!=tt[m])&&(_=!0,n=new Pt(b,m,b[m],P,n),m in T&&(n.e=T[m]),n.xs0=0,n.plugin=s,r._overwriteProps.push(n.n));return P="function"==typeof x.transformOrigin?x.transformOrigin(L,F):x.transformOrigin,b.svg&&(P||x.svgOrigin)&&(c=b.xOffset,p=b.yOffset,Mt(t,mt(P),l,x.svgOrigin,x.smoothOrigin),n=wt(b,"xOrigin",(g?b:l).xOrigin,l.xOrigin,n,w),n=wt(b,"yOrigin",(g?b:l).yOrigin,l.yOrigin,n,w),c===b.xOffset&&p===b.yOffset||(n=wt(b,"xOffset",g?c:b.xOffset,b.xOffset,n,w),n=wt(b,"yOffset",g?p:b.yOffset,b.yOffset,n,w)),P="0px 0px"),(P||Yt&&u&&b.zOrigin)&&(jt?(_=!0,m=Bt,P||(P=(P=(_t(t,m,S,!1,"50% 50%")+"").split(" "))[0]+" "+P[1]+" "+b.zOrigin+"px"),P+="",(n=new Pt(y,m,0,0,n,-1,w)).b=y[m],n.plugin=s,Yt?(h=b.zOrigin,P=P.split(" "),b.zOrigin=(2<P.length?parseFloat(P[2]):h)||0,n.xs0=n.e=P[0]+" "+(P[1]||"50%")+" 0px",(n=new Pt(b,"zOrigin",0,0,n,-1,n.n)).b=h,n.xs0=n.e=b.zOrigin):n.xs0=n.e=P):mt(P+"",b)),_&&(r._transformType=b.svg&&Ft||!u&&3!==this._transformType?2:3),o&&(a.scale=o),n},allowFunc:!0,prefix:!0}),Ct("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ct("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:xt("inset(0% 0% 0% 0%)",!1,!0)}),Ct("borderRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){e=this.format(e);var a,o,l,h,u,_,f,c,p,d,m,g,y,v,x,T,w=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],b=t.style;for(p=parseFloat(t.offsetWidth),d=parseFloat(t.offsetHeight),a=e.split(" "),o=0;o<w.length;o++)this.p.indexOf("border")&&(w[o]=O(w[o])),-1!==(u=h=_t(t,w[o],S,!1,"0px")).indexOf(" ")&&(u=(h=u.split(" "))[0],h=h[1]),_=l=a[o],f=parseFloat(u),g=u.substr((f+"").length),""===(m=(y="="===_.charAt(1))?(c=parseInt(_.charAt(0)+"1",10),_=_.substr(2),c*=parseFloat(_),_.substr((c+"").length-(c<0?1:0))||""):(c=parseFloat(_),_.substr((c+"").length)))&&(m=P[i]||g),m!==g&&(v=ft(t,"borderLeft",f,g),x=ft(t,"borderTop",f,g),h="%"===m?(u=v/p*100+"%",x/d*100+"%"):"em"===m?(u=v/(T=ft(t,"borderLeft",1,"em"))+"em",x/T+"em"):(u=v+"px",x+"px"),y&&(_=parseFloat(u)+c+m,l=parseFloat(h)+c+m)),n=St(b,w[o],u+" "+h,_+" "+l,!1,"0px",n);return n},prefix:!0,formatter:xt("0px 0px 0px 0px",!1,!0)}),Ct("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){return St(t.style,i,this.format(_t(t,i,S,!1,"0px 0px")),this.format(e),!1,"0px",n)},prefix:!0,formatter:xt("0px 0px",!1,!0)}),Ct("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,n,s){var a,o,l,h,u,_,f="background-position",c=S||y(t),p=this.format((c?D?c.getPropertyValue(f+"-x")+" "+c.getPropertyValue(f+"-y"):c.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),d=this.format(e);if(-1!==p.indexOf("%")!=(-1!==d.indexOf("%"))&&d.split(",").length<2&&((_=_t(t,"backgroundImage").replace(q,""))&&"none"!==_)){for(a=p.split(" "),o=d.split(" "),nt.setAttribute("src",_),l=2;-1<--l;)(h=-1!==(p=a[l]).indexOf("%"))!=(-1!==o[l].indexOf("%"))&&(u=0===l?t.offsetWidth-nt.width:t.offsetHeight-nt.height,a[l]=h?parseFloat(p)/100*u+"px":parseFloat(p)/u*100+"%");p=a.join(" ")}return this.parseComplex(t.style,p,d,n,s)},formatter:mt}),Ct("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:mt(-1===t.indexOf(" ")?t+" "+t:t)}}),Ct("perspective",{defaultValue:"0px",prefix:!0}),Ct("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ct("transformStyle",{prefix:!0}),Ct("backfaceVisibility",{prefix:!0}),Ct("userSelect",{prefix:!0}),Ct("margin",{parser:Tt("marginTop,marginRight,marginBottom,marginLeft")}),Ct("padding",{parser:Tt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ct("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,s){var a,o,l;return e=D<9?(o=t.currentStyle,l=D<8?" ":",",a="rect("+o.clipTop+l+o.clipRight+l+o.clipBottom+l+o.clipLeft+")",this.format(e).split(",").join(l)):(a=this.format(_t(t,this.p,S,!1,this.dflt)),this.format(e)),this.parseComplex(t.style,a,e,n,s)}}),Ct("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ct("autoRound,strictUnits",{parser:function(t,e,i,r,n){return n}}),Ct("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,n,s){var a=_t(t,"borderTopWidth",S,!1,"0px"),o=this.format(e).split(" "),l=o[0].replace(N,"");return"px"!==l&&(a=parseFloat(a)/ft(t,"borderTopWidth",1,l)+l),this.parseComplex(t.style,this.format(a+" "+_t(t,"borderTopStyle",S,!1,"solid")+" "+_t(t,"borderTopColor",S,!1,"#000")),o.join(" "),n,s)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(vt)||["#000"])[0]}}),Ct("borderWidth",{parser:Tt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ct("float,cssFloat,styleFloat",{parser:function(t,e,i,r,n,s){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new Pt(a,o,0,0,n,-1,i,!1,0,a[o],e)}});function Jt(t){var e,i=this.t,r=i.filter||_t(this.data,"filter")||"",n=this.s+this.c*t|0;100==n&&(e=-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),!_t(this.data,"filter")):(i.filter=r.replace(_,""),!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+n+")"),-1===r.indexOf("pacity")?0==n&&this.xn1||(i.filter=r+" alpha(opacity="+n+")"):i.filter=r.replace(j,"opacity="+n))}Ct("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,n,s){var a=parseFloat(_t(t,"opacity",S,!1,"1")),o=t.style,l="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),l&&1===a&&"hidden"===_t(t,"visibility",S)&&0!==e&&(a=0),ot?n=new Pt(o,"opacity",a,e-a,n):((n=new Pt(o,"opacity",100*a,100*(e-a),n)).xn1=l?1:0,o.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=s,n.setRatio=Jt),l&&((n=new Pt(o,"visibility",0,0,n,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(n.n),r._overwriteProps.push(i)),n}});function te(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:ee(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)}var ee=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(f,"-$1").toLowerCase())):t.removeAttribute(e))};Ct("className",{parser:function(t,e,i,r,n,s,a){var o,l,h,u,_,f=t.getAttribute("class")||"",c=t.style.cssText;if((n=r._classNamePT=new Pt(t,i,0,0,n,2)).setRatio=te,n.pr=-11,p=!0,n.b=f,l=v(t,S),h=t._gsClassPT){for(u={},_=h.data;_;)u[_.p]=1,_=_._next;h.setRatio(1)}return(t._gsClassPT=n).e="="!==e.charAt(1)?e:f.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",n.e),o=x(t,l,v(t),a,u),t.setAttribute("class",f),n.data=o.firstMPT,t.style.cssText!==c&&(t.style.cssText=c),n.xfirst=r.parse(t,o.difs,n,s)}});function ie(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,n,s,a=this.t.style,o=m.transform.parse;if("all"===this.e)n=!(a.cssText="");else for(r=(e=this.e.split(" ").join("").split(",")).length;-1<--r;)i=e[r],m[i]&&(m[i].parse===o?n=!0:i="transformOrigin"===i?Bt:m[i].p),ee(a,i);n&&(ee(a,jt),(s=this.t._gsTransform)&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}}for(Ct("clearProps",{parser:function(t,e,i,r,n){return(n=new Pt(t,i,0,0,n,2)).setRatio=ie,n.e=e,n.pr=-10,n.data=r._tween,p=!0,n}}),t="bezier,throwProps,physicsProps,physics2D".split(","),Ot=t.length;Ot--;)Rt(t[Ot]);(t=B.prototype)._firstPT=t._lastParsedTransform=t._transform=null,t._onInitTween=function(t,e,i,r){if(!t.nodeType)return!1;this._target=F=t,this._tween=i,this._vars=e,L=r,A=e.autoRound,p=!1,P=e.suffixMap||B.suffixMap,S=y(t),d=this._overwriteProps;var n,s,a,o,l,h,u,_,f,c=t.style;if(w&&""===c.zIndex&&("auto"!==(n=_t(t,"zIndex",S))&&""!==n||this._addLazySet(c,"zIndex",0)),"string"==typeof e&&(o=c.cssText,n=v(t,S),c.cssText=o+";"+e,n=x(t,n,v(t)).difs,!ot&&G.test(e)&&(n.opacity=parseFloat(RegExp.$1)),e=n,c.cssText=o),e.className?this._firstPT=s=m.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=s=this.parse(t,e,null),this._transformType){for(f=3===this._transformType,jt?b&&(w=!0,""===c.zIndex&&("auto"!==(u=_t(t,"zIndex",S))&&""!==u||this._addLazySet(c,"zIndex",0)),M&&this._addLazySet(c,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(f?"visible":"hidden"))):c.zoom=1,a=s;a&&a._next;)a=a._next;_=new Pt(t,"transform",0,0,null,2),this._linkCSSP(_,null,a),_.setRatio=jt?Kt:Dt,_.data=this._transform||$t(t,S,!0),_.tween=i,_.pr=-1,d.pop()}if(p){for(;s;){for(h=s._next,a=o;a&&a.pr>s.pr;)a=a._next;(s._prev=a?a._prev:l)?s._prev._next=s:o=s,(s._next=a)?a._prev=s:l=s,s=h}this._firstPT=o}return!0},t.parse=function(t,e,i,r){var n,s,a,o,l,h,u,_,f,c,p=t.style;for(n in e){if(h=e[n],s=m[n],"function"!=typeof h||s&&s.allowFunc||(h=h(L,F)),s)i=s.parse(t,h,n,this,i,r,e);else{if("--"===n.substr(0,2)){this._tween._propLookup[n]=this._addTween.call(this._tween,t.style,"setProperty",y(t).getPropertyValue(n)+"",h+"",n,!1,n);continue}l=_t(t,n,S)+"",f="string"==typeof h,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||f&&U.test(h)?(f||(h=(3<(h=yt(h)).length?"rgba(":"rgb(")+h.join(",")+")"),i=St(p,n,l,h,!0,"transparent",i,0,r)):f&&$.test(h)?i=St(p,n,l,h,!0,null,i,0,r):(u=(a=parseFloat(l))||0===a?l.substr((a+"").length):"",""!==l&&"auto"!==l||(u="width"===n||"height"===n?(a=T(t,n,S),"px"):"left"===n||"top"===n?(a=ct(t,n,S),"px"):(a="opacity"!==n?0:1,"")),""===(_=(c=f&&"="===h.charAt(1))?(o=parseInt(h.charAt(0)+"1",10),h=h.substr(2),o*=parseFloat(h),h.replace(N,"")):(o=parseFloat(h),f?h.replace(N,""):""))&&(_=n in P?P[n]:u),h=o||0===o?(c?o+a:o)+_:e[n],u===_||""===_&&"lineHeight"!==n||!o&&0!==o||!a||(a=ft(t,n,a,u),"%"===_?(a/=ft(t,n,100,"%")/100,!0!==e.strictUnits&&(l=a+"%")):"em"===_||"rem"===_||"vw"===_||"vh"===_?a/=ft(t,n,1,_):"px"!==_&&(o=ft(t,n,o,_),_="px"),c&&(o||0===o)&&(h=o+a+_)),c&&(o+=a),!a&&0!==a||!o&&0!==o?void 0!==p[n]&&(h||h+""!="NaN"&&null!=h)?(i=new Pt(p,n,o||a||0,0,i,-1,n,!1,0,l,h)).xs0="none"!==h||"display"!==n&&-1===n.indexOf("Style")?h:l:g("invalid "+n+" tween value: "+e[n]):(i=new Pt(p,n,a,o-a,i,0,n,!1!==A&&("px"===_||"zIndex"===n),0,l,h)).xs0=_)}r&&i&&!i.plugin&&(i.plugin=r)}return i},t.setRatio=function(t){var e,i,r,n=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;n;){if(e=n.c*t+n.s,n.r?e=n.r(e):e<1e-6&&-1e-6<e&&(e=0),n.type)if(1===n.type)if(2===(r=n.l))n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(t);else n.t[n.p]=e+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(t),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(e=n.r(n.s+n.c),n.type){if(1===n.type){for(r=n.l,i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}}else n.t[n.p]=e+n.xs0;else n.t[n.p]=n.e;else n.setRatio(t);n=n._next}},t._enableTransforms=function(t){this._transform=this._transform||$t(this._target,S,!0),this._transformType=this._transform.svg&&Ft||!t&&3!==this._transformType?2:3};function re(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}t._addLazySet=function(t,e,i){var r=this._firstPT=new Pt(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=re,r.data=this},t._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},t._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&(e.r=t[e.p]),e=e._next},t._kill=function(t){var e,i,r,n=t;if(t.autoAlpha||t.alpha){for(i in n={},t)n[i]=t[i];n.opacity=1,n.autoAlpha&&(n.visibility=1)}for(t.className&&(e=this._classNamePT)&&((r=e.xfirst)&&r._prev?this._linkCSSP(r._prev,e._next,r._prev._prev):r===this._firstPT&&(this._firstPT=e._next),e._next&&this._linkCSSP(e._next,e._next._next,r._prev),this._classNamePT=null),e=this._firstPT;e;)e.plugin&&e.plugin!==i&&e.plugin._kill&&(e.plugin._kill(t),i=e.plugin),e=e._next;return s.prototype._kill.call(this,n)};var ne=function(t,e,i){var r,n,s,a;if(t.slice)for(n=t.length;-1<--n;)ne(t[n],e,i);else for(n=(r=t.childNodes).length;-1<--n;)a=(s=r[n]).type,s.style&&(e.push(v(s)),i&&i.push(s)),1!==a&&9!==a&&11!==a||!s.childNodes.length||ne(s,e,i)};return B.cascadeTo=function(t,e,i){var r,n,s,a,o=X.to(t,e,i),l=[o],h=[],u=[],_=[],f=X._internals.reservedProps;for(t=o._targets||o.target,ne(t,h,_),o.render(e,!0,!0),ne(t,u),o.render(0,!0,!0),o._enabled(!0),r=_.length;-1<--r;)if((n=x(_[r],h[r],u[r])).firstMPT){for(s in n=n.difs,i)f[s]&&(n[s]=i[s]);for(s in a={},n)a[s]=h[r][s];l.push(X.fromTo(_[r],e,a,n))}return l},s.activate([B]),B},!0),t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),(e=t.prototype)._onInitAllProps=function(){var t,e,i,r,n=this._tween,s=n.vars.roundProps,a={},o=n._propLookup.roundProps;if("object"!=typeof s||s.push)for("string"==typeof s&&(s=s.split(",")),i=s.length;-1<--i;)a[s[i]]=Math.round;else for(r in s)a[r]=l(s[r]);for(r in a)for(t=n._firstPT;t;)e=t._next,t.pg?t.t._mod(a):t.n===r&&(2===t.f&&t.t?h(t.t._firstPT,a[r]):(this._add(t.t,r,t.s,t.c,a[r]),e&&(e._prev=t._prev),t._prev?t._prev._next=e:n._firstPT===t&&(n._firstPT=e),t._next=t._prev=null,n._propLookup[r]=o)),t=e;return!1},e._add=function(t,e,i,r,n){this._addTween(t,e,i,i+r,e,n||Math.round),this._overwriteProps.push(e)},_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,r){var n,s;if("function"!=typeof t.setAttribute)return!1;for(n in e)"function"==typeof(s=e[n])&&(s=s(r,t)),this._addTween(t,"setAttribute",t.getAttribute(n)+"",s+"",n,!1,n),this._overwriteProps.push(n);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,i,r){"object"!=typeof e&&(e={rotation:e}),this.finals={};var n,s,a,o,l,h,u=!0===e.useRadians?2*Math.PI:360;for(n in e)"useRadians"!==n&&("function"==typeof(o=e[n])&&(o=o(r,t)),s=(h=(o+"").split("_"))[0],a=parseFloat("function"!=typeof t[n]?t[n]:t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]()),l=(o=this.finals[n]="string"==typeof s&&"="===s.charAt(1)?a+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0)-a,h.length&&(-1!==(s=h.join("_")).indexOf("short")&&((l%=u)!==l%(u/2)&&(l=l<0?l+u:l-u)),-1!==s.indexOf("_cw")&&l<0?l=(l+9999999999*u)%u-(l/u|0)*u:-1!==s.indexOf("ccw")&&0<l&&(l=(l-9999999999*u)%u-(l/u|0)*u)),(1e-6<l||l<-1e-6)&&(this._addTween(t,n,a,a+l,n),this._overwriteProps.push(n)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(m){function t(t,e){var i=_("easing."+t,function(){},!0),r=i.prototype=new m;return r.constructor=i,r.getRatio=e,i}function e(t,e,i,r,n){var s=_("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0);return f(s,t),s}function g(t,e,i){this.t=t,this.v=e,i&&(((this.next=i).prev=this).c=i.v-e,this.gap=i.t-t)}function i(t,e){var i=_("easing."+t,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=i.prototype=new m;return r.constructor=i,r.getRatio=e,r.config=function(t){return new i(t)},i}var r,n,s,a,o=_gsScope.GreenSockGlobals||_gsScope,l=o.com.greensock,h=2*Math.PI,u=Math.PI/2,_=l._class,f=m.register||function(){},c=e("Back",i("BackOut",function(t){return--t*t*((this._p1+1)*t+this._p1)+1}),i("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),i("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),p=_("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:1<t&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i},!0),d=p.prototype=new m;return d.constructor=p,d.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},p.ease=new p(.7,.7),d.config=p.config=function(t,e,i){return new p(t,e,i)},(d=(r=_("easing.SteppedEase",function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0)).prototype=new m).constructor=r,d.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},d.config=r.config=function(t,e){return new r(t,e)},(d=(n=_("easing.ExpoScaleEase",function(t,e,i){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=i},!0)).prototype=new m).constructor=n,d.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},d.config=n.config=function(t,e,i){return new n(t,e,i)},(d=(s=_("easing.RoughEase",function(t){for(var e,i,r,n,s,a,o=(t=t||{}).taper||"none",l=[],h=0,u=0|(t.points||20),_=u,f=!1!==t.randomize,c=!0===t.clamp,p=t.template instanceof m?t.template:null,d="number"==typeof t.strength?.4*t.strength:.4;-1<--_;)e=f?Math.random():1/u*_,i=p?p.getRatio(e):e,r="none"===o?d:"out"===o?(n=1-e)*n*d:"in"===o?e*e*d:(n=e<.5?2*e:2*(1-e))*n*.5*d,f?i+=Math.random()*r-.5*r:_%2?i+=.5*r:i-=.5*r,c&&(1<i?i=1:i<0&&(i=0)),l[h++]={x:e,y:i};for(l.sort(function(t,e){return t.x-e.x}),a=new g(1,1,null),_=u;-1<--_;)s=l[_],a=new g(s.x,s.y,a);this._prev=new g(0,0,0!==a.t?a:a.next)},!0)).prototype=new m).constructor=s,d.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return(this._prev=e).v+(t-e.t)/e.gap*e.c},d.config=function(t){return new s(t)},s.ease=new s,e("Bounce",t("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),t("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),t("BounceInOut",function(t){var e=t<.5;return t=(t=e?1-2*t:2*t-1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),e("Circ",t("CircOut",function(t){return Math.sqrt(1- --t*t)}),t("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),t("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),e("Elastic",(a=function(t,e,i){var r=_("easing."+t,function(t,e){this._p1=1<=t?t:1,this._p2=(e||i)/(t<1?t:1),this._p3=this._p2/h*(Math.asin(1/this._p1)||0),this._p2=h/this._p2},!0),n=r.prototype=new m;return n.constructor=r,n.getRatio=e,n.config=function(t,e){return new r(t,e)},r})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),a("ElasticIn",function(t){return-this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2)},.3),a("ElasticInOut",function(t){return(t*=2)<1?this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*--t)*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),e("Expo",t("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),t("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),t("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),e("Sine",t("SineOut",function(t){return Math.sin(t*u)}),t("SineIn",function(t){return 1-Math.cos(t*u)}),t("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),_("easing.EaseLookup",{find:function(t){return m.map[t]}},!0),f(o.SlowMo,"SlowMo","ease,"),f(s,"RoughEase","ease,"),f(r,"SteppedEase","ease,"),c},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(f,c){"use strict";var p={},r=f.document,d=f.GreenSockGlobals=f.GreenSockGlobals||f,t=d[c];if(t)return"undefined"!=typeof module&&module.exports&&(module.exports=t);function m(t){var e,i=t.split("."),r=d;for(e=0;e<i.length;e++)r[i[e]]=r=r[i[e]]||{};return r}function l(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i}function g(){}var e,i,n,y,v,s,a,_=m("com.greensock"),x=1e-8,T=(s=Object.prototype.toString,a=s.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&s.call(t)===a)}),w={},b=function(o,l,h,u){this.sc=w[o]?w[o].sc:[],(w[o]=this).gsClass=null,this.func=h;var _=[];this.check=function(t){for(var e,i,r,n,s=l.length,a=s;-1<--s;)(e=w[l[s]]||new b(l[s],[])).gsClass?(_[s]=e.gsClass,a--):t&&e.sc.push(this);if(0===a&&h){if(r=(i=("com.greensock."+o).split(".")).pop(),n=m(i.join("."))[r]=this.gsClass=h.apply(h,_),u)if(d[r]=p[r]=n,"undefined"!=typeof module&&module.exports)if(o===c)for(s in module.exports=p[c]=n,p)n[s]=p[s];else p[c]&&(p[c][r]=n);else"function"==typeof define&&define.amd&&define((f.GreenSockAMDPath?f.GreenSockAMDPath+"/":"")+o.split(".").pop(),[],function(){return n});for(s=0;s<this.sc.length;s++)this.sc[s].check()}},this.check(!0)},o=f._gsDefine=function(t,e,i,r){return new b(t,e,i,r)},P=_._class=function(t,e,i){return e=e||function(){},o(t,[],function(){return e},i),e};o.globals=d;var h=[0,0,1,1],S=P("easing.Ease",function(t,e,i,r){this._func=t,this._type=i||0,this._power=r||0,this._params=e?h.concat(e):h},!0),O=S.map={},u=S.register=function(t,e,i,r){for(var n,s,a,o,l=e.split(","),h=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");-1<--h;)for(s=l[h],n=r?P("easing."+s,null,!0):_.easing[s]||{},a=u.length;-1<--a;)o=u[a],O[s+"."+o]=O[o+s]=n[o]=t.getRatio?t:t[o]||new t};for((n=S.prototype)._calcEnd=!1,n.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,r=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?r*=r:2===i?r*=r*r:3===i?r*=r*r*r:4===i&&(r*=r*r*r*r),1===e?1-r:2===e?r:t<.5?r/2:1-r/2},i=(e=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--i;)n=e[i]+",Power"+i,u(new S(null,null,1,i),n,"easeOut",!0),u(new S(null,null,2,i),n,"easeIn"+(0===i?",easeNone":"")),u(new S(null,null,3,i),n,"easeInOut");O.linear=_.easing.Linear.easeIn,O.swing=_.easing.Quad.easeInOut;var k=P("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(n=k.prototype).addEventListener=function(t,e,i,r,n){n=n||0;var s,a,o=this._listeners[t],l=0;for(this!==y||v||y.wake(),null==o&&(this._listeners[t]=o=[]),a=o.length;-1<--a;)(s=o[a]).c===e&&s.s===i?o.splice(a,1):0===l&&s.pr<n&&(l=a+1);o.splice(l,0,{c:e,s:i,up:r,pr:n})},n.removeEventListener=function(t,e){var i,r=this._listeners[t];if(r)for(i=r.length;-1<--i;)if(r[i].c===e)return void r.splice(i,1)},n.dispatchEvent=function(t){var e,i,r,n=this._listeners[t];if(n)for(1<(e=n.length)&&(n=n.slice(0)),i=this._eventTarget;-1<--e;)(r=n[e])&&(r.up?r.c.call(r.s||i,{type:t,target:i}):r.c.call(r.s||i))};var C=f.requestAnimationFrame,R=f.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},M=A();for(i=(e=["ms","moz","webkit","o"]).length;-1<--i&&!C;)C=f[e[i]+"RequestAnimationFrame"],R=f[e[i]+"CancelAnimationFrame"]||f[e[i]+"CancelRequestAnimationFrame"];P("Ticker",function(t,e){var n,s,a,o,l,h=this,u=A(),i=!(!1===e||!C)&&"auto",_=500,f=33,c=function(t){var e,i,r=A()-M;_<r&&(u+=r-f),M+=r,h.time=(M-u)/1e3,e=h.time-l,(!n||0<e||!0===t)&&(h.frame++,l+=e+(o<=e?.004:o-e),i=!0),!0!==t&&(a=s(c)),i&&h.dispatchEvent("tick")};k.call(h),h.time=h.frame=0,h.tick=function(){c(!0)},h.lagSmoothing=function(t,e){return arguments.length?(_=t||1e8,void(f=Math.min(e,_,0))):_<1e8},h.sleep=function(){null!=a&&((i&&R?R:clearTimeout)(a),s=g,a=null,h===y&&(v=!1))},h.wake=function(t){null!==a?h.sleep():t?u+=-M+(M=A()):10<h.frame&&(M=A()-_+5),s=0===n?g:i&&C?C:function(t){return setTimeout(t,1e3*(l-h.time)+1|0)},h===y&&(v=!0),c(2)},h.fps=function(t){return arguments.length?(o=1/((n=t)||60),l=this.time+o,void h.wake()):n},h.useRAF=function(t){return arguments.length?(h.sleep(),i=t,void h.fps(n)):i},h.fps(t),setTimeout(function(){"auto"===i&&h.frame<5&&"hidden"!==(r||{}).visibilityState&&h.useRAF(!1)},1500)}),(n=_.Ticker.prototype=new _.events.EventDispatcher).constructor=_.Ticker;var D=P("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!!e.immediateRender,this.data=e.data,this._reversed=!!e.reversed,K){v||y.wake();var i=this.vars.useFrames?$:K;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});y=D.ticker=new _.Ticker,(n=D.prototype)._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1;var F=function(){v&&2e3<A()-M&&("hidden"!==(r||{}).visibilityState||!y.lagSmoothing())&&y.wake();var t=setTimeout(F,2e3);t.unref&&t.unref()};F(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(t,e,i){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},n.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<i+this.totalDuration()/this._timeScale-x},n._enabled=function(t,e){return v||y.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(t,e){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();-1<--e;)"{self}"===t[e]&&(i[e]=this);return i},n._callback=function(t){var e=this.vars,i=e[t],r=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this;switch(r?r.length:0){case 0:i.call(n);break;case 1:i.call(n,r[0]);break;case 2:i.call(n,r[0],r[1]);break;default:i.apply(n,r)}},n.eventCallback=function(t,e,i,r){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=T(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},n.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},n.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,i){if(v||y.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,n=this._timeline;if(r<t&&!i&&(t=r),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?r-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(B.length&&tt(),this.render(t,e,!1),B.length&&tt())}return this},n.progress=n.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},n.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},n.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||x,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(t){if(!arguments.length)return this._paused;var e,i,r=this._timeline;return t!=this._paused&&r&&(v||t||y.wake(),i=(e=r.rawTime())-this._pauseTime,!t&&r.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!=i&&this._initted&&this.duration()&&(e=r.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var L=P("core.SimpleTimeline",function(t){D.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(n=L.prototype=new D).constructor=L,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(t,e,i,r){var n,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(s=t._startTime;n&&n._startTime>s;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},n.render=function(t,e,i){var r,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)r=n._next,(n._active||t>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=r},n.rawTime=function(){return v||y.wake(),this._totalTime};function z(t){return t&&t.length&&t!==f&&t[0]&&(t[0]===f||t[0].nodeType&&t[0].style&&!t.nodeType)}var E=P("TweenLite",function(t,e,i){if(D.call(this,e,i),this.render=E.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:E.selector(t)||t;var r,n,s,a=t.jquery||t.length&&t!==f&&t[0]&&(t[0]===f||t[0].nodeType&&t[0].style&&!t.nodeType),o=this.vars.overwrite;if(this._overwrite=o=null==o?Z[E.defaultOverwrite]:"number"==typeof o?o>>0:Z[o],(a||t instanceof Array||t.push&&T(t))&&"number"!=typeof t[0])for(this._targets=s=l(t),this._propLookup=[],this._siblings=[],r=0;r<s.length;r++)(n=s[r])?"string"!=typeof n?n.length&&n!==f&&n[0]&&(n[0]===f||n[0].nodeType&&n[0].style&&!n.nodeType)?(s.splice(r--,1),this._targets=s=s.concat(l(n))):(this._siblings[r]=it(n,this,!1),1===o&&1<this._siblings[r].length&&rt(n,this,null,1,this._siblings[r])):"string"==typeof(n=s[r--]=E.selector(n))&&s.splice(r+1,1):s.splice(r--,1);else this._propLookup={},this._siblings=it(t,this,!1),1===o&&1<this._siblings.length&&rt(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-x,this.render(Math.min(0,-this._delay)))},!0);(n=E.prototype=new D).constructor=E,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,E.version="2.1.3",E.defaultEase=n._ease=new S(null,null,1,1),E.defaultOverwrite="auto",E.ticker=y,E.autoSleep=120,E.lagSmoothing=function(t,e){y.lagSmoothing(t,e)},E.selector=f.$||f.jQuery||function(t){var e=f.$||f.jQuery;return e?(E.selector=e)(t):(r=r||f.document)?r.querySelectorAll?r.querySelectorAll(t):r.getElementById("#"===t.charAt(0)?t.substr(1):t):t};function I(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m.call(this._tween,e,this._target||i.t,this._tween):e<1e-6&&-1e-6<e&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next}function N(t){return(1e3*t|0)/1e3+""}function j(t,e,i,r){var n,s,a,o,l,h,u,_=[],f=0,c="",p=0;for(_.start=t,_.end=e,t=_[0]=t+"",e=_[1]=e+"",i&&(i(_),t=_[0],e=_[1]),_.length=0,n=t.match(G)||[],s=e.match(G)||[],r&&(r._next=null,r.blob=1,_._firstPT=_._applyPT=r),l=s.length,o=0;o<l;o++)u=s[o],c+=(h=e.substr(f,e.indexOf(u,f)-f))||!o?h:",",f+=h.length,p?p=(p+1)%5:"rgba("===h.substr(-5)&&(p=1),u===n[o]||n.length<=o?c+=u:(c&&(_.push(c),c=""),a=parseFloat(n[o]),_.push(a),_._firstPT={_next:_._firstPT,t:_,p:_.length-1,s:a,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-a)||0,f:0,m:p&&p<4?Math.round:N}),f+=u.length;return(c+=e.substr(f))&&_.push(c),_.setRatio=I,U.test(e)&&(_.end=null),_}function X(t,e,i,r,n,s,a,o,l){"function"==typeof r&&(r=r(l||0,t));var h=typeof t[e],u="function"!=h?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),_="get"!==i?i:u?a?t[u](a):t[u]():t[e],f="string"==typeof r&&"="===r.charAt(1),c={t:t,p:e,s:_,f:"function"==h,pg:0,n:n||e,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:f?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-_||0};return"number"==typeof _&&("number"==typeof r||f)||(a||isNaN(_)||!f&&isNaN(r)||"boolean"==typeof _||"boolean"==typeof r?(c.fp=a,c={t:j(_,f?parseFloat(c.s)+c.c+(c.s+"").replace(/[0-9\-\.]/g,""):r,o||E.defaultStringFilter,c),p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0,m:0}):(c.s=parseFloat(_),f||(c.c=parseFloat(r)-c.s||0))),c.c?((c._next=this._firstPT)&&(c._next._prev=c),this._firstPT=c):void 0}var B=[],Y={},G=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,U=/[\+-]=-?[\.\d]/,V=E._internals={isArray:T,isSelector:z,lazyTweens:B,blobDif:j},q=E._plugins={},W=V.tweenLookup={},Q=0,H=V.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},Z={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},$=D._rootFramesTimeline=new L,K=D._rootTimeline=new L,J=30,tt=V.lazyRender=function(){var t,e,i=B.length;for(Y={},t=0;t<i;t++)(e=B[t])&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);B.length=0};K._startTime=y.time,$._startTime=y.frame,K._active=$._active=!0,setTimeout(tt,1),D._updateRoot=E.render=function(){var t,e,i;if(B.length&&tt(),K.render((y.time-K._startTime)*K._timeScale,!1,!1),$.render((y.frame-$._startTime)*$._timeScale,!1,!1),B.length&&tt(),y.frame>=J){for(i in J=y.frame+(parseInt(E.autoSleep,10)||120),W){for(t=(e=W[i].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete W[i]}if((!(i=K._first)||i._paused)&&E.autoSleep&&!$._first&&1===y._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||y.sleep()}}},y.addEventListener("tick",D._updateRoot);function et(t,e,i,r){var n,s,a=t.vars.onOverwrite;return a&&(n=a(t,e,i,r)),(a=E.onOverwrite)&&(s=a(t,e,i,r)),!1!==n&&!1!==s}var it=function(t,e,i){var r,n,s=t._gsTweenID;if(W[s||(t._gsTweenID=s="t"+Q++)]||(W[s]={target:t,tweens:[]}),e&&((r=W[s].tweens)[n=r.length]=e,i))for(;-1<--n;)r[n]===e&&r.splice(n,1);return W[s].tweens},rt=function(t,e,i,r,n){var s,a,o,l;if(1===r||4<=r){for(l=n.length,s=0;s<l;s++)if((o=n[s])!==e)o._gc||o._kill(null,t,e)&&(a=!0);else if(5===r)break;return a}var h,u=e._startTime+x,_=[],f=0,c=0===e._duration;for(s=n.length;-1<--s;)(o=n[s])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||nt(e,0,c),0===nt(o,h,c)&&(_[f++]=o)):o._startTime<=u&&o._startTime+o.totalDuration()/o._timeScale>u&&((c||!o._initted)&&u-o._startTime<=2e-8||(_[f++]=o)));for(s=f;-1<--s;)if(l=(o=_[s])._firstPT,2===r&&o._kill(i,t,e)&&(a=!0),2!==r||!o._firstPT&&o._initted&&l){if(2!==r&&!et(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},nt=function(t,e,i){for(var r=t._timeline,n=r._timeScale,s=t._startTime;r._timeline;){if(s+=r._startTime,n*=r._timeScale,r._paused)return-100;r=r._timeline}return e<(s/=n)?s-e:i&&s===e||!t._initted&&s-e<2e-8?x:(s+=t.totalDuration()/t._timeScale/n)>e+x?0:s-e-x};n._init=function(){var t,e,i,r,n,s,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,u=a.ease,_=this._startAt;if(a.startAt){for(r in _&&(_.render(-1,!0),_.kill()),n={},a.startAt)n[r]=a.startAt[r];if(n.data="isStart",n.overwrite=!1,n.immediateRender=!0,n.lazy=h&&!1!==a.lazy,n.startAt=n.delay=null,n.onUpdate=a.onUpdate,n.onUpdateParams=a.onUpdateParams,n.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=E.to(this.target||{},0,n),h)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(_)_.render(-1,!0),_.kill(),this._startAt=null;else{for(r in 0!==this._time&&(h=!1),i={},a)H[r]&&"autoCSS"!==r||(i[r]=a[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&!1!==a.lazy,i.immediateRender=h,this._startAt=E.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof S?u:"function"==typeof u?new S(u,a.easeParams):O[u]||E.defaultEase:E.defaultEase,a.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,t=0;t<s;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o,0);if(e&&E._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},n._initProps=function(t,e,i,r,n){var s,a,o,l,h,u;if(null==t)return!1;for(s in Y[t._gsTweenID]&&tt(),this.vars.css||t.style&&t!==f&&t.nodeType&&q.css&&!1!==this.vars.autoCSS&&function(t,e){var i,r={};for(i in t)H[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!q[i]||q[i]&&q[i]._autoCSS)||(r[i]=t[i],delete t[i]);t.css=r}(this.vars,t),this.vars)if(u=this.vars[s],H[s])u&&(u instanceof Array||u.push&&T(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[s]=u=this._swapSelfInParams(u,this));else if(q[s]&&(l=new q[s])._onInitTween(t,this.vars[s],this,n)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:l._priority,m:0},a=l._overwriteProps.length;-1<--a;)e[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),h._next&&(h._next._prev=h)}else e[s]=X.call(this,t,s,"get",u,s,0,null,this.vars.stringFilter,n);return r&&this._kill(r,t)?this._initProps(t,e,i,r,n):1<this._overwrite&&this._firstPT&&1<i.length&&rt(t,this,e,this._overwrite,i)?(this._kill(e,t),this._initProps(t,e,i,r,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(Y[t._gsTweenID]=!0),o)},n.render=function(t,e,i){var r,n,s,a,o=this,l=o._time,h=o._duration,u=o._rawPrevTime;if(h-x<=t&&0<=t)o._totalTime=o._time=h,o.ratio=o._ease._calcEnd?o._ease.getRatio(1):1,o._reversed||(r=!0,n="onComplete",i=i||o._timeline.autoRemoveChildren),0!==h||!o._initted&&o.vars.lazy&&!i||(o._startTime===o._timeline._duration&&(t=0),(u<0||t<=0&&-x<=t||u===x&&"isPause"!==o.data)&&u!==t&&(i=!0,x<u&&(n="onReverseComplete")),o._rawPrevTime=a=!e||t||u===t?t:x);else if(t<x)o._totalTime=o._time=0,o.ratio=o._ease._calcEnd?o._ease.getRatio(0):0,(0!==l||0===h&&0<u)&&(n="onReverseComplete",r=o._reversed),-x<t?t=0:t<0&&(o._active=!1,0!==h||!o._initted&&o.vars.lazy&&!i||(0<=u&&(u!==x||"isPause"!==o.data)&&(i=!0),o._rawPrevTime=a=!e||t||u===t?t:x)),(!o._initted||o._startAt&&o._startAt.progress())&&(i=!0);else if(o._totalTime=o._time=t,o._easeType){var _=t/h,f=o._easeType,c=o._easePower;(1===f||3===f&&.5<=_)&&(_=1-_),3===f&&(_*=2),1===c?_*=_:2===c?_*=_*_:3===c?_*=_*_*_:4===c&&(_*=_*_*_*_),o.ratio=1===f?1-_:2===f?_:t/h<.5?_/2:1-_/2}else o.ratio=o._ease.getRatio(t/h);if(o._time!==l||i){if(!o._initted){if(o._init(),!o._initted||o._gc)return;if(!i&&o._firstPT&&(!1!==o.vars.lazy&&o._duration||o.vars.lazy&&!o._duration))return o._time=o._totalTime=l,o._rawPrevTime=u,B.push(o),void(o._lazy=[t,e]);o._time&&!r?o.ratio=o._ease.getRatio(o._time/h):r&&o._ease._calcEnd&&(o.ratio=o._ease.getRatio(0===o._time?0:1))}for(!1!==o._lazy&&(o._lazy=!1),o._active||!o._paused&&o._time!==l&&0<=t&&(o._active=!0),0===l&&(o._startAt&&(0<=t?o._startAt.render(t,!0,i):n=n||"_dummyGS"),!o.vars.onStart||0===o._time&&0!==h||(e||o._callback("onStart"))),s=o._firstPT;s;)s.f?s.t[s.p](s.c*o.ratio+s.s):s.t[s.p]=s.c*o.ratio+s.s,s=s._next;o._onUpdate&&(t<0&&o._startAt&&-1e-4!==t&&o._startAt.render(t,!0,i),e||(o._time!==l||r||i)&&o._callback("onUpdate")),!n||o._gc&&!i||(t<0&&o._startAt&&!o._onUpdate&&-1e-4!==t&&o._startAt.render(t,!0,i),r&&(o._timeline.autoRemoveChildren&&o._enabled(!1,!1),o._active=!1),!e&&o.vars[n]&&o._callback(n),0===h&&o._rawPrevTime===x&&a!==x&&(o._rawPrevTime=0))}},n._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:E.selector(e)||e;var r,n,s,a,o,l,h,u,_,f=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,c=this._firstPT;if((T(e)||z(e))&&"number"!=typeof e[0])for(r=e.length;-1<--r;)this._kill(t,e[r],i)&&(l=!0);else{if(this._targets){for(r=this._targets.length;-1<--r;)if(e===this._targets[r]){o=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[r]=t?this._overwrittenProps[r]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,u=t!==n&&"all"!==n&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(E.onOverwrite||this.vars.onOverwrite)){for(s in h)o[s]&&(_=_||[]).push(s);if((_||!t)&&!et(this,i,e,_))return!1}for(s in h)(a=o[s])&&(f&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[s]),u&&(n[s]=1);!this._firstPT&&this._initted&&c&&this._enabled(!1,!1)}}return l},n.invalidate=function(){this._notifyPluginsOfEnabled&&E._onPluginEvent("_onDisable",this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],D.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-x,this.render(t,!1,!1!==this.vars.lazy)),this},n._enabled=function(t,e){if(v||y.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;-1<--i;)this._siblings[i]=it(r[i],this,!0);else this._siblings=it(this.target,this,!0)}return D.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&E._onPluginEvent(t?"_onEnable":"_onDisable",this)},E.to=function(t,e,i){return new E(t,e,i)},E.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new E(t,e,i)},E.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new E(t,e,r)},E.delayedCall=function(t,e,i,r,n){return new E(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},E.set=function(t,e){return new E(t,0,e)},E.getTweensOf=function(t,e){if(null==t)return[];var i,r,n,s;if(t="string"!=typeof t?t:E.selector(t)||t,(T(t)||z(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];-1<--i;)r=r.concat(E.getTweensOf(t[i],e));for(i=r.length;-1<--i;)for(s=r[i],n=i;-1<--n;)s===r[n]&&r.splice(i,1)}else if(t._gsTweenID)for(i=(r=it(t).concat()).length;-1<--i;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r||[]},E.killTweensOf=E.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var r=E.getTweensOf(t,e),n=r.length;-1<--n;)r[n]._kill(i,t)};var st=P("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=st.prototype},!0);if(n=st.prototype,st.version="1.19.0",st.API=2,n._firstPT=null,n._addTween=X,n.setRatio=I,n._kill=function(t){var e,i=this._overwriteProps,r=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;-1<--e;)null!=t[i[e]]&&i.splice(e,1);for(;r;)null!=t[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},n._mod=n._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},E._onPluginEvent=function(t,e){var i,r,n,s,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:s)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:s=o,o=a}o=e._firstPT=n}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},st.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===st.API&&(q[(new t[e])._propName]=t[e]);return!0},o.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,r=t.priority||0,n=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=P("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){st.call(this,i,r),this._overwriteProps=n||[]},!0===t.global),o=a.prototype=new st(i);for(e in(o.constructor=a).API=t.API,s)"function"==typeof t[e]&&(o[s[e]]=t[e]);return a.version=t.version,st.activate([a]),a},e=f._gsQueue){for(i=0;i<e.length;i++)e[i]();for(n in w)w[n].func||f.console.log("GSAP encountered missing dependency: "+n)}v=!1}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),function(t){"function"==typeof define&&define.amd?define(t):"undefined"!=typeof exports?module.exports=t():t()}(function(){(void 0!==LS_GSAP?LS_GSAP:window).SplitType=function(C,l,s){function h(t){return null!==t&&"object"==typeof t}function u(t){return h(t)&&"number"==typeof t.length&&0<t.length}function _(t){return h(t)&&/^(1|3|11)$/.test(t.nodeType)}function R(t,e,i){for(var r=Object(t),n=u(r)?r:h(o=r)&&"[object Object]"===Object.prototype.toString.call(o)?c(r):[r],s=parseInt(n.length)||0,a=0;a<s;a++)e.call(i,n[a],a,r);var o}function i(i,r){return i=Object(i),r=Object(r),Object.getOwnPropertyNames(i).reduce(function(t,e){return n(t,e,p(r,e)||p(i,e))},{})}function A(t,e,i){var r,n={};return h(t)&&(r=t[a]||(t[a]=++f),n=o[r]||(o[r]={})),i===s?e===s?n:n[e]:e!==s?n[e]=i:void 0}function M(t,i){var r=l.createElement(t);return i===s||R(i,function(t){var e=i[t];if(null!==e)switch(t){case"textContent":r.textContent=e;break;case"innerHTML":r.innerHTML=e;break;case"children":R(e,function(t){_(t)&&r.appendChild(t)});break;default:r.setAttribute(t,e)}}),r}function r(t,e){return this instanceof r?(this.isSplit=!1,this.settings=i(d,e),this.elements=function(t){var e,i,r,n,s,a,o=[];if("string"==typeof t&&(t="#"===(e=t.trim())[0]&&!/[^\w]/.test(i=e.slice(1))?l.getElementById(i):l.querySelectorAll(e)),e||_(t))return _(t)?[t]:F.call(t);if(u(t))for(s=0,r=t.length;s<r;s++)if(u(t[s]))for(a=0,n=t[s].length;a<n;a++)_(t[s][a])&&o.push(t[s][a]);else _(t[s])&&o.push(t[s]);return o}(t),void(this.elements.length&&(this.originals=this.elements.map(function(t){return A(t).html=A(t).html||t.innerHTML}),this.split()))):new r(t,e)}if(l.addEventListener&&Function.prototype.bind){var a="splitType"+ +new Date,o={},f=0,D=Array.prototype.push,F=Array.prototype.slice,c=Object.keys,n=(Object.prototype.hasOwnProperty,Object.defineProperty),p=(Object.defineProperties,Object.getOwnPropertyDescriptor),L=l.createDocumentFragment.bind(l),z=l.createTextNode.bind(l),d={splitClass:"",lineClass:"line",wordClass:"word",charClass:"char",split:"lines, words, chars",position:"relative",absolute:!1,tagName:"div",DEBUG:!1};return n(r,"defaults",{get:function(){return d},set:function(t){d=i(d,t)}}),r.prototype.split=function(t){this.revert(),this.lines=[],this.words=[],this.chars=[],t!==s&&(this.settings=i(this.settings,t)),R(this.elements,function(t){(function(t){var e,i,r,n,s=this.settings,a=s.tagName,o="B"+ +new Date+"R",l=s.split,h=-1!==l.indexOf("lines"),u=-1!==l.indexOf("words"),_=-1!==l.indexOf("chars"),f="absolute"===s.position||!0===s.absolute,c=M("div"),p=[],d=[];if(r=h?M("div"):L(),c.innerHTML=t.innerHTML.replace(/<br\s*\/?>/g," "+o+" "),n=c.textContent.replace(/\s+/g," ").trim().split(" ").map(function(t){if(t===o)return r.appendChild(M("br")),null;if(_){var e=t.split("").map(function(t){return M(a,{class:s.charClass+" "+s.splitClass,style:"display: inline-block;",textContent:t})});D.apply(d,e)}return u||h?(i=M(a,{class:s.wordClass+" "+s.splitClass,style:"display: inline-block; position:"+(u?"relative":"static;"),children:_?e:null,textContent:_?null:t}),r.appendChild(i)):R(e,function(t){r.appendChild(t)}),r.appendChild(z(" ")),i},this).filter(function(t){return t}),t.innerHTML="",t.appendChild(r),D.apply(this.words,n),D.apply(this.chars,d),f||h){var m,g,y,v,x,T,w,b,P,S,O,k=[];w=A(t).nodes=t.getElementsByTagName(a),b=t.parentElement,P=t.nextElementSibling,S=C.getComputedStyle(t),O=S.textAlign,f&&(v={left:r.offsetLeft,top:r.offsetTop,width:r.offsetWidth},T=t.offsetWidth,x=t.offsetHeight,A(t).cssWidth=t.style.width,A(t).cssHeight=t.style.height),R(w,function(t){if(t!==r){var e,i=t.parentElement===r;h&&i&&((e=A(t).top=t.offsetTop)!==g&&(g=e,k.push(m=[])),m.push(t)),f&&(A(t).top=e||t.offsetTop,A(t).left=t.offsetLeft,A(t).width=t.offsetWidth,A(t).height=y=y||t.offsetHeight)}}),b.removeChild(t),h&&(r=L(),p=k.map(function(t){return r.appendChild(e=M(a,{class:s.lineClass+" "+s.splitClass,style:"display: block; text-align:"+O+"; width: 100%;"})),f&&(A(e).type="line",A(e).top=A(t[0]).top,A(e).height=y),R(t,function(t){u?e.appendChild(t):_?F.call(t.children).forEach(function(t){e.appendChild(t)}):e.appendChild(z(t.textContent)),e.appendChild(z(" "))}),e}),t.replaceChild(r,t.firstChild),D.apply(this.lines,p)),f&&(t.style.width=t.style.width||T+"px",t.style.height=x+"px",R(w,function(t){var e="line"===A(t).type,i=!e&&"line"===A(t.parentElement).type;t.style.top=i?0:A(t).top+"px",t.style.left=e?v.left+"px":(i?A(t).left-v.left:A(t).left)+"px",t.style.height=A(t).height+"px",t.style.width=e?v.width+"px":A(t).width+"px",t.style.position="absolute"})),P?b.insertBefore(t,P):b.appendChild(t)}}).call(this,t),A(t).isSplit=!0},this),this.isSplit=!0,R(this.elements,function(t){for(var e=A(t).nodes||[],i=0,r=e.length;i<r;i++)(s=(n=e[i])&&n[a])&&(delete n[s],delete o[s]);var n,s})},r.prototype.revert=function(){this.isSplit&&(this.lines=this.words=this.chars=null),R(this.elements,function(t){A(t).isSplit&&A(t).html&&(t.innerHTML=A(t).html,t.style.height=A(t).cssHeight||"",t.style.width=A(t).cssWidth||"",this.isSplit=!1)},this)},r}}(window,document)}),"object"==typeof LS_Meta&&LS_Meta.fixGSAP&&(window.GreenSockGlobals=null,window._gsQueue=null,window._gsDefine=null,delete window.GreenSockGlobals,delete window._gsQueue,delete window._gsDefine,window.GreenSockGlobals=LS_oldGS,window._gsQueue=LS_oldGSQueue,window._gsDefine=LS_oldGSDefine),window._layerSlider={globals:{youTubeIsReady:!1,vimeoIsReady:!1},GSAP:void 0!==LS_GSAP&&LS_GSAP,pluginsLoaded:[],pluginsNotLoaded:[],pluginsBeingLoaded:[],plugins:{},slidersList:{},currentScript:document.currentScript,lsScript:jQuery('script[src*="layerslider.kreaturamedia.jquery.js"]')[0],scriptPath:"",pluginsPath:!1,showNotice:function(t,e,i,r){var n,s,a,o=jQuery(t),l="ls-issue-"+e;switch(e){case"jquery":a="Multiple jQuery issue",s='It looks like that another plugin or your theme loads an extra copy of the jQuery library causing problems for LayerSlider to show your sliders. Please navigate from your WordPress admin sidebar to LayerSlider -> Options -> Advanced and enable the "Include scripts in the footer" option.';break;case"oldjquery":a="Old jQuery issue",s="It looks like you are using an old version ("+i+") of the jQuery library. LayerSlider requires at least version "+r+" or newer. Please update jQuery to 1.10.x or higher. Important: Please do not use the jQuery Updater plugin on WordPress as it can cause issues in certain cases."}o.each(function(){(n=jQuery(this)).hasClass(l)||(n.addClass(l),jQuery('<div class="ls-slider-notification"><i class="ls-slider-notification-logo">!</i><strong>LayerSlider: '+a+"</strong><span>"+s+"</span></div>").insertBefore(n))})},removeSlider:function(t){this.slidersList[t]=null,delete this.slidersList[t]},checkVersions:function(t,e){for(var i=t.split("."),r=e.split("."),n=0;n<i.length;++n){if(r.length==n)return!1;if(parseInt(i[n])!=parseInt(r[n]))return!(parseInt(i[n])>parseInt(r[n]))}return i.length,r.length,!0}},Number.prototype.indexOf=function(t){return(""+this).indexOf(t)};
// source --> https://gartengestaltung-gar10.at/wp-content/plugins/LayerSlider/assets/static/layerslider/js/layerslider.kreaturamedia.jquery.js?ver=7.8.0 
/*
	* LayerSlider
	*
	* (c) 2011-2023 George Krupa, John Gera & Kreatura Media
	*
	* LayerSlider home:		https://layerslider.com/
	* Licensing:			https://layerslider.com/licensing/
*/



;!function(ie){"use strict";window._layerSliders={},window._lsData={$overflowWrapper:ie("body").length?ie("body"):ie("html"),isMobile:!!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|webOS|Windows Phone|IEMobile|mobi|opera mini|nexus 7)/i)||navigator.maxTouchPoints&&2<navigator.maxTouchPoints&&/Macintosh/.test(navigator.userAgent),supportOrientation:!!window.DeviceOrientationEvent,screen:{},document:{},viewport:{},scroll:{direction:"down"},resize:{},getScreenSize:function(){window._lsData.screen={width:screen.width,height:screen.height,ratio:screen.width/screen.height}},slide:{keys:{slidedelay:["data","duration"],duration:["data","duration"],timeshift:["data","timeShift"],transition2d:["data","transition2d"],transition3d:["data","transition3d"],transitionorigami:["data","transitionorigami"],customtransition2d:["data","customtransition2d"],customtransition3d:["data","customtransition3d"],transitionduration:["data","transitionDuration"],backgroundsize:["data","backgroundSize"],bgsize:["data","backgroundSize"],backgroundposition:["data","backgroundPosition"],bgposition:["data","backgroundPosition"],backgroundcolor:["data","backgroundColor"],bgcolor:["data","backgroundColor"],thumbnail:["data","thumbnail"],deeplink:["data","deeplink"],overflow:["data","overflow"],kenburnspan:["kenBurns","pan"],kenburnszoom:["kenBurns","zoom"],kenburnsrotation:["kenBurns","rotation"],kenburnsrotate:["kenBurns","rotation"],kenburnsscale:["kenBurns","scale"],filterfrom:["filter","from"],filterto:["filter","to"],parallaxtype:["parallax","type"],parallaxevent:["parallax","event"],parallaxpath:["parallax","path"],parallaxdirection:["parallax","direction"],parallaxduration:["parallax","duration"],parallaxcount:["parallax","count"],parallaxdelay:["parallax","startAt"],parallaxstartat:["parallax","startAt"],parallaxaxis:["parallax","axis"],parallaxtransformorigin:["parallax","transformOrigin"],parallaxdurationmove:["parallax","durationMove"],parallaxdurationleave:["parallax","durationLeave"],parallaxrotate:["parallax","rotation"],parallaxrotation:["parallax","rotation"],parallaxdistance:["parallax","distance"],parallaxtransformperspective:["parallax","transformPerspective"],globalhover:["data","globalhover"]}},layer:{keys:{keyframe:["is"],responsive:["is"],pinned:["is"],position:["settings"],static:["settings"],minresponsiveratio:["settings"],maxresponsiveratio:["settings"],minfontsize:["styleSettings"],minmobilefontsize:["styleSettings"],overlay:["styleSettings"],pointerevents:["styleSettings"],smartbg:["styleSettings"],autoplay:["mediaSettings"],controls:["mediaSettings"],showinfo:["mediaSettings"],thumbnail:["poster","mediaSettings"],poster:["mediaSettings"],volume:["mediaSettings"],muted:["mediaSettings"],loopmedia:["loop","mediaSettings"],backgroundvideo:["backgroundVideo","mediaSettings"],fadein:["opacity","inLayerFromCSS"],opacityin:["opacity","inLayerFromCSS"],rotatein:["rotation","inLayerFromCSS"],rotatexin:["rotationX","inLayerFromCSS"],rotateyin:["rotationY","inLayerFromCSS"],rotationin:["rotation","inLayerFromCSS"],rotationxin:["rotationX","inLayerFromCSS"],rotationyin:["rotationY","inLayerFromCSS"],scalein:["scale","inLayerFromCSS"],scalexin:["scaleX","inLayerFromCSS"],scaleyin:["scaleY","inLayerFromCSS"],skewxin:["skewX","inLayerFromCSS"],skewyin:["skewY","inLayerFromCSS"],bgcolorin:["backgroundColor","inLayerStyleFromCSS"],colorin:["color","inLayerStyleFromCSS"],radiusin:["borderRadius","inLayerStyleShouldBeConvertedFrom"],widthin:["width","inLayerStyleShouldBeConvertedFrom"],heightin:["height","inLayerStyleShouldBeConvertedFrom"],filterin:["filter","inLayerStyleShouldBeConvertedFrom"],rotate:["rotation","inLayerToCSS"],rotatex:["rotationX","inLayerToCSS"],rotatey:["rotationY","inLayerToCSS"],rotation:["rotation","inLayerToCSS"],rotationx:["rotationX","inLayerToCSS"],rotationy:["rotationY","inLayerToCSS"],scale:["scale","inLayerToCSS"],scalex:["scaleX","inLayerToCSS"],scaley:["scaleY","inLayerToCSS"],skewx:["skewX","inLayerToCSS"],skewy:["skewY","inLayerToCSS"],transformoriginin:["transformOrigin","inLayerShouldBeConverted"],offsetxin:["x","inLayerShouldBeConverted"],offsetyin:["y","inLayerShouldBeConverted"],clipin:["clip","inClipShouldBeConverted"],delayin:["startAt","in"],startatin:["startAt","in"],instartat:["startAt","in"],durationin:["duration","in"],easein:["ease","in"],easingin:["ease","in"],transitionin:["enabled","in"],transformmirrorin:["mirror","in"],skipviewport:["skipViewport","settings"],textfadein:["opacity","textInNodesFrom"],textopacityin:["opacity","textInNodesFrom"],textrotatein:["rotation","textInNodesFrom"],textrotatexin:["rotationX","textInNodesFrom"],textrotateyin:["rotationY","textInNodesFrom"],textrotationin:["rotation","textInNodesFrom"],textrotationxin:["rotationX","textInNodesFrom"],textrotationyin:["rotationY","textInNodesFrom"],textscalein:["scale","textInNodesFrom"],textscalexin:["scaleX","textInNodesFrom"],textscaleyin:["scaleY","textInNodesFrom"],textskewxin:["skewX","textInNodesFrom"],textskewyin:["skewY","textInNodesFrom"],textcolorin:["color","textInNodesFrom"],textoverflowin:["overflow","textInLayerStyle"],texteasein:["ease","textInNodesTo"],texteasingin:["ease","textInNodesTo"],texttransformoriginin:["transformOrigin","textInShouldBeConverted"],textoffsetxin:["x","textInShouldBeConverted"],textoffsetyin:["y","textInShouldBeConverted"],texttypein:["type","textIn"],textshiftin:["shiftNodes","textIn"],textdelayin:["startAt","textIn"],textstartatin:["startAt","textIn"],textinstartat:["startAt","textIn"],textdurationin:["duration","textIn"],texttransitionin:["enabled","textIn"],texttransformmirrorin:["mirror","textIn"],fadeout:["opacity","outLayerToCSS"],opacityout:["opacity","outLayerToCSS"],rotateout:["rotation","outLayerToCSS"],rotatexout:["rotationX","outLayerToCSS"],rotateyout:["rotationY","outLayerToCSS"],rotationout:["rotation","outLayerToCSS"],rotationxout:["rotationX","outLayerToCSS"],rotationyout:["rotationY","outLayerToCSS"],scaleout:["scale","outLayerToCSS"],scalexout:["scaleX","outLayerToCSS"],scaleyout:["scaleY","outLayerToCSS"],skewxout:["skewX","outLayerToCSS"],skewyout:["skewY","outLayerToCSS"],bgcolorout:["backgroundColor","outLayerStyleToCSS"],colorout:["color","outLayerStyleToCSS"],radiusout:["borderRadius","outLayerStyleShouldBeConvertedTo"],widthout:["width","outLayerStyleShouldBeConvertedTo"],heightout:["height","outLayerStyleShouldBeConvertedTo"],filterout:["filter","outLayerStyleShouldBeConvertedTo"],transformoriginout:["transformOrigin","outLayerShouldBeConverted"],offsetxout:["x","outLayerShouldBeConverted"],offsetyout:["y","outLayerShouldBeConverted"],clipout:["clip","outClipShouldBeConverted"],showuntil:["showUntil","out"],startatout:["startAt","out"],outstartat:["startAt","out"],durationout:["duration","out"],easeout:["ease","out"],easingout:["ease","out"],transitionout:["enabled","out"],transformmirrorout:["mirror","out"],textfadeout:["opacity","textOutNodesTo"],textopacityout:["opacity","textOutNodesTo"],textrotateout:["rotation","textOutNodesTo"],textrotatexout:["rotationX","textOutNodesTo"],textrotateyout:["rotationY","textOutNodesTo"],textrotationout:["rotation","textOutNodesTo"],textrotationxout:["rotationX","textOutNodesTo"],textrotationyout:["rotationY","textOutNodesTo"],textscaleout:["scale","textOutNodesTo"],textscalexout:["scaleX","textOutNodesTo"],textscaleyout:["scaleY","textOutNodesTo"],textskewxout:["skewX","textOutNodesTo"],textskewyout:["skewY","textOutNodesTo"],textcolorout:["color","textOutNodesTo"],texteaseout:["ease","textOutNodesTo"],texteasingout:["ease","textOutNodesTo"],texttransformoriginout:["transformOrigin","textOutShouldBeConverted"],textoffsetxout:["x","textOutShouldBeConverted"],textoffsetyout:["y","textOutShouldBeConverted"],textoverflowout:["overflow","textOutLayerStyle"],texttypeout:["type","textOut"],textshiftout:["shiftNodes","textOut"],textdelayout:["startAt","textOut"],textstartatout:["startAt","textOut"],textoutstartat:["startAt","textOut"],textdurationout:["duration","textOut"],texttransitionout:["enabled","textOut"],texttransformmirrorout:["mirror","textOut"],loopopacity:["opacity","loopToCSS"],looprotate:["rotation","loopToCSS"],looprotatex:["rotationX","loopToCSS"],looprotatey:["rotationY","loopToCSS"],looprotation:["rotation","loopToCSS"],looprotationx:["rotationX","loopToCSS"],looprotationy:["rotationY","loopToCSS"],loopscale:["scale","loopToCSS"],loopscalex:["scaleX","loopToCSS"],loopscaley:["scaleY","loopToCSS"],loopskewx:["skewX","loopToCSS"],loopskewy:["skewY","loopToCSS"],looptransformorigin:["transformOrigin","loopLayerShouldBeConverted"],loopoffsetx:["x","loopLayerShouldBeConverted"],loopoffsety:["y","loopLayerShouldBeConverted"],loopfilter:["filter","loopLayerShouldBeConverted"],loopclip:["clip","loopClipShouldBeConverted"],loopdelay:["startAt","loop"],loopstartat:["startAt","loop"],loopduration:["duration","loop"],loopcount:["count","loop"],looprepeatdelay:["repeatDelay","loop"],loopyoyo:["yoyo","loop"],loopease:["ease","loop"],loopeasing:["ease","loop"],loop:["enabled","loop"],hoveropacity:["opacity","hoverToCSS"],hoverrotate:["rotation","hoverToCSS"],hoverrotatex:["rotationX","hoverToCSS"],hoverrotatey:["rotationY","hoverToCSS"],hoverrotation:["rotation","hoverToCSS"],hoverrotationx:["rotationX","hoverToCSS"],hoverrotationy:["rotationY","hoverToCSS"],hoverscale:["scale","hoverToCSS"],hoverscalex:["scaleX","hoverToCSS"],hoverscaley:["scaleY","hoverToCSS"],hoverskewx:["skewX","hoverToCSS"],hoverskewy:["skewY","hoverToCSS"],hoverbgcolor:["backgroundColor","hoverToCSS"],hovercolor:["color","hoverToCSS"],hoverease:["easeIn","hover"],hovereasing:["easeIn","hover"],hovereasein:["easeIn","hover"],hovereasingin:["easeIn","hover"],hovereaseout:["easeOut","hover"],hovereasingout:["easeOut","hover"],hoverduration:["durationIn","hover"],hoverdurationin:["durationIn","hover"],hoverdurationout:["durationOut","hover"],hoveralwaysontop:["alwaysOnTop","hover"],hoveroffsetx:["x","hoverShouldBeConverted"],hoveroffsety:["y","hoverShouldBeConverted"],hoverfilter:["filter","hoverShouldBeConverted"],hoverborderradius:["borderRadius","hoverShouldBeConverted"],hoverradius:["borderRadius","hoverShouldBeConverted"],hovertransformorigin:["transformOrigin","hoverShouldBeConverted"],hover:["enabled","hover"],kenburnspan:["pan","kenBurns"],kenburnszoom:["zoom","kenBurns"],kenburnsrotation:["rotation","kenBurns"],kenburnsrotate:["rotation","kenBurns"],kenburnsscale:["scale","kenBurns"],parallaxlevel:["level","parallax"],parallaxtype:["type","parallax"],parallaxevent:["event","parallax"],parallaxpath:["path","parallax"],parallaxdirection:["direction","parallax"],parallaxduration:["duration","parallax"],parallaxcount:["count","parallax"],parallaxdelay:["startAt","parallax"],parallaxstartat:["startAt","parallax"],parallaxaxis:["axis","parallax"],parallaxtransformorigin:["transformOrigin","parallax"],parallaxdurationmove:["durationMove","parallax"],parallaxdurationleave:["durationLeave","parallax"],parallaxrotate:["rotation","parallax"],parallaxrotation:["rotation","parallax"],parallaxdistance:["distance","parallax"],parallax:["enabled","parallax"],scroll:["enabled","scroll"],scrollduration:["duration","scroll"],scrolldurationrev:["durationRev","scroll"],scrollease:["ease","scroll"],scrolleaserev:["easeRev","scroll"],scrollcenter:["center","scroll"],scrollopacity:["opacity","scroll"],scrollopacitymin:["opacitymin","scroll"],scrollopacitymax:["opacitymax","scroll"],scrollopacityyoyo:["opacityyoyo","scroll"],scrollopacityinvert:["opacityinvert","scroll"],scrollrotate:["rotation","scroll"],scrollrotatemin:["rotationmin","scroll"],scrollrotatemax:["rotationmax","scroll"],scrollrotateyoyo:["rotationyoyo","scroll"],scrollrotatex:["rotationX","scroll"],scrollrotatexmin:["rotationXmin","scroll"],scrollrotatexmax:["rotationXmax","scroll"],scrollrotatexyoyo:["rotationXyoyo","scroll"],scrollrotatey:["rotationY","scroll"],scrollrotateymin:["rotationYmin","scroll"],scrollrotateymax:["rotationYmax","scroll"],scrollrotateyyoyo:["rotationYyoyo","scroll"],scrollrotation:["rotation","scroll"],scrollrotationmin:["rotationmin","scroll"],scrollrotationmax:["rotationmax","scroll"],scrollrotationyoyo:["rotationyoyo","scroll"],scrollrotationx:["rotationX","scroll"],scrollrotationxmin:["rotationXmin","scroll"],scrollrotationxmax:["rotationXmax","scroll"],scrollrotationxyoyo:["rotationXyoyo","scroll"],scrollrotationy:["rotationY","scroll"],scrollrotationymin:["rotationYmin","scroll"],scrollrotationymax:["rotationYmax","scroll"],scrollrotationyyoyo:["rotationYyoyo","scroll"],scrollscalex:["scaleX","scroll"],scrollscalexmin:["scaleXmin","scroll"],scrollscalexmax:["scaleXmax","scroll"],scrollscalexyoyo:["scaleXyoyo","scroll"],scrollscaley:["scaleY","scroll"],scrollscaleymin:["scaleYmin","scroll"],scrollscaleymax:["scaleYmax","scroll"],scrollscaleyyoyo:["scaleYyoyo","scroll"],scrollskewx:["skewX","scroll"],scrollskewxmin:["skewXmin","scroll"],scrollskewxmax:["skewXmax","scroll"],scrollskewxyoyo:["skewXyoyo","scroll"],scrollskewy:["skewY","scroll"],scrollskewymin:["skewYmin","scroll"],scrollskewymax:["skewYmax","scroll"],scrollskewyyoyo:["skewYyoyo","scroll"],scrolloffsetx:["x","scroll"],scrolloffsetxmin:["xmin","scroll"],scrolloffsetxmax:["xmax","scroll"],scrolloffsetxyoyo:["xyoyo","scroll"],scrolloffsetxresponsive:["xresponsive","scroll"],scrolloffsety:["y","scroll"],scrolloffsetymin:["ymin","scroll"],scrolloffsetymax:["ymax","scroll"],scrolloffsetyyoyo:["yyoyo","scroll"],scrolloffsetyresponsive:["yresponsive","scroll"],scrolltransformorigin:["transformOrigin","scrollShouldBeConverted"],scrolltransformoriginalt:["transformOriginAlt","scrollShouldBeConverted"],scrollgetposition:["getPosition","scroll"],transformperspective:["layer","transformPerspective"],transformperspectivein:["layer","transformPerspective"],transformperspectiveout:["layer","transformPerspective"],texttransformperspective:["text","transformPerspective"],texttransformperspectivein:["text","transformPerspective"],texttransformperspectiveout:["text","transformPerspective"],looptransformperspective:["loop","transformPerspective"],hovertransformperspective:["hover","transformPerspective"],parallaxtransformperspective:["parallax","transformPerspective"],scrolltransformperspective:["scroll","transformPerspective"]}}},ie(window).on("resize.lsGlobal",function(){window._lsData.documentIsAccessible&&(window._lsData.document={width:document.body.scrollWidth,height:document.body.scrollHeight},window._lsData.viewport={lastWidth:window._lsData.viewport.width||0,lastHeight:window._lsData.viewport.height||0,width:ie(window).width(),height:ie(window).height()},ie(window).trigger("scroll.lsGlobal"),window._lsData.resize.timeout&&clearTimeout(window._lsData.resize.timeout),window._lsData.resize.once?window._lsData.resize.once=!1:window._lsData.resize.timeout=setTimeout(function(){window._lsData.resize.once=!0,ie(window).trigger("resize.lsGlobal")},100))}),ie(window).on("scroll.lsGlobal",function(){window._lsData.documentIsAccessible&&(window._lsData.scroll.left=window.pageXOffset,window._lsData.scroll.top=window.pageYOffset,window._lsData.scroll.leftMax=window._lsData.document.width-window._lsData.viewport.width,window._lsData.scroll.topMax=window._lsData.document.height-window._lsData.viewport.height)}),ie(document).on("wheel.lsGlobal ",function(e){0!==Math.abs(e.originalEvent.deltaY)&&(window._lsData.scroll.direction=e.originalEvent.deltaY<0?"up":"down")}),ie(document).on("touchstart.lsGlobal ",function(e){window._lsData.ts=e.originalEvent.touches[0].clientY}),ie(document).on("touchend.lsGlobal ",function(e){e=e.originalEvent.changedTouches[0].clientY;window._lsData.ts>e+5?window._lsData.scroll.direction="down":window._lsData.ts<e-5&&(window._lsData.scroll.direction="up")}),ie.fn.layerSlider=function(i,s,a,r){window._lsData.documentIsAccessible=!0,i=i||{};var t,e="1.8.0",o=ie.fn.jquery;if(window._layerSlider.checkVersions(e,o,e))return(typeof i).match("object|undefined")?this.each(function(e){t="LS"+Math.random().toString(36).substr(2,9),ie(this).data("lsSliderUID")||(window._layerSliders[t]=new n(this,ie(this),i,t))}):"data"===i?window._layerSliders[this.data("lsSliderUID")]:"eventData"===i?window._layerSliders[this.data("lsSliderUID")].api.eventData():"defaultInitOptions"===i?window._layerSliders[this.data("lsSliderUID")].defaults.init.options||!1:"userInitOptions"===i?window._layerSliders[this.data("lsSliderUID")].userInitOptions||!1:"sliderInitOptions"===i?window._layerSliders[this.data("lsSliderUID")].o||!1:"originalMarkup"===i?window._layerSliders[this.data("lsSliderUID")].originalMarkup||!1:this.each(function(e){var t=window._layerSliders[ie(this).data("lsSliderUID")];t&&t.api.methods(i,s,a,r),t=null});window._layerSlider.showNotice(this,"oldjquery",o,e)};var n=function(I,$,i,B){$.data("lsSliderUID",B).attr("data-layerslider-uid",B);var J=this,ee=J.gsap=window._layerSlider.GSAP||window,M=ie(window),te=window._lsData;J.defaults={init:{staggerSplitChar:"|",rangeSplitChar:"..",randomSplitChar:"|",openingBracket:"[",closingBracket:"]",dataKey:"_LS",controls:["#playmedia","#pausemedia","#unmute","#unmutemedia","#start","#stop","#prev","#next","#replay","#reverse","#reverse-replay","#reversereplay"],options:{silentMode:!1,getData:!1,destroyAfter:!0,type:"responsive",fullSizeMode:"normal",fitScreenWidth:!0,calculateOffsetFrom:!1,preventSliderClip:!0,allowFullscreen:!1,performanceMode:!0,performanceModeThreshold:"20sh",responsiveUnder:-1,layersContainerWidth:-1,layersContainerHeight:-1,maxRatio:-1,insertMethod:"prependTo",insertSelector:null,clipSlideTransition:!1,slideBGSize:"cover",slideBGPosition:"50% 50%",preferBlendMode:!1,scene:!1,sceneHeight:2,sceneSpeed:100,sceneDuration:null,smoothScrollDuration:1e3,stickTo:"center",autoStart:!0,startInViewport:!0,playByScroll:!1,playByScrollSpeed:1,playByScrollStart:!1,playByScrollSkipSlideBreaks:!1,pauseOnHover:!1,pauseLayers:!1,firstSlide:1,sliderFadeInDuration:0,animateFirstSlide:!1,firstSlideDuration:!1,firstSlideTimeShift:!1,cycles:-1,forceCycles:!0,twoWaySlideshow:!1,shuffleSlideshow:!1,forceLayersOutDuration:750,slideDuration:!1,slideDurationWithoutLayers:3e3,slideTransitionDuration:!1,slideTimeShift:0,skin:"v6",skinsPath:"/layerslider/skins/",globalBGColor:"transparent",globalBGImage:!1,globalBGRepeat:"no-repeat",globalBGAttachment:"scroll",globalBGSize:"auto",globalBGPosition:"50% 50%",marginTop:!1,marginBottom:!1,navPrevNext:!0,navStartStop:!0,navButtons:!0,keybNav:!0,touchNav:!0,hoverPrevNext:!0,hoverBottomNav:!1,showBarTimer:!1,showCircleTimer:!0,showSlideBarTimer:!1,thumbnailNavigation:"hover",tnFillMode:"contain",tnContainerWidth:"60%",tnWidth:100,tnHeight:60,tnActiveOpacity:35,tnInactiveOpacity:100,scrollModifier:0,autoPlayVideos:!0,autoPauseSlideshow:"auto",youtubePreview:"maxresdefault.jpg",rememberUnmuteState:!0,parallaxCenterDegree:40,parallaxSensitivity:10,parallaxCenterLayers:"center",parallaxScrollReverse:!1,scrollCenterLayers:"center",yourLogo:!1,yourLogoStyle:"left: -10px; top: -10px;",yourLogoLink:!1,yourLogoTarget:"_self",optimizeForMobile:!0,hideOnMobile:!1,hideUnder:-1,hideOver:-1,slideOnSwipe:!0,allowRestartOnResize:!1,fixFloatedContainers:!1,useSrcset:!0,hashChange:!1,refreshWaypoint:!0,staticImage:""}},slider:{errorText:"LayerSlider (UID: "+B+") error:"},slide:{keys:window._lsData.slide.keys,options:{$link:!1,index:-1,data:{duration:-1,timeShift:0,calculatedTimeShift:0},parallax:{},kenBurns:{scale:1.2},filter:{}},registerPluginDefaults:function(e,t,i){J.defaults.slide.options.plugins||(J.defaults.slide.options.plugins={}),J.defaults.slide.options.plugins[e]=t}},layer:{keys:window._lsData.layer.keys,splitTypeKeys:["chars_asc","chars_desc","chars_rand","chars_center","chars_edge","words_asc","words_desc","words_rand","words_center","words_edge","lines_asc","lines_desc","lines_rand","lines_center","lines_edge"],timelineHierarchy:{slidestart:[0],transitioninstart:[1],transitioninend:[2],textinstart:[3,[1,2,6,7,8]],textinend:[4],allinend:[5],loopstart:[6,[1,2,3,4,5]],loopend:[7],autoparallaxstart:[6.5,[0,1,2,3,4,5,6,7]],autoparallaxend:[7.5],transitioninandloopend:[8],textinandloopend:[9],allinandloopend:[10],textoutstart:[11,[2,3,4,5,6,7,8,9,10]],textoutend:[12],textoutandloopend:[13],transitionoutstart:[14,[2,3,4,5,6,7,8,9,10,11,12,13]],transitionoutend:[15],alloutend:[16],alloutandloopend:[17]},properties:{filter:function(){return{blur:0,brightness:100,contrast:100,grayscale:0,"hue-rotate":0,invert:0,saturate:100,sepia:0}}},options:function(e,t){t={is:{slideBackground:!!e.is("img.ls-bg"),backgroundVideo:!!e.is(".ls-bg-video"),imageLayer:!!e.is("img.ls-layer"),layerGroup:!!e.is(".ls-layer-group"),insideLayerGroup:!!e.data("$layerGroup"),mediaLayer:!1,textLayer:!1,responsive:!0,onSlide:t},should:{},elements:{},settings:{position:"relative",slideIn:t,slideOut:t},styleSettings:{minfontsize:0,minmobilefontsize:0},mediaSettings:{backgroundVideo:!1},timeline:{slidestart:0,transitioninstart:0,transitioninend:0,textinstart:0,textinend:0,allinend:function(e){return Math.max(this.transitioninend,this.textinend)},loopstart:0,loopend:0,transitioninandloopend:function(e){return 0===this.loopend&&e.loop.enabled&&("number"==typeof e.loop.startAt||-1!==e.loop.startAt.indexOf("textinstart")&&-1!==e.loop.startAt.indexOf("textinend")&&-1!==e.loop.startAt.indexOf("allinend"))?(this.loopstart=J.transitions.layers.timeline.getTiming(e,e.loop.startAt,"loopstart"),this.loopend=-1!==e.loop.count&&e.timeline.loopstart+(e.loop.repeat+1)*e.loop.duration+e.loop.repeat*e.loop.repeatDelay):J.debugMode&&J.debug.add("warn","layerTransition.infinite",e.self[0].tagName+"."+e.self.attr("class")+" [ "+e.self.html().substr(0,30)+"... ]"),Math.max(this.transitioninend,this.loopend)},textinandloopend:function(e){return Math.max(this.textinend,this.loopend)},allinandloopend:function(e){return Math.max(this.allinend(),this.loopend)},textoutstart:0,textoutend:0,textoutandloopend:function(e){return Math.max(this.textoutend,this.loopend)},transitionoutstart:function(e){return Math.max(this.allinandloopend(),this.textoutend)},transitionoutend:0,alloutend:function(e){return Math.max(this.transitionoutend,this.textoutend,this.allinend())},alloutandloopend:function(e){return Math.max(this.transitionoutend,this.textoutandloopend(),this.allinend())},staticfrom:!1,staticto:!1},transitionProperties:{in:{enabled:!0,layerFrom:{autoCSS:!1,immediateRender:!1,css:{opacity:0}},layerTo:{autoCSS:!1,onStart:function(){J.transitions.layers.in.onStart(e)},onComplete:function(){J.transitions.layers.in.onComplete(e)},css:{display:"block",opacity:1,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,x:0,y:0}},layerStyleFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerStyleTo:{autoCSS:!1,css:{}},clipFrom:{autoCSS:!1,immediateRender:!1,css:{}},clipTo:{autoCSS:!1,css:{}},layerShouldBeConverted:{transformOrigin:"50% 50% 0",x:0,y:0},layerStyleShouldBeConvertedFrom:{},layerStyleShouldBeConvertedTo:{},clipShouldBeConverted:{},startAt:0,duration:1,ease:"easeInOutQuint"},textIn:{enabled:null,nodesFrom:{cycle:{},random:{},opacity:0},nodesTo:{ease:"easeInOutQuint",css:{opacity:1,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,x:0,y:0},onStart:function(){J.layers.set.dataAttribute("add",e,"text-animating-in")},onComplete:function(){J.layers.set.dataAttribute("remove",e,"text-animating-in"),J.layers.set.dataAttribute("add",e,"active")}},shouldBeConverted:{cycle:{},random:{},transformOrigin:"50% 50% 0",x:0,y:0},layerStyle:{},split:"",shiftNodes:.05,startAt:"transitioninend",duration:1},out:{enabled:!0,layerFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerTo:{autoCSS:!1,onStart:function(){J.transitions.layers.out.onStart(e)},onComplete:function(){J.transitions.layers.out.onComplete(e)},css:{opacity:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0}},layerStyleFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerStyleTo:{autoCSS:!1,css:{}},clipFrom:{autoCSS:!1,immediateRender:!1,css:{}},clipTo:{autoCSS:!1,css:{}},layerShouldBeConverted:{x:0,y:0},layerStyleShouldBeConvertedFrom:{},layerStyleShouldBeConvertedTo:{},clipShouldBeConverted:{},startAt:"slidechangeonly",duration:1,ease:"easeInOutQuint"},textOut:{enabled:null,nodesFrom:{immediateRender:!1,cycle:{},opacity:1},nodesTo:{ease:"easeInOutQuint",immediateRender:!1,cycle:{},random:{},opacity:0,onStart:function(){J.layers.set.dataAttribute("add",e,"text-animating-out")},onComplete:function(){J.layers.set.dataAttribute("remove",e,"text-animating-out"),J.layers.set.dataAttribute("add",e,"hidden")}},layerStyle:{},shouldBeConverted:{cycle:{},random:{},x:0,y:0},split:"",startAt:"allinandloopend",shiftNodes:.05,duration:1},loop:{enabled:null,from:{autoCSS:!1,immediateRender:!1,css:{}},to:{autoCSS:!1,css:{}},clipTo:{autoCSS:!1,immediateRender:!1,css:{}},layerShouldBeConverted:{transformOrigin:"50% 50% 0",x:0,y:0},clipShouldBeConverted:{},ease:"linear",startAt:"allinend",repeatDelay:0,duration:1,count:0,yoyo:!1},hover:{enabled:null,from:{autoCSS:!1,immediateRender:!1,css:{}},to:{autoCSS:!1,css:{}},shouldBeConverted:{transformOrigin:"50% 50% 0"},alwaysOnTop:!0,easeIn:"easeInOutQuint",durationIn:.5},parallax:{enabled:null},scroll:{enabled:null,shouldBeConverted:{transformOrigin:"50% 50% 0"},xresponsive:!0,yresponsive:!0},kenBurns:{scale:1.2},clip:{enabled:!1,min:"0 0 0 0",max:"-9999 9999 9999 -9999"},filter:{values:{style:{},in:{},out:{},loop:{},hover:{},afterIn:{},afterLoop:{},bgFrom:{},bgTo:{}},transitions:{bg:null,in:null,out:null,loop:null,hover:null}},init:{wrapper:{autoCSS:!1,immediateRender:!1,css:{display:"block"}}},transformPerspective:{layer:500,text:500,loop:500,hover:500},reset:{wrapperOnTimelineEnd:{autoCSS:!1,css:{opacity:1,display:"none"}},wrapperOnSlideChange:{autoCSS:!1,css:{x:0,y:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,opacity:1,display:"none"}},loopWrapperOnSlideChange:{autoCSS:!1,css:{x:0,y:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,opacity:1}}}}};return{is:t.is,should:t.should,elements:t.elements,settings:t.settings,styleSettings:t.styleSettings,mediaSettings:t.mediaSettings,mediaProperties:t.mediaProperties,timeline:t.timeline,in:t.transitionProperties.in,inLayerFrom:t.transitionProperties.in.layerFrom,inLayerFromCSS:t.transitionProperties.in.layerFrom.css,inLayerStyleFrom:t.transitionProperties.in.layerStyleFrom,inLayerStyleFromCSS:t.transitionProperties.in.layerStyleFrom.css,inClipFrom:t.transitionProperties.in.clipFrom,inClipFromCSS:t.transitionProperties.in.clipFrom.css,inLayerTo:t.transitionProperties.in.layerTo,inLayerToCSS:t.transitionProperties.in.layerTo.css,inLayerStyleTo:t.transitionProperties.in.layerStyleTo,inLayerStyleToCSS:t.transitionProperties.in.layerStyleTo.css,inClipTo:t.transitionProperties.in.clipTo,inClipToCSS:t.transitionProperties.in.clipTo.css,inClipShouldBeConverted:t.transitionProperties.in.clipShouldBeConverted,inLayerShouldBeConverted:t.transitionProperties.in.layerShouldBeConverted,inLayerStyleShouldBeConvertedFrom:t.transitionProperties.in.layerStyleShouldBeConvertedFrom,inLayerStyleShouldBeConvertedTo:t.transitionProperties.in.layerStyleShouldBeConvertedTo,textIn:t.transitionProperties.textIn,textInLayerStyle:t.transitionProperties.textIn.layerStyle,textInNodesFrom:t.transitionProperties.textIn.nodesFrom,textInNodesTo:t.transitionProperties.textIn.nodesTo,textInNodesToCSS:t.transitionProperties.textIn.nodesTo.css,textInShouldBeConverted:t.transitionProperties.textIn.shouldBeConverted,out:t.transitionProperties.out,outLayerFrom:t.transitionProperties.out.layerFrom,outLayerFromCSS:t.transitionProperties.out.layerFrom.css,outLayerStyleFrom:t.transitionProperties.out.layerStyleFrom,outLayerStyleFromCSS:t.transitionProperties.out.layerStyleFrom.css,outLayerTo:t.transitionProperties.out.layerTo,outLayerToCSS:t.transitionProperties.out.layerTo.css,outLayerStyleTo:t.transitionProperties.out.layerStyleTo,outLayerStyleToCSS:t.transitionProperties.out.layerStyleTo.css,outClipTo:t.transitionProperties.out.clipTo,outClipToCSS:t.transitionProperties.out.clipTo.css,outClipShouldBeConverted:t.transitionProperties.out.clipShouldBeConverted,outLayerShouldBeConverted:t.transitionProperties.out.layerShouldBeConverted,outLayerStyleShouldBeConvertedFrom:t.transitionProperties.out.layerStyleShouldBeConvertedFrom,outLayerStyleShouldBeConvertedTo:t.transitionProperties.out.layerStyleShouldBeConvertedTo,textOut:t.transitionProperties.textOut,textOutLayerStyle:t.transitionProperties.textOut.layerStyle,textOutNodesFrom:t.transitionProperties.textOut.nodesFrom,textOutNodesTo:t.transitionProperties.textOut.nodesTo,textOutShouldBeConverted:t.transitionProperties.textOut.shouldBeConverted,loop:t.transitionProperties.loop,loopFrom:t.transitionProperties.loop.from,loopFromCSS:t.transitionProperties.loop.from.css,loopTo:t.transitionProperties.loop.to,loopToCSS:t.transitionProperties.loop.to.css,loopClipTo:t.transitionProperties.loop.clipTo,loopClipToCSS:t.transitionProperties.loop.clipTo.css,loopClipShouldBeConverted:t.transitionProperties.loop.clipShouldBeConverted,loopLayerShouldBeConverted:t.transitionProperties.loop.layerShouldBeConverted,hover:t.transitionProperties.hover,hoverFrom:t.transitionProperties.hover.from,hoverFromCSS:t.transitionProperties.hover.from.css,hoverTo:t.transitionProperties.hover.to,hoverToCSS:t.transitionProperties.hover.to.css,hoverShouldBeConverted:t.transitionProperties.hover.shouldBeConverted,parallax:t.transitionProperties.parallax,scroll:t.transitionProperties.scroll,scrollShouldBeConverted:t.transitionProperties.scroll.shouldBeConverted,kenBurns:t.transitionProperties.kenBurns,clip:t.transitionProperties.clip,filter:t.transitionProperties.filter,transformPerspective:t.transitionProperties.transformPerspective,init:t.transitionProperties.init,reset:t.transitionProperties.reset}}}},J.slides={count:0,first:{},last:{},prev:{},current:{},next:{},init:function(){if(!document.body.contains(I))return!1;for(var e=$.find("> .ls-layer, > .ls-slide"),t=0,i=J.defaults.slide.keys,s=0,a=e.length;s<a;s++){var r=ie(e[s]),o=r[0].style,n=ie.extend(!0,{},J.defaults.slide.options),l=!1;if(J.slides.count++,r.removeClass("ls-layer").addClass("ls-slide").css({width:J.slider.initial.originalWidth,height:J.slider.initial.originalHeight}).appendTo(J.slider.$hiddenWrapper),r.data("ls"))for(var d=r.data("ls").split(";"),c=0;c<d.length;c++){var p,u,h=d[c].split(":");h[0]=ie.trim(h[0].toLowerCase()),h[1]=ie.trim(h[1]),-1==["thumbnail"].indexOf(h[0])&&(h[1]=h[1].toLowerCase()),""!==h[0]&&(void 0!==i[h[0]]?(p=void 0===i[h[0]][1]?h[0]:i[h[0]][1],u=J.functions.convert.properties(h[1]),-1===p.toLowerCase().indexOf("duration")&&-1===p.toLowerCase().indexOf("delay")&&"timeShift"!=p||(u/=1e3),n[i[h[0]][0]]||(n[i[h[0]][0]]={}),n[i[h[0]][0]][p]=u):n.data[h[0]]=h[1])}if(n.plugins&&!ie.isEmptyObject(n.plugins))for(var m in n.plugins)if(r.data("ls-plugin-"+m)){var f,g=r.data("ls-plugin-"+m).toLowerCase().split(";"),y={};for(f in n.plugins[m])y[f.toLowerCase()]=f;for(var v=0;v<g.length;v++){var w,b=g[v].split(":");b[0]=ie.trim(b[0]),""!==b[0]&&(w=J.functions.convert.properties(ie.trim(b[1])),-1===b[0].indexOf("duration")&&-1===b[0].indexOf("delay")||(w/=1e3),y[b[0]]?n.plugins[m][y[b[0]]]=w:n.plugins[m][b[0]]=w)}}else delete n.plugins[m];r.children("a.ls-link").length&&(n.data.$link=r.children("a.ls-link").first().css({zIndex:5}).attr("data-ls-slide-link",t+1).appendTo(J.slider.$layersWrapper),J.layers.set.smartLinks(n.data.$link)),n.data.$backgroundVideo=r.children('[data-ls*="backgroundvideo"]').first(),n.data.$backgroundVideo.find("iframe, video, audio").length||(n.data.$backgroundVideo=ie()),n.data.$backgroundVideo.length&&(null!==n.data.$backgroundVideo.attr("data-ls").split("backgroundvideo")[1].split(";")[0].match(/(true|enabled|on|1)/i)?(n.data.$backgroundVideo.addClass("ls-bg-video").css({width:"auto",height:"auto"}).children("video, audio, iframe").css({width:"100%",height:"100%"}),n.data.$backgroundVideo.append(ie('<div class="ls-bg-video-overlay"></div>'))):n.data.$backgroundVideo=!1);for(var S=r.find("picture"),v=0,x=S.length;v<x;v++)J.layers.set.pictureElement(ie(S[v]));r.find("> .ls-bg").length&&(n.data.$background=r.find("> .ls-bg").first()),n.data.thumbnail||(r.find("> .ls-tn").length?l=r.find("> .ls-tn").first():r.find("> .ls-bg").length&&(l=r.find("> .ls-bg").first()),l?(n.data.thumbnail=J.functions.getURL(l),n.data.tnAlt=J.functions.getALT(l)):n.data.thumbnail=J.o.skinsPath+J.o.skin+"/nothumb.png"),(n.data.customtransition2d||n.data.customtransition3d)&&"undefined"==typeof layerSliderCustomTransitions&&(delete n.data.customtransition2d,delete n.data.customtransition3d,J.debugMode&&J.debug.add("warn","sliderInit.customTransitions",t+1)),"visible"===o.overflow&&(n.data.overflow="visible"),n.data.backgroundColor?n.data.$background||n.data.$backgroundVideo&&n.data.$backgroundVideo.length||(n.data.$background=ie("<img>").addClass("ls-bg").attr("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==").appendTo(r)):n.data.backgroundColor=""===r[0].style.backgroundColor?"transparent":r[0].style.backgroundColor,J.slides[++t]={},J.slides[t].data=ie.extend(!0,{},J.defaults.slide.options.data,n.data),J.slides[t].parallax=n.parallax,J.slides[t].scroll=n.scroll,J.slides[t].kenBurns=n.kenBurns,J.slides[t].filter=n.filter,J.slides[t].index=t,J.slides[t].$layers=ie(),J.slides[t].plugins=n.plugins,J.slider.thumbnails.push(n.data.thumbnail),J.layers.init(r,t)}J.debugMode&&J.debug.groupEnd("sliderInit.style")},set:{slideIndexes:function(){var e=J.slides;e.prev.index=e.current.index,e.current.index=e.next.index,e.next.index=J.slideshow.get.slideInSequence(J.slideshow.direction),e.set.slidesData(),J.slider.set.attributes()},nextSlideIndex:function(e){var t=J.slides;t.next.index=e,t.set.slidesData()},slidesData:function(){var e=J.slides;e.prev=-1!==e.prev.index?ie.extend(!0,{},e[e.prev.index]):{},e.current=-1!==e.current.index?ie.extend(!0,{},e[e.current.index]):{},e.next=-1!==e.next.index?ie.extend(!0,{},e[e.next.index]):{}},firstSlide:function(){var e,t=J.slides;t.first.index="random"===J.o.firstSlide?J.o.firstSlide:Math.max(J.functions.convert.properties(J.o.firstSlide,!0),1),J.o.shuffleSlideshow&&2<J.slides.count?J.o.twoWaySlideshow=!1:J.o.shuffleSlideshow=!1,t.first.index="random"==t.first.index?Math.floor(Math.random()*J.slides.count+1):t.first.index,!document.location.hash||(e=J.slides.deeplink(document.location.hash,!0))&&(J.slides.first.index=e),t.first.index=t.first.index<1||t.first.index>J.slides.count?1:t.first.index,J.o.shuffleSlideshow&&"random"!=J.o.firstSlide&&(t.first.index=J.o.firstSlide),t[t.first.index]&&t[t.first.index].data&&(t.first.data=ie.extend(!0,{},t[t.first.index].data)),J.o.playByScroll&&J.slideshow.set.normalizedSequence(),J.debugMode&&J.debug.options.firstSlide&&(t.first.index=J.debug.options.firstSlide)},actions:function(e,t){}},get:{deeplink:function(e){return e&&J.slides[e]&&J.slides[e].data&&J.slides[e].data.deeplink?J.slides[e].data.deeplink:null}},deeplink:function(e,t){for(var i=!1,s=1;s<J.slides.count+1;s++)if(J.slides[s].data.deeplink==e.substring(1)){if(i=s,t)return i;J.slideshow.changeTo(i,!0,!0)}if(!i&&t)return!1},slide:[]},J.layers={$all:ie(),getStyle:function(e,t){return-1!=e.indexOf("em")?e:(-1!=e.indexOf("%")?parseFloat(e)*t:parseFloat(e)||0).toString()},toNum:function(e,t){return t=parseFloat(t),-1!=e.indexOf("em")?parseFloat(e)*t:parseFloat(e)},init:function(e,t){if(!document.body.contains(I))return!1;for(var i,s=e.find(".ls-bg, .ls-l, .ls-layer, .ls-lg, .ls-layer-group"),a=0,r=s.length;a<r;a++){var o=ie(s[a]),n=o[0],l=o.children();if(o.data("slideIndex",t),o.hasClass("ls-l"))o.removeClass("ls-l").addClass("ls-layer");else if(o.hasClass("ls-lg"))o.removeClass("ls-lg").addClass("ls-layer-group");else if(!o.is(".ls-bg, .ls-layer, .ls-layer-group")){o.remove();continue}o.is("a")&&1===l.length&&((n=(o=o.children().first())[0]).setAttribute("data-ls",n.parentNode.getAttribute("data-ls")),n.parentNode.removeAttribute("data-ls"),o.parent().removeClass("ls-layer"),o.addClass("ls-layer")),o.is(".ls-layer-group")&&o.children().data("$layerGroup",o),o.data(J.defaults.init.dataKey,new J.defaults.layer.options(o,t)),-1!==o.attr("class").indexOf("ls-linkto-")&&this.set.linkTo(o),o.parent().is("a")?(o.parent().data("slideIndex")&&o.data("slideIndex",o.parent().data("slideIndex")),i=o.parent(),this.set.smartLinks(i)):i=o,i.attr("data-ls-actions")&&this.set.actions(i,JSON.parse(i.attr("data-ls-actions"))||{}),J.slides[t].$layers=J.slides[t].$layers.add(i)}},set:{mirrorTransitions:function(e){return e=e.split(" ")},pictureElement:function(e){var t=e.find("source").last().attr("srcset").split(" ")[0]||"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",i=e.find("img"),s=i.length?i:ie("<img>").attr("src",t),a=s[0],r=(e.attr("ls-data")||s.attr("ls-data"),e.attr("style")||!1),i=a.currentSrc||a.src,o=i.split(".").pop(),t=(i.indexOf("webp"),s.attr("data-src")?"data-":""),a="";e.hasClass("ls-bg")?a="ls-bg":e.hasClass("ls-tn")?a="ls-tn":(e.hasClass("ls-l")||e.hasClass("ls-layer"))&&(a="ls-layer");for(var n,l,d,c=e.find("source"),p=0;p<c.length&&(n=c[p],l=(n=ie(n)).attr("srcset"),d=n.attr("sizes"),l.split(" ")[0].split(".").pop()!=o);p++);s.removeAttr("width height sizes src srcset data-src data-srcset loading"),s.addClass(a).attr(t+"src",i).attr(t+"srcset",l).attr("sizes",d),r&&s.attr("style",r),s.insertAfter(e),e.remove()},actions:function(s,e){e.length;ie.each(e,function(e,t){var i=ie.extend(!0,{},t),t=i.trigger;s.on(t,function(e){setTimeout(function(e){J.actions.do(e)},i.delay||0,i)})})},smartLinks:function(e){var s=e.attr("href"),t=e.attr("target"),i="";if(t&&-1!==t.indexOf("ls-scroll")){switch(s){case"pagetop":i="Scroll to page top";break;case"pagebottom":i="Scroll to page bottom";break;case"slidertop":i="Scroll to the top of the slider";break;case"":case"sliderbottom":i="Scroll to the bottom of the slider";break;default:i="Scroll to a specified location on the page"}J.layers.set.ariaLabel(e,i),e.on("click."+B,function(e){e.preventDefault();var t,i=document.body.scrollHeight-te.viewport.height;if(s)switch(s){case"pagetop":t=0;break;case"pagebottom":t=i;break;case"slidertop":t=J.slider.offset.top;break;case"":case"sliderbottom":t=J.slider.offset.top+J.slider.height;break;default:t=ie(s).filter(":visible").last().length?ie(s).filter(":visible").last().offset().top:J.slider.offset.top+J.slider.height}t+=J.o.scrollModifier,t=Math.min(t,i),t=Math.max(0,t),ee.TweenMax.to("html, body",1,{scrollTop:t,ease:ee.Quint.easeInOut})})}if(-1!==J.defaults.init.controls.indexOf(s.toLowerCase())||s.match(/^\#[0-9]/)){var a=ie.trim(s.toLowerCase().split("#")[1]),r=parseInt(a);switch(a){case"playmedia":i="play active media elements on current slide";break;case"pausemedia":i="pause active media elements on current slide";break;case"prev":i="jump to the previous slide";break;case"next":i="jump to the next slide";break;case"start":i="start slideshow";break;case"stop":i="stop slideshow";break;case"replay":i="replay slide";break;case"reverse":i="reverse slide";break;case"reverse-replay":case"reversereplay":i="reverse, than replay slide";break;default:"number"==typeof r&&r==r&&(i="jump to slide "+r)}J.layers.set.ariaLabel(e,i),e.on("click."+B,function(e){if(e.preventDefault(),-1!==["prev","next","last","first","start","stop"].indexOf(a))J.navigation[a]("clicked");else if("number"==typeof r&&r==r)J.slideshow.changeTo(r,!0,!0);else if(!J.slider.state.changingSlides)switch(a){case"replay":J.api.methods("replay");break;case"reverse":J.api.methods("reverse");break;case"reverse-replay":case"reversereplay":J.api.methods("reverse",!0);break;case"playmedia":J.media.functions.playActiveMedia();break;case"pausemedia":J.media.functions.pauseActiveMedia();break;case"unmute":case"unmutemedia":J.media.unmute.multipleMediaElements()}})}},ariaLabel:function(e,t){e.attr("aria-label")||e.attr("aria-label",t)},linkTo:function(e){for(var t=e.attr("class").split(" "),i=1,s=0;s<t.length;s++)-1!=t[s].indexOf("ls-linkto-")&&(i=parseInt(t[s].split("ls-linkto-")[1]));e.data(J.defaults.init.dataKey).settings.linkedToSlide=i,e.css({cursor:"pointer"}).on("click."+B,function(e){e.preventDefault(),$.layerSlider(ie(this).data(J.defaults.init.dataKey).settings.linkedToSlide)})},wrappers:function(e,t,i){t.is.slideBackground||t.is.backgroundVideo?(t.elements.$bgWrapper=e.closest(".ls-bg-wrap"),t.elements.$bgOuterWrapper=e.closest(".ls-bg-outer")):(t.elements.$wrapper=e.closest(".ls-in-out"),t.elements.$wrapper.data(J.defaults.init.dataKey,{}),t.settings.wrapperData=t.elements.$wrapper.data(J.defaults.init.dataKey),t.elements.$clipWrapper=e.closest(".ls-clip"),t.elements.$clipWrapper.data(J.defaults.init.dataKey,{}),t.settings.clipWrapperData=t.elements.$clipWrapper.data(J.defaults.init.dataKey),t.elements.$loopWrapper=e.closest(".ls-loop"),t.elements.$loopWrapper.data(J.defaults.init.dataKey,{}),t.settings.loopWrapperData=t.elements.$loopWrapper.data(J.defaults.init.dataKey)),t.parallax.enabled&&(t.elements.$parallaxWrapper=e.closest(".ls-parallax"),t.elements.$parallaxWrapper.data(J.defaults.init.dataKey,{parallax:{}}),t.settings.parallaxWrapperData=t.elements.$parallaxWrapper.data(J.defaults.init.dataKey),J.transitions.layers.parallax.addLayer(t.elements.$parallaxWrapper,t.settings.parallaxWrapperData.parallax,t,i)),t.scroll.enabled&&(t.elements.$scrollWrapper=e.closest(".ls-scroll"),t.elements.$scrollTransformWrapper=e.closest(".ls-scroll-transform"),t.elements.$scrollWrapper.data(J.defaults.init.dataKey,{scroll:{}}),t.settings.scrollWrapperData=t.elements.$scrollWrapper.data(J.defaults.init.dataKey),J.transitions.layers.scroll.addLayer(t.elements.$scrollWrapper,t.settings.scrollWrapperData.scroll,t,i)),t.hover.enabled&&!J.slides[i].data.globalhover&&J.transitions.layers.hover.set(e,t),t.elements.$outerWrapper=e.closest(".ls-z"),t.elements.$outerStyleWrapper=t.elements.$outerWrapper.find("> .ls-wrapper"),t.elements.$outerWrapper.attr("data-slide-index",i),t.elements.$innerWrapper=e.closest(".ls-wrapper").addClass("ls-inner-wrapper"),t.elements.$_innerWrappers=t.elements.$outerWrapper.find(".ls-wrapper"),t.elements.$_allWrappers=t.elements.$outerWrapper.add(t.elements.$_innerWrappers),t.elements.$_outerWrappers=t.elements.$outerWrapper.add(t.elements.$outerWrapper.find(".ls-wrapper:not(.ls-inner-wrapper)"))},singleLayer:function(e,t){J.layers.set.style(e),J.layers.set.properties(e,t),J.layers.set.dataAttribute("add",e,"hidden"),e.data("hasBeenSet",!0)},style:function(e){var t,i,s,a,r,o,n,l,d,c,p,u=e[0],h=e.data(J.defaults.init.dataKey),m=u.style,f=J.layers,g=0,y=0,v=!1,w=parseFloat(u.style.fontSize)||36,b=u.getBoundingClientRect(),S=!e.is("img")&&window.LS_previewZoom||1,x=""!==m.paddingLeft?f.getStyle(m.paddingLeft,J.slider.initial.percW):f.getStyle(e.css("padding-left"),J.slider.initial.percW),T=""!==m.paddingRight?f.getStyle(m.paddingRight,J.slider.initial.percW):f.getStyle(e.css("padding-right"),J.slider.initial.percW),k=""!==m.paddingTop?f.getStyle(m.paddingTop,J.slider.initial.percH):f.getStyle(e.css("padding-top"),J.slider.initial.percH),C=""!==m.paddingBottom?f.getStyle(m.paddingBottom,J.slider.initial.percH):f.getStyle(e.css("padding-bottom"),J.slider.initial.percH),O=""!==m.marginLeft?f.getStyle(m.marginLeft,J.slider.initial.percW):f.getStyle(e.css("margin-left"),J.slider.initial.percW),P=""!==m.marginRight?f.getStyle(m.marginRight,J.slider.initial.percW):f.getStyle(e.css("margin-right"),J.slider.initial.percW),L=""!==m.marginTop?f.getStyle(m.marginTop,J.slider.initial.percH):f.getStyle(e.css("margin-top"),J.slider.initial.percH),I=""!==m.marginBottom?f.getStyle(m.marginBottom,J.slider.initial.percH):f.getStyle(e.css("margin-bottom"),J.slider.initial.percH);u.style.margin="0",r=""!==m.borderLeftWidth?f.getStyle(m.borderLeftWidth,J.slider.initial.percW):f.getStyle(e.css("border-left-width"),J.slider.initial.percW),n=""!==m.borderRightWidth?f.getStyle(m.borderRightWidth,J.slider.initial.percW):f.getStyle(e.css("border-right-width"),J.slider.initial.percW),o=""!==m.borderTopWidth?f.getStyle(m.borderTopWidth,J.slider.initial.percH):f.getStyle(e.css("border-top-width"),J.slider.initial.percH),l=""!==m.borderBottomWidth?f.getStyle(m.borderBottomWidth,J.slider.initial.percH):f.getStyle(e.css("border-bottom-width"),J.slider.initial.percH),1!==J.media.properties.$allMediaLayers.filter(e).length&&!e.children("iframe").length||(p=(c=e.children()).attr("width")?c.attr("width"):c.width(),$=c.attr("height")?c.attr("height"):c.height(),300===parseInt(p)&&150===parseInt($)&&(p=640,$=360),""!==u.style.width&&"auto"!==u.style.width||e.css("width",p),""!==u.style.height&&"auto"!==u.style.height||e.css("height",$),"100%"===m.width&&"100%"===m.height&&(m.left="50%",m.top="50%"),v=p/$,c.css({width:"100%",height:"100%"}));var $=h.attributes;e.is("img")&&(d=(s=e.data("preloadedWidth"))/(a=e.data("preloadedHeight")),(!m.width&&!m.height||"auto"===m.width&&"auto"===m.height)&&$&&($.width&&$.height?(t=-1===$.width.indexOf("%")?parseInt($.width):(g=parseInt($.width),f.getStyle($.width,J.slider.initial.percW)),i=-1===$.height.indexOf("%")?parseInt($.height):(y=parseInt($.height),f.getStyle($.height,J.slider.initial.percH))):$.maxWidth&&(e[0].style.width=$.maxWidth+"px",t=$.maxWidth,i=e.height()))),c=b.width?b.width/S:(b.right-b.left)/S,S=b.height?b.height/S:(b.bottom-b.top)/S,t||(t=m.width,-1!==m.width.indexOf("%")&&(g=parseInt(m.width)),t=(t=""!==t&&"auto"!==t?f.getStyle(t,J.slider.initial.percW):c-J.layers.toNum(x,w)-J.layers.toNum(T,w)-J.layers.toNum(r,w)-J.layers.toNum(n,w))||"auto"),i||(i=m.height,-1!==m.height.indexOf("%")&&(y=parseInt(m.height)),i=(i=""!==i&&"auto"!==i?f.getStyle(i,J.slider.initial.percH):S-J.layers.toNum(k,w)-J.layers.toNum(C,w)-J.layers.toNum(o,w)-J.layers.toNum(l,w))||"auto"),v=v||("auto"!==t&&"auto"!==i?t/i:"auto"),!e.is("img")||m.width||m.height||$&&(!$||$.width||$.height)||s===t&&a===i||(s!==t?i=(t=5<s?s:t)/(v=5<s?d:v):a!==i&&(t=(i=5<a?a:i)*(v=5<a?d:v))),parseFloat(e.css("opacity")),a=""!==m.clip&&m.clip,m.clip="",d=m.webkitFilter||m.filter;var B,M,W,_;h.original={clip:a,clipShouldBeConverted:!1,left:m.left||"0",top:m.top||"0",width:"auto"!==t?parseFloat(t):"auto",height:"auto"!==i?parseFloat(i):"auto",sWidth:m.width,sHeight:m.height,percentWidth:g,percentHeight:y,backgroundImage:m.backgroundImage,backgroundSize:m.backgroundSize||"cover",backgroundRepeat:m.backgroundRepeat,backgroundPosition:m.backgroundPosition,ratio:v,paddingLeft:x,paddingTop:k,paddingRight:T,paddingBottom:C,marginLeft:O,marginRight:P,marginTop:L,marginBottom:I,borderLeftWidth:r,borderTopWidth:o,borderRightWidth:n,borderBottomWidth:l,borderRadius:(B=e,W=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],_="",(M=m).borderRadius&&(-1===M.borderRadius.indexOf("/")?ie.each(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],function(e,t){e=M[W[e]],t=B.css(t),t=ie.trim(void 0!==e&&e.length?e:t);-1==t.indexOf(" ")&&-1==t.indexOf("em")&&-1==t.indexOf("%")&&(t=parseInt(t)),_+=t+" "}):_=M.borderRadius),ie.trim(_)),fontSize:w,lineHeight:u.style.lineHeight,letterSpacing:u.style.letterSpacing,textStrokeWidth:u.style.textStrokeWidth||u.style.webkitTextStrokeWidth,color:e.css("color"),zIndex:parseInt(e.css("z-index"))||"auto",filter:d,backgroundColor:e.css("background-color"),dataLS:e.attr("data-ls")||"",styles:e.attr("style")||""},m.zIndex="auto",h.responsive={left:m.left||"0",top:m.top||"0",width:t,height:i}},properties:function(e,t,i){t=t||e.data("slideIndex");var s=e.data(J.defaults.init.dataKey);e.data("ls");if(s.is.textLayer=!(e.is("img")||s.is.mediaLayer||s.is.backgroundVideo),(s.self=e).data("ls"))for(var a=J.defaults.layer.keys,r=e.data("ls").split(";"),o=e.data("ls").split(";"),n=0;n<o.length;n++)if(ie.trim(o[n])){var l=o[n].indexOf(":"),d=[o[n].substring(0,l),o[n].substring(l+1)],c=null,p=null,u=null,h=null,m=null;if(d[0]=ie.trim(d[0].toLowerCase()),-1==["thumbnail","poster"].indexOf(d[0])&&(d[1]=d[1].toLowerCase()),""!==(c=d[0]))if(void 0!==a[c=c.replace("split","text")]){if(p=a[c][0],m="overlay"===c?ie.trim(r[n].substring(l+1)):J.functions.convert.properties(ie.trim(d[1])),-1!==c.indexOf("mirror")&&(m=J.layers.set.mirrorTransitions(ie.trim(d[1]))),!d[1]||-1===d[1].indexOf("random")&&d[1].charAt(0)!==J.defaults.init.openingBracket||(c.match(/(text)/)||(m=J.functions.convert.randomProperties(m,p)),s.should.update||(s.should.update=!0)),"number"==typeof m&&p.match(/(duration|startat|shift|delay)/i)&&(m/=1e3),c.match(/(fade)(.+)/))switch(m){case!0:m=0;break;case!1:m=1}void 0!==(h=a[c][1])?""!==m?"object"==typeof m&&-1==c.indexOf("mirror")?c.match(/(text)/)?h.match(/(converted)/i)?s[h][p]=m:s[h].cycle[p]=m:(u=J.functions.convert.properties(ie.trim(m[0])),J.debugMode&&J.debug.add("warn","layerInit.prop1",[c,m,u]),"number"==typeof u&&p.match(/(duration|startat|shift|delay)/i)&&(u/=1e3),s[h][p]=u):c.match(/(text)/)&&-1!==m.toString().indexOf("random")?s[h].random[p]=m:s[h][p]=m:J.debugMode&&J.debug.add("warn","layerInit.prop2",c):s[p][c]=m}else"clip"===c?(s.original.clip=d[1],s.original.clipShouldBeConverted=!0):J.debugMode&&J.debug.add("warn","layerInit.prop4",c)}if(J.browser.isOld&&(s.in.enabled=!0,s.textIn.enabled=!1,s.textOut.enabled=!1,s.textIn.type=null,s.textOut.type=null),s.in.enabled&&(s.inLayerTo.ease=s.inLayerStyleTo.ease=s.inClipTo.ease=J.functions.convert.easing(s.in.ease)),void 0!==s.inLayerStyleShouldBeConvertedFrom.borderRadius&&(s.inLayerStyleShouldBeConvertedTo.borderRadius=s.original.borderRadius),void 0!==s.outLayerStyleShouldBeConvertedTo.borderRadius&&(s.outLayerStyleShouldBeConvertedFrom.borderRadius=s.original.borderRadius),s.inLayerStyleFromCSS.backgroundColor&&(s.inLayerStyleToCSS.backgroundColor=s.original.backgroundColor),s.outLayerStyleToCSS.backgroundColor&&(s.outLayerStyleFromCSS.backgroundColor=s.original.backgroundColor),s.inLayerStyleFromCSS.color&&(s.inLayerStyleToCSS.color=s.original.color),s.outLayerStyleToCSS.color&&(s.outLayerStyleFromCSS.color=s.original.color),void 0!==s.inLayerStyleShouldBeConvertedFrom.width&&(s.inLayerStyleShouldBeConvertedTo.width=s.original.width),void 0!==s.outLayerStyleShouldBeConvertedTo.width&&(s.outLayerStyleShouldBeConvertedFrom.width=s.original.width),void 0!==s.inLayerStyleShouldBeConvertedFrom.height&&(s.inLayerStyleShouldBeConvertedTo.height=s.original.height),void 0!==s.outLayerStyleShouldBeConvertedTo.height&&(s.outLayerStyleShouldBeConvertedFrom.height=s.original.height),void 0!==s.out.showUntil&&0!==s.out.showUntil&&(s.out.startAt="transitioninend + "+s.out.showUntil),-1!==s.out.startAt.indexOf("slidechangeonly")&&"slidechangeonly"!==s.out.startAt&&(s.out.startAt="slidechangeonly"),s.out.enabled&&(s.outLayerTo.ease=s.outLayerStyleTo.ease=s.outClipTo.ease=J.functions.convert.easing(s.out.ease)),ie.isNumeric(s.loop.count)&&(0<s.loop.count||-1===s.loop.count)&&!1!==s.loop.enabled?(s.loop.enabled=!0,s.loopTo.ease=s.loopClipTo.ease=J.functions.convert.easing(s.loop.ease),-1!==s.loop.count?s.loop.yoyo?s.loop.repeat=2*s.loop.count-1:s.loop.repeat=s.loop.count-1:s.loop.repeat=-1):s.loop.enabled=!1,(!ie.isEmptyObject(s.hoverToCSS)||s.hoverShouldBeConverted.x||s.hoverShouldBeConverted.y||s.hoverShouldBeConverted.borderRadius||s.hoverShouldBeConverted.filter)&&!1!==s.hover.enabled?(s.hover.enabled=!0,s.hover.easeOut||(s.hover.easeOut=s.hover.easeIn),s.hover.easeIn=J.functions.convert.easing(s.hover.easeIn),s.hover.easeOut=J.functions.convert.easing(s.hover.easeOut,!0),s.hover.durationOut||(s.hover.durationOut=s.hover.durationIn),ee.TweenMax.set(e[0],{autoCSS:!1,css:{transformPerspective:s.hoverShouldBeConverted.transformPerspective}})):s.hover.enabled=!1,s.parallax.level&&ie.isNumeric(s.parallax.level)&&0!==s.parallax.level&&!1!==s.parallax.enabled?s.parallax.enabled=!0:s.parallax.enabled=!1,s.is.slideBackground){var f={scale:1,rotation:0};if(J.slides[t].kenBurns.zoom&&(s.kenBurns=J.slides[t].kenBurns),s.kenBurns.zoom){switch(s.kenBurns.from={},s.kenBurns.to={},s.kenBurns.zoom){case"out":s.kenBurns.from.scale=s.kenBurns.scale||1,s.kenBurns.from.rotation=s.kenBurns.rotation||0,s.kenBurns.to=f;break;case"in":s.kenBurns.from=f,s.kenBurns.to.scale=s.kenBurns.scale||1,s.kenBurns.to.rotation=s.kenBurns.rotation||0}delete s.kenBurns.scale,delete s.kenBurns.rotation}else s.kenBurns.from=f,s.kenBurns.to=f;ie.isEmptyObject(J.slides[t].filter)||(J.slides[t].filter.from&&(s.filter.values.bgFrom=J.transitions.layers.filters.convert(J.slides[t].filter.from)),J.slides[t].filter.to&&(s.filter.values.bgTo=J.transitions.layers.filters.convert(J.slides[t].filter.to)))}if(s.textIn.type&&-1===J.defaults.layer.splitTypeKeys.indexOf(s.textIn.type)&&(J.debugMode&&J.debug.add("warn","layerInit.splitType3a",[e[0].tagName,s.textIn.type]),delete s.textIn.type,delete s.textIn.ns,s.textIn.enabled=!1),s.textOut.type&&-1===J.defaults.layer.splitTypeKeys.indexOf(s.textOut.type)&&(J.debugMode&&J.debug.add("warn","layerInit.splitType3b",[e[0].tagName,s.textOut.type]),delete s.textOut.type,delete s.textOut.ns,s.textOut.enabled=!1),s.textIn.type||s.textOut.type){var g=0;if(s.is.textLayer?(s.textIn.type&&(s.textIn.enabled=!0,s.textInNodesTo.ease=J.functions.convert.easing(s.textInNodesTo.ease),s.textIn.split=s.textIn.type.split("_")[0],e.children().length&&J.debugMode&&(g=1)),s.textOut.type&&!J.o.inLayerPreview&&(s.textOut.enabled=!0),s.textOut.enabled&&(s.textOutNodesTo.ease=J.functions.convert.easing(s.textOutNodesTo.ease)),s.textOut.enabled&&s.textOut.type.split("_")[0]!==s.textIn.split&&(s.textIn.split+=", "+s.textOut.type.split("_")[0],e.children().length&&J.debugMode&&(g=1)),-1!==s.textIn.split.indexOf("chars")&&-1===s.textIn.split.indexOf("words")&&(s.textIn.split+=", words"),-1!==s.textIn.split.indexOf("words")&&-1===s.textIn.split.indexOf("lines")&&(s.textIn.split+=", lines")):(delete s.textIn.type,delete s.textOut.type,delete s.textIn.ns,delete s.textOut.ns,J.debugMode&&(g=2)),J.debugMode&&0!==g&&t&&!i)switch(g){case 1:J.debug.add("warn","layerInit.splitType1",[e.prop("nodeName"),t]);break;case 2:J.debug.add("warn","layerInit.splitType2",[t,e.prop("nodeName")])}}(s.original.clip||s.inClipShouldBeConverted.clip||s.outClipShouldBeConverted.clip||s.loopClipShouldBeConverted.clip)&&(s.clip.enabled=!0),s.in.enabled&&s.inLayerToCSS.scale&&(delete s.inLayerToCSS.scaleX,delete s.inLayerToCSS.scaleY),s.out.enabled&&s.outLayerToCSS.scale&&(delete s.outLayerToCSS.scaleX,delete s.outLayerToCSS.scaleY),s.inLayerStyleShouldBeConvertedFrom.filter&&(s.filter.values.in=J.transitions.layers.filters.convert(s.inLayerStyleShouldBeConvertedFrom.filter)),s.filter.values.style=J.transitions.layers.filters.convert(s.original.filter),s.outLayerStyleShouldBeConvertedTo.filter&&(s.filter.values.out=J.transitions.layers.filters.convert(s.outLayerStyleShouldBeConvertedTo.filter)),s.loopLayerShouldBeConverted.filter&&(s.filter.values.loop=J.transitions.layers.filters.convert(s.loopLayerShouldBeConverted.filter)),s.hoverShouldBeConverted.filter&&(s.filter.values.hover=J.transitions.layers.filters.convert(s.hoverShouldBeConverted.filter)),s.in.enabled||(s.in.duration=0),s.textIn.enabled||(s.textIn.duration=0),s.loop.enabled||(s.loop.duration=0),s.textOut.enabled||(s.textOut.duration=0),s.out.enabled||(s.out.duration=0),e.attr("data-ls-slidein",t),void 0!==s.settings.static&&"none"!==s.settings.static?(0!==(g=parseInt(s.settings.static))&&"forever"!==s.settings.static?(e.attr("data-ls-slideout",g),s.settings.slideOut=g):s.settings.slideOut=0,s.is.static=!0,e.attr("data-ls-static","1")):e.attr("data-ls-slideout",t),s.is.mediaLayer&&e.children("video, audio").length&&J.media.html5.singleInit(e.children("video, audio").eq(0)),s.is.backgroundVideo&&s.styleSettings.overlay&&e.find(".ls-bg-video-overlay").css({backgroundImage:"url("+s.styleSettings.overlay+")"}),s.styleSettings.minfontsize&&(s.styleSettings.minfontsize=parseFloat(s.styleSettings.minfontsize)),s.styleSettings.minmobilefontsize&&(s.styleSettings.minmobilefontsize=parseFloat(s.styleSettings.minmobilefontsize)),J.slider.isPopup&&(s.is.pinned=!1),s.is.pinned&&(J.slider.hasPinnedLayers=!0),s.styleSettings.smartbg&&(e.attr("data-ls-smart-bg","").css("--bgs",s.original.backgroundSize),s.styleSettings.smartbg=s.styleSettings.smartbg.toString(),s.is.smartBG=!0)},dataAttribute:function(e,t,i){var s=t.add(t.closest(".ls-wrapper.ls-z"));switch(e){case"remove":s.removeAttr("data-ls-"+i);break;case"add":"active"===i&&s.removeAttr("data-ls-hidden"),"hidden"===i&&s.removeAttr("data-ls-active data-ls-animating-in data-ls-text-animating-in data-ls-animating-out data-ls-text-animating-out"),-1===i.indexOf("in")&&-1===i.indexOf("out")||(s.removeAttr("data-ls-active"),s.removeAttr("data-ls-hidden")),"active"===i&&t.is("[data-ls-animating-in], [data-ls-text-animating-in]")||"hidden"===i&&t.is("[data-ls-animating-out], [data-ls-text-animating-out]")||s.attr("data-ls-"+i,"")}}},get:function(e){var t,i,s,a,r,o=this.$all;return e&&(t="in",s=i="",a=':not(".ls-bg")',r=':not(".ls-bg-video")',-1==(e=e.toLowerCase()).indexOf("bgvideo")&&-1==e.indexOf("backgroundvideo")||(r="",e=e.replace("bgvideo","").replace("backgroundvideo","")),-1!=e.indexOf("video")&&(s+=", > video",e=e.replace("video","")),-1!=e.indexOf("audio")&&(s+=", > audio",e=e.replace("audio","")),-1!=e.indexOf("html5")&&(s+=", > video, > audio",e=e.replace("html5","")),-1!=e.indexOf("youtube")&&(s+=', > iframe[src*="youtube-nocookie.com"], > iframe[src*="youtube.com"], > iframe[src*="youtu.be"], > iframe[data-src*="youtube-nocookie.com"], > iframe[data-src*="youtube.com"], > iframe[data-src*="youtu.be"]',e=e.replace("youtube","")),-1!=e.indexOf("vimeo")&&(s+=', > iframe[src*="player.vimeo"], > iframe[data-src*="player.vimeo"]',e=e.replace("vimeo","")),","==s.charAt(0)&&(s=s.substring(2,s.length)),-1!=e.indexOf("out")&&(t="out"),-1==e.indexOf("img")&&-1==e.indexOf("image")||(i="img"),-1==e.indexOf("bg")&&-1==e.indexOf("background")&&-1==e.indexOf("bgonly")||(a=""),o=-1!=e.indexOf("current")?o.filter(i+"[data-ls-slide"+t+'="'+J.slides.current.index+'"]'+a+r):-1!=e.indexOf("next")?o.filter(i+"[data-ls-slide"+t+'="'+J.slides.next.index+'"]'+a+r):o.filter(i+a+r),-1!=e.indexOf("notactive")&&(o=o.filter(".ls-bg, .ls-bg-video, :hidden"),e=e.replace("notactive","")),-1!=e.indexOf("active")&&(o=o.filter(':visible:not(.ls-bg, .ls-bg-video), [data-ls-static="1"]:not([data-ls-hidden])'),e=e.replace("active","")),-1!=e.indexOf("notstatic")&&(o=o.filter(':not([data-ls-static="1"])'),e=e.replace("notstatic","")),-1!=e.indexOf("static")&&(o=o.filter('[data-ls-static="1"]'),e=e.replace("static","")),-1!=e.indexOf("bgonly")&&(o=o.filter(".ls-bg"),e=e.replace("bgonly","")),""!==s&&(o=o.find(s))),o},update:{data:function(e,t,i){var s,a,r;switch(e instanceof jQuery||(e=ie(e)),i&&e.attr("data-ls",i).data("ls",i),s=(a=e.data(J.defaults.init.dataKey)).is.onSlide,r=a.original,t){default:case"transitions":a.settings.timelineIsCalculated=!1,J.layers.set.properties(e,s,!0);break;case"all":e.data(J.defaults.init.dataKey,new J.defaults.layer.options(e,s)),(a=e.data(J.defaults.init.dataKey)).original=r,J.layers.set.properties(e,s,!0),J.layers.set.wrappers(e,a,s)}}},wrap:function(u,e){var t,h;J.slides[u].wrapped||"wrapping"===J.slides[u].wrapped||(J.slides[u].wrapped="wrapping",t=e?25:0,e=J.slides[u].$layers,0===(h=e.length)?J.slides[u].wrapped=!0:e.each(function(c,p){J.timeouts["slide-"+u+"-layer-"+c]=setTimeout(function(){delete J.timeouts["slide-"+u+"-layer-"+c];var e=ie(p),t=e,i="",s=!1,a="";e.hasClass("ls-hide-phone")&&(a+=" ls-hide-on-phone"),e.hasClass("ls-hide-tablet")&&(a+=" ls-hide-on-tablet"),e.hasClass("ls-hide-desktop")&&(a+=" ls-hide-on-desktop"),e.removeClass("ls-hide-phone ls-hide-tablet ls-hide-desktop"),t.is("a")&&1===t.children().length&&(s=!0,e=t.find(".ls-layer"));var r,o,n,l=e.data(J.defaults.init.dataKey);if(!l)return!0;d=e.data("$layerGroup")||J.slider.$layersWrapper,l.is.backgroundVideo?d=J.slider.$bgVideosWrapper:l.is.slideBackground&&(d=J.slider.$slideBGWrapper),e.data("hasBeenSet")||J.layers.set.singleLayer(e,u),l.textIn.split&&(n=new ee.SplitType(e[0],{split:l.textIn.split}),l.textIn.type&&(l.textIn.ns=n[l.textIn.type.split("_")[0]]),l.textOut.type&&(l.textOut.ns=n[l.textOut.type.split("_")[0]]),-1!==e.css("background-clip").indexOf("text")&&(r=e.find(".char"),o=e.find(".word"),n=e.find(".line"),l.textIn.$nodesForBackgroundClip=r.length?r:o.length?o:n,r.length?e.addClass("ls-has-chars"):o.length?e.addClass("ls-has-words"):e.addClass("ls-has-lines"),l.textIn.$nodesForBackgroundClip.each(function(){var e=ie(this),t=ie.trim(e.text()),i=document.createTextNode(t),t=ie(i),i=ie('<div class="ls-textnode-bgclip-wrap"><div class="ls-textnode"></div></div>').css({backgroundColor:l.original.backgroundColor,backgroundImage:l.original.backgroundImage,backgroundSize:l.original.backgroundSize,backgroundRepeat:l.original.backgroundRepeat,backgroundPosition:l.original.backgroundPosition});e.css({verticalAlign:"top"}).text(""),t.clone().appendTo(e).wrap('<div class="ls-textnode-dummy"></div>'),t.appendTo(e).wrap(i)}))),i=l.is.slideBackground||l.is.backgroundVideo?'<div class="ls-wrapper ls-bg-outer"><div class="ls-wrapper ls-bg-wrap"></div></div>':(l.clip.enabled&&(i='<div class="ls-wrapper ls-clip"></div>'),l.loop.enabled&&(i='<div class="ls-wrapper ls-loop">'+i+"</div>"),l.scroll.enabled&&(i='<div class="ls-wrapper ls-scroll"><div class="ls-wrapper ls-scroll-transform">'+i+"</div></div>"),'<div class="ls-wrapper ls-in-out">'+i+"</div>"),l.parallax.enabled&&(i='<div class="ls-wrapper ls-parallax">'+i+"</div>"),""!==(i='<div class="ls-wrapper ls-z '+(l.is.pinned?"ls-pinned":"")+'">'+i+"</div>")?e.appendTo(d).wrap(i):e.appendTo(d),!0===s&&t.addClass("ls-layer-link").appendTo(e.parent());var d={},s=e.css("mix-blend-mode");s&&"normal"!==s&&(d["mix-blend-mode"]=s,e.css("mix-blend-mode","normal")),l.original.customZIndex=1;s=parseInt(l.original.zIndex);l.is.backgroundVideo||l.is.slideBackground?d={zIndex:l.original.customZIndex}:(s=s||c+101,d.zIndex=s,l.original.customZIndex=s),J.browser.isSafari&&(d.transform="translateZ(0)"),J.layers.set.wrappers(e,l,u),l.elements.$outerWrapper.css(d).addClass(a),l.styleSettings.pointerevents&&l.elements.$innerWrapper.css("pointer-events","none"),l.is.slideBackground&&l.elements.$bgWrapper.css({backgroundColor:J.slides[u].data.backgroundColor}),J.layers.$all=J.layers.$all.add(e),J.slides[u].$layers=J.slides[u].$layers.not(t),c===h-1&&($.children(".ls-slide").eq(u-1).empty(),J.slides[u].wrapped=!0)},t*(c+1))}))}},J.slideshow={direction:"next",nextLoop:0,firstStart:!0,forceFastChange:!1,sequence:{normal:[],randomized:[]},state:{changed:-1,running:!0,paused:!1,pausedByVideo:!1,pausedByHover:!1,pausedByLastCycle:!1},should:{change:!1,start:!1,stop:!1},isPaused:function(){return this.state.paused||this.state.pausedByVideo||this.state.pausedByHover||this.state.pausedByPerformance},init:function(){1==J.slides.count&&ie.extend(J.o,{autoStart:!1,navPrevNext:!1,navStartStop:!1,navButtons:!1,cycles:-1,forceLoopNum:!1,autoPauseSlideshow:!0,firstSlide:1,thumbnailNavigation:"disabled"}),J.o.autoStart&&1!=J.slides.count||J.functions.setStates(this,{running:!1,paused:!0}),this.set.pauseOnHover(),this.set.sequences()},set:{pauseOnHover:function(){J.o.pauseOnHover=!0===J.o.pauseOnHover?"slideshowOnly":J.o.pauseOnHover,!1!==J.o.pauseOnHover&&$.on("mouseenter."+B,function(){J.slider.state.inFullscreen||(J.functions.setStates(J.slideshow,{pausedByHover:!0}),"slideshowOnly"!==J.o.pauseOnHover&&J.transitions.layers.timeline.pause())}).on("mouseleave."+B,function(){var e=1;J.transitions._slideTimeline&&J.transitions._slideTimeline.duration()>J.transitions.layers.timeline.totalDuration&&(e=J.transitions.layers.timeline.totalDuration/J.transitions._slideTimeline.duration()),J.functions.setStates(J.slideshow,{pausedByHover:!1}),ie("body").hasClass("ls-unselectable")||"slideshowOnly"===J.o.pauseOnHover||J.o.pauseLayers&&J.slideshow.isPaused()||J.transitions.layers.timeline.resume(),J.transitions._slideTimeline&&J.transitions.layers.timeline.state.finished&&J.transitions._slideTimeline.progress()<e&&J.functions.setStates(J.transitions.layers.timeline,{finished:!1}),J.slideshow.start()})},sequences:function(){for(var e=0;e<J.slides.count;e++)J.slideshow.sequence.normal[e]=e+1;J.slideshow.sequence.randomized=J.functions.shuffleArray(ie.merge([],J.slideshow.sequence.normal))},normalizedSequence:function(){var e=J.o.shuffleSlideshow?"randomized":"normal",t=J.slideshow.sequence[e],i=J.slideshow.sequence[e].length,s=t.indexOf(J.slides.first.index);J.slideshow.sequence.normalized=[];for(var a=s;a<i;a++)J.slideshow.sequence.normalized.push(t[a]);for(var r=0;r<s;r++)J.slideshow.sequence.normalized.push(t[r])},prevNext:function(e){switch("prev"!==e&&"first"!==e||!J.o.twoWaySlideshow?J.slideshow.direction="next":J.slideshow.direction="prev",e){case"prev":J.slideshow.changeTo(J.slideshow.get.slideInSequence("prev"),!0);break;case"next":J.slideshow.changeTo(J.slideshow.get.slideInSequence("next"),!0);break;case"first":J.slideshow.changeTo(1,!0);break;case"last":J.slideshow.changeTo(J.slides.count,!0)}}},get:{sequence:function(){var e="normal";return J.o.playByScroll?e="normalized":J.o.shuffleSlideshow&&(e="randomized"),e},slideInSequence:function(e){var t=J.slideshow.sequence[this.sequence()],i=t.indexOf(J.slides.current.index);switch(e){case"prev":return 0===i?t[t.length-1]:t[i-1];case"next":return i===t.length-1?t[0]:t[i+1];default:return t[e]}},indexOfSlideInSequence:function(e){return J.slideshow.sequence[this.sequence()].indexOf(e)}},cycles:{set:function(){0<J.o.cycles&&(J.slideshow.curCycle=1,J.slideshow.cycleSlideIndex=J.slideshow.get.indexOfSlideInSequence(J.slides.first.index))},check:function(e){if(J.slideshow.get.indexOfSlideInSequence(e)===J.slideshow.cycleSlideIndex)return++J.slideshow.curCycle===J.o.cycles+1}},start:function(e){!this.isPaused()&&J.transitions._slideTimeline&&J.transitions.layers.timeline.state.finished&&this.changeTo(J.slides.next.index)},stop:function(){J.functions.setStates(this,{running:!1,paused:!0})},changeTo:function(e,t,i){if(!document.body.contains(I))return!1;if(J.slides.current.index===e&&!J.slideshow.forceSlideChangeTo)return!1;if(J.slideshow.forceSlideChangeTo=null,!this.firstStart&&J.api.hasEvent("slideChangeWillStart")){var s=J.api.triggerEvent("slideChangeWillStart",J.api.eventData());if(!1===s)return;ie.isNumeric(s)&&(e=parseInt(s))}e>J.slides.count||e<1?J.debugMode&&(J.debug.add("group","slideshow"),J.debug.add("warn","slideshow.invalidSlideIndex",[e,J.slides.count]),J.debug.groupEnd()):J.slider.isBusy()||J.slideshow.state.pausedByVideo&&!t?!J.slider.state.preloadingImages&&J.slider.state.animatingSlides&&J.transitions._slideTransition&&(J.slideshow.forceSlideChangeTo=e,J.slideshow.should.change=!0,J.transitions._slideTransition.progress(1),J.transitions.timelines.set("currentforce",function(e,t){e.progress(1)})):(J.functions.setStates(J.transitions.layers.timeline,{finished:!1}),J.slideshow.should.change=!1,J.debugMode&&J.debug.add("group","slideshow"),t?(i&&(J.navigation.direction=J.slides.current.index>e?"prev":"next"),J.o.twoWaySlideshow&&("prev"===J.navigation.direction?J.slideshow.direction="prev":J.slideshow.direction="next"),J.debugMode&&(J.debug.add("log","slideshow.changedByUser",!1),J.o.twoWaySlideshow&&J.debug.add("log","slideshow.setdir",J.slideshow.direction))):J.navigation.direction=J.slideshow.direction,J.transitions.timers.reverse(),J.gui.media.hideUnmute(),J.slides.set.nextSlideIndex(e),J.debugMode&&(J.debug.add("log","slideshow.change",[J.slides.current.index,J.slides.next.index,J.slideshow.direction,J.navigation.direction]),J.debug.groupEnd()),J.functions.setStates(this,{pausedByVideo:!1,changed:++this.state.changed}),J.functions.setStates(J.slider,{changingSlides:!0}),J.slider.state.animatingSlides&&J.transitions._slideTransition&&J.transitions.timelines.set("currentforce",function(e,t){e.progress(1)}),J.preload.imagesOfSlide(J.slides.next.index,function(){J.transitions.start()}))},forceStop:function(){J.navigation.stop(),ie.each(J.timeouts,function(e,t){clearTimeout(J.timeouts[e])}),J.transitions.timers.stop(),J.transitions._slideTimeline.stop(),J.transitions._slideTimelineAlternate.stop(),J.functions.setStates(J.transitions.layers.timeline,{stopped:!0,running:!1}),$.find("*").stop(!0,!1).dequeue()},restart:function(){$.find("*").stop(),J.navigation.change(J.slides.current.index,J.slideshow.direction)}},J.media={properties:{$allMediaLayers:ie(),playingInCurSlide:0,endedInCurSlide:0,userDidUnmute:!1},init:function(){J.functions.setStates(J.slider,{waitingForYouTube:!1,waitingForVimeo:!1}),J.media.properties.allowToUnmute=!0,J.media.youtube.init(),J.media.vimeo.init(),J.media.html5.init()},isPlayable:function(e){return!e.is("[data-ls-animating-out], [data-ls-hidden]")},get:function(e){var t,i=J.media.properties.$allMediaLayers;return e&&(-1!==(e=e.toLowerCase()).indexOf("notbg")&&(i=i.not(".ls-bg-video")),-1!==e.indexOf("active")&&(i=i.filter("[data-ls-active], [data-ls-animating-in], [data-ls-text-animating-in]")),-1!==e.indexOf("notstatic")&&(i=i.not("[data-ls-static]")),t=i.find("video, audio, iframe"),-1!==e.indexOf("notplaying")?t=t.filter("[data-ls-not-playing]"):-1!==e.indexOf("playing")&&(t=t.filter("[data-ls-playing]")),-1!==e.indexOf("allowtounmute")&&(t=t.filter("[data-ls-allow-to-unmute]")),-1!==e.indexOf("mutedbybrowser")&&(t=t.filter("[data-ls-muted-by-browser]"))),t},set:{backgroundVideo:function(e,t){0===e.children(".ls-vpcontainer").length&&(e=ie("<div>").addClass("ls-vpcontainer").appendTo(e),t.mediaSettings.poster&&ie("<div>").appendTo(e).addClass("ls-videopreview").attr({style:"background-image: url("+t.mediaSettings.poster+")"}))},customPoster:function(e,t){return t.mediaSettings.poster||!1},dataAttribute:function(e,t){e.removeAttr("data-ls-playing data-ls-not-playing"),e.attr("data-ls-"+t,""),J.media.functions.checkSlideshowWaiting()},mediaElements:function(e,t,i){var s=ie("<div>").addClass("ls-vpcontainer").appendTo(e);!("autoplay"in i.mediaSettings)&&J.o.autoPlayVideos||i.mediaSettings.autoplay?e.addClass("ls-autoplay"):ie("<div>").appendTo(s).addClass("ls-playvideo"),t.is("iframe")&&i.mediaProperties.poster&&ie("<div>").appendTo(s).addClass("ls-videopreview").attr({style:"background-image: url("+i.mediaProperties.poster+")"}),t.is("video, audio")&&i.mediaProperties.poster&&ie("<div>").appendTo(s).addClass("ls-videopreview").attr({style:"background-image: url("+i.mediaProperties.poster+")"})},properties:function(e,t,i){switch(i.is.mediaLayer=!0,i.mediaProperties.type){case"youtube":i.is.backgroundVideo?(i.mediaProperties.options=ie.extend(!0,{loop:1,playlist:i.mediaProperties.embedID,controls:0,autoplay:0,showinfo:!1,modestbranding:1,thumbnail:!1},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions),J.media.set.backgroundVideo(e,i)):(i.mediaProperties.options=ie.extend(!0,{},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions,{autoplay:0}),J.media.set.mediaElements(e,t,i));break;case"vimeo":i.is.backgroundVideo?(i.mediaProperties.options=ie.extend(!0,{loop:1,byline:0,portrait:0,title:0,fun:0},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions),J.media.set.backgroundVideo(e,i)):(i.mediaProperties.options=ie.extend(!0,{},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions,{autoplay:0}),J.media.set.mediaElements(e,t,i));break;case"html5":t.attr("autoplay")&&(t.removeAttr("autoplay"),e.attr("data-ls",e.attr("data-ls")+" autoplay: true;")),i.is.backgroundVideo?(t.removeAttr("controls"),t[0].muted=!0,t.attr("loop","")):"controls"in i.mediaSettings&&"auto"!==i.mediaSettings.controls&&(i.mediaSettings.controls?(t.attr("controls",""),t.removeAttr("nocontrols")):t.removeAttr("controls")),"volume"in i.mediaSettings&&(i.mediaSettings.volume<0?i.mediaSettings.volume=0:100<i.mediaSettings.volume&&(i.mediaSettings.volume=100),t[0].volume=i.mediaSettings.volume/100),"muted"in i.mediaSettings&&(i.mediaSettings.muted?t[0].muted=!0:t[0].muted=!1),"loop"in i.mediaSettings&&(i.mediaSettings.loop?t.attr("loop",""):t.removeAttr("loop")),i.is.backgroundVideo?J.media.set.backgroundVideo(e,i):J.media.set.mediaElements(e,t,i)}},thumbnail:function(e,t){switch(t){case"show":e.stop(!0,!0).fadeIn(J.transitions.media.defaults.fadeIn);break;case"hide":e.stop(!0,!0).delay(J.transitions.media.defaults.delay).fadeOut(J.transitions.media.defaults.fadeOut)}}},events:{start:function(e,t,i){var s;J.api.hasEvent("mediaDidStart")&&!i.mediaProperties.alreadyStarted&&J.media.functions.allowedToPlay(e,i)&&((s=J.api.eventData()).event.target=e[0],J.api.triggerEvent("mediaDidStart",s),i.mediaProperties.alreadyStarted=!0)},stop:function(e,t,i){var s;J.api.hasEvent("mediaDidStop")&&i.mediaProperties.alreadyStarted&&((s=J.api.eventData()).event.target=e[0],J.api.triggerEvent("mediaDidStop",s),i.mediaProperties.alreadyStarted=!1)}},unmute:{set:function(e,t,i){("youtube"!==t&&"vimeo"!==t||J.media.properties.allowToUnmute)&&J.gui.media.showUnmute(),e.attr("data-ls-allow-to-unmute",""),i&&e.attr("data-ls-muted-by-browser","")},multipleMediaElements:function(){var e=$.find("[data-ls-allow-to-unmute]");(J.o.rememberUnmuteState?e:e.filter("[data-ls-playing], [data-ls-muted-by-browser]")).each(function(){J.media.unmute.singleMediaElement(ie(this))}),J.gui.media.hideUnmute(),J.media.properties.userDidUnmute=!0},singleMediaElement:function(e){var t,i=e.closest(".ls-layer").data(J.defaults.init.dataKey),s=!1;switch(i.mediaProperties.type){case"youtube":J.media.properties.allowToUnmute&&(s=!0,i.mediaProperties.player.unMute());break;case"vimeo":J.media.properties.allowToUnmute&&(s=!0,t=i.mediaSettings.volume?i.mediaSettings.volume/100:1,i.mediaProperties.player.setVolume(t));break;case"html5":s=!0,e[0].muted=!1}s&&e.removeAttr("data-ls-muted-by-browser data-ls-allow-to-unmute")}},functions:{allowedToPlay:function(e,t){e=e.closest(".ls-layer");return!!(J.slides.current.index===parseInt(e.attr("data-ls-slidein"))||t.is.backgroundVideo&&J.slides.next.index===parseInt(e.attr("data-ls-slidein"))||e.attr("data-ls-static")&&void 0!==e.attr("data-ls-active"))},playActiveMedia:function(e){var t,i;J.media.get("notbg,active").each(function(){if(t=ie(this).closest(".ls-layer"),i=t.data(J.defaults.init.dataKey),e){if(!i.mediaProperties.pausedByPerformance)return!0;i.mediaProperties.pausedByPerformance=!1}if(J.media.isPlayable(t))if(i.mediaProperties.alreadyStarted)switch(i.mediaProperties.type){case"youtube":i.mediaProperties.player.playVideo();break;case"vimeo":i.mediaProperties.player.play();break;case"html5":i.mediaProperties.$media[0].play()}else ie(this).parent().find(".ls-vpcontainer").trigger("playMedia")})},stopSingleMedia:function(e,t){var i=t.mediaProperties.$media;J.media[t.mediaProperties.type].stop(e,i,t,!0),J.media.functions.mediaEnded(i,e,t)},pauseActiveMedia:function(e){var t;J.media.get("notbg,active,playing").each(function(){switch(t=ie(this).closest(".ls-layer").data(J.defaults.init.dataKey),e&&(t.mediaProperties.pausedByPerformance=!0),t.mediaProperties.type){case"youtube":t.mediaProperties.player.pauseVideo();break;case"vimeo":t.mediaProperties.player.pause();break;case"html5":this.pause()}})},urlToObject:function(e){var s={},e=e.split("?")[1];return e&&e.split("#")[0].replace(/([^=&]+)=([^&]*)/g,function(e,t,i){s[decodeURIComponent(t)]=ie.isNumeric(decodeURIComponent(i))?parseInt(decodeURIComponent(i)):decodeURIComponent(i)}),s},checkSlideshowState:function(e,t){!t.is.static&&J.o.autoPauseSlideshow&&(J.functions.setStates(J.slideshow,{pausedByVideo:!0}),"auto"==J.o.autoPauseSlideshow&&J.media.properties.playingInCurSlide++)},checkSlideshowWaiting:function(){var e=J.media.properties.playingInCurSlide,t=J.media.get("notbg,active,notstatic,notplaying"),i=t.length;i===e&&0<i&&J.slideshow.state.pausedByVideo&&J.o.autoPauseSlideshow&&!J.timeouts.pausedVideos&&J.slideshow.state.running?J.timeouts.pausedVideos=setTimeout(function(){J.slideshow.state.running?t.each(function(){J.media.functions.mediaEnded(ie(this),ie(this).closest(".ls-layer"),ie(this).closest(".ls-layer").data(J.defaults.init.dataKey))}):J.slideshow.state.pausedByVideo=!1},5e3):J.timeouts.pausedVideos&&(clearTimeout(J.timeouts.pausedVideos),delete J.timeouts.pausedVideos)},playIfAllowed:function(e){var t=e.data(J.defaults.init.dataKey);t.is.mediaLayer&&(te.isMobile&&($.hasClass("ls-device-is-phone")&&t.elements.$outerWrapper.hasClass("ls-hide-on-phone")||$.hasClass("ls-device-is-tablet")&&t.elements.$outerWrapper.hasClass("ls-hide-on-tablet"))||("autoplay"in t.mediaSettings||!J.o.autoPlayVideos)&&!t.mediaSettings.autoplay||e.find(".ls-vpcontainer").trigger("playMedia"))},stop:function(s){s=void 0===s||s;J.layers.get("current,out,youtube").each(function(){var e=ie(this),t=e.closest(".ls-layer"),i=t.data(J.defaults.init.dataKey);J.media.youtube.stop(t,e,i,s)}),J.layers.get("current,out,vimeo").each(function(){var e=ie(this),t=e.closest(".ls-layer"),i=t.data(J.defaults.init.dataKey);J.media.vimeo.stop(t,e,i,s)}),J.layers.get("current,out,html5").each(function(){var e=ie(this),t=e.closest(".ls-layer"),i=t.data(J.defaults.init.dataKey);J.media.html5.stop(t,e,i,s)}),J.media.properties.playingInCurSlide=0,J.media.properties.endedInCurSlide=0},mediaEnded:function(e,t,i){"auto"!=J.o.autoPauseSlideshow||i.is.backgroundVideo||(i.is.static||J.media.properties.endedInCurSlide++,J.media.properties.endedInCurSlide==J.media.properties.playingInCurSlide&&0!==J.media.properties.playingInCurSlide&&J.functions.setStates(J.slideshow,{pausedByVideo:!1})),J.media.set.dataAttribute(e,"not-playing"),J.media.events.stop(e,t,i)},removeFromTimeline:function(e){J.transitions._slideTimeline.kill(null,e.closest(".ls-in-out")[0]),J.transitions._slideTimelineAlternate.kill(null,e.closest(".ls-in-out")[0])}},youtube:{defaults:{autoplay:0,playsinline:1,wmode:"opaque",html5:1,enablejsapi:1,version:3,rel:0},init:function(){var f=0;this.$medias=J.slider.$hiddenWrapper.find('iframe[src*="youtube-nocookie.com"], iframe[src*="youtube.com"], iframe[src*="youtu.be"], iframe[data-src*="youtube-nocookie.com"], iframe[data-src*="youtube.com"], iframe[data-src*="youtu.be"]').each(function(){var e=ie(this).attr({id:"ls-youtube-"+ ++f,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowfullscreen:""}),t=e.closest(".ls-layer");t.data("hasBeenSet")||J.layers.set.singleLayer(t);var i,s,a,r,o,n,l,d,c=t.data(J.defaults.init.dataKey),p=e.attr("src")||e.attr("data-src"),u=J.media.functions.urlToObject(p),h=(p=p.split("?")[0].split("//")[1]).split("/"),m=h[h.length-1],h=J.media.set.customPoster(t,c);c.mediaProperties={type:"youtube",$media:e,embedURL:p,embedID:m,embedOptions:u},h?(c.mediaProperties.poster=h,J.media.set.properties(t,e,c)):(i=["default.jpg","mqdefault.jpg","hqdefault.jpg","sddefault.jpg","maxresdefault.jpg"],s="https://img.youtube.com/vi/"+p.split("embed/")[1].split("?")[0]+"/",a=s+J.o.youtubePreview,o=r=0,n=function(){this.width>r&&(r=this.width,a=this.src),d()},l=function(){d()},d=function(){(o+=1)===i.length&&(c.mediaProperties.poster=a,J.media.set.properties(t,e,c))},i.forEach(function(e){var t=new Image;t.addEventListener("error",l,!1),t.addEventListener("load",n,!1),t.src=s+e}))}),this.$medias.length&&(J.media.properties.$allMediaLayers=J.media.properties.$allMediaLayers.add(this.$medias.closest(".ls-layer")),J.timeouts.loadYouTube=Math.floor(Date.now()/1e3),window.YT||ie("<script>").attr({src:"https://www.youtube.com/iframe_api",type:"text/javascript"}).appendTo("head"),window.onYouTubeIframeAPIReady=function(){window._layerSlider.globals.youTubeIsReady=!0},J.intervals.isYouTubeReady=setInterval(function(){window.YT&&1===window.YT.loaded||window._layerSlider.globals.youTubeIsReady||3<Math.floor(Date.now()/1e3)-J.timeouts.loadYouTube?(clearInterval(J.intervals.isYouTubeReady),delete J.intervals.isYouTubeReady,delete J.timeouts.loadYouTube,J.media.youtube.$medias.closest(".ls-layer").each(function(){var e=ie(this),t=e.find("iframe"),i=e.data(J.defaults.init.dataKey);e.on("playMedia."+B+" click."+B,".ls-vpcontainer",function(){J.media.set.thumbnail(ie(this),"hide"),J.media.functions.checkSlideshowState(e,i),t.hide(),J.media.youtube.play(e,i.mediaProperties.$media,i,i.mediaProperties.embedURL),setTimeout(function(){t.show()},10)}).on("playBackgroundVideo."+B,function(){J.media.youtube.play(e,i.mediaProperties.$media,i,i.mediaProperties.embedURL),J.layers.set.dataAttribute("add",e,"active")}).on("stopBackgroundVideo."+B,function(){J.media.youtube.stop(e,i.mediaProperties.$media,i,!0),J.layers.set.dataAttribute("add",e,"hidden")}).on("preloadBackgroundVideo."+B,function(){J.media.youtube.createPlayer(e,i.mediaProperties.$media,i,i.mediaProperties.embedURL,!0)})}),J.functions.setStates(J.slider,{waitingForYouTube:!1})):J.functions.setStates(J.slider,{waitingForYouTube:!0})},25))},createPlayer:function(t,i,s,a,r){s.mediaProperties.playerState="initializing","controls"in s.mediaSettings&&(s.mediaProperties.options.controls=s.mediaSettings.controls?1:0),"loop"in s.mediaSettings&&(s.mediaProperties.options.loop=s.mediaSettings.loop?1:0),"showinfo"in s.mediaSettings&&(s.mediaProperties.options.showinfo=s.mediaSettings.showinfo?1:0),s.mediaProperties.options.loop?s.mediaProperties.options.playlist=s.mediaProperties.embedID:delete s.mediaProperties.options.playlist,0===s.mediaProperties.options.showinfo&&(s.mediaProperties.options.modestbranding=1),i.attr("src","https://"+a+"?"+jQuery.param(s.mediaProperties.options)).on("load",function(){s.mediaProperties.player=new YT.Player(i[0],{events:{onReady:function(e){s.mediaProperties.playerState="ready",s.mediaSettings.volume&&s.mediaProperties.player.setVolume(s.mediaSettings.volume),r&&!s.mediaProperties.shouldPlay||(J.media.youtube.play(t,i,s,a),s.mediaProperties.shouldPlay=!1)},onStateChange:function(e){switch(e.data){case 0:s.mediaProperties.options.loop&&1===s.mediaProperties.options.loop||J.media.functions.mediaEnded(i,t,s);break;case 1:J.media.events.start(i,t,s),s.mediaProperties.lastStarted=Date.now();break;case 2:case-1:s.mediaProperties.firstState&&0!==s.mediaProperties.lastState&&1!==s.mediaProperties.lastState||s.mediaProperties.lastStarted&&(Date.now(),s.mediaProperties.lastStarted)}1===e.data?J.media.set.dataAttribute(i,"playing"):J.media.set.dataAttribute(i,"not-playing"),J.media.youtube.savePlayerState(s,e.data)}}})})},savePlayerState:function(e,t){e.mediaProperties.firstState||(e.mediaProperties.firstState=t),e.mediaProperties.lastState=t},play:function(e,t,i,s,a){void 0!==t.attr("data-ls-muted-by-browser")&&J.media.unmute.singleMediaElement(t),i.mediaProperties.player?i.mediaProperties.player.playVideo?(!i.is.backgroundVideo||"muted"in i.mediaSettings||i.mediaProperties.player.mute(),i.mediaSettings.muted?J.o.rememberUnmuteState&&J.media.properties.userDidUnmute||(i.mediaProperties.player.mute(),"offertounmute"==i.mediaSettings.muted&&J.media.unmute.set(t,i.mediaProperties.type)):a&&(i.mediaProperties.player.mute(),J.media.unmute.set(t,i.mediaProperties.type,!0)),J.media.functions.allowedToPlay(t,i)?J.media.isPlayable(e)&&i.mediaProperties.player.playVideo():J.media.youtube.stop(e,t,i,!0)):i.mediaProperties.shouldPlay=!0:i.mediaProperties.playerState?i.mediaProperties.shouldPlay=!0:this.createPlayer(e,t,i,s)},stop:function(e,t,i,s){i.mediaProperties.player&&(i.mediaProperties.player.pauseVideo&&i.mediaProperties.player.pauseVideo(),s&&i.mediaProperties.player.seekTo&&(i.mediaProperties.player.seekTo(0),i.mediaProperties.player.pauseVideo()),i.is.backgroundVideo||J.media.set.thumbnail(e.find(".ls-vpcontainer"),"show"),J.media.events.stop(t,e,i))}},vimeo:{defaults:{autoplay:0,autopause:0,wmode:"opaque",playsinline:1},init:function(){var d,e,t=this.$medias=J.slider.$hiddenWrapper.find('iframe[src*="player.vimeo"], iframe[data-src*="player.vimeo"]'),c=J.slider.$hiddenWrapper.find('.ls-slide:eq(0) iframe[src*="player.vimeo"], .ls-slide:eq(0) iframe[data-src*="player.vimeo"]').length;t.length&&(J.timeouts.loadVimeo=Math.floor(Date.now()/1e3),J.media.properties.$allMediaLayers=J.media.properties.$allMediaLayers.add(t.closest(".ls-layer")),d=0,ie("<script>").attr({src:"https://player.vimeo.com/api/player.js",type:"text/javascript"}).appendTo("head"),J.intervals.isVimeoReady=setInterval(function(){J.functions.setStates(J.slider,{waitingForVimeo:!0}),(window.Vimeo||3<Math.floor(Date.now()/1e3)-J.timeouts.loadVimeo)&&(clearInterval(J.intervals.isVimeoReady),delete J.intervals.isVimeoReady,delete J.timeouts.loadVimeo,e())},25),e=function(){var l=0;J.media.vimeo.$medias.each(function(){var t=ie(this).attr({id:"ls-vimeo-"+ ++d,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowfullscreen:""}),i=t.closest(".ls-layer");i.data("hasBeenSet")||J.layers.set.singleLayer(i);var s=i.data(J.defaults.init.dataKey),e=t.attr("src")||t.attr("data-src"),a=J.media.functions.urlToObject(e),r="https://vimeo.com/api/oembed.json?url=http://vimeo.com/"+e.split("video/")[1].split("?")[0],e=e.split("?")[0].split("//")[1];J.media.vimeo.defaults.player_id="ls-vimeo-"+d;var o=J.media.set.customPoster(i,s);s.mediaProperties={type:"vimeo",$media:t,embedURL:e,embedOptions:a};function n(e){s.mediaProperties.poster=e,(0===c||0<c&&++l==c)&&(window._layerSlider.globals.vimeoIsReady=!0),J.media.set.properties(i,t,s)}o?n(o):ie.getJSON(r,function(e){n(e.thumbnail_url)}),i.on("playMedia."+B+" click."+B,".ls-vpcontainer",function(){J.media.set.thumbnail(ie(this),"hide"),J.media.functions.checkSlideshowState(i,s),J.media.vimeo.play(i,t,s,e)}).on("playBackgroundVideo."+B,function(){J.media.vimeo.play(i,t,s,e),J.layers.set.dataAttribute("add",i,"active")}).on("stopBackgroundVideo."+B,function(){J.media.vimeo.stop(i,t,s,!0),J.layers.set.dataAttribute("add",i,"hidden")}).on("preloadBackgroundVideo."+B,function(){J.media.vimeo.createPlayer(i,t,s,e,!0)})}),J.functions.setStates(J.slider,{waitingForVimeo:!1})})},createPlayer:function(e,t,i,s,a){i.mediaProperties.playerState="initializing";"controls"in i.mediaSettings&&delete i.mediaSettings.controls,"loop"in i.mediaSettings&&(i.mediaProperties.options.loop=i.mediaSettings.loop?1:0),"showinfo"in i.mediaSettings&&(i.mediaSettings.showinfo?(i.mediaProperties.options.byline=1,i.mediaProperties.options.portrait=1,i.mediaProperties.options.title=1):(i.mediaProperties.options.byline=0,i.mediaProperties.options.portrait=0,i.mediaProperties.options.title=0),delete i.mediaProperties.options.showinfo),"volume"in i.mediaSettings&&(0===i.mediaSettings.volume?(i.mediaSettings.volume=100,i.mediaSettings.muted=!0):(i.mediaSettings.volume<0||100<i.mediaSettings.volume)&&(i.mediaSettings.volume=100)),i.mediaSettings.muted&&(i.mediaProperties.options.muted=1),t.attr("src","https://"+s+"?"+jQuery.param(i.mediaProperties.options)),i.mediaProperties.player=new Vimeo.Player(t[0]),i.mediaProperties.player.on("play",function(){J.media.set.dataAttribute(t,"playing"),J.media.events.start(t,e,i)}),i.mediaProperties.player.on("pause",function(){J.media.set.dataAttribute(t,"not-playing")}),i.mediaProperties.player.on("ended",function(){J.media.functions.mediaEnded(t,e,i)}),i.mediaProperties.player.ready().then(function(){i.mediaProperties.playerState="ready",i.mediaSettings.volume&&!i.mediaSettings.muted&&ie.isNumeric(i.mediaSettings.volume)&&0<=i.mediaSettings.volume&&i.mediaSettings.volume<=100&&i.mediaProperties.player.setVolume(i.mediaSettings.volume/100),a||J.media.vimeo.play(e,t,i,s)})},play:function(t,i,s,a,e){void 0!==i.attr("data-ls-muted-by-browser")&&J.media.unmute.singleMediaElement(i),s.mediaProperties.player?(!s.is.backgroundVideo||"muted"in s.mediaSettings||s.mediaProperties.player.setVolume(0),s.mediaSettings.muted&&(J.o.rememberUnmuteState&&J.media.properties.userDidUnmute?J.o.rememberUnmuteState&&J.media.properties.userDidUnmute&&(s.mediaProperties.player.setVolume(s.mediaSettings.volume/100||1),delete s.mediaSettings.muted):(s.mediaProperties.player.setVolume(0),"offertounmute"==s.mediaSettings.muted&&J.media.unmute.set(i,s.mediaProperties.type))),e?(s.mediaProperties.player.setVolume(0),J.media.unmute.set(i,s.mediaProperties.type,!0)):s.mediaProperties.player.getVolume().then(function(e){0==e&&"offertounmute"==s.mediaSettings.muted&&J.media.unmute.set(i,s.mediaProperties.type)}),J.media.functions.allowedToPlay(i,s)?s.mediaProperties.player.play().then(function(){}).catch(function(e){switch(e.name){case"PasswordError":window.console&&(console.error(J.defaults.slider.errorText),console.error("Vimeo video is password protected and may cause playback issues."));break;case"PrivacyError":window.console&&(console.error(J.defaults.slider.errorText),console.error("Vimeo video is private and may cause playback issues."));break;default:J.media.vimeo.play(t,i,s,a,!0)}}):J.media.vimeo.stop(t,i,s,!0)):this.createPlayer(t,i,s,a)},stop:function(e,t,i,s){i.mediaProperties.player&&(i.mediaProperties.player.pause(),s&&i.mediaProperties.player.setCurrentTime(0),i.is.backgroundVideo||J.media.set.thumbnail(e.find(".ls-vpcontainer"),"show"),J.media.events.stop(t,e,i))}},html5:{singleInit:function(t){var e,i,s,a,r=t.closest(".ls-layer"),o=r.data(J.defaults.init.dataKey),n=t.find("source"),l=J.media.set.customPoster(r,o);o.mediaProperties={type:"html5",$media:t,poster:l||t.attr("poster")},t.removeAttr("poster"),0<n.length?n.each(function(){void 0!==(e=ie(this).attr("type"))&&!1!==e||(i=ie(this).attr("src"),s=i.split("."),a=s[s.length-1].toLowerCase(),ie(this).attr("type",ie(this).parent()[0].tagName.toLowerCase()+"/"+a)),""!==t[0].canPlayType(ie(this).attr("type"))&&(o.mediaProperties.canBePlayed=!0)}):void 0!==t.attr("src")&&!1!==t.attr("src")&&(i=t.attr("src"),s=i.split("."),a=s[s.length-1].toLowerCase(),""!==t[0].canPlayType(t[0].tagName.toLowerCase()+"/"+a)&&(o.mediaProperties.canBePlayed=!0)),o.mediaProperties.canBePlayed&&(J.media.set.properties(r,t,o),t.on("ended."+B,function(){J.media.functions.mediaEnded(t,r,o)}).on("play."+B,function(){}).on("playing."+B,function(){J.media.events.start(t,r,o),J.media.set.dataAttribute(t,"playing")}).on("pause."+B,function(){J.media.set.dataAttribute(t,"not-playing")}),r.on("playMedia."+B+" click."+B,".ls-vpcontainer",function(e){J.media.set.thumbnail(ie(this),"hide"),J.media.functions.checkSlideshowState(r,o),J.media.html5.play(r,t,o)}).on("playBackgroundVideo."+B,function(){J.media.html5.play(r,t,o),J.layers.set.dataAttribute("add",r,"active")}).on("stopBackgroundVideo."+B,function(){J.media.html5.stop(r,t,o,!0),J.layers.set.dataAttribute("add",r,"hidden")}))},init:function(){var e,t=J.slider.$hiddenWrapper.find("video, audio");J.media.properties.$allMediaLayers=J.media.properties.$allMediaLayers.add(t.closest(".ls-layer")),t.length&&(e=0,t.each(function(){ie(this).closest(".ls-layer").data(J.defaults.init.dataKey).is.mediaLayer=!0,ie(this).attr("id","ls-html5-"+ ++e).attr("playsinline",""),ie(this)[0].pause()}))},play:function(e,t,i){var s;i.mediaProperties.canBePlayed&&(void 0!==t.attr("data-ls-muted-by-browser")&&J.media.unmute.singleMediaElement(t),i.mediaSettings.muted&&(J.o.rememberUnmuteState&&J.media.properties.userDidUnmute?J.o.rememberUnmuteState&&J.media.properties.userDidUnmute&&(t[0].muted=!1):(t[0].muted=!0,"offertounmute"==i.mediaSettings.muted&&J.media.unmute.set(t,i.mediaProperties.type))),void 0!==(s=t[0].play())&&s.then(function(e){}).catch(function(e){t[0].muted=!0,t[0].play(),t[0].paused&&J.functions.setStates(J.slideshow,{pausedByVideo:!1}),J.media.unmute.set(t,i.mediaProperties.type,!0)}))},stop:function(e,t,i,s){i.mediaProperties.canBePlayed&&(t[0].pause(),s&&(t[0].currentTime=0),i.is.backgroundVideo||J.media.set.thumbnail(ie(this),"show"),J.media.events.stop(t,e,i))}}},J.yourLogo={init:function(){J.o.yourLogo&&(this.$element=ie("<img>").addClass("ls-yourlogo").appendTo($).attr("style",J.o.yourLogoStyle).css({visibility:"hidden",display:"bock"}).on("load."+B,function(){var e=J.yourLogo.$element?500:0;J.timeouts.yourLogo=setTimeout(function(){delete J.timeouts.yourLogo,J.yourLogo.$element.data("originalWidth",J.yourLogo.$element.width()),J.yourLogo.$element.data("originalHeight",J.yourLogo.$element.height()),"auto"!=J.yourLogo.$element.css("left")&&J.yourLogo.$element.data("originalLeft",J.yourLogo.$element[0].style.left),"auto"!=J.yourLogo.$element.css("right")&&J.yourLogo.$element.data("originalRight",J.yourLogo.$element[0].style.right),"auto"!=J.yourLogo.$element.css("top")&&J.yourLogo.$element.data("originalTop",J.yourLogo.$element[0].style.top),"auto"!=J.yourLogo.$element.css("bottom")&&J.yourLogo.$element.data("originalBottom",J.yourLogo.$element[0].style.bottom),!1!==J.o.yourLogoLink&&ie("<a>").appendTo($).attr("href",J.o.yourLogoLink).attr("target",J.o.yourLogoTarget).css({textDecoration:"none",outline:"none"}).append(J.yourLogo.$element),J.yourLogo.$element.css({display:"none",visibility:"visible"}),J.yourLogo.resize()},e)}).attr("src",J.o.yourLogo))},resize:function(){this.$element.css({width:this.$element.data("originalWidth")*J.resize.ratio,height:this.$element.data("originalHeight")*J.resize.ratio}),this.$element.fadeIn(300);var e="auto",t="auto",i="auto",s="auto",e=this.$element.data("originalLeft")&&-1!=this.$element.data("originalLeft").indexOf("%")?$.width()/100*parseFloat(this.$element.data("originalLeft"))-this.$element.width()/2+parseInt($.css("padding-left")):parseInt(this.$element.data("originalLeft"))*J.resize.ratio,t=this.$element.data("originalRight")&&-1!=this.$element.data("originalRight").indexOf("%")?$.width()/100*parseFloat(this.$element.data("originalRight"))-this.$element.width()/2+parseInt($.css("padding-right")):parseInt(this.$element.data("originalRight"))*J.resize.ratio,i=this.$element.data("originalTop")&&-1!=this.$element.data("originalTop").indexOf("%")?$.height()/100*parseFloat(this.$element.data("originalTop"))-this.$element.height()/2+parseInt($.css("padding-top")):parseInt(this.$element.data("originalTop"))*J.resize.ratio,s=this.$element.data("originalBottom")&&-1!=this.$element.data("originalBottom").indexOf("%")?$.height()/100*parseFloat(this.$element.data("originalBottom"))-this.$element.height()/2+parseInt($.css("padding-bottom")):parseInt(this.$element.data("originalBottom"))*J.resize.ratio;this.$element.css({left:e,right:t,top:i,bottom:s})}},J.gui={navigation:{init:function(){J.o.navPrevNext&&this.prevNext.init(),(J.o.navStartStop||J.o.navButtons)&&this.bottom.init()},prevNext:{init:function(){ie('<a class="ls-gui-element ls-nav-prev" aria-label="jump to the previous slide" href="#" />').on("click."+B,function(e){e.preventDefault(),$.layerSlider("prev")}).appendTo($),ie('<a class="ls-gui-element ls-nav-next" aria-label="jump to the next slide" href="#" />').on("click."+B,function(e){e.preventDefault(),$.layerSlider("next")}).appendTo($),J.o.hoverPrevNext&&this.setHover()},setHover:function(){$.find(".ls-nav-prev, .ls-nav-next").css({display:"none"}),$.on("mouseenter."+B,function(){J.gui.navigation.forceHide||$.find(".ls-nav-prev, .ls-nav-next").stop(!0,!0).fadeIn(300)}).on("mouseleave."+B,function(){$.find(".ls-nav-prev, .ls-nav-next").stop(!0,!0).fadeOut(300)})}},bottom:{init:function(){this.wrapper=ie('<div class="ls-gui-element ls-bottom-nav-wrapper" />').appendTo($),J.o.navButtons&&"always"!=J.o.thumbnailNavigation&&this.bullets.init(),J.o.navStartStop?this.createStartStop():"always"!=J.o.thumbnailNavigation&&this.createSides(),J.o.hoverBottomNav&&"always"!=J.o.thumbnailNavigation&&this.setHover(),"always"==J.o.thumbnailNavigation&&(this.wrapper.addClass("ls-above-thumbnails"),this.thumbnails.init())},bullets:{init:function(){var t=this;ie('<span class="ls-bottom-slidebuttons" />').appendTo($.find(".ls-bottom-nav-wrapper"));for(var e=0;e<J.slides.count;e++){var i=ie('<a href="#" aria-label="jump to slide '+(e+1)+'" />').appendTo($.find(".ls-bottom-slidebuttons")).data("index",e+1).on("click."+B,function(e){e.preventDefault(),$.layerSlider(ie(this).data("index"))});"hover"==J.o.thumbnailNavigation&&i.on("mouseenter."+B,function(){var e=ie(this);$.find(".ls-thumbnail-hover-img").css({left:parseInt(t.hoverWrapper.css("padding-left")),top:parseInt(t.hoverWrapper.css("padding-top"))}),t.hoverImage.on("load."+B,function(){0===ie(this).width()?t.hoverImage.css({position:"relative",margin:"0 auto",left:"auto"}):t.hoverImage.css({position:"absolute",marginLeft:-ie(this).width()/2,left:"50%"}),t.hoverImage.css("display","none").stop(!0,!0).fadeIn(250)}).attr("src",J.slides[e.data("index")].data.thumbnail),t.hoverWrapper.css({display:"block"}).stop().animate({left:ie(this).position().left+(ie(this).width()-t.hoverWrapper.outerWidth())/2},250),t.hoverWrapperInner.css({display:"none",visibility:"visible"}).stop().fadeIn(250)}).on("mouseleave."+B,function(){t.hoverWrapperInner.stop().fadeOut(250,function(){t.hoverWrapper.css({visibility:"hidden",display:"block"})})})}t.set.active(J.slides.first.index),"hover"==J.o.thumbnailNavigation&&t.set.hover()},set:{active:function(e){void 0===e&&(e=J.slides.current.index),e--,$.find(".ls-bottom-slidebuttons a").removeClass("ls-nav-active"),$.find(".ls-bottom-slidebuttons a:eq( "+e+" )").addClass("ls-nav-active")},hover:function(){var e=J.gui.navigation.bottom.bullets,t=ie('<div class="ls-thumbnail-hover"><div class="ls-thumbnail-hover-inner"><div class="ls-thumbnail-hover-bg"></div><div class="ls-thumbnail-hover-img"><img></div><span></span></div></div>').appendTo($.find(".ls-bottom-slidebuttons"));$.find(".ls-thumbnail-hover, .ls-thumbnail-hover-img").css({width:J.o.tnWidth,height:J.o.tnHeight}),e.hoverWrapper=$.find(".ls-thumbnail-hover"),e.hoverImage=e.hoverWrapper.find("img").css({height:J.o.tnHeight}),e.hoverWrapperInner=$.find(".ls-thumbnail-hover-inner").css({visibility:"hidden",display:"block"}),t.appendTo($.find(".ls-bottom-slidebuttons"))}}},createStartStop:function(){this.buttonStart=ie('<a class="ls-nav-start" aria-label="start slideshow" href="#" />').on("click."+B,function(e){e.preventDefault(),$.layerSlider("start")}).prependTo($.find(".ls-bottom-nav-wrapper")),this.buttonStop=ie('<a class="ls-nav-stop" aria-label="stop slideshow" href="#" />').on("click."+B,function(e){e.preventDefault(),$.layerSlider("stop")}).appendTo($.find(".ls-bottom-nav-wrapper")),J.o.autoStart?this.setStartStop("start"):this.setStartStop("stop")},setStartStop:function(e){if(J.o.navStartStop)switch(e){case"start":this.buttonStart.addClass("ls-nav-start-active"),this.buttonStop.removeClass("ls-nav-stop-active");break;case"stop":this.buttonStart.removeClass("ls-nav-start-active"),this.buttonStop.addClass("ls-nav-stop-active")}},createSides:function(){ie('<span class="ls-nav-sides ls-nav-sideleft" />').prependTo($.find(".ls-bottom-nav-wrapper")),ie('<span class="ls-nav-sides ls-nav-sideright" />').appendTo($.find(".ls-bottom-nav-wrapper"))},setHover:function(){var e=this;e.wrapper.css({display:"none"}),$.on("mouseenter."+B,function(){J.gui.navigation.forceHide||e.wrapper.stop(!0,!0).fadeIn(300)}).on("mouseleave."+B,function(){e.wrapper.stop(!0,!0).fadeOut(300)})},switchHelper:function(e){if(J.o.hoverBottomNav&&!$.hasClass("ls-hover"))switch(e){case"on":J.gui.navigation.bottom.thumbnails.wrapper.css({visibility:"hidden",display:"block"});break;case"off":J.gui.navigation.bottom.thumbnails.wrapper.css({visibility:"visible",display:"none"})}},thumbnails:{init:function(){this.wrapper=ie('<div class="ls-gui-element ls-thumbnail-wrapper '+("contain"!==J.o.tnFillMode?"ls-thumbnail-fill":"")+'"></div>').appendTo($),ie('<div class="ls-thumbnail"><div class="ls-thumbnail-inner"><div class="ls-thumbnail-slide-container"><div class="ls-thumbnail-slide"></div></div></div></div>').appendTo(this.wrapper),this.$element=$.find(".ls-thumbnail-slide-container"),"ontouchstart"in window?this.$element.addClass("ls-touchscroll"):this.$element.on("mouseenter."+B,function(){ie(this).addClass("ls-thumbnail-slide-hover")}).on("mouseleave."+B,function(){ie(this).removeClass("ls-thumbnail-slide-hover"),J.gui.navigation.bottom.thumbnails.scroll()}).on("mousemove."+B,function(e){e=parseInt(e.pageX-ie(this).offset().left)/ie(this).width()*(ie(this).width()-ie(this).find(".ls-thumbnail-slide").width());ie(this).find(".ls-thumbnail-slide").stop().css({marginLeft:e})});for(var e=0;e<J.slides.count;e++){var t=e+1,i=J.slides[t].data.thumbnail,s="";"contain"!==J.o.tnFillMode&&(i="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",s='style="background-image: url('+J.slides[t].data.thumbnail+"); background-size: "+J.o.tnFillMode+';"');i=ie('<a href="#" class="ls-thumb-'+(e+1)+'"  aria-label="jump to slide '+(e+1)+'"><img '+s+' src="'+i+'"></a>');J.slides[t].data.tnAlt&&i.find("img").attr("alt",J.slides[t].data.tnAlt),i.data("index",t).on("click."+B,function(e){e.preventDefault(),$.layerSlider(ie(this).data("index"))}).appendTo($.find(".ls-thumbnail-slide")),"ontouchstart"in window||i.on("mouseenter."+B,function(){ie(this).children().stop().fadeTo(300,J.o.tnActiveOpacity/100)}).on("mouseleave."+B,function(){ie(this).children().hasClass("ls-thumb-active")||ie(this).children().stop().fadeTo(300,J.o.tnInactiveOpacity/100)})}J.gui.navigation.bottom.buttonStart&&J.gui.navigation.bottom.buttonStop&&(J.gui.navigation.bottom.wrapper=ie('<div class="ls-bottom-nav-wrapper ls-below-thumbnails"></div>').appendTo($),J.gui.navigation.bottom.buttonStart.clone().on("click."+B,function(e){e.preventDefault(),$.layerSlider("start")}).appendTo(J.gui.navigation.bottom.wrapper),J.gui.navigation.bottom.buttonStop.clone().on("click."+B,function(e){e.preventDefault(),$.layerSlider("stop")}).appendTo(J.gui.navigation.bottom.wrapper)),J.o.hoverBottomNav&&this.setHover()},setHover:function(){var e=this;e.wrapper.css("display","none"),J.gui.navigation.bottom.wrapper&&(J.gui.navigation.bottom.wrapper="block"==J.gui.navigation.bottom.wrapper.css("display")?J.gui.navigation.bottom.wrapper:$.find(".ls-above-thumbnails"),J.gui.navigation.bottom.wrapper.css("display","none")),$.on("mouseenter."+B,function(){$.addClass("ls-hover"),J.gui.navigation.forceHide||(e.wrapper.stop(!0,!0).fadeIn(300),J.gui.navigation.bottom.wrapper&&J.gui.navigation.bottom.wrapper.stop(!0,!0).fadeIn(300))}).on("mouseleave."+B,function(){$.removeClass("ls-hover"),e.wrapper.stop(!0,!0).fadeOut(300),J.gui.navigation.bottom.wrapper&&J.gui.navigation.bottom.wrapper.stop(!0,!0).fadeOut(300)})},change:function(e){e=e||J.slides.next.index;$.find(".ls-thumbnail-slide a:not(.ls-thumb-"+e+" )").children().each(function(){ie(this).removeClass("ls-thumb-active").stop().fadeTo(750,J.o.tnInactiveOpacity/100)}),$.find(".ls-thumbnail-slide a.ls-thumb-"+e).children().addClass("ls-thumb-active").stop().fadeTo(750,J.o.tnActiveOpacity/100)},scroll:function(){var e;$.find(".ls-thumbnail-slide-container").hasClass("ls-thumbnail-slide-hover")||(e=!!$.find(".ls-thumb-active").length&&$.find(".ls-thumb-active").parent())&&(e=e.position().left+e.width()/2,e=0<(e=(e=$.find(".ls-thumbnail-slide-container").width()/2-e)<$.find(".ls-thumbnail-slide-container").width()-$.find(".ls-thumbnail-slide").width()?$.find(".ls-thumbnail-slide-container").width()-$.find(".ls-thumbnail-slide").width():e)?0:e,$.find(".ls-thumbnail-slide").animate({marginLeft:e},600))},resize:function(){J.gui.navigation.bottom.switchHelper("on");var e=-1==J.slider.initial.width.indexOf("%")?parseInt(J.slider.initial.originalWidth):$.width(),t=$.find(".ls-thumbnail"),e=-1==J.o.tnContainerWidth.indexOf("%")?parseInt(J.o.tnContainerWidth):parseInt(e/100*parseInt(J.o.tnContainerWidth));$.find(".ls-thumbnail-slide a").css({width:parseInt(J.o.tnWidth*J.resize.ratio),height:parseInt(J.o.tnHeight*J.resize.ratio)}),$.find(".ls-thumbnail-slide a:last").css({margin:0}),$.find(".ls-thumbnail-slide").css({height:parseInt(J.o.tnHeight*J.resize.ratio)}),t.css({width:e*Math.floor(100*J.resize.ratio)/100}),t.width()>$.find(".ls-thumbnail-slide").width()&&t.css({width:$.find(".ls-thumbnail-slide").width()}),J.gui.navigation.bottom.switchHelper("off")}}}},media:{init:function(){0<J.media.properties.$allMediaLayers.length&&ie('<div class="ls-gui-element ls-media-unmute" aria-label="Unmute"><div class="ls-media-unmute-bg"></div><div class="ls-icon-muted"></div><div class="ls-icon-unmuted"></div></div>').on("click."+B,function(e){e.preventDefault(),$.layerSlider("unmute")}).appendTo($)},showUnmute:function(){$.find(".ls-media-unmute").addClass("ls-media-unmute-active")},hideUnmute:function(){$.find(".ls-media-unmute").removeClass("ls-media-unmute-active")}},skin:{load:function(){$.addClass("ls-"+J.o.skin);var e,t=J.o.skinsPath+J.o.skin+"/skin.css",i=ie("head").length?ie("head"):ie("body");ie('link[href="'+t+'"]').length?(e=ie('link[href="'+t+'"]'),J.gui.skin.isLoaded||(J.gui.skin.isLoaded=!0,J.timeouts.skinLoad1=setTimeout(function(){delete J.timeouts.skinLoad1,J.slider.init()},150))):e=document.createStyleSheet?(document.createStyleSheet(t),ie('link[href="'+t+'"]')):ie('<link rel="stylesheet" href="'+t+'" type="text/css" />').appendTo(i),e.on("load."+B,function(){J.gui.skin.isLoaded||(J.gui.skin.isLoaded=!0,J.timeouts.skinLoad2=setTimeout(function(){delete J.timeouts.skinLoad2,J.slider.init()},150))}),M.on("load."+B,function(){J.gui.skin.isLoaded||(J.gui.skin.isLoaded=!0,J.timeouts.skinLoad3=setTimeout(function(){delete J.timeouts.skinLoad3,J.slider.init()},150))}),J.timeouts.skinLoad4=setTimeout(function(){J.gui.skin.isLoaded||(J.gui.skin.isLoaded=!0,delete J.timeouts.skinLoad4,J.slider.init())},1e3)}},shadow:{init:function(){this.set(),this.resize()},set:function(){this.$element=ie('<div class="ls-gui-element ls-shadow"></div>').appendTo($),"block"!=this.$element.css("display")||this.$element.find("img").length||(this.show=function(){J.gui.shadow.$element.css({display:"none",visibility:"visible"}).fadeIn(500,function(){J.gui.shadow.show=!1})},this.image=ie("<img>").attr("src",J.o.skinsPath+J.o.skin+"/shadow.png").appendTo(this.$element),this.btmMod="number"==typeof parseInt($.css("padding-bottom"))?parseInt($.css("padding-bottom")):0)},resize:function(){this.image&&(0<this.image.height()?0<this.btmMod?this.$element.css({height:this.image.height()/2}):this.$element.css({height:this.image.height(),marginTop:-this.image.height()/2}):J.timeouts.resizeShadow=setTimeout(function(){delete J.timeouts.resizeShadow,J.gui.shadow.resize()},50))}},timers:{init:function(){J.o.showBarTimer&&this.bar.create(),J.o.showCircleTimer&&this.circle.create();var e=!1;(e=J.o.showSlideBarTimer?ie("<div>").insertAfter($):ie('[data-slidebar-for="'+$.attr("id")+'"], [data-slidebar-for="'+B+'"]')).length&&(e.addClass("ls-gui-element"),this.slidebar.create(e))},bar:{create:function(){this.$element=ie("<div>").addClass("ls-gui-element ls-bar-timer").appendTo($)}},circle:{create:function(){this.$element=ie("<div>").addClass("ls-gui-element ls-circle-timer").appendTo($),this.$element.append(ie('<div class="ls-ct-center"></div><div class="ls-ct-left"><div class="ls-ct-rotate"><div class="ls-ct-hider"><div class="ls-ct-half"></div></div></div></div><div class="ls-ct-right"><div class="ls-ct-rotate"><div class="ls-ct-hider"><div class="ls-ct-half"></div></div></div></div>')),this.$element.data("original",{opacity:this.$element.css("opacity")})}},slidebar:{$containerElement:[],$element:[],$progressBarElement:[],$sliderContainerElement:[],$sliderElement:[],elementWidth:[],containerElementWidth:[],sliderContainerElementWidth:[],state:{},create:function(e){function i(e,t){(a=(e.pageX||J.device.touchX||0)-o.$element[t].offset().left-o.sliderContainerElementWidth[t]/2)<0&&(a=0),a>o.containerElementWidth[t]-o.sliderContainerElementWidth[t]&&(a="calc( 100% - "+J.gui.timers.slidebar.sliderContainerElementWidth[t]+"px )"),o.$sliderContainerElement[t].css({left:a}),J.transitions._slideTimeline&&J.transitions._slideTimeline.progress("string"==typeof a?J.transitions.layers.timeline.progress:a/(o.containerElementWidth[t]-o.sliderContainerElementWidth[t])*J.transitions.layers.timeline.progress)}function s(e){"dragging"==J.gui.timers.slidebar.state&&(J.transitions._slideTimeline&&J.transitions.layers.timeline.state.finished&&J.transitions._slideTimeline.progress()!==J.transitions.layers.timeline.progress&&J.functions.setStates(J.transitions.layers.timeline,{finished:!1}),ie(document).off("mousemove."+B),ie("body").prop("unselectable",!1).removeClass("ls-unselectable"),J.o.pauseLayers&&!J.slideshow.state.running||J.slider.state.isPaused||!J.transitions._slideTimeline||J.o.playByScroll||(!0===J.transitions.layers.timeline.state.started?J.transitions.layers.timeline.resume():J.transitions.layers.timeline.play()),J.gui.timers.slidebar.state=!1)}var a,r=ie(document),o=this;ie.each(e,function(t,e){o.$containerElement[t]=ie(e).addClass("ls-slidebar-container "+B),o.$element[t]=ie("<div>").addClass("ls-slidebar").appendTo(o.$containerElement[t]),o.$progressBarElement[t]=ie("<div>").addClass("ls-progressbar").appendTo(o.$element[t]),o.$sliderContainerElement[t]=ie("<div>").addClass("ls-slidebar-slider-container").appendTo(o.$containerElement[t]),o.$sliderElement[t]=ie("<div>").addClass("ls-slidebar-slider").appendTo(o.$sliderContainerElement[t]),o.sliderContainerElementWidth[t]=o.$sliderContainerElement[t].width(),o.$sliderContainerElement[t].css({marginTop:-o.$sliderElement[t].outerHeight()/2}),o.$containerElement[t].on("touchmove."+B,function(e){i(e,t)}),o.$containerElement[t].on("touchend."+B,function(e){s()}),o.$containerElement[t].on("mousedown."+B+" touchstart."+B,function(e){J.transitions.layers.timeline.pause(0),ie("body").prop("unselectable",!0).addClass("ls-unselectable"),ie(document).on("mousemove."+B,function(e){i(e,t)}),i(e,t),J.gui.timers.slidebar.state="dragging"}),r=r.add(o.$sliderElement[t])}),ie("body").on("mouseup."+B,function(e){s()})}}},loadingIndicator:{init:function(){this.$element=ie("<div>").css({display:"none"}).addClass("ls-gui-element ls-loading-container").appendTo($),ie("<div>").addClass("ls-loading-indicator").appendTo(this.$element)},show:function(){this.$element.delay(400).fadeIn(300)},hide:function(){this.$element.stop(!0,!0).fadeOut(300)}}},J.navigation={direction:"next",init:function(){1<J.slides.count&&(this.set.keyboard(),this.set.touch())},set:{keyboard:function(){J.o.keybNav&&ie("body").on("keydown."+B,function(e){ie(e.target).is(":input")||J.slider.isAnimating||J.slider.isPreloading||(37==e.which?J.navigation.prev():39==e.which&&J.navigation.next())})},touch:function(){"ontouchstart"in window&&J.o.touchNav&&(J.slider.$innerWrapper.on("touchstart."+B,function(e){e=e.touches||e.originalEvent.touches;1==e.length&&(J.device.touchStartX=J.device.touchEndX=e[0].clientX)}),J.slider.$innerWrapper.on("touchmove."+B,function(e){var t=e.touches||e.originalEvent.touches;1==t.length&&(J.device.touchEndX=t[0].clientX),45<Math.abs(J.device.touchStartX-J.device.touchEndX)&&e.preventDefault()}),J.slider.$innerWrapper.on("touchend."+B,function(e){45<Math.abs(J.device.touchStartX-J.device.touchEndX)&&(0<J.device.touchStartX-J.device.touchEndX?$.layerSlider("touchNext"):$.layerSlider("touchPrev"))}))}},prev:function(){(!J.slider.isPopup||J.slider.isPopup&&J.slider.state.popupIsVisible)&&(this.direction="prev",this.forceDirection="prev",J.slideshow.set.prevNext("prev"))},next:function(){(!J.slider.isPopup||J.slider.isPopup&&J.slider.state.popupIsVisible)&&(this.direction="next",this.forceDirection="next",J.slideshow.set.prevNext("next"))},start:function(){J.functions.setStates(J.slideshow,{running:!0,paused:!1}),!0===J.slideshow.state.pausedByLastCycle&&J.functions.setStates(J.slideshow,{pausedByLastCycle:!1}),J.gui.navigation.bottom.setStartStop("start"),J.slideshow.state.pausedByHover||1!==J.transitions._slideTimeline.timeScale()&&J.transitions.layers.timeline.resume(),J.slideshow.start()},stop:function(){J.gui.navigation.bottom.setStartStop("stop"),J.o.pauseLayers&&J.transitions.layers.timeline.pause(),J.slideshow.stop()}},J.preload={init:function(){J.slider.$hiddenWrapper.find(".ls-slide img").each(function(){var e,t=ie(this),i=t[0],s={};t.is(".ls-layer, .ls-bg")&&(i.getAttribute("width")&&(s.width=i.getAttribute("width")),i.getAttribute("height")&&(s.height=i.getAttribute("height")),i.sizes&&(s.sizes=i.sizes),J.o.useSrcset&&(t.data("srcset")||i.srcset)&&(s.srcSet=t.data("srcset")||i.srcset,s.curSrc=i.currentSrc,e=s.srcSet.split(",").map(function(e){return parseInt(ie.trim(e).split(" ")[1])}),s.maxWidth=Math.max.apply(null,e)),t.removeAttr("width height sizes srcset loading"),ie.isEmptyObject(s)||(t.data(J.defaults.init.dataKey).attributes=s)),t.data("lazy-src")?t.data("src",t.data("lazy-src")):t.attr("data-lazy-src")?t.data("src",t.attr("data-lazy-src")):t.attr("data-lazy")?t.data("src",t.attr("data-lazy")):t.data("src")?s.curSrc&&t.data("src",s.curSrc):t.data("src",s.curSrc||i.src),t.attr("data-lazyset")?t.attr("srcset",t.attr("data-lazyset")):t.attr("data-lazy-srcset")&&t.attr("srcset",t.attr("data-lazy-srcset")),t.removeAttr("data-lazy-src data-lazy data-lazyset data-lazy-srcset"),t.attr("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")})},imagesOfSlide:function(e,t){var i,s,a;!0!==J.slides[e].wrapped?(this.slideIndex=e,t?(this.onCompleteCallback=t,J.functions.setStates(J.slider,{preloadingImages:!0}),J.gui.loadingIndicator.show()):this.onCompleteCallback=!1,J.slider.canShow&&$.css({visibility:"visible"}),this.preImages=[],i=this,J.slider.$hiddenWrapper.find(".ls-slide:eq("+(i.slideIndex-1)+") *").each(function(){s=ie(this),a=this;var e,t=s.data(J.defaults.init.dataKey);s.is("img")?(s.data("src")&&s.attr("src",s.data("src")),t&&t.attributes&&t.attributes.srcSet&&J.o.useSrcset&&(a.srcset=t.attributes.srcSet),e=a.src,(t=!!(t&&t.attributes&&t.attributes.curSrc)&&t.attributes.curSrc)&&e!==t&&s.is(".ls-bg")&&(e=t,J.slides[i.slideIndex].data.$background.attr("src",e)),J.preload.preImages.push([e,s])):"none"!==s.css("background-image")&&-1!==s.css("background-image").indexOf("url")&&J.preload.preImages.push([s.css("background-image").match(/url\(['"]?(.+?)['"]?\)/)[1],s])}),J.transitions.firstSlide&&J.o.globalBGImage&&J.preload.preImages.push([J.o.globalBGImage,ie()]),this.thumbnailsAreLoaded||this.thumbnails(),0===this.preImages.length?this.onComplete():this.start()):J.slider.shouldResize&&t?(J.resize.setLayers(J.layers.get("next, bg")),J.resize.layers(t)):t&&t()},thumbnails:function(){for(var e=J.slider.thumbnails.filter(function(e,t,i){return i.indexOf(e)==t}),t=e.length,i=0;i<t;i++)(new Image).src=e[i];this.thumbnailsAreLoaded=!0},start:function(){J.debugMode&&(J.debug.add("group","preload"),J.debug.add("log","preload.info",this.slideIndex)),this.preloadedImagesCount=0;for(var e,t=this,i=function(){++t.preloadedImagesCount==t.preImages.length&&(J.debugMode&&J.debug.groupEnd(),t.onComplete())},s=function(){J.debugMode&&(e=this.src.substring(this.src.lastIndexOf("/")+1,this.src.length),J.debug.add("log","preload.success",e)),this.originalLayer.data("preloadedWidth",this.width),this.originalLayer.data("preloadedHeight",this.height),i()},a=function(){J.debugMode&&(e=this.src.substring(this.src.lastIndexOf("/")+1,this.src.length),J.debug.add("warn","preload.fail",e)),i()},r=0;r<this.preImages.length;r++){var o=new Image;o.addEventListener("error",a,!1),o.addEventListener("load",s,!1),o.src=this.preImages[r][0],o.originalLayer=this.preImages[r][1]}},onComplete:function(){var a=this;this.onCompleteCallback?(J.layers.wrap(this.slideIndex),function e(){var t,i,s;0!==J.slides[a.slideIndex].$layers.length?J.timeouts.waitForWrap=setTimeout(e,100):(delete J.timeouts.waitForWrap,J.functions.setStates(J.transitions.layers.parallax,{ready:!0}),ie(".ls-thumbnail-wrapper, .ls-nav-next, .ls-nav-prev, .ls-bottom-nav-wrapper").css({visibility:"visible"}),J.slides[a.slideIndex].wrapped=!0,t=!(!window._layerSlider.globals.youTubeIsReady&&J.layers.get("next,in,youtube,bgvideo").length),i=!(!window._layerSlider.globals.vimeoIsReady&&J.layers.get("next,in,vimeo,bgvideo").length),s=function(){J.gui.loadingIndicator.hide(),J.slider.shouldResize?(J.resize.setLayers(J.layers.get("next, bg")),J.resize.layers(a.onCompleteCallback)):a.onCompleteCallback()},t&&i?s():J.intervals.waitForJSApisLoaded=setInterval(function(){(t||window._layerSlider.globals.youTubeIsReady)&&(i||window._layerSlider.globals.vimeoIsReady)&&(clearInterval(J.intervals.waitForJSApisLoaded),delete J.intervals.waitForJSApisLoaded,s())},50))}()):J.layers.wrap(this.slideIndex,!0),J.functions.setStates(J.slider,{preloadingImages:!1})}},J.resize={setLayers:function(e){this.$responsiveLayers=e.add(J.layers.get("active")),J.slides.next.data.$backgroundVideo.length&&(this.$responsiveLayers=this.$responsiveLayers.add(J.slides.next.data.$backgroundVideo))},all:function(e={}){return!(J.slider.state.isHidden&&!J.slider.isPopup)&&(!!document.body.contains(I)&&(J.api.hasEvent("sliderWillResize")&&J.api.triggerEvent("sliderWillResize",J.api.eventData()),this.slider(!!e.forceToGetParentWidth),J.o.performanceMode&&this.performance(),J.slider.isScene&&!J.slider.$spacingWrapper.is("[data-disabled-scene]")&&this.scene(),this.navigation(),this.layers(),this.yourLogo(),this.shadow(),this.timers(),J.transitions.layers.timeline.shouldRestart&&J.o.allowRestartOnResize&&(J.functions.resetSlideTimelines(),J.transitions.layers.timeline.create(!0),J.slider.isScrollScene&&J.transitions._slideTimeline&&J.transitions.scrollscene.animate()),void(J.api.hasEvent("sliderDidResize")&&J.api.triggerEvent("sliderDidResize",J.api.eventData()))))},viewport:function(){M.scrollTop(Math.round(J.slider.offset.top)-(te.viewport.height-J.slider.height)/2)},slider:function(e){if(!document.body.contains(I))return!1;te.viewport.width||M.trigger("resize.lsGlobal"),J.o.fixFloatedContainers&&$.css("display","none");var t,i,s,a=J.slider.$parentWithNumericWidthValue&&0<J.slider.$parentWithNumericWidthValue.width()&&!e?J.slider.$parentWithNumericWidthValue:J.functions.getSliderClosestParentElementWithNumericValueOfProperty("width"),r=J.slider.initial,o=J.slider.$parentWithNumericWidthValuePercent?a.width()/100*J.slider.$parentWithNumericWidthValuePercent:a.width(),n=r.type,l=0!==r.maxWidth?r.maxWidth:o,d="auto"===r.marginLeft?0:r.marginLeft,e="auto"===r.marginRight?0:r.marginRight;switch(J.o.fixFloatedContainers&&$.css("display","block"),-1!==l.indexOf("%")?l=o/100*parseInt(l):-1!==l.indexOf("vw")&&(l=te.viewport.width/100*parseInt(l)),J.slider.state.inFullscreen?$[0].style.maxWidth="":0!==r.maxWidth&&($[0].style.maxWidth=l),l<(o-=d+e)&&0<=l&&(o=l),J.o.fitScreenWidth&&("fullwidth"===n||"fullsize"===n&&"fitheight"!==J.o.fullSizeMode&&"fitwidth"!==J.o.fullSizeMode)&&(d=a.offset().left,e=parseInt(a.css("padding-left"))||0,l=parseInt(a.css("border-left-width"))||0,$[0].style.maxWidth="100vw",$[0].style.marginLeft=-(d+e+l)+"px",o=te.viewport.width),o-=r.skinWidth,te.getScreenSize(),J.slider.state.inFullscreen&&(o=te.screen.width),n){case"responsive":0<J.o.maxRatio&&(o=Math.min(r.width*J.o.maxRatio,o)),t=(J.slider.state.inFullscreen?(te.screen.ratio>r.ratio?this.ratio=te.screen.height/r.height:this.ratio=te.screen.width/r.width,o=Math.round(r.width*this.ratio)):this.ratio=o/r.width,Math.round(r.height*this.ratio));break;case"fullwidth":t=o<J.o.responsiveUnder?(this.ratio=o/J.o.responsiveUnder,Math.round(r.height*this.ratio)):J.slider.state.inFullscreen?te.screen.ratio>r.layersWidth/r.height?(this.ratio=te.screen.height/r.height,te.screen.height):(this.ratio=te.screen.width/r.layersWidth,r.height*this.ratio):(this.ratio=1,r.height);break;case"fullsize":switch(J.o.fullSizeMode.toLowerCase()){case"normal":t=te.viewport.height-r.skinHeight;break;case"hero":var c=Math.max($.offset().top,0),p=J.slider.isScene?J.slider.$spacingWrapper:$;J.slider.isScene&&(c=0);var u=ie(J.o.calculateOffsetFrom).length?ie(J.o.calculateOffsetFrom).height()+ie(J.o.calculateOffsetFrom)[0].getBoundingClientRect().top:0;u&&p.css("top",u),(t=te.viewport.height-r.skinHeight-(u||c))<=0&&(t=te.viewport.height-r.skinHeight);break;case"fitheight":o=a.width()-r.skinWidth,t=a.height()-r.skinHeight;break;case"fitwidth":o=a.width()-r.skinWidth,t=te.viewport.height-r.skinHeight}o/t<r.ratio?this.ratio=o/r.layersWidth:this.ratio=t/r.layersHeight;break;case"fixed":case"fixedsize":this.ratio=1,o=r.width,t=r.height,J.o.maxRatio=1,I.style.maxWidth="none"}this.ratio=J.o.maxRatio&&0<J.o.maxRatio&&this.ratio>J.o.maxRatio?J.o.maxRatio:this.ratio,I.style.width=o+"px",I.style.height=t+"px",J.slider.width=o,J.slider.height=t,te.isMobile?768<=te.viewport.width||te.viewport.width>te.viewport.height?$.removeClass("ls-device-is-phone").addClass("ls-device-is-tablet"):$.removeClass("ls-device-is-tablet").addClass("ls-device-is-phone"):$.removeClass("ls-device-is-phone ls-device-is-tablet").addClass("ls-device-is-desktop"),J.o.marginTop&&(i=-1!=J.o.marginTop.indexOf("sh")||-1!=J.o.marginTop.indexOf("%")?J.slider.height/100*parseInt(J.o.marginTop):J.o.marginTop),J.o.marginBottom&&(s=-1!=J.o.marginBottom.indexOf("sh")||-1!=J.o.marginBottom.indexOf("%")?J.slider.height/100*parseInt(J.o.marginBottom):J.o.marginBottom),J.slider.$spacingWrapper.css({marginTop:i,marginBottom:s}),J.slider.hasPinnedLayers&&J.slider.$layersWrapper.css({clip:"rect(0px "+J.slider.width+"px "+J.slider.height+"px 0px)"})},performance:function(){var e=parseInt(J.o.performanceModeThreshold);-1!==J.o.performanceModeThreshold.indexOf("sh")||-1!==J.o.performanceModeThreshold.indexOf("%")?J.performance.threshold=J.slider.height*(e/100):-1!==J.o.performanceModeThreshold.indexOf("vh")?J.performance.threshold=te.viewport.height*(e/100):-1!==J.o.performanceModeThreshold.indexOf("px")?J.performance.threshold=e:J.performance.threshold=J.slider.height*e,J.performance.threshold=Math.max(parseInt(J.performance.threshold),0)},scene:function(){var e;J.slider.isScrollScene&&J.o.sceneDuration?e=Math.round(J.slider.height+J.o.sceneDuration*J.slider.height/(J.o.sceneSpeed/100))+"px":J.slider.isSticky&&(-1!==J.o.sceneHeight.indexOf("sh")||-1!==J.o.sceneHeight.indexOf("%")?(e=J.slider.height*(parseInt(J.o.sceneHeight)/100),e=Math.round(Math.max(J.slider.height,e)),e+="px"):-1===J.o.sceneHeight.indexOf("px")&&-1===J.o.sceneHeight.indexOf("vh")?(e=J.slider.height*(J.o.sceneHeight||2),e=Math.round(Math.max(J.slider.height,e)),e+="px"):e=J.o.sceneHeight),e&&J.slider.$spacingWrapper.css({height:e}),$.css({top:J.transitions.scrollscene.stickLimit})},borderRadius:function(e,i){ie.isNumeric(e)&&(e=e.toString());var s="";return ie.each(e.split(" "),function(e,t){-1==t.indexOf("%")&&-1==t.indexOf("em")?s+=Math.round(parseInt(t)*i)+"px ":s+=t+" "}),ie.trim(s)},convertSingleValue:function(e,t){return-1==e.indexOf("em")?Math.round(parseInt(e)*t)+"px ":e},layers:function(e){if(this.$responsiveLayers){J.debugMode&&J.debug.add("group","resize");for(var t,i=this.$responsiveLayers,s=J.slider.initial,a=J.slider.width,r=J.slider.height,o=a/r,n=[],l=[],d=[],c=[],p=0,u=0,h=window.LS_previewZoom||1,m=0,f=i.length;m<f;m++){var g=i[m],y=ie(g),v=y.data(J.defaults.init.dataKey),w=!!v.is.insideLayerGroup&&y.data("$layerGroup"),b=!!v.is.insideLayerGroup&&w.data(J.defaults.init.dataKey),S=v.original,x=this.ratio;v.settings.minresponsiveratio&&x<v.settings.minresponsiveratio&&(x=v.settings.minresponsiveratio),v.settings.maxresponsiveratio&&x>v.settings.maxresponsiveratio&&(x=v.settings.maxresponsiveratio),v.settings.calculatedratio=x,!y.is("img")||"auto"!==S.width&&"auto"!==S.height||((_=v.elements.$_innerWrappers).addClass("ls-force-display-block ls-force-visibility-hidden"),"auto"===S.width&&(S.width=y.width()),"auto"===S.height&&(S.height=y.height()),_.removeClass("ls-force-display-block ls-force-visibility-hidden")),t="responsive"===s.type&&-1!==J.o.maxRatio?s.width:s.layersWidth,L="responsive"===s.type&&-1!==J.o.maxRatio?s.height:s.layersHeight,T=t,u="fullsize"===s.type||"fullwidth"===s.type||"responsive"===s.type?(p=0<t?(a-t*x)/2:0,0<L?(r-L*x)/2:0):(p=p<0?0:p,u<0?0:u);var T,k="fixed"==v.settings.position||"fixedx"==v.settings.position,C="fixed"==v.settings.position||"fixedy"==v.settings.position,O=a,P=r,L=v.is.insideLayerGroup?(C=k=!1,$=I=0,t=O=b.responsive.width,P=b.responsive.height):(t=T,L);v.is.pinned&&(J.slider.get.offset(),s.width,s.height,"responsive"!==s.type&&"fixedsize"!==s.type&&("fullsize"!==s.type||"fitheight"!==J.o.fullSizeMode&&!1!==J.o.fitScreenWidth)||(k?(t=O=te.viewport.width,p=0):(O=J.slider.width,p=J.slider.offset.left,t=s.width),C?(L=P=te.viewport.height,u=0):(P=J.slider.height,u=(te.viewport.height-J.slider.height)/2||0,L=s.height)));var I=k?0:p,$=C?0:u,B={width:k&&0!==S.percentWidth?O/100*S.percentWidth:S.width*x,height:C&&0!==S.percentHeight?P/100*S.percentHeight:S.height*x,paddingLeft:this.convertSingleValue(S.paddingLeft,x),paddingTop:this.convertSingleValue(S.paddingTop,x),paddingRight:this.convertSingleValue(S.paddingRight,x),paddingBottom:this.convertSingleValue(S.paddingBottom,x),borderLeftWidth:this.convertSingleValue(S.borderLeftWidth,x),borderTopWidth:this.convertSingleValue(S.borderTopWidth,x),borderRightWidth:this.convertSingleValue(S.borderRightWidth,x),borderBottomWidth:this.convertSingleValue(S.borderBottomWidth,x),borderRadius:this.borderRadius(S.borderRadius,x)},M={marginLeft:this.convertSingleValue(S.marginLeft,x),marginTop:this.convertSingleValue(S.marginTop,x),marginRight:this.convertSingleValue(S.marginRight,x),marginBottom:this.convertSingleValue(S.marginBottom,x)},W={},_={borderRadius:B.borderRadius};if((k||C)&&(S.percentHeight||S.percentWidth)&&v.is.imageLayer&&(S.percentHeight&&!S.percentWidth&&(B.width=S.width*(B.height/S.height)),S.percentWidth&&!S.percentHeight&&(B.height=S.height*(B.width/S.width))),("number"==typeof S.width&&S.width<0||"auto"==S.width||""==S.sWidth)&&J.debugMode&&J.debug.add("warn","resize.width",[m+1,S.width]),("number"==typeof S.height&&S.height<0||"auto"==S.height||""==S.sHeight)&&J.debugMode&&J.debug.add("warn","resize.height",[m+1,S.height]),v.is.textLayer&&(B.fontSize=S.fontSize*x,te.isMobile&&B.fontSize<v.styleSettings.minmobilefontsize?B.fontSize=v.styleSettings.minmobilefontsize:B.fontSize<v.styleSettings.minfontsize&&(B.fontSize=v.styleSettings.minfontsize),T=B.fontSize/S.fontSize,B.fontSize+="px",-1!==S.lineHeight.indexOf("px")&&(B.lineHeight=parseFloat(S.lineHeight)*T+"px"),-1!==S.letterSpacing.indexOf("px")&&(B.letterSpacing=parseFloat(S.letterSpacing)*T+"px"),-1!==S.textStrokeWidth.indexOf("px")&&(B.textStrokeWidth=parseFloat(S.textStrokeWidth)*T+"px"),""==S.sWidth&&(B.width="auto",v.elements.$innerWrapper.addClass("ls-force-width-auto"),"nowrap"!==y.css("white-space")&&(v.elements.$_innerWrappers.addClass("ls-force-left-0"),v.elements.$_outerWrappers.addClass("ls-force-full-size"))),""==S.sHeight&&(B.height="auto",v.elements.$innerWrapper.addClass("ls-force-height-auto")),""!=S.sWidth&&""!=S.sHeight||y.css(B)),v.is.slideBackground||v.is.backgroundVideo)if(v.is.slideBackground){var A=J.slides[v.is.onSlide].data.backgroundSize;switch((void 0!==A&&"inherit"!==A?A:J.o.slideBGSize).replace("100% 100%","stretch")){case"auto":break;case"cover":S.ratio<o?(B.width=a,B.height=B.width/S.ratio):(B.height=r,B.width=B.height*S.ratio);break;case"contain":S.ratio<o?(B.height=r,B.width=B.height*S.ratio):(B.width=a,B.height=B.width/S.ratio);break;case"stretch":B.width=a,B.height=r}B.width=Math.round(B.width),B.height=Math.round(B.height);var F,z=J.slides[v.is.onSlide].data.backgroundPosition;switch((F=(void 0!==z?z:J.o.slideBGPosition).split(" "))[0]){case"left":B.x=0;break;case"center":B.x=(J.slider.width-B.width)/2;break;case"right":B.x=J.slider.width-B.width;break;default:-1!==F[0].indexOf("%")?B.x=(J.slider.width-B.width)/100*parseInt(F[0]):B.x=parseInt(F[0])}if(void 0!==F[1])switch(F[1]){case"top":B.y=0;break;case"center":B.y=(J.slider.height-B.height)/2;break;case"bottom":B.y=J.slider.height-B.height;break;default:-1!==F[1].indexOf("%")?B.y=(J.slider.height-B.height)/100*parseInt(F[1]):B.y=parseInt(F[1])}B.transform="translateX("+B.x+"px) translateY("+B.y+"px)",B["-ms-transform"]="translateX("+B.x+"px) translateY("+B.y+"px)",B["-webkit-transform"]="translateX("+B.x+"px) translateY("+B.y+"px)"}else v.is.backgroundVideo&&(S.ratio<o?(B.width=a,B.height=B.width/S.ratio):(B.height=r,B.width=B.height*S.ratio),B.x=(J.slider.width-B.width)/2,B.y=(J.slider.height-B.height)/2,B.width=Math.round(B.width),B.height=Math.round(B.height),B.transform="translateX("+B.x+"px) translateY("+B.y+"px)",B["-ms-transform"]="translateX("+B.x+"px) translateY("+B.y+"px)",B["-webkit-transform"]="translateX("+B.x+"px) translateY("+B.y+"px)");else!v.mediaProperties||"youtube"!==v.mediaProperties.type&&"vimeo"!==v.mediaProperties.type||(A=B.width/B.height,z={width:B.width,height:B.height},S.ratio<A?(z.height=B.width/S.ratio,z.marginTop=(B.height-z.height)/2):(z.width=B.height*S.ratio,z.marginLeft=(B.width-z.width)/2),v.mediaProperties.$media.css(z)),v.elements.$_innerWrappers.addClass("ls-force-display-block ls-force-no-transform"),y.addClass("ls-force-no-transform"),v.is.insideLayerGroup&&((b=(w=y.data("$layerGroup")).data(J.defaults.init.dataKey)).elements.$_innerWrappers.addClass("ls-force-display-block ls-force-no-transform"),w.addClass("ls-force-no-transform")),"auto"==B.width?B.outerWidth=Math.ceil(y.outerWidth()):B.outerWidth=B.width+J.layers.toNum(B.paddingLeft,B.fontSize)+J.layers.toNum(B.paddingRight,B.fontSize)+J.layers.toNum(B.borderLeftWidth,B.fontSize)+J.layers.toNum(B.borderRightWidth,B.fontSize),"auto"==B.height?B.outerHeight=Math.ceil(y.outerHeight()):B.outerHeight=B.height+J.layers.toNum(B.paddingTop,B.fontSize)+J.layers.toNum(B.paddingBottom,B.fontSize)+J.layers.toNum(B.borderTopWidth,B.fontSize)+J.layers.toNum(B.borderBottomWidth,B.fontSize),v.elements.$_allWrappers.removeClass("ls-force-display-block ls-force-no-transform ls-force-width-auto ls-force-height-auto ls-force-left-0 ls-force-full-size"),y.removeClass("ls-force-no-transform"),v.is.insideLayerGroup&&(b.elements.$_allWrappers.removeClass("ls-force-display-block ls-force-no-transform ls-force-width-auto ls-force-height-auto ls-force-left-0 ls-force-full-size"),w.removeClass("ls-force-no-transform")),M.width=W.width=B.outerWidth,M.height=W.height=B.outerHeight,-1!=S.left.indexOf("%")?"100%"===S.left?B.left=0===I?O/100*parseFloat(S.left)-B.outerWidth:I+t*x/100*parseFloat(S.left)-B.outerWidth:"0%"===S.left?B.left=0===I?0:I:B.left=0===I?O/100*parseFloat(S.left)-B.outerWidth/2:I+t*x/100*parseFloat(S.left)-B.outerWidth/2:B.left=I+parseFloat(S.left)*x,M.left=B.left,-1!=S.top.indexOf("%")?"100%"===S.top?B.top=0===$?P/100*parseFloat(S.top)-B.outerHeight:$+L*x/100*parseFloat(S.top)-B.outerHeight:"0%"===S.top?B.top=0===$?0:$+0:B.top=0===$?P/100*parseFloat(S.top)-B.outerHeight/2:$+L*x/100*parseFloat(S.top)-B.outerHeight/2:B.top=$+parseFloat(S.top)*x,M.top=B.top;v.textIn.$nodesForBackgroundClip&&v.textIn.$nodesForBackgroundClip.length&&((P=v.elements.$outerStyleWrapper.add(v.elements.$outerStyleWrapper.find(".ls-wrapper"))).addClass("ls-force-visibility-hidden ls-force-display-block"),v.elements.$_innerWrappers.addClass("ls-force-no-transform"),L=!1,"auto"===g.style.width&&(g.style.width=Math.ceil(v.original.width*(h*x))+"px",L=!0),v.textIn.$nodesForBackgroundClip.each(function(e,t){var i=ie(t),s=i.children(".ls-textnode-bgclip-wrap"),t=s.children(".ls-textnode"),i=(i.children(".ls-textnode-dummy"),i.position());s.css({width:Math.ceil(M.width),height:Math.ceil(M.height),transform:"translate("+-i.left/h+"px,"+-i.top/h+"px)"}),t.css({marginLeft:i.left/h,marginTop:i.top/h})}),L=L&&!(g.style.width="auto"),v.elements.$_innerWrappers.removeClass("ls-force-no-transform"),P.removeClass("ls-force-visibility-hidden ls-force-display-block")),B.fontSize=parseFloat(B.fontSize)/te.automaticFontSizeRatio+"px",v.responsive=B,n[m]=B,v.is.smartBG&&(B.left=Math.round(B.left),B.top=Math.round(B.top),B.width=Math.ceil(B.width),B.height=Math.ceil(B.height),n[m]["--sw"]=(k?J.slider.width:s.width*x)+"px",n[m]["--sh"]=(C?J.slider.height:s.height*x)+"px",n[m]["--x"]=-B.left-parseFloat(B.borderLeftWidth)-parseFloat(B.paddingLeft)-parseFloat(M.marginLeft)+(k?0:p)+"px",n[m]["--y"]=-B.top-parseFloat(B.borderTopWidth)-parseFloat(B.paddingTop)-parseFloat(M.marginTop)+(C?0:u)+"px"),v.is.slideBackground||v.is.backgroundVideo||(v.settings.wrapperData.responsive=M,l[m]=M,d[m]=W,c[m]=_)}for(var D=0,V=n.length;D<V;D++){var R=ie(i[D]),E=R.data(J.defaults.init.dataKey);R.css(n[D]),E.is.slideBackground||E.is.backgroundVideo?(E.is.slideBackground||E.is.backgroundVideo)&&(E.elements.$bgOuterWrapper.css({width:J.slider.width,height:J.slider.height}),E.elements.$outerWrapper.css({width:J.slider.width,height:J.slider.height})):(R.find(".split-item").css(c[D]),this.wrappers(R,E,l[D],d[D]))}void 0!==e&&e(),J.debugMode&&J.debug.groupEnd("resize")}},wrappers:function(e,t,i,s){i&&t.elements.$outerStyleWrapper.css(i),s&&t.loop.enabled&&t.elements.$loopWrapper.css(s),ee.TweenMax.set(t.elements.$wrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.layer*J.resize.ratio}}),t.loop.enabled&&ee.TweenMax.set(t.elements.$loopWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.loop*J.resize.ratio}}),t.hover.enabled&&ee.TweenMax.set(e[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.hover*J.resize.ratio}}),t.textIn.nodes&&ee.TweenMax.set(t.textIn.nodes,{autoCSS:!1,css:{transformPerspective:t.transformPerspective.text*J.resize.ratio}}),t.textOut.nodes&&ee.TweenMax.set(t.textOut.nodes,{autoCSS:!1,css:{transformPerspective:t.transformPerspective.text*J.resize.ratio}}),t.parallax.enabled&&ee.TweenMax.set(t.elements.$parallaxWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.parallax*J.resize.ratio}}),t.scroll.enabled&&ee.TweenMax.set(t.elements.$scrollTransformWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.scroll*J.resize.ratio}})},performTransformOperations:function(e,t){var i,s,a,r;for(r in t)if("string"==typeof t[r]&&-1!==t[r].indexOf("="))if(s=(i=t[r].split("="))[0].trim()||!1,a=parseFloat(i[1].trim())||!1,s&&a&&ie.isNumeric(a))switch(s){case"+":t[r]=e[r]+a;break;case"-":t[r]=e[r]-a;break;case"*":t[r]=e[r]*a;break;case"/":t[r]=e[r]/a}else t[r]=e[r]},mirrorTransitionProperties:function(o){function n(e){var t=e;switch(e){case"left":t="right";break;case"right":t="left";break;case"top":t="bottom";break;case"bottom":t="top"}return-1!==e.indexOf("lw")||-1!==e.indexOf("lh")||-1!==e.indexOf("sw")||-1!==e.indexOf("sh")?t="-"===e.charAt(0)?e.substring(1):"-"+e:-1!==e.indexOf("%")?t=-1*parseFloat(e.split("%")[0])+"%":ie.isNumeric(e)&&0!==e&&"0"!==e&&(t=-1*e),t}function e(e){var t,i,s,a;for(a in e)if(s=a.toLowerCase(),-1!==o.mirrorProperties.indexOf(s)){if("object"==typeof(t=e[a]))for(var r in i=[],t)i.push(n(t[r]));else i=n(t);e[a]=i}}e(o.transitionProperties),o.transitionPropertiesShouldBeConverted&&e(o.transitionPropertiesShouldBeConverted)},transformProperties:function(e,t,i,s,a,r){if("object"==typeof s.x){for(var o=[],n=0;n<s.x.length;n++)"string"==typeof s.x[n]?o[n]=this.getXY(e,t,s.x[n],"Width"):o[n]=s.x[n]*t.settings.calculatedratio;i.cycle.x=o}else"string"==typeof s.x?i.x=this.getXY(e,t,s.x,"Width"):void 0!==s.x&&(i.x=s.x*t.settings.calculatedratio);if("object"==typeof s.y){for(var l=[],d=0;d<s.y.length;d++)"string"==typeof s.y[d]?l[d]=this.getXY(e,t,s.y[d],"Height"):l[d]=s.y[d]*t.settings.calculatedratio;i.cycle.y=l}else"string"==typeof s.y?i.y=this.getXY(e,t,s.y,"Height"):void 0!==s.y&&(i.y=s.y*t.settings.calculatedratio);if(a&&(i=a),"object"==typeof s.transformOrigin||r){var c=[];if(r){a=e.data(J.defaults.init.dataKey).elements.$outerStyleWrapper.add(e.data(J.defaults.init.dataKey).elements.$outerStyleWrapper.find(".ls-wrapper"));a.addClass("ls-force-visibility-hidden ls-force-display-block ls-fix-textnodes"),c=J.functions.convert.nodesTransformOrigin(s.transformOrigin,r,t,e.data(J.defaults.init.dataKey).elements.$outerStyleWrapper),a.removeClass("ls-force-visibility-hidden ls-force-display-block ls-fix-textnodes")}else for(var p=0;p<s.transformOrigin.length;p++)c[p]=J.functions.convert.transformOrigin(s.transformOrigin[p],e,t,e.data(J.defaults.init.dataKey).elements.$outerStyleWrapper);i.cycle.transformOrigin=c}else"string"==typeof s.transformOrigin&&(i.transformOrigin=J.functions.convert.transformOrigin(s.transformOrigin,e,t,e.data(J.defaults.init.dataKey).elements.$outerStyleWrapper))},styleProperties:function(e,t,i){void 0!==i.width&&(ie.isNumeric(i.width)?t.width=parseInt(i.width)*e.settings.calculatedratio:"string"==typeof i.width&&-1!==i.width.indexOf("%")&&(t.width=J.slider.width/100*parseInt(i.width))),void 0!==i.height&&(ie.isNumeric(i.height)?t.height=parseInt(i.height)*e.settings.calculatedratio:"string"==typeof i.height&&-1!==i.height.indexOf("%")&&(t.height=J.slider.height/100*parseInt(i.height))),i.borderRadius&&(t.borderRadius=J.resize.borderRadius(i.borderRadius,e.settings.calculatedratio))},clip:function(e,t,i,s){i=ie.trim(i.replace("rect(","").replace(")",""));for(var a,e=e.data(J.defaults.init.dataKey).responsive,r=Math.ceil(e.outerWidth),o=Math.ceil(e.outerHeight),n=-1===i.indexOf(",")?i.split(" "):i.split(","),l="",d=0;d<n.length;d++)if(-1!==n[d].indexOf("%"))switch(d){case 0:l+=parseInt(o/100*parseInt(n[d])*100)/100+"px ";break;case 1:l+=s?parseInt(100*(r-r/100*parseInt(n[d])))/100+"px ":parseInt(r/100*parseInt(n[d])*100)/100+"px ";break;case 2:l+=s?parseInt(100*(o-o/100*parseInt(n[d])))/100+"px ":parseInt(o/100*parseInt(n[d])*100)/100+"px ";break;case 3:l+=parseInt(r/100*parseInt(n[d])*100)/100+"px"}else switch(a=parseInt(n[d])*t.settings.calculatedratio,d){case 0:l+=a+"px ";break;case 1:l+=s?r-a+"px ":a+"px ";break;case 2:l+=s?o-a+"px ":a+"px ";break;case 3:l+=a+"px"}return"rect("+l+")"},getXY:function(e,t,i,s){var a=0,r=t.original,o=t.responsive,n=t.settings.wrapperData.responsive;if(r&&o&&n)switch(i){case"left":a=-1==r.left.indexOf("%")||"100%"===r.left?-o.left-o.outerWidth-parseInt(n.marginLeft):-parseInt(r.left)/100*J.slider.width-o.outerWidth/2-parseInt(n.marginLeft);break;case"right":a=-1==r.left.indexOf("%")||"100%"===r.left?J.slider.width-o.left-parseInt(n.marginLeft):(1-parseInt(r.left)/100)*J.slider.width+o.outerWidth/2-parseInt(n.marginLeft);break;case"top":a=-1==r.top.indexOf("%")||"100%"===r.top?-o.top-o.outerHeight-parseInt(n.marginTop):-parseInt(r.top)/100*J.slider.height-o.outerHeight/2-parseInt(n.marginTop);break;case"bottom":a=-1==r.top.indexOf("%")||"100%"===r.top?J.slider.height-o.top-parseInt(n.marginTop):(1-parseInt(r.top)/100)*J.slider.height+o.outerHeight/2-parseInt(n.marginTop);break;case"width":a=o.outerWidth;break;case"-width":a=-o.outerWidth;break;case"height":a=o.outerHeight;break;case"-height":a=-o.outerHeight;break;default:a=-1!==i.indexOf("%")?o["outer"+s]/100*parseInt(i):-1!==i.indexOf("sw")?parseInt(i.split("sw")[0])/100*J.slider.width:-1!==i.indexOf("sh")?parseInt(i.split("sh")[0])/100*J.slider.height:-1!==i.indexOf("lw")?o.outerWidth/100*parseInt(i.split("lw")[0]):-1!==i.indexOf("lh")?o.outerHeight/100*parseInt(i.split("lh")[0]):parseInt(i)*t.settings.calculatedratio}return a},navigation:function(){"always"==J.o.thumbnailNavigation&&J.gui.navigation.bottom.thumbnails.resize()},shadow:function(){J.gui.shadow.show&&J.gui.shadow.show(),J.gui.shadow.$element&&J.gui.shadow.resize()},yourLogo:function(){J.yourLogo.$element&&J.yourLogo.resize()},timers:function(){if(0<J.gui.timers.slidebar.$containerElement.length)for(var e=0,t=J.gui.timers.slidebar.$containerElement.length;e<t;e++)J.gui.timers.slidebar.containerElementWidth[e]=J.gui.timers.slidebar.$containerElement[e].width(),J.gui.timers.slidebar.elementWidth[e]=J.gui.timers.slidebar.$element[e].width()}},J.transitions={firstSlide:!0,timelines:{all:["_slideTransition","_slideTimeline","_slideTimelineAlternate","_forceLayersOut","_forceLayersOutMirror","_forceLayersOutPrevious","_forceLayersOutMirrorPrevious"],slide:["_slideTransition"],layers:["_slideTimeline","_slideTimelineAlternate"],allforce:["_forceLayersOut","_forceLayersOutMirror","_forceLayersOutPrevious","_forceLayersOutMirrorPrevious"],prevforce:["_forceLayersOutPrevious","_forceLayersOutMirrorPrevious"],currentforce:["_forceLayersOut","_forceLayersOutMirror"],mirrorforce:["_forceLayersOutMirror","_forceLayersOutMirrorPrevious"],set:function(e,t){for(var i in this[e])J.transitions[this[e][i]]&&t(J.transitions[this[e][i]],this[e][i])}},start:function(){return!!document.body.contains(I)&&(J.slider.isPopup&&J.slider.state.popupIsWaitingForDelay?!(J.slider.state.waitingForPopupTimer=!0):(J.device.scroll.directionAtSlideTransitionStart=J.device.scroll.direction,"always"==J.o.thumbnailNavigation&&(J.gui.navigation.bottom.thumbnails.change(),"ontouchstart"in window||J.gui.navigation.bottom.thumbnails.scroll()),this.layers.out.forced(),void this.slide.init()))},slide:{$wrapper:ie(),init:function(){var e,t,i;J.functions.setStates(J.slider,{animatingSlides:!0}),J.transitions.layers.parallax.reset(),J.slider.$layersWrapper.children('.ls-parallax[data-ls-parallax="active"]').each(function(){ie(this).find(".ls-layer").data(J.defaults.init.dataKey).settings.slideOut===J.slides.current.index&&ie(this).attr("data-ls-parallax","disbaled")}),J.transitions.curSlide=J.slides.current,J.transitions.nextSlide=J.slides.next,J.transitions._slideTransition=new ee.TimelineMax({paused:!0,onComplete:function(){J.transitions.slide.onComplete()}}),(J.transitions.nextSlide.data&&J.transitions.nextSlide.data.transitionorigami||J.slider.isScrollScene)&&(J.o.animateFirstSlide=!1),J.transitions.firstSlide&&J.o.animateFirstSlide&&(J.transitions.curSlide=ie.extend(!0,{},J.transitions.nextSlide),delete J.transitions.curSlide.data.$background,J.transitions.curSlide.data.backgroundColor="transparent"),J.transitions.firstSlide&&!J.o.animateFirstSlide?(void 0!==J.transitions.nextSlide.data.$background&&(e=(i=J.transitions.nextSlide.data.$background.data(J.defaults.init.dataKey)).kenBurns.zoom?i.kenBurns.from.scale:1,t=i.kenBurns.zoom?i.kenBurns.from.rotation:0,i=J.transitions.nextSlide.filter.from||"none",J.transitions._slideTransition.set(J.transitions.nextSlide.data.$background[0],{"-webkit-filter":i,filter:i},0),J.transitions._slideTransition.fromTo(J.transitions.nextSlide.data.$background.closest(".ls-bg-wrap")[0],J.o.sliderFadeInDuration,{autoCSS:!1,css:{scale:e,rotation:t,opacity:0,display:"block"}},{autoCSS:!1,css:{opacity:1}},0)),this.start(!0)):"undefined"==typeof layerSliderTransitions&&"undefined"==typeof layerSliderCustomTransitions?(this.start(!0),J.debugMode&&J.debug.add("warn","slideTransition.noSlideTransition",J.transitions.nextSlide.index)):void 0===J.transitions.curSlide.data.$background&&void 0===J.transitions.nextSlide.data.$background&&"transparent"==J.transitions.curSlide.data.backgroundColor&&"transparent"==J.transitions.nextSlide.data.backgroundColor?this.start(!0):("x"===J.o.clipSlideTransition?te.$overflowWrapper.addClass("ls-overflowx-hidden"):"y"===J.o.clipSlideTransition?te.$overflowWrapper.addClass("ls-overflowy-hidden"):!0===J.o.clipSlideTransition&&te.$overflowWrapper.addClass("ls-overflow-hidden"),void 0!==J.transitions.curSlide.data.$background&&(e=J.transitions.curSlide.data.$background.closest(".ls-bg-wrap")[0]._gsTransform,(t=J.transitions.curSlide.data.$background.data(J.defaults.init.dataKey)).responsive.filter=J.transitions.curSlide.data.$background[0].style.filter,t.responsive.kbRotation=void 0!==e?" rotate("+e.rotation+"deg)":" rotate(0deg)",t.responsive.kbScale=void 0!==e?" scale("+e.scaleX+")":" scale(1)"),J.transitions.slide.$wrapper=ie("<div>").addClass("ls-slide-transition-wrapper").css({width:J.slider.width,height:J.slider.height}),this.select.slideTransitionType())},select:{slideTransitionType:function(){J.transitions.slide.normal.select.transitionType()}},start:function(e){var t,i=!(!J.slides.current.index||!J.slides.current.data.$backgroundVideo.length),s=!(!J.slides.next.index||!J.slides.next.data.$backgroundVideo.length);!J.slideshow.firstStart&&J.api.hasEvent("slideChangeDidStart")&&J.api.triggerEvent("slideChangeDidStart",J.api.eventData()),e||(void 0!==J.transitions.nextSlide.data.transitionDuration?a=J.transitions.nextSlide.data.transitionDuration:void 0!==J.o.slideTransitionDuration&&ie.isNumeric(J.o.slideTransitionDuration)&&-1<J.o.slideTransitionDuration&&(a=J.o.slideTransitionDuration/1e3),ie.isNumeric(a)&&(0===a&&(a+=1e-5),J.transitions._slideTransition.duration(a)),J.transitions.firstSlide&&J.o.animateFirstSlide&&J.o.firstSlideDuration&&J.transitions._slideTransition.duration(J.o.firstSlideDuration/1e3),J.debugMode&&J.debug.options.transitionDuration&&J.transitions._slideTransition.duration(J.debug.options.transitionDuration),.25<J.transitions.layers.timeline.timeScaleModifier&&(r=(r=J.transitions._slideTransition.duration()/(.75+J.transitions.layers.timeline.timeScaleModifier))<.5?.5:r,J.transitions._slideTransition.duration(r)));var e=J.transitions._slideTransition.duration()/J.transitions._slideTransition.timeScale(),a=e,r=J.transitions.nextSlide.data.timeShift||(void 0!==J.o.slideTimeShift&&ie.isNumeric(J.o.slideTimeShift)&&J.o.slideTimeShift<0?J.o.slideTimeShift/1e3:0);0<r?r=0:Math.abs(r)>e&&(r=-e),J.transitions.firstSlide&&J.o.animateFirstSlide&&!1!==J.o.firstSlideTimeShift&&J.o.firstSlideTimeShift<=0&&(r=J.o.firstSlideTimeShift/1e3),J.transitions.nextSlide.data.calculatedTimeShift=r,r=J.transitions.firstSlide&&!J.o.animateFirstSlide?J.o.sliderFadeInDuration+.01:(a+r)*J.transitions._slideTransition.timeScale(),(i||s)&&J.transitions.media.changeBackgroundVideo(J.transitions.firstSlide,i&&s),J.transitions._slideTransition.call(function(){!J.slideshow.firstStart&&J.api.hasEvent("slideChangeWillComplete")&&J.api.triggerEvent("slideChangeWillComplete",J.api.eventData()),J.slideshow.should.change||J.transitions.layers.timeline.prepare(),J.media.functions.stop(!0),J.slides.set.slideIndexes(),J.o.hashChange&&(document.location.hash=J.slides[J.slides.current.index].data.deeplink||"_no-deeplink-found_"),J.slideshow.start(),!J.transitions.firstSlide&&J.slides.prev.index&&J.slides.prev.data.$backgroundVideo.length&&!J.slides.prev.data.$backgroundVideo.data(J.defaults.init.dataKey).mediaProperties.willBePaused&&(J.slides.prev.data.$backgroundVideo.trigger("stopBackgroundVideo"),J.slides.prev.data.$backgroundVideo.data(J.defaults.init.dataKey).elements.$bgWrapper.css({display:"none"})),J.slideshow.should.change||J.slides.next.data.$backgroundVideo.length&&J.slides.next.data.$backgroundVideo.data(J.defaults.init.dataKey).mediaProperties&&!J.slides.next.data.$backgroundVideo.data(J.defaults.init.dataKey).mediaProperties.isPreloaded&&(J.slides.next.data.$backgroundVideo.trigger("preloadBackgroundVideo"),J.slides.next.data.$backgroundVideo.data(J.defaults.init.dataKey).mediaProperties.isPreloaded=!0),J.transitions.firstSlide=!1},[],this,r),J.transitions._slideTransition.play(),J.slideshow.forceFastChange&&J.transitions._slideTransition.progress(1),void 0!==J.transitions.curSlide.data&&void 0!==J.transitions.curSlide.data.$background&&(t=J.transitions.curSlide.data.$background.data(J.defaults.init.dataKey),J.timeouts.applyBG=setTimeout(function(){delete J.timeouts.applyBG,J.transitions.curSlide.data.$background.closest(".ls-bg-wrap").hide(),t.kenBurns.zoom&&ee.TweenMax.set(J.transitions.curSlide.data.$background[0],{autoCSS:!1,css:t.kenBurns.from})},5))},onComplete:function(){var e;void 0!==J.transitions.nextSlide.data.$background&&J.transitions.nextSlide.data.$background.closest(".ls-bg-wrap").show(),"transparent"!==J.transitions.nextSlide.data.backgroundColor?J.slider.$slideBGColorWrapper.css("background-color",J.transitions.nextSlide.data.backgroundColor):J.slider.$slideBGColorWrapper.css("background-color","transparent"),J.o.leaveOverflow||te.$overflowWrapper.removeClass("ls-overflowx-hidden ls-overflowy-hidden ls-overflow-hidden"),this.$wrapper&&(this.$wrapper.html("").remove(),this.$wrapper=!1),J.gui.navigation.bottom.bullets.set.active(),0<J.o.cycles&&(J.slideshow.hasOwnProperty("cycleSlideIndex")?J.slideshow.cycles.check(J.transitions.nextSlide.index)&&(J.navigation.stop(),J.functions.setStates(J.slideshow,{pausedByLastCycle:!0}),J.o.forceCycles&&(J.slideshow.curCycle=1)):J.slideshow.cycles.set()),J.functions.setStates(J.slider,{animatingSlides:!1,changingSlides:!1}),!J.slideshow.firstStart&&J.api.hasEvent("slideChangeDidComplete")&&J.api.triggerEvent("slideChangeDidComplete",J.api.eventData()),J.slideshow.firstStart=!1,J.slideshow.forceFastChange=!1,J.slideshow.forceFastChangeCallback&&(J.slideshow.forceFastChangeCallback(),J.slideshow.forceFastChangeCallback=!1),J.slideshow.should.change?J.navigation.forceDirection?(void 0!==J.transitions.curSlide.data&&void 0!==J.transitions.curSlide.data.$background&&(e=J.transitions.curSlide.data.$background.data(J.defaults.init.dataKey),J.transitions.curSlide.data.$background.closest(".ls-bg-wrap").hide(),e.kenBurns.zoom&&ee.TweenMax.set(J.transitions.curSlide.data.$background[0],{autoCSS:!1,css:e.kenBurns.from})),J.slideshow.changeTo(J.slideshow.get.slideInSequence(J.navigation.forceDirection),!0),J.navigation.forceDirection=!1):J.slideshow.forceSlideChangeTo?J.slideshow.changeTo(J.slideshow.forceSlideChangeTo,!0,!0):J.preload.imagesOfSlide(J.slides.next.index):J.preload.imagesOfSlide(J.slides.next.index)},normal:{select:{transitionType:function(){var e,t,i;J.o.slideTransition?J.transitions.slide.normal.setTransition(J.o.slideTransition.type,J.o.slideTransition.obj):(i=!!J.transitions.nextSlide.data.transition2d&&J.transitions.nextSlide.data.transition2d.toString().split(","),J.device.touchPrev&&J.o.slideOnSwipe?(J.device.touchPrev=!1,this.transition("2d","1")):J.device.touchNext&&J.o.slideOnSwipe?(J.device.touchNext=!1,this.transition("2d","1")):J.slides.next.data.$background||i&&(!i||-1!=i.indexOf("1")||-1!=i.indexOf("2")||-1!=i.indexOf("3")||-1!=i.indexOf("4"))?J.browser.supports3D()&&(J.transitions.nextSlide.data.transition3d||J.transitions.nextSlide.data.customtransition3d)?J.transitions.nextSlide.data.transition3d&&J.transitions.nextSlide.data.customtransition3d?(e=Math.floor(2*Math.random()),t=[["3d",J.transitions.nextSlide.data.transition3d],["custom3d",J.transitions.nextSlide.data.customtransition3d]],this.transition(t[e][0],t[e][1])):J.transitions.nextSlide.data.transition3d?this.transition("3d",J.transitions.nextSlide.data.transition3d):this.transition("custom3d",J.transitions.nextSlide.data.customtransition3d):J.transitions.nextSlide.data.transition2d&&J.transitions.nextSlide.data.customtransition2d?(e=Math.floor(2*Math.random()),t=[["2d",J.transitions.nextSlide.data.transition2d],["custom2d",J.transitions.nextSlide.data.customtransition2d]],this.transition(t[e][0],t[e][1])):J.transitions.nextSlide.data.transition2d?this.transition("2d",J.transitions.nextSlide.data.transition2d):J.transitions.nextSlide.data.customtransition2d?this.transition("custom2d",J.transitions.nextSlide.data.customtransition2d):this.transition("2d","1"):this.transition("2d","5"))},transition:function(e,t){J.debugMode&&J.debug.add("group","slideTransition.info"),t+="";var i,s,a=-1==e.indexOf("custom")?J.t:J.ct,r="3d";-1!=e.indexOf("2d")&&(r="2d"),s=-1!=t.indexOf("last")?a["t"+r].length-1:-1!=t.indexOf("all")?Math.floor(Math.random()*J.functions.countProp(a["t"+r])):(t=(i=t.split(",")).length,parseInt(i[Math.floor(Math.random()*t)])-1),void 0===a["t"+r][s]&&(J.debugMode&&J.debug.add("warn","slideTransition.customTransition",[r.toUpperCase()+(-1===e.indexOf("custom")?"":" (CUSTOM)"),s+1]),a=J.t,e=r="2d",s=0),J.debugMode&&J.debug.add("log","slideTransition.info",[r.toUpperCase()+(-1===e.indexOf("custom")?"":" (CUSTOM)"),s+1,a["t"+r][s].name]),J.transitions.slide.normal.setTransition(r,a["t"+r][s])}},setTransition:function(e,t){t.name||(t=_lsConvTrProp(t));var i,s,a,r,o,n=ie.extend(!0,{cols:1,rows:1},t),l=typeof n.cols,d=typeof n.rows,c=[],p=J.navigation.direction,u=0,h=0,m=!!J.transitions.curSlide.data.$background&&J.functions.getURL(J.transitions.curSlide.data.$background),f=!!J.transitions.nextSlide.data.$background&&J.functions.getURL(J.transitions.nextSlide.data.$background),g=J.o.playByScroll&&"up"===J.device.scroll.direction?"to":"from";if(n.rc){switch(typeof n.rc){case"number":J.slider.width>J.slider.height?(d=n.rc,l=Math.floor(J.slider.width/(J.slider.height/n.rc))):(l=n.rc,d=Math.floor(J.slider.height/(J.slider.width/n.rc)));break;case"string":a=parseInt(n.rc),l=Math.floor(J.slider.width/a),d=Math.floor(J.slider.height/a)}n.cols=l,n.rows=d}else{switch(l){case"number":l=n.cols;break;case"string":l=Math.floor(Math.random()*(parseInt(n.cols.split(",")[1])-parseInt(n.cols.split(",")[0])+1))+parseInt(n.cols.split(",")[0]);break;default:l=Math.floor(Math.random()*(n.cols[1]-n.cols[0]+1))+n.cols[0]}switch(d){case"number":d=n.rows;break;case"string":d=Math.floor(Math.random()*(parseInt(n.rows.split(",")[1])-parseInt(n.rows.split(",")[0])+1))+parseInt(n.rows.split(",")[0]);break;default:d=Math.floor(Math.random()*(n.rows[1]-n.rows[0]+1))+n.rows[0]}te.isMobile&&J.o.optimizeForMobile&&(15<=l?l=7:5<=l?l=4:4<=l?l=3:2<l&&(l=2),15<=d?d=7:5<=d?d=4:4<=d?d=3:2<d&&(d=2),2<d&&2<l&&(d=2,4<l&&(l=4)))}J.debugMode&&!J.o.slideTransition&&(J.debug.add("log","slideTransition.properties",[[l,d],l*d]),J.debug.groupEnd()),i=Math.floor(J.slider.width/l),s=Math.floor(J.slider.height/d),l=Math.floor(J.slider.width/i),d=Math.floor(J.slider.height/s),r=J.slider.width-i*l,o=J.slider.height-s*d,"prev"==p&&(t={random:"random",forward:"reverse",reverse:"forward",center:"center",edge:"edge",mirror:"mirror","radial-in":"radial-in","radial-out":"radial-out","col-forward":"col-reverse","col-reverse":"col-forward"},"2d"===e&&n.transition&&"scale"===n.transition.type&&(t.forward="forward",t.reverse="reverse"),n.tile&&n.tile.sequence&&(n.tile.sequence=t[n.tile.sequence]),ie.each(["animation","before","after"],function(e,t){n[t]&&n[t].transition&&((t=n[t].transition).rotateX&&44<Math.abs(t.rotateX)&&(t.rotateX*=-1),t.rotateY&&44<Math.abs(t.rotateY)&&(t.rotateY*=-1),t.rotate&&(t.rotate*=-1))}));for(var y,v,w=0;w<l*d;w++)c.push(w);switch(n.tile.sequence){case"reverse":c.reverse();break;case"col-forward":c=J.functions.sortArray(d,l,"forward");break;case"col-reverse":c=J.functions.sortArray(d,l,"reverse");break;case"random":c=J.functions.shuffleArray(c);break;case"center":c=J.functions.sortArray(d,l,"center");break;case"edge":case"mirror":c=J.functions.sortArray(d,l,"edge");break;case"radial-out":c=J.functions.sortArray(d,l,"radial-out");break;case"radial-in":c=J.functions.sortArray(d,l,"radial-in")}("transparent"===J.transitions.nextSlide.data.backgroundColor||"3d"==e||void 0!==J.transitions.curSlide.data.$background&&void 0!==J.transitions.nextSlide.data.$background)&&J.slider.$slideBGColorWrapper.css("background-color","transparent"),"2d"==e&&(y=-1!=n.name.toLowerCase().indexOf("carousel"),v=-1!=n.name.toLowerCase().indexOf("crossfad"),this.$curTiles=ie("<div>").addClass("ls-curtiles").appendTo(J.transitions.slide.$wrapper),this.$nextTiles=ie("<div>").addClass("ls-nexttiles").appendTo(J.transitions.slide.$wrapper));for(var b=0;b<l*d;b++){var S,x=(b+1)%l==0?r:0,T=(d-1)*l-1<b?o:0,k=ie("<div>").addClass("ls-slide-transition-tile").css({width:i+x,height:s+T}).data("style",{width:i+x,height:s+T}).appendTo(J.transitions.slide.$wrapper),u=(c[b],b%l==0?u+1:u),h=b%l==0?1:h+1;if("3d"==e){k.addClass("ls-3d-container");var C,O,P=i+x,L=s+T,I=new ee.TimelineMax,$=Math.abs(Math.abs(h-l/2-.5)-l/2-.5)*Math.abs(Math.abs(u-d/2-.5)-d/2-.5);k.css({zIndex:$}),C=P/2,O=L/2,T=($="horizontal"==n.animation.direction?90<Math.abs(n.animation.transition.rotateY)&&"large"!=n.tile.depth?Math.floor(P/7)+x:P:90<Math.abs(n.animation.transition.rotateX)&&"large"!=n.tile.depth?Math.floor(L/7)+T:L)/2,this.createCuboids("ls-3d-box",k,0,0,0,0,-T,0,0,C+"px "+O+"px 0px"),this.createCuboids("ls-3d-front",k.find(".ls-3d-box"),P,L,0,0,T,0,0),"vertical"==n.animation.direction&&90<Math.abs(n.animation.transition.rotateX)?this.createCuboids("ls-3d-back",k.find(".ls-3d-box"),P,L,0,0,-T,180,0):this.createCuboids("ls-3d-back",k.find(".ls-3d-box"),P,L,0,0,-T,0,180),this.createCuboids("ls-3d-left",k.find(".ls-3d-box"),$,L,-T,0,0,0,-90),this.createCuboids("ls-3d-right",k.find(".ls-3d-box"),$,L,P-T,0,0,0,90),this.createCuboids("ls-3d-top",k.find(".ls-3d-box"),P,$,0,-T,0,90,0),this.createCuboids("ls-3d-bottom",k.find(".ls-3d-box"),P,$,0,L-T,0,-90,0),P=k.find(".ls-3d-front"),$="horizontal"==n.animation.direction?90<Math.abs(n.animation.transition.rotateY)?k.find(".ls-3d-back"):0<n.animation.transition.rotateY?k.find(".ls-3d-left"):k.find(".ls-3d-right"):90<Math.abs(n.animation.transition.rotateX)?k.find(".ls-3d-back"):0<n.animation.transition.rotateX?k.find(".ls-3d-bottom"):k.find(".ls-3d-top"),L=c[b]*n.tile.delay,T=J.transitions.slide.$wrapper.find(".ls-3d-container:eq( "+b+" ) .ls-3d-box"),n.before&&n.before.transition?(n.before.transition.delay=n.before.transition.delay?(n.before.transition.delay+L)/1e3:L/1e3,I.to(T[0],n.before.duration/1e3,J.functions.convert.transition(n.before.transition,n.before.easing))):n.animation.transition.delay=n.animation.transition.delay?(n.animation.transition.delay+L)/1e3:L/1e3,I.to(T[0],n.animation.duration/1e3,J.functions.convert.transition(n.animation.transition,n.animation.easing)),n.after&&(n.after.transition||(n.after.transition={}),I.to(T[0],n.after.duration/1e3,J.functions.convert.transition(n.after.transition,n.after.easing,"after"))),J.transitions._slideTransition.add(I,0)}else{var B,M,W,_,A,F,z,D,V,R="auto",E="auto",N="auto",Y="auto",X=1,H=1,K="50% 50%",U="50% 50%",j=0,G=100,q={},Q=n.transition.intensity||2,Z="random"==n.transition.direction?(z="scale"==n.transition.type?["top","bottom","middle","right","left","center"]:["top","bottom","right","left"])[Math.floor(Math.random()*z.length)]:n.transition.direction;switch(-1!=n.name.toLowerCase().indexOf("mirror")&&b%2==0&&(p="prev"==p?"next":"prev"),"prev"==p&&(Z={top:"bottom",bottom:"top",middle:"middle",left:"right",right:"left",center:"center",topleft:"bottomright",topright:"bottomleft",bottomleft:"topright",bottomright:"topleft",none:"none"}[Z]),Z){case"top":R=N=-k.data("style").height,E=Y=0;break;case"bottom":R=N=k.data("style").height,E=Y=0;break;case"left":R=N=0,E=Y=-k.data("style").width;break;case"right":R=N=0,E=Y=k.data("style").width;break;case"topleft":R=k.data("style").height,N=0,E=k.data("style").width,Y=0;break;case"topright":R=k.data("style").height,N=0,E=-k.data("style").width,Y=0;break;case"bottomleft":R=-k.data("style").height,N=0,E=k.data("style").width,Y=0;break;case"bottomright":R=-k.data("style").height,N=0,E=-k.data("style").width,Y=0;break;case"none":Y=E=N=R=0}switch(this.scale2D=void 0!==n.transition.scale?n.transition.scale:1,1==y&&1!=this.scale2D&&(R/=2,N/=2,E/=2,Y/=2),(n.transition.rotate||n.transition.rotateX||n.transition.rotateY||1!=this.scale2D)&&"slide"!=n.transition.type?k.css({overflow:"visible"}):k.css({overflow:"hidden"}),1==y?this.$curTiles.css({overflow:"visible"}):this.$curTiles.css({overflow:"hidden"}),!0===v||"slide"==n.transition.type||"scale"==n.transition.type||!0===y||n.transition.hasOwnProperty("opacity")?(D=k.appendTo(this.$curTiles),A=k.clone().appendTo(this.$nextTiles),P=ie("<div>").addClass("ls-curtile").appendTo(D)):A=k.appendTo(this.$nextTiles),$=ie("<div>").addClass("ls-nexttile").appendTo(A),F=c[b]*n.tile.delay/1e3,I=n.transition.rotate||0,z=n.transition.rotateX||0,D=n.transition.rotateY||0,"prev"==p&&(I=-I,z=-z,D=-D),n.transition.type){case"fade":X=R=N=E=Y=0,H=1;break;case"mixed":X=0,(H=1)==this.scale2D&&(N=Y=0),B=void 0!==n.transition.scaleX?n.transition.scaleX:1,M=void 0!==n.transition.scaleY?n.transition.scaleY:1;break;case"scale":switch(X=R=N=E=Y=0,M=B=H=1,Z){case"left":case"right":B=1+c[b]/(50/Q);break;case"top":case"bottom":M=1+c[b]/(50/Q);break;case"center":B=1+c[b]/(50/Q);break;case"middle":M=1+c[b]/(50/Q)}switch("mirror"===n.tile.sequence&&l*d/2<b&&(j=100,G=0),Z){case"left":K=j+"% 50%",U=G+"% 0";break;case"right":K=G+"% 50%",U=j+"% 50%";break;case"center":case"middle":_=W=1;break;case"top":K="50% "+j+"%",U="50% "+G+"%";break;case"bottom":K="50% "+G+"%",U="50% "+j+"%"}}J.transitions._slideTransition.fromTo($[0],n.transition.duration/1e3,{immediateRender:!1,autoCSS:!1,css:{x:-E,y:-R,display:"block",opacity:X,rotation:I,rotationX:z,rotationY:D,borderRadius:n.transition.borderRadius||0,scaleX:void 0!==B?B:this.scale2D,scaleY:void 0!==M?M:this.scale2D,transformOrigin:K}},{autoCSS:!1,css:{x:0,y:0,opacity:H,rotation:0,rotationX:0,rotationY:0,borderRadius:0,scaleX:1,scaleY:1},ease:J.functions.convert.easing(n.transition.easing)},F),1==v&&(void 0===J.transitions.nextSlide.data.$background||void 0!==J.transitions.nextSlide.data.$background&&(-1!=J.transitions.nextSlide.data.$background.attr("src").toLowerCase().indexOf("png")||J.transitions.nextSlide.data.$background.width()<J.slider.width||J.transitions.nextSlide.data.$background.height()<J.slider.height))&&(q.opacity=0),"slide"!=n.transition.type&&1!=y||-1!=n.name.toLowerCase().indexOf("mirror")?"scale"==n.transition.type&&(q.scaleX=W||B,q.scaleY=_||M,q.transformOrigin=U):(V=0!==I?-I:0,q.x=Y,q.y=N,q.rotation=V,q.scale=this.scale2D,q.opacity=X),n.transition.hasOwnProperty("opacity")&&(q.opacity=n.transition.opacity),void 0!==P&&J.transitions._slideTransition.to(P[0],n.transition.duration/1e3,{autoCSS:!1,css:q,ease:J.functions.convert.easing(n.transition.easing)},F)}V=b%l*i,q=Math.floor(b/l)*s,void 0!==J.transitions.curSlide.data.$background&&(S=J.transitions.curSlide.data.$background.data(J.defaults.init.dataKey),"3d"===e||"2d"===e&&(!0===v||"slide"===n.transition.type||"scale"===n.transition.type||!0===y||n.transition.hasOwnProperty("opacity"))?P.append(ie('<div style="position: absolute;">').css({width:J.slider.width,height:J.slider.height,left:-V,top:-q,transform:S.responsive.kbRotation+S.responsive.kbScale}).append(ie("<img>").attr("src",m).css({width:S.responsive.width,height:S.responsive.height,filter:S.responsive.filter,transform:"translateX("+S.responsive.x+"px) translateY("+S.responsive.y+"px)"}))):0===this.$curTiles.children().length&&this.$curTiles.append(ie('<div style="position: absolute;">').css({width:J.slider.width,height:J.slider.height,left:-V,top:-q,transform:S.responsive.kbRotation+S.responsive.kbScale}).append(ie("<img>").attr("src",m).css({width:S.responsive.width,height:S.responsive.height,filter:S.responsive.filter,transform:"translateX("+S.responsive.x+"px) translateY("+S.responsive.y+"px)"})))),"transparent"===J.transitions.curSlide.data.backgroundColor||J.transitions.curSlide.data.$backgroundVideo.length||("3d"===e||"2d"===e&&(!0===v||"slide"===n.transition.type||!0===y)?P:this.$curTiles).css("background-color",J.transitions.curSlide.data.backgroundColor),void 0!==J.transitions.nextSlide.data.$background&&(S=(F=J.transitions.nextSlide.data.$background.data(J.defaults.init.dataKey)).kenBurns[g],$.append(ie('<div style="position: absolute;">').css({width:J.slider.width,height:J.slider.height,left:-V,top:-q,transform:"rotate("+S.rotation+"deg) scale("+S.scale+")"}).append(ie("<img>").attr("src",f).css({width:F.responsive.width,height:F.responsive.height,filter:J.transitions.nextSlide.filter.from||"none",transform:"translateX("+F.responsive.x+"px) translateY("+F.responsive.y+"px)"})))),"transparent"===J.transitions.nextSlide.data.backgroundColor||J.transitions.nextSlide.data.$backgroundVideo.length||$.css("background-color",J.transitions.nextSlide.data.backgroundColor)}J.transitions.slide.$wrapper.prependTo(J.o.preferBlendMode?J.slider.$layersWrapper:J.slider.$innerWrapper),J.transitions.slide.start()},createCuboids:function(e,t,i,s,a,r,o,n,l,d){o="translate3d( "+a+"px, "+r+"px, "+o+"px)";0!==n&&(o+="rotateX( "+n+"deg)"),0!==l&&(o+="rotateY( "+l+"deg)");o={width:i,height:s,transform:o,"-ms-transform":o,"-webkit-transform":o};d&&(o["transform-origin"]=d,o["-ms-transform-origin"]=d,o["-webkit-transform-origin"]=d),ie("<div>").addClass(e).css(o).appendTo(t)}}},layers:{in:{onStart:function(e){e.data(J.defaults.init.dataKey).hover.enabled&&J.transitions.layers.hover.enable(e),J.layers.set.dataAttribute("add",e,"animating-in")},onComplete:function(e){J.media.functions.playIfAllowed(e),J.layers.set.dataAttribute("remove",e,"animating-in"),J.layers.set.dataAttribute("add",e,"active")}},out:{forced:function(){var a,r,o,n,e,t,i;J.transitions._forceLayersOut&&(J.transitions._slideTimeline&&(a=new ee.TimelineMax({paused:!0,autoRemoveChildren:!0}),n=[],e=J.layers.get("current, in, static, active").add(J.layers.get("current, out, static, active")),i=J.layers.get("current, out, notstatic, active"),t=J.layers.get("current, out, active"),i=ie().add(e).add(i),i.each(function(){var e,t=ie(this).data(J.defaults.init.dataKey);if(t.loop._timeline&&(J.transitions._slideTimeline.remove(t.loop._timeline),t.loop._timeline.play()),t.is.static){r=[t.elements.$wrapper[0]],t.elements.$clipWrapper&&(r=r.concat(t.elements.$clipWrapper[0])),t.textIn.nodes&&(r=r.concat(t.textIn.nodes));for(var i=0;i<r.length;i++)n=n.concat(J.transitions._slideTimeline.getTweensOf(r[i],!0),J.transitions._slideTimelineAlternate.getTweensOf(r[i],!0));for(var s=0;s<n.length;s++)n[s].duration&&0!==n[s].duration()&&(o=n[s],e=o,a.add(e,100-e.duration()*e.progress()))}}),t.each(function(){ie(this).data(J.defaults.init.dataKey).should.reset=!0}),a.play().seek(100),J.transitions._slideTimeline.eventCallback("onStart",null),J.transitions._slideTimeline.eventCallback("onComplete",null),J.transitions._slideTimeline.eventCallback("onReverseComplete",null),J.transitions._slideTimeline.eventCallback("onUpdate",null),J.transitions._slideTimeline.stop().clear(),J.transitions._slideTimelineAlternate.stop().clear()),("prev"===J.navigation.direction?J.transitions._forceLayersOutMirror:J.transitions._forceLayersOut).play(),J.slideshow.forceFastChange&&(J.transitions._forceLayersOut.progress(1),J.transitions._forceLayersOutMirror.progress(1))),J.slider.$layersWrapper.find(".ls-link").css({display:"none"})},onStart:function(e){J.layers.set.dataAttribute("add",e,"animating-out")},onComplete:function(e){var t=e.data(J.defaults.init.dataKey);!J.slider.state.changingSlides&&t.settings.slideOut===J.slides.current.index||J.transitions.layers.reset(e,t),t.hover.enabled&&J.transitions.layers.hover.disable(e),J.layers.set.dataAttribute("remove",e,"animating-out"),J.layers.set.dataAttribute("add",e,"hidden")}},reset:function(e,t){t.loop._timeline&&(t.loop._timeline.stop().clear(),delete t.loop._timeline,ee.TweenMax.set(t.elements.$loopWrapper[0],t.reset.loopWrapperOnSlideChange)),ee.TweenMax.set(t.elements.$wrapper[0],t.reset.wrapperOnSlideChange),ee.TweenMax.set(e[0],{"-webkit-filter":t.original.filter,filter:t.original.filter}),t.should.update&&(t.textInNodesFrom.random={},t.textOutNodesTo.random={},J.layers.update.data(e)),t.should.reset=!1},timeline:{shouldRestart:!1,create:function(e){var t,i,s,a=e?"current":"next";if(J.transitions.curNext=a,J.o.allowRestartOnResize||(J.transitions.layers.timeline.shouldRestart=!1),J.transitions.layers.timeline.resetStates(),J.transitions.timelines.set("layers",function(e,t){e.pause().progress(0).kill().clear(!0),e=null}),J.transitions._slideTimeline=new ee.TimelineMax({paused:!0,onStart:function(){J.api.hasEvent("slideTimelineDidStart")&&J.api.triggerEvent("slideTimelineDidStart",J.api.eventData())},onComplete:function(){J.o.playByScroll&&J.o.playByScrollSkipSlideBreaks&&("next"===J.slideshow.direction?J.transitions.layers.timeline.scrollForward(!0):J.transitions.layers.timeline.scrollBackwards(!0,!0))},onReverseComplete:function(){J.api.hasEvent("slideTimelineDidReverseComplete")&&J.api.triggerEvent("slideTimelineDidReverseComplete",J.api.eventData()),J.transitions.layers.timeline.shouldReplay&&(J.transitions.layers.timeline.shouldRestart=!1,J.transitions._slideTimeline.play()),J.o.playByScroll&&J.o.playByScrollSkipSlideBreaks&&J.transitions.layers.timeline.scrollBackwards(!0,!1)},onUpdate:function(e){J.api.hasEvent("slideTimelineDidUpdate")&&J.api.triggerEvent("slideTimelineDidUpdate",e)},onUpdateParams:["{self}"]}),J.transitions._slideTimelineAlternate=new ee.TimelineMax({paused:!0}),this.totalDuration=0,this.progress=1,J.transitions.timelines.set("prevforce",function(e,t){e.progress(1).kill().clear(!0),e=null}),J.transitions._forceLayersOut&&(J.transitions._forceLayersOutPrevious=J.transitions._forceLayersOut),J.transitions._forceLayersOutMirror&&(J.transitions._forceLayersOutMirrorPrevious=J.transitions._forceLayersOutMirror),J.transitions._forceLayersOut=new ee.TimelineMax({paused:!0,autoRemoveChildren:!0}),J.transitions._forceLayersOutMirror=new ee.TimelineMax({paused:!0,autoRemoveChildren:!0}),t=J.layers.get(a+", in, notactive"),i=J.layers.get(a+", out, notstatic").add(J.layers.get(a+", out, active, static")),e=J.layers.get(a+", in, bgonly, notactive"),s=ie().add(t).add(i).add(e),this.addLayers(t,"in",J.transitions._slideTimeline,J.transitions._forceLayersOut,J.transitions._slideTimelineAlternate,J.transitions._forceLayersOutMirror),this.addLayers(i,"out",J.transitions._slideTimeline,J.transitions._forceLayersOut,J.transitions._slideTimelineAlternate,J.transitions._forceLayersOutMirror),J.slides[a].data&&-1!==J.slides[a].data.duration&&J.slides[a].data.duration<this.totalDuration?(this.progress=J.slides[a].data.duration/this.totalDuration,J.debugMode&&J.debug.add("warn","slideTimeline.duration",[J.slides[a].data.duration,this.totalDuration])):J.transitions._slideTimeline.duration()>this.totalDuration&&(this.progress=this.totalDuration/J.transitions._slideTimeline.duration()),-1===J.slides[a].data.duration?(J.o.slideDuration&&ie.isNumeric(J.o.slideDuration)&&-1<J.o.slideDuration?this.totalDuration=J.o.slideDuration/1e3:0===this.totalDuration&&(this.totalDuration=J.o.slideDurationWithoutLayers/1e3),J.o.inLayerPreview&&(J.o.hasInfiniteLoop&&"loop-transition"===J.o.layerPreviewPresetType?this.totalDuration+=5:"ending-transition"===J.o.layerPreviewPresetType?this.totalDuration+=.25:"hover-transition"!==J.o.layerPreviewPresetType&&(this.totalDuration+=.5)),J.slides[a].data.duration=this.totalDuration,J.slides[J.slides[a].index].data.duration=this.totalDuration):this.totalDuration=J.slides[a].data.duration,!J.functions.getData("slideDuration",this.totalDuration))return!1;J.slider.isScrollScene&&(J.o.sceneDuration||(J.o.sceneDuration=this.totalDuration,J.resize.scene()),J.slider.$spacingWrapper.attr("data-scene-duration",J.o.sceneDuration)),this.addLayers(e,"in",J.transitions._slideTimeline,J.transitions._forceLayersOut,J.transitions._slideTimelineAlternate),!0===J.transitions.layers.timeline.shouldRestart&&J.debugMode&&J.debug.add("warn","slideTimeline.restart",J.o.allowRestartOnResize?"enabled":"disabled");for(var r,o=0;o<s.length;o++)ie(s[o]).data(J.defaults.init.dataKey).parallax.enabled&&ie(s[o]).data(J.defaults.init.dataKey).elements.$parallaxWrapper.attr("data-ls-parallax","active");J.transitions.layers.parallax.trigger(),J.transitions.layers.scroll.reset(),J.transitions.layers.scroll.trigger(),J.api.hasEvent("slideTimelineDidCreate")&&J.api.triggerEvent("slideTimelineDidCreate",{slideTimeline:J.transitions._slideTimeline,layersOnSlideTimeline:s,slideTimelineDuration:this.totalDuration}),J.transitions.timers.create(),J.transitions.timers.bar._transition&&J.transitions._slideTimeline.add(J.transitions.timers.bar._transition.play(),0),J.transitions.timers.circle._transition&&J.transitions._slideTimeline.add(J.transitions.timers.circle._transition.play(),0),J.transitions.timers.slidebar._transition&&J.transitions._slideTimeline.add(J.transitions.timers.slidebar._transition.play(),0),J.transitions._slideTimeline.call(function(){if(!J.transitions._slideTimeline.reversed()){var e;if(J.api.hasEvent("slideTimelineDidComplete"))if(J.o.inLayerPreview&&J.o.hasInfiniteLoop&&J.layers.get("current, in").each(function(){(e=ie(this).data(J.defaults.init.dataKey)).loop&&e.loop._timeline&&e.loop._timeline.stop().progress(0)}),!1===J.api.triggerEvent("slideTimelineDidComplete",J.api.eventData()))return;J.functions.setStates(J.transitions.layers.timeline,{finished:!0}),!J.slideshow.isPaused()&&J.slideshow.state.running?J.slideshow.changeTo(J.slides.next.index):J.slideshow.state.pausedByLastCycle&&J.transitions.timers.reverse()}},[],this,J.slides[a].data.duration),J.slides.next.data.$link&&J.slides.next.data.$link.css({display:"block"}),(!J.o.startInViewport||"inside"!==J.slider.position.toViewport&&!J.o.playByScrollStart&&J.slider.state.waitForGettingInViewport)&&J.o.startInViewport||!(J.slider.isPopup&&J.slider.state.popupIsVisible&&J.slider.state.popupShouldStart)&&J.slider.isPopup||(J.o.pauseLayers&&J.slideshow.isPaused()&&J.transitions._slideTimeline.timeScale(0),J.slider.isScrollScene||J.transitions.layers.timeline.play(),J.o.playByScroll&&"up"===J.device.scroll.directionAtSlideTransitionStart&&J.transitions._slideTimeline.progress(1)),J.transitions._slideTimelineAlternate.play(),J.slider.isScrollScene&&J.slider.set.offset(),$.trigger("mouseleave.globalhover"+B),$.off("mouseenter.globalhover"+B+" mouseleave.globalhover"+B+" mousemove.globalhover"+B),J.slides[a].data.globalhover&&(r=J.layers.get(a+",in,notactive").add(J.layers.get("static,active")),$.on("mouseenter.globalhover"+B,function(){r.each(function(){J.transitions.layers.hover.mouseEnter(ie(this),ie(this).data(J.defaults.init.dataKey))})}),$.on("mouseleave.globalhover"+B,function(){r.each(function(){J.transitions.layers.hover.mouseLeave(ie(this),ie(this).data(J.defaults.init.dataKey))})}),$.on("mousemove.globalhover"+B,function(){r.each(function(){J.transitions.layers.hover.mouseMove(ie(this),ie(this).data(J.defaults.init.dataKey))})}))},prepare:function(){J.slides.next.data.overflow&&"hidden"!==J.slides.next.data.overflow?(J.slider.$layersWrapper.addClass("ls-visible"),J.slider.$slideBGWrapper.addClass("ls-visible")):(J.slider.$layersWrapper.removeClass("ls-visible"),J.slider.$slideBGWrapper.removeClass("ls-visible")),this.create()},getTiming:function(e,t,i,s){if("number"==typeof t)return t;t=t.toLowerCase();var a,r,o,n,l,d=J.defaults.layer.timelineHierarchy,c=0;if(-1!==t.indexOf("*")&&(l="*"),-1!==t.indexOf("/")&&(l="/"),-1!==t.indexOf("+")&&(l="+"),-1!==t.indexOf("-")&&(l="-"),l)if(n=t.split(l),a=ie.trim(n[0]),o=parseInt(ie.trim(n[1])),d[a]&&-1!==d[i][1].indexOf(d[a][0])){if(!e.timeline[a]&&1<d[a][0]){var p,u,h=d[a][0]-1||1;for(u in d)d[u][0]===h&&(p=u);a=p}if(r="number"==typeof e.timeline[a]?e.timeline[a]:e.timeline[a](e),s)c=o/1e3;else switch(l){case"*":c=r*o;break;case"/":c=r/o;break;case"+":c=r+o/1e3;break;case"-":c=r-o/1e3}}else J.debugMode&&(d[a]||J.debug.add("warn","layerTransition.timing1",a),-1===d[i][1].indexOf(d[a][0])&&J.debug.add("warn","layerTransition.timing3",[a,d[a],i,d[i]])),"+"!==l&&!s||(c=o/1e3);else d[a=ie.trim(t)]&&-1!==d[i][1].indexOf(d[a][0])?c=s?0:"number"==typeof e.timeline[a]?e.timeline[a]:e.timeline[a](e):J.debugMode&&(d[a]?-1===d[i][1].indexOf(d[a][0])&&J.debug.add("warn","layerTransition.timing3",[a,d[a],i,d[i]]):J.debug.add("warn","layerTransition.timing1",a));return(c!=c||c<0)&&(J.debugMode&&J.debug.add("warn","layerTransition.timing2",[i,a,c]),c=0),c},addLayers:function(e,t,i,s,a,r){for(var o=0,n=e.length;o<n;o++){var l,d,c,p,u=e[o],h=ie(u),m=h.data(J.defaults.init.dataKey),f=m.elements.$wrapper,g=m.elements.$clipWrapper,y=m.elements.$loopWrapper,v=m.elements.$parallaxWrapper,w=(m.elements.$scrollWrapper,m.elements.$scrollTransformWrapper,m.settings.skipViewport&&J.slideshow.state.changed<1?a:i),b="loop"==m.settings.skipViewport&&J.slideshow.state.changed<1?a:i,S=ie.extend(!0,{},m.inLayerFrom),x=S.css,T=ie.extend({},m.inLayerShouldBeConverted),k=ie.extend(!0,{},m.outLayerTo),C=k.css,O=ie.extend({},m.outLayerShouldBeConverted),P=ie.extend(!0,{},m.textInNodesFrom),L=ie.extend(!0,{},m.textInShouldBeConverted),I=ie.extend(!0,{},m.textOutNodesTo),$=ie.extend(!0,{},m.textOutShouldBeConverted);if(m.should.reset&&J.transitions.layers.reset(h,m),h.hasClass("ls-bg"))m.kenBurns.zoom&&i.fromTo(h.closest(".ls-bg-wrap"),J.transitions.nextSlide.data.duration+J.transitions.nextSlide.data.calculatedTimeShift,{autoCSS:!1,css:m.kenBurns.from},{autoCSS:!1,css:m.kenBurns.to,ease:ee.Quad.easeInOut},-J.transitions.nextSlide.data.calculatedTimeShift),ie.isEmptyObject(m.filter.values.bgFrom)&&ie.isEmptyObject(m.filter.values.bgTo)||(m.filter.transitions.bg||(m.filter.transitions.bg=J.transitions.layers.filters.createTransition(m,"bg",m.filter.values.bgFrom,m.filter.values.bgTo)),w.to([{p:0},u],J.transitions.nextSlide.data.duration,{p:1,autoCSS:!1,ease:ee.Sine.easeInOut,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",m.filter.transitions.bg]},0));else switch(t){case"in":if(m.in.enabled?(m.settings.timelineIsCalculated||("number"!=typeof m.in.startAt&&(m.in.startAt=0),m.timeline.transitioninstart=m.in.startAt,m.timeline.transitioninend=m.timeline.transitioninstart+m.in.duration),J.resize.performTransformOperations(m.inLayerToCSS,x),m.in.mirror&&"prev"===J.navigation.direction&&J.resize.mirrorTransitionProperties({transitionProperties:x,transitionPropertiesShouldBeConverted:T,transitionType:"normal",mirrorProperties:m.in.mirror}),J.resize.transformProperties(h,m,x,T),J.resize.styleProperties(m,m.inLayerStyleFromCSS,m.inLayerStyleShouldBeConvertedFrom),J.resize.styleProperties(m,m.inLayerStyleToCSS,m.inLayerStyleShouldBeConvertedTo),x.transformPerspective=m.transformPerspective.layer*m.settings.calculatedratio,m.clip.enabled&&(m.original.clip||(m.original.clip=m.clip.min,m.original.clipShouldBeConverted=!0),m.inClipShouldBeConverted.clip?(m.inClipFromCSS.clip=J.resize.clip(h,m,m.inClipShouldBeConverted.clip,!0),m.inClipToCSS.clip=J.resize.clip(h,m,m.original.clip,m.original.clipShouldBeConverted),w.fromTo(g[0],m.in.duration,m.inClipFrom,m.inClipTo,m.timeline.transitioninstart)):ee.TweenMax.set(g[0],{clip:J.resize.clip(h,m,m.original.clip,m.original.clipShouldBeConverted)}),J.transitions.layers.timeline.shouldRestart=!0),ie.isEmptyObject(m.filter.values.in)?ie.isEmptyObject(m.filter.values.out)||h.css("filter",m.original.filter):(m.filter.transitions.in||(m.filter.transitions.in=J.transitions.layers.filters.createTransition(m,"in",m.filter.values.in,m.filter.values.style)),w.to([{p:0},u],m.in.duration,{p:1,autoCSS:!1,ease:m.inLayerTo.ease,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",m.filter.transitions.in]},m.timeline.transitioninstart)),m.is.smartBG&&-1!==m.styleSettings.smartbg.indexOf("in")&&(m.inLayerStyleFrom.css["--x"]=parseInt(m.responsive["--x"])-x.x+"px",m.inLayerStyleTo.css["--x"]=parseInt(m.responsive["--x"])+"px",m.inLayerStyleFrom.css["--y"]=parseInt(m.responsive["--y"])-x.y+"px",m.inLayerStyleTo.css["--y"]=parseInt(m.responsive["--y"])+"px"),0===m.timeline.transitioninstart&&0===m.in.duration?(m.inLayerTo.css.transformOrigin=S.css.transformOrigin,m.inLayerTo.css.transformPerspective=S.css.transformPerspective,w.set(f[0],m.inLayerTo,m.timeline.transitioninstart),w.set(u,m.inLayerStyleTo,m.timeline.transitioninstart)):(w.fromTo(f[0],m.in.duration,S,m.inLayerTo,m.timeline.transitioninstart),w.fromTo(u,m.in.duration,m.inLayerStyleFrom,m.inLayerStyleTo,m.timeline.transitioninstart))):(m.timeline.transitioninstart=0,m.timeline.transitioninend=0),m.is.textLayer&&((m.textIn.type||m.textOut.type)&&J.transitions.layers.splitType.resetNodes(h,m),m.textIn.enabled&&(B=!(!m.textIn.mirror||"prev"!==J.navigation.direction),m.in.enabled||w.to(f[0],0,ie.extend(!0,{},m.inLayerTo,m.init.wrapper),m.timeline.textinstart),d=J.transitions.layers.splitType.setNodesSequence(m.textIn.type.split("_"),m.textIn.ns),m.textIn.nodes=B?d[1]:d[0],B&&J.resize.mirrorTransitionProperties({transitionProperties:P,transitionPropertiesShouldBeConverted:L,transitionType:"text",mirrorProperties:m.textIn.mirror}),J.resize.transformProperties(h,m,P,L,!1,m.textIn.nodes),P.transformPerspective=m.transformPerspective.text*m.settings.calculatedratio,ie.isEmptyObject(L.random)||J.transitions.layers.splitType.setRandomProperties(m,L.random,P,"In"),ie.isEmptyObject(P.random)||J.transitions.layers.splitType.setRandomProperties(m,P.random,P,"In"),delete P.random,m.settings.timelineIsCalculated||(m.timeline.textinstart=this.getTiming(m,m.textIn.startAt,"textinstart"),m.timeline.textinend=m.timeline.textinstart+(m.textIn.nodes.length-1)*m.textIn.shiftNodes+m.textIn.duration),P.color?m.textInNodesToCSS.color=m.original.color:m.textOutNodesTo.color&&(P.color=m.original.color),w.set(u,m.textIn.layerStyle,m.timeline.textinstart),window.getSelection&&J.browser.isSafari&&w.addCallback(function(e){window.getSelection().setBaseAndExtent(e,0,e,1e3),window.getSelection().removeAllRanges()},m.timeline.textinstart+.001,[u]),w.staggerFromTo(m.textIn.nodes,m.textIn.duration,P,m.textInNodesTo,m.textIn.shiftNodes,m.timeline.textinstart,function(e){J.transitions.layers.in.onComplete(e)},[h]))),m.is.keyframe&&J.o.playByScroll&&i.addPause(m.timeline.allinend(),function(){setTimeout(function(){delete J.timeouts.scroll,J.transitions.layers.timeline.timeScaleModifier=0,J.device.scroll.timeout=250},500)}),m.parallax.enabled&&"auto"==m.parallax.event){J.transitions.layers.parallax.auto();var B=new ee.TimelineMax({paused:!0}),M={repeat:-1==m.parallax.count?-1:m.parallax.count-1,ease:ee.Linear.easeNone};switch(m.settings.timelineIsCalculated&&!m.is.static||(m.timeline.autoparallaxstart=this.getTiming(m,m.parallax.startAt,"autoparallaxstart"),m.timeline.autoparallaxend=-1!==m.parallax.count&&m.timeline.autoparallaxstart+m.parallax.duration*m.parallax.count),m.parallax._timeline=B,m.parallax.dummy={x:0,y:-10},m.parallax.path){default:case"circle":M.bezier={curviness:1.5,values:[{x:10,y:0},{x:0,y:10},{x:-10,y:0},{x:0,y:-10}]};break;case"oval-h":M.bezier={type:"thru",curviness:1,values:[{x:20,y:0},{x:0,y:10},{x:-20,y:0},{x:0,y:-10}]};break;case"oval-v":m.parallax.dummy={x:0,y:-20},M.bezier={type:"thru",curviness:1,values:[{x:10,y:0},{x:0,y:20},{x:-10,y:0},{x:0,y:-20}]};break;case"infinity":m.parallax.dummy={x:0,y:0},M.bezier={type:"thru",curviness:1,values:[{x:20,y:-10},{x:40,y:0},{x:20,y:10},{x:0,y:0},{x:-20,y:-10},{x:-40,y:0},{x:-20,y:10},{x:0,y:0}]};break;case"linear-h":m.parallax.dummy={x:-10,y:0},M.x=10,M.ease=ee.Quad.easeInOut,M.yoyo=!0,M.repeat=-1==m.parallax.count?-1:2*m.parallax.count-1;break;case"linear-v":m.parallax.dummy={x:0,y:-10},M.y=10,M.ease=ee.Quad.easeInOut,M.yoyo=!0,M.repeat=-1==m.parallax.count?-1:2*m.parallax.count-1}M.onUpdate=function(e,t,i,s,a,r,o){ee.TweenMax.set(i,{x:-t.x*(s/50)*parseInt(a),y:-t.y*(s/50)*parseInt(a),rotationX:"3d"==r?t.y/(100/o):0,rotationY:"3d"==r?-t.x/(100/o):0})},M.onUpdateParams=["{self}",m.parallax.dummy,v[0],m.parallax.distance,m.parallax.level,m.parallax.type,m.parallax.rotation],B.to(m.parallax.dummy,-1==m.parallax.path.indexOf("linear")?m.parallax.duration:m.parallax.duration/2,M),i.addCallback(function(e){e.play()},m.timeline.autoparallaxstart,[B])}m.loop.enabled&&(c=new ee.TimelineMax({repeat:m.loop.repeat,repeatDelay:m.loop.repeatDelay,yoyo:m.loop.yoyo,paused:!0}),m.settings.timelineIsCalculated&&!m.is.static||(m.timeline.loopstart=this.getTiming(m,m.loop.startAt,"loopstart"),m.timeline.loopend=-1!==m.loop.count&&m.timeline.loopstart+(m.loop.repeat+1)*m.loop.duration+m.loop.repeat*m.loop.repeatDelay),m.loop._timeline=c,J.resize.transformProperties(h,m,m.loopToCSS,{x:m.loopLayerShouldBeConverted.x,y:m.loopLayerShouldBeConverted.y}),(m.loopToCSS.x&&0!==m.loopToCSS.x||m.loopToCSS.y&&0!==m.loopToCSS.y)&&(J.transitions.layers.timeline.shouldRestart=!0),m.loopFromCSS.transformOrigin=J.functions.convert.transformOrigin(m.loopLayerShouldBeConverted.transformOrigin,h,m,h.data(J.defaults.init.dataKey).elements.$outerStyleWrapper),m.loopFromCSS.transformPerspective=m.transformPerspective.loop*m.settings.calculatedratio,ie.isEmptyObject(m.filter.values.loop)||(m.filter.transitions.loop||(m.filter.transitions.loop=J.transitions.layers.filters.createTransition(m,"loop",ie.isEmptyObject(m.filter.values.afterIn)?m.filter.values.style:m.filter.values.afterIn,m.filter.values.loop)),c.to([{p:0},u],m.loop.duration,{p:1,autoCSS:!1,ease:m.loopTo.ease,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",m.filter.transitions.loop]},0)),c.fromTo(y[0],m.loop.duration,m.loopFrom,m.loopTo,0),m.is.smartBG&&-1!==m.styleSettings.smartbg.indexOf("loop")&&c.fromTo(u,m.loop.duration,{"--lx":"0px","--ly":"0px"},{ease:m.loopTo.ease,"--lx":-m.loopTo.css.x+"px","--ly":-m.loopTo.css.y+"px"},0),m.loopClipShouldBeConverted.clip&&(m.loopClipToCSS.clip=J.resize.clip(h,m,m.loopClipShouldBeConverted.clip,!0),c.to(g[0],m.loop.duration,m.loopClipTo,0),J.transitions.layers.timeline.shouldRestart=!0),-1!==m.loop.repeat&&("looplayers"===J.o.pauseOnHover||J.gui.timers.slidebar.$element||J.o.playByScroll)?(b.add(c,m.timeline.loopstart),c.play()):b.addCallback(function(e){e.play()},m.timeline.loopstart,[c])),m.is.static&&(m.timeline.staticfrom=m.timeline.transitioninend,m.timeline.staticto="100%",m.settings.timelineIsCalculated||(l=Math.max(m.timeline.allinandloopend(),0),this.totalDuration=Math.max(this.totalDuration,l)));break;case"out":m.is.textLayer&&m.textOut.enabled&&(c=J.transitions.layers.splitType.setNodesSequence(m.textOut.type.split("_"),m.textOut.ns),m.textOut.nodes=c[0],J.resize.transformProperties(h,m,m.textOutNodesTo,m.textOutShouldBeConverted,m.textOutNodesFrom,m.textOut.nodes),m.textOut.mirror?(m.textOut.nodesMirror=c[1],J.resize.mirrorTransitionProperties({transitionProperties:I,transitionPropertiesShouldBeConverted:$,transitionType:"text",mirrorProperties:m.textOut.mirror}),J.resize.transformProperties(h,m,I,$,m.textOutNodesFrom,m.textOut.nodes)):m.textOut.nodesMirror=c[0],m.textOutNodesFrom.transformPerspective=m.transformPerspective.text*m.settings.calculatedratio,ie.isEmptyObject(m.textOutShouldBeConverted.random)||J.transitions.layers.splitType.setRandomProperties(m,m.textOutShouldBeConverted.random,m.textOutNodesTo,"Out"),ie.isEmptyObject(m.textOutNodesTo.random)||J.transitions.layers.splitType.setRandomProperties(m,m.textOutNodesTo.random,m.textOutNodesTo,"Out"),delete m.textOutNodesTo.random,m.textOut.mirror&&(ie.isEmptyObject($.random)||J.transitions.layers.splitType.setRandomProperties(m,$.random,I,"Out"),ie.isEmptyObject(I.random)||J.transitions.layers.splitType.setRandomProperties(m,I.random,I,"Out"),delete I.random),m.settings.timelineIsCalculated||(m.timeline.textoutstart=this.getTiming(m,m.textOut.startAt,"textoutstart"),m.timeline.textoutend=m.timeline.textoutstart+(m.textOut.nodes.length-1)*m.textOut.shiftNodes+m.textOut.duration),m.clip.enabled&&(void 0===m.outClipShouldBeConverted.clip&&i.to(g[0],0,{immediateRender:!1,css:{clip:J.resize.clip(h,m,m.clip.max)}},m.timeline.textoutstart),J.transitions.layers.timeline.shouldRestart=!0),m.textOutNodesTo.color&&(m.textOutNodesFrom.color=m.original.color),-1!==m.textOut.startAt.indexOf("slidechangeonly")&&(!m.is.static||m.is.static&&m.settings.slideOut===J.slides.next.index)?(s.set(u,m.textOut.layerStyle,0),r.set(u,m.textOut.layerStyle,0),(p=new ee.TimelineMax).staggerFromTo(m.textOut.nodes,m.textOut.duration,m.textOutNodesFrom,m.textOutNodesTo,m.textOut.shiftNodes,0),p.timeScale(p.duration()/J.o.forceLayersOutDuration),s.add(p,0),s.to(f[0],0,m.reset.wrapperOnTimelineEnd,J.o.forceLayersOutDuration),(p=new ee.TimelineMax).staggerFromTo(m.textOut.nodesMirror,m.textOut.duration,m.textOutNodesFrom,I,m.textOut.shiftNodes,0),p.timeScale(p.duration()/J.o.forceLayersOutDuration),r.add(p,0)):(i.set(u,m.textOut.layerStyle,m.timeline.textoutstart),i.staggerFromTo(m.textOut.nodes,m.textOut.duration,m.textOutNodesFrom,m.textOutNodesTo,m.textOut.shiftNodes,m.timeline.textoutstart),s.to(f[0],J.o.forceLayersOutDuration,{opacity:0},0),r.to(f[0],J.o.forceLayersOutDuration,{opacity:0},0),s.to(f[0],0,m.reset.wrapperOnTimelineEnd,J.o.forceLayersOutDuration)),r.to(f[0],0,m.reset.wrapperOnTimelineEnd,J.o.forceLayersOutDuration)),m.out.enabled&&(J.resize.performTransformOperations(m.inLayerToCSS,m.outLayerToCSS),J.resize.transformProperties(h,m,m.outLayerToCSS,m.outLayerShouldBeConverted,m.outLayerFromCSS),J.resize.styleProperties(m,m.outLayerStyleFromCSS,m.outLayerStyleShouldBeConvertedFrom),J.resize.styleProperties(m,m.outLayerStyleToCSS,m.outLayerStyleShouldBeConvertedTo),m.outLayerFromCSS.transformPerspective=m.transformPerspective.layer*m.settings.calculatedratio,m.out.mirror&&(J.resize.performTransformOperations(m.inLayerToCSS,C),J.resize.mirrorTransitionProperties({transitionProperties:C,transitionPropertiesShouldBeConverted:O,transitionType:"normal",mirrorProperties:m.out.mirror}),J.resize.transformProperties(h,m,C,O,m.outLayerFromCSS)),m.is.smartBG&&-1!==m.styleSettings.smartbg.indexOf("out")&&(m.outLayerStyleFrom.css["--x"]=parseInt(m.responsive["--x"])+"px",m.outLayerStyleTo.css["--x"]=parseInt(m.responsive["--x"])-m.outLayerToCSS.x+"px",m.outLayerStyleFrom.css["--y"]=parseInt(m.responsive["--y"])+"px",m.outLayerStyleTo.css["--y"]=parseInt(m.responsive["--y"])-m.outLayerToCSS.y+"px"),ie.isEmptyObject(m.filter.values.out)||m.filter.transitions.out||(m.filter.transitions.out=J.transitions.layers.filters.createTransition(m,"out",ie.isEmptyObject(m.filter.values.afterLoop)?ie.isEmptyObject(m.filter.values.afterIn)?m.filter.values.style:m.filter.values.afterIn:m.filter.values.afterLoop,m.filter.values.out)),"slidechangeonly"!==m.out.startAt?(m.settings.timelineIsCalculated&&!m.is.static||(m.is.static?(m.timeline.staticfrom=0,m.timeline.transitionoutstart=this.getTiming(m,m.out.startAt,"transitionoutstart",!0),m.timeline.staticto=m.timeline.transitionoutstart):m.timeline.transitionoutstart=Math.max(this.getTiming(m,m.out.startAt,"transitionoutstart"),m.timeline.transitioninend),m.timeline.transitionoutend=m.timeline.transitionoutstart+m.out.duration),m.clip.enabled&&(void 0===m.outClipShouldBeConverted.clip?i.to(g[0],0,{immediateRender:!1,css:{clip:J.resize.clip(h,m,m.clip.max)}},m.timeline.transitionoutstart):(m.outClipToCSS.clip=J.resize.clip(h,m,m.outClipShouldBeConverted.clip,!0),i.to(g[0],m.out.duration,m.outClipTo,m.timeline.transitionoutstart)),J.transitions.layers.timeline.shouldRestart=!0),ie.isEmptyObject(m.filter.values.out)||i.to([{p:0},u],m.out.duration,{p:1,autoCSS:!1,ease:m.outLayerTo.ease,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",m.filter.transitions.out]},m.timeline.transitionoutstart),m.outLayerStyleTo.onComplete=function(e,t){t.is.mediaLayer&&t.mediaProperties.$media[0].hasAttribute("data-ls-playing")&&J.media.functions.stopSingleMedia(e,t)},m.outLayerStyleTo.onCompleteParams=[h,m],i.fromTo(f[0],m.out.duration,m.outLayerFrom,m.outLayerTo,m.timeline.transitionoutstart),i.fromTo(u,m.out.duration,m.outLayerStyleFrom,m.outLayerStyleTo,m.timeline.transitionoutstart),i.fromTo(f[0],0,m.init.wrapper,m.reset.wrapperOnTimelineEnd,m.timeline.transitionoutend)):(m.timeline.staticfrom=0,m.timeline.staticto="100%"),p=Math.min(J.o.forceLayersOutDuration,m.out.duration),(!m.is.static||m.is.static&&m.settings.slideOut===J.slides.next.index)&&(s.fromTo(f[0],p,m.outLayerFrom,m.outLayerTo,0),s.fromTo(u,p,m.outLayerStyleFrom,m.outLayerStyleTo,0),r.fromTo(f[0],p,m.outLayerFrom,m.out.mirror?k:m.outLayerTo,0),r.fromTo(u,p,m.outLayerStyleFrom,m.outLayerStyleTo,0),m.clip.enabled&&void 0!==m.outClipShouldBeConverted.clip&&(m.outClipToCSS.clip=J.resize.clip(h,m,m.outClipShouldBeConverted.clip,!0),s.to(g[0],p,m.outClipTo,0),r.to(g[0],p,m.outClipTo,0)),ie.isEmptyObject(m.filter.values.out)||(s.to([{p:0},u],m.out.duration,{p:1,autoCSS:!1,ease:m.outLayerTo.ease,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",m.filter.transitions.out]},0),r.to([{p:0},u],m.out.duration,{p:1,autoCSS:!1,ease:m.outLayerTo.ease,onUpdate:J.transitions.layers.filters.animate,onUpdateParams:["{self}",m.filter.transitions.out]},0)))),l=Math.max(m.timeline.alloutandloopend(),0),this.totalDuration=Math.max(this.totalDuration,l),m.settings.timelineIsCalculated=!0}}},play:function(){J.transitions._slideTimeline&&(J.transitions._slideTimeline.play(),J.functions.setStates(this,{started:!0,running:!0,stopped:!1,paused:!1}))},pause:function(e){e=ie.isNumeric(e)?e:.75;J.transitions._slideTimeline&&(ee.TweenMax.to(J.transitions._slideTimeline,e,{timeScale:0}),J.functions.setStates(this,{paused:!0,stopped:!1}))},resume:function(){J.transitions._slideTimeline&&(ee.TweenMax.to(J.transitions._slideTimeline,.75,{timeScale:1}),J.functions.setStates(this,{paused:!1,stopped:!1}))},reverse:function(){J.transitions._slideTimeline&&J.transitions._slideTimeline.reverse()},scrollForward:function(e){e||(this.play(),this.modifyTimeScale()),J.transitions._slideTimeline&&(J.slider.isBusy()||0!==J.transitions._slideTimeline.totalDuration()&&1!==J.transitions._slideTimeline.progress()||"down"!==J.device.scroll.direction||(J.slideshow.direction="next",(e=J.slideshow.sequence.normalized).indexOf(J.slides.current.index)===e.length-1?(J.slider.positionToViewport="under",J.device.scroll.enable(),J.slideshow.direction="prev"):J.navigation.next()))},scrollBackwards:function(e,t){e&&!t||(this.reverse(),this.modifyTimeScale()),J.transitions._slideTimeline&&(J.slider.isBusy()||0!==J.transitions._slideTimeline.totalDuration()&&0!==J.transitions._slideTimeline.progress()||"up"!==J.device.scroll.direction||(J.slideshow.direction="prev",0===J.slideshow.sequence.normalized.indexOf(J.slides.current.index)?(J.slider.positionToViewport="over",J.device.scroll.enable(),J.slideshow.direction="next"):J.navigation.prev()))},modifyTimeScale:function(){J.transitions._slideTimeline&&ee.TweenMax.to(J.transitions._slideTimeline,.25,{timeScale:1+this.timeScaleModifier})},resetStates:function(){this.state={started:!1,running:!1,paused:!1,stopped:!1,finished:!1}}},hover:{enable:function(e){e.attr("data-ls-canhover","1")},disable:function(e){e.attr("data-ls-canhover","0")},set:function(e,t){t.elements.$wrapper.on("mouseenter."+B,function(){J.transitions.layers.hover.mouseEnter(e,t)}),t.elements.$wrapper.on("mouseleave."+B,function(){J.transitions.layers.hover.mouseLeave(e,t)}),t.elements.$wrapper.on("mousemove."+B,function(){J.transitions.layers.hover.mouseMove(e,t)})},createTimeline:function(e,t){var i,s,a;t.hover._timeline=new ee.TimelineMax({paused:!0,onReverseComplete:function(e,t){t.hover._timeline._reversed&&(t.hover._timeline.stop().clear(),delete t.hover._timeline)},onReverseCompleteParams:[e,t]}),J.resize.transformProperties(e,t,t.hoverToCSS,t.hoverShouldBeConverted,t.hoverFromCSS),J.resize.styleProperties(t,t.hoverToCSS,t.hoverShouldBeConverted),t.hoverFromCSS.transformPerspective=t.transformPerspective.hover*t.settings.calculatedratio,t.hover._tween=ee.TweenMax.fromTo(e[0],t.hover.durationIn,t.hoverFrom,t.hoverTo),t.hover._timeline.add(t.hover._tween,0),e.next().is(".ls-layer-link")?(i=e.next(),s=ie.extend(!0,{},t.hoverFrom,{css:{opacity:1,color:"transparent",background:"transparent",z:0}}),a=ie.extend(!0,{},t.hoverTo,{css:{opacity:1,color:"transparent",background:"transparent",z:0}}),t.hover._linkTween=ee.TweenMax.fromTo(i[0],t.hover.durationIn,s,a),t.hover._timeline.add(t.hover._linkTween,0)):t.hover._linkTween=null,t.hover.alwaysOnTop&&(a={zIndex:9999},J.browser.isSafari&&(a.transform="translateZ(999999px)"),t.hover._timeline.to(t.elements.$outerWrapper[0],t.hover.durationIn,{autoCSS:!1,css:a},0)),t.hover.reverseTimeScale=t.hover.durationIn/t.hover.durationOut==1?1:t.hover.durationIn/t.hover.durationOut,this.hoverIn(e,t)},mouseEnter:function(e,t){"1"===e.attr("data-ls-canhover")&&(e.attr("data-ls-hovered",1),t.elements.$wrapper.off("mousemove."+B),t.hover._timeline?(t.hover._timeline.play().stop().progress(0),this.hoverIn(e,t)):this.createTimeline(e,t))},mouseLeave:function(e,t){t.hover._timeline&&(t.hover._timeline.stop().progress(1),this.hoverOut(e,t)),e.removeAttr("data-ls-hovered")},mouseMove:function(e,t){e.attr("data-ls-hovered")||this.mouseEnter(e,t)},hoverIn:function(e,t){t.hover._tween.updateTo({ease:t.hover.easeIn}),t.hover._linkTween&&t.hover._linkTween.updateTo({ease:t.hover.easeIn}),t.hover._timeline.play().timeScale(1)},hoverOut:function(e,t){t.hover._tween.updateTo({ease:t.hover.easeOut}),t.hover._linkTween&&t.hover._linkTween.updateTo({ease:t.hover.easeOut}),t.hover._timeline.reverse().timeScale(t.hover.reverseTimeScale)}},parallax:{defaultProperties:{type:"2d",event:"cursor",path:"circle",direction:"clockwise",duration:5,count:-1,startAt:"slidestart",x:!0,y:!0,rotation:10,distance:10,durationMove:1.5,durationLeave:1.2,transformOrigin:"slidercenter slidermiddle 0",transformPerspective:500},defaults:{scrollModifier:5,centerLayers:"center",centerDegree:40,sensitive:10},state:{enabled:!1,ready:!1},wrappers:{cursor:{$2d:ie(),$3d:ie()},scroll:{$2d:ie(),$3d:ie()},auto:{$2d:ie(),$3d:ie()}},init:function(){var t=this;$.on("mouseenter."+B,function(){(t.wrappers.cursor.$2d.length||t.wrappers.cursor.$3d.length)&&t.calculateTransformProperties()}),$.on("mousemove."+B,function(e){(t.wrappers.cursor.$2d.length||t.wrappers.cursor.$3d.length)&&t.mouseMove(e)}),$.on("mouseleave."+B,function(){(t.wrappers.cursor.$2d.length||t.wrappers.cursor.$3d.length)&&t.reset()}),M.on("scroll.parallax"+B+" touchmove.parallax"+B,function(){(t.wrappers.scroll.$2d.length||t.wrappers.scroll.$3d.length)&&(t.state.paused||t.scroll())}),M.on("resize.parallax"+B,function(){(t.wrappers.auto.$2d.length||t.wrappers.auto.$3d.length||t.wrappers.scroll.$2d.length||t.wrappers.scroll.$3d.length||t.wrappers.cursor.$2d.length||t.wrappers.cursor.$3d.length)&&t.calculateTransformProperties()}),t.defaults.scrollModifier*=J.o.parallaxScrollReverse?-1:1},addLayer:function(e,t,i,s){switch(this.state.enabled||(J.functions.setStates(this,{enabled:!0}),this.init()),ie.extend(!0,t,this.defaultProperties,J.slides[s].parallax,i.parallax),i.transformPerspective.parallax?t.transformPerspective=i.transformPerspective.parallax:i.transformPerspective.parallax=t.transformPerspective,t.event.match(/(cursor|scroll|auto)/)||(t.event="cursor"),t.path.match(/(circle|oval-h|oval-v|infinity|linear-h|linear-v)/)||(t.path="circle"),t.direction.match(/(clockwise|counterclockwise)/)||(t.direction="clockwise"),t.type.match(/(2d,3d)/)&&(t.type="2d"),(i.parallax=t).axis){case"none":t.x=!1,t.y=!1;break;case"x":t.y=!1;break;case"y":t.x=!1}this.wrappers[t.event]["$"+t.type]=this.wrappers[t.event]["$"+t.type].add(e)},addShadow:function(){var e,t,i,s=J.gui.shadow.$element,a=(J.slides.current&&J.slides.current.parallax?J.slides.current:J.slides.next).index;J.slides[a].data.$background&&J.slides[a].data.$background.data(J.defaults.init.dataKey).parallax.enabled&&J.slides[a].data.overflow&&"hidden"!==J.slides[a].data.overflow&&(e="50% -"+.25*J.slider.height+"px 0",i=void 0!==(t=J.slides[a].data.$background.data(J.defaults.init.dataKey).parallax).rotation?2*t.rotation:void 0!==J.slides[a].parallax.rotation?2*J.slides[a].parallax.rotation:2*this.defaultProperties.rotation,s.data(J.defaults.init.dataKey,{parallax:ie.extend(!0,{},this.defaultProperties,J.slides[a].parallax,{level:t.level,transformOrigin:e,rotation:i})}),s.attr("data-ls-parallax","active"),ee.TweenMax.set(s[0],{transformOrigin:e,transformPerspective:s.data(J.defaults.init.dataKey).parallax.transformPerspective*J.resize.ratio}),"3d"===J.slides[a].parallax.type||"3d"===t.type?this.wrappers.cursor.$3d=this.wrappers.cursor.$3d.add(s):this.wrappers.cursor.$2d=this.wrappers.cursor.$2d.add(s)),this.shadowIsChecked=!0},removeShadow:function(){var e=J.gui.shadow.$element;this.wrappers.cursor.$2d=this.wrappers.cursor.$2d.not(e),this.wrappers.cursor.$3d=this.wrappers.cursor.$3d.not(e),e.attr("data-ls-parallax","disabled"),this.shadowIsChecked=!1},calculateTransformProperties:function(){ie().add(this.wrappers.cursor.$2d).add(this.wrappers.cursor.$3d).add(this.wrappers.scroll.$2d).add(this.wrappers.scroll.$3d).add(this.wrappers.auto.$2d).add(this.wrappers.auto.$3d).each(function(){var e=ie(this),t=e.data(J.defaults.init.dataKey).parallax,i=e.find(".ls-layer"),s=i.data(J.defaults.init.dataKey);ee.TweenMax.set(ie(this)[0],{transformOrigin:J.functions.convert.transformOrigin(t.transformOrigin,i.data(J.defaults.init.dataKey).elements.$wrapper,s,e),transformPerspective:t.transformPerspective*s.settings.calculatedratio})}),this.transformPropertiesCalculated=!0},trigger:function(){M.trigger("scroll.parallax"+B),M.trigger("touchmove.parallax"+B)},auto:function(){this.transformPropertiesCalculated||this.calculateTransformProperties()},scroll:function(){var e=(("top"===this.defaults.centerLayers?te.scroll.top:te.scroll.top+(te.viewport.height-J.slider.height)/2)-J.slider.offset.top)*J.resize.ratio*this.defaults.scrollModifier;J.slider.state.inFullscreen&&(e=0),this.transformPropertiesCalculated||this.calculateTransformProperties(),this.animate2D(0,e,"scroll"),this.animate3D(0,e,"scroll")},mouseMove:function(e){var t,i;this.transformPropertiesCalculated?(J.slider.state.animatingSlides||this.shadowIsChecked||!J.gui.shadow.$element||this.addShadow(),t=J.slider.offset.left+J.slider.width/2,i=J.slider.offset.top+J.slider.height/2,t=e.pageX-t,i=e.pageY-i,this.animate2D(t,i,"cursor"),this.animate3D(t,i,"cursor")):this.calculateTransformProperties()},animate2D:function(a,r,e){this.wrappers[e].$2d.each(function(){var e,t,i,s=ie(this);"active"===s.attr("data-ls-parallax")&&(t=(e=s.data(J.defaults.init.dataKey).parallax).x?-a*(e.distance/2e3)*parseInt(e.level):0,i=e.y?-r*(e.distance/2e3)*parseInt(e.level):0,ee.TweenMax.to(s[0],e.durationMove,{x:t,y:i}))})},animate3D:function(o,n,e){this.wrappers[e].$3d.each(function(){var e,t,i,s,a,r=ie(this);"active"===r.attr("data-ls-parallax")&&(s=(e=r.data(J.defaults.init.dataKey).parallax).x?(i=-o/(4e3/e.rotation),-o*(e.distance/2e3)*parseInt(e.level)):i=0,a=e.y?(t=n/(4e3/e.rotation),-n*(e.distance/2e3)*parseInt(e.level)):t=0,ee.TweenMax.to(r[0],e.durationMove,{rotationX:t,rotationY:i,x:s,y:a}))})},reset:function(){ie().add(this.wrappers.cursor.$2d).add(this.wrappers.cursor.$3d).each(function(){var e=ie(this);e.find(".ls-layer[data-ls-hidden]").length&&ee.TweenMax.set(e[0],{x:0,y:0,rotationX:0,rotationY:0})}),J.gui.shadow.$element&&this.removeShadow(),this.transformPropertiesCalculated=!1}},scroll:{defaultProperties:{shouldBeConverted:{transformOrigin:"50% 50% 0"},transformPerspective:500,duration:.5,ease:"easeOutQuart"},defaults:{centerLayers:"center"},state:{enabled:!1},$wrappers:ie(),init:function(){var e=this;M.on("scroll.scroll"+B+" touchmove.scroll"+B,function(){e.$wrappers.length&&e.scroll()}),M.on("resize.scroll"+B,function(){e.$wrappers.length&&e.calculateTransformProperties()})},addLayer:function(e,t,i,s){this.state.enabled||(J.functions.setStates(this,{enabled:!0}),this.init()),ie.extend(!0,t,this.defaultProperties,i.scroll),i.transformPerspective.scroll?t.transformPerspective=i.transformPerspective.scroll:i.transformPerspective.scroll=t.transformPerspective,i.settings.skipViewport&&(t.skipViewport=!0),t.shouldBeConverted.transformOriginAlt||(t.shouldBeConverted.transformOriginAlt=t.shouldBeConverted.transformOrigin),t.ease=J.functions.convert.easing(t.ease),t.easeRev=J.functions.convert.easing(t.easeRev||t.ease),t.durationRev=t.durationRev||t.duration,i.scroll=t,this.$wrappers=this.$wrappers.add(e)},getCenter:function(e,t){var i="project";switch(((J.slider.isScrollScene||J.slider.isSticky)&&"scene"===t||"document"===t)&&(i=t),e){case"top":switch(i){case"scene":e=J.slider.wrapperPosition.top-(te.viewport.height-J.slider.height)/2;break;case"document":default:e=te.scroll.top}break;case"center":switch(i){case"scene":e=J.slider.wrapperPosition.middleForScrollTransition;break;case"document":e=te.scroll.top;break;default:e=te.scroll.top+(te.viewport.height-J.slider.height)/2}break;case"bottom":switch(i){case"scene":e=J.slider.wrapperPosition.top+J.slider.wrapperOffset.height-te.viewport.height+(te.viewport.height-J.slider.height)/2;break;case"document":e=te.scroll.top;break;default:e=te.scroll.top+te.viewport.height-J.slider.height}}return e},setCenter:function(e,t){return"project"!==e.getPosition||e.center&&this.defaults.centerLayers!==e.center?this.getCenter(e.center||this.defaults.centerLayers,e.getPosition):t},setY:function(e,t){return(J.slider.isScrollScene||J.slider.isSticky)&&"scene"===e.getPosition?-t:"document"===e.getPosition?t:J.slider.state.inFullscreen?0:t-J.slider.offset.top},scroll:function(o){var n=this,l=this.getCenter(this.defaults.centerLayers);this.transformPropertiesCalculated||this.calculateTransformProperties(),this.$wrappers.each(function(){var e,t,i,s=ie(this),a=s.find(".ls-scroll-transform"),r=s.data(J.defaults.init.dataKey).scroll;(-1!==J.slider.position.toViewportYForSkipViewportLayers.indexOf("inside")&&r.skipViewport||!n.state.paused)&&(i=n.setCenter(r,l),t={overwrite:"all",c:e=n.setY(r,i),ease:"down"===te.scroll.direction?r.ease:r.easeRev,onUpdate:function(e,t){e=e.target.style.c<=0?"+":"-";r.layerPositionToCenter!==e&&n.setTransformProperties(ie(t),r,e),r.layerPositionToCenter=e},onUpdateParams:["{self}",this,r]},i={overwrite:"all",ease:"down"===te.scroll.direction?r.ease:r.easeRev},r.x&&(i.x=n.calculateTransformations(-e*r.x/20,"x",r,-e)),r.y&&(i.y=n.calculateTransformations(-e*r.y/20,"y",r,-e)),r.rotation&&(i.rotation=n.calculateTransformations(e*r.rotation/40,"rotation",r,-e)),r.rotationX&&(i.rotationX=n.calculateTransformations(e*r.rotationX/40,"rotationX",r,-e)),r.rotationY&&(i.rotationY=n.calculateTransformations(e*r.rotationY/40,"rotationY",r,-e)),r.skewX&&(i.skewX=n.calculateTransformations(-e*r.skewX/40,"skewX",r,-e)),r.skewY&&(i.skewY=n.calculateTransformations(-e*r.skewY/40,"skewY",r,-e)),r.scaleX&&(i.scaleX=n.calculateTransformations(1-e*r.scaleX/-4e3,"scaleX",r,e)),r.scaleY&&(i.scaleY=n.calculateTransformations(1-e*r.scaleY/-4e3,"scaleY",r,e)),r.opacity&&(i.opacity=n.calculateTransformations(1-e*(r.opacityyoyo?Math.abs(r.opacity):r.opacity)/1e3,"opacity",r,e)),e="down"===te.scroll.direction?r.duration:r.durationRev,o||0==e?(ee.TweenMax.set(s[0],t),ee.TweenMax.set(a[0],i)):(ee.TweenMax.to(s[0],e,t),ee.TweenMax.to(a[0],e,i)))})},calculateTransformations:function(e,t,i,s){if(i[t+"yoyo"])switch(t){case"scaleX":case"scaleY":s<0&&(e=1-(e-1));break;case"opacity":s<1&&(e=1-(e-1));break;default:s<1&&(e=-e)}return"opacity"==t&&i.opacityinvert&&(e=1-e),void 0!==i[t+"min"]&&e<i[t+"min"]&&(e=i[t+"min"]),void 0!==i[t+"max"]&&e>i[t+"max"]&&(e=i[t+"max"]),("x"===t&&i.xresponsive||"y"===t&&i.yresponsive)&&(e*=J.resize.ratio),e},calculateTransformProperties:function(){var s=this;this.$wrappers.each(function(){var e=ie(this),t=e.data(J.defaults.init.dataKey).scroll,i=(e.find(".ls-layer").data(J.defaults.init.dataKey),s.setCenter(t,s.getCenter(s.defaults.centerLayers))),i=s.setY(t,i)<=0?"+":"-";s.setTransformProperties(e,t,i)}),this.transformPropertiesCalculated=!0},setTransformProperties:function(e,t,i){var s=e.find(".ls-layer"),a=s.data(J.defaults.init.dataKey);ee.TweenMax.set(e.find(".ls-scroll-transform")[0],{transformOrigin:J.functions.convert.transformOrigin("+"===i?t.shouldBeConverted.transformOrigin:t.shouldBeConverted.transformOriginAlt,e,a,s),transformPerspective:t.transformPerspective*a.settings.calculatedratio})},trigger:function(){this.scroll(!0)},reset:function(){this.transformPropertiesCalculated=!1}},filters:{createTransition:function(e,t,i,s){var a,r=new J.defaults.layer.properties.filter,o={};for(a in r)switch(t){case"in":o[a]=[r[a],r[a]],o[a][0]=(i.hasOwnProperty(a)?i:s.hasOwnProperty(a)?s:r)[a],o[a][1]=(s.hasOwnProperty(a)?s:r)[a],e.filter.values.afterIn[a]=o[a][1];break;case"hover":case"loop":case"out":o[a]=[],o[a][0]=(i.hasOwnProperty(a)?i:r)[a],o[a][1]=(s.hasOwnProperty(a)?s:i.hasOwnProperty(a)&&i[a]!==r[a]?i:r)[a],"loop"===t&&!0!==e.loop.yoyo&&-1!==e.loop.count&&(e.filter.values.afterLoop[a]=o[a][1]);break;case"bg":o[a]=[r[a],r[a]],i.hasOwnProperty(a)&&(o[a][0]=i[a]),s.hasOwnProperty(a)&&(o[a][1]=s[a])}return o},convert:function(e){for(var t,i,s={},a=/(blur|brightness|contrast|grayscale|hue-rotate|invert|saturate|sepia)/i,r=0,o=(e=e.split(" ")).length;r<o;r++)(t=(i=e[r].split("("))[0]).match(a)&&(i=parseInt(i[1]),s[t]=i);return s},animate:function(e,t){var i=100*e.target[0].p;if("object"==typeof t){var s,a="";for(s in t)if("object"==typeof t[s]&&2===t[s].length)switch(s){case"blur":a+=" blur( "+(t[s][0]<t[s][1]?t[s][0]+Math.abs(t[s][0]-t[s][1])/100*i:t[s][0]-Math.abs(t[s][0]-t[s][1])/100*i)+"px )";break;case"hue-rotate":a+=" hue-rotate( "+(t[s][0]<t[s][1]?t[s][0]+Math.abs(t[s][0]-t[s][1])/100*i:t[s][0]-Math.abs(t[s][0]-t[s][1])/100*i)+"deg )";break;default:a+=" "+s+"( "+(t[s][0]<t[s][1]?t[s][0]+Math.abs(t[s][0]-t[s][1])/100*i:t[s][0]-Math.abs(t[s][0]-t[s][1])/100*i)+"% )"}ee.TweenMax.set(e.target,{"-webkit-filter":a,filter:a})}}},splitType:{setNodesSequence:function(e,o){function t(e,t){if("desc"==t)e=o.slice(0).reverse();else if("rand"==t)e=o.slice(0).sort(function(){return.5-Math.random()});else if("center"==t){var i,s=Math.floor(o.length/2);for(e=[o[s]],i=1;i<=s;i++)e.push(o[s-i],o[s+i]);e.length=o.length}else if("edge"==t){var a,r=Math.floor(o.length/2);for(e=[o[0]],a=1;a<=r;a++)e.push(o[o.length-a],o[a]);e.length=o.length}return e||o}var i=t(o,e[1]),e={asc:"desc",desc:"asc"}[e[1]]||e[1];return[i,t(o,e)]},resetNodes:function(e,t){ie(".char, .word, .line",e).add(t.elements.$wrapper).css({transform:"none",opacity:1}).each(function(){delete this._gsTransform})},setRandomProperties:function(e,t,i,s){for(var a in t){for(var r=[],o=0,n=e["text"+s].nodes.length;o<n;o++)r[o]=J.functions.convert.randomProperties(t[a],a);delete i[a],i.cycle[a]=r}t=null}}},media:{defaults:{delay:500,fadeIn:500,fadeOut:750},changeBackgroundVideo:function(e,t){var i,s,a,r;J.slides.current.index&&J.slides.current.data.$backgroundVideo.length&&(r=(i=J.slides.current.data.$backgroundVideo).data(J.defaults.init.dataKey).elements.$bgWrapper,t&&(i.data(J.defaults.init.dataKey).mediaProperties.willBePaused=!0,r.fadeOut(J.transitions.media.defaults.fadeOut,function(){i.trigger("stopBackgroundVideo"),i.data(J.defaults.init.dataKey).mediaProperties.willBePaused=!1}))),J.slides.next.data.$backgroundVideo.length&&(a=(s=J.slides.next.data.$backgroundVideo).data(J.defaults.init.dataKey).elements.$bgWrapper,r=s.data(J.defaults.init.dataKey).elements.$bgOuterWrapper,te.isMobile&&($.hasClass("ls-device-is-phone")&&r.hasClass("ls-hide-on-phone")||$.hasClass("ls-device-is-tablet")&&r.hasClass("ls-hide-on-tablet"))||setTimeout(function(){s.trigger("playBackgroundVideo")},e?50:0),e||t?a.fadeIn(J.transitions.media.defaults.fadeOut):a.css({display:"block"}),s.data(J.defaults.init.dataKey).mediaProperties.isPreloaded=!0)}},timers:{defaults:{fadeInDuration:.35,reverseDuration:.3},create:function(e){this.curNext=e||"next",this.reset(),J.gui.timers.bar.$element&&this.bar.createTransition(),J.gui.timers.circle.$element&&this.circle.createTransition(),J.gui.timers.slidebar.$element&&this.slidebar.createTransition()},reverse:function(){var e;J.slides.current&&J.slides.current.data&&J.transitions._slideTimeline&&(e=J.transitions._slideTimeline.progress(),e=J.slides.current.data.duration*e/this.defaults.reverseDuration,J.gui.timers.bar.$element&&this.bar._transition&&(J.transitions._slideTimeline.remove(J.transitions.timers.bar._transition),this.bar._transition.reverse().timeScale(e)),J.gui.timers.circle.$element&&this.circle._transition&&(J.transitions._slideTimeline.remove(J.transitions.timers.circle._transition),this.circle._transition.reverse().timeScale(e)),J.gui.timers.slidebar.$element&&this.slidebar._transition&&(J.transitions._slideTimeline.remove(J.transitions.timers.slidebar._transition),this.slidebar._transition.reverse().timeScale(e)))},reset:function(){J.gui.timers.bar.$element&&this.bar._transition&&this.bar.reset(),J.gui.timers.circle.$element&&this.circle._transition&&this.circle.reset(),J.gui.timers.slidebar.$element&&this.slidebar._transition&&this.slidebar.reset()},bar:{reset:function(){this._transition&&(this._transition.kill(),this._transition=!1)},createTransition:function(){this._transition=ee.TweenMax.fromTo(J.gui.timers.bar.$element[0],J.slides[J.transitions.curNext].data.duration,{autoCSS:!1,paused:!0,css:{width:0}},{autoCSS:!1,css:{},ease:ee.Linear.easeNone,onReverseComplete:function(){J.transitions.timers.bar._transition=!1},onComplete:function(e){e.target.style.width="100%",e.target.style.width="calc( 100% - "+J.slider.initial.skinWidth+"px )"},onCompleteParams:["{self}"],onUpdate:function(e){e.target.style.width=Math.min(J.slider.width,J.slider.width*e.progress())+"px"},onUpdateParams:["{self}"]})}},circle:{reset:function(){this._transition&&(J.gui.timers.circle.$element.stop(!0,!0),this._transition.kill(),this._transition=!1)},createTransition:function(){var e=J.gui.timers.circle.$element.find(".ls-ct-right .ls-ct-rotate")[0],t=J.gui.timers.circle.$element.find(".ls-ct-left .ls-ct-rotate")[0],i=J.slides[J.transitions.curNext].data.duration;this._transition=new ee.TimelineMax({paused:!0}).fromTo(J.gui.timers.circle.$element[0],J.transitions.timers.defaults.fadeInDuration,{autoCSS:!1,immediateRender:!0,css:{opacity:0,display:"block"}},{autoCSS:!1,css:{opacity:J.gui.timers.circle.$element.data("original").opacity}}).fromTo(e,i/2,{autoCSS:!1,css:{rotation:0}},{autoCSS:!1,css:{rotation:180},ease:ee.Linear.easeNone},0).fromTo(t,i/2,{autoCSS:!1,css:{rotation:0}},{autoCSS:!1,css:{rotation:180},ease:ee.Linear.easeNone},i/2)}},slidebar:{reset:function(){this._transition&&(this._transition.kill(),this._transition=!1)},createTransition:function(){var i=this;i._transition=new ee.TimelineMax({paused:!0,onReverseComplete:function(){J.transitions.timers.slidebar._transition=!1}}),ie.each(J.gui.timers.slidebar.$sliderContainerElement,function(t,e){i._transition.add(ee.TweenMax.fromTo(J.gui.timers.slidebar.$sliderContainerElement[t][0],J.slides[J.transitions.curNext].data.duration,{autoCSS:!1,css:{left:0}},{autoCSS:!1,css:{},ease:ee.Linear.easeNone,onComplete:function(e){e.target.style.left="calc( 100% - "+J.gui.timers.slidebar.sliderContainerElementWidth[t]+"px )"},onCompleteParams:["{self}"],onUpdate:function(e){e.target.style.left=(J.gui.timers.slidebar.containerElementWidth[t]-J.gui.timers.slidebar.sliderContainerElementWidth[t])*e.progress()+"px"},onUpdateParams:["{self}"]}),0),i._transition.add(ee.TweenMax.fromTo(J.gui.timers.slidebar.$progressBarElement[t][0],J.slides[J.transitions.curNext].data.duration,{autoCSS:!1,css:{width:0}},{autoCSS:!1,css:{},ease:ee.Linear.easeNone,onComplete:function(e){e.target.style.width="100%"},onCompleteParams:["{self}"],onUpdate:function(e){e.target.style.width=J.gui.timers.slidebar.elementWidth[t]*e.progress()+"px"},onUpdateParams:["{self}"]}),0)})}}},scrollscene:{animate:function(e){var t,i;J.transitions._slideTimeline&&(t=J.slider.wrapperOffset.height-J.slider.height,i=te.scroll.top+this.stickLimit-J.slider.wrapperOffset.top,e=Math.max(1e-4,J.o.sceneDuration/t*i),t=ee.Quart.easeOut,i=this.initialized&&!this.immediateRender?J.o.smoothScrollDuration/1e3:0,J.transitions._slideTimeline.tweenTo(e,{ease:t}).duration(i),this.initialized=!0,this.immediateRender=!1)}}},J.plugins={load:function(){var e,s;J.o.plugins&&0!==J.o.plugins.length?(e=J.o.plugins[0],s="object"==typeof e?e.namespace:e,window._layerSlider.plugins[s]?(J.plugins.init(s,e,!0),J.plugins.load()):J.browser.usesFileProtocol||"object"!=typeof e?(J.browser.usesFileProtocol?window.console&&(console.error(J.defaults.slider.errorText,"Cannot load plugins on file:// protocol."),console.info("Please include the plugin files manually.")):window.console&&(console.error(J.defaults.slider.errorText,"Plugin files are missing!"),console.info('Plugin "'+s+'" has been added in slider init options, but the source files are not found on page.')),J.o.plugins.splice(0,1),J.plugins.load()):-1===window._layerSlider.pluginsBeingLoaded.indexOf(s)?-1===window._layerSlider.pluginsLoaded.indexOf(s)&&-1===window._layerSlider.pluginsNotLoaded.indexOf(s)?(window._layerSlider.pluginsBeingLoaded.push(s),ie.ajax({url:-1===e.js.indexOf("http://")&&-1===e.js.indexOf("https://")?(window._layerSlider.pluginsPath||window._layerSlider.scriptPath+"/../plugins/")+e.js:e.js,dataType:"script",success:function(){J.plugins.init(e.namespace,e,!0),window._layerSlider.pluginsLoaded.push(s)},error:function(e,t,i){window.console&&(console.error(J.defaults.slider.errorText,s,"plugin has not been loaded!"),console.error("Additional error info:",i)),window._layerSlider.pluginsNotLoaded.push(s)},complete:function(){window._layerSlider.pluginsBeingLoaded.splice(window._layerSlider.pluginsBeingLoaded.indexOf(s),1),J.plugins.load()}})):(J[s]||-1!==window._layerSlider.pluginsNotLoaded.indexOf(s)?J.o.plugins.splice(0,1):J.plugins.init(s,e),J.plugins.load()):J.plugins.checkLoaded(s)):J.slider.check.initialized()},init:function(e,t,i){J.initializedPlugins[e]=new window._layerSlider.plugins[e](J,$,B,t.settings),window._layerSlider.checkVersions(J.initializedPlugins[e].pluginData.requiredLSVersion,J.plugin.version)?(t.css&&i&&ie('<link rel="stylesheet" href="'+(-1===t.css.indexOf("http://")&&-1===t.css.indexOf("https://")?(window._layerSlider.pluginsPath||window._layerSlider.scriptPath+"/../plugins/")+t.css:t.css)+'">').appendTo("head"),J.initializedPlugins[e].init&&J.initializedPlugins[e].init()):window.console&&console.error(J.defaults.slider.errorText,e,"plugin has not been loaded! Required LayerSlider version:",J.initializedPlugins[e].pluginData.requiredLSVersion,"(you have:",J.plugin.version+")"),J.o.plugins.splice(0,1)},checkLoaded:function(e){J.intervals.pluginLoaded=setInterval(function(){-1===window._layerSlider.pluginsLoaded.indexOf(e)&&-1===window._layerSlider.pluginsNotLoaded.indexOf(e)||-1!==window._layerSlider.pluginsBeingLoaded.indexOf(e)||(clearInterval(J.intervals.pluginLoaded),delete J.intervals.pluginLoaded,J.plugins.load())},100)}},J.performance={},J.slider={shouldResize:!0,thumbnails:[],state:{isHidden:!1,isPaused:!1,preloadingImages:!1,changingSlides:!1,animatingSlides:!1},offset:{},position:{},isBusy:function(){return this.state.preloadingImages||this.state.changingSlides||this.state.animatingSlides},load:function(){if(!document.body.contains(I))return!1;J.api.hasEvent("sliderWillLoad")&&J.api.triggerEvent("sliderWillLoad"),J.slider.set.global()},set:{global:function(){var e;J.originalMarkup=$[0].outerHTML,J.userInitOptions=J.functions.convert.properties(J.functions.convert.oldProperties(i)),J.meta={},J.o=ie.extend(!0,{},J.defaults.init.options,J.userInitOptions),J.o.forceLayersOutDuration/=1e3,J.o.forceLayersOutDuration=0<J.o.forceLayersOutDuration?J.o.forceLayersOutDuration:.75,J.o.sliderFadeInDuration/=1e3,window.console&&!0!==J.o.hideWelcomeMessage&&!0!==window._layerSlider.hideWelcomeMessage&&(window._layerSlider.hideWelcomeMessage=!0,t=window.console.info?"info":"log",e=window.LS_Meta&&window.LS_Meta.v?" | WP Plugin: "+window.LS_Meta.v:"",console[t]("LayerSlider initialized | core: "+J.plugin.version+"-"+J.plugin.release+e),console[t]("Find updates and docs @ https://layerslider.com/"));var t={namespace:"debug",js:"debug/layerslider.debug.js",css:"debug/layerslider.debug.css"};-1!==document.location.hash.indexOf("debug")&&window.console&&(-1!==document.location.hash.indexOf("url=")&&(window._layerSlider.pluginsPath=document.location.hash.split("url=")[1].split("&")[0],t.js=window._layerSlider.pluginsPath+"debug/layerslider.debug.js",t.css=window._layerSlider.pluginsPath+"debug/layerslider.debug.css"),"object"==typeof J.o.plugins?J.o.plugins.push(t):J.o.plugins=[t]),(window._layerSlider.currentScript||window._layerSlider.lsScript)&&(window._layerSlider.scriptPath=(window._layerSlider.currentScript||window._layerSlider.lsScript).src.replace(/\\/g,"/").replace(/\/[^\/]*$/,"")),J.o.silentMode&&(J.slider.$silentWrapper=ie("<ls-silent-wrapper></ls-silent-wrapper>"),J.slider.$silentWrapper.append($).prependTo("body")),"string"==typeof J.o.getData&&(J.o.getData=[J.o.getData]),"object"==typeof J.o.plugins?J.plugins.load():J.slider.check.initialized()},styles:function(){var e,t,i,s,a,r,o,n,l,d,c,p,u,h,m,f,g,y,v=J.slider,w=$.parent(),b=I.style,S=window.getComputedStyle(I,null),x=parseInt(I.clientWidth),T=parseInt(I.clientHeight),k=parseInt(w.width()),C=parseInt(w.height()),O=J.o.layersContainerWidth,P=J.o.layersContainerHeight,L=J.o.type.toLowerCase();switch(J.debugMode&&J.debug.add("group","sliderInit.style"),J.o.width?e=-1==J.o.width.indexOf("%")?parseInt(J.o.width):J.o.width:b.width?e=-1==b.width.indexOf("%")?parseInt(b.width):b.width:0<O?(e=O,J.debugMode&&J.debug.add("warn","sliderInit.noWidth",O)):(e=x,J.debugMode&&J.debug.add("warn","sliderInit.noWidth2",x)),i=e,J.o.height?t=-1==J.o.height.indexOf("%")?parseInt(J.o.height):J.o.height:b.height?t=-1==b.height.indexOf("%")?parseInt(b.height):b.height:0<P?(t=P,J.debugMode&&J.debug.add("warn","sliderInit.noHeight",P)):(t=T,J.debugMode&&J.debug.add("warn","sliderInit.noHeight2",C)),s=t,a=""!==b.maxWidth?-1!==b.maxWidth.indexOf("px")?parseInt(b.maxWidth):b.maxWidth:0,void 0===J.userInitOptions.type&&(0<O&&0<P||"100%"===e&&"100%"===t?L="fullsize":O<=0&&P<=0&&(J.o.responsiveUnder<=0||0<J.o.responsiveUnder&&J.o.sliderVersion)?L=void 0!==J.o.responsive&&!1===J.o.responsive?"fixedsize":"responsive":0<J.o.responsiveUnder&&(L="fullwidth")),L){case"fullwidth":-1!==e.indexOf("%")&&(J.debugMode&&J.debug.add("warn","sliderInit.percWidth",[L,e,x]),e=x),O<=0&&(O=e,J.debugMode&&J.debug.add("warn","sliderInit.conWidth",[L,e])),J.o.responsiveUnder<=0&&(J.o.responsiveUnder=O,J.debugMode&&J.debug.add("warn","sliderInit.fullwidth",O)),-1!==t.indexOf("%")&&(o=C/(100/parseInt(t)),J.debugMode&&J.debug.add("warn","sliderInit.fullwidth2",[L,t,o]),t=o),P<=0&&(P=t);break;case"fullsize":-1!==e.indexOf("%")&&(r=0<O?O:k,J.debugMode&&J.debug.add("warn","sliderInit.fullsize",[L,e,r,k,O]),e=r),O<=0&&(O=e,J.debugMode&&J.debug.add("warn","sliderInit.conWidth",[L,e])),-1!==t.indexOf("%")&&(o=0<P?P:M.height()/(100/parseInt(t)),J.debugMode&&J.debug.add("warn","sliderInit.fullsize2",[L,t,o,M.height(),P]),t=o),P<=0&&(P=t,J.debugMode&&J.debug.add("warn","sliderInit.conHeight",[L,t]));break;case"fixedsize":break;default:J.userInitOptions.type=J.o.type=L="responsive",(J.o.responsiveUnder=-1)!==e.indexOf("%")&&(e=x,J.debugMode&&J.debug.add("warn","sliderInit.percWidth",[L,e,x])),-1!==t.indexOf("%")&&(e=T,J.debugMode&&J.debug.add("warn","sliderInit.responsive",[L,t,T])),J.debugMode&&0<O&&J.debug.add("warn","sliderInit.conWidth2",[L,O]),J.debugMode&&0<P&&J.debug.add("warn","sliderInit.conHeight2",[L,P])}$.addClass("ls-container ls-"+L),$.parent().addClass("ls-direction-fix"),J.userInitOptions.slideBGSize||"responsive"!==L||!J.userInitOptions.hasOwnProperty("sliderVersion")||J.userInitOptions.sliderVersion||(J.o.slideBGSize="auto",J.debugMode&&J.debug.add("warn","sliderInit.bgCover",L)),J.o.slideBGSize=J.o.slideBGSize.replace("100% 100%","stretch"),n=0<O?O:e,l=0<P?P:t,(d="auto"===(y=I.style.marginLeft)?"auto":""===y?parseInt(S.getPropertyValue("margin-left")):parseInt(I.style.marginLeft))===(c="auto"===(g=I.style.marginRight)?"auto":""===g?parseInt(S.getPropertyValue("margin-right")):parseInt(I.style.marginRight))&&(""===y&&""===g&&(p=d,c=d="auto"),$.css({marginLeft:"auto",marginRight:"auto"})),u=""!==b.paddingLeft?parseInt(b.paddingLeft):parseInt($.css("padding-left")),m=""!==b.paddingRight?parseInt(b.paddingRight):parseInt($.css("padding-right")),h=""!==b.paddingTop?parseInt(b.paddingTop):parseInt($.css("padding-top")),f=""!==b.paddingBottom?parseInt(b.paddingBottom):parseInt($.css("padding-bottom")),w=""!==b.borderLeftWidth?parseInt(b.borderLeftWidth):parseInt($.css("border-left-width")),y=""!==b.borderRightWidth?parseInt(b.borderRightWidth):parseInt($.css("border-right-width")),g=""!==b.borderTopWidth?parseInt(b.borderTopWidth):parseInt($.css("border-top-width")),b=""!==b.borderBottomWidth?parseInt(b.borderBottomWidth):parseInt($.css("border-bottom-width")),v.initial={type:L,width:e,height:t,originalWidth:i,originalHeight:s,percW:e/100,percH:t/100,layersWidth:O,layersHeight:P,ratio:n/l,maxWidth:a,marginLeft:d,marginRight:c,marginTop:J.o.marginTop,marginBottom:J.o.marginBottom,paddingLeft:u,paddingTop:h,paddingRight:m,paddingBottom:f,borderLeftWidth:w,borderTopWidth:g,borderRightWidth:y,borderBottomWidth:b,skinWidth:u+m+w+y,skinHeight:h+f+g+b},J.debugMode&&(J.debug.add("log","sliderInit.style",[e,t,i,s,O,P,parseInt(n/l*100)/100,0<a?a:void 0,[d,c]]),p&&J.debug.add("warn","sliderInit.margin",p)),ie("html").attr("id")?ie("body").attr("id")||ie("body").attr("id","ls-global"):ie("html").attr("id","ls-global"),"static"!==S.getPropertyValue("position")&&"absolute"!==S.getPropertyValue("position")&&(I.style.position="relative"),J.o.insertSelector&&$[J.o.insertMethod](J.o.insertSelector),J.slider.$hiddenWrapper=ie('<div class="ls-wp-container fitvidsignore ls-hidden" data-layerslider-uid="'+B+'"></div>').addClass($.attr("class")).prependTo("body"),J.slider.$innerWrapper=ie('<div class="ls-inner"></div>'),J.slider.$slideBGColorWrapper=ie('<div class="ls-slide-bgcolor"></div>').appendTo(J.slider.$innerWrapper),J.slider.$layersWrapper=ie('<div class="ls-layers"></div>').appendTo(J.slider.$innerWrapper),J.slider.$bgVideosWrapper=ie('<div class="ls-background-videos"></div>').appendTo(J.slider.$layersWrapper),J.slider.$slideBGWrapper=ie('<div class="ls-slide-backgrounds"></div>').appendTo(J.slider.$layersWrapper),J.slider.$innerWrapper.appendTo($),!0===J.o.hideOnMobile&&te.isMobile?($.addClass("ls-forcehide"),$.closest(".ls-wp-fullwidth-container").addClass("ls-forcehide"),J.o.autoStart=!1):J.slider.check.showHide();S=!1;if(-1==J.o.globalBGColor.indexOf("gradient")?J.slider.$innerWrapper.css({backgroundColor:J.o.globalBGColor}):(S=J.o.globalBGColor,J.o.globalBGColor="transparent"),J.o.globalBGImage?J.slider.$innerWrapper.css({backgroundImage:"url( "+J.o.globalBGImage+" )"+(S?", "+S:""),backgroundRepeat:J.o.globalBGRepeat,backgroundAttachment:J.o.globalBGAttachment,backgroundSize:J.o.globalBGSize,backgroundPosition:J.o.globalBGPosition}):S&&J.slider.$innerWrapper.css({backgroundImage:S}),"transparent"!=J.o.globalBGColor||!1!==J.o.globalBGImage||S||J.slider.$innerWrapper.css({background:"none transparent"}),"sticky"===J.o.scene||"scroll"===J.o.scene){if(J.o.scene)switch(J.slider.isScene=!0,J.o.scene){case"scroll":J.slider.isScrollScene=!0;case"sticky":J.slider.isSticky=!0}$.parent().is("ls-scene-wrapper")?$.parent().attr("data-scene",J.o.scene).attr("data-layerslider-uid",B):$.wrap('<ls-scene-wrapper data-scene="'+J.o.scene+'" data-layerslider-uid="'+B+'"></ls-scene-wrapper>'),J.slider.$spacingWrapper=ie('ls-scene-wrapper[data-layerslider-uid="'+B+'"]').css("max-width",$.css("max-width")),$.attr("data-scene",J.o.scene)}else J.slider.$spacingWrapper=$;(J.o.preventSliderClip&&J.o.fitScreenWidth&&("fullwidth"===L||"fullsize"===L&&"fitheight"!==J.o.fullSizeMode)||J.slider.isScrollScene||J.slider.isSticky)&&$.parents(":not(body, html)").each(function(){ie(this).addClass("ls-overflow-visible")})},options:function(){var t,i,s,a,r,e;ie("html").find('meta[content*="WordPress"]').length&&(J.meta.wpVersion=ie("html").find('meta[content*="WordPress"]').attr("content").split("WordPress")[1]),window.LS_Meta&&window.LS_Meta.v?J.meta.lswpVersion=window.LS_Meta.v:ie("html").find('script[src*="layerslider"]').length&&-1!=ie("html").find('script[src*="layerslider"]').attr("src").indexOf("?")&&(J.meta.lswpVersion=ie("html").find('script[src*="layerslider"]').attr("src").split("?")[1].split("=")[1]),"undefined"!=typeof layerSliderTransitions&&(J.t=ie.extend({},layerSliderTransitions)),"undefined"!=typeof layerSliderCustomTransitions&&(J.ct=ie.extend({},layerSliderCustomTransitions)),J.debugMode&&("undefined"!=typeof layerCustomSliderTransitions?(J.debug.add("log","sliderInit.customTransitions",!1),"undefined"==typeof layerSliderTransitions&&J.debug.add("warn","sliderInit.slideTransitions")):"undefined"==typeof layerSliderTransitions&&J.debug.add("warn","sliderInit.noSlideTransitions")),"number"==typeof J.o.parallaxCenterDegree&&(J.transitions.layers.parallax.defaults.centerDegree=J.o.parallaxCenterDegree),"number"==typeof J.o.parallaxSensitivity&&(J.transitions.layers.parallax.defaults.sensitive=J.o.parallaxSensitivity),J.o.parallaxCenterLayers&&(J.transitions.layers.parallax.defaults.centerLayers=J.o.parallaxCenterLayers),J.o.scrollCenterLayers&&(J.transitions.layers.scroll.defaults.centerLayers=J.o.scrollCenterLayers),J.slider.isSticky&&(ie.extend(J.o,{allowFullscreen:!1,playByScroll:!1}),J.slider.isScrollScene&&ie.extend(J.o,{autoPauseSlideshow:!1,autoStart:!1,pauseLayers:!1,pauseOnHover:!1,startInViewport:!1})),J.o.playByScroll&&ie.extend(J.o,{cycles:-1,startInViewport:!0,pauseOnHover:!1,autoStart:!1}),te.isMobile&&(J.o.pauseOnHover=!1),J.o.startInViewport&&(J.slider.state.waitForGettingInViewport=!0,J.o.playByScroll&&(J.slider.positionToViewport=te.scroll.top>J.slider.offset.top-(te.viewport.height-J.slider.height)/2?"under":"over",t=!0,i=4*J.o.playByScrollSpeed,J.device.scroll.timeout=250,J.transitions.layers.timeline.timeScaleModifier=0,ie(document).on("wheel."+B+" touchmove."+B,function(e){te.isMobile?(s=e.originalEvent.touches[0].clientY,a<s?J.device.scroll.direction="up":s<a&&(J.device.scroll.direction="down"),r=a-s,a=s):(0<e.originalEvent.deltaY?J.device.scroll.direction="down":J.device.scroll.direction="up",r=e.originalEvent.deltaY),0!==Math.abs(r)&&(J.device.scroll.lastDirection?J.device.scroll.lastDirection!==J.device.scroll.direction&&(J.device.scroll.lastDirection=J.device.scroll.direction,J.transitions.layers.timeline.timeScaleModifier=0):J.device.scroll.lastDirection=J.device.scroll.direction,"inside"===J.slider.positionToViewport&&(J.resize.viewport(),0<=r?J.transitions.layers.timeline.scrollForward():J.transitions.layers.timeline.scrollBackwards(),t&&(clearTimeout(J.timeouts.scroll),t=!1,J.transitions.layers.timeline.timeScaleModifier=J.transitions.layers.timeline.timeScaleModifier<i?J.transitions.layers.timeline.timeScaleModifier+.25:i,J.timeouts.scroll2=setTimeout(function(){delete J.timeouts.scroll2,t=!0,J.device.scroll.timeout=50<J.device.scroll.timeout?J.device.scroll.timeout-50:50},J.device.scroll.timeout))),J.slider.check.positionToViewport(),J.timeouts.checkPosition=setTimeout(function(){J.slider.check.positionToViewport()},25))}))),J.slider.canShow=!0,te.automaticFontSizeRatio||(e=ie('<ls-dummy style="font-size: 100px; width: 0; height: 0; opacity: 0; position: absolute; overflow: hidden; pointer-events: none;">Lorem</ls-dummy>').appendTo("body"),te.automaticFontSizeRatio=parseFloat(e.css("font-size"))/parseFloat(e[0].style.fontSize)||1,e.remove())},events:function(){M.on("scroll."+B,function(){J.slider.set.offset()}),M.on("touchmove."+B,function(e){e=e.touches||e.originalEvent.touches;1==e.length&&(self.touchX=e[0].clientX)}),M.on("resize."+B,function(){J.slider.check.showHide(),J.transitions.scrollscene.immediateRender=!0,"inside"===J.slider.positionToViewport&&J.o.playByScroll&&J.resize.viewport(),J.slider.shouldResize&&(!te.isMobile||te.isMobile&&te.viewport.width!==te.viewport.lastWidth||J.slider.isPopup)&&J.resize.all(),J.slider.set.offset(),J.slider.isScene&&J.resize.scene(),J.slider.isPopup||(J.timeouts.resize&&clearTimeout(J.timeouts.resize),J.resize.once?J.resize.once=!1:J.timeouts.resize=setTimeout(function(){J.resize.once=!0,M.trigger("resize."+B),J.api.methods("resetScroll")},100))}),J.debugMode&&(M.off(".debug"+B),M.on("resize.debug"+B,function(){J.debug.add("log","resize.window",te.viewport.width,!0)})),M.on("hashchange."+B,function(){document.location.hash&&J.slides.deeplink(document.location.hash)}),J.slider.set.offset(),M.trigger("resize."+B),J.o.refreshWaypoint&&window.Waypoint&&Waypoint.refreshAll()},offset:function(){if("none"!==$.css("display")){var e=I.getBoundingClientRect(),t=J.slider.position.toViewportForPerformance;J.slider.position.toViewport;if(J.slider.get.offset(e),J.slider.get.position(e),0<J.slider.position.left-te.viewport.width?J.slider.position.left-te.viewport.width>J.performance.threshold?J.slider.position.toViewportX="after":J.slider.position.toViewportX="insideLimit":J.slider.position.right<0?J.slider.position.right<-J.performance.threshold?J.slider.position.toViewportX="before":J.slider.position.toViewportX="insideLimit":J.slider.position.toViewportX="inside",0<J.slider.position.top-te.viewport.height?J.slider.position.top-te.viewport.height>J.performance.threshold?J.slider.position.toViewportY="below":J.slider.position.toViewportY="insideLimit":J.slider.position.bottom<0?J.slider.position.bottom<-J.performance.threshold?J.slider.position.toViewportY="above":J.slider.position.toViewportY="insideLimit":J.slider.position.toViewportY="inside",J.slider.position.toViewportYForSkipViewportLayers=J.slider.position.toViewportY,J.slider.state.waitForGettingInViewport&&(J.slider.position.middle<te.viewport.height&&0<J.slider.position.middle?(J.slider.position.toViewportY="inside",J.slider.state.waitForGettingInViewport=!1,J.transitions._slideTimeline&&J.transitions._slideTimeline.play(),J.debugMode&&J.debug.add("log","slideshow.inviewport",!1)):J.slider.position.toViewportY="outside"),-1!==J.slider.position.toViewportX.indexOf("inside")&&"insideLimit"==J.slider.position.toViewportY||-1!==J.slider.position.toViewportY.indexOf("inside")&&"insideLimit"==J.slider.position.toViewportX?(J.slider.position.toViewport="insideLimit",J.slider.position.toViewportForPerformance="inside"):"inside"==J.slider.position.toViewportX&&"inside"==J.slider.position.toViewportY?(J.slider.position.toViewport="inside",J.slider.position.toViewportForPerformance="inside"):(J.slider.position.toViewport="outside",J.slider.position.toViewportForPerformance="outside"),J.o.performanceMode&&t!==J.slider.position.toViewportForPerformance&&("inside"===J.slider.position.toViewportForPerformance?(J.performance.sliderIsInviewport=!0,J.api.methods("resumeSlider","performanceMode")):(J.performance.sliderIsInviewport=!1,J.api.methods("pauseSlider","performanceMode"))),(J.slider.isScrollScene||J.slider.isSticky)&&!J.slider.$spacingWrapper.is("[data-disabled-scene]")){var t=J.slider.$spacingWrapper[0].getBoundingClientRect(),i=(te.viewport.height-J.slider.height)/2,s=0;switch(J.o.stickTo||"center"){case"top":break;case"center":s=i;break;case"bottom":s=2*i}J.transitions.scrollscene.stickLimit=s,J.slider.wrapperPosition={left:t.left,top:t.top,middleForScrollTransition:t.top+t.height/2-te.viewport.height/2},J.slider.wrapperOffset={left:t.left+te.scroll.left,right:t.left+J.slider.width+te.scroll.left,top:t.top+te.scroll.top,bottom:t.bottom+J.slider.height+te.scroll.top,width:t.width,height:t.height},J.slider.state.shouldAnimateScrollSnene=!1,t.top>s?("disabled"!==J.slider.state.sticky||J.slider.isScrollScene&&!J.transitions.scrollscene.initialized)&&(J.slider.state.sticky="disabled",J.slider.state.shouldAnimateScrollSnene=!0):t.bottom-J.slider.height-s<0?("over"!==J.slider.state.sticky||J.slider.isScrollScene&&!J.transitions.scrollscene.initialized)&&(J.slider.state.sticky="over",J.slider.state.shouldAnimateScrollSnene=!0):t.top<=s&&t.bottom>-s&&("enabled"!==J.slider.state.sticky&&(J.slider.state.sticky="enabled"),J.slider.state.shouldAnimateScrollSnene=!0),J.slider.isScrollScene&&J.transitions._slideTimeline&&J.slider.state.shouldAnimateScrollSnene&&J.transitions.scrollscene.animate()}J.slider.state.isNotDisplayed&&(J.slider.state.isNotDisplayed=!1,J.resize.all(),J.slider.check.positionToViewport(),M.trigger("scroll"))}else J.slider.state.isNotDisplayed=!0},attributes:function(){$.attr("data-current-slide",J.slides.current.index)}},get:{offset:function(e){e=e||I.getBoundingClientRect(),J.slider.offset={left:e.left+te.scroll.left,right:e.left+J.slider.width+te.scroll.left,top:e.top+te.scroll.top,bottom:e.bottom+J.slider.height+te.scroll.top}},position:function(e){e=e||I.getBoundingClientRect(),J.slider.position={left:e.left,center:e.left+J.slider.width/2,right:e.right,top:e.top,middle:e.top+J.slider.height/2,bottom:e.bottom}}},check:{initialized:function(){J.debugMode&&J.debug.add("log","sliderInit.info",[J.plugin.version,J.plugin.releaseDate,J.userInitOptions.sliderVersion||"n/a or slider version is pre 6.0.0",$.attr("id"),B,ie.fn.jquery,J.meta.lswpVersion,J.meta.wpVersion],!0),J.slider.initialized||(J.slider.initialized=!0,this.skins())},skins:function(){J.o.skin&&""!==J.o.skin&&J.o.skinsPath&&""!==J.o.skinsPath?J.gui.skin.load():J.slider.init()},showHide:function(){te.isMobile&&!1!==J.o.hideOnMobile||(te.viewport.width<J.o.hideUnder||te.viewport.width>J.o.hideOver&&0<J.o.hideOver?J.slider.hide():J.slider.show())},visibility:function(){!!J.slider.$innerWrapper.width()?J.slider.state.isHidden&&(J.slider.state.isHidden=!1,J.resize.all({forceToGetParentWidth:!0})):J.slider.state.isHidden=!0},positionToViewport:function(){var e;delete J.timeouts.checkPosition,J.o.playByScroll&&J.device.scroll.direction&&(e="down"===J.device.scroll.direction?te.scroll.top:J.slider.offset.top-(te.viewport.height-J.slider.height)/2,(("down"===J.device.scroll.direction?J.slider.offset.top-(te.viewport.height-J.slider.height)/2:te.scroll.top)<e&&("up"===J.device.scroll.direction&&"under"===J.slider.positionToViewport||"down"===J.device.scroll.direction&&"over"===J.slider.positionToViewport)||te.document.height<=te.viewport.height||J.slider.height<te.viewport.height&&("up"===J.device.scroll.direction&&te.scroll.top<=0&&J.slider.offset.top+J.slider.height/2<te.viewport.height/2||"down"===J.device.scroll.direction&&te.scroll.top>=te.document.height-te.viewport.height&&J.slider.offset.top+J.slider.height/2>te.scroll.top+te.viewport.height/2))&&(J.slider.positionToViewport="inside",J.resize.viewport(),J.device.scroll.disable()))}},init:function(){clearTimeout(J.timeouts.skinLoad1),clearTimeout(J.timeouts.skinLoad2),clearTimeout(J.timeouts.skinLoad3),clearTimeout(J.timeouts.skinLoad4),J.slider.set.styles(),J.slider.set.options(),J.slides.init(),J.device.fullscreen.set(),J.media.init(),J.gui.timers.init(),J.gui.loadingIndicator.init(),J.preload.init(),J.gui.shadow.init(),J.navigation.init(),J.slideshow.init(),J.slides.set.firstSlide(),J.gui.navigation.init(),J.gui.media.init(),J.resize.slider(),J.yourLogo.init(),J.slider.set.events(),J.api.hasEvent("sliderDidLoad")&&J.api.triggerEvent("sliderDidLoad",J.api.eventData()),J.functions.setStates(J.slider,{isLoaded:!0}),J.slider.state.shouldBeDestroyed?J.api.methods("destroy"):(J.intervals.checkSliderVisibility=setInterval(function(){J.slider.check.visibility()},500),J.slideshow.changeTo(J.slides.first.index))},hide:function(){$.addClass("ls-forcehide"),$.closest(".ls-wp-fullwidth-container").addClass("ls-forcehide"),$.closest(".ls-popup").addClass("ls-forcehide"),$.closest(".ls-popup").prev(".ls-popup-overlay").addClass("ls-forcehide")},show:function(){$.removeClass("ls-forcehide"),$.closest(".ls-wp-fullwidth-container").removeClass("ls-forcehide"),$.closest(".ls-popup").removeClass("ls-forcehide"),$.closest(".ls-popup").prev(".ls-popup-overlay").removeClass("ls-forcehide")}},J.functions={getData:function(e,t){return!J.o.getData||-1===J.o.getData.indexOf(e)||(J.api.triggerEvent("getData",{property:e,value:t}),!J.o.destroyAfter)||(J.api.methods("destroy",!0),!1)},convert:{transformOrigin:function(e,t,i,s){for(var a=(d=ie.trim(e)).split(" "),r=s[0].style,o="",n=["Left","Top"],l=[J.slider.width,J.slider.height],d=d.replace("sliderleft","0").replace("sliderright","100%").replace("slidercenter","50%").replace("slidermiddle","50%").replace("slidertop","0").replace("sliderbottom","100%").replace("left","0").replace("right","100%").replace("center","50%").replace("middle","50%").replace("top","0").replace("bottom","100%").split(" "),c=0;c<d.length;c++)-1!==a[c].indexOf("slider")?(J.transitions.layers.timeline.shouldRestart=!0,o+=c<2?l[c]/(100/parseInt(d[c]))-parseInt(r[n[c].toLowerCase()])-parseInt(r["margin"+n[c]])+"px ":"0px"):-1!==d[c].indexOf("%")?o+=d[c]+" ":-1!==d[c].indexOf("em")?o+=parseFloat(d[c])*parseInt(t.css("font-size"))+"px ":o+=parseInt(d[c])*i.settings.calculatedratio+"px ";return ie.trim(o)},specialValuesOfTransformOrigin:function(e){return e=e.replace("sliderleft","0").replace("sliderright","100%").replace("slidercenter","50%").replace("slidermiddle","50%").replace("slidertop","0").replace("sliderbottom","100%").replace("left","0").replace("right","100%").replace("center","50%").replace("middle","50%").replace("top","0").replace("bottom","100%").split(" ")},nodesTransformOrigin:function(e,d,c,t){for(var i="object"==typeof e,p=(d.length,[]),u=t[0].style,h=["left","top"],s=function(e,t){for(var t=ie(d[t]),i=parseInt(t.css("font-size")),s=t.position(),a=(n=ie.trim(e)).split(" "),r="",o=[J.slider.width,J.slider.height],n=J.functions.convert.specialValuesOfTransformOrigin(n),l=0;l<n.length;l++)-1!==a[l].indexOf("slider")?(J.transitions.layers.timeline.shouldRestart=!0,r+=l<2?o[l]/(100/parseInt(n[l]))-parseInt(s[h[l]])-parseInt(u[h[l].toLowerCase()])+"px ":"0px"):-1!==n[l].indexOf("%")?r+=n[l]+" ":-1!==n[l].indexOf("em")?r+=parseFloat(n[l])*i+"px ":r+=parseInt(n[l])*c.settings.calculatedratio+"px ";p.push(ie.trim(r))},a=0,r=i&&e.length,o=0;o<d.length;o++)i?(s(e[a],o),++a==r&&(a=0)):s(e,o);return p},easing:function(e,t){return"string"!=typeof e?e:(-1!==(e=e.toLowerCase()).indexOf("swing")||-1!==e.indexOf("linear")?i=ee.Linear.easeNone:(s=e.match(/(easeinout|easein|easeout)(.+)/)[2],s=ee[s.charAt(0).toUpperCase()+s.slice(1)],-1!==e.indexOf("easeinout")?i=s.easeInOut:-1!==e.indexOf("easeout")?i=t?s.easeIn:s.easeOut:-1!==e.indexOf("easein")&&(i=t?s.easeOut:s.easeIn)),i);var i,s},transition:function(e,t,i,s){var a=ie.extend({},e);return ie.each({de:"delay",rotate:"rotation",rotateX:"rotationX",rotateY:"rotationY"},function(e,t){e in a&&(a[t]=a[e],delete a[e])}),"after"===i?a.scaleX=a.scaleY=a.scaleZ=1:a.scale3d!==s&&(a.scaleX=a.scaleY=a.scaleZ=a.scale3d,delete a.scale3d),a.delay&&(a.delay="after"===i?a.delay/1e3:a.delay),void 0===t&&(t="easeInOutQuart"),a.ease=J.functions.convert.easing(t),a},randomProperties:function(e,t){-1!==e.indexOf("random")&&-1!==e.indexOf("(")&&-1!==e.indexOf(",")&&-1!==e.indexOf(")")?e=e.split("(")[1].split(")")[0].replace(",",J.defaults.init.rangeSplitChar):e.charAt(0)===J.defaults.init.openingBracket&&e.charAt(e.length-1)===J.defaults.init.closingBracket&&(e=e.substring(1,e.length-1)),e=e.replace(/,/g,".").replace(/٫/g,".");var i,s=-1===t.indexOf("scale")&&-1===t.indexOf("opacity")?1:100,a=e;return-1!==e.indexOf(J.defaults.init.randomSplitChar)?a=(a=(i=e.split(J.defaults.init.randomSplitChar))[Math.floor(Math.random()*i.length)].trim()).charAt(0)===J.defaults.init.openingBracket&&a.charAt(a.length-1)===J.defaults.init.closingBracket?J.functions.convert.randomProperties(a,t):parseFloat(a):-1!==e.indexOf(J.defaults.init.rangeSplitChar)&&((i=e.split(J.defaults.init.rangeSplitChar)).sort(function(e,t){return parseFloat(e)-parseFloat(t)}),i[0]=parseFloat(i[0]*s),i[1]=parseFloat(i[1]*s),a=Math.floor(Math.random()*(i[1]-i[0]+1)+i[0])/s),a},properties:function(e,t){if("string"==typeof e)return J.functions.convert._properties(e,t);if("object"!=typeof e)return e;for(var i in e)e[i]=J.functions.convert._properties(e[i],t);return e},_properties:function(e,t){if(-1!==["enable","enabled","true"].indexOf(e))return!0;if(-1!==["disable","disabled","false","undefined","null"].indexOf(e))return!1;if("string"!=typeof e||-1===e.indexOf(J.defaults.init.staggerSplitChar)||e.charAt(0)===J.defaults.init.openingBracket)return t?""+parseInt(e)=="NaN"?0:parseInt(e):ie.isNumeric(e)?parseFloat(e):e;for(var i=e.split(J.defaults.init.staggerSplitChar),s=[],a=0;a<i.length;a++)s[a]=ie.isNumeric(i[a])?parseFloat(ie.trim(i[a])):ie.trim(i[a]);return s},oldProperties:function(i){return ie.each({firstLayer:"firstSlide",loops:"cycles",forceLoopNum:"forceCycles",layersContainer:"layersContainerWidth",sublayerContainer:"layersContainerWidth",randomSlideshow:"shuffleSlideshow"},function(e,t){e in i&&(i[t]=i[e],delete i[e])}),i}},getSliderClosestParentElementWithNumericValueOfProperty:function(e){for(var t,i=$.parents().not(".ls-fullscreen-wrapper"),s=i.length,a=100,r=0;r<s;r++)if("auto"!==(t=window.getComputedStyle(i[r]).getPropertyValue(e))){if(-1!==t.indexOf("px")&&(0<parseInt(t)||J.slider.isPopup))return J.slider.$parentWithNumericWidthValue=ie(i[r]),ie(i[r]);-1!==t.indexOf("%")&&(a=a/100*parseInt(t),J.slider.$parentWithNumericWidthValuePercent=a)}},sortArray:function(e,t,i){var s,a,r,o,n,l,d,c=[],p=e*t;switch(i){case"forward":for(s=0;s<e;s++)for(a=0;a<t;a++)c.push(s+a*e);break;case"reverse":for(s=e-1;-1<s;s--)for(a=t-1;-1<a;a--)c.push(s+a*e);break;case"center":for(n=Math.floor(p/2),r=0;r<n;r++)c.push(r);for(o=n;0<=o;o--)c.push(o);break;case"edge":case"mirror":for(r=n=Math.floor(p/2);0<r;r--)c.push(r);for(o=0;o<=n;o++)c.push(o);break;case"radial-out":for(l=e/2,d=t/2,s=0;s<e;s++)for(a=0;a<t;a++)c.push(Math.floor(Math.abs(d-a-.5))+Math.floor(Math.abs(l-s-.5)));break;case"radial-in":for(l=e/2,d=t/2,s=0;s<e;s++)for(a=0;a<t;a++)c.push(Math.floor(d-Math.ceil(Math.abs(d-a-.5)))+Math.floor(l-Math.ceil(Math.abs(l-s-.5))))}return c},shuffleArray:function(e){for(var t,i,s=e.length;0!==s;)i=Math.floor(Math.random()*s),t=e[--s],e[s]=e[i],e[i]=t;return e},countProp:function(e){var t,i=0;for(t in e)e.hasOwnProperty(t)&&++i;return i},getURL:function(e){return e[0].currentSrc||(e.data("src")?e.data("src"):e.attr("src"))},getALT:function(e){return!!e.attr("alt")&&e.attr("alt")},setStates:function(e,t,i){if(e&&e.state){var s=J.slideshow.isPaused();if(i)e.state[t]=i;else for(var a in t)e.state[a]=t[a];i=J.slideshow.isPaused();e==J.slideshow&&(J.api.hasEvent("slideshowStateDidChange")&&J.api.triggerEvent("slideshowStateDidChange",J.api.eventData()),i!=s&&(i?J.api.hasEvent("slideshowDidPause")&&J.api.triggerEvent("slideshowDidPause",J.api.eventData()):(J.slideshow.start(),J.api.hasEvent("slideshowDidResume")&&J.api.triggerEvent("slideshowDidResume",J.api.eventData()))))}},clearTimers:function(){for(var e in J.timeouts)clearTimeout(J.timeouts[e]),delete J.timeouts[e];for(var t in J.intervals)clearInterval(J.intervals[t]),delete J.intervals[t]},clearTimelines:function(){J.transitions.timelines.set("all",function(e,t){e.pause().clear().kill(),delete J.transitions[t]}),ee.TweenMax.killTweensOf($.find(".ls-bg, .ls-layer, .ls-wrapper, .ls-curtile, .ls-nexttile").get())},resetSlideTimelines:function(){J.transitions.timelines.set("layers",function(e,t){e.pause().progress(0).clear().kill(),delete J.transitions[t]}),J.transitions.timelines.set("allforce",function(e,t){e.pause().progress(1).clear().kill(),delete J.transitions[t]}),$.find(".ls-layer:not(.ls-bg-video)").each(function(){var e=ie(this);if(void 0!==e.attr("data-ls-active")&&!1!==e.attr("data-ls-active")&&void 0!==e.attr("data-ls-static")&&!1!==e.attr("data-ls-static")&&parseInt(e.attr("data-ls-slidein"))!==J.slides.current.index)return!0;e=e.data(J.defaults.init.dataKey);e.loop._timeline&&(e.loop._timeline.stop().clear(),delete e.loop._timeline,ee.TweenMax.set(e.elements.$loopWrapper[0],e.reset.loopWrapperOnSlideChange)),ee.TweenMax.set(e.elements.$wrapper[0],e.reset.wrapperOnSlideChange)})},clearEvents:function(){M.add("body").add(document).add($).add($.find("*")).add("."+B).off("."+B+" .debug"+B+" .parallax"+B+" .scroll"+B),$.off()}},J.device={scroll:{keys:[32,33,34,35,36,37,38,39,40],disable:function(){window.addEventListener("scroll",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("wheel",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("mousewheel",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("touchmove",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("keydown",this.preventDefaultForScrollKeys,{capture:!0})},enable:function(){window.removeEventListener("scroll",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("wheel",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("mousewheel",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("touchmove",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("keydown",this.preventDefaultForScrollKeys,{capture:!0})},preventDefault:function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1},preventDefaultForScrollKeys:function(e){if(-1!==J.device.scroll.keys.indexOf(e.keyCode))return J.device.scroll.preventDefault(e),!1}},removeSelection:function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},fullscreen:{enter:function(){J.functions.setStates(J.slider,{inFullscreen:!0}),ie("body, html").addClass("ls-fullscreen"),J.slider.fullscreenWrapper.requestFullscreen(),$.trigger("mouseleave"),J.device.removeSelection()},exit:function(){J.functions.setStates(J.slider,{inFullscreen:!1}),J.resize.all(),ie("body, html").removeClass("ls-fullscreen"),J.device.removeSelection()},toggle:function(){J.device.fullscreen.element()?(J.device.fullscreen.exit(),document.exitFullscreen()):J.device.fullscreen.enter()},set:function(){J.o.allowFullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&($.wrap('<div class="ls-fullscreen-wrapper"></div>'),J.slider.$fullscreenWrapper=$.closest(".ls-fullscreen-wrapper"),J.slider.fullscreenWrapper=J.slider.$fullscreenWrapper[0],J.slider.$spacingWrapper=J.slider.$fullscreenWrapper,J.slider.fullscreenWrapper.requestFullscreen=J.slider.fullscreenWrapper.requestFullscreen||J.slider.fullscreenWrapper.webkitRequestFullscreen||J.slider.fullscreenWrapper.mozRequestFullScreen||J.slider.fullscreenWrapper.msRequestFullscreen,document.exitFullscreen=document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen,ie(document).on("fullscreenchange."+B+" webkitfullscreenchange."+B+" mozfullscreenchange."+B+" msfullscreenchange."+B,function(){J.device.fullscreen.element()||J.device.fullscreen.exit()}),J.slider.$fullscreenWrapper.on("dblclick."+B,function(){J.device.fullscreen.toggle()}))},element:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}}},J.actions={do:function(t){var e,i,s=!1,a="";switch(t.action){case"scrollBelowProject":case"scrollToNextProject":case"scrollToPrevProject":case"scrollToElement":case"scrollToSelf":case"scrollToScenePosition":J.slider.isScene||$.addClass("ls-action-trigger");var r,o,n,l,d=ie(".ls-wp-container:not(.ls-hidden):not([data-scene]), ls-scene-wrapper"),c=ie("ls-scene-wrapper, .ls-action-trigger"),p=ie([]),u=J.slider.isScene?J.slider.$spacingWrapper:$,h=c.length,m=c.index(u);if(J.slider.isScene||$.removeClass("ls-action-trigger"),"scrollToSelf"===t.action)g=J.slider.$spacingWrapper.offset().top+(t.offset||0);else if("scrollBelowProject"===t.action)g=J.slider.$spacingWrapper.offset().top+J.slider.$spacingWrapper.height()+(t.offset||0);else if("scrollToPrevProject"===t.action)0!==d.index(u)?(n=(p=d.eq(d.index(u)-1)).is("ls-scene-wrapper")?p.find(".ls-container"):p,g=parseFloat(p.offset().top)-parseFloat(n.css("top"))+(t.offset||0)):s="There’s no previous project to scroll to.";else if("scrollToNextProject"===t.action)d.index(u)<d.length-1?(n=(p=d.eq(d.index(u)+1)).is("ls-scene-wrapper")?p.find(".ls-container"):p,g=parseFloat(p.offset().top)-parseFloat(n.css("top"))+(t.offset||0)):s="There’s no next project to scroll to.";else if("scrollToElement"===t.action){try{p=ie(t.selector.toString()).not(".ls-wp-container.ls-hidden")}catch(e){a=e}p.length&&p.size()?g=parseFloat(p.offset().top)+(t.offset||0):s='Couldn’t find the scroll target element "'+t.selector+'". Please verify the selector you’ve entered.'}else if("scrollToScenePosition"===t.action){switch(t.target){case"currentScene":J.slider.isScene?p=u:s="Current project is not a scene.";break;case"nextScene":m+1<h?p=ie(c[m+1]):s="There are no next scenes in the DOM.";break;case"previousScene":0<=m-1?p=ie(c[m-1]):s="There are no previous scenes in the DOM."}p.length&&(r=parseFloat(p.attr("data-scene-duration")),o=p.height(),d=(n=p.find(".ls-container")).height(),t.position=t.position||"0ms",g=p.is('[data-scene="scroll"]')?(l=-1!==t.position.indexOf("%")||-1===t.position.indexOf("ms")?r*(Math.min(100,Math.max(0,parseFloat(t.position)))/100):Math.min(Math.max(0,parseFloat(t.position)/1e3),r),Math.round(parseFloat(p.offset().top)-parseFloat(n.css("top"))+l/r*(o-d))):(l=Math.min(100,Math.max(0,parseFloat(t.position)))/100,Math.round(parseFloat(p.offset().top)-parseFloat(n.css("top"))+(o-d)*l)))}s||(t.duration=ie.isNumeric(t.duration)?t.duration:1e3,ee.TweenMax.to("html, body",t.duration/1e3,{scrollTop:g,ease:J.functions.convert.easing(t.easing)}));break;case"switchSlide":J.slideshow.changeTo(t.slide,!0,!0);break;case"nextSlide":case"prevSlide":case"lastSlide":case"firstSlide":case"stopSlideshow":case"startSlideshow":"nextSlide"===t.action&&(y="next"),"prevSlide"===t.action&&(y="prev"),"lastSlide"===t.action&&(y="last"),"firstSlide"===t.action&&(y="first"),"stopSlideshow"===t.action&&(y="stop"),"startSlideshow"===t.action&&(y="start"),J.navigation[y]("clicked");break;case"replaySlide":J.api.methods("replay");break;case"reverseSlide":J.api.methods("reverse",t.replay);break;case"resetSlide":J.api.methods("resetSlide");break;case"pauseProject":J.api.methods("pauseSlider");break;case"resumeProject":J.api.methods("resumeSlider");break;case"toggleProject":J.api.methods("toggleSlider");break;case"playMedia":J.media.functions.playActiveMedia();break;case"pauseMedia":J.media.functions.pauseActiveMedia();break;case"unmuteMedia":J.media.unmute.multipleMediaElements();break;case"openPopup":var f,g=ie("[id^=layerslider_"+t.popup+"]").first(),y=g.data("lsSliderUID");g.length?((f=window._layerSliders[y].initializedPlugins.popup).plugin.settings.showOnce=!1,"opened"==f.state.is?t.toggle&&f.events.hide():t.slide?g.layerSlider("fastChangeTo",t.slide,function(){f.events.show()}):f.events.show()):(g={action:"ls_get_popup_markup",id:t.popup,slide:t.slide},ie.get(J.o.ajaxURL||window.ajaxurl||"/wp-admin/admin-ajax.php",g,function(e){ie(e).appendTo("body")}));break;case"launchPopups":for(i in window._layerSliders)(e=window._layerSliders[i]).initializedPlugins.popup&&e.api.methods("openPopup");break;case"closePopup":J.api.methods("closePopup");break;case"closeAllPopups":J.api.methods("closeAllPopups");break;case"jsFunction":try{window[t.function]()}catch(e){a=e,s="The browser thrown the following error after calling "+t.function+"() JavaScript function."}}s&&console.error('LayerSlider: Error while calling layer action "'+t.action+'". '+s+(""!==a?"\n\r\n\r":""),a)}},J.api={hasEvent:function(e,t){t=ie._data(t||I,"events");return!(!t||!t[e])},methods:function(e,t,i,s){if(!J.slider.isBusy())if("number"==typeof e)0<e&&e<J.slides.count+1&&e!=J.slides.current.index&&J.slideshow.changeTo(e,!0,!0);else switch(e){case"touchPrev":J.device.touchPrev=!0;case"previousSlide":case"prev":J.navigation.prev();break;case"touchNext":J.device.touchNext=!0;case"nextSlide":case"next":J.navigation.next();break;case"startSlideshow":case"start":J.navigation.start()}switch(e){case"openPopup":J.initializedPlugins.popup&&(t&&ie.isNumeric(t)?$.layerSlider("fastChangeTo",t,function(){J.initializedPlugins.popup.events.show()}):J.initializedPlugins.popup.events.show());break;case"launchPopups":J.actions.do("launchPopups");break;case"fastChangeTo":t&&ie.isNumeric(t)&&(J.slides.current.index!==t?(J.slideshow.forceFastChange=!0,i&&"function"==typeof i&&(J.slideshow.forceFastChangeCallback=i),J.slideshow.changeTo(t,!0,!0)):i&&i());break;case"resetScroll":J.slider.set.offset(),M.trigger("scroll.scroll"+B).trigger("touchmove.scroll"+B).trigger("scroll.parallax"+B).trigger("touchmove.parallax"+B);break;case"enableScene":J.slider.isScene&&(J.slider.$spacingWrapper.removeAttr("data-disabled-scene"),J.api.methods("resetScroll"));break;case"disableScene":J.slider.isScene&&(J.slider.$spacingWrapper.attr("data-disabled-scene",""),$.css({top:"auto",bottom:"auto"}),J.transitions.scrollscene.animate("start"),J.api.methods("resetScroll"));break;case"closePopup":J.initializedPlugins.popup&&J.initializedPlugins.popup.events.hide();break;case"closeAllPopups":ie('<div class="ls-close-all-popups-button"></div>').css("display","none").appendTo("body").trigger("click").remove();break;case"updateLayerData":t&&J.layers.update.data(t,i,s);break;case"redrawSlider":case"redraw":J.resize.all(),J.api.methods("resetScroll");break;case"replaySlide":case"replay":J.transitions._slideTimeline&&J.transitions._slideTimeline.restart();break;case"reverseSlide":case"reverse":J.transitions._slideTimeline&&(J.transitions._slideTimeline.reversed()?J.transitions._slideTimeline.play():J.transitions._slideTimeline.reverse(),t&&(J.transitions.layers.timeline.shouldReplay=!0));break;case"unmute":case"unmuteMedia":J.media.unmute.multipleMediaElements();break;case"stopSlideshow":case"stop":J.navigation.stop();break;case"pauseSlider":case"pause":t&&"performanceMode"===t&&J.functions.setStates(J.slideshow,{pausedByPerformance:!0}),J.transitions._slideTimeline&&!J.slider.isScrollScene&&J.transitions._slideTimeline.stop(),J.layers.get("active").each(function(){var e=ie(this).data(J.defaults.init.dataKey);e.loop._timeline&&e.loop._timeline.stop()}),J.transitions.layers.parallax.state.paused=!0,J.transitions.layers.scroll.state.paused=!0,J.transitions._slideTransition&&J.transitions._slideTransition.stop(),J.media.functions.pauseActiveMedia(!0);break;case"resumePopup":J.layers.get("active").each(function(){J.media.functions.playIfAllowed(ie(this))}),J.transitions._slideTimeline&&(J.transitions._slideTimeline.timeScale()<.001&&J.transitions.layers.timeline.resume(),J.transitions._slideTimeline.play()),J.transitions._slideTransition&&J.transitions._slideTransition.play();break;case"resumeSlider":case"resume":J.transitions._slideTimeline&&(J.transitions._slideTimeline.timeScale()<.001&&J.transitions.layers.timeline.resume(),J.slider.isScrollScene||J.transitions._slideTimeline.play()),J.media.functions.playActiveMedia(!0),J.layers.get("active").each(function(){var e=ie(this).data(J.defaults.init.dataKey);e.loop._timeline&&e.loop._timeline.play()}),J.transitions.layers.parallax.state.paused=!1,J.transitions.layers.scroll.state.paused=!1,J.transitions._slideTransition&&J.transitions._slideTransition.play(),t&&"performanceMode"===t&&J.functions.setStates(J.slideshow,{pausedByPerformance:!1});break;case"playMedia":J.media.functions.playActiveMedia();break;case"pauseMedia":J.media.functions.pauseActiveMedia();break;case"toggleSlider":case"toggle":J.slider.state.isPaused?($.layerSlider("resume"),J.slider.state.isPaused=!1):($.layerSlider("pause"),J.slider.state.isPaused=!0);break;case"reset":case"resetSlider":break;case"resetSlide":case"resetCurrentSlide":J.transitions.timelines.set("layers",function(e,t){e.progress(0),e.stop()}),J.media.functions.stop(!0);break;case"destroy":case"kill":if(J.slider.state.isLoaded){if(J.functions.clearTimers(),J.functions.clearTimelines(),J.layers.$all.removeData(),J.api.hasEvent("sliderDidDestroy")&&J.api.triggerEvent("sliderDidDestroy"),J.slider.state.sholudBeRemoved||t){if(J.slider.$hiddenWrapper.remove(),J.gui.timers.slidebar.$containerElement)for(var a=0;a<J.gui.timers.slidebar.$containerElement.length;a++)J.gui.timers.slidebar.$containerElement[a]instanceof jQuery&&J.gui.timers.slidebar.$containerElement[a].remove();J.api.hasEvent("sliderDidRemove")&&J.api.triggerEvent("sliderDidRemove");var r=J.slider.$spacingWrapper;r.closest(".ls-popup").length&&(r=r.closest(".ls-popup")).prev(".ls-popup-overlay").remove(),r.remove(),J.slider.$silentWrapper&&J.slider.$silentWrapper.remove()}J.functions.clearEvents(),window._layerSlider.removeSlider(B)}else J.functions.setStates(J.slider,{shouldBeDestroyed:!0,sholudBeRemoved:t||!1});J.slider.positionToViewport="under",J.device.scroll.enable()}},eventData:function(){return{data:J,userData:J.o,uid:B,target:I,slider:$,state:J.slider.state,isBusy:J.slider.isBusy(),event:{target:I},api:function(e,t,i,s){$.layerSlider(e,t,i,s)},navigation:{direction:J.navigation.direction},slides:{first:{index:J.slides.first.index,deeplink:J.slides.get.deeplink(J.slides.first.index),data:J.slides.first.data},prev:{index:J.slides.prev.index,deeplink:J.slides.get.deeplink(J.slides.prev.index),data:J.slides.prev.data},current:{index:J.slides.current.index||J.slides.first.index,deeplink:J.slides.get.deeplink(J.slides.current.index),layersIn:J.layers.get("current,in"),layersOut:J.layers.get("current,out"),timeline:J.transitions._slideTimeline,data:J.slides.current.data},next:{index:J.slides.next.index,deeplink:J.slides.get.deeplink(J.slides.next.index),layersIn:J.layers.get("next,in"),layersOut:J.layers.get("next,out"),data:J.slides.next.data},count:J.slides.count},slideChangeTimeline:J.transitions._slideTransition,slideshow:{state:J.slideshow.state,sequence:J.slideshow.sequence,direction:J.slideshow.direction,isPaused:J.slideshow.isPaused()},cycles:{max:J.o.cycles,current:J.slideshow.curCycle}}},triggerEvent:function(t,e){var i,s;try{i=e?(s=$.triggerHandler(t+".layerSlider",e),$.triggerHandler(t+".$",e)):(s=$.triggerHandler(t+".layerSlider"),$.triggerHandler(t+".$"))}catch(e){console.error('LayerSlider: Error while calling event "'+t+'":\n\r\n\r',e)}return null!=s?s:"undefinded"!=typeof i&&null!==i?i:void 0}},J.browser={isSafari:!!navigator.userAgent.match(/(iPhone|iPod|iPad|Safari)/i)&&!navigator.userAgent.match(/(Opera|Chrome|Edge)/i),isChrome:function(){var e=window.chrome,t=window.navigator,i=t.vendor,s=void 0!==window.opr,a=-1<t.userAgent.indexOf("Edge"),a=!!t.userAgent.match("CriOS")||null!=e&&"Google Inc."===i&&!1==s&&!1==a;return a},usesFileProtocol:-1!==document.location.href.indexOf("file://"),supports3D:function(){for(var e=ie("<div>"),t=!1,i=!1,s=["perspective","OPerspective","msPerspective","MozPerspective","WebkitPerspective"],a=["transformStyle","OTransformStyle","msTransformStyle","MozTransformStyle","WebkitTransformStyle"],r=s.length-1;0<=r;r--)t=t||void 0!==e[0].style[s[r]];for(var o=a.length-1;0<=o;o--)e.css("transform-style","preserve-3d"),i=i||"preserve-3d"==e[0].style[a[o]];return t&&void 0!==e[0].style[s[4]]&&(e.attr("id","ls-test3d").appendTo($),t=3===e[0].offsetHeight&&9===e[0].offsetLeft,e.remove()),t&&i},isOld:-1!==navigator.userAgent.indexOf("rident/5")},J.initializedPlugins={},J.timeouts={},J.intervals={},J.debug={options:{}},J.plugin={version:"7.8.0",release:"stable",releaseDate:"2023. 08. 11."},J.slider.load()}}(jQuery);
// source --> https://gartengestaltung-gar10.at/wp-content/plugins/LayerSlider/assets/static/layerslider/js/layerslider.transitions.js?ver=7.8.0 

/*
	* 2D & 3D Transitions for LayerSlider
	*
	* (c) 2011-2023 George Krupa, John Gera & Kreatura Media
	*
	* LayerSlider home:		https://layerslider.com/
	* Licensing:			https://layerslider.com/licensing/
*/



var layerSliderTransitions={t2d:[{n:"a b c",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e5",du:1e3,di:"l"}},{n:"a b d",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e5",du:1e3,di:"r"}},{n:"a b e",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e5",du:1e3,di:"t"}},{n:"a b f",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e5",du:1e3,di:"b"}},{n:"g",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"f",ea:"e5",du:1e3,di:"l"}},{n:"h i j",r:[2,4],c:[4,7],t:{de:30,sq:"fw"},tr:{tp:"f",ea:"e10",du:1e3,di:"l"}},{n:"h i k",r:[2,4],c:[4,7],t:{de:30,sq:"rv"},tr:{tp:"f",ea:"e10",du:1e3,di:"l"}},{n:"h i l",r:[2,4],c:[4,7],t:{de:30,sq:"cf"},tr:{tp:"f",ea:"e10",du:1e3,di:"l"}},{n:"h i m",r:[2,4],c:[4,7],t:{de:30,sq:"cr"},tr:{tp:"f",ea:"e10",du:1e3,di:"l"}},{n:"h i n",r:[2,4],c:[4,7],t:{de:30,sq:"rnd"},tr:{tp:"f",ea:"e10",du:1e3,di:"l"}},{n:"o h b c",r:1,c:35,t:{de:25,sq:"rv"},tr:{tp:"f",ea:"e1",du:750,di:"l"}},{n:"o h b d",r:1,c:35,t:{de:25,sq:"fw"},tr:{tp:"f",ea:"e11",du:750,di:"l"}},{n:"o h b e",r:35,c:1,t:{de:25,sq:"cr"},tr:{tp:"f",ea:"e11",du:750,di:"l"}},{n:"o h b f",r:35,c:1,t:{de:25,sq:"cf"},tr:{tp:"f",ea:"e11",du:750,di:"l"}},{n:"o a b c",r:1,c:25,t:{de:30,sq:"rv"},tr:{tp:"sl",ea:"e11",du:350,di:"l"}},{n:"o a b d",r:1,c:25,t:{de:30,sq:"fw"},tr:{tp:"sl",ea:"e11",du:350,di:"r"}},{n:"o p b e",r:25,c:1,t:{de:30,sq:"cr"},tr:{tp:"sl",ea:"e11",du:350,di:"t"}},{n:"o a b f",r:25,c:1,t:{de:30,sq:"cf"},tr:{tp:"sl",ea:"e11",du:350,di:"b"}},{n:"a i q c n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"sl",ea:"e10",du:500,di:"r"}},{n:"a i q d n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"sl",ea:"e10",du:500,di:"l"}},{n:"a i q e n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"sl",ea:"e10",du:500,di:"b"}},{n:"a i q f n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"sl",ea:"e10",du:500,di:"t"}},{n:"a r i q r s",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"sl",ea:"e10",du:500,di:"rnd"}},{n:"a t q c u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"r"}},{n:"a t q c v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"r"}},{n:"a t q c n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"r"}},{n:"a t q d u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"l"}},{n:"a t q d v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"l"}},{n:"a t q d n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"l"}},{n:"a t b f q e u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"b"}},{n:"a t b f q e n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"b"}},{n:"a t b e q f v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"t"}},{n:"a t b e q f n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"t"}},{n:"a w q e u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"b"}},{n:"a w q e v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"b"}},{n:"a w q e n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"b"}},{n:"a w q f u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"t"}},{n:"a w q f v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"t"}},{n:"a w q f n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"t"}},{n:"a w b d q c u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"sl",ea:"e11",du:600,di:"r"}},{n:"a w b d q c n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"r"}},{n:"a w b c q d v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"sl",ea:"e11",du:600,di:"l"}},{n:"a w b c q d n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"sl",ea:"e11",du:600,di:"l"}},{n:"h x a i q c n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"r"}},{n:"h x a i q d n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"l"}},{n:"h x a i q e n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"b"}},{n:"h x a i q f n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"t"}},{n:"h x a r i q r s",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"rnd"}},{n:"h x a i b y u",r:[2,4],c:[4,7],t:{de:50,sq:"fw"},tr:{tp:"mx",ea:"e10",du:500,di:"tl"}},{n:"h x a i b z v",r:[2,4],c:[4,7],t:{de:50,sq:"rv"},tr:{tp:"mx",ea:"e10",du:500,di:"br"}},{n:"h x a i b A n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"tr"}},{n:"h x a i b B n",r:[2,4],c:[4,7],t:{de:50,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:500,di:"bl"}},{n:"h x a t q c u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"r"}},{n:"h x a t q c v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"r"}},{n:"h x a t q c n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"r"}},{n:"h x a t q d u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"l"}},{n:"h x a t q d v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"l"}},{n:"h x a t q d n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"l"}},{n:"h x a t b f q e u",r:[7,11],c:1,t:{de:100,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"b"}},{n:"h x a t b f q e n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"b"}},{n:"h x a t b e q f v",r:[7,11],c:1,t:{de:100,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"t"}},{n:"h x a t b e q f n",r:[7,11],c:1,t:{de:100,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"t"}},{n:"h x a w q e u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"b"}},{n:"h x a w q e v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"b"}},{n:"h x a w q e n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"b"}},{n:"h x a w q f u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"t"}},{n:"h x a w q f v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"t"}},{n:"h x a w q f n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"t"}},{n:"h x a w b d q c u",r:1,c:[12,16],t:{de:75,sq:"fw"},tr:{tp:"mx",ea:"e11",du:600,di:"r"}},{n:"h x a w b d q c n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"r"}},{n:"h x a w b c q d v",r:1,c:[12,16],t:{de:75,sq:"rv"},tr:{tp:"mx",ea:"e11",du:600,di:"l"}},{n:"h x a w b c q d n",r:1,c:[12,16],t:{de:75,sq:"rnd"},tr:{tp:"mx",ea:"e11",du:600,di:"l"}},{n:"C",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5}},{n:"C t",r:4,c:1,t:{de:50,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5}},{n:"C D",r:1,c:4,t:{de:50,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5}},{n:"C i E",r:3,c:4,t:{de:35,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5,_rY:90}},{n:"C i F",r:3,c:4,t:{de:35,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"t",_s:.5,_rX:-90}},{n:"G i E",r:3,c:4,t:{de:15,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5,_rY:90}},{n:"G i F",r:3,c:4,t:{de:15,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"t",_s:.5,_rX:-90}},{n:"C H t",r:4,c:1,t:{de:50,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"r",_s:.5}},{n:"C H D",r:1,c:4,t:{de:50,sq:"fw"},tr:{tp:"mx",ea:"e5",du:750,di:"l",_s:.5}},{n:"I J b d",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e10",du:750,di:"r",_rY:90}},{n:"I J b c",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e10",du:750,di:"l",_rY:-90}},{n:"I J b f",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e10",du:750,di:"b",_rX:-90}},{n:"I J b e",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"sl",ea:"e10",du:750,di:"t",_rX:90}},{n:"I i b d",r:[3,4],c:[3,4],t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:90}},{n:"I i b c",r:[3,4],c:[3,4],t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:-90}},{n:"I i b f",r:[3,4],c:[3,4],t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:-90}},{n:"I i b e",r:[3,4],c:[3,4],t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:90}},{n:"I t b f",r:[6,12],c:1,t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:90}},{n:"I t b e",r:[6,12],c:1,t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:-90}},{n:"I D b d",r:1,c:[6,12],t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:-90}},{n:"I D b c",r:1,c:[6,12],t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:90}},{n:"K t b d",r:[3,10],c:1,t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:90}},{n:"K t b c",r:[3,10],c:1,t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rY:-90}},{n:"K D b f",r:1,c:[3,10],t:{de:55,sq:"fw"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:-90}},{n:"K D b e",r:1,c:[3,10],t:{de:55,sq:"rv"},tr:{tp:"f",ea:"e10",du:750,di:"l",_rX:90}},{n:"K x L J b d",r:1,c:1,t:{de:75,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"r",_s:.1,_r:-90,_rY:90}},{n:"K x L J b c",r:1,c:1,t:{de:75,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"l",_s:.1,_r:90,_rY:-90}},{n:"K x L i b d",r:[3,4],c:[3,4],t:{de:55,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"r",_r:-45}},{n:"K x L i b c",r:[3,4],c:[3,4],t:{de:55,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"l",_r:-45}},{n:"K x L i b r",r:[3,4],c:[3,4],t:{de:55,sq:"rnd"},tr:{tp:"mx",ea:"e10",du:750,di:"rnd",_r:-45}},{n:"M J N",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"f",ea:"e10",du:1500,di:"l",_s:.8}},{n:"M J b O",r:1,c:1,t:{de:0,sq:"fw"},tr:{tp:"f",ea:"e11",du:1500,di:"l",_s:1.2}},{n:"M i r",r:[3,4],c:[3,4],t:{de:35,sq:"rnd"},tr:{tp:"f",ea:"e10",du:750,di:"l",_s:.1}},{n:"M i b O r",r:[3,4],c:[3,4],t:{de:35,sq:"rnd"},tr:{tp:"f",ea:"e10",du:750,di:"l",_s:2}},{n:"M N x L i r",r:[3,4],c:[3,4],t:{de:35,sq:"rnd"},tr:{tp:"f",ea:"e10",du:750,di:"l",_s:.1,_r:90}},{n:"M x L i b O r",r:[3,4],c:[3,4],t:{de:35,sq:"rnd"},tr:{tp:"f",ea:"e10",du:750,di:"l",_s:2,_r:-90}},{n:"P i Q",r:3,c:4,t:{de:15,sq:"fw"},tr:{tp:"sl",ea:"e11",du:850,di:"tr"}},{n:"P t E",r:6,c:1,t:{de:0,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"l"}},{n:"P t F",r:6,c:1,t:{de:0,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"t"}},{n:"P D E",r:1,c:8,t:{de:0,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"l"}},{n:"P D F",r:1,c:8,t:{de:0,sq:"fw"},tr:{tp:"mx",ea:"e10",du:750,di:"t"}},{n:"r R q d",r:10,c:1,t:{de:10,sq:"rnd"},tr:{du:1500,ea:"e11",tp:"sl",di:"l"}},{n:"r R q c",r:10,c:1,t:{de:10,sq:"rnd"},tr:{du:1500,ea:"e11",tp:"sl",di:"r"}},{n:"r R q e",r:1,c:15,t:{de:10,sq:"rnd"},tr:{du:1500,ea:"e11",tp:"sl",di:"b"}},{n:"r R q f",r:1,c:15,t:{de:10,sq:"rnd"},tr:{du:1500,ea:"e11",tp:"sl",di:"t"}},{n:"S b d",r:25,c:1,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"r"}},{n:"S b c",r:25,c:1,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"l"}},{n:"S b T",r:25,c:1,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"c"}},{n:"U b d",r:25,c:1,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"r"}},{n:"U b c",r:25,c:1,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"l"}},{n:"U b T",r:25,c:1,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"c"}},{n:"V b d",r:25,c:1,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"r"}},{n:"V b c",r:25,c:1,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"l"}},{n:"V b T",r:25,c:1,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"c"}},{n:"W b d",r:25,c:1,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"r"}},{n:"W b c",r:25,c:1,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"l"}},{n:"W b T",r:25,c:1,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"c"}},{n:"X b f",r:1,c:25,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"b"}},{n:"X b e",r:1,c:25,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"t"}},{n:"X b Y",r:1,c:25,t:{de:0,sq:"rv"},tr:{tp:"sc",ea:"e11",du:2e3,di:"m"}},{n:"Z b f",r:1,c:25,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"b"}},{n:"Z b e",r:1,c:25,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"t"}},{n:"Z b Y",r:1,c:25,t:{de:0,sq:"fw"},tr:{tp:"sc",ea:"e11",du:2e3,di:"m"}},{n:"0 b f",r:1,c:25,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"b"}},{n:"0 b e",r:1,c:25,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"t"}},{n:"0 b Y",r:1,c:25,t:{de:0,sq:"c"},tr:{tp:"sc",ea:"e11",du:2e3,di:"m"}},{n:"W b f",r:1,c:25,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"b"}},{n:"W b e",r:1,c:25,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"t"}},{n:"W b Y",r:1,c:25,t:{de:0,sq:"e"},tr:{tp:"sc",ea:"e11",du:2e3,di:"m"}},{n:"W E d q c",r:25,c:1,t:{de:0,sq:"mr"},tr:{tp:"sc",ea:"e11",du:2e3,di:"l"}},{n:"W E c q d",r:25,c:1,t:{de:0,sq:"mr"},tr:{tp:"sc",ea:"e11",du:2e3,di:"r"}},{n:"W F f q e",r:1,c:25,t:{de:0,sq:"mr"},tr:{tp:"sc",ea:"e11",du:2e3,di:"t"}},{n:"W F e q f",r:1,c:25,t:{de:0,sq:"mr"},tr:{tp:"sc",ea:"e11",du:2e3,di:"b"}},{n:"1 2 3 a b c",r:100,c:1,t:{de:3,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"l"}},{n:"1 2 3 a b d",r:100,c:1,t:{de:3,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"r"}},{n:"1 2 3 a b e",r:1,c:100,t:{de:3,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"t"}},{n:"1 2 3 a b f",r:1,c:100,t:{de:3,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"b"}},{n:"1 2 4 a b c",r:100,c:1,t:{de:3,sq:"e"},tr:{tp:"sl",ea:"e14",du:1e3,di:"l"}},{n:"1 2 4 a b d",r:100,c:1,t:{de:3,sq:"e"},tr:{tp:"sl",ea:"e14",du:1e3,di:"r"}},{n:"1 2 4 a b e",r:1,c:100,t:{de:3,sq:"e"},tr:{tp:"sl",ea:"e14",du:1e3,di:"t"}},{n:"1 2 4 a b f",r:1,c:100,t:{de:3,sq:"e"},tr:{tp:"sl",ea:"e14",du:1e3,di:"b"}},{n:"5 6 E",r:50,c:1,t:{de:5,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"rnd"}},{n:"5 6 F",r:1,c:50,t:{de:5,sq:"c"},tr:{tp:"sl",ea:"e14",du:1e3,di:"rnd"}},{n:"5 7 F",r:1,c:75,t:{de:3,sq:"rnd"},tr:{du:1e3,ea:"e13",tp:"sl",di:"b",_rX:0,_rY:0,_r:10,_s:1}},{rc:10,n:"5 i N",t:{de:50,sq:"ri"},tr:{tp:"sc",ea:"e4",du:500,di:"rnd",_s:0,_o:0}},{rc:10,n:"5 i O",t:{de:50,sq:"ro"},tr:{tp:"sc",ea:"e4",du:500,di:"rnd",_s:0,_o:0}},{rc:"150px",n:"5 i L",t:{de:10,sq:"e"},tr:{tp:"mx",ea:"e28",du:650,di:"rnd",_o:0,_r:20,_br:150}},{rc:"150px",n:"5 8 N 9",t:{de:5,sq:"rnd"},tr:{tp:"f",ea:"e25",du:1e3,di:"n",_s:0,_br:400,_o:0}},{rc:"100px",n:"5 aa i",t:{de:20,sq:"ri"},tr:{tp:"sl",ea:"e25",du:1e3,di:"rnd",_o:0,_s:0}},{n:"ba M q T E",r:1,c:70,t:{de:10,sq:"c"},tr:{tp:"mx",ea:"e13",du:1e3,di:"n",_sY:1.5,_o:0}},{n:"ba M q ca E",r:1,c:70,t:{de:10,sq:"e"},tr:{tp:"mx",ea:"e13",du:1e3,di:"n",_sY:1.5,_o:0}},{n:"ba M q T F",r:70,c:1,t:{de:10,sq:"c"},tr:{tp:"mx",ea:"e13",du:1e3,di:"n",_sX:1.5,_o:0}},{n:"ba M q ca F",r:70,c:1,t:{de:10,sq:"e"},tr:{tp:"mx",ea:"e13",du:1e3,di:"n",_sX:1.5,_o:0}},{n:"da q d",r:50,c:1,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e11",tp:"sl",di:"l",_rX:0,_rY:0,_r:90,_s:1}},{n:"da q c",r:50,c:1,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e11",tp:"sl",di:"r",_rX:0,_rY:0,_r:90,_s:1}},{n:"ea b c",r:50,c:1,t:{de:5,sq:"rnd"},tr:{du:1500,ea:"e26",tp:"sl",di:"l",_rX:0,_rY:0,_r:0,_s:1}},{n:"ea b d",r:50,c:1,t:{de:5,sq:"rnd"},tr:{du:1500,ea:"e26",tp:"sl",di:"r",_rX:0,_rY:0,_r:0,_s:1}},{n:"ea b f",r:1,c:50,t:{de:5,sq:"rnd"},tr:{du:1500,ea:"e26",tp:"sl",di:"b",_rX:0,_rY:0,_r:0,_s:1}},{n:"ea b e",r:1,c:50,t:{de:5,sq:"rnd"},tr:{du:1500,ea:"e26",tp:"sl",di:"t",_rX:0,_rY:0,_r:0,_s:1}},{n:"fa b c",r:50,c:1,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e31",tp:"sl",di:"l",_rX:0,_rY:0,_r:0,_s:1}},{n:"fa b d",r:50,c:1,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e31",tp:"sl",di:"r",_rX:0,_rY:0,_r:0,_s:1}},{n:"fa b f",r:1,c:50,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e31",tp:"sl",di:"b",_rX:0,_rY:0,_r:0,_s:1}},{n:"fa b e",r:1,c:50,t:{de:5,sq:"fw"},tr:{du:1500,ea:"e31",tp:"sl",di:"t",_rX:0,_rY:0,_r:0,_s:1}}],t3d:[{n:"ga J q c ha",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:91},ea:"e9",du:1e3,di:"h"},af:{tr:{_rY:180},ea:"e10",du:1e3,di:"h"}},{n:"ga J q d ha",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:-91},ea:"e9",du:1e3,di:"h"},af:{tr:{_rY:-180},ea:"e10",du:1e3,di:"h"}},{n:"ga J q e ha",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rX:-91},ea:"e9",du:800,di:"v"},af:{tr:{_rX:-180},ea:"e10",du:800,di:"v"}},{n:"ga J q f ha",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rX:91},ea:"e9",du:800,di:"v"},af:{tr:{_rX:180},ea:"e10",du:800,di:"v"}},{n:"ga i q c ha",r:[2,4],c:[4,7],t:{de:75,sq:"fw"},an:{tr:{_rY:180},ea:"e11",du:1e3,di:"h"}},{n:"ga i q d ha",r:[2,4],c:[4,7],t:{de:75,sq:"rv"},an:{tr:{_rY:-180},ea:"e11",du:1e3,di:"h"}},{n:"ga i q e ha",r:[2,4],c:[4,7],t:{de:75,sq:"cf"},an:{tr:{_rX:-180},ea:"e11",du:1e3,di:"v"}},{n:"ga i q f ha",r:[2,4],c:[4,7],t:{de:75,sq:"cr"},an:{tr:{_rX:180},ea:"e11",du:1e3,di:"v"}},{n:"E ga i r ha",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},an:{tr:{_rY:180},ea:"e11",du:1300,di:"h"}},{n:"F ga i r ha",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},an:{tr:{_rX:180},ea:"e11",du:1300,di:"v"}},{n:"M x ga i q c ha",r:[2,4],c:[4,7],t:{de:75,sq:"fw"},be:{tr:{_s3:.95},du:450,ea:"e14"},an:{tr:{_rY:180},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x ga i q d ha",r:[2,4],c:[4,7],t:{de:75,sq:"rv"},be:{tr:{_s3:.95},du:450,ea:"e14"},an:{tr:{_rY:-180},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x ga i q e ha",r:[2,4],c:[4,7],t:{de:75,sq:"cf"},be:{tr:{_s3:.95},du:450,ea:"e14"},an:{tr:{_rX:-180},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x ga i q f ha",r:[2,4],c:[4,7],t:{de:75,sq:"cr"},be:{tr:{_s3:.95},du:450,ea:"e14"},an:{tr:{_rX:180},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x E ga i r ha",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},be:{tr:{_s3:.95,_rX:30},du:450,ea:"e14"},an:{tr:{_rY:180,_rX:-30},ea:"e29",du:1300,di:"h"},af:{tr:{_rX:0},du:350,ea:"e29"}},{n:"M x F ga i r ha",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},be:{tr:{_s3:.95,_rY:-15},du:450,ea:"e14"},an:{tr:{_rX:180,_rY:15},ea:"e29",du:1300,di:"v"},af:{tr:{_rY:0},du:350,ea:"e29"}},{n:"ga t q c ha",r:[5,9],c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:180},ea:"e11",du:1500,di:"h"}},{n:"ga t q d ha",r:[5,9],c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:-180},ea:"e11",du:1500,di:"h"}},{n:"ga t q e ha",r:[5,9],c:1,t:{de:75,sq:"fw"},an:{tr:{_rX:-180},ea:"e11",du:1e3,di:"v"}},{n:"ga t q f ha",r:[5,9],c:1,t:{de:75,sq:"rv"},an:{tr:{_rX:180},ea:"e11",du:1e3,di:"v"}},{n:"E ga t r ha",r:[5,9],c:1,t:{de:75,sq:"rnd"},an:{tr:{_rY:180},ea:"e11",du:1500,di:"h"}},{n:"F ga t r ha",r:[5,9],c:1,t:{de:75,sq:"rnd"},an:{tr:{_rX:-180},ea:"e11",du:1500,di:"v"}},{n:"F ga t r ia",r:[3,7],c:1,t:{de:150,sq:"rnd"},an:{tr:{_rX:-540},ea:"e11",du:2e3,di:"v"}},{n:"M x ga t q c ha",r:[5,9],c:1,t:{de:55,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e29",du:1200,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga t q d ha",r:[5,9],c:1,t:{de:55,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-180},ea:"e29",du:1200,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga t q e ha",r:[5,9],c:1,t:{de:55,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e11",du:600,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga t q f ha",r:[5,9],c:1,t:{de:55,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:180},ea:"e11",du:600,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x E ga t r ha",r:[5,9],c:1,t:{de:55,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e29",du:1200,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x F ga t r ha",r:[5,9],c:1,t:{de:55,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e29",du:600,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"ga w q c ha",r:1,c:[5,9],t:{de:75,sq:"fw"},an:{tr:{_rY:180},ea:"e11",du:1500,di:"h"}},{n:"ga w q d ha",r:1,c:[5,9],t:{de:75,sq:"fw"},an:{tr:{_rY:-180},ea:"e11",du:1500,di:"h"}},{n:"ga w q e ha",r:1,c:[5,9],t:{de:75,sq:"fw"},an:{tr:{_rX:-180},ea:"e11",du:1e3,di:"v"}},{n:"ga w q f ha",r:1,c:[5,9],t:{de:75,sq:"rv"},an:{tr:{_rX:180},ea:"e11",du:1e3,di:"v"}},{n:"E ga w r ha",r:1,c:[5,9],t:{de:75,sq:"rnd"},an:{tr:{_rY:180},ea:"e11",du:1500,di:"h"}},{n:"F ga w r ha",r:1,c:[5,9],t:{de:75,sq:"rnd"},an:{tr:{_rX:-180},ea:"e11",du:1500,di:"v"}},{n:"E ga w r ia",r:1,c:[4,9],t:{de:150,sq:"rnd"},an:{tr:{_rY:540},ea:"e11",du:2e3,di:"h"}},{n:"M x ga w q c ha",r:1,c:[7,11],t:{de:55,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e11",du:600,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga w q d ha",r:1,c:[7,11],t:{de:55,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-180},ea:"e11",du:600,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga w q e ha",r:1,c:[7,11],t:{de:55,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e29",du:1200,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x ga w q f ha",r:1,c:[7,11],t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:180},ea:"e29",du:1200,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x E ga w r ha",r:1,c:[7,11],t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e29",du:600,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x F ga w r ha",r:1,c:[7,11],t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e29",du:1200,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"ja ka M x ga q c ha",r:1,c:[7,11],t:{de:75,sq:"fw"},be:{tr:{_s3:.85,_rX:-30},du:600,ea:"e10"},an:{tr:{_rX:-30,_rY:180},ea:"e11",du:1e3,di:"h"},af:{tr:{_rX:0,de:200},ea:"e10",du:600}},{n:"ja ka M x ga q d ha",r:1,c:[7,11],t:{de:75,sq:"rv"},be:{tr:{_s3:.85,_rX:-30},du:600,ea:"e10"},an:{tr:{_rX:30,_rY:-180},ea:"e11",du:1e3,di:"h"},af:{tr:{_rX:0,de:200},ea:"e10",du:600}},{n:"I la q c ma",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:90},ea:"e11",du:1500,di:"h"}},{n:"I la q d ma",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:-90},ea:"e11",du:1500,di:"h"}},{n:"I la q e ma",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rX:-90},ea:"e11",du:1500,di:"v"}},{n:"I la q f ma",r:1,c:1,t:{de:75,sq:"fw"},an:{tr:{_rX:90},ea:"e11",du:1500,di:"v"}},{n:"M x I la q c ma",r:1,c:1,t:{de:75,sq:"rnd"},an:{tr:{_s3:.8,_r:7,_rX:10,_rY:45},ea:"e5",du:800,di:"h"},af:{tr:{_r:0,_rX:0,_rY:90},du:800,ea:"e5"}},{n:"M x I la q d ma",r:1,c:1,t:{de:75,sq:"rnd"},an:{tr:{_s3:.8,_r:-7,_rX:10,_rY:-45},ea:"e5",du:800,di:"h"},af:{tr:{_r:0,_rX:0,_rY:-90},du:800,ea:"e5"}},{n:"M x I na q c ma",r:[2,4],c:[4,7],t:{de:75,sq:"fw"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rY:90},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x I na q d ma",r:[2,4],c:[4,7],t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rY:-90},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x I na q e ma",r:[2,4],c:[4,7],t:{de:75,sq:"cf"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rX:-90},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x I na q f ma",r:[2,4],c:[4,7],t:{de:75,sq:"cr"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rX:90},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x E I na r ma",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},be:{tr:{_s3:.75,_rX:-15},du:700,ea:"e14"},an:{tr:{_rY:75,_rX:15},ea:"e29",du:700,di:"h"},af:{tr:{_rY:90,_rX:0},du:700,ea:"e29"}},{n:"M x F I na r ma",r:[2,4],c:[4,7],t:{de:75,sq:"rnd"},be:{tr:{_s3:.75,_rY:15},du:700,ea:"e14"},an:{tr:{_rX:75,_rY:-15},ea:"e29",du:700,di:"v"},af:{tr:{_rX:90,_rY:0},du:700,ea:"e29"}},{n:"I t q c ma",r:[5,9],c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:90},ea:"e11",du:1500,di:"h"}},{n:"I t q d ma",r:[5,9],c:1,t:{de:75,sq:"fw"},an:{tr:{_rY:-90},ea:"e11",du:1500,di:"h"}},{n:"E I t r ma",r:[5,9],c:1,t:{de:75,sq:"rnd"},an:{tr:{_rY:90},ea:"e11",du:1500,di:"h"}},{n:"M x I t q c ma",r:[5,9],c:1,t:{de:75,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:87},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200,_rY:90},ea:"e28",du:600}},{n:"M x I t q d ma",r:[5,9],c:1,t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-90},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x I t q e ma",r:[5,9],c:1,t:{de:75,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x I t q f ma",r:[5,9],c:1,t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x E I t r ma",r:[5,9],c:1,t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:90},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x F I t r ma",r:[5,9],c:1,t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x E I ja t q c ma",r:[7,11],c:1,t:{de:75,sq:"fw"},an:{tr:{_s3:.85,_rY:45},ea:"e14",du:1e3,di:"h"},af:{tr:{_rY:90},ea:"e14",du:1e3}},{n:"M x E I ja t q d ma",r:[7,11],c:1,t:{de:75,sq:"rv"},an:{tr:{_s3:.85,_rY:-45},ea:"e14",du:1e3,di:"h"},af:{tr:{_rY:-90},ea:"e14",du:1e3}},{n:"I w q e ma",r:1,c:[5,9],t:{de:75,sq:"fw"},an:{tr:{_rX:-90},ea:"e11",du:1e3,di:"v"}},{n:"I w q f ma",r:1,c:[5,9],t:{de:75,sq:"rv"},an:{tr:{_rX:90},ea:"e11",du:1e3,di:"v"}},{n:"F I w r ma",r:1,c:[5,9],t:{de:75,sq:"rnd"},an:{tr:{_rX:-90},ea:"e11",du:1e3,di:"v"}},{n:"M x I w q e ma",r:1,c:[7,11],t:{de:75,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x I w q f ma",r:1,c:[7,11],t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x I w q c ma",r:1,c:[7,11],t:{de:75,sq:"fw"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:90},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x I w q d ma",r:1,c:[7,11],t:{de:75,sq:"rv"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-90},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x E I w r ma",r:1,c:[7,11],t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:90},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x F I w r ma",r:1,c:[7,11],t:{de:75,sq:"rnd"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-90},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e28",du:600}},{n:"M x F I ja w q c ma",r:1,c:[7,11],t:{de:75,sq:"fw"},an:{tr:{_s3:.85,_rX:45},ea:"e14",du:1e3,di:"v"},af:{tr:{_rX:90},ea:"e14",du:1e3}},{n:"M x F I ja w q d ma",r:1,c:[7,11],t:{de:75,sq:"rv"},an:{tr:{_s3:.85,_rX:-45},ea:"e14",du:1e3,di:"v"},af:{tr:{_rX:-90},ea:"e14",du:1e3}},{n:"ga la q c oa pa qa",r:1,c:1,t:{de:75,sq:"fw",d:"la"},an:{tr:{_rY:180},ea:"e11",du:1500,di:"h"}},{n:"ga la q d oa pa qa",r:1,c:1,t:{de:75,sq:"fw",d:"la"},an:{tr:{_rY:-180},ea:"e11",du:1500,di:"h"}},{n:"ga la q e oa pa qa",r:1,c:1,t:{de:75,sq:"fw",d:"la"},an:{tr:{_rX:-180},ea:"e11",du:1500,di:"v"}},{n:"ga la q f oa pa qa",r:1,c:1,t:{de:75,sq:"fw",d:"la"},an:{tr:{_rX:180},ea:"e11",du:1500,di:"v"}},{n:"M x ga na q c oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"fw",d:"la"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rY:180},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x ga na q d oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"rv",d:"la"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rY:-180},ea:"e29",du:1e3,di:"h"},af:{du:350,ea:"e29"}},{n:"M x ga na q e oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"cf",d:"la"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rX:-180},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x ga na q f oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"cr",d:"la"},be:{tr:{_s3:.85},du:450,ea:"e14"},an:{tr:{_rX:180},ea:"e29",du:1e3,di:"v"},af:{du:350,ea:"e29"}},{n:"M x E ga na r oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"rnd",d:"la"},be:{tr:{_s3:.65},du:700,ea:"e14"},an:{tr:{_rY:180},ea:"e29",du:700,di:"h"},af:{du:700,ea:"e29"}},{n:"M x F ga na r oa pa qa",r:[2,4],c:[4,7],t:{de:75,sq:"rnd",d:"la"},be:{tr:{_s3:.65},du:700,ea:"e14"},an:{tr:{_rX:180},ea:"e29",du:700,di:"v"},af:{du:700,ea:"e29"}},{n:"M x ga t q c oa pa qa",r:[5,9],c:1,t:{de:65,sq:"fw",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e11",du:1200,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga t q d oa pa qa",r:[5,9],c:1,t:{de:65,sq:"rv",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-180},ea:"e11",du:1200,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga t q e oa pa qa",r:[5,9],c:1,t:{de:65,sq:"fw",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga t q f oa pa qa",r:[5,9],c:1,t:{de:65,sq:"rv",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:180},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x E ga t r oa pa qa",r:[5,9],c:1,t:{de:65,sq:"rnd",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e11",du:1200,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x F ga t r oa pa qa",r:[5,9],c:1,t:{de:65,sq:"rnd",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e29",du:1e3,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga w q e oa pa qa",r:1,c:[7,11],t:{de:65,sq:"fw",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e11",du:1200,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga w q f oa pa qa",r:1,c:[7,11],t:{de:65,sq:"rv",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:180},ea:"e11",du:1200,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga w q c oa pa qa",r:1,c:[7,11],t:{de:65,sq:"fw",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x ga w q d oa pa qa",r:1,c:[7,11],t:{de:65,sq:"rv",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:-180},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x E ga w r oa pa qa",r:1,c:[7,11],t:{de:65,sq:"rnd",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rY:180},ea:"e29",du:1e3,di:"h"},af:{tr:{de:200},ea:"e10",du:400}},{n:"M x F ga w r oa pa qa",r:1,c:[7,11],t:{de:65,sq:"rnd",d:"la"},be:{tr:{_s3:.85},du:600,ea:"e28"},an:{tr:{_rX:-180},ea:"e11",du:1200,di:"v"},af:{tr:{de:200},ea:"e10",du:400}},{n:"ra L x h sa",r:1,c:1,t:{de:1,sq:"fw",d:"la"},be:{tr:{_s3:.65,_rY:-270},du:1500,ea:"e9"},an:{tr:{_s3:1,_rY:-540},ea:"e10",du:1500,di:"h"}},{n:"ta L x h sa",r:1,c:1,t:{de:1,sq:"fw",d:"la"},be:{tr:{_s3:.65,_rX:-270},du:1500,ea:"e9"},an:{tr:{_s3:1,_rX:-540},ea:"e10",du:1500,di:"v"}},{n:"ra L x h na",r:[2,3],c:[3,5],t:{de:50,sq:"rnd"},be:{tr:{_s3:.75},du:350,ea:"e9"},an:{tr:{_rY:-45,_rX:180},ea:"e11",du:1,di:"v"},af:{tr:{_rY:0},ea:"e10",du:1200}},{n:"ta L x h na",r:[2,3],c:[3,5],t:{de:50,sq:"rnd"},be:{tr:{_s3:.75},du:350,ea:"e9"},an:{tr:{_rX:-45,_rY:180},ea:"e11",du:1,di:"h"},af:{tr:{_rX:0},ea:"e10",du:1200}}]},_lsSwapObj=function(e){for(var r in e)e[e[r]]=r,delete e[r]},_lsConvTrProp=function(e,r){var d,a,t={af:"after",an:"animation",be:"before",c:"cols",d:"depth",de:"delay",di:"direction",du:"duration",ea:"easing",n:"name",r:"rows",sq:"sequence",t:"tile",tp:"type",tr:"transition",_br:"borderRadius",_o:"opacity",_r:"rotate",_rX:"rotateX",_rY:"rotateY",_s:"scale",_s3:"scale3d",_sX:"scaleX",_sY:"scaleY",_skX:"skewX",_skY:"skewY"},n={b:"bottom",bl:"bottomleft",br:"bottomright",c:"center",cf:"col-forward",cr:"col-reverse",e:"edge",f:"fade",fw:"forward",h:"horizontal",l:"left",la:"large",m:"middle",mr:"mirror",mx:"mixed",n:"none",r:"right",ri:"radial-in",rnd:"random",ro:"radial-out",rv:"reverse",sc:"scale",sl:"slide",t:"top",tl:"topleft",tr:"topright",v:"vertical",e1:"linear",e2:"swing",e3:"easeInQuad",e4:"easeOutQuad",e5:"easeInOutQuad",e6:"easeInCubic",e7:"easeOutCubic",e8:"easeInOutCubic",e9:"easeInQuart",e10:"easeOutQuart",e11:"easeInOutQuart",e12:"easeInQuint",e13:"easeOutQuint",e14:"easeInOutQuint",e15:"easeInSine",e16:"easeOutSine",e17:"easeInOutSine",e18:"easeInExpo",e19:"easeOutExpo",e20:"easeInOutExpo",e21:"easeInCirc",e22:"easeOutCirc",e23:"easeInOutCirc",e24:"easeInElastic",e25:"easeOutElastic",e26:"easeInOutElastic",e27:"easeInBack",e28:"easeOutBack",e29:"easeInOutBack",e30:"easeInBounce",e31:"easeOutBounce",e32:"easeInOutBounce"},s=function(e){for(var r in e)"object"==typeof e[r]&&s(e[r]),t[r]&&(d=t[r],a=e[r],n[e[r]]&&(a=n[e[r]]),e[d]=a,delete e[r])};return r?(_lsSwapObj(t),_lsSwapObj(n)):_lsConvTrNames(e),s(e),e},_lsConvTrNames=function(e,t){var n,s,u,c={sliding:"a",from:"b",right:"c",left:"d",bottom:"e",top:"f",crossfading:"g",fading:"h",tiles:"i",forward:"j",reverse:"k","col-forward":"l","col-reverse":"m","(random)":"n",smooth:"o",sliging:"p",to:"q",random:"r",directions:"s",rows:"t","(forward)":"u","(reverse)":"v",columns:"w",and:"x","top-left":"y","bottom-right":"z","top-right":"A","bottom-left":"B",carousel:"C",cols:"D",horizontal:"E",vertical:"F","carousel-mirror":"G",mirror:"H",turning:"I",tile:"J",flying:"K",rotating:"L",scaling:"M",in:"N",out:"O","mirror-sliding":"P",diagonal:"Q",slices:"R","top-scaling":"S",center:"T","bottom-scaling":"U","middle-scaling":"V","edge-scaling":"W","left-scaling":"X",middle:"Y","right-scaling":"Z","center-scaling":"0",pinched:"1",at:"2","edges,":"3","center,":"4",glitch:"5",slide:"6",spikes:"7",popping:"8",elastic:"9",mosaic:"aa",liquid:"ba",edges:"ca",tornado:"da",fluid:"ea",bounce:"fa",spinning:"ga","(180°)":"ha","(540°)":"ia",drunk:"ja",colums:"ka",cuboid:"la","(90°)":"ma",cuboids:"na","(180°,":"oa",large:"pa","depth)":"qa",horizontally:"ra",cube:"sa",vertically:"ta"},i=charSet2="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split(""),q=0,_=-1,f=i.length,l=function(e){for(var r in e)if("object"==typeof e[r]&&l(e[r]),"n"===r)if(s=n="",t){for(var d in u=e[r].toLowerCase().split(" "))c[u[d]]?s+=c[u[d]]+" ":(n=i[q]+(-1<_?charSet2[_]:""),c[u[d]]=n,q===f-1?(q=0,_++):q++,s+=n+" ");e[r]=s.trim()}else{for(var a in u=e[r].split(" "))n+=c[u[a]]+" ";e[r]=(n.charAt(0).toUpperCase()+n.slice(1)).trim()}};if(t||_lsSwapObj(c),l(e),t)return c};
// source --> https://gartengestaltung-gar10.at/wp-content/plugins/before-after-image-slider-lite/libs/nouislider-14.6.2/nouislider.js?ver=14.6.2 
/*! nouislider - 14.6.2 - 9/16/2020 */
(function(factory) {
    if (typeof define === "function" && define.amd) {
        // AMD. Register as an anonymous module.
        define([], factory);
    } else if (typeof exports === "object") {
        // Node/CommonJS
        module.exports = factory();
    } else {
        // Browser globals
        window.noUiSlider = factory();
    }
})(function() {
    "use strict";

    var VERSION = "14.6.2";

    //region Helper Methods

    function isValidFormatter(entry) {
        return typeof entry === "object" && typeof entry.to === "function" && typeof entry.from === "function";
    }

    function removeElement(el) {
        el.parentElement.removeChild(el);
    }

    function isSet(value) {
        return value !== null && value !== undefined;
    }

    // Bindable version
    function preventDefault(e) {
        e.preventDefault();
    }

    // Removes duplicates from an array.
    function unique(array) {
        return array.filter(function(a) {
            return !this[a] ? (this[a] = true) : false;
        }, {});
    }

    // Round a value to the closest 'to'.
    function closest(value, to) {
        return Math.round(value / to) * to;
    }

    // Current position of an element relative to the document.
    function offset(elem, orientation) {
        var rect = elem.getBoundingClientRect();
        var doc = elem.ownerDocument;
        var docElem = doc.documentElement;
        var pageOffset = getPageOffset(doc);

        // getBoundingClientRect contains left scroll in Chrome on Android.
        // I haven't found a feature detection that proves this. Worst case
        // scenario on mis-match: the 'tap' feature on horizontal sliders breaks.
        if (/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)) {
            pageOffset.x = 0;
        }

        return orientation
            ? rect.top + pageOffset.y - docElem.clientTop
            : rect.left + pageOffset.x - docElem.clientLeft;
    }

    // Checks whether a value is numerical.
    function isNumeric(a) {
        return typeof a === "number" && !isNaN(a) && isFinite(a);
    }

    // Sets a class and removes it after [duration] ms.
    function addClassFor(element, className, duration) {
        if (duration > 0) {
            addClass(element, className);
            setTimeout(function() {
                removeClass(element, className);
            }, duration);
        }
    }

    // Limits a value to 0 - 100
    function limit(a) {
        return Math.max(Math.min(a, 100), 0);
    }

    // Wraps a variable as an array, if it isn't one yet.
    // Note that an input array is returned by reference!
    function asArray(a) {
        return Array.isArray(a) ? a : [a];
    }

    // Counts decimals
    function countDecimals(numStr) {
        numStr = String(numStr);
        var pieces = numStr.split(".");
        return pieces.length > 1 ? pieces[1].length : 0;
    }

    // http://youmightnotneedjquery.com/#add_class
    function addClass(el, className) {
        if (el.classList && !/\s/.test(className)) {
            el.classList.add(className);
        } else {
            el.className += " " + className;
        }
    }

    // http://youmightnotneedjquery.com/#remove_class
    function removeClass(el, className) {
        if (el.classList && !/\s/.test(className)) {
            el.classList.remove(className);
        } else {
            el.className = el.className.replace(
                new RegExp("(^|\\b)" + className.split(" ").join("|") + "(\\b|$)", "gi"),
                " "
            );
        }
    }

    // https://plainjs.com/javascript/attributes/adding-removing-and-testing-for-classes-9/
    function hasClass(el, className) {
        return el.classList
            ? el.classList.contains(className)
            : new RegExp("\\b" + className + "\\b").test(el.className);
    }

    // https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY#Notes
    function getPageOffset(doc) {
        var supportPageOffset = window.pageXOffset !== undefined;
        var isCSS1Compat = (doc.compatMode || "") === "CSS1Compat";
        var x = supportPageOffset
            ? window.pageXOffset
            : isCSS1Compat
                ? doc.documentElement.scrollLeft
                : doc.body.scrollLeft;
        var y = supportPageOffset
            ? window.pageYOffset
            : isCSS1Compat
                ? doc.documentElement.scrollTop
                : doc.body.scrollTop;

        return {
            x: x,
            y: y
        };
    }

    // we provide a function to compute constants instead
    // of accessing window.* as soon as the module needs it
    // so that we do not compute anything if not needed
    function getActions() {
        // Determine the events to bind. IE11 implements pointerEvents without
        // a prefix, which breaks compatibility with the IE10 implementation.
        return window.navigator.pointerEnabled
            ? {
                  start: "pointerdown",
                  move: "pointermove",
                  end: "pointerup"
              }
            : window.navigator.msPointerEnabled
                ? {
                      start: "MSPointerDown",
                      move: "MSPointerMove",
                      end: "MSPointerUp"
                  }
                : {
                      start: "mousedown touchstart",
                      move: "mousemove touchmove",
                      end: "mouseup touchend"
                  };
    }

    // https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
    // Issue #785
    function getSupportsPassive() {
        var supportsPassive = false;

        /* eslint-disable */
        try {
            var opts = Object.defineProperty({}, "passive", {
                get: function() {
                    supportsPassive = true;
                }
            });

            window.addEventListener("test", null, opts);
        } catch (e) {}
        /* eslint-enable */

        return supportsPassive;
    }

    function getSupportsTouchActionNone() {
        return window.CSS && CSS.supports && CSS.supports("touch-action", "none");
    }

    //endregion

    //region Range Calculation

    // Determine the size of a sub-range in relation to a full range.
    function subRangeRatio(pa, pb) {
        return 100 / (pb - pa);
    }

    // (percentage) How many percent is this value of this range?
    function fromPercentage(range, value, startRange) {
        return (value * 100) / (range[startRange + 1] - range[startRange]);
    }

    // (percentage) Where is this value on this range?
    function toPercentage(range, value) {
        return fromPercentage(range, range[0] < 0 ? value + Math.abs(range[0]) : value - range[0], 0);
    }

    // (value) How much is this percentage on this range?
    function isPercentage(range, value) {
        return (value * (range[1] - range[0])) / 100 + range[0];
    }

    function getJ(value, arr) {
        var j = 1;

        while (value >= arr[j]) {
            j += 1;
        }

        return j;
    }

    // (percentage) Input a value, find where, on a scale of 0-100, it applies.
    function toStepping(xVal, xPct, value) {
        if (value >= xVal.slice(-1)[0]) {
            return 100;
        }

        var j = getJ(value, xVal);
        var va = xVal[j - 1];
        var vb = xVal[j];
        var pa = xPct[j - 1];
        var pb = xPct[j];

        return pa + toPercentage([va, vb], value) / subRangeRatio(pa, pb);
    }

    // (value) Input a percentage, find where it is on the specified range.
    function fromStepping(xVal, xPct, value) {
        // There is no range group that fits 100
        if (value >= 100) {
            return xVal.slice(-1)[0];
        }

        var j = getJ(value, xPct);
        var va = xVal[j - 1];
        var vb = xVal[j];
        var pa = xPct[j - 1];
        var pb = xPct[j];

        return isPercentage([va, vb], (value - pa) * subRangeRatio(pa, pb));
    }

    // (percentage) Get the step that applies at a certain value.
    function getStep(xPct, xSteps, snap, value) {
        if (value === 100) {
            return value;
        }

        var j = getJ(value, xPct);
        var a = xPct[j - 1];
        var b = xPct[j];

        // If 'snap' is set, steps are used as fixed points on the slider.
        if (snap) {
            // Find the closest position, a or b.
            if (value - a > (b - a) / 2) {
                return b;
            }

            return a;
        }

        if (!xSteps[j - 1]) {
            return value;
        }

        return xPct[j - 1] + closest(value - xPct[j - 1], xSteps[j - 1]);
    }

    function handleEntryPoint(index, value, that) {
        var percentage;

        // Wrap numerical input in an array.
        if (typeof value === "number") {
            value = [value];
        }

        // Reject any invalid input, by testing whether value is an array.
        if (!Array.isArray(value)) {
            throw new Error("noUiSlider (" + VERSION + "): 'range' contains invalid value.");
        }

        // Covert min/max syntax to 0 and 100.
        if (index === "min") {
            percentage = 0;
        } else if (index === "max") {
            percentage = 100;
        } else {
            percentage = parseFloat(index);
        }

        // Check for correct input.
        if (!isNumeric(percentage) || !isNumeric(value[0])) {
            throw new Error("noUiSlider (" + VERSION + "): 'range' value isn't numeric.");
        }

        // Store values.
        that.xPct.push(percentage);
        that.xVal.push(value[0]);

        // NaN will evaluate to false too, but to keep
        // logging clear, set step explicitly. Make sure
        // not to override the 'step' setting with false.
        if (!percentage) {
            if (!isNaN(value[1])) {
                that.xSteps[0] = value[1];
            }
        } else {
            that.xSteps.push(isNaN(value[1]) ? false : value[1]);
        }

        that.xHighestCompleteStep.push(0);
    }

    function handleStepPoint(i, n, that) {
        // Ignore 'false' stepping.
        if (!n) {
            return;
        }

        // Step over zero-length ranges (#948);
        if (that.xVal[i] === that.xVal[i + 1]) {
            that.xSteps[i] = that.xHighestCompleteStep[i] = that.xVal[i];

            return;
        }

        // Factor to range ratio
        that.xSteps[i] =
            fromPercentage([that.xVal[i], that.xVal[i + 1]], n, 0) / subRangeRatio(that.xPct[i], that.xPct[i + 1]);

        var totalSteps = (that.xVal[i + 1] - that.xVal[i]) / that.xNumSteps[i];
        var highestStep = Math.ceil(Number(totalSteps.toFixed(3)) - 1);
        var step = that.xVal[i] + that.xNumSteps[i] * highestStep;

        that.xHighestCompleteStep[i] = step;
    }

    //endregion

    //region Spectrum

    function Spectrum(entry, snap, singleStep) {
        this.xPct = [];
        this.xVal = [];
        this.xSteps = [singleStep || false];
        this.xNumSteps = [false];
        this.xHighestCompleteStep = [];

        this.snap = snap;

        var index;
        var ordered = []; // [0, 'min'], [1, '50%'], [2, 'max']

        // Map the object keys to an array.
        for (index in entry) {
            if (entry.hasOwnProperty(index)) {
                ordered.push([entry[index], index]);
            }
        }

        // Sort all entries by value (numeric sort).
        if (ordered.length && typeof ordered[0][0] === "object") {
            ordered.sort(function(a, b) {
                return a[0][0] - b[0][0];
            });
        } else {
            ordered.sort(function(a, b) {
                return a[0] - b[0];
            });
        }

        // Convert all entries to subranges.
        for (index = 0; index < ordered.length; index++) {
            handleEntryPoint(ordered[index][1], ordered[index][0], this);
        }

        // Store the actual step values.
        // xSteps is sorted in the same order as xPct and xVal.
        this.xNumSteps = this.xSteps.slice(0);

        // Convert all numeric steps to the percentage of the subrange they represent.
        for (index = 0; index < this.xNumSteps.length; index++) {
            handleStepPoint(index, this.xNumSteps[index], this);
        }
    }

    Spectrum.prototype.getDistance = function(value) {
        var index;
        var distances = [];

        for (index = 0; index < this.xNumSteps.length - 1; index++) {
            // last "range" can't contain step size as it is purely an endpoint.
            var step = this.xNumSteps[index];

            if (step && (value / step) % 1 !== 0) {
                throw new Error(
                    "noUiSlider (" +
                        VERSION +
                        "): 'limit', 'margin' and 'padding' of " +
                        this.xPct[index] +
                        "% range must be divisible by step."
                );
            }

            // Calculate percentual distance in current range of limit, margin or padding
            distances[index] = fromPercentage(this.xVal, value, index);
        }

        return distances;
    };

    // Calculate the percentual distance over the whole scale of ranges.
    // direction: 0 = backwards / 1 = forwards
    Spectrum.prototype.getAbsoluteDistance = function(value, distances, direction) {
        var xPct_index = 0;

        // Calculate range where to start calculation
        if (value < this.xPct[this.xPct.length - 1]) {
            while (value > this.xPct[xPct_index + 1]) {
                xPct_index++;
            }
        } else if (value === this.xPct[this.xPct.length - 1]) {
            xPct_index = this.xPct.length - 2;
        }

        // If looking backwards and the value is exactly at a range separator then look one range further
        if (!direction && value === this.xPct[xPct_index + 1]) {
            xPct_index++;
        }

        var start_factor;
        var rest_factor = 1;

        var rest_rel_distance = distances[xPct_index];

        var range_pct = 0;

        var rel_range_distance = 0;
        var abs_distance_counter = 0;
        var range_counter = 0;

        // Calculate what part of the start range the value is
        if (direction) {
            start_factor = (value - this.xPct[xPct_index]) / (this.xPct[xPct_index + 1] - this.xPct[xPct_index]);
        } else {
            start_factor = (this.xPct[xPct_index + 1] - value) / (this.xPct[xPct_index + 1] - this.xPct[xPct_index]);
        }

        // Do until the complete distance across ranges is calculated
        while (rest_rel_distance > 0) {
            // Calculate the percentage of total range
            range_pct = this.xPct[xPct_index + 1 + range_counter] - this.xPct[xPct_index + range_counter];

            // Detect if the margin, padding or limit is larger then the current range and calculate
            if (distances[xPct_index + range_counter] * rest_factor + 100 - start_factor * 100 > 100) {
                // If larger then take the percentual distance of the whole range
                rel_range_distance = range_pct * start_factor;
                // Rest factor of relative percentual distance still to be calculated
                rest_factor = (rest_rel_distance - 100 * start_factor) / distances[xPct_index + range_counter];
                // Set start factor to 1 as for next range it does not apply.
                start_factor = 1;
            } else {
                // If smaller or equal then take the percentual distance of the calculate percentual part of that range
                rel_range_distance = ((distances[xPct_index + range_counter] * range_pct) / 100) * rest_factor;
                // No rest left as the rest fits in current range
                rest_factor = 0;
            }

            if (direction) {
                abs_distance_counter = abs_distance_counter - rel_range_distance;
                // Limit range to first range when distance becomes outside of minimum range
                if (this.xPct.length + range_counter >= 1) {
                    range_counter--;
                }
            } else {
                abs_distance_counter = abs_distance_counter + rel_range_distance;
                // Limit range to last range when distance becomes outside of maximum range
                if (this.xPct.length - range_counter >= 1) {
                    range_counter++;
                }
            }

            // Rest of relative percentual distance still to be calculated
            rest_rel_distance = distances[xPct_index + range_counter] * rest_factor;
        }

        return value + abs_distance_counter;
    };

    Spectrum.prototype.toStepping = function(value) {
        value = toStepping(this.xVal, this.xPct, value);

        return value;
    };

    Spectrum.prototype.fromStepping = function(value) {
        return fromStepping(this.xVal, this.xPct, value);
    };

    Spectrum.prototype.getStep = function(value) {
        value = getStep(this.xPct, this.xSteps, this.snap, value);

        return value;
    };

    Spectrum.prototype.getDefaultStep = function(value, isDown, size) {
        var j = getJ(value, this.xPct);

        // When at the top or stepping down, look at the previous sub-range
        if (value === 100 || (isDown && value === this.xPct[j - 1])) {
            j = Math.max(j - 1, 1);
        }

        return (this.xVal[j] - this.xVal[j - 1]) / size;
    };

    Spectrum.prototype.getNearbySteps = function(value) {
        var j = getJ(value, this.xPct);

        return {
            stepBefore: {
                startValue: this.xVal[j - 2],
                step: this.xNumSteps[j - 2],
                highestStep: this.xHighestCompleteStep[j - 2]
            },
            thisStep: {
                startValue: this.xVal[j - 1],
                step: this.xNumSteps[j - 1],
                highestStep: this.xHighestCompleteStep[j - 1]
            },
            stepAfter: {
                startValue: this.xVal[j],
                step: this.xNumSteps[j],
                highestStep: this.xHighestCompleteStep[j]
            }
        };
    };

    Spectrum.prototype.countStepDecimals = function() {
        var stepDecimals = this.xNumSteps.map(countDecimals);
        return Math.max.apply(null, stepDecimals);
    };

    // Outside testing
    Spectrum.prototype.convert = function(value) {
        return this.getStep(this.toStepping(value));
    };

    //endregion

    //region Options

    /*	Every input option is tested and parsed. This'll prevent
        endless validation in internal methods. These tests are
        structured with an item for every option available. An
        option can be marked as required by setting the 'r' flag.
        The testing function is provided with three arguments:
            - The provided value for the option;
            - A reference to the options object;
            - The name for the option;

        The testing function returns false when an error is detected,
        or true when everything is OK. It can also modify the option
        object, to make sure all values can be correctly looped elsewhere. */

    //region Defaults

    var defaultFormatter = {
        to: function(value) {
            return value !== undefined && value.toFixed(2);
        },
        from: Number
    };

    var cssClasses = {
        target: "target",
        base: "base",
        origin: "origin",
        handle: "handle",
        handleLower: "handle-lower",
        handleUpper: "handle-upper",
        touchArea: "touch-area",
        horizontal: "horizontal",
        vertical: "vertical",
        background: "background",
        connect: "connect",
        connects: "connects",
        ltr: "ltr",
        rtl: "rtl",
        textDirectionLtr: "txt-dir-ltr",
        textDirectionRtl: "txt-dir-rtl",
        draggable: "draggable",
        drag: "state-drag",
        tap: "state-tap",
        active: "active",
        tooltip: "tooltip",
        pips: "pips",
        pipsHorizontal: "pips-horizontal",
        pipsVertical: "pips-vertical",
        marker: "marker",
        markerHorizontal: "marker-horizontal",
        markerVertical: "marker-vertical",
        markerNormal: "marker-normal",
        markerLarge: "marker-large",
        markerSub: "marker-sub",
        value: "value",
        valueHorizontal: "value-horizontal",
        valueVertical: "value-vertical",
        valueNormal: "value-normal",
        valueLarge: "value-large",
        valueSub: "value-sub"
    };

    //endregion

    function validateFormat(entry) {
        // Any object with a to and from method is supported.
        if (isValidFormatter(entry)) {
            return true;
        }

        throw new Error("noUiSlider (" + VERSION + "): 'format' requires 'to' and 'from' methods.");
    }

    function testStep(parsed, entry) {
        if (!isNumeric(entry)) {
            throw new Error("noUiSlider (" + VERSION + "): 'step' is not numeric.");
        }

        // The step option can still be used to set stepping
        // for linear sliders. Overwritten if set in 'range'.
        parsed.singleStep = entry;
    }

    function testKeyboardPageMultiplier(parsed, entry) {
        if (!isNumeric(entry)) {
            throw new Error("noUiSlider (" + VERSION + "): 'keyboardPageMultiplier' is not numeric.");
        }

        parsed.keyboardPageMultiplier = entry;
    }

    function testKeyboardDefaultStep(parsed, entry) {
        if (!isNumeric(entry)) {
            throw new Error("noUiSlider (" + VERSION + "): 'keyboardDefaultStep' is not numeric.");
        }

        parsed.keyboardDefaultStep = entry;
    }

    function testRange(parsed, entry) {
        // Filter incorrect input.
        if (typeof entry !== "object" || Array.isArray(entry)) {
            throw new Error("noUiSlider (" + VERSION + "): 'range' is not an object.");
        }

        // Catch missing start or end.
        if (entry.min === undefined || entry.max === undefined) {
            throw new Error("noUiSlider (" + VERSION + "): Missing 'min' or 'max' in 'range'.");
        }

        // Catch equal start or end.
        if (entry.min === entry.max) {
            throw new Error("noUiSlider (" + VERSION + "): 'range' 'min' and 'max' cannot be equal.");
        }

        parsed.spectrum = new Spectrum(entry, parsed.snap, parsed.singleStep);
    }

    function testStart(parsed, entry) {
        entry = asArray(entry);

        // Validate input. Values aren't tested, as the public .val method
        // will always provide a valid location.
        if (!Array.isArray(entry) || !entry.length) {
            throw new Error("noUiSlider (" + VERSION + "): 'start' option is incorrect.");
        }

        // Store the number of handles.
        parsed.handles = entry.length;

        // When the slider is initialized, the .val method will
        // be called with the start options.
        parsed.start = entry;
    }

    function testSnap(parsed, entry) {
        // Enforce 100% stepping within subranges.
        parsed.snap = entry;

        if (typeof entry !== "boolean") {
            throw new Error("noUiSlider (" + VERSION + "): 'snap' option must be a boolean.");
        }
    }

    function testAnimate(parsed, entry) {
        // Enforce 100% stepping within subranges.
        parsed.animate = entry;

        if (typeof entry !== "boolean") {
            throw new Error("noUiSlider (" + VERSION + "): 'animate' option must be a boolean.");
        }
    }

    function testAnimationDuration(parsed, entry) {
        parsed.animationDuration = entry;

        if (typeof entry !== "number") {
            throw new Error("noUiSlider (" + VERSION + "): 'animationDuration' option must be a number.");
        }
    }

    function testConnect(parsed, entry) {
        var connect = [false];
        var i;

        // Map legacy options
        if (entry === "lower") {
            entry = [true, false];
        } else if (entry === "upper") {
            entry = [false, true];
        }

        // Handle boolean options
        if (entry === true || entry === false) {
            for (i = 1; i < parsed.handles; i++) {
                connect.push(entry);
            }

            connect.push(false);
        }

        // Reject invalid input
        else if (!Array.isArray(entry) || !entry.length || entry.length !== parsed.handles + 1) {
            throw new Error("noUiSlider (" + VERSION + "): 'connect' option doesn't match handle count.");
        } else {
            connect = entry;
        }

        parsed.connect = connect;
    }

    function testOrientation(parsed, entry) {
        // Set orientation to an a numerical value for easy
        // array selection.
        switch (entry) {
            case "horizontal":
                parsed.ort = 0;
                break;
            case "vertical":
                parsed.ort = 1;
                break;
            default:
                throw new Error("noUiSlider (" + VERSION + "): 'orientation' option is invalid.");
        }
    }

    function testMargin(parsed, entry) {
        if (!isNumeric(entry)) {
            throw new Error("noUiSlider (" + VERSION + "): 'margin' option must be numeric.");
        }

        // Issue #582
        if (entry === 0) {
            return;
        }

        parsed.margin = parsed.spectrum.getDistance(entry);
    }

    function testLimit(parsed, entry) {
        if (!isNumeric(entry)) {
            throw new Error("noUiSlider (" + VERSION + "): 'limit' option must be numeric.");
        }

        parsed.limit = parsed.spectrum.getDistance(entry);

        if (!parsed.limit || parsed.handles < 2) {
            throw new Error(
                "noUiSlider (" +
                    VERSION +
                    "): 'limit' option is only supported on linear sliders with 2 or more handles."
            );
        }
    }

    function testPadding(parsed, entry) {
        var index;

        if (!isNumeric(entry) && !Array.isArray(entry)) {
            throw new Error(
                "noUiSlider (" + VERSION + "): 'padding' option must be numeric or array of exactly 2 numbers."
            );
        }

        if (Array.isArray(entry) && !(entry.length === 2 || isNumeric(entry[0]) || isNumeric(entry[1]))) {
            throw new Error(
                "noUiSlider (" + VERSION + "): 'padding' option must be numeric or array of exactly 2 numbers."
            );
        }

        if (entry === 0) {
            return;
        }

        if (!Array.isArray(entry)) {
            entry = [entry, entry];
        }

        // 'getDistance' returns false for invalid values.
        parsed.padding = [parsed.spectrum.getDistance(entry[0]), parsed.spectrum.getDistance(entry[1])];

        for (index = 0; index < parsed.spectrum.xNumSteps.length - 1; index++) {
            // last "range" can't contain step size as it is purely an endpoint.
            if (parsed.padding[0][index] < 0 || parsed.padding[1][index] < 0) {
                throw new Error("noUiSlider (" + VERSION + "): 'padding' option must be a positive number(s).");
            }
        }

        var totalPadding = entry[0] + entry[1];
        var firstValue = parsed.spectrum.xVal[0];
        var lastValue = parsed.spectrum.xVal[parsed.spectrum.xVal.length - 1];

        if (totalPadding / (lastValue - firstValue) > 1) {
            throw new Error("noUiSlider (" + VERSION + "): 'padding' option must not exceed 100% of the range.");
        }
    }

    function testDirection(parsed, entry) {
        // Set direction as a numerical value for easy parsing.
        // Invert connection for RTL sliders, so that the proper
        // handles get the connect/background classes.
        switch (entry) {
            case "ltr":
                parsed.dir = 0;
                break;
            case "rtl":
                parsed.dir = 1;
                break;
            default:
                throw new Error("noUiSlider (" + VERSION + "): 'direction' option was not recognized.");
        }
    }

    function testBehaviour(parsed, entry) {
        // Make sure the input is a string.
        if (typeof entry !== "string") {
            throw new Error("noUiSlider (" + VERSION + "): 'behaviour' must be a string containing options.");
        }

        // Check if the string contains any keywords.
        // None are required.
        var tap = entry.indexOf("tap") >= 0;
        var drag = entry.indexOf("drag") >= 0;
        var fixed = entry.indexOf("fixed") >= 0;
        var snap = entry.indexOf("snap") >= 0;
        var hover = entry.indexOf("hover") >= 0;
        var unconstrained = entry.indexOf("unconstrained") >= 0;

        if (fixed) {
            if (parsed.handles !== 2) {
                throw new Error("noUiSlider (" + VERSION + "): 'fixed' behaviour must be used with 2 handles");
            }

            // Use margin to enforce fixed state
            testMargin(parsed, parsed.start[1] - parsed.start[0]);
        }

        if (unconstrained && (parsed.margin || parsed.limit)) {
            throw new Error(
                "noUiSlider (" + VERSION + "): 'unconstrained' behaviour cannot be used with margin or limit"
            );
        }

        parsed.events = {
            tap: tap || snap,
            drag: drag,
            fixed: fixed,
            snap: snap,
            hover: hover,
            unconstrained: unconstrained
        };
    }

    function testTooltips(parsed, entry) {
        if (entry === false) {
            return;
        }

        if (entry === true) {
            parsed.tooltips = [];

            for (var i = 0; i < parsed.handles; i++) {
                parsed.tooltips.push(true);
            }
        } else {
            parsed.tooltips = asArray(entry);

            if (parsed.tooltips.length !== parsed.handles) {
                throw new Error("noUiSlider (" + VERSION + "): must pass a formatter for all handles.");
            }

            parsed.tooltips.forEach(function(formatter) {
                if (
                    typeof formatter !== "boolean" &&
                    (typeof formatter !== "object" || typeof formatter.to !== "function")
                ) {
                    throw new Error("noUiSlider (" + VERSION + "): 'tooltips' must be passed a formatter or 'false'.");
                }
            });
        }
    }

    function testAriaFormat(parsed, entry) {
        parsed.ariaFormat = entry;
        validateFormat(entry);
    }

    function testFormat(parsed, entry) {
        parsed.format = entry;
        validateFormat(entry);
    }

    function testKeyboardSupport(parsed, entry) {
        parsed.keyboardSupport = entry;

        if (typeof entry !== "boolean") {
            throw new Error("noUiSlider (" + VERSION + "): 'keyboardSupport' option must be a boolean.");
        }
    }

    function testDocumentElement(parsed, entry) {
        // This is an advanced option. Passed values are used without validation.
        parsed.documentElement = entry;
    }

    function testCssPrefix(parsed, entry) {
        if (typeof entry !== "string" && entry !== false) {
            throw new Error("noUiSlider (" + VERSION + "): 'cssPrefix' must be a string or `false`.");
        }

        parsed.cssPrefix = entry;
    }

    function testCssClasses(parsed, entry) {
        if (typeof entry !== "object") {
            throw new Error("noUiSlider (" + VERSION + "): 'cssClasses' must be an object.");
        }

        if (typeof parsed.cssPrefix === "string") {
            parsed.cssClasses = {};

            for (var key in entry) {
                if (!entry.hasOwnProperty(key)) {
                    continue;
                }

                parsed.cssClasses[key] = parsed.cssPrefix + entry[key];
            }
        } else {
            parsed.cssClasses = entry;
        }
    }

    // Test all developer settings and parse to assumption-safe values.
    function testOptions(options) {
        // To prove a fix for #537, freeze options here.
        // If the object is modified, an error will be thrown.
        // Object.freeze(options);

        var parsed = {
            margin: 0,
            limit: 0,
            padding: 0,
            animate: true,
            animationDuration: 300,
            ariaFormat: defaultFormatter,
            format: defaultFormatter
        };

        // Tests are executed in the order they are presented here.
        var tests = {
            step: { r: false, t: testStep },
            keyboardPageMultiplier: { r: false, t: testKeyboardPageMultiplier },
            keyboardDefaultStep: { r: false, t: testKeyboardDefaultStep },
            start: { r: true, t: testStart },
            connect: { r: true, t: testConnect },
            direction: { r: true, t: testDirection },
            snap: { r: false, t: testSnap },
            animate: { r: false, t: testAnimate },
            animationDuration: { r: false, t: testAnimationDuration },
            range: { r: true, t: testRange },
            orientation: { r: false, t: testOrientation },
            margin: { r: false, t: testMargin },
            limit: { r: false, t: testLimit },
            padding: { r: false, t: testPadding },
            behaviour: { r: true, t: testBehaviour },
            ariaFormat: { r: false, t: testAriaFormat },
            format: { r: false, t: testFormat },
            tooltips: { r: false, t: testTooltips },
            keyboardSupport: { r: true, t: testKeyboardSupport },
            documentElement: { r: false, t: testDocumentElement },
            cssPrefix: { r: true, t: testCssPrefix },
            cssClasses: { r: true, t: testCssClasses }
        };

        var defaults = {
            connect: false,
            direction: "ltr",
            behaviour: "tap",
            orientation: "horizontal",
            keyboardSupport: true,
            cssPrefix: "noUi-",
            cssClasses: cssClasses,
            keyboardPageMultiplier: 5,
            keyboardDefaultStep: 10
        };

        // AriaFormat defaults to regular format, if any.
        if (options.format && !options.ariaFormat) {
            options.ariaFormat = options.format;
        }

        // Run all options through a testing mechanism to ensure correct
        // input. It should be noted that options might get modified to
        // be handled properly. E.g. wrapping integers in arrays.
        Object.keys(tests).forEach(function(name) {
            // If the option isn't set, but it is required, throw an error.
            if (!isSet(options[name]) && defaults[name] === undefined) {
                if (tests[name].r) {
                    throw new Error("noUiSlider (" + VERSION + "): '" + name + "' is required.");
                }

                return true;
            }

            tests[name].t(parsed, !isSet(options[name]) ? defaults[name] : options[name]);
        });

        // Forward pips options
        parsed.pips = options.pips;

        // All recent browsers accept unprefixed transform.
        // We need -ms- for IE9 and -webkit- for older Android;
        // Assume use of -webkit- if unprefixed and -ms- are not supported.
        // https://caniuse.com/#feat=transforms2d
        var d = document.createElement("div");
        var msPrefix = d.style.msTransform !== undefined;
        var noPrefix = d.style.transform !== undefined;

        parsed.transformRule = noPrefix ? "transform" : msPrefix ? "msTransform" : "webkitTransform";

        // Pips don't move, so we can place them using left/top.
        var styles = [["left", "top"], ["right", "bottom"]];

        parsed.style = styles[parsed.dir][parsed.ort];

        return parsed;
    }

    //endregion

    function scope(target, options, originalOptions) {
        var actions = getActions();
        var supportsTouchActionNone = getSupportsTouchActionNone();
        var supportsPassive = supportsTouchActionNone && getSupportsPassive();

        // All variables local to 'scope' are prefixed with 'scope_'

        // Slider DOM Nodes
        var scope_Target = target;
        var scope_Base;
        var scope_Handles;
        var scope_Connects;
        var scope_Pips;
        var scope_Tooltips;

        // Slider state values
        var scope_Spectrum = options.spectrum;
        var scope_Values = [];
        var scope_Locations = [];
        var scope_HandleNumbers = [];
        var scope_ActiveHandlesCount = 0;
        var scope_Events = {};

        // Exposed API
        var scope_Self;

        // Document Nodes
        var scope_Document = target.ownerDocument;
        var scope_DocumentElement = options.documentElement || scope_Document.documentElement;
        var scope_Body = scope_Document.body;

        // Pips constants
        var PIPS_NONE = -1;
        var PIPS_NO_VALUE = 0;
        var PIPS_LARGE_VALUE = 1;
        var PIPS_SMALL_VALUE = 2;

        // For horizontal sliders in standard ltr documents,
        // make .noUi-origin overflow to the left so the document doesn't scroll.
        var scope_DirOffset = scope_Document.dir === "rtl" || options.ort === 1 ? 0 : 100;

        // Creates a node, adds it to target, returns the new node.
        function addNodeTo(addTarget, className) {
            var div = scope_Document.createElement("div");

            if (className) {
                addClass(div, className);
            }

            addTarget.appendChild(div);

            return div;
        }

        // Append a origin to the base
        function addOrigin(base, handleNumber) {
            var origin = addNodeTo(base, options.cssClasses.origin);
            var handle = addNodeTo(origin, options.cssClasses.handle);

            addNodeTo(handle, options.cssClasses.touchArea);

            handle.setAttribute("data-handle", handleNumber);

            if (options.keyboardSupport) {
                // https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
                // 0 = focusable and reachable
                handle.setAttribute("tabindex", "0");
                handle.addEventListener("keydown", function(event) {
                    return eventKeydown(event, handleNumber);
                });
            }

            handle.setAttribute("role", "slider");
            handle.setAttribute("aria-orientation", options.ort ? "vertical" : "horizontal");

            if (handleNumber === 0) {
                addClass(handle, options.cssClasses.handleLower);
            } else if (handleNumber === options.handles - 1) {
                addClass(handle, options.cssClasses.handleUpper);
            }

            return origin;
        }

        // Insert nodes for connect elements
        function addConnect(base, add) {
            if (!add) {
                return false;
            }

            return addNodeTo(base, options.cssClasses.connect);
        }

        // Add handles to the slider base.
        function addElements(connectOptions, base) {
            var connectBase = addNodeTo(base, options.cssClasses.connects);

            scope_Handles = [];
            scope_Connects = [];

            scope_Connects.push(addConnect(connectBase, connectOptions[0]));

            // [::::O====O====O====]
            // connectOptions = [0, 1, 1, 1]

            for (var i = 0; i < options.handles; i++) {
                // Keep a list of all added handles.
                scope_Handles.push(addOrigin(base, i));
                scope_HandleNumbers[i] = i;
                scope_Connects.push(addConnect(connectBase, connectOptions[i + 1]));
            }
        }

        // Initialize a single slider.
        function addSlider(addTarget) {
            // Apply classes and data to the target.
            addClass(addTarget, options.cssClasses.target);

            if (options.dir === 0) {
                addClass(addTarget, options.cssClasses.ltr);
            } else {
                addClass(addTarget, options.cssClasses.rtl);
            }

            if (options.ort === 0) {
                addClass(addTarget, options.cssClasses.horizontal);
            } else {
                addClass(addTarget, options.cssClasses.vertical);
            }

            var textDirection = getComputedStyle(addTarget).direction;

            if (textDirection === "rtl") {
                addClass(addTarget, options.cssClasses.textDirectionRtl);
            } else {
                addClass(addTarget, options.cssClasses.textDirectionLtr);
            }

            return addNodeTo(addTarget, options.cssClasses.base);
        }

        function addTooltip(handle, handleNumber) {
            if (!options.tooltips[handleNumber]) {
                return false;
            }

            return addNodeTo(handle.firstChild, options.cssClasses.tooltip);
        }

        function isSliderDisabled() {
            return scope_Target.hasAttribute("disabled");
        }

        // Disable the slider dragging if any handle is disabled
        function isHandleDisabled(handleNumber) {
            var handleOrigin = scope_Handles[handleNumber];
            return handleOrigin.hasAttribute("disabled");
        }

        function removeTooltips() {
            if (scope_Tooltips) {
                removeEvent("update.tooltips");
                scope_Tooltips.forEach(function(tooltip) {
                    if (tooltip) {
                        removeElement(tooltip);
                    }
                });
                scope_Tooltips = null;
            }
        }

        // The tooltips option is a shorthand for using the 'update' event.
        function tooltips() {
            removeTooltips();

            // Tooltips are added with options.tooltips in original order.
            scope_Tooltips = scope_Handles.map(addTooltip);

            bindEvent("update.tooltips", function(values, handleNumber, unencoded) {
                if (!scope_Tooltips[handleNumber]) {
                    return;
                }

                var formattedValue = values[handleNumber];

                if (options.tooltips[handleNumber] !== true) {
                    formattedValue = options.tooltips[handleNumber].to(unencoded[handleNumber]);
                }

                scope_Tooltips[handleNumber].innerHTML = formattedValue;
            });
        }

        function aria() {
            bindEvent("update", function(values, handleNumber, unencoded, tap, positions) {
                // Update Aria Values for all handles, as a change in one changes min and max values for the next.
                scope_HandleNumbers.forEach(function(index) {
                    var handle = scope_Handles[index];

                    var min = checkHandlePosition(scope_Locations, index, 0, true, true, true);
                    var max = checkHandlePosition(scope_Locations, index, 100, true, true, true);

                    var now = positions[index];

                    // Formatted value for display
                    var text = options.ariaFormat.to(unencoded[index]);

                    // Map to slider range values
                    min = scope_Spectrum.fromStepping(min).toFixed(1);
                    max = scope_Spectrum.fromStepping(max).toFixed(1);
                    now = scope_Spectrum.fromStepping(now).toFixed(1);

                    handle.children[0].setAttribute("aria-valuemin", min);
                    handle.children[0].setAttribute("aria-valuemax", max);
                    handle.children[0].setAttribute("aria-valuenow", now);
                    handle.children[0].setAttribute("aria-valuetext", text);
                });
            });
        }

        function getGroup(mode, values, stepped) {
            // Use the range.
            if (mode === "range" || mode === "steps") {
                return scope_Spectrum.xVal;
            }

            if (mode === "count") {
                if (values < 2) {
                    throw new Error("noUiSlider (" + VERSION + "): 'values' (>= 2) required for mode 'count'.");
                }

                // Divide 0 - 100 in 'count' parts.
                var interval = values - 1;
                var spread = 100 / interval;

                values = [];

                // List these parts and have them handled as 'positions'.
                while (interval--) {
                    values[interval] = interval * spread;
                }

                values.push(100);

                mode = "positions";
            }

            if (mode === "positions") {
                // Map all percentages to on-range values.
                return values.map(function(value) {
                    return scope_Spectrum.fromStepping(stepped ? scope_Spectrum.getStep(value) : value);
                });
            }

            if (mode === "values") {
                // If the value must be stepped, it needs to be converted to a percentage first.
                if (stepped) {
                    return values.map(function(value) {
                        // Convert to percentage, apply step, return to value.
                        return scope_Spectrum.fromStepping(scope_Spectrum.getStep(scope_Spectrum.toStepping(value)));
                    });
                }

                // Otherwise, we can simply use the values.
                return values;
            }
        }

        function generateSpread(density, mode, group) {
            function safeIncrement(value, increment) {
                // Avoid floating point variance by dropping the smallest decimal places.
                return (value + increment).toFixed(7) / 1;
            }

            var indexes = {};
            var firstInRange = scope_Spectrum.xVal[0];
            var lastInRange = scope_Spectrum.xVal[scope_Spectrum.xVal.length - 1];
            var ignoreFirst = false;
            var ignoreLast = false;
            var prevPct = 0;

            // Create a copy of the group, sort it and filter away all duplicates.
            group = unique(
                group.slice().sort(function(a, b) {
                    return a - b;
                })
            );

            // Make sure the range starts with the first element.
            if (group[0] !== firstInRange) {
                group.unshift(firstInRange);
                ignoreFirst = true;
            }

            // Likewise for the last one.
            if (group[group.length - 1] !== lastInRange) {
                group.push(lastInRange);
                ignoreLast = true;
            }

            group.forEach(function(current, index) {
                // Get the current step and the lower + upper positions.
                var step;
                var i;
                var q;
                var low = current;
                var high = group[index + 1];
                var newPct;
                var pctDifference;
                var pctPos;
                var type;
                var steps;
                var realSteps;
                var stepSize;
                var isSteps = mode === "steps";

                // When using 'steps' mode, use the provided steps.
                // Otherwise, we'll step on to the next subrange.
                if (isSteps) {
                    step = scope_Spectrum.xNumSteps[index];
                }

                // Default to a 'full' step.
                if (!step) {
                    step = high - low;
                }

                // Low can be 0, so test for false. Index 0 is already handled.
                if (low === false) {
                    return;
                }

                // If high is undefined we are at the last subrange. Make sure it iterates once (#1088)
                if (high === undefined) {
                    high = low;
                }

                // Make sure step isn't 0, which would cause an infinite loop (#654)
                step = Math.max(step, 0.0000001);

                // Find all steps in the subrange.
                for (i = low; i <= high; i = safeIncrement(i, step)) {
                    // Get the percentage value for the current step,
                    // calculate the size for the subrange.
                    newPct = scope_Spectrum.toStepping(i);
                    pctDifference = newPct - prevPct;

                    steps = pctDifference / density;
                    realSteps = Math.round(steps);

                    // This ratio represents the amount of percentage-space a point indicates.
                    // For a density 1 the points/percentage = 1. For density 2, that percentage needs to be re-divided.
                    // Round the percentage offset to an even number, then divide by two
                    // to spread the offset on both sides of the range.
                    stepSize = pctDifference / realSteps;

                    // Divide all points evenly, adding the correct number to this subrange.
                    // Run up to <= so that 100% gets a point, event if ignoreLast is set.
                    for (q = 1; q <= realSteps; q += 1) {
                        // The ratio between the rounded value and the actual size might be ~1% off.
                        // Correct the percentage offset by the number of points
                        // per subrange. density = 1 will result in 100 points on the
                        // full range, 2 for 50, 4 for 25, etc.
                        pctPos = prevPct + q * stepSize;
                        indexes[pctPos.toFixed(5)] = [scope_Spectrum.fromStepping(pctPos), 0];
                    }

                    // Determine the point type.
                    type = group.indexOf(i) > -1 ? PIPS_LARGE_VALUE : isSteps ? PIPS_SMALL_VALUE : PIPS_NO_VALUE;

                    // Enforce the 'ignoreFirst' option by overwriting the type for 0.
                    if (!index && ignoreFirst && i !== high) {
                        type = 0;
                    }

                    if (!(i === high && ignoreLast)) {
                        // Mark the 'type' of this point. 0 = plain, 1 = real value, 2 = step value.
                        indexes[newPct.toFixed(5)] = [i, type];
                    }

                    // Update the percentage count.
                    prevPct = newPct;
                }
            });

            return indexes;
        }

        function addMarking(spread, filterFunc, formatter) {
            var element = scope_Document.createElement("div");

            var valueSizeClasses = [];
            valueSizeClasses[PIPS_NO_VALUE] = options.cssClasses.valueNormal;
            valueSizeClasses[PIPS_LARGE_VALUE] = options.cssClasses.valueLarge;
            valueSizeClasses[PIPS_SMALL_VALUE] = options.cssClasses.valueSub;

            var markerSizeClasses = [];
            markerSizeClasses[PIPS_NO_VALUE] = options.cssClasses.markerNormal;
            markerSizeClasses[PIPS_LARGE_VALUE] = options.cssClasses.markerLarge;
            markerSizeClasses[PIPS_SMALL_VALUE] = options.cssClasses.markerSub;

            var valueOrientationClasses = [options.cssClasses.valueHorizontal, options.cssClasses.valueVertical];
            var markerOrientationClasses = [options.cssClasses.markerHorizontal, options.cssClasses.markerVertical];

            addClass(element, options.cssClasses.pips);
            addClass(element, options.ort === 0 ? options.cssClasses.pipsHorizontal : options.cssClasses.pipsVertical);

            function getClasses(type, source) {
                var a = source === options.cssClasses.value;
                var orientationClasses = a ? valueOrientationClasses : markerOrientationClasses;
                var sizeClasses = a ? valueSizeClasses : markerSizeClasses;

                return source + " " + orientationClasses[options.ort] + " " + sizeClasses[type];
            }

            function addSpread(offset, value, type) {
                // Apply the filter function, if it is set.
                type = filterFunc ? filterFunc(value, type) : type;

                if (type === PIPS_NONE) {
                    return;
                }

                // Add a marker for every point
                var node = addNodeTo(element, false);
                node.className = getClasses(type, options.cssClasses.marker);
                node.style[options.style] = offset + "%";

                // Values are only appended for points marked '1' or '2'.
                if (type > PIPS_NO_VALUE) {
                    node = addNodeTo(element, false);
                    node.className = getClasses(type, options.cssClasses.value);
                    node.setAttribute("data-value", value);
                    node.style[options.style] = offset + "%";
                    node.innerHTML = formatter.to(value);
                }
            }

            // Append all points.
            Object.keys(spread).forEach(function(offset) {
                addSpread(offset, spread[offset][0], spread[offset][1]);
            });

            return element;
        }

        function removePips() {
            if (scope_Pips) {
                removeElement(scope_Pips);
                scope_Pips = null;
            }
        }

        function pips(grid) {
            // Fix #669
            removePips();

            var mode = grid.mode;
            var density = grid.density || 1;
            var filter = grid.filter || false;
            var values = grid.values || false;
            var stepped = grid.stepped || false;
            var group = getGroup(mode, values, stepped);
            var spread = generateSpread(density, mode, group);
            var format = grid.format || {
                to: Math.round
            };

            scope_Pips = scope_Target.appendChild(addMarking(spread, filter, format));

            return scope_Pips;
        }

        // Shorthand for base dimensions.
        function baseSize() {
            var rect = scope_Base.getBoundingClientRect();
            var alt = "offset" + ["Width", "Height"][options.ort];
            return options.ort === 0 ? rect.width || scope_Base[alt] : rect.height || scope_Base[alt];
        }

        // Handler for attaching events trough a proxy.
        function attachEvent(events, element, callback, data) {
            // This function can be used to 'filter' events to the slider.
            // element is a node, not a nodeList

            var method = function(e) {
                e = fixEvent(e, data.pageOffset, data.target || element);

                // fixEvent returns false if this event has a different target
                // when handling (multi-) touch events;
                if (!e) {
                    return false;
                }

                // doNotReject is passed by all end events to make sure released touches
                // are not rejected, leaving the slider "stuck" to the cursor;
                if (isSliderDisabled() && !data.doNotReject) {
                    return false;
                }

                // Stop if an active 'tap' transition is taking place.
                if (hasClass(scope_Target, options.cssClasses.tap) && !data.doNotReject) {
                    return false;
                }

                // Ignore right or middle clicks on start #454
                if (events === actions.start && e.buttons !== undefined && e.buttons > 1) {
                    return false;
                }

                // Ignore right or middle clicks on start #454
                if (data.hover && e.buttons) {
                    return false;
                }

                // 'supportsPassive' is only true if a browser also supports touch-action: none in CSS.
                // iOS safari does not, so it doesn't get to benefit from passive scrolling. iOS does support
                // touch-action: manipulation, but that allows panning, which breaks
                // sliders after zooming/on non-responsive pages.
                // See: https://bugs.webkit.org/show_bug.cgi?id=133112
                if (!supportsPassive) {
                    e.preventDefault();
                }

                e.calcPoint = e.points[options.ort];

                // Call the event handler with the event [ and additional data ].
                callback(e, data);
            };

            var methods = [];

            // Bind a closure on the target for every event type.
            events.split(" ").forEach(function(eventName) {
                element.addEventListener(eventName, method, supportsPassive ? { passive: true } : false);
                methods.push([eventName, method]);
            });

            return methods;
        }

        // Provide a clean event with standardized offset values.
        function fixEvent(e, pageOffset, eventTarget) {
            // Filter the event to register the type, which can be
            // touch, mouse or pointer. Offset changes need to be
            // made on an event specific basis.
            var touch = e.type.indexOf("touch") === 0;
            var mouse = e.type.indexOf("mouse") === 0;
            var pointer = e.type.indexOf("pointer") === 0;

            var x;
            var y;

            // IE10 implemented pointer events with a prefix;
            if (e.type.indexOf("MSPointer") === 0) {
                pointer = true;
            }

            // Erroneous events seem to be passed in occasionally on iOS/iPadOS after user finishes interacting with
            // the slider. They appear to be of type MouseEvent, yet they don't have usual properties set. Ignore
            // events that have no touches or buttons associated with them. (#1057, #1079, #1095)
            if (e.type === "mousedown" && !e.buttons && !e.touches) {
                return false;
            }

            // The only thing one handle should be concerned about is the touches that originated on top of it.
            if (touch) {
                // Returns true if a touch originated on the target.
                var isTouchOnTarget = function(checkTouch) {
                    return (
                        checkTouch.target === eventTarget ||
                        eventTarget.contains(checkTouch.target) ||
                        (checkTouch.target.shadowRoot && checkTouch.target.shadowRoot.contains(eventTarget))
                    );
                };

                // In the case of touchstart events, we need to make sure there is still no more than one
                // touch on the target so we look amongst all touches.
                if (e.type === "touchstart") {
                    var targetTouches = Array.prototype.filter.call(e.touches, isTouchOnTarget);

                    // Do not support more than one touch per handle.
                    if (targetTouches.length > 1) {
                        return false;
                    }

                    x = targetTouches[0].pageX;
                    y = targetTouches[0].pageY;
                } else {
                    // In the other cases, find on changedTouches is enough.
                    var targetTouch = Array.prototype.find.call(e.changedTouches, isTouchOnTarget);

                    // Cancel if the target touch has not moved.
                    if (!targetTouch) {
                        return false;
                    }

                    x = targetTouch.pageX;
                    y = targetTouch.pageY;
                }
            }

            pageOffset = pageOffset || getPageOffset(scope_Document);

            if (mouse || pointer) {
                x = e.clientX + pageOffset.x;
                y = e.clientY + pageOffset.y;
            }

            e.pageOffset = pageOffset;
            e.points = [x, y];
            e.cursor = mouse || pointer; // Fix #435

            return e;
        }

        // Translate a coordinate in the document to a percentage on the slider
        function calcPointToPercentage(calcPoint) {
            var location = calcPoint - offset(scope_Base, options.ort);
            var proposal = (location * 100) / baseSize();

            // Clamp proposal between 0% and 100%
            // Out-of-bound coordinates may occur when .noUi-base pseudo-elements
            // are used (e.g. contained handles feature)
            proposal = limit(proposal);

            return options.dir ? 100 - proposal : proposal;
        }

        // Find handle closest to a certain percentage on the slider
        function getClosestHandle(clickedPosition) {
            var smallestDifference = 100;
            var handleNumber = false;

            scope_Handles.forEach(function(handle, index) {
                // Disabled handles are ignored
                if (isHandleDisabled(index)) {
                    return;
                }

                var handlePosition = scope_Locations[index];
                var differenceWithThisHandle = Math.abs(handlePosition - clickedPosition);

                // Initial state
                var clickAtEdge = differenceWithThisHandle === 100 && smallestDifference === 100;

                // Difference with this handle is smaller than the previously checked handle
                var isCloser = differenceWithThisHandle < smallestDifference;
                var isCloserAfter = differenceWithThisHandle <= smallestDifference && clickedPosition > handlePosition;

                if (isCloser || isCloserAfter || clickAtEdge) {
                    handleNumber = index;
                    smallestDifference = differenceWithThisHandle;
                }
            });

            return handleNumber;
        }

        // Fire 'end' when a mouse or pen leaves the document.
        function documentLeave(event, data) {
            if (event.type === "mouseout" && event.target.nodeName === "HTML" && event.relatedTarget === null) {
                eventEnd(event, data);
            }
        }

        // Handle movement on document for handle and range drag.
        function eventMove(event, data) {
            // Fix #498
            // Check value of .buttons in 'start' to work around a bug in IE10 mobile (data.buttonsProperty).
            // https://connect.microsoft.com/IE/feedback/details/927005/mobile-ie10-windows-phone-buttons-property-of-pointermove-event-always-zero
            // IE9 has .buttons and .which zero on mousemove.
            // Firefox breaks the spec MDN defines.
            if (navigator.appVersion.indexOf("MSIE 9") === -1 && event.buttons === 0 && data.buttonsProperty !== 0) {
                return eventEnd(event, data);
            }

            // Check if we are moving up or down
            var movement = (options.dir ? -1 : 1) * (event.calcPoint - data.startCalcPoint);

            // Convert the movement into a percentage of the slider width/height
            var proposal = (movement * 100) / data.baseSize;

            moveHandles(movement > 0, proposal, data.locations, data.handleNumbers);
        }

        // Unbind move events on document, call callbacks.
        function eventEnd(event, data) {
            // The handle is no longer active, so remove the class.
            if (data.handle) {
                removeClass(data.handle, options.cssClasses.active);
                scope_ActiveHandlesCount -= 1;
            }

            // Unbind the move and end events, which are added on 'start'.
            data.listeners.forEach(function(c) {
                scope_DocumentElement.removeEventListener(c[0], c[1]);
            });

            if (scope_ActiveHandlesCount === 0) {
                // Remove dragging class.
                removeClass(scope_Target, options.cssClasses.drag);
                setZindex();

                // Remove cursor styles and text-selection events bound to the body.
                if (event.cursor) {
                    scope_Body.style.cursor = "";
                    scope_Body.removeEventListener("selectstart", preventDefault);
                }
            }

            data.handleNumbers.forEach(function(handleNumber) {
                fireEvent("change", handleNumber);
                fireEvent("set", handleNumber);
                fireEvent("end", handleNumber);
            });
        }

        // Bind move events on document.
        function eventStart(event, data) {
            // Ignore event if any handle is disabled
            if (data.handleNumbers.some(isHandleDisabled)) {
                return false;
            }

            var handle;

            if (data.handleNumbers.length === 1) {
                var handleOrigin = scope_Handles[data.handleNumbers[0]];

                handle = handleOrigin.children[0];
                scope_ActiveHandlesCount += 1;

                // Mark the handle as 'active' so it can be styled.
                addClass(handle, options.cssClasses.active);
            }

            // A drag should never propagate up to the 'tap' event.
            event.stopPropagation();

            // Record the event listeners.
            var listeners = [];

            // Attach the move and end events.
            var moveEvent = attachEvent(actions.move, scope_DocumentElement, eventMove, {
                // The event target has changed so we need to propagate the original one so that we keep
                // relying on it to extract target touches.
                target: event.target,
                handle: handle,
                listeners: listeners,
                startCalcPoint: event.calcPoint,
                baseSize: baseSize(),
                pageOffset: event.pageOffset,
                handleNumbers: data.handleNumbers,
                buttonsProperty: event.buttons,
                locations: scope_Locations.slice()
            });

            var endEvent = attachEvent(actions.end, scope_DocumentElement, eventEnd, {
                target: event.target,
                handle: handle,
                listeners: listeners,
                doNotReject: true,
                handleNumbers: data.handleNumbers
            });

            var outEvent = attachEvent("mouseout", scope_DocumentElement, documentLeave, {
                target: event.target,
                handle: handle,
                listeners: listeners,
                doNotReject: true,
                handleNumbers: data.handleNumbers
            });

            // We want to make sure we pushed the listeners in the listener list rather than creating
            // a new one as it has already been passed to the event handlers.
            listeners.push.apply(listeners, moveEvent.concat(endEvent, outEvent));

            // Text selection isn't an issue on touch devices,
            // so adding cursor styles can be skipped.
            if (event.cursor) {
                // Prevent the 'I' cursor and extend the range-drag cursor.
                scope_Body.style.cursor = getComputedStyle(event.target).cursor;

                // Mark the target with a dragging state.
                if (scope_Handles.length > 1) {
                    addClass(scope_Target, options.cssClasses.drag);
                }

                // Prevent text selection when dragging the handles.
                // In noUiSlider <= 9.2.0, this was handled by calling preventDefault on mouse/touch start/move,
                // which is scroll blocking. The selectstart event is supported by FireFox starting from version 52,
                // meaning the only holdout is iOS Safari. This doesn't matter: text selection isn't triggered there.
                // The 'cursor' flag is false.
                // See: http://caniuse.com/#search=selectstart
                scope_Body.addEventListener("selectstart", preventDefault, false);
            }

            data.handleNumbers.forEach(function(handleNumber) {
                fireEvent("start", handleNumber);
            });
        }

        // Move closest handle to tapped location.
        function eventTap(event) {
            // The tap event shouldn't propagate up
            event.stopPropagation();

            var proposal = calcPointToPercentage(event.calcPoint);
            var handleNumber = getClosestHandle(proposal);

            // Tackle the case that all handles are 'disabled'.
            if (handleNumber === false) {
                return false;
            }

            // Flag the slider as it is now in a transitional state.
            // Transition takes a configurable amount of ms (default 300). Re-enable the slider after that.
            if (!options.events.snap) {
                addClassFor(scope_Target, options.cssClasses.tap, options.animationDuration);
            }

            setHandle(handleNumber, proposal, true, true);

            setZindex();

            fireEvent("slide", handleNumber, true);
            fireEvent("update", handleNumber, true);
            fireEvent("change", handleNumber, true);
            fireEvent("set", handleNumber, true);

            if (options.events.snap) {
                eventStart(event, { handleNumbers: [handleNumber] });
            }
        }

        // Fires a 'hover' event for a hovered mouse/pen position.
        function eventHover(event) {
            var proposal = calcPointToPercentage(event.calcPoint);

            var to = scope_Spectrum.getStep(proposal);
            var value = scope_Spectrum.fromStepping(to);

            Object.keys(scope_Events).forEach(function(targetEvent) {
                if ("hover" === targetEvent.split(".")[0]) {
                    scope_Events[targetEvent].forEach(function(callback) {
                        callback.call(scope_Self, value);
                    });
                }
            });
        }

        // Handles keydown on focused handles
        // Don't move the document when pressing arrow keys on focused handles
        function eventKeydown(event, handleNumber) {
            if (isSliderDisabled() || isHandleDisabled(handleNumber)) {
                return false;
            }

            var horizontalKeys = ["Left", "Right"];
            var verticalKeys = ["Down", "Up"];
            var largeStepKeys = ["PageDown", "PageUp"];
            var edgeKeys = ["Home", "End"];

            if (options.dir && !options.ort) {
                // On an right-to-left slider, the left and right keys act inverted
                horizontalKeys.reverse();
            } else if (options.ort && !options.dir) {
                // On a top-to-bottom slider, the up and down keys act inverted
                verticalKeys.reverse();
                largeStepKeys.reverse();
            }

            // Strip "Arrow" for IE compatibility. https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key
            var key = event.key.replace("Arrow", "");

            var isLargeDown = key === largeStepKeys[0];
            var isLargeUp = key === largeStepKeys[1];
            var isDown = key === verticalKeys[0] || key === horizontalKeys[0] || isLargeDown;
            var isUp = key === verticalKeys[1] || key === horizontalKeys[1] || isLargeUp;
            var isMin = key === edgeKeys[0];
            var isMax = key === edgeKeys[1];

            if (!isDown && !isUp && !isMin && !isMax) {
                return true;
            }

            event.preventDefault();

            var to;

            if (isUp || isDown) {
                var multiplier = options.keyboardPageMultiplier;
                var direction = isDown ? 0 : 1;
                var steps = getNextStepsForHandle(handleNumber);
                var step = steps[direction];

                // At the edge of a slider, do nothing
                if (step === null) {
                    return false;
                }

                // No step set, use the default of 10% of the sub-range
                if (step === false) {
                    step = scope_Spectrum.getDefaultStep(
                        scope_Locations[handleNumber],
                        isDown,
                        options.keyboardDefaultStep
                    );
                }

                if (isLargeUp || isLargeDown) {
                    step *= multiplier;
                }

                // Step over zero-length ranges (#948);
                step = Math.max(step, 0.0000001);

                // Decrement for down steps
                step = (isDown ? -1 : 1) * step;

                to = scope_Values[handleNumber] + step;
            } else if (isMax) {
                // End key
                to = options.spectrum.xVal[options.spectrum.xVal.length - 1];
            } else {
                // Home key
                to = options.spectrum.xVal[0];
            }

            setHandle(handleNumber, scope_Spectrum.toStepping(to), true, true);

            fireEvent("slide", handleNumber);
            fireEvent("update", handleNumber);
            fireEvent("change", handleNumber);
            fireEvent("set", handleNumber);

            return false;
        }

        // Attach events to several slider parts.
        function bindSliderEvents(behaviour) {
            // Attach the standard drag event to the handles.
            if (!behaviour.fixed) {
                scope_Handles.forEach(function(handle, index) {
                    // These events are only bound to the visual handle
                    // element, not the 'real' origin element.
                    attachEvent(actions.start, handle.children[0], eventStart, {
                        handleNumbers: [index]
                    });
                });
            }

            // Attach the tap event to the slider base.
            if (behaviour.tap) {
                attachEvent(actions.start, scope_Base, eventTap, {});
            }

            // Fire hover events
            if (behaviour.hover) {
                attachEvent(actions.move, scope_Base, eventHover, {
                    hover: true
                });
            }

            // Make the range draggable.
            if (behaviour.drag) {
                scope_Connects.forEach(function(connect, index) {
                    if (connect === false || index === 0 || index === scope_Connects.length - 1) {
                        return;
                    }

                    var handleBefore = scope_Handles[index - 1];
                    var handleAfter = scope_Handles[index];
                    var eventHolders = [connect];

                    addClass(connect, options.cssClasses.draggable);

                    // When the range is fixed, the entire range can
                    // be dragged by the handles. The handle in the first
                    // origin will propagate the start event upward,
                    // but it needs to be bound manually on the other.
                    if (behaviour.fixed) {
                        eventHolders.push(handleBefore.children[0]);
                        eventHolders.push(handleAfter.children[0]);
                    }

                    eventHolders.forEach(function(eventHolder) {
                        attachEvent(actions.start, eventHolder, eventStart, {
                            handles: [handleBefore, handleAfter],
                            handleNumbers: [index - 1, index]
                        });
                    });
                });
            }
        }

        // Attach an event to this slider, possibly including a namespace
        function bindEvent(namespacedEvent, callback) {
            scope_Events[namespacedEvent] = scope_Events[namespacedEvent] || [];
            scope_Events[namespacedEvent].push(callback);

            // If the event bound is 'update,' fire it immediately for all handles.
            if (namespacedEvent.split(".")[0] === "update") {
                scope_Handles.forEach(function(a, index) {
                    fireEvent("update", index);
                });
            }
        }

        // Undo attachment of event
        function removeEvent(namespacedEvent) {
            var event = namespacedEvent && namespacedEvent.split(".")[0];
            var namespace = event && namespacedEvent.substring(event.length);

            Object.keys(scope_Events).forEach(function(bind) {
                var tEvent = bind.split(".")[0];
                var tNamespace = bind.substring(tEvent.length);

                if ((!event || event === tEvent) && (!namespace || namespace === tNamespace)) {
                    delete scope_Events[bind];
                }
            });
        }

        // External event handling
        function fireEvent(eventName, handleNumber, tap) {
            Object.keys(scope_Events).forEach(function(targetEvent) {
                var eventType = targetEvent.split(".")[0];

                if (eventName === eventType) {
                    scope_Events[targetEvent].forEach(function(callback) {
                        callback.call(
                            // Use the slider public API as the scope ('this')
                            scope_Self,
                            // Return values as array, so arg_1[arg_2] is always valid.
                            scope_Values.map(options.format.to),
                            // Handle index, 0 or 1
                            handleNumber,
                            // Un-formatted slider values
                            scope_Values.slice(),
                            // Event is fired by tap, true or false
                            tap || false,
                            // Left offset of the handle, in relation to the slider
                            scope_Locations.slice(),
                            // add the slider public API to an accessible parameter when this is unavailable
                            scope_Self
                        );
                    });
                }
            });
        }

        // Split out the handle positioning logic so the Move event can use it, too
        function checkHandlePosition(reference, handleNumber, to, lookBackward, lookForward, getValue) {
            var distance;

            // For sliders with multiple handles, limit movement to the other handle.
            // Apply the margin option by adding it to the handle positions.
            if (scope_Handles.length > 1 && !options.events.unconstrained) {
                if (lookBackward && handleNumber > 0) {
                    distance = scope_Spectrum.getAbsoluteDistance(reference[handleNumber - 1], options.margin, 0);
                    to = Math.max(to, distance);
                }

                if (lookForward && handleNumber < scope_Handles.length - 1) {
                    distance = scope_Spectrum.getAbsoluteDistance(reference[handleNumber + 1], options.margin, 1);
                    to = Math.min(to, distance);
                }
            }

            // The limit option has the opposite effect, limiting handles to a
            // maximum distance from another. Limit must be > 0, as otherwise
            // handles would be unmovable.
            if (scope_Handles.length > 1 && options.limit) {
                if (lookBackward && handleNumber > 0) {
                    distance = scope_Spectrum.getAbsoluteDistance(reference[handleNumber - 1], options.limit, 0);
                    to = Math.min(to, distance);
                }

                if (lookForward && handleNumber < scope_Handles.length - 1) {
                    distance = scope_Spectrum.getAbsoluteDistance(reference[handleNumber + 1], options.limit, 1);
                    to = Math.max(to, distance);
                }
            }

            // The padding option keeps the handles a certain distance from the
            // edges of the slider. Padding must be > 0.
            if (options.padding) {
                if (handleNumber === 0) {
                    distance = scope_Spectrum.getAbsoluteDistance(0, options.padding[0], 0);
                    to = Math.max(to, distance);
                }

                if (handleNumber === scope_Handles.length - 1) {
                    distance = scope_Spectrum.getAbsoluteDistance(100, options.padding[1], 1);
                    to = Math.min(to, distance);
                }
            }

            to = scope_Spectrum.getStep(to);

            // Limit percentage to the 0 - 100 range
            to = limit(to);

            // Return false if handle can't move
            if (to === reference[handleNumber] && !getValue) {
                return false;
            }

            return to;
        }

        // Uses slider orientation to create CSS rules. a = base value;
        function inRuleOrder(v, a) {
            var o = options.ort;
            return (o ? a : v) + ", " + (o ? v : a);
        }

        // Moves handle(s) by a percentage
        // (bool, % to move, [% where handle started, ...], [index in scope_Handles, ...])
        function moveHandles(upward, proposal, locations, handleNumbers) {
            var proposals = locations.slice();

            var b = [!upward, upward];
            var f = [upward, !upward];

            // Copy handleNumbers so we don't change the dataset
            handleNumbers = handleNumbers.slice();

            // Check to see which handle is 'leading'.
            // If that one can't move the second can't either.
            if (upward) {
                handleNumbers.reverse();
            }

            // Step 1: get the maximum percentage that any of the handles can move
            if (handleNumbers.length > 1) {
                handleNumbers.forEach(function(handleNumber, o) {
                    var to = checkHandlePosition(
                        proposals,
                        handleNumber,
                        proposals[handleNumber] + proposal,
                        b[o],
                        f[o],
                        false
                    );

                    // Stop if one of the handles can't move.
                    if (to === false) {
                        proposal = 0;
                    } else {
                        proposal = to - proposals[handleNumber];
                        proposals[handleNumber] = to;
                    }
                });
            }

            // If using one handle, check backward AND forward
            else {
                b = f = [true];
            }

            var state = false;

            // Step 2: Try to set the handles with the found percentage
            handleNumbers.forEach(function(handleNumber, o) {
                state = setHandle(handleNumber, locations[handleNumber] + proposal, b[o], f[o]) || state;
            });

            // Step 3: If a handle moved, fire events
            if (state) {
                handleNumbers.forEach(function(handleNumber) {
                    fireEvent("update", handleNumber);
                    fireEvent("slide", handleNumber);
                });
            }
        }

        // Takes a base value and an offset. This offset is used for the connect bar size.
        // In the initial design for this feature, the origin element was 1% wide.
        // Unfortunately, a rounding bug in Chrome makes it impossible to implement this feature
        // in this manner: https://bugs.chromium.org/p/chromium/issues/detail?id=798223
        function transformDirection(a, b) {
            return options.dir ? 100 - a - b : a;
        }

        // Updates scope_Locations and scope_Values, updates visual state
        function updateHandlePosition(handleNumber, to) {
            // Update locations.
            scope_Locations[handleNumber] = to;

            // Convert the value to the slider stepping/range.
            scope_Values[handleNumber] = scope_Spectrum.fromStepping(to);

            var translation = 10 * (transformDirection(to, 0) - scope_DirOffset);
            var translateRule = "translate(" + inRuleOrder(translation + "%", "0") + ")";

            scope_Handles[handleNumber].style[options.transformRule] = translateRule;

            updateConnect(handleNumber);
            updateConnect(handleNumber + 1);
        }

        // Handles before the slider middle are stacked later = higher,
        // Handles after the middle later is lower
        // [[7] [8] .......... | .......... [5] [4]
        function setZindex() {
            scope_HandleNumbers.forEach(function(handleNumber) {
                var dir = scope_Locations[handleNumber] > 50 ? -1 : 1;
                var zIndex = 3 + (scope_Handles.length + dir * handleNumber);
                scope_Handles[handleNumber].style.zIndex = zIndex;
            });
        }

        // Test suggested values and apply margin, step.
        // if exactInput is true, don't run checkHandlePosition, then the handle can be placed in between steps (#436)
        function setHandle(handleNumber, to, lookBackward, lookForward, exactInput) {
            if (!exactInput) {
                to = checkHandlePosition(scope_Locations, handleNumber, to, lookBackward, lookForward, false);
            }

            if (to === false) {
                return false;
            }

            updateHandlePosition(handleNumber, to);

            return true;
        }

        // Updates style attribute for connect nodes
        function updateConnect(index) {
            // Skip connects set to false
            if (!scope_Connects[index]) {
                return;
            }

            var l = 0;
            var h = 100;

            if (index !== 0) {
                l = scope_Locations[index - 1];
            }

            if (index !== scope_Connects.length - 1) {
                h = scope_Locations[index];
            }

            // We use two rules:
            // 'translate' to change the left/top offset;
            // 'scale' to change the width of the element;
            // As the element has a width of 100%, a translation of 100% is equal to 100% of the parent (.noUi-base)
            var connectWidth = h - l;
            var translateRule = "translate(" + inRuleOrder(transformDirection(l, connectWidth) + "%", "0") + ")";
            var scaleRule = "scale(" + inRuleOrder(connectWidth / 100, "1") + ")";

            scope_Connects[index].style[options.transformRule] = translateRule + " " + scaleRule;
        }

        // Parses value passed to .set method. Returns current value if not parse-able.
        function resolveToValue(to, handleNumber) {
            // Setting with null indicates an 'ignore'.
            // Inputting 'false' is invalid.
            if (to === null || to === false || to === undefined) {
                return scope_Locations[handleNumber];
            }

            // If a formatted number was passed, attempt to decode it.
            if (typeof to === "number") {
                to = String(to);
            }

            to = options.format.from(to);
            to = scope_Spectrum.toStepping(to);

            // If parsing the number failed, use the current value.
            if (to === false || isNaN(to)) {
                return scope_Locations[handleNumber];
            }

            return to;
        }

        // Set the slider value.
        function valueSet(input, fireSetEvent, exactInput) {
            var values = asArray(input);
            var isInit = scope_Locations[0] === undefined;

            // Event fires by default
            fireSetEvent = fireSetEvent === undefined ? true : !!fireSetEvent;

            // Animation is optional.
            // Make sure the initial values were set before using animated placement.
            if (options.animate && !isInit) {
                addClassFor(scope_Target, options.cssClasses.tap, options.animationDuration);
            }

            // First pass, without lookAhead but with lookBackward. Values are set from left to right.
            scope_HandleNumbers.forEach(function(handleNumber) {
                setHandle(handleNumber, resolveToValue(values[handleNumber], handleNumber), true, false, exactInput);
            });

            var i = scope_HandleNumbers.length === 1 ? 0 : 1;

            // Secondary passes. Now that all base values are set, apply constraints.
            // Iterate all handles to ensure constraints are applied for the entire slider (Issue #1009)
            for (; i < scope_HandleNumbers.length; ++i) {
                scope_HandleNumbers.forEach(function(handleNumber) {
                    setHandle(handleNumber, scope_Locations[handleNumber], true, true, exactInput);
                });
            }

            setZindex();

            scope_HandleNumbers.forEach(function(handleNumber) {
                fireEvent("update", handleNumber);

                // Fire the event only for handles that received a new value, as per #579
                if (values[handleNumber] !== null && fireSetEvent) {
                    fireEvent("set", handleNumber);
                }
            });
        }

        // Reset slider to initial values
        function valueReset(fireSetEvent) {
            valueSet(options.start, fireSetEvent);
        }

        // Set value for a single handle
        function valueSetHandle(handleNumber, value, fireSetEvent, exactInput) {
            // Ensure numeric input
            handleNumber = Number(handleNumber);

            if (!(handleNumber >= 0 && handleNumber < scope_HandleNumbers.length)) {
                throw new Error("noUiSlider (" + VERSION + "): invalid handle number, got: " + handleNumber);
            }

            // Look both backward and forward, since we don't want this handle to "push" other handles (#960);
            // The exactInput argument can be used to ignore slider stepping (#436)
            setHandle(handleNumber, resolveToValue(value, handleNumber), true, true, exactInput);

            fireEvent("update", handleNumber);

            if (fireSetEvent) {
                fireEvent("set", handleNumber);
            }
        }

        // Get the slider value.
        function valueGet() {
            var values = scope_Values.map(options.format.to);

            // If only one handle is used, return a single value.
            if (values.length === 1) {
                return values[0];
            }

            return values;
        }

        // Removes classes from the root and empties it.
        function destroy() {
            for (var key in options.cssClasses) {
                if (!options.cssClasses.hasOwnProperty(key)) {
                    continue;
                }
                removeClass(scope_Target, options.cssClasses[key]);
            }

            while (scope_Target.firstChild) {
                scope_Target.removeChild(scope_Target.firstChild);
            }

            delete scope_Target.noUiSlider;
        }

        function getNextStepsForHandle(handleNumber) {
            var location = scope_Locations[handleNumber];
            var nearbySteps = scope_Spectrum.getNearbySteps(location);
            var value = scope_Values[handleNumber];
            var increment = nearbySteps.thisStep.step;
            var decrement = null;

            // If snapped, directly use defined step value
            if (options.snap) {
                return [
                    value - nearbySteps.stepBefore.startValue || null,
                    nearbySteps.stepAfter.startValue - value || null
                ];
            }

            // If the next value in this step moves into the next step,
            // the increment is the start of the next step - the current value
            if (increment !== false) {
                if (value + increment > nearbySteps.stepAfter.startValue) {
                    increment = nearbySteps.stepAfter.startValue - value;
                }
            }

            // If the value is beyond the starting point
            if (value > nearbySteps.thisStep.startValue) {
                decrement = nearbySteps.thisStep.step;
            } else if (nearbySteps.stepBefore.step === false) {
                decrement = false;
            }

            // If a handle is at the start of a step, it always steps back into the previous step first
            else {
                decrement = value - nearbySteps.stepBefore.highestStep;
            }

            // Now, if at the slider edges, there is no in/decrement
            if (location === 100) {
                increment = null;
            } else if (location === 0) {
                decrement = null;
            }

            // As per #391, the comparison for the decrement step can have some rounding issues.
            var stepDecimals = scope_Spectrum.countStepDecimals();

            // Round per #391
            if (increment !== null && increment !== false) {
                increment = Number(increment.toFixed(stepDecimals));
            }

            if (decrement !== null && decrement !== false) {
                decrement = Number(decrement.toFixed(stepDecimals));
            }

            return [decrement, increment];
        }

        // Get the current step size for the slider.
        function getNextSteps() {
            return scope_HandleNumbers.map(getNextStepsForHandle);
        }

        // Updateable: margin, limit, padding, step, range, animate, snap
        function updateOptions(optionsToUpdate, fireSetEvent) {
            // Spectrum is created using the range, snap, direction and step options.
            // 'snap' and 'step' can be updated.
            // If 'snap' and 'step' are not passed, they should remain unchanged.
            var v = valueGet();

            var updateAble = [
                "margin",
                "limit",
                "padding",
                "range",
                "animate",
                "snap",
                "step",
                "format",
                "pips",
                "tooltips"
            ];

            // Only change options that we're actually passed to update.
            updateAble.forEach(function(name) {
                // Check for undefined. null removes the value.
                if (optionsToUpdate[name] !== undefined) {
                    originalOptions[name] = optionsToUpdate[name];
                }
            });

            var newOptions = testOptions(originalOptions);

            // Load new options into the slider state
            updateAble.forEach(function(name) {
                if (optionsToUpdate[name] !== undefined) {
                    options[name] = newOptions[name];
                }
            });

            scope_Spectrum = newOptions.spectrum;

            // Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)
            options.margin = newOptions.margin;
            options.limit = newOptions.limit;
            options.padding = newOptions.padding;

            // Update pips, removes existing.
            if (options.pips) {
                pips(options.pips);
            } else {
                removePips();
            }

            // Update tooltips, removes existing.
            if (options.tooltips) {
                tooltips();
            } else {
                removeTooltips();
            }

            // Invalidate the current positioning so valueSet forces an update.
            scope_Locations = [];
            valueSet(optionsToUpdate.start || v, fireSetEvent);
        }

        // Initialization steps
        function setupSlider() {
            // Create the base element, initialize HTML and set classes.
            // Add handles and connect elements.
            scope_Base = addSlider(scope_Target);

            addElements(options.connect, scope_Base);

            // Attach user events.
            bindSliderEvents(options.events);

            // Use the public value method to set the start values.
            valueSet(options.start);

            if (options.pips) {
                pips(options.pips);
            }

            if (options.tooltips) {
                tooltips();
            }

            aria();
        }

        setupSlider();

        // noinspection JSUnusedGlobalSymbols
        scope_Self = {
            destroy: destroy,
            steps: getNextSteps,
            on: bindEvent,
            off: removeEvent,
            get: valueGet,
            set: valueSet,
            setHandle: valueSetHandle,
            reset: valueReset,
            // Exposed for unit testing, don't use this in your application.
            __moveHandles: function(a, b, c) {
                moveHandles(a, b, scope_Locations, c);
            },
            options: originalOptions, // Issue #600, #678
            updateOptions: updateOptions,
            target: scope_Target, // Issue #597
            removePips: removePips,
            removeTooltips: removeTooltips,
            getTooltips: function() {
                return scope_Tooltips;
            },
            getOrigins: function() {
                return scope_Handles;
            },
            pips: pips // Issue #594
        };

        return scope_Self;
    }

    // Run the standard initializer
    function initialize(target, originalOptions) {
        if (!target || !target.nodeName) {
            throw new Error("noUiSlider (" + VERSION + "): create requires a single element, got: " + target);
        }

        // Throw an error if the slider was already initialized.
        if (target.noUiSlider) {
            throw new Error("noUiSlider (" + VERSION + "): Slider was already initialized.");
        }

        // Test the options and create the slider environment;
        var options = testOptions(originalOptions, target);
        var api = scope(target, options, originalOptions);

        target.noUiSlider = api;

        return api;
    }

    // Use an object instead of a function for future expandability;
    return {
        // Exposed for unit testing, don't use this in your application.
        __spectrum: Spectrum,
        version: VERSION,
        // A reference to the default classes, allows global changes.
        // Use the cssClasses option for changes to one slider.
        cssClasses: cssClasses,
        create: initialize
    };
});
// source --> https://gartengestaltung-gar10.at/wp-content/plugins/before-after-image-slider-lite/ImageComparisonSlider.js?ver=2.2.0 
window.Scrobbleme = {
    widthToScaleUp: 300,
    methods: ['overlay'],
    versions: {
        'ImageComparisonSlider': '1.12'
    }
};

Scrobbleme.ImageComparisonSlider = function (domNode, jQuery) {
    let slide, slider;

    if (jQuery === undefined) {
        jQuery = window.jQuery;
    }

    this.domNode = jQuery(domNode);
    this.domNode.originalWidth = this.domNode[0].style.width;
    this.domNode.find('.images .left').width(this.domNode.width() / 2);
    this.domNode.find('.images img').width(this.domNode.width());
    slide = this.slide_overlay;
    slider = domNode.querySelector('.slider');
    noUiSlider.create(slider, {
        start: 50,
        animate: false,
        range: {
            'min': 0,
            'max': 100
        }
    });
    slider.noUiSlider.on('slide', function (value) {
        domNode.dataset.icSliderValue = value[0];
        slide.bind(this)(null, {value: value[0]});
    }.bind(this));
    slide.bind(this)(null, {value: 50});
    this.resize_callback.bind(this)({data: {'slider': slider, 'slide': slide, 'element': this}});

    jQuery(window).resize({'slider': slider, 'slide': slide, 'element': this}, this.resize_callback);
    this.domNode.find('.images').click({'slider': slider, 'slide': slide}, this.clickable_callback.bind(this));

    /** Extras */
    if (this.domNode.hasClass('hover') && this.supports_hover()) {
        this.domNode.find('.images').mousemove({
            'slider': slider,
            'slide': slide
        }, this.throttle(this.clickable_callback.bind(this), 15));
    }
}
;

Scrobbleme.ImageComparisonSlider.prototype = {
    slide_overlay: function (event, ui) {
        this.domNode.find('.images .left').width(ui.value * this.domNode.width() / 100);
    },

    clickable_callback: function (event) {
        let newValue = (event.pageX - event.currentTarget.getBoundingClientRect().left) / event.currentTarget.clientWidth * 100;
        jQuery.proxy(event.data.slide, this)(null, {value: newValue});
        event.data.slider.noUiSlider.set(newValue);
    },

    resize_callback: function (options) {
        let data = options.data;
        let domNode = data.element.domNode;
        if (domNode.width() <= Scrobbleme.widthToScaleUp && !domNode.modeChanged) {
            domNode.modeChanged = true;
            domNode[0].style.width = '100%';
            domNode.upperSizeBound = domNode.width();
        } else if (domNode.modeChanged && domNode.width() > domNode.upperSizeBound) {
            domNode[0].style.width = domNode.originalWidth;
            domNode.modeChanged = false;
        }

        domNode.find('.images img').height('auto');
        if (domNode.hasClass('overlay')) {
            domNode.find('.images .left').width(domNode.width() / 2);
            domNode.find('.images img').width(domNode.width());
        }
        let currentValue = data.slider.noUiSlider.get();
        jQuery.proxy(data.slide, data.element)(null, {value: currentValue});
    },

    /**
     * Returns true, if the device supports "hover" in the plugins sense.
     */
    supports_hover: function () {
        return !navigator.userAgent.match(/(iPod|iPhone|iPad|Android|Windows\sPhone|BlackBerry)/i);
    },

    // Thanks: http://sampsonblog.com/749/simple-throttle-function
    throttle: function (callback, threshhold) {
        let wait = false;
        return function (event) {
            if (!wait) {
                callback(event);
                wait = true;
                setTimeout(function () {
                    wait = false;
                }, threshhold);
            }
        }
    }
};

jQuery(function (jQuery) {
    document.querySelectorAll('.image-comparator').forEach(
        element => new Scrobbleme.ImageComparisonSlider(element, jQuery)
    );
});