
/*! lozad.js - v1.16.0 - 2020-09-10
* https://github.com/ApoorvSaxena/lozad.js
* Copyright (c) 2020 Apoorv Saxena; Licensed MIT */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.lozad=e()}(this,function(){"use strict";
/**
   * Detect IE browser
   * @const {boolean}
   * @private
   */var g="undefined"!=typeof document&&document.documentMode,v=function(t){return window&&window[t]},h=["data-iesrc","data-alt","data-src","data-srcset","data-background-image","data-toggle-class"],p={rootMargin:"0px",threshold:0,enableAutoReload:!1,load:function(t){if("picture"===t.nodeName.toLowerCase()){var e=t.querySelector("img"),r=!1;null===e&&(e=document.createElement("img"),r=!0),g&&t.getAttribute("data-iesrc")&&(e.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(e.alt=t.getAttribute("data-alt")),r&&t.append(e)}if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var a=t.children,o=void 0,i=0;i<=a.length-1;i++)(o=a[i].getAttribute("data-src"))&&(a[i].src=o);t.load()}t.getAttribute("data-poster")&&(t.poster=t.getAttribute("data-poster")),t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset"));var n=",";if(t.getAttribute("data-background-delimiter")&&(n=t.getAttribute("data-background-delimiter")),t.getAttribute("data-background-image"))t.style.backgroundImage="url('"+t.getAttribute("data-background-image").split(n).join("'),url('")+"')";else if(t.getAttribute("data-background-image-set")){var d=t.getAttribute("data-background-image-set").split(n),u=d[0].substr(0,d[0].indexOf(" "))||d[0];// Substring before ... 1x
u=-1===u.indexOf("url(")?"url("+u+")":u,1===d.length?t.style.backgroundImage=u:t.setAttribute("style",(t.getAttribute("style")||"")+"background-image: "+u+"; background-image: -webkit-image-set("+d+"); background-image: image-set("+d+")")}t.getAttribute("data-toggle-class")&&t.classList.toggle(t.getAttribute("data-toggle-class"))},loaded:function(){}};
/**
   *
   * @param {string} type
   *
   */function k(t){t.setAttribute("data-loaded",!0)}var y=function(t){return"true"===t.getAttribute("data-loaded")},w=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)};return function(){var r,a,e,o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=Object.assign({},p,t),n=i.root,d=i.rootMargin,u=i.threshold,g=i.enableAutoReload,s=i.load,c=i.loaded,l=void 0,b=void 0;v("IntersectionObserver")&&(l=new IntersectionObserver((r=s,a=c,function(t,e){t.forEach(function(t){(0<t.intersectionRatio||t.isIntersecting)&&(e.unobserve(t.target),y(t.target)||(r(t.target),k(t.target),a(t.target)))})}),{root:n,rootMargin:d,threshold:u})),v("MutationObserver")&&g&&(b=new MutationObserver((e=s,function(t){t.forEach(function(t){y(t.target)&&"attributes"===t.type&&-1<h.indexOf(t.attributeName)&&e(t.target)})})));for(var f,m=w(o,n),A=0;A<m.length;A++)(f=m[A]).getAttribute("data-placeholder-background")&&(f.style.background=f.getAttribute("data-placeholder-background"));return{observe:function(){for(var t=w(o,n),e=0;e<t.length;e++)y(t[e])||(l?(b&&g&&b.observe(t[e],{subtree:!0,attributes:!0,attributeFilter:h}),l.observe(t[e])):(s(t[e]),k(t[e]),c(t[e])))},triggerLoad:function(t){y(t)||(s(t),k(t),c(t))},observer:l,mutationObserver:b}}});
/*!
 * GSAP 3.8.0
 * https://greensock.com
 * 
 * @license Copyright 2021, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t){return"string"==typeof t}function p(t){return"function"==typeof t}function q(t){return"number"==typeof t}function r(t){return void 0===t}function s(t){return"object"==typeof t}function t(t){return!1!==t}function u(){return"undefined"!=typeof window}function v(t){return p(t)||o(t)}function M(t){return(h=mt(t,ot))&&oe}function N(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function O(t,e){return!e&&console.warn(t)}function P(t,e){return t&&(ot[t]=e)&&h&&(h[t]=e)||ot}function Q(){return 0}function $(t){var e,r,i=t[0];if(s(i)||p(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=ct.length;r--&&!ct[r].targetTest(i););e=ct[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Lt(t[r],e)))||t.splice(r,1);return t}function _(t){return t._gsap||$(xt(t))[0]._gsap}function aa(t,e,i){return(i=t[e])&&p(i)?t[e]():r(i)&&t.getAttribute&&t.getAttribute(e)||i}function ba(t,e){return(t=t.split(",")).forEach(e)||t}function ca(t){return Math.round(1e5*t)/1e5||0}function da(t){return Math.round(1e7*t)/1e7||0}function ea(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}function fa(){var t,e,r=ht.length,i=ht.slice(0);for(lt={},t=ht.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function ga(t,e,r,i){ht.length&&fa(),t.render(e,r,i),ht.length&&fa()}function ha(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(at).length<2?e:o(t)?t.trim():t}function ia(t){return t}function ja(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function ka(t,e){for(var r in e)r in t||"duration"===r||"ease"===r||(t[r]=e[r])}function ma(t,e){for(var r in e)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=s(e[r])?ma(t[r]||(t[r]={}),e[r]):e[r]);return t}function na(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function oa(e){var r=e.parent||I,i=e.keyframes?ka:ja;if(t(e.inherit))for(;r;)i(e,r.vars.defaults),r=r.parent||r._dp;return e}function ra(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function sa(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function ta(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function wa(t){return t._repeat?gt(t._tTime,t=t.duration()+t._rDelay)*t:0}function ya(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function za(t){return t._end=da(t._start+(t._tDur/Math.abs(t._ts||t._rts||X)||0))}function Aa(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=da(r._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),za(t),r._dirty||ta(r,t)),t}function Ba(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=ya(t.rawTime(),e),(!e._dur||Tt(0,e.totalDuration(),r)-e._tTime>X)&&e.render(r,!0)),ta(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-X}}function Ca(t,e,r,i){return e.parent&&sa(e),e._start=da((q(r)?r:r||t!==I?bt(t,r,e):t._time)+e._delay),e._end=da(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function _addLinkedListItem(t,e,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var a,s=t[i];if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),vt(e)||(t._recent=e),i||Ba(t,e),t}function Da(t,e){return(ot.ScrollTrigger||N("scrollTrigger",e))&&ot.ScrollTrigger.create(e,t)}function Ea(t,e,r,i){return jt(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==St.frame?(ht.push(t),t._lazy=[e,i],1):void 0:1}function Ja(t,e,r,i){var n=t._repeat,a=da(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=a/t._dur),t._dur=a,t._tDur=n?n<0?1e10:da(a*(n+1)+t._rDelay*n):a,s&&!i?Aa(t,t._tTime=t._tDur*s):t.parent&&za(t),r||ta(t.parent,t),t}function Ka(t){return t instanceof Nt?ta(t):Ja(t,t._dur)}function Na(e,r,i){var n,a,s=q(r[1]),o=(s?2:1)+(e<2?0:1),u=r[o];if(s&&(u.duration=r[1]),u.parent=i,e){for(n=u,a=i;a&&!("immediateRender"in n);)n=a.vars.defaults||{},a=t(a.vars.inherit)&&a.parent;u.immediateRender=t(n.immediateRender),e<2?u.runBackwards=1:u.startAt=r[o-1]}return new Vt(r[0],u,r[1+o])}function Oa(t,e){return t||0===t?e(t):e}function Qa(t){if("string"!=typeof t)return"";var e=st.exec(t);return e?t.substr(e.index+e[0].length):""}function Ta(t,e){return t&&s(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&s(t[0]))&&!t.nodeType&&t!==i}function Xa(t){return t.sort(function(){return.5-Math.random()})}function Ya(t){if(p(t))return t;var c=s(t)?t:{each:t},_=Bt(c.ease),m=c.from||0,g=parseFloat(c.base)||0,v={},e=0<m&&m<1,y=isNaN(m)||e,b=c.axis,T=m,w=m;return o(m)?T=w={center:.5,edges:.5,end:1}[m]||0:!e&&y&&(T=m[0],w=m[1]),function(t,e,r){var i,n,a,s,o,u,h,l,f,d=(r||c).length,p=v[d];if(!p){if(!(f="auto"===c.grid?0:(c.grid||[1,j])[1])){for(h=-j;h<(h=r[f++].getBoundingClientRect().left)&&f<d;);f--}for(p=v[d]=[],i=y?Math.min(f,d)*T-.5:m%f,n=y?d*w/f-.5:m/f|0,l=j,u=h=0;u<d;u++)a=u%f-i,s=n-(u/f|0),p[u]=o=b?Math.abs("y"===b?s:a):W(a*a+s*s),h<o&&(h=o),o<l&&(l=o);"random"===m&&Xa(p),p.max=h-l,p.min=l,p.v=d=(parseFloat(c.amount)||parseFloat(c.each)*(d<f?d-1:b?"y"===b?d/f:f:Math.max(f,d/f))||0)*("edges"===m?-1:1),p.b=d<0?g-d:g,p.u=Qa(c.amount||c.each)||0,_=_&&d<0?Rt(_):_}return d=(p[t]-p.min)/p.max||0,da(p.b+(_?_(d):d)*p.v)+p.u}}function Za(r){var i=Math.pow(10,((r+"").split(".")[1]||"").length);return function(t){var e=Math.round(parseFloat(t)/r)*r*i;return(e-e%1)/i+(q(t)?0:Qa(t))}}function $a(u,t){var h,l,e=Z(u);return!e&&s(u)&&(h=e=u.radius||j,u.values?(u=xt(u.values),(l=!q(u[0]))&&(h*=h)):u=Za(u.increment)),Oa(t,e?p(u)?function(t){return l=u(t),Math.abs(l-t)<=h?l:t}:function(t){for(var e,r,i=parseFloat(l?t.x:t),n=parseFloat(l?t.y:0),a=j,s=0,o=u.length;o--;)(e=l?(e=u[o].x-i)*e+(r=u[o].y-n)*r:Math.abs(u[o]-i))<a&&(a=e,s=o);return s=!h||a<=h?u[s]:t,l||s===t||q(t)?s:s+Qa(t)}:Za(u))}function _a(t,e,r,i){return Oa(Z(t)?!e:!0===r?!!(r=0):!i,function(){return Z(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*i)/i})}function db(e,r,t){return Oa(t,function(t){return e[~~r(t)]})}function gb(t){for(var e,r,i,n,a=0,s="";~(e=t.indexOf("random(",a));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?at:tt),s+=t.substr(a,e-a)+_a(n?r:+r[0],n?0:+r[1],+r[2]||1e-5),a=i+1;return s+t.substr(a,t.length-a)}function jb(t,e,r){var i,n,a,s=t.labels,o=j;for(i in s)(n=s[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(a=i,o=n);return a}function lb(t){return sa(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&Mt(t,"onInterrupt"),t}function qb(t,e,r){return(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*kt+.5|0}function rb(t,e,r){var i,n,a,s,o,u,h,l,f,d,p=t?q(t)?[t>>16,t>>8&kt,t&kt]:0:At.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),At[t])p=At[t];else if("#"===t.charAt(0)){if(t.length<6&&(t="#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(a=t.charAt(3))+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&kt,p&kt,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&kt,t&kt]}else if("hsl"===t.substr(0,3))if(p=d=t.match(tt),e){if(~t.indexOf("="))return p=t.match(et),r&&p.length<4&&(p[3]=1),p}else s=+p[0]%360/360,o=p[1]/100,i=2*(u=p[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3<p.length&&(p[3]*=1),p[0]=qb(s+1/3,i,n),p[1]=qb(s,i,n),p[2]=qb(s-1/3,i,n);else p=t.match(tt)||At.transparent;p=p.map(Number)}return e&&!d&&(i=p[0]/kt,n=p[1]/kt,a=p[2]/kt,u=((h=Math.max(i,n,a))+(l=Math.min(i,n,a)))/2,h===l?s=o=0:(f=h-l,o=.5<u?f/(2-h-l):f/(h+l),s=h===i?(n-a)/f+(n<a?6:0):h===n?(a-i)/f+2:(i-n)/f+4,s*=60),p[0]=~~(s+.5),p[1]=~~(100*o+.5),p[2]=~~(100*u+.5)),r&&p.length<4&&(p[3]=1),p}function sb(t){var r=[],i=[],n=-1;return t.split(Pt).forEach(function(t){var e=t.match(rt)||[];r.push.apply(r,e),i.push(n+=e.length+1)}),r.c=i,r}function tb(t,e,r){var i,n,a,s,o="",u=(t+o).match(Pt),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map(function(t){return(t=rb(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(a=sb(t),(i=r.c).join(o)!==a.c.join(o)))for(s=(n=t.replace(Pt,"1").split(rt)).length-1;l<s;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+"0,0,0,0)":(a.length?a:u.length?u:r).shift());if(!n)for(s=(n=t.split(Pt)).length-1;l<s;l++)o+=n[l]+u[l];return o+n[s]}function wb(t){var e,r=t.join(" ");if(Pt.lastIndex=0,Pt.test(r))return e=Ct.test(r),t[1]=tb(t[1],e),t[0]=tb(t[0],e,sb(t[1])),!0}function Fb(t){var e=(t+"").split("("),r=zt[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[function _parseObjectInString(t){for(var e,r,i,n={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[s]=isNaN(i)?i.replace(Ft,"").trim():+i,s=r.substr(e+1).trim();return n}(e[1])]:function _valueInParentheses(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)}(t).split(",").map(ha)):zt._CE&&Et.test(t)?zt._CE("",t):r}function Hb(t,e){for(var r,i=t._first;i;)i instanceof Nt?Hb(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?Hb(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function Jb(t,e,r,i){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===i&&(i=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,a={easeIn:e,easeOut:r,easeInOut:i};return ba(t,function(t){for(var e in zt[t]=ot[t]=a,zt[n=t.toLowerCase()]=r,a)zt[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=zt[t+"."+e]=a[e]}),a}function Kb(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Lb(r,t,e){function Ql(t){return 1===t?1:i*Math.pow(2,-10*t)*H((t-a)*n)+1}var i=1<=t?t:1,n=(e||(r?.3:.45))/(t<1?t:1),a=n/U*(Math.asin(1/i)||0),s="out"===r?Ql:"in"===r?function(t){return 1-Ql(1-t)}:Kb(Ql);return n=U/n,s.config=function(t,e){return Lb(r,t,e)},s}function Mb(e,r){function Yl(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?Yl:"in"===e?function(t){return 1-Yl(1-t)}:Kb(Yl);return t.config=function(t){return Mb(e,t)},t}var B,I,i,n,a,h,l,f,d,c,m,g,y,b,T,w,x,k,A,C,S,D,z,E,F,R,Y={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},L={duration:.5,overwrite:!1,delay:0},j=1e8,X=1/j,U=2*Math.PI,J=U/4,V=0,W=Math.sqrt,G=Math.cos,H=Math.sin,K="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Z=Array.isArray,tt=/(?:-?\.?\d|\.)+/gi,et=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,rt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,it=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,nt=/[+-]=-?[.\d]+/,at=/[^,'"\[\]\s]+/gi,st=/[\d.+\-=]+(?:e[-+]\d*)*/i,ot={},ut={},ht=[],lt={},ft={},dt={},pt=30,ct=[],_t="",mt=function _merge(t,e){for(var r in e)t[r]=e[r];return t},gt=function _animationCycle(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},vt=function _isFromOrFromStart(t){var e=t.data;return"isFromStart"===e||"isStart"===e},yt={_start:0,endTime:Q,totalDuration:Q},bt=function _parsePosition(t,e,r){var i,n,a,s=t.labels,u=t._recent||yt,h=t.duration()>=j?u.endTime(!1):t._dur;return o(e)&&(isNaN(e)||e in s)?(n=e.charAt(0),a="%"===e.substr(-1),i=e.indexOf("="),"<"===n||">"===n?(0<=i&&(e=e.replace(/=/,"")),("<"===n?u._start:u.endTime(0<=u._repeat))+(parseFloat(e.substr(1))||0)*(a?(i<0?u:r).totalDuration()/100:1)):i<0?(e in s||(s[e]=h),s[e]):(n=parseFloat(e.charAt(i-1)+e.substr(i+1)),a&&r&&(n=n/100*(Z(r)?r[0]:r).totalDuration()),1<i?_parsePosition(t,e.substr(0,i-1),r)+n:h+n)):null==e?h:+e},Tt=function _clamp(t,e,r){return r<t?t:e<r?e:r},wt=[].slice,xt=function toArray(t,e,r){return!o(t)||r||!n&&Dt()?Z(t)?function _flatten(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){return o(t)&&!e||Ta(t,1)?r.push.apply(r,xt(t)):r.push(t)})||r}(t,r):Ta(t)?wt.call(t,0):t?[t]:[]:wt.call((e||a).querySelectorAll(t),0)},Ot=function mapRange(e,t,r,i,n){var a=t-e,s=i-r;return Oa(n,function(t){return r+((t-e)/a*s||0)})},Mt=function _callback(t,e,r){var i,n,a=t.vars,s=a[e];if(s)return i=a[e+"Params"],n=a.callbackScope||t,r&&ht.length&&fa(),i?s.apply(n,i):s.call(n)},kt=255,At={aqua:[0,kt,kt],lime:[0,kt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,kt],navy:[0,0,128],white:[kt,kt,kt],olive:[128,128,0],yellow:[kt,kt,0],orange:[kt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[kt,0,0],pink:[kt,192,203],cyan:[0,kt,kt],transparent:[kt,kt,kt,0]},Pt=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in At)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ct=/hsl[a]?\(/,St=(x=Date.now,k=500,A=33,C=x(),S=C,z=D=1e3/240,b={time:0,frame:0,tick:function tick(){Mk(!0)},deltaRatio:function deltaRatio(t){return T/(1e3/(t||60))},wake:function wake(){l&&(!n&&u()&&(i=n=window,a=i.document||{},ot.gsap=oe,(i.gsapVersions||(i.gsapVersions=[])).push(oe.version),M(h||i.GreenSockGlobals||!i.gsap&&i||{}),y=i.requestAnimationFrame),m&&b.sleep(),g=y||function(t){return setTimeout(t,z-1e3*b.time+1|0)},c=1,Mk(2))},sleep:function sleep(){(y?i.cancelAnimationFrame:clearTimeout)(m),c=0,g=Q},lagSmoothing:function lagSmoothing(t,e){k=t||1e8,A=Math.min(e,k,0)},fps:function fps(t){D=1e3/(t||240),z=1e3*b.time+D},add:function add(t){E.indexOf(t)<0&&E.push(t),Dt()},remove:function remove(t){var e;~(e=E.indexOf(t))&&E.splice(e,1)&&e<=w&&w--},_listeners:E=[]}),Dt=function _wake(){return!c&&St.wake()},zt={},Et=/^[\d.\-M][\d.\-,\s]/,Ft=/["']/g,Rt=function _invertEase(e){return function(t){return 1-e(1-t)}},Bt=function _parseEase(t,e){return t&&(p(t)?t:zt[t]||Fb(t))||e};function Mk(t){var e,r,i,n,a=x()-S,s=!0===t;if(k<a&&(C+=a-A),(0<(e=(i=(S+=a)-C)-z)||s)&&(n=++b.frame,T=i-1e3*b.time,b.time=i/=1e3,z+=e+(D<=e?4:D-e),r=1),s||(m=g(Mk)),r)for(w=0;w<E.length;w++)E[w](i,T,n,t)}function nm(t){return t<R?F*t*t:t<.7272727272727273?F*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?F*(t-=2.25/2.75)*t+.9375:F*Math.pow(t-2.625/2.75,2)+.984375}ba("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Jb(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),zt.Linear.easeNone=zt.none=zt.Linear.easeIn,Jb("Elastic",Lb("in"),Lb("out"),Lb()),F=7.5625,R=1/2.75,Jb("Bounce",function(t){return 1-nm(1-t)},nm),Jb("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),Jb("Circ",function(t){return-(W(1-t*t)-1)}),Jb("Sine",function(t){return 1===t?1:1-G(t*J)}),Jb("Back",Mb("in"),Mb("out"),Mb()),zt.SteppedEase=zt.steps=ot.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*Tt(0,.99999999,t)|0)+n)*r}}},L.ease=zt["quad.out"],ba("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return _t+=t+","+t+"Params,"});var It,Lt=function GSCache(t,e){this.id=V++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:aa,this.set=e?e.getSetter:Kt},qt=((It=Animation.prototype).delay=function delay(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},It.duration=function duration(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},It.totalDuration=function totalDuration(t){return arguments.length?(this._dirty=0,Ja(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},It.totalTime=function totalTime(t,e){if(Dt(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Aa(this,t),!r._dp||r.parent||Ba(r,this);r&&r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&Ca(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===X||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),ga(this,t,e)),this},It.time=function time(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+wa(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},It.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},It.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+wa(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},It.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?gt(this._tTime,r)+1:1},It.timeScale=function timeScale(t){if(!arguments.length)return this._rts===-X?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?ya(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-X?0:this._rts,function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent}(this.totalTime(Tt(-this._delay,this._tDur,e),!0)),za(this),this},It.paused=function paused(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Dt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==X&&(this._tTime-=X)))),this):this._ps},It.startTime=function startTime(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||Ca(e,this,t-this._delay),this}return this._start},It.endTime=function endTime(e){return this._start+(t(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},It.rawTime=function rawTime(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ya(e.rawTime(t),this):this._tTime:this._tTime},It.globalTime=function globalTime(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return r},It.repeat=function repeat(t){return arguments.length?(this._repeat=t===1/0?-2:t,Ka(this)):-2===this._repeat?1/0:this._repeat},It.repeatDelay=function repeatDelay(t){if(arguments.length){var e=this._time;return this._rDelay=t,Ka(this),e?this.time(e):this}return this._rDelay},It.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},It.seek=function seek(e,r){return this.totalTime(bt(this,e),t(r))},It.restart=function restart(e,r){return this.play().totalTime(e?-this._delay:0,t(r))},It.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},It.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},It.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},It.resume=function resume(){return this.paused(!1)},It.reversed=function reversed(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-X:0)),this):this._rts<0},It.invalidate=function invalidate(){return this._initted=this._act=0,this._zTime=-X,this},It.isActive=function isActive(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-X))},It.eventCallback=function eventCallback(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},It.then=function then(t){var i=this;return new Promise(function(e){function En(){var t=i.then;i.then=null,p(r)&&(r=r(i))&&(r.then||r===i)&&(i.then=t),e(r),i.then=t}var r=p(t)?t:ia;i._initted&&1===i.totalProgress()&&0<=i._ts||!i._tTime&&i._ts<0?En():i._prom=En})},It.kill=function kill(){lb(this)},Animation);function Animation(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Ja(this,+t.duration,1,1),this.data=t.data,c||St.wake()}ja(qt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-X,_prom:0,_ps:!1,_rts:1});var Nt=function(n){function Timeline(e,r){var i;return void 0===e&&(e={}),(i=n.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=t(e.sortChildren),I&&Ca(e.parent||I,_assertThisInitialized(i),r),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&Da(_assertThisInitialized(i),e.scrollTrigger),i}_inheritsLoose(Timeline,n);var e=Timeline.prototype;return e.to=function to(t,e,r){return Na(0,arguments,this),this},e.from=function from(t,e,r){return Na(1,arguments,this),this},e.fromTo=function fromTo(t,e,r,i){return Na(2,arguments,this),this},e.set=function set(t,e,r){return e.duration=0,e.parent=this,oa(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Vt(t,e,bt(this,r),1),this},e.call=function call(t,e,r){return Ca(this,Vt.delayedCall(0,t,e),r)},e.staggerTo=function staggerTo(t,e,r,i,n,a,s){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new Vt(t,r,bt(this,n)),this},e.staggerFrom=function staggerFrom(e,r,i,n,a,s,o){return i.runBackwards=1,oa(i).immediateRender=t(i.immediateRender),this.staggerTo(e,r,i,n,a,s,o)},e.staggerFromTo=function staggerFromTo(e,r,i,n,a,s,o,u){return n.startAt=i,oa(n).immediateRender=t(n.immediateRender),this.staggerTo(e,r,n,a,s,o,u)},e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d,p,c,_=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=t<=0?0:da(t),y=this._zTime<0!=t<0&&(this._initted||!g);if(this!==I&&m<v&&0<=t&&(v=m),v!==this._tTime||r||y){if(_!==this._time&&g&&(v+=this._time-_,t+=this._time-_),i=v,f=this._start,u=!(l=this._ts),y&&(g||(_=this._zTime),!t&&e||(this._zTime=t)),this._repeat){if(p=this._yoyo,o=g+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(i=da(v%o),v===m?(s=this._repeat,i=g):((s=~~(v/o))&&s===v/o&&(i=g,s--),g<i&&(i=g)),d=gt(this._tTime,o),!_&&this._tTime&&d!==s&&(d=s),p&&1&s&&(i=g-i,c=1),s!==d&&!this._lock){var b=p&&1&d,T=b===(p&&1&s);if(s<d&&(b=!b),_=b?0:g,this._lock=1,this.render(_||(c?0:da(s*o)),e,!g)._lock=0,this._tTime=v,!e&&this.parent&&Mt(this,"onRepeat"),this.vars.repeatRefresh&&!c&&(this.invalidate()._lock=1),_&&_!==this._time||u!=!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(g=this._dur,m=this._tDur,T&&(this._lock=2,_=b?g:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!c&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Hb(this,c)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if(!i._dur&&"isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(!i._dur&&"isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,da(_),da(i)))&&(v-=i-(i=h._start)),this._tTime=v,this._time=i,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,_=0),!_&&i&&!e&&(Mt(this,"onStart"),this._tTime!==v))return this;if(_<=i&&0<=t)for(n=this._first;n;){if(a=n._next,(n._act||i>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=-X);break}}n=a}else{n=this._last;for(var w=t<0?t:i;n;){if(a=n._prev,(n._act||w<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(w-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(w-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=w?-X:X);break}}n=a}}if(h&&!e&&(this.pause(),h.render(_<=i?0:-X)._zTime=_<=i?1:-1,this._ts))return this._start=f,za(this),this.render(t,e,r);this._onUpdate&&!e&&Mt(this,"onUpdate",!0),(v===m&&m>=this.totalDuration()||!v&&_)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0<this._ts||!v&&this._ts<0)||sa(this,1),e||t<0&&!_||!v&&!_&&m||(Mt(this,v===m&&0<=t?"onComplete":"onReverseComplete",!0),!this._prom||v<m&&0<this.timeScale()||this._prom())))}return this},e.add=function add(t,e){var r=this;if(q(e)||(e=bt(this,e,t)),!(t instanceof qt)){if(Z(t))return t.forEach(function(t){return r.add(t,e)}),this;if(o(t))return this.addLabel(t,e);if(!p(t))return this;t=Vt.delayedCall(0,t)}return this!==t?Ca(this,t,e):this},e.getChildren=function getChildren(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-j);for(var n=[],a=this._first;a;)a._start>=i&&(a instanceof Vt?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},e.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function remove(t){return o(t)?this.removeLabel(t):p(t)?this.killTweensOf(t):(ra(this,t),t===this._recent&&(this._recent=this._last),ta(this))},e.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=da(St.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),n.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function addLabel(t,e){return this.labels[t]=bt(this,e),this},e.removeLabel=function removeLabel(t){return delete this.labels[t],this},e.addPause=function addPause(t,e,r){var i=Vt.delayedCall(0,e||Q,r);return i.data="isPause",this._hasPause=1,Ca(this,i,bt(this,t))},e.removePause=function removePause(t){var e=this._first;for(t=bt(this,t);e;)e._start===t&&"isPause"===e.data&&sa(e),e=e._next},e.killTweensOf=function killTweensOf(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)Qt!==i[n]&&i[n].kill(t,e);return this},e.getTweensOf=function getTweensOf(t,e){for(var r,i=[],n=xt(t),a=this._first,s=q(e);a;)a instanceof Vt?ea(a._targets,n)&&(s?(!Qt||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&i.push(a):(r=a.getTweensOf(n,e)).length&&i.push.apply(i,r),a=a._next;return i},e.tweenTo=function tweenTo(t,e){e=e||{};var r,i=this,n=bt(i,t),a=e.startAt,s=e.onStart,o=e.onStartParams,u=e.immediateRender,h=Vt.to(i,ja({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||X,onStart:function onStart(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());h._dur!==t&&Ja(h,t,0,1).render(h._time,!0,!0),r=1}s&&s.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,ja({startAt:{time:bt(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),jb(this,bt(this,t))},e.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),jb(this,bt(this,t),1)},e.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+X)},e.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return ta(this)},e.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return n.prototype.invalidate.call(this)},e.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),ta(this)},e.totalDuration=function totalDuration(t){var e,r,i,n=0,a=this,s=a._last,o=j;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,Ca(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;Ja(a,a===I&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},Timeline.updateRoot=function updateRoot(t){if(I._ts&&(ga(I,ya(t,I)),f=St.frame),St.frame>=pt){pt+=Y.autoSleep||120;var e=I._first;if((!e||!e._ts)&&Y.autoSleep&&St._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||St.sleep()}}},Timeline}(qt);ja(Nt.prototype,{_lock:0,_hasPause:0,_forcing:0});function Tb(t,e,r,i,n,a){var u,h,l,f;if(ft[t]&&!1!==(u=new ft[t]).init(n,u.rawVars?e[t]:function _processVars(t,e,r,i,n){if(p(t)&&(t=Xt(t,n,e,r,i)),!s(t)||t.style&&t.nodeType||Z(t)||K(t))return o(t)?Xt(t,n,e,r,i):t;var a,u={};for(a in t)u[a]=Xt(t[a],n,e,r,i);return u}(e[t],i,n,a,r),r,i,a)&&(r._pt=h=new ae(r._pt,n,t,0,1,u.render,u,0,u.priority),r!==d))for(l=r._ptLookup[r._targets.indexOf(n)],f=u._props.length;f--;)l[u._props[f]]=h;return u}var Qt,Yt=function _addPropTween(t,e,r,i,n,a,s,u,h){p(i)&&(i=i(n||0,t,a));var l,f=t[e],d="get"!==r?r:p(f)?h?t[e.indexOf("set")||!p(t["get"+e.substr(3)])?e:"get"+e.substr(3)](h):t[e]():f,c=p(f)?h?Ht:Gt:Wt;if(o(i)&&(~i.indexOf("random(")&&(i=gb(i)),"="===i.charAt(1)&&(!(l=parseFloat(d)+parseFloat(i.substr(2))*("-"===i.charAt(0)?-1:1)+(Qa(d)||0))&&0!==l||(i=l))),d!==i)return isNaN(d*i)||""===i?(f||e in t||N(e,i),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,d,p,c,_=new ae(this._pt,t,e,0,1,te,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(p=~(i+="").indexOf("random("))&&(i=gb(i)),a&&(a(c=[r,i],t,e),r=c[0],i=c[1]),u=r.match(it)||[];o=it.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:d,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-d,m:h&&h<4?Math.round:0},m=it.lastIndex);return _.c=m<i.length?i.substring(m,i.length):"",_.fp=s,(nt.test(i)||p)&&(_.e=0),this._pt=_}.call(this,t,e,d,i,c,u||Y.stringFilter,h)):(l=new ae(this._pt,t,e,+d||0,i-(d||0),"boolean"==typeof f?$t:Zt,0,c),h&&(l.fp=h),s&&l.modifier(s,this,t),this._pt=l)},jt=function _initTween(e,r){var i,n,a,s,o,u,h,l,f,d,p,c,m,g=e.vars,v=g.ease,y=g.startAt,b=g.immediateRender,T=g.lazy,w=g.onUpdate,x=g.onUpdateParams,O=g.callbackScope,M=g.runBackwards,k=g.yoyoEase,A=g.keyframes,P=g.autoRevert,C=e._dur,S=e._startAt,D=e._targets,z=e.parent,E=z&&"nested"===z.data?z.parent._targets:D,F="auto"===e._overwrite&&!B,R=e.timeline;if(!R||A&&v||(v="none"),e._ease=Bt(v,L.ease),e._yEase=k?Rt(Bt(!0===k?v:k,L.ease)):0,k&&e._yoyo&&!e._repeat&&(k=e._yEase,e._yEase=e._ease,e._ease=k),e._from=!R&&!!g.runBackwards,!R){if(c=(l=D[0]?_(D[0]).harness:0)&&g[l.prop],i=na(g,ut),S&&S.render(-1,!0).kill(),y)if(sa(e._startAt=Vt.set(D,ja({data:"isStart",overwrite:!1,parent:z,immediateRender:!0,lazy:t(T),startAt:null,delay:0,onUpdate:w,onUpdateParams:x,callbackScope:O,stagger:0},y))),r<0&&!b&&!P&&e._startAt.render(-1,!0),b){if(0<r&&!P&&(e._startAt=0),C&&r<=0)return void(r&&(e._zTime=r))}else!1===P&&(e._startAt=0);else if(M&&C)if(S)P||(e._startAt=0);else if(r&&(b=!1),a=ja({overwrite:!1,data:"isFromStart",lazy:b&&t(T),immediateRender:b,stagger:0,parent:z},i),c&&(a[l.prop]=c),sa(e._startAt=Vt.set(D,a)),r<0&&e._startAt.render(-1,!0),b){if(!r)return}else _initTween(e._startAt,X);for(e._pt=0,T=C&&t(T)||T&&!C,n=0;n<D.length;n++){if(h=(o=D[n])._gsap||$(D)[n]._gsap,e._ptLookup[n]=d={},lt[h.id]&&ht.length&&fa(),p=E===D?n:E.indexOf(o),l&&!1!==(f=new l).init(o,c||i,e,p,E)&&(e._pt=s=new ae(e._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){d[t]=s}),f.priority&&(u=1)),!l||c)for(a in i)ft[a]&&(f=Tb(a,i,e,p,o,E))?f.priority&&(u=1):d[a]=s=Yt.call(e,o,a,"get",i[a],p,E,0,g.stringFilter);e._op&&e._op[n]&&e.kill(o,e._op[n]),F&&e._pt&&(Qt=e,I.killTweensOf(o,d,e.globalTime(r)),m=!e.parent,Qt=0),e._pt&&T&&(lt[h.id]=1)}u&&ne(e),e._onInit&&e._onInit(e)}e._onUpdate=w,e._initted=(!e._op||e._pt)&&!m},Xt=function _parseFuncOrString(t,e,r,i,n){return p(t)?t.call(e,r,i,n):o(t)&&~t.indexOf("random(")?gb(t):t},Ut=_t+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",Jt=(Ut+",id,stagger,delay,duration,paused,scrollTrigger").split(","),Vt=function(C){function Tween(e,r,i,n){var a;"number"==typeof r&&(i.duration=r,r=i,i=null);var o,u,h,l,f,d,p,c,_=(a=C.call(this,n?r:oa(r))||this).vars,m=_.duration,g=_.delay,y=_.immediateRender,b=_.stagger,T=_.overwrite,w=_.keyframes,x=_.defaults,M=_.scrollTrigger,k=_.yoyoEase,A=r.parent||I,P=(Z(e)||K(e)?q(e[0]):"length"in r)?[e]:xt(e);if(a._targets=P.length?$(P):O("GSAP target "+e+" not found. https://greensock.com",!Y.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=T,w||b||v(m)||v(g)){if(r=a.vars,(o=a.timeline=new Nt({data:"nested",defaults:x||{}})).kill(),o.parent=o._dp=_assertThisInitialized(a),o._start=0,w)oa(ja(o.vars.defaults,{ease:"none"})),b?P.forEach(function(r,i){return w.forEach(function(t,e){return o.to(r,t,e?">":i*b)})}):w.forEach(function(t){return o.to(P,t,">")});else{if(l=P.length,p=b?Ya(b):Q,s(b))for(f in b)~Ut.indexOf(f)&&((c=c||{})[f]=b[f]);for(u=0;u<l;u++){for(f in h={},r)Jt.indexOf(f)<0&&(h[f]=r[f]);h.stagger=0,k&&(h.yoyoEase=k),c&&mt(h,c),d=P[u],h.duration=+Xt(m,_assertThisInitialized(a),u,d,P),h.delay=(+Xt(g,_assertThisInitialized(a),u,d,P)||0)-a._delay,!b&&1===l&&h.delay&&(a._delay=g=h.delay,a._start+=g,h.delay=0),o.to(d,h,p(u,d,P))}o.duration()?m=g=0:a.timeline=0}m||a.duration(m=o.duration())}else a.timeline=0;return!0!==T||B||(Qt=_assertThisInitialized(a),I.killTweensOf(P),Qt=0),Ca(A,_assertThisInitialized(a),i),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(y||!m&&!w&&a._start===da(A._time)&&t(y)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(a))&&"nested"!==A.data)&&(a._tTime=-X,a.render(Math.max(0,-g))),M&&Da(_assertThisInitialized(a),M),a}_inheritsLoose(Tween,C);var e=Tween.prototype;return e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d=this._time,p=this._tDur,c=this._dur,_=p-X<t&&0<=t?p:t<X?0:t;if(c){if(_!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(i=_,l=this.timeline,this._repeat){if(s=c+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,r);if(i=da(_%s),_===p?(a=this._repeat,i=c):((a=~~(_/s))&&a===_/s&&(i=c,a--),c<i&&(i=c)),(u=this._yoyo&&1&a)&&(f=this._yEase,i=c-i),o=gt(this._tTime,s),i===d&&!r&&this._initted)return this;a!==o&&(l&&this._yEase&&Hb(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=r=1,this.render(da(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Ea(this,t<0?t:i,r,e))return this._tTime=0,this;if(c!==this._dur)return this.render(t,e,r)}if(this._tTime=_,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(i/c),this._from&&(this.ratio=h=1-h),i&&!d&&!e&&(Mt(this,"onStart"),this._tTime!==_))return this;for(n=this._pt;n;)n.r(h,n.d),n=n._next;l&&l.render(t<0?t:!i&&u?-X:l._dur*h,e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),Mt(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&Mt(this,"onRepeat"),_!==this._tDur&&_||this._tTime!==_||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),!t&&c||!(_===this._tDur&&0<this._ts||!_&&this._ts<0)||sa(this,1),e||t<0&&!d||!_&&!d||(Mt(this,_===p?"onComplete":"onReverseComplete",!0),!this._prom||_<p&&0<this.timeScale()||this._prom()))}}else!function _renderZeroDurationTween(t,e,r,i){var n,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&function _parentPlayheadIsBeforeStart(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||_parentPlayheadIsBeforeStart(e))}(t)&&(t._initted||!vt(t))||(t._ts<0||t._dp._ts<0)&&!vt(t))?0:1,h=t._rDelay,l=0;if(h&&t._repeat&&(l=Tt(0,t._tDur,e),a=gt(l,h),s=gt(t._tTime,h),t._yoyo&&1&a&&(u=1-u),a!==s&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||i||t._zTime===X||!e&&t._zTime){if(!t._initted&&Ea(t,e,i,r))return;for(s=t._zTime,t._zTime=e||(r?X:0),r=r||e&&!s,t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,n=t._pt;n;)n.r(u,n.d),n=n._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!r&&Mt(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&Mt(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&sa(t,1),r||(Mt(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),C.prototype.invalidate.call(this)},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?lb(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Qt&&!0!==Qt.vars.overwrite)._first||lb(this),this.parent&&r!==this.timeline.totalDuration()&&Ja(this,this._dur*this.timeline._tDur/r,0,1),this}var i,n,a,s,u,h,l,f=this._targets,d=t?xt(t):f,p=this._ptLookup,c=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,d))return"all"===e&&(this._pt=0),lb(this);for(i=this._op=this._op||[],"all"!==e&&(o(e)&&(u={},ba(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?_(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=mt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~d.indexOf(f[l]))for(u in n=p[l],"all"===e?(i[l]=e,s=n,a={}):(a=i[l]=i[l]||{},s=e),s)(h=n&&n[u])&&("kill"in h.d&&!0!==h.d.kill(u)||ra(this,h,"_pt"),delete n[u]),"all"!==a&&(a[u]=1);return this._initted&&!this._pt&&c&&lb(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return Na(1,arguments)},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return Na(2,arguments)},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return I.killTweensOf(t,e,r)},Tween}(qt);ja(Vt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ba("staggerTo,staggerFrom,staggerFromTo",function(r){Vt[r]=function(){var t=new Nt,e=wt.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function cc(t,e,r){return t.setAttribute(e,r)}function kc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var Wt=function _setterPlain(t,e,r){return t[e]=r},Gt=function _setterFunc(t,e,r){return t[e](r)},Ht=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},Kt=function _getSetter(t,e){return p(t[e])?Gt:r(t[e])&&t.setAttribute?cc:Wt},Zt=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},$t=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},te=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},ee=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},re=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},ie=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?ra(this,i,"_pt"):i.dep||(e=1),i=r;return!e},ne=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},ae=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=kc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||Zt,this.d=s||this,this.set=o||Wt,this.pr=u||0,(this._next=t)&&(t._prev=this)}ba(_t+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return ut[t]=1}),ot.TweenMax=ot.TweenLite=Vt,ot.TimelineLite=ot.TimelineMax=Nt,I=new Nt({sortChildren:!1,defaults:L,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Y.stringFilter=wb;var se={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return function _createPlugin(t){var e=(t=!t.name&&t.default||t).name,r=p(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:Q,render:ee,add:Yt,kill:ie,modifier:re,rawVars:0},a={targetTest:0,get:0,getSetter:Kt,aliases:{},register:0};if(Dt(),t!==i){if(ft[e])return;ja(i,ja(na(t,n),a)),mt(i.prototype,mt(n,na(t,a))),ft[i.prop=e]=i,t.targetTest&&(ct.push(i),ut[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}P(e,i),t.register&&t.register(oe,i,ae)}(t)})},timeline:function timeline(t){return new Nt(t)},getTweensOf:function getTweensOf(t,e){return I.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,r){o(i)&&(i=xt(i)[0]);var n=_(i||{}).get,a=e?ia:ha;return"native"===e&&(e=""),i?t?a((ft[t]&&ft[t].get||n)(i,t,e,r)):function(t,e,r){return a((ft[t]&&ft[t].get||n)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,i){if(1<(r=xt(r)).length){var n=r.map(function(t){return oe.quickSetter(t,e,i)}),a=n.length;return function(t){for(var e=a;e--;)n[e](t)}}r=r[0]||{};var s=ft[e],o=_(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=s?function(t){var e=new s;d._pt=0,e.init(r,i?t+i:t,d,0,[r]),e.render(1,e),d._pt&&ee(1,d)}:o.set(r,u);return s?h:function(t){return h(r,u,i?t+i:t,o,1)}},isTweening:function isTweening(t){return 0<I.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=Bt(t.ease,L.ease)),ma(L,t||{})},config:function config(t){return ma(Y,t||{})},registerEffect:function registerEffect(t){var i=t.name,n=t.effect,e=t.plugins,a=t.defaults,r=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!ft[t]&&!ot[t]&&O(i+" effect requires "+t+" plugin.")}),dt[i]=function(t,e,r){return n(xt(t),ja(e||{},a),r)},r&&(Nt.prototype[i]=function(t,e,r){return this.add(dt[i](t,s(e)?e:(r=e)&&{},this),r)})},registerEase:function registerEase(t,e){zt[t]=Bt(e)},parseEase:function parseEase(t,e){return arguments.length?Bt(t,e):zt},getById:function getById(t){return I.getById(t)},exportRoot:function exportRoot(e,r){void 0===e&&(e={});var i,n,a=new Nt(e);for(a.smoothChildTiming=t(e.smoothChildTiming),I.remove(a),a._dp=0,a._time=a._tTime=I._time,i=I._first;i;)n=i._next,!r&&!i._dur&&i instanceof Vt&&i.vars.onComplete===i._targets[0]||Ca(a,i,i._start-i._delay),i=n;return Ca(I,a,0),a},utils:{wrap:function wrap(e,t,r){var i=t-e;return Z(e)?db(e,wrap(0,e.length),t):Oa(r,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function wrapYoyo(e,t,r){var i=t-e,n=2*i;return Z(e)?db(e,wrapYoyo(0,e.length-1),t):Oa(r,function(t){return e+(i<(t=(n+(t-e)%n)%n||0)?n-t:t)})},distribute:Ya,random:_a,snap:$a,normalize:function normalize(t,e,r){return Ot(t,e,0,1,r)},getUnit:Qa,clamp:function clamp(e,r,t){return Oa(t,function(t){return Tt(e,r,t)})},splitColor:rb,toArray:xt,selector:function selector(r){return r=xt(r)[0]||O("Invalid scope")||{},function(t){var e=r.current||r.nativeElement||r;return xt(t,e.querySelectorAll?e:e===r?O("Invalid scope")||a.createElement("div"):r)}},mapRange:Ot,pipe:function pipe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function unitize(e,r){return function(t){return e(parseFloat(t))+(r||Qa(t))}},interpolate:function interpolate(e,r,t,i){var n=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!n){var a,s,u,h,l,f=o(e),d={};if(!0===t&&(i=1)&&(t=null),f)e={p:e},r={p:r};else if(Z(e)&&!Z(r)){for(u=[],h=e.length,l=h-2,s=1;s<h;s++)u.push(interpolate(e[s-1],e[s]));h--,n=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=r}else i||(e=mt(Z(e)?[]:{},e));if(!u){for(a in r)Yt.call(d,e,a,"get",r[a]);n=function func(t){return ee(t,d)||(f?e.p:e)}}}return Oa(t,n)},shuffle:Xa},install:M,effects:dt,ticker:St,updateRoot:Nt.updateRoot,plugins:ft,globalTimeline:I,core:{PropTween:ae,globals:P,Tween:Vt,Timeline:Nt,Animation:qt,getCache:_,_removeLinkedListItem:ra,suppressOverwrites:function suppressOverwrites(t){return B=t}}};ba("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return se[t]=Vt[t]}),St.add(Nt.updateRoot),d=se.to({},{duration:0});function oc(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}function qc(t,n){return{name:t,rawVars:1,init:function init(t,i,e){e._onInit=function(t){var e,r;if(o(i)&&(e={},ba(i,function(t){return e[t]=1}),i=e),n){for(r in e={},i)e[r]=n(i[r]);i=e}!function _addModifiers(t,e){var r,i,n,a=t._targets;for(r in e)for(i=a.length;i--;)(n=(n=t._ptLookup[i][r])&&n.d)&&(n._pt&&(n=oc(n,r)),n&&n.modifier&&n.modifier(e[r],t,a[i],r))}(t,i)}}}}var oe=se.registerPlugin({name:"attr",init:function init(t,e,r,i,n){var a,s;for(a in e)(s=this.add(t,"setAttribute",(t.getAttribute(a)||0)+"",e[a],i,n,0,0,a))&&(s.op=a),this._props.push(a)}},{name:"endArray",init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r])}},qc("roundProps",Za),qc("modifiers"),qc("snap",$a))||se;Vt.version=Nt.version=oe.version="3.8.0",l=1,u()&&Dt();function _c(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function ad(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function bd(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function cd(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function dd(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function ed(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function fd(t,e,r){return t.style[e]=r}function gd(t,e,r){return t.style.setProperty(e,r)}function hd(t,e,r){return t._gsap[e]=r}function id(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function jd(t,e,r,i,n){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)}function kd(t,e,r,i,n){var a=t._gsap;a[e]=r,a.renderTransform(n,a)}function od(t,e){var r=he.createElementNS?he.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):he.createElement(t);return r.style?r:he.createElement(t)}function pd(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Ie,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&pd(t,Xe(e)||e,1)||""}function sd(){(function _windowExists(){return"undefined"!=typeof window})()&&window.document&&(ue=window,he=ue.document,le=he.documentElement,de=od("div")||{style:{}},od("div"),Qe=Xe(Qe),Ye=Qe+"Origin",de.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ce=!!Xe("perspective"),fe=1)}function td(t){var e,r=od("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(le.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=td}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),le.removeChild(r),this.style.cssText=a,e}function ud(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function vd(e){var r;try{r=e.getBBox()}catch(t){r=td.call(e,!0)}return r&&(r.width||r.height)||e.getBBox===td||(r=td.call(e,!0)),!r||r.width||r.x||r.y?r:{x:+ud(e,["x","cx","x1"])||0,y:+ud(e,["y","cy","y1"])||0,width:0,height:0}}function wd(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!vd(t))}function xd(t,e){if(e){var r=t.style;e in Ee&&e!==Ye&&(e=Qe),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(Ie,"-$1").toLowerCase())):r.removeAttribute(e)}}function yd(t,e,r,i,n,a){var s=new ae(t._pt,e,r,0,1,a?ed:dd);return(t._pt=s).b=i,s.e=n,t._props.push(r),s}function Ad(t,e,r,i){var n,a,s,o,u=parseFloat(r)||0,h=(r+"").trim().substr((u+"").length)||"px",l=de.style,f=Le.test(e),d="svg"===t.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),c="px"===i,m="%"===i;return i===h||!u||Ue[i]||Ue[h]?u:("px"===h||c||(u=Ad(t,e,r,"px")),o=t.getCTM&&wd(t),!m&&"%"!==h||!Ee[e]&&!~e.indexOf("adius")?(l[f?"width":"height"]=100+(c?h:i),a=~e.indexOf("adius")||"em"===i&&t.appendChild&&!d?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==he&&a.appendChild||(a=he.body),(s=a._gsap)&&m&&s.width&&f&&s.time===St.time?ca(u/s.width*100):(!m&&"%"!==h||(l.position=pd(t,"position")),a===t&&(l.position="static"),a.appendChild(de),n=de[p],a.removeChild(de),l.position="absolute",f&&m&&((s=_(a)).time=St.time,s.width=a[p]),ca(c?n*u/100:n&&u?100/n*u:0))):(n=o?t.getBBox()[f?"width":"height"]:t[p],ca(m?u/n*100:u/100*n)))}function Bd(t,e,r,i){var n;return fe||sd(),e in Ne&&"transform"!==e&&~(e=Ne[e]).indexOf(",")&&(e=e.split(",")[0]),Ee[e]&&"transform"!==e?(n=He(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:Ke(pd(t,Ye))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=Ve[e]&&Ve[e](t,e,r)||pd(t,e)||aa(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?Ad(t,e,n,r)+r:n}function Cd(t,e,r,i){if(!r||"none"===r){var n=Xe(e,t,1),a=n&&pd(t,n,1);a&&a!==r?(e=n,r=a):"borderColor"===e&&(r=pd(t,"borderTopColor"))}var s,o,u,h,l,f,d,p,c,_,m,g,v=new ae(this._pt,t.style,e,0,1,te),y=0,b=0;if(v.b=r,v.e=i,r+="","auto"===(i+="")&&(t.style[e]=i,i=pd(t,e)||i,t.style[e]=r),wb(s=[r,i]),i=s[1],u=(r=s[0]).match(rt)||[],(i.match(rt)||[]).length){for(;o=rt.exec(i);)d=o[0],c=i.substring(y,o.index),l?l=(l+1)%5:"rgba("!==c.substr(-5)&&"hsla("!==c.substr(-5)||(l=1),d!==(f=u[b++]||"")&&(h=parseFloat(f)||0,m=f.substr((h+"").length),(g="="===d.charAt(1)?+(d.charAt(0)+"1"):0)&&(d=d.substr(2)),p=parseFloat(d),_=d.substr((p+"").length),y=rt.lastIndex-_.length,_||(_=_||Y.units[e]||m,y===i.length&&(i+=_,v.e+=_)),m!==_&&(h=Ad(t,e,f,_)||0),v._pt={_next:v._pt,p:c||1===b?c:",",s:h,c:g?g*p:p-h,m:l&&l<4||"zIndex"===e?Math.round:0});v.c=y<i.length?i.substring(y,i.length):""}else v.r="display"===e&&"none"===i?ed:dd;return nt.test(i)&&(v.e=0),this._pt=v}function Ed(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==i&&"right"!==i||(t=r,r=i,i=t),e[0]=Je[r]||r,e[1]=Je[i]||i,e.join(" ")}function Fd(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],Ee[r]&&(i=1,r="transformOrigin"===r?Ye:Qe),xd(a,r);i&&(xd(a,Qe),u&&(u.svg&&a.removeAttribute("transform"),He(a,1),u.uncache=1))}}function Jd(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function Kd(t){var e=pd(t,Qe);return Jd(e)?We:e.substr(7).match(et).map(ca)}function Ld(t,e){var r,i,n,a,s=t._gsap||_(t),o=t.style,u=Kd(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?We:u:(u!==We||t.offsetParent||t===le||s.svg||(n=o.display,o.display="block",(r=t.parentNode)&&t.offsetParent||(a=1,i=t.nextSibling,le.appendChild(t)),u=Kd(t),n?o.display=n:xd(t,"display"),a&&(i?r.insertBefore(t,i):r?r.appendChild(t):le.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function Md(t,e,r,i,n,a){var s,o,u,h=t._gsap,l=n||Ld(t,!0),f=h.xOrigin||0,d=h.yOrigin||0,p=h.xOffset||0,c=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],b=l[5],T=e.split(" "),w=parseFloat(T[0])||0,x=parseFloat(T[1])||0;r?l!==We&&(o=_*v-m*g)&&(u=w*(-m/o)+x*(_/o)-(_*b-m*y)/o,w=w*(v/o)+x*(-g/o)+(g*b-v*y)/o,x=u):(w=(s=vd(t)).x+(~T[0].indexOf("%")?w/100*s.width:w),x=s.y+(~(T[1]||T[0]).indexOf("%")?x/100*s.height:x)),i||!1!==i&&h.smooth?(y=w-f,b=x-d,h.xOffset=p+(y*_+b*g)-y,h.yOffset=c+(y*m+b*v)-b):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=x,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[Ye]="0px 0px",a&&(yd(a,h,"xOrigin",f,w),yd(a,h,"yOrigin",d,x),yd(a,h,"xOffset",p,h.xOffset),yd(a,h,"yOffset",c,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+x)}function Pd(t,e,r){var i=Qa(e);return ca(parseFloat(e)+parseFloat(Ad(t,"x",r+"px",i)))+i}function Wd(t,e,r,i,n,a){var s,u,h=360,l=o(n),f=parseFloat(n)*(l&&~n.indexOf("rad")?Fe:1),d=a?f*a:f-i,p=i+d+"deg";return l&&("short"===(s=n.split("_")[1])&&(d%=h)!==d%180&&(d+=d<0?h:-h),"cw"===s&&d<0?d=(d+36e9)%h-~~(d/h)*h:"ccw"===s&&0<d&&(d=(d-36e9)%h-~~(d/h)*h)),t._pt=u=new ae(t._pt,e,r,i,d,ad),u.e=p,u.u="deg",t._props.push(r),u}function Xd(t,e){for(var r in e)t[r]=e[r];return t}function Yd(t,e,r){var i,n,a,s,o,u,h,l=Xd({},r._gsap),f=r.style;for(n in l.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),f[Qe]=e,i=He(r,1),xd(r,Qe),r.setAttribute("transform",a)):(a=getComputedStyle(r)[Qe],f[Qe]=e,i=He(r,1),f[Qe]=a),Ee)(a=l[n])!==(s=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=Qa(a)!==(h=Qa(s))?Ad(r,n,a,h):parseFloat(a),u=parseFloat(s),t._pt=new ae(t._pt,i,n,o,u-o,_c),t._pt.u=h||0,t._props.push(n));Xd(i,l)}var ue,he,le,fe,de,pe,ce,_e=zt.Power0,me=zt.Power1,ge=zt.Power2,ve=zt.Power3,ye=zt.Power4,be=zt.Linear,Te=zt.Quad,we=zt.Cubic,xe=zt.Quart,Oe=zt.Quint,Me=zt.Strong,ke=zt.Elastic,Ae=zt.Back,Pe=zt.SteppedEase,Ce=zt.Bounce,Se=zt.Sine,De=zt.Expo,ze=zt.Circ,Ee={},Fe=180/Math.PI,Re=Math.PI/180,Be=Math.atan2,Ie=/([A-Z])/g,Le=/(?:left|right|width|margin|padding|x)/i,qe=/[\s,\(]\S/,Ne={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Qe="transform",Ye=Qe+"Origin",je="O,Moz,ms,Ms,Webkit".split(","),Xe=function _checkPropPrefix(t,e,r){var i=(e||de).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(je[n]+t in i););return n<0?null:(3===n?"ms":0<=n?je[n]:"")+t},Ue={deg:1,rad:1,turn:1},Je={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ve={clearProps:function clearProps(t,e,r,i,n){if("isFromStart"!==n.data){var a=t._pt=new ae(t._pt,e,r,0,0,Fd);return a.u=i,a.pr=-10,a.tween=n,t._props.push(r),1}}},We=[1,0,0,1,0,0],Ge={},He=function _parseTransform(t,e){var r=t._gsap||new Lt(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,a,s,o,u,h,l,f,d,p,c,_,m,g,v,y,b,T,w,x,O,M,k,A,P,C,S,D,z,E,F,R=t.style,B=r.scaleX<0,I="deg",L=pd(t,Ye)||"0";return i=n=a=u=h=l=f=d=p=0,s=o=1,r.svg=!(!t.getCTM||!wd(t)),m=Ld(t,r.svg),r.svg&&(k=(!r.uncache||"0px 0px"===L)&&!e&&t.getAttribute("data-svg-origin"),Md(t,k||L,!!k||r.originIsAbsolute,!1!==r.smooth,m)),c=r.xOrigin||0,_=r.yOrigin||0,m!==We&&(b=m[0],T=m[1],w=m[2],x=m[3],i=O=m[4],n=M=m[5],6===m.length?(s=Math.sqrt(b*b+T*T),o=Math.sqrt(x*x+w*w),u=b||T?Be(T,b)*Fe:0,(f=w||x?Be(w,x)*Fe+u:0)&&(o*=Math.abs(Math.cos(f*Re))),r.svg&&(i-=c-(c*b+_*w),n-=_-(c*T+_*x))):(F=m[6],z=m[7],C=m[8],S=m[9],D=m[10],E=m[11],i=m[12],n=m[13],a=m[14],h=(g=Be(F,D))*Fe,g&&(k=O*(v=Math.cos(-g))+C*(y=Math.sin(-g)),A=M*v+S*y,P=F*v+D*y,C=O*-y+C*v,S=M*-y+S*v,D=F*-y+D*v,E=z*-y+E*v,O=k,M=A,F=P),l=(g=Be(-w,D))*Fe,g&&(v=Math.cos(-g),E=x*(y=Math.sin(-g))+E*v,b=k=b*v-C*y,T=A=T*v-S*y,w=P=w*v-D*y),u=(g=Be(T,b))*Fe,g&&(k=b*(v=Math.cos(g))+T*(y=Math.sin(g)),A=O*v+M*y,T=T*v-b*y,M=M*v-O*y,b=k,O=A),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=ca(Math.sqrt(b*b+T*T+w*w)),o=ca(Math.sqrt(M*M+F*F)),g=Be(O,M),f=2e-4<Math.abs(g)?g*Fe:0,p=E?1/(E<0?-E:E):0),r.svg&&(k=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Jd(pd(t,Qe)),k&&t.setAttribute("transform",k))),90<Math.abs(f)&&Math.abs(f)<270&&(B?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),r.x=i-((r.xPercent=i&&(r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+"px",r.y=n-((r.yPercent=n&&(r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=ca(s),r.scaleY=ca(o),r.rotation=ca(u)+I,r.rotationX=ca(h)+I,r.rotationY=ca(l)+I,r.skewX=f+I,r.skewY=d+I,r.transformPerspective=p+"px",(r.zOrigin=parseFloat(L.split(" ")[2])||0)&&(R[Ye]=Ke(L)),r.xOffset=r.yOffset=0,r.force3D=Y.force3D,r.renderTransform=r.svg?ir:ce?rr:Ze,r.uncache=0,r},Ke=function _firstTwoOnly(t){return(t=t.split(" "))[0]+" "+t[1]},Ze=function _renderNon3DTransforms(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,rr(t,e)},$e="0deg",tr="0px",er=") ",rr=function _renderCSSTransforms(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,d=r.skewY,p=r.scaleX,c=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",b="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==$e||h!==$e)){var T,w=parseFloat(h)*Re,x=Math.sin(w),O=Math.cos(w);w=parseFloat(l)*Re,T=Math.cos(w),a=Pd(g,a,x*T*-v),s=Pd(g,s,-Math.sin(w)*-v),o=Pd(g,o,O*T*-v+v)}_!==tr&&(y+="perspective("+_+er),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),!b&&a===tr&&s===tr&&o===tr||(y+=o!==tr||b?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+er),u!==$e&&(y+="rotate("+u+er),h!==$e&&(y+="rotateY("+h+er),l!==$e&&(y+="rotateX("+l+er),f===$e&&d===$e||(y+="skew("+f+", "+d+er),1===p&&1===c||(y+="scale("+p+", "+c+er),g.style[Qe]=y||"translate(0, 0)"},ir=function _renderSVGTransforms(t,e){var r,i,n,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,d=o.rotation,p=o.skewX,c=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,b=o.xOffset,T=o.yOffset,w=o.forceCSS,x=parseFloat(l),O=parseFloat(f);d=parseFloat(d),p=parseFloat(p),(c=parseFloat(c))&&(p+=c=parseFloat(c),d+=c),d||p?(d*=Re,p*=Re,r=Math.cos(d)*_,i=Math.sin(d)*_,n=Math.sin(d-p)*-m,a=Math.cos(d-p)*m,p&&(c*=Re,s=Math.tan(p-c),n*=s=Math.sqrt(1+s*s),a*=s,c&&(s=Math.tan(c),r*=s=Math.sqrt(1+s*s),i*=s)),r=ca(r),i=ca(i),n=ca(n),a=ca(a)):(r=_,a=m,i=n=0),(x&&!~(l+"").indexOf("px")||O&&!~(f+"").indexOf("px"))&&(x=Ad(g,"x",l,"px"),O=Ad(g,"y",f,"px")),(v||y||b||T)&&(x=ca(x+v-(v*r+y*n)+b),O=ca(O+y-(v*i+y*a)+T)),(u||h)&&(s=g.getBBox(),x=ca(x+u/100*s.width),O=ca(O+h/100*s.height)),s="matrix("+r+","+i+","+n+","+a+","+x+","+O+")",g.setAttribute("transform",s),w&&(g.style[Qe]=s)};ba("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});Ve[1<r?"border"+e:e]=function(e,t,r,i,n){var a,s;if(arguments.length<4)return a=o.map(function(t){return Bd(e,t,r)}),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(i+"").split(" "),s={},o.forEach(function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]}),e.init(t,s,n)}});var nr,ar,sr,or={name:"css",register:sd,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,r,i,n){var a,s,u,h,l,f,d,p,c,_,m,g,v,y,b,T=this._props,w=t.style,x=r.vars.startAt;for(d in fe||sd(),e)if("autoRound"!==d&&(s=e[d],!ft[d]||!Tb(d,e,r,i,t,n)))if(l=typeof s,f=Ve[d],"function"===l&&(l=typeof(s=s.call(r,i,t,n))),"string"===l&&~s.indexOf("random(")&&(s=gb(s)),f)f(this,t,d,s,r)&&(b=1);else if("--"===d.substr(0,2))a=(getComputedStyle(t).getPropertyValue(d)+"").trim(),s+="",Pt.lastIndex=0,Pt.test(a)||(p=Qa(a),c=Qa(s)),c?p!==c&&(a=Ad(t,d,a,c)+c):p&&(s+=p),this.add(w,"setProperty",a,s,i,n,0,0,d),T.push(d);else if("undefined"!==l){if(x&&d in x?(a="function"==typeof x[d]?x[d].call(r,i,t,n):x[d],d in Y.units&&!Qa(a)&&(a+=Y.units[d]),o(a)&&~a.indexOf("random(")&&(a=gb(a)),"="===(a+"").charAt(1)&&(a=Bd(t,d))):a=Bd(t,d),h=parseFloat(a),(_="string"===l&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),u=parseFloat(s),d in Ne&&("autoAlpha"===d&&(1===h&&"hidden"===Bd(t,"visibility")&&u&&(h=0),yd(this,w,"visibility",h?"inherit":"hidden",u?"inherit":"hidden",!u)),"scale"!==d&&"transform"!==d&&~(d=Ne[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in Ee)if(g||((v=t._gsap).renderTransform&&!e.parseTransform||He(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new ae(this._pt,w,Qe,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===d)this._pt=new ae(this._pt,v,"scaleY",v.scaleY,(_?_*u:u-v.scaleY)||0),T.push("scaleY",d),d+="X";else{if("transformOrigin"===d){s=Ed(s),v.svg?Md(t,s,0,y,0,this):((c=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&yd(this,v,"zOrigin",v.zOrigin,c),yd(this,w,d,Ke(a),Ke(s)));continue}if("svgOrigin"===d){Md(t,s,1,y,0,this);continue}if(d in Ge){Wd(this,v,d,h,s,_);continue}if("smoothOrigin"===d){yd(this,v,"smooth",v.smooth,s);continue}if("force3D"===d){v[d]=s;continue}if("transform"===d){Yd(this,s,t);continue}}else d in w||(d=Xe(d)||d);if(m||(u||0===u)&&(h||0===h)&&!qe.test(s)&&d in w)u=u||0,(p=(a+"").substr((h+"").length))!==(c=Qa(s)||(d in Y.units?Y.units[d]:p))&&(h=Ad(t,d,a,c)),this._pt=new ae(this._pt,m?v:w,d,h,_?_*u:u-h,m||"px"!==c&&"zIndex"!==d||!1===e.autoRound?_c:cd),this._pt.u=c||0,p!==c&&"%"!==c&&(this._pt.b=a,this._pt.r=bd);else if(d in w)Cd.call(this,t,d,a,s);else{if(!(d in t)){N(d,s);continue}this.add(t,d,a||t[d],s,i,n)}T.push(d)}b&&ne(this)},get:Bd,aliases:Ne,getSetter:function getSetter(t,e,i){var n=Ne[e];return n&&n.indexOf(",")<0&&(e=n),e in Ee&&e!==Ye&&(t._gsap.x||Bd(t,"x"))?i&&pe===i?"scale"===e?id:hd:(pe=i||{})&&("scale"===e?jd:kd):t.style&&!r(t.style[e])?fd:~e.indexOf("-")?gd:Kt(t,e)},core:{_removeProperty:xd,_getMatrix:Ld}};oe.utils.checkPrefix=Xe,sr=ba((nr="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ar="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Ee[t]=1}),ba(ar,function(t){Y.units[t]="deg",Ge[t]=1}),Ne[sr[13]]=nr+","+ar,ba("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Ne[e[1]]=sr[e[0]]}),ba("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Y.units[t]="px"}),oe.registerPlugin(or);var ur=oe.registerPlugin(or)||oe,hr=ur.core.Tween;e.Back=Ae,e.Bounce=Ce,e.CSSPlugin=or,e.Circ=ze,e.Cubic=we,e.Elastic=ke,e.Expo=De,e.Linear=be,e.Power0=_e,e.Power1=me,e.Power2=ge,e.Power3=ve,e.Power4=ye,e.Quad=Te,e.Quart=xe,e.Quint=Oe,e.Sine=Se,e.SteppedEase=Pe,e.Strong=Me,e.TimelineLite=Nt,e.TimelineMax=Nt,e.TweenLite=Vt,e.TweenMax=hr,e.default=ur,e.gsap=ur;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}});


/*!
 * ScrollTrigger 3.8.0
 * https://greensock.com
 * 
 * @license Copyright 2021, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function J(e){return e}function K(e){return Fe(e)[0]||(Je(e)?console.warn("Element not found:",e):null)}function L(e){return Math.round(1e5*e)/1e5||0}function M(){return"undefined"!=typeof window}function N(){return Le||M()&&(Le=window.gsap)&&Le.registerPlugin&&Le}function O(e){return!!~i.indexOf(e)}function P(e,t){return~Ue.indexOf(e)&&Ue[Ue.indexOf(e)+1][t]}function Q(t,e){var r=e.s,n=e.sc,i=v.indexOf(t),o=n===pt.sc?1:2;return~i||(i=v.push(t)-1),v[i+o]||(v[i+o]=P(t,r)||(O(t)?n:function(e){return arguments.length?t[r]=e:t[r]}))}function R(e){return P(e,"getBoundingClientRect")||(O(e)?function(){return yt.width=Be.innerWidth,yt.height=Be.innerHeight,yt}:function(){return dt(e)})}function U(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return(r="scroll"+n)&&(o=P(e,r))?o()-R(e)()[i]:O(e)?(Ne[r]||ze[r])-(Be["inner"+n]||ze["client"+n]||Ne["client"+n]):e[r]-e["offset"+n]}function V(e,t){for(var r=0;r<d.length;r+=3)t&&!~t.indexOf(d[r+1])||e(d[r],d[r+1],d[r+2])}function X(e){return"function"==typeof e}function Y(e){return"number"==typeof e}function Z(e){return"object"==typeof e}function $(e){return X(e)&&e()}function _(r,n){return function(){var e=$(r),t=$(n);return function(){$(e),$(t)}}}function aa(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()}function ba(e,t){var r=t(e);r&&r.totalTime&&(e.callbackAnimation=r)}function wa(e){return Be.getComputedStyle(e)}function ya(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function Aa(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0}function Ba(e){var t,r=[],n=e.labels,i=e.duration();for(t in n)r.push(n[t]/i);return r}function Da(n){var i=Le.utils.snap(n),o=Array.isArray(n)&&n.slice(0).sort(function(e,t){return e-t});return o?function(e,t){var r;if(!t)return i(e);if(0<t){for(e-=1e-4,r=0;r<o.length;r++)if(o[r]>=e)return o[r];return o[r-1]}for(r=o.length,e+=1e-4;r--;)if(o[r]<=e)return o[r];return o[0]}:function(e,t){var r=i(e);return!t||Math.abs(r-e)<.001||r-e<0==t<0?r:i(t<0?e-n:e+n)}}function Fa(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function Ga(e,t,r){return e.addEventListener(t,r,{passive:!0})}function Ha(e,t,r){return e.removeEventListener(t,r)}function La(e,t){if(Je(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in S?S[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function Ma(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,p=i.fontWeight,d=Ie.createElement("div"),g=O(r)||"fixed"===P(r,"pinType"),h=-1!==e.indexOf("scroller"),v=g?Ne:r,m=-1!==e.indexOf("start"),b=m?l:c,x="border-color:"+b+";font-size:"+u+";color:"+b+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(x+=(n===pt?y:w)+":"+(o+parseFloat(f))+"px;"),a&&(x+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),d._isStart=m,d.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),d.style.cssText=x,d.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(d,v.children[0]):v.appendChild(d),d._offset=d["offset"+n.op.d2],k(d,0,n,m),d}function Qa(){return 20<je()-$e&&G()}function Ra(){var e=je();$e!==e?(G(),$e||A("scrollStart"),$e=e):l=l||s(G)}function Sa(){return!Xe&&!r&&!Ie.fullscreenElement&&a.restart(!0)}function Ya(e){var t,r=Le.ticker.frame,n=[],i=0;if(g!==r||Qe){for(z();i<E.length;i+=4)(t=Be.matchMedia(E[i]).matches)!==E[i+3]&&((E[i+3]=t)?n.push(i):z(1,E[i])||X(E[i+2])&&E[i+2]());for(I(),i=0;i<n.length;i++)t=n[i],Ze=E[t],E[t+2]=E[t+1](e);Ze=0,o&&F(0,1),g=r,A("matchMedia")}}function Za(){return Ha(ee,"scrollEnd",Za)||F(!0)}function cb(){return v.forEach(function(e){return"function"==typeof e&&(e.rec=0)})}function lb(e,t,r,n){if(e.parentNode!==t){for(var i,o=H.length,a=t.style,s=e.style;o--;)a[i=H[o]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[w]=s[y]="auto",a.overflow="visible",a.boxSizing="border-box",a[tt]=Aa(e,ft)+ut,a[rt]=Aa(e,pt)+ut,a[st]=s[lt]=s.top=s[b]="0",xt(n),s[tt]=s.maxWidth=r[tt],s[rt]=s.maxHeight=r[rt],s[st]=r[st],e.parentNode.insertBefore(t,e),t.appendChild(e)}}function ob(e){for(var t=W.length,r=e.style,n=[],i=0;i<t;i++)n.push(W[i],r[W[i]]);return n.t=e,n}function rb(e,t,r,n,i,o,a,s,l,c,u,f,p){X(e)&&(e=e(s)),Je(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?La("0"+e.substr(3),r):0));var d,g,h,v=p?p.time():0;if(p&&p.seek(0),Y(e))a&&k(a,r,n,!0);else{X(t)&&(t=t(s));var m,b,x,y,w=e.split(" ");h=K(t)||Ne,(m=dt(h)||{})&&(m.left||m.top)||"none"!==wa(h).display||(y=h.style.display,h.style.display="block",m=dt(h),y?h.style.display=y:h.style.removeProperty("display")),b=La(w[0],m[n.d]),x=La(w[1]||"0",r),e=m[n.p]-l[n.p]-c+b+i-x,a&&k(a,x,n,r-x<20||a._isStart&&20<x),r-=r-x}if(o){var S=e+r,T=o._isStart;d="scroll"+n.d2,k(o,S,n,T&&20<S||!T&&(u?Math.max(Ne[d],ze[d]):o.parentNode[d])<=S+1),u&&(l=dt(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+ut))}return p&&h&&(d=dt(h),p.seek(f),g=dt(h),p._caScrollDist=d[n.p]-g[n.p],e=e/p._caScrollDist*f),p&&p.seek(v),p?e:Math.round(e)}function tb(e,t,r,n){if(e.parentNode!==t){var i,o,a=e.style;if(t===Ne){for(i in e._stOrig=a.cssText,o=wa(e))+i||q.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=e._stOrig;Le.core.getCache(e).uncache=1,t.appendChild(e)}}function ub(l,e){function xf(e,t,r,n,i){var o=xf.tween,a=t.onComplete,s={};return o&&o.kill(),c=Math.round(r),t[p]=e,(t.modifiers=s)[p]=function(e){return(e=L(f()))!==c&&e!==u&&2<Math.abs(e-c)?(o.kill(),xf.tween=0):e=r+n*o.ratio+i*o.ratio*o.ratio,u=c,c=L(e)},t.onComplete=function(){xf.tween=0,a&&a.call(o)},o=xf.tween=Le.to(l,t)}var c,u,f=Q(l,e),p="_scroll"+e.p2;return l[p]=f,l.addEventListener("wheel",function(){return xf.tween&&xf.tween.kill()&&(xf.tween=0)},{passive:!0}),xf}var Le,o,Be,Ie,ze,Ne,i,a,s,l,Fe,De,Ge,c,Xe,He,u,Ye,f,p,d,Ke,Ve,r,We,Ze,g,h,Qe=1,Ue=[],v=[],je=Date.now,m=je(),$e=0,qe=1,Je=function _isString(e){return"string"==typeof e},et=Math.abs,t="scrollLeft",n="scrollTop",b="left",y="right",w="bottom",tt="width",rt="height",nt="Right",it="Left",ot="Top",at="Bottom",st="padding",lt="margin",ct="Width",x="Height",ut="px",ft={s:t,p:b,p2:it,os:y,os2:nt,d:tt,d2:ct,a:"x",sc:function sc(e){return arguments.length?Be.scrollTo(e,pt.sc()):Be.pageXOffset||Ie[t]||ze[t]||Ne[t]||0}},pt={s:n,p:"top",p2:ot,os:w,os2:at,d:rt,d2:x,a:"y",op:ft,sc:function sc(e){return arguments.length?Be.scrollTo(ft.sc(),e):Be.pageYOffset||Ie[n]||ze[n]||Ne[n]||0}},dt=function _getBounds(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==wa(e)[u]&&Le.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},gt={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},ht={toggleActions:"play",anticipatePin:0},S={top:0,left:0,center:.5,bottom:1,right:1},k=function _positionMarker(e,t,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+ct]=1,i["border"+a+ct]=0,i[r.p]=t+"px",Le.set(e,i)},vt=[],mt={},T={},C=[],E=[],A=function _dispatch(e){return T[e]&&T[e].map(function(e){return e()})||C},B=[],I=function _revertRecorded(e){for(var t=0;t<B.length;t+=5)e&&B[t+4]!==e||(B[t].style.cssText=B[t+1],B[t].getBBox&&B[t].setAttribute("transform",B[t+2]||""),B[t+3].uncache=1)},z=function _revertAll(e,t){var r;for(Ye=0;Ye<vt.length;Ye++)r=vt[Ye],t&&r.media!==t||(e?r.kill(1):r.revert());t&&I(t),t||A("revert")},F=function _refreshAll(e,t){if(!$e||e){h=!0;var r=A("refreshInit");Ke&&ee.sort(),t||z(),vt.forEach(function(e){return e.refresh()}),r.forEach(function(e){return e&&e.render&&e.render(-1)}),cb(),a.pause(),h=!1,A("refresh")}else Ga(ee,"scrollEnd",Za)},D=0,bt=1,G=function _updateAll(){if(!h){var e=vt.length,t=je(),r=50<=t-m,n=e&&vt[0].scroll();if(bt=n<D?-1:1,D=n,r&&($e&&!He&&200<t-$e&&($e=0,A("scrollEnd")),Ge=m,m=t),bt<0){for(Ye=e;0<Ye--;)vt[Ye]&&vt[Ye].update(0,r);bt=1}else for(Ye=0;Ye<e;Ye++)vt[Ye]&&vt[Ye].update(0,r);l=0}},H=[b,"top",w,y,lt+at,lt+nt,lt+ot,lt+it,"display","flexShrink","float","zIndex","grid-column-start","grid-column-end","grid-row-start","grid-row-end","grid-area","justify-self","align-self","place-self"],W=H.concat([tt,rt,"boxSizing","max"+ct,"max"+x,"position",lt,st,st+ot,st+nt,st+at,st+it]),j=/([A-Z])/g,xt=function _setState(e){if(e){var t,r,n=e.t.style,i=e.length,o=0;for((e.t._gsap||Le.core.getCache(e.t)).uncache=1;o<i;o+=2)r=e[o+1],t=e[o],r?n[t]=r:n[t]&&n.removeProperty(t.replace(j,"-$1").toLowerCase())}},yt={left:0,top:0},q=/(?:webkit|moz|length|cssText|inset)/i;ft.op=pt;var ee=(ScrollTrigger.prototype.init=function init(T,k){if(this.progress=this.start=0,this.vars&&this.kill(1),qe){var m,n,f,_,C,M,E,A,L,B,I,e,z,N,F,D,G,t,H,b,V,W,x,j,y,w,r,S,$,q,i,p,ee,te,re,ne,ie,oe=(T=ya(Je(T)||Y(T)||T.nodeType?{trigger:T}:T,ht)).onUpdate,ae=T.toggleClass,o=T.id,se=T.onToggle,le=T.onRefresh,ce=T.scrub,ue=T.trigger,fe=T.pin,pe=T.pinSpacing,de=T.invalidateOnRefresh,ge=T.anticipatePin,a=T.onScrubComplete,d=T.onSnapComplete,he=T.once,ve=T.snap,me=T.pinReparent,s=T.pinSpacer,be=T.containerAnimation,xe=T.fastScrollEnd,ye=T.preventOverlaps,we=T.horizontal||T.containerAnimation&&!1!==T.horizontal?ft:pt,Se=!ce&&0!==ce,Te=K(T.scroller||Be),l=Le.core.getCache(Te),Oe=O(Te),ke="fixed"===("pinType"in T?T.pinType:P(Te,"pinType")||Oe&&"fixed"),_e=[T.onEnter,T.onLeave,T.onEnterBack,T.onLeaveBack],Ce=Se&&T.toggleActions.split(" "),c="markers"in T?T.markers:ht.markers,Me=Oe?0:parseFloat(wa(Te)["border"+we.p2+ct])||0,Pe=this,u=T.onRefreshInit&&function(){return T.onRefreshInit(Pe)},Ee=function _getSizeFunc(e,t,r){var n=r.d,i=r.d2,o=r.a;return(o=P(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?Be["inner"+i]:e["client"+i])||0}}(Te,Oe,we),Ae=function _getOffsetsFunc(e,t){return!t||~Ue.indexOf(e)?R(e):function(){return yt}}(Te,Oe),g=0,Re=Q(Te,we);if(Pe.media=Ze,ge*=45,Pe.scroller=Te,Pe.scroll=be?be.time.bind(be):Re,_=Re(),Pe.vars=T,k=k||T.animation,"refreshPriority"in T&&(Ke=1),l.tweenScroll=l.tweenScroll||{top:ub(Te,pt),left:ub(Te,ft)},Pe.tweenTo=m=l.tweenScroll[we.p],k&&(k.vars.lazy=!1,k._initted||!1!==k.vars.immediateRender&&!1!==T.immediateRender&&k.render(0,!0,!0),Pe.animation=k.pause(),k.scrollTrigger=Pe,(i=Y(ce)&&ce)&&(q=Le.to(k,{ease:"power3",duration:i,onComplete:function onComplete(){return a&&a(Pe)}})),S=0,o=o||k.vars.id),vt.push(Pe),ve&&(Z(ve)&&!ve.push||(ve={snapTo:ve}),"scrollBehavior"in Ne.style&&Le.set(Oe?[Ne,ze]:Te,{scrollBehavior:"auto"}),f=X(ve.snapTo)?ve.snapTo:"labels"===ve.snapTo?function _getClosestLabel(t){return function(e){return Le.utils.snap(Ba(t),e)}}(k):"labelsDirectional"===ve.snapTo?function _getLabelAtDirection(r){return function(e,t){return Da(Ba(r))(e,t.direction)}}(k):!1!==ve.directional?function(e,t){return Da(ve.snapTo)(e,t.direction)}:Le.utils.snap(ve.snapTo),p=ve.duration||{min:.1,max:2},p=Z(p)?De(p.min,p.max):De(p,p),ee=Le.delayedCall(ve.delay||i/2||.1,function(){if(Math.abs(Pe.getVelocity())<10&&!He&&g!==Re()){var e=k&&!Se?k.totalProgress():Pe.progress,t=(e-$)/(je()-Ge)*1e3||0,r=Le.utils.clamp(-Pe.progress,1-Pe.progress,et(t/2)*t/.185),n=Pe.progress+(!1===ve.inertia?0:r),i=De(0,1,f(n,Pe)),o=Re(),a=Math.round(M+i*z),s=ve.onStart,l=ve.onInterrupt,c=ve.onComplete,u=m.tween;if(o<=E&&M<=o&&a!==o){if(u&&!u._initted&&u.data<=et(a-o))return;!1===ve.inertia&&(r=i-Pe.progress),m(a,{duration:p(et(.185*Math.max(et(n-e),et(i-e))/t/.05||0)),ease:ve.ease||"power3",data:et(a-o),onInterrupt:function onInterrupt(){return ee.restart(!0)&&l&&l(Pe)},onComplete:function onComplete(){g=Re(),S=$=k&&!Se?k.totalProgress():Pe.progress,d&&d(Pe),c&&c(Pe)}},o,r*z,a-o-r*z),s&&s(Pe,m.tween)}}else Pe.isActive&&ee.restart(!0)}).pause()),o&&(mt[o]=Pe),ue=Pe.trigger=K(ue||fe),fe=!0===fe?ue:K(fe),Je(ae)&&(ae={targets:ue,className:ae}),fe&&(!1===pe||pe===lt||(pe=!(!pe&&"flex"===wa(fe.parentNode).display)&&st),Pe.pin=fe,!1!==T.force3D&&Le.set(fe,{force3D:!0}),(n=Le.core.getCache(fe)).spacer?N=n.pinState:(s&&((s=K(s))&&!s.nodeType&&(s=s.current||s.nativeElement),n.spacerIsNative=!!s,s&&(n.spacerState=ob(s))),n.spacer=G=s||Ie.createElement("div"),G.classList.add("pin-spacer"),o&&G.classList.add("pin-spacer-"+o),n.pinState=N=ob(fe)),Pe.spacer=G=n.spacer,r=wa(fe),x=r[pe+we.os2],H=Le.getProperty(fe),b=Le.quickSetter(fe,we.a,ut),lb(fe,G,r),D=ob(fe)),c&&(e=Z(c)?ya(c,gt):gt,B=Ma("scroller-start",o,Te,we,e,0),I=Ma("scroller-end",o,Te,we,e,0,B),t=B["offset"+we.op.d2],A=Ma("start",o,Te,we,e,t,0,be),L=Ma("end",o,Te,we,e,t,0,be),be&&(ie=Le.quickSetter([A,L],we.a,ut)),ke||Ue.length&&!0===P(Te,"fixedMarkers")||(function _makePositionable(e){var t=wa(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"}(Oe?Ne:Te),Le.set([B,I],{force3D:!0}),y=Le.quickSetter(B,we.a,ut),w=Le.quickSetter(I,we.a,ut))),be){var h=be.vars.onUpdate,v=be.vars.onUpdateParams;be.eventCallback("onUpdate",function(){Pe.update(0,0,1),h&&h.apply(v||[])})}Pe.previous=function(){return vt[vt.indexOf(Pe)-1]},Pe.next=function(){return vt[vt.indexOf(Pe)+1]},Pe.revert=function(e){var t=!1!==e||!Pe.enabled,r=Xe;t!==Pe.isReverted&&(t&&(Pe.scroll.rec||(Pe.scroll.rec=Re()),re=Math.max(Re(),Pe.scroll.rec||0),te=Pe.progress,ne=k&&k.progress()),A&&[A,L,B,I].forEach(function(e){return e.style.display=t?"none":"block"}),t&&(Xe=1),Pe.update(t),Xe=r,fe&&(t?function _swapPinOut(e,t,r){xt(r);var n=e._gsap;if(n.spacerIsNative)xt(n.spacerState);else if(e.parentNode===t){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}}(fe,G,N):me&&Pe.isActive||lb(fe,G,wa(fe),j)),Pe.isReverted=t)},Pe.refresh=function(e,t){if(!Xe&&Pe.enabled||t)if(fe&&e&&$e)Ga(ScrollTrigger,"scrollEnd",Za);else{Xe=1,q&&q.pause(),de&&k&&k.progress(0).invalidate(),Pe.isReverted||Pe.revert();for(var r,n,i,o,a,s,l,c,u,f,p=Ee(),d=Ae(),g=be?be.duration():U(Te,we),h=0,v=0,m=T.end,b=T.endTrigger||ue,x=T.start||(0!==T.start&&ue?fe?"0 0":"0 100%":0),y=T.pinnedContainer&&K(T.pinnedContainer),w=ue&&Math.max(0,vt.indexOf(Pe))||0,S=w;S--;)(s=vt[S]).end||s.refresh(0,1)||(Xe=1),!(l=s.pin)||l!==ue&&l!==fe||s.isReverted||((f=f||[]).unshift(s),s.revert());for(X(x)&&(x=x(Pe)),M=rb(x,ue,p,we,Re(),A,B,Pe,d,Me,ke,g,be)||(fe?-.001:0),X(m)&&(m=m(Pe)),Je(m)&&!m.indexOf("+=")&&(~m.indexOf(" ")?m=(Je(x)?x.split(" ")[0]:"")+m:(h=La(m.substr(2),p),m=Je(x)?x:M+h,b=ue)),E=Math.max(M,rb(m||(b?"100% 0":g),b,p,we,Re()+h,L,I,Pe,d,Me,ke,g,be))||-.001,z=E-M||(M-=.01)&&.001,h=0,S=w;S--;)(l=(s=vt[S]).pin)&&s.start-s._pinPush<M&&!be&&(r=s.end-s.start,l!==ue&&l!==y||Y(x)||(h+=r),l===fe&&(v+=r));if(M+=h,E+=h,Pe._pinPush=v,A&&h&&((r={})[we.a]="+="+h,y&&(r[we.p]="-="+Re()),Le.set([A,L],r)),fe)r=wa(fe),o=we===pt,i=Re(),V=parseFloat(H(we.a))+v,!g&&1<E&&((Oe?Ne:Te).style["overflow-"+we.a]="scroll"),lb(fe,G,r),D=ob(fe),n=dt(fe,!0),c=ke&&Q(Te,o?ft:pt)(),pe&&((j=[pe+we.os2,z+v+ut]).t=G,(S=pe===st?Aa(fe,we)+z+v:0)&&j.push(we.d,S+ut),xt(j),ke&&Re(re)),ke&&((a={top:n.top+(o?i-M:c)+ut,left:n.left+(o?c:i-M)+ut,boxSizing:"border-box",position:"fixed"})[tt]=a.maxWidth=Math.ceil(n.width)+ut,a[rt]=a.maxHeight=Math.ceil(n.height)+ut,a[lt]=a[lt+ot]=a[lt+nt]=a[lt+at]=a[lt+it]="0",a[st]=r[st],a[st+ot]=r[st+ot],a[st+nt]=r[st+nt],a[st+at]=r[st+at],a[st+it]=r[st+it],F=function _copyState(e,t,r){for(var n,i=[],o=e.length,a=r?8:0;a<o;a+=2)n=e[a],i.push(n,n in t?t[n]:e[a+1]);return i.t=e.t,i}(N,a,me)),k?(u=k._initted,Ve(1),k.render(k.duration(),!0,!0),W=H(we.a)-V+z+v,z!==W&&F.splice(F.length-2,2),k.render(0,!0,!0),u||k.invalidate(),Ve(0)):W=z;else if(ue&&Re()&&!be)for(n=ue.parentNode;n&&n!==Ne;)n._pinOffset&&(M-=n._pinOffset,E-=n._pinOffset),n=n.parentNode;f&&f.forEach(function(e){return e.revert(!1)}),Pe.start=M,Pe.end=E,_=C=Re(),be||(_<re&&Re(re),Pe.scroll.rec=0),Pe.revert(!1),Xe=0,k&&Se&&k._initted&&k.progress()!==ne&&k.progress(ne,!0).render(k.time(),!0,!0),te!==Pe.progress&&(k&&!Se&&k.totalProgress(te,!0),Pe.progress=te,Pe.update(0,0,1)),fe&&pe&&(G._pinOffset=Math.round(Pe.progress*W)),le&&le(Pe)}},Pe.getVelocity=function(){return(Re()-C)/(je()-Ge)*1e3||0},Pe.endAnimation=function(){aa(Pe.callbackAnimation),k&&(q?q.progress(1):k.paused()?Se||aa(k,Pe.direction<0,1):aa(k,k.reversed()))},Pe.getTrailing=function(t){var e=vt.indexOf(Pe),r=0<Pe.direction?vt.slice(0,e).reverse():vt.slice(e+1);return Je(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r},Pe.update=function(e,t,r){if(!be||r||e){var n,i,o,a,s,l,c,u=Pe.scroll(),f=e?0:(u-M)/z,p=f<0?0:1<f?1:f||0,d=Pe.progress;if(t&&(C=_,_=be?Re():u,ve&&($=S,S=k&&!Se?k.totalProgress():p)),ge&&!p&&fe&&!Xe&&!Qe&&$e&&M<u+(u-C)/(je()-Ge)*ge&&(p=1e-4),p!==d&&Pe.enabled){if(a=(s=(n=Pe.isActive=!!p&&p<1)!=(!!d&&d<1))||!!p!=!!d,Pe.direction=d<p?1:-1,Pe.progress=p,a&&!Xe&&(i=p&&!d?0:1===p?1:1===d?2:3,Se&&(o=!s&&"none"!==Ce[i+1]&&Ce[i+1]||Ce[i],c=k&&("complete"===o||"reset"===o||o in k))),ye&&s&&(c||ce||!k)&&(X(ye)?ye(Pe):Pe.getTrailing(ye).forEach(function(e){return e.endAnimation()})),Se||(!q||Xe||Qe?k&&k.totalProgress(p,!!Xe):(q.vars.totalProgress=p,q.invalidate().restart())),fe)if(e&&pe&&(G.style[pe+we.os2]=x),ke){if(a){if(l=!e&&d<p&&u<E+1&&u+1>=U(Te,we),me)if(e||!n&&!l)tb(fe,G);else{var g=dt(fe,!0),h=u-M;tb(fe,Ne,g.top+(we===pt?h:0)+ut,g.left+(we===pt?0:h)+ut)}xt(n||l?F:D),W!==z&&p<1&&n||b(V+(1!==p||l?0:W))}}else b(V+W*p);!ve||m.tween||Xe||Qe||ee.restart(!0),ae&&(s||he&&p&&(p<1||!We))&&Fe(ae.targets).forEach(function(e){return e.classList[n||he?"add":"remove"](ae.className)}),!oe||Se||e||oe(Pe),a&&!Xe?(Se&&(c&&("complete"===o?k.pause().totalProgress(1):"reset"===o?k.restart(!0).pause():"restart"===o?k.restart(!0):k[o]()),oe&&oe(Pe)),!s&&We||(se&&s&&ba(Pe,se),_e[i]&&ba(Pe,_e[i]),he&&(1===p?Pe.kill(!1,1):_e[i]=0),s||_e[i=1===p?1:3]&&ba(Pe,_e[i])),xe&&!n&&Math.abs(Pe.getVelocity())>(Y(xe)?xe:2500)&&(aa(Pe.callbackAnimation),q?q.progress(1):aa(k,!p,1))):Se&&oe&&!Xe&&oe(Pe)}if(w){var v=be?u/be.duration()*(be._caScrollDist||0):u;y(v+(B._isFlipped?1:0)),w(v)}ie&&ie(-u/be.duration()*(be._caScrollDist||0))}},Pe.enable=function(e,t){Pe.enabled||(Pe.enabled=!0,Ga(Te,"resize",Sa),Ga(Te,"scroll",Ra),u&&Ga(ScrollTrigger,"refreshInit",u),!1!==e&&(Pe.progress=te=0,_=C=g=Re()),!1!==t&&Pe.refresh())},Pe.getTween=function(e){return e&&m?m.tween:q},Pe.disable=function(e,t){if(Pe.enabled&&(!1!==e&&Pe.revert(),Pe.enabled=Pe.isActive=!1,t||q&&q.pause(),re=0,n&&(n.uncache=1),u&&Ha(ScrollTrigger,"refreshInit",u),ee&&(ee.pause(),m.tween&&m.tween.kill()&&(m.tween=0)),!Oe)){for(var r=vt.length;r--;)if(vt[r].scroller===Te&&vt[r]!==Pe)return;Ha(Te,"resize",Sa),Ha(Te,"scroll",Ra)}},Pe.kill=function(e,t){Pe.disable(e,t),q&&q.kill(),o&&delete mt[o];var r=vt.indexOf(Pe);vt.splice(r,1),r===Ye&&0<bt&&Ye--,r=0,vt.forEach(function(e){return e.scroller===Pe.scroller&&(r=1)}),r||(Pe.scroll.rec=0),k&&(k.scrollTrigger=null,e&&k.render(-1),t||k.kill()),A&&[A,L,B,I].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),fe&&(n&&(n.uncache=1),r=0,vt.forEach(function(e){return e.pin===fe&&r++}),r||(n.spacer=0))},Pe.enable(!1,!1),k&&k.add&&!z?Le.delayedCall(.01,function(){return M||E||Pe.refresh()})&&(z=.01)&&(M=E=0):Pe.refresh()}else this.update=this.refresh=this.kill=J},ScrollTrigger.register=function register(e){if(!o&&(Le=e||N(),M()&&window.document&&(Be=window,Ie=document,ze=Ie.documentElement,Ne=Ie.body),Le&&(Fe=Le.utils.toArray,De=Le.utils.clamp,Ve=Le.core.suppressOverwrites||J,Le.core.globals("ScrollTrigger",ScrollTrigger),Ne))){s=Be.requestAnimationFrame||function(e){return setTimeout(e,16)},Ga(Be,"wheel",Ra),i=[Be,Ie,ze,Ne],Ga(Ie,"scroll",Ra);var t,r=Ne.style,n=r.borderTopStyle;r.borderTopStyle="solid",t=dt(Ne),pt.m=Math.round(t.top+pt.sc())||0,ft.m=Math.round(t.left+ft.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),c=setInterval(Qa,200),Le.delayedCall(.5,function(){return Qe=0}),Ga(Ie,"touchcancel",J),Ga(Ne,"touchstart",J),Fa(Ga,Ie,"pointerdown,touchstart,mousedown",function(){return He=1}),Fa(Ga,Ie,"pointerup,touchend,mouseup",function(){return He=0}),u=Le.utils.checkPrefix("transform"),W.push(u),o=je(),a=Le.delayedCall(.2,F).pause(),d=[Ie,"visibilitychange",function(){var e=Be.innerWidth,t=Be.innerHeight;Ie.hidden?(f=e,p=t):f===e&&p===t||Sa()},Ie,"DOMContentLoaded",F,Be,"load",function(){return $e||F()},Be,"resize",Sa],V(Ga)}return o},ScrollTrigger.defaults=function defaults(e){for(var t in e)ht[t]=e[t]},ScrollTrigger.kill=function kill(){qe=0,vt.slice(0).forEach(function(e){return e.kill(1)})},ScrollTrigger.config=function config(e){"limitCallbacks"in e&&(We=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(c)||(c=t)&&setInterval(Qa,t),"autoRefreshEvents"in e&&(V(Ha)||V(Ga,e.autoRefreshEvents||"none"),r=-1===(e.autoRefreshEvents+"").indexOf("resize"))},ScrollTrigger.scrollerProxy=function scrollerProxy(e,t){var r=K(e),n=v.indexOf(r),i=O(r);~n&&v.splice(n,i?6:2),i?Ue.unshift(Be,t,Ne,t,ze,t):Ue.unshift(r,t)},ScrollTrigger.matchMedia=function matchMedia(e){var t,r,n,i,o;for(r in e)n=E.indexOf(r),i=e[r],"all"===(Ze=r)?i():(t=Be.matchMedia(r))&&(t.matches&&(o=i()),~n?(E[n+1]=_(E[n+1],i),E[n+2]=_(E[n+2],o)):(n=E.length,E.push(r,i,o),t.addListener?t.addListener(Ya):t.addEventListener("change",Ya)),E[n+3]=t.matches),Ze=0;return E},ScrollTrigger.clearMatchMedia=function clearMatchMedia(e){e||(E.length=0),0<=(e=E.indexOf(e))&&E.splice(e,4)},ScrollTrigger.isInViewport=function isInViewport(e,t,r){var n=(Je(e)?K(e):e).getBoundingClientRect(),i=n[r?tt:rt]*t||0;return r?0<n.right-i&&n.left+i<Be.innerWidth:0<n.bottom-i&&n.top+i<Be.innerHeight},ScrollTrigger.positionInViewport=function positionInViewport(e,t,r){Je(e)&&(e=K(e));var n=e.getBoundingClientRect(),i=n[r?tt:rt],o=null==t?i/2:t in S?S[t]*i:~t.indexOf("%")?parseFloat(t)*i/100:parseFloat(t)||0;return r?(n.left+o)/Be.innerWidth:(n.top+o)/Be.innerHeight},ScrollTrigger);function ScrollTrigger(e,t){o||ScrollTrigger.register(Le)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,t)}ee.version="3.8.0",ee.saveStyles=function(e){return e?Fe(e).forEach(function(e){if(e&&e.style){var t=B.indexOf(e);0<=t&&B.splice(t,5),B.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Le.core.getCache(e),Ze)}}):B},ee.revert=function(e,t){return z(!e,t)},ee.create=function(e,t){return new ee(e,t)},ee.refresh=function(e){return e?Sa():(o||ee.register())&&F(!0)},ee.update=G,ee.clearScrollMemory=cb,ee.maxScroll=function(e,t){return U(e,t?ft:pt)},ee.getScrollFunc=function(e,t){return Q(K(e),t?ft:pt)},ee.getById=function(e){return mt[e]},ee.getAll=function(){return vt.slice(0)},ee.isScrolling=function(){return!!$e},ee.snapDirectional=Da,ee.addEventListener=function(e,t){var r=T[e]||(T[e]=[]);~r.indexOf(t)||r.push(t)},ee.removeEventListener=function(e,t){var r=T[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},ee.batch=function(e,t){function Lj(e,t){var r=[],n=[],i=Le.delayedCall(o,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||i.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&i.progress(1)}}var r,n=[],i={},o=t.interval||.016,a=t.batchMax||1e9;for(r in t)i[r]="on"===r.substr(0,2)&&X(t[r])&&"onRefreshInit"!==r?Lj(0,t[r]):t[r];return X(a)&&(a=a(),Ga(ee,"refresh",function(){return a=t.batchMax()})),Fe(e).forEach(function(e){var t={};for(r in i)t[r]=i[r];t.trigger=e,n.push(ee.create(t))}),n},ee.sort=function(e){return vt.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},N()&&Le.registerPlugin(ee),e.ScrollTrigger=ee,e.default=ee;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}});


/*!
 * SplitText 3.8.0
 * https://greensock.com
 * 
 * @license Copyright 2021, GreenSock. All rights reserved.
 * This plugin is a membership benefit of Club GreenSock and is only authorized for use in sites/apps/products developed by individuals/companies with an active Club GreenSock membership. See https://greensock.com/club
 * @author: Jack Doyle, jack@greensock.com
 */

!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var _=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function k(D){return e.getComputedStyle(D)}function n(D,u){var e;return i(D)?D:"string"==(e=typeof D)&&!u&&D?E.call(X.querySelectorAll(D),0):D&&"object"==e&&"length"in D?E.call(D,0):D?[D]:[]}function o(D){return"absolute"===D.position||!0===D.absolute}function p(D,u){for(var e,t=u.length;-1<--t;)if(e=u[t],D.substr(0,e.length)===e)return e.length}function r(D,u){void 0===D&&(D="");var e=~D.indexOf("++"),t=1;return e&&(D=D.split("++").join("")),function(){return"<"+u+" style='position:relative;display:inline-block;'"+(D?" class='"+D+(e?t++:"")+"'>":">")}}function s(D,u,e){var t=D.nodeType;if(1===t||9===t||11===t)for(D=D.firstChild;D;D=D.nextSibling)s(D,u,e);else 3!==t&&4!==t||(D.nodeValue=D.nodeValue.split(u).join(e))}function t(D,u){for(var e=u.length;-1<--e;)D.push(u[e])}function u(D,u,e){for(var t;D&&D!==u;){if(t=D._next||D.nextSibling)return t.textContent.charAt(0)===e;D=D.parentNode||D._parent}}function v(D){var u,e,t=n(D.childNodes),F=t.length;for(u=0;u<F;u++)(e=t[u])._isSplit?v(e):u&&e.previousSibling&&3===e.previousSibling.nodeType?(e.previousSibling.nodeValue+=3===e.nodeType?e.nodeValue:e.firstChild.nodeValue,D.removeChild(e)):3!==e.nodeType&&(D.insertBefore(e.firstChild,e),D.removeChild(e))}function w(D,u){return parseFloat(u[D])||0}function x(D,e,F,C,i,n,E){var r,l,p,d,a,h,B,f,A,c,x,g,y=k(D),_=w("paddingLeft",y),b=-999,S=w("borderBottomWidth",y)+w("borderTopWidth",y),T=w("borderLeftWidth",y)+w("borderRightWidth",y),m=w("paddingTop",y)+w("paddingBottom",y),N=w("paddingLeft",y)+w("paddingRight",y),L=w("fontSize",y)*(e.lineThreshold||.2),W=y.textAlign,H=[],O=[],V=[],j=e.wordDelimiter||" ",M=e.tag?e.tag:e.span?"span":"div",R=e.type||e.split||"chars,words,lines",z=i&&~R.indexOf("lines")?[]:null,P=~R.indexOf("words"),q=~R.indexOf("chars"),G=o(e),I=e.linesClass,J=~(I||"").indexOf("++"),K=[],Q="flex"===y.display,U=D.style.display;for(J&&(I=I.split("++").join("")),Q&&(D.style.display="block"),p=(l=D.getElementsByTagName("*")).length,a=[],r=0;r<p;r++)a[r]=l[r];if(z||G)for(r=0;r<p;r++)((h=(d=a[r]).parentNode===D)||G||q&&!P)&&(g=d.offsetTop,z&&h&&Math.abs(g-b)>L&&("BR"!==d.nodeName||0===r)&&(B=[],z.push(B),b=g),G&&(d._x=d.offsetLeft,d._y=g,d._w=d.offsetWidth,d._h=d.offsetHeight),z&&((d._isSplit&&h||!q&&h||P&&h||!P&&d.parentNode.parentNode===D&&!d.parentNode._isSplit)&&(B.push(d),d._x-=_,u(d,D,j)&&(d._wordEnd=!0)),"BR"===d.nodeName&&(d.nextSibling&&"BR"===d.nextSibling.nodeName||0===r)&&z.push([])));for(r=0;r<p;r++)if(h=(d=a[r]).parentNode===D,"BR"!==d.nodeName)if(G&&(A=d.style,P||h||(d._x+=d.parentNode._x,d._y+=d.parentNode._y),A.left=d._x+"px",A.top=d._y+"px",A.position="absolute",A.display="block",A.width=d._w+1+"px",A.height=d._h+"px"),!P&&q)if(d._isSplit)for(d._next=l=d.nextSibling,d.parentNode.appendChild(d);l&&3===l.nodeType&&" "===l.textContent;)d._next=l.nextSibling,d.parentNode.appendChild(l),l=l.nextSibling;else d.parentNode._isSplit?(d._parent=d.parentNode,!d.previousSibling&&d.firstChild&&(d.firstChild._isFirst=!0),d.nextSibling&&" "===d.nextSibling.textContent&&!d.nextSibling.nextSibling&&K.push(d.nextSibling),d._next=d.nextSibling&&d.nextSibling._isFirst?null:d.nextSibling,d.parentNode.removeChild(d),a.splice(r--,1),p--):h||(g=!d.nextSibling&&u(d.parentNode,D,j),d.parentNode._parent&&d.parentNode._parent.appendChild(d),g&&d.parentNode.appendChild(X.createTextNode(" ")),"span"===M&&(d.style.display="inline"),H.push(d));else d.parentNode._isSplit&&!d._isSplit&&""!==d.innerHTML?O.push(d):q&&!d._isSplit&&("span"===M&&(d.style.display="inline"),H.push(d));else z||G?(d.parentNode&&d.parentNode.removeChild(d),a.splice(r--,1),p--):P||D.appendChild(d);for(r=K.length;-1<--r;)K[r].parentNode.removeChild(K[r]);if(z){for(G&&(c=X.createElement(M),D.appendChild(c),x=c.offsetWidth+"px",g=c.offsetParent===D?0:D.offsetLeft,D.removeChild(c)),A=D.style.cssText,D.style.cssText="display:none;";D.firstChild;)D.removeChild(D.firstChild);for(f=" "===j&&(!G||!P&&!q),r=0;r<z.length;r++){for(B=z[r],(c=X.createElement(M)).style.cssText="display:block;text-align:"+W+";position:"+(G?"absolute;":"relative;"),I&&(c.className=I+(J?r+1:"")),V.push(c),p=B.length,l=0;l<p;l++)"BR"!==B[l].nodeName&&(d=B[l],c.appendChild(d),f&&d._wordEnd&&c.appendChild(X.createTextNode(" ")),G&&(0===l&&(c.style.top=d._y+"px",c.style.left=_+g+"px"),d.style.top="0px",g&&(d.style.left=d._x-g+"px")));0===p?c.innerHTML="&nbsp;":P||q||(v(c),s(c,String.fromCharCode(160)," ")),G&&(c.style.width=x,c.style.height=d._h+"px"),D.appendChild(c)}D.style.cssText=A}G&&(E>D.clientHeight&&(D.style.height=E-m+"px",D.clientHeight<E&&(D.style.height=E+S+"px")),n>D.clientWidth&&(D.style.width=n-N+"px",D.clientWidth<n&&(D.style.width=n+T+"px"))),Q&&(U?D.style.display=U:D.style.removeProperty("display")),t(F,H),P&&t(C,O),t(i,V)}function y(D,u,e,t){var F,C,i,n,E,r,l,d,a=u.tag?u.tag:u.span?"span":"div",h=~(u.type||u.split||"chars,words,lines").indexOf("chars"),B=o(u),f=u.wordDelimiter||" ",A=" "!==f?"":B?"&#173; ":" ",c="</"+a+">",x=1,g=u.specialChars?"function"==typeof u.specialChars?u.specialChars:p:null,y=X.createElement("div"),v=D.parentNode;for(v.insertBefore(y,D),y.textContent=D.nodeValue,v.removeChild(D),l=-1!==(F=function getText(D){var u=D.nodeType,e="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)e+=getText(D)}else if(3===u||4===u)return D.nodeValue;return e}(D=y)).indexOf("<"),!1!==u.reduceWhiteSpace&&(F=F.replace(S," ").replace(b,"")),l&&(F=F.split("<").join("{{LT}}")),E=F.length,C=(" "===F.charAt(0)?A:"")+e(),i=0;i<E;i++)if(r=F.charAt(i),g&&(d=g(F.substr(i),u.specialChars)))r=F.substr(i,d||1),C+=h&&" "!==r?t()+r+"</"+a+">":r,i+=d-1;else if(r===f&&F.charAt(i-1)!==f&&i){for(C+=x?c:"",x=0;F.charAt(i+1)===f;)C+=A,i++;i===E-1?C+=A:")"!==F.charAt(i+1)&&(C+=A+e(),x=1)}else"{"===r&&"{{LT}}"===F.substr(i,6)?(C+=h?t()+"{{LT}}</"+a+">":"{{LT}}",i+=5):55296<=r.charCodeAt(0)&&r.charCodeAt(0)<=56319||65024<=F.charCodeAt(i+1)&&F.charCodeAt(i+1)<=65039?(n=((F.substr(i,12).split(_)||[])[1]||"").length||2,C+=h&&" "!==r?t()+F.substr(i,n)+"</"+a+">":F.substr(i,n),i+=n-1):C+=h&&" "!==r?t()+r+"</"+a+">":r;D.outerHTML=C+(x?c:""),l&&s(v,"{{LT}}","<")}function z(D,u,e,t){var F,C,i=n(D.childNodes),E=i.length,s=o(u);if(3!==D.nodeType||1<E){for(u.absolute=!1,F=0;F<E;F++)(C=i[F])._next=C._isFirst=C._parent=C._wordEnd=null,3===C.nodeType&&!/\S+/.test(C.nodeValue)||(s&&3!==C.nodeType&&"inline"===k(C).display&&(C.style.display="inline-block",C.style.position="relative"),C._isSplit=!0,z(C,u,e,t));return u.absolute=s,void(D._isSplit=!0)}y(D,u,e,t)}var X,e,F,C,b=/(?:\r|\n|\t\t)/g,S=/(?:\s\s+)/g,i=Array.isArray,E=[].slice,l=((C=SplitText.prototype).split=function split(D){this.isSplit&&this.revert(),this.vars=D=D||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var u,e,t,F=this.elements.length,C=D.tag?D.tag:D.span?"span":"div",i=r(D.wordsClass,C),n=r(D.charsClass,C);-1<--F;)t=this.elements[F],this._originals[F]=t.innerHTML,u=t.clientHeight,e=t.clientWidth,z(t,D,i,n),x(t,D,this.chars,this.words,this.lines,e,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},C.revert=function revert(){var e=this._originals;if(!e)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(D,u){return D.innerHTML=e[u]}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},SplitText.create=function create(D,u){return new SplitText(D,u)},SplitText);function SplitText(D,u){F||function _initCore(){X=document,e=window,F=1}(),this.elements=n(D),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=u||{},this.split(u)}l.version="3.8.0",D.SplitText=l,D.default=l;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}});


/*!
 * DrawSVGPlugin 3.8.0
 * https://greensock.com
 * 
 * @license Copyright 2021, GreenSock. All rights reserved.
 * This plugin is a membership benefit of Club GreenSock and is only authorized for use in sites/apps/products developed by individuals/companies with an active Club GreenSock membership. See https://greensock.com/club
 * @author: Jack Doyle, jack@greensock.com
 */

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function i(){return"undefined"!=typeof window}function j(){return a||i()&&(a=window.gsap)&&a.registerPlugin&&a}function m(e){return Math.round(1e4*e)/1e4}function n(e){return parseFloat(e)||0}function o(e,t){var r=n(e);return~e.indexOf("%")?r/100*t:r}function p(e,t){return n(e.getAttribute(t))}function r(e,t,r,i,s,o){return P(Math.pow((n(r)-n(e))*s,2)+Math.pow((n(i)-n(t))*o,2))}function s(e){return console.warn(e)}function t(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function w(e){if(!(e=v(e)[0]))return 0;var n,i,o,a,f,h,d,l=e.tagName.toLowerCase(),u=e.style,c=1,g=1;t(e)&&(g=e.getScreenCTM(),c=P(g.a*g.a+g.b*g.b),g=P(g.d*g.d+g.c*g.c));try{i=e.getBBox()}catch(e){s("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var _=i||{x:0,y:0,width:0,height:0},y=_.x,w=_.y,x=_.width,m=_.height;if(i&&(x||m)||!k[l]||(x=p(e,k[l][0]),m=p(e,k[l][1]),"rect"!==l&&"line"!==l&&(x*=2,m*=2),"line"===l&&(y=p(e,"x1"),w=p(e,"y1"),x=Math.abs(x-y),m=Math.abs(m-w))),"path"===l)a=u.strokeDasharray,u.strokeDasharray="none",n=e.getTotalLength()||0,c!==g&&s("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),n*=(c+g)/2,u.strokeDasharray=a;else if("rect"===l)n=2*x*c+2*m*g;else if("line"===l)n=r(y,w,y+x,w+m,c,g);else if("polyline"===l||"polygon"===l)for(o=e.getAttribute("points").match(b)||[],"polygon"===l&&o.push(o[0],o[1]),n=0,f=2;f<o.length;f+=2)n+=r(o[f-2],o[f-1],o[f],o[f+1],c,g)||0;else"circle"!==l&&"ellipse"!==l||(h=x/2*c,d=m/2*g,n=Math.PI*(3*(h+d)-P((3*h+d)*(h+3*d))));return n||0}function x(e,t){if(!(e=v(e)[0]))return[0,0];t=t||w(e)+1;var r=h.getComputedStyle(e),i=r.strokeDasharray||"",s=n(r.strokeDashoffset),o=i.indexOf(",");return o<0&&(o=i.indexOf(" ")),t<(i=o<0?t:n(i.substr(0,o)))&&(i=t),[-s||0,i-s||0]}function y(){i()&&(h=window,l=a=j(),v=a.utils.toArray,d=-1!==((h.navigator||{}).userAgent||"").indexOf("Edge"))}var a,v,h,d,l,b=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,k={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},P=Math.sqrt,f={version:"3.8.0",name:"drawSVG",register:function register(e){a=e,y()},init:function init(e,r){if(!e.getBBox)return!1;l||y();var i,s,a,f=w(e);return this._style=e.style,this._target=e,r+""=="true"?r="0 100%":r?-1===(r+"").indexOf(" ")&&(r="0 "+r):r="0 0",s=function _parse(e,t,n){var r,i,s=e.indexOf(" ");return i=s<0?(r=void 0!==n?n+"":e,e):(r=e.substr(0,s),e.substr(s+1)),r=o(r,t),(i=o(i,t))<r?[i,r]:[r,i]}(r,f,(i=x(e,f))[0]),this._length=m(f),this._dash=m(i[1]-i[0]),this._offset=m(-i[0]),this._dashPT=this.add(this,"_dash",this._dash,m(s[1]-s[0])),this._offsetPT=this.add(this,"_offset",this._offset,m(-s[0])),d&&(a=h.getComputedStyle(e)).strokeLinecap!==a.strokeLinejoin&&(s=n(a.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",s,s+.01)),this._live=t(e)||~(r+"").indexOf("live"),this._nowrap=~(r+"").indexOf("nowrap"),this._props.push("drawSVG"),1},render:function render(e,t){var n,r,i,s,o=t._pt,a=t._style;if(o){for(t._live&&(n=w(t._target))!==t._length&&(r=n/t._length,t._length=n,t._offsetPT&&(t._offsetPT.s*=r,t._offsetPT.c*=r),t._dashPT?(t._dashPT.s*=r,t._dashPT.c*=r):t._dash*=r);o;)o.r(e,o.d),o=o._next;i=t._dash||e&&1!==e&&1e-4||0,n=t._length-i+.1,s=t._offset,i&&s&&i+Math.abs(s%t._length)>t._length-.2&&(s+=s<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=i?s:s+.001,a.strokeDasharray=n<.2?"none":i?i+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}},getLength:w,getPosition:x};j()&&a.registerPlugin(f),e.DrawSVGPlugin=f,e.default=f;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}});


/*!
 * ScrollToPlugin 3.8.0
 * https://greensock.com
 * 
 * @license Copyright 2021, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return u||k()&&(u=window.gsap)&&u.registerPlugin&&u}function m(e){return"string"==typeof e}function n(e){return"function"==typeof e}function o(e,t){var o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return e===T||e===i||e===c?Math.max(i[n],c[n])-(T["inner"+o]||i[r]||c[r]):e[n]-e["offset"+o]}function p(e,t){var o="scroll"+("x"===t?"Left":"Top");return e===T&&(null!=e.pageXOffset?o="page"+t.toUpperCase()+"Offset":e=null!=i[o]?i:c),function(){return e[o]}}function r(e,t){if(!(e=f(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var o=e.getBoundingClientRect(),n=!t||t===T||t===c,r=n?{top:i.clientTop-(T.pageYOffset||i.scrollTop||c.scrollTop||0),left:i.clientLeft-(T.pageXOffset||i.scrollLeft||c.scrollLeft||0)}:t.getBoundingClientRect(),l={x:o.left-r.left,y:o.top-r.top};return!n&&t&&(l.x+=p(t,"x")(),l.y+=p(t,"y")()),l}function s(e,t,n,l,i){return isNaN(e)||"object"==typeof e?m(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+l-i:"max"===e?o(t,n)-i:Math.min(o(t,n),r(e,t)[n]-i):parseFloat(e)-i}function t(){u=l(),k()&&u&&document.body&&(T=window,c=document.body,i=document.documentElement,f=u.utils.toArray,u.config({autoKillThreshold:7}),v=u.config(),a=1)}var u,a,T,i,c,f,v,y={version:"3.8.0",name:"scrollTo",rawVars:1,register:function register(e){u=e,t()},init:function init(e,o,r,l,i){a||t();var c=this,f=u.getProperty(e,"scrollSnapType");c.isWin=e===T,c.target=e,c.tween=r,o=function _clean(e,t,o,r){if(n(e)&&(e=e(t,o,r)),"object"!=typeof e)return m(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var l,i={};for(l in e)i[l]="onAutoKill"!==l&&n(e[l])?e[l](t,o,r):e[l];return i}(o,l,e,i),c.vars=o,c.autoKill=!!o.autoKill,c.getX=p(e,"x"),c.getY=p(e,"y"),c.x=c.xPrev=c.getX(),c.y=c.yPrev=c.getY(),f&&"none"!==f&&(c.snap=1,c.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=o.x?(c.add(c,"x",c.x,s(o.x,e,"x",c.x,o.offsetX||0),l,i),c._props.push("scrollTo_x")):c.skipX=1,null!=o.y?(c.add(c,"y",c.y,s(o.y,e,"y",c.y,o.offsetY||0),l,i),c._props.push("scrollTo_y")):c.skipY=1},render:function render(e,t){for(var n,r,l,i,s,p=t._pt,c=t.target,f=t.tween,u=t.autoKill,a=t.xPrev,y=t.yPrev,d=t.isWin,x=t.snap,g=t.snapInline;p;)p.r(e,p.d),p=p._next;n=d||!t.skipX?t.getX():a,l=(r=d||!t.skipY?t.getY():y)-y,i=n-a,s=v.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),u&&(!t.skipX&&(s<i||i<-s)&&n<o(c,"x")&&(t.skipX=1),!t.skipY&&(s<l||l<-s)&&r<o(c,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(f.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(f,t.vars.onAutoKillParams||[]))),d?T.scrollTo(t.skipX?n:t.x,t.skipY?r:t.y):(t.skipY||(c.scrollTop=t.y),t.skipX||(c.scrollLeft=t.x)),!x||1!==e&&0!==e||(r=c.scrollTop,n=c.scrollLeft,g?c.style.scrollSnapType=g:c.style.removeProperty("scroll-snap-type"),c.scrollTop=r+1,c.scrollLeft=n+1,c.scrollTop=r,c.scrollLeft=n),t.xPrev=t.x,t.yPrev=t.y},kill:function kill(e){var t="scrollTo"===e;!t&&"scrollTo_x"!==e||(this.skipX=1),!t&&"scrollTo_y"!==e||(this.skipY=1)}};y.max=o,y.getOffset=r,y.buildGetter=p,l()&&u.registerPlugin(y),e.ScrollToPlugin=y,e.default=y;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}});



/*!
 * Flickity PACKAGED v2.2.0
 * Touch, responsive, flickable carousels
 *
 * Licensed GPLv3 for open source use
 * or Flickity Commercial License for commercial use
 *
 * https://flickity.metafizzy.co
 * Copyright 2015-2018 Metafizzy
 */
(function(b,a){if(typeof define=="function"&&define.amd){define("jquery-bridget/jquery-bridget",["jquery"],function(c){return a(b,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("jquery"))}else{b.jQueryBridget=a(b,b.jQuery)}}}(window,function factory(c,f){var e=Array.prototype.slice;var a=c.console;var b=typeof a=="undefined"?function(){}:function(h){a.error(h)};function g(j,l,k){k=k||f||c.jQuery;if(!k){return}if(!l.prototype.option){l.prototype.option=function(m){if(!k.isPlainObject(m)){return}this.options=k.extend(true,this.options,m)}}k.fn[j]=function(n){if(typeof n=="string"){var m=e.call(arguments,1);return i(this,n,m)}h(this,n);return this};function i(q,m,n){var o;var p="$()."+j+'("'+m+'")';q.each(function(s,t){var r=k.data(t,j);if(!r){b(j+" not initialized. Cannot call methods, i.e. "+p);return}var v=r[m];if(!v||m.charAt(0)=="_"){b(p+" is not a valid method");return}var u=v.apply(r,n);o=o===undefined?u:o});return o!==undefined?o:q}function h(n,m){n.each(function(p,q){var o=k.data(q,j);if(o){o.option(m);o._init()}else{o=new l(q,m);k.data(q,j,o)}})}d(k)}function d(h){if(!h||(h&&h.bridget)){return}h.bridget=g}d(f||c.jQuery);return g}));(function(b,a){if(typeof define=="function"&&define.amd){define("ev-emitter/ev-emitter",a)}else{if(typeof module=="object"&&module.exports){module.exports=a()}else{b.EvEmitter=a()}}}(typeof window!="undefined"?window:this,function(){function a(){}var b=a.prototype;b.on=function(c,f){if(!c||!f){return}var d=this._events=this._events||{};var e=d[c]=d[c]||[];if(e.indexOf(f)==-1){e.push(f)}return this};b.once=function(d,e){if(!d||!e){return}this.on(d,e);var c=this._onceEvents=this._onceEvents||{};var f=c[d]=c[d]||{};f[e]=true;return this};b.off=function(c,f){var e=this._events&&this._events[c];if(!e||!e.length){return}var d=e.indexOf(f);if(d!=-1){e.splice(d,1)}return this};b.emitEvent=function(c,d){var f=this._events&&this._events[c];if(!f||!f.length){return}f=f.slice(0);d=d||[];var j=this._onceEvents&&this._onceEvents[c];for(var e=0;e<f.length;e++){var h=f[e];var g=j&&j[h];if(g){this.off(c,h);delete j[h]}h.apply(this,d)}return this};b.allOff=function(){delete this._events;delete this._onceEvents};return a}));
/*!
 * getSize v2.0.3
 * measure size of elements
 * MIT license
 */
(function(b,a){if(typeof define=="function"&&define.amd){define("get-size/get-size",a)}else{if(typeof module=="object"&&module.exports){module.exports=a()}else{b.getSize=a()}}})(window,function factory(){function h(m){var l=parseFloat(m);var n=m.indexOf("%")==-1&&!isNaN(l);return n&&l}function j(){}var i=typeof console=="undefined"?j:function(l){console.error(l)};var b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var d=b.length;function a(){var m={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var l=0;l<d;l++){var n=b[l];m[n]=0}return m}function g(m){var l=getComputedStyle(m);if(!l){i("Style returned "+l+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1")}return l}var e=false;var c;function f(){if(e){return}e=true;var n=document.createElement("div");n.style.width="200px";n.style.padding="1px 2px 3px 4px";n.style.borderStyle="solid";n.style.borderWidth="1px 2px 3px 4px";n.style.boxSizing="border-box";var l=document.body||document.documentElement;l.appendChild(n);var m=g(n);c=Math.round(h(m.width))==200;k.isBoxSizeOuter=c;l.removeChild(n)}function k(p){f();if(typeof p=="string"){p=document.querySelector(p)}if(!p||typeof p!="object"||!p.nodeType){return}var n=g(p);if(n.display=="none"){return a()}var B={};B.width=p.offsetWidth;B.height=p.offsetHeight;var A=B.isBorderBox=n.boxSizing=="border-box";for(var u=0;u<d;u++){var q=b[u];var z=n[q];var w=parseFloat(z);B[q]=!isNaN(w)?w:0}var v=B.paddingLeft+B.paddingRight;var m=B.paddingTop+B.paddingBottom;var y=B.marginLeft+B.marginRight;var o=B.marginTop+B.marginBottom;var l=B.borderLeftWidth+B.borderRightWidth;var x=B.borderTopWidth+B.borderBottomWidth;var t=A&&c;var s=h(n.width);if(s!==false){B.width=s+(t?0:v+l)}var r=h(n.height);if(r!==false){B.height=r+(t?0:m+x)}B.innerWidth=B.width-(v+l);B.innerHeight=B.height-(m+x);B.outerWidth=B.width+y;B.outerHeight=B.height+o;return B}return k});(function(b,a){if(typeof define=="function"&&define.amd){define("desandro-matches-selector/matches-selector",a)}else{if(typeof module=="object"&&module.exports){module.exports=a()}else{b.matchesSelector=a()}}}(window,function factory(){var b=(function(){var c=window.Element.prototype;if(c.matches){return"matches"}if(c.matchesSelector){return"matchesSelector"}var f=["webkit","moz","ms","o"];for(var d=0;d<f.length;d++){var e=f[d];var g=e+"MatchesSelector";if(c[g]){return g}}})();return function a(d,c){return d[b](c)}}));(function(b,a){if(typeof define=="function"&&define.amd){define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(c){return a(b,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("desandro-matches-selector"))}else{b.fizzyUIUtils=a(b,b.matchesSelector)}}}(window,function factory(d,c){var a={};a.extend=function(g,f){for(var h in f){g[h]=f[h]}return g};a.modulo=function(f,g){return((f%g)+g)%g};var e=Array.prototype.slice;a.makeArray=function(g){if(Array.isArray(g)){return g}if(g===null||g===undefined){return[]}var f=typeof g=="object"&&typeof g.length=="number";if(f){return e.call(g)}return[g]};a.removeFrom=function(g,h){var f=g.indexOf(h);if(f!=-1){g.splice(f,1)}};a.getParent=function(g,f){while(g.parentNode&&g!=document.body){g=g.parentNode;if(c(g,f)){return g}}};a.getQueryElement=function(f){if(typeof f=="string"){return document.querySelector(f)}return f};a.handleEvent=function(f){var g="on"+f.type;if(this[g]){this[g](f)}};a.filterFindElements=function(g,f){g=a.makeArray(g);var h=[];g.forEach(function(k){if(!(k instanceof HTMLElement)){return}if(!f){h.push(k);return}if(c(k,f)){h.push(k)}var l=k.querySelectorAll(f);for(var j=0;j<l.length;j++){h.push(l[j])}});return h};a.debounceMethod=function(i,h,f){f=f||100;var j=i.prototype[h];var g=h+"Timeout";i.prototype[h]=function(){var l=this[g];clearTimeout(l);var k=arguments;var m=this;this[g]=setTimeout(function(){j.apply(m,k);delete m[g]},f)}};a.docReady=function(g){var f=document.readyState;if(f=="complete"||f=="interactive"){setTimeout(g)}else{document.addEventListener("DOMContentLoaded",g)}};a.toDashed=function(f){return f.replace(/(.)([A-Z])/g,function(h,g,i){return g+"-"+i}).toLowerCase()};var b=d.console;a.htmlInit=function(f,g){a.docReady(function(){var m=a.toDashed(g);var l="data-"+m;var j=document.querySelectorAll("["+l+"]");var h=document.querySelectorAll(".js-"+m);var i=a.makeArray(j).concat(a.makeArray(h));var n=l+"-options";var k=d.jQuery;i.forEach(function(s){var p=s.getAttribute(l)||s.getAttribute(n);var r;try{r=p&&JSON.parse(p)}catch(q){if(b){b.error("Error parsing "+l+" on "+s.className+": "+q)}return}var o=new f(s,r);if(k){k.data(s,g,o)}})})};return a}));(function(b,a){if(typeof define=="function"&&define.amd){define("flickity/js/cell",["get-size/get-size"],function(c){return a(b,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("get-size"))}else{b.Flickity=b.Flickity||{};b.Flickity.Cell=a(b,b.getSize)}}}(window,function factory(b,d){function c(f,e){this.element=f;this.parent=e;this.create()}var a=c.prototype;a.create=function(){this.element.style.position="absolute";this.element.setAttribute("aria-hidden","true");this.x=0;this.shift=0};a.destroy=function(){this.unselect();this.element.style.position="";var e=this.parent.originSide;this.element.style[e]=""};a.getSize=function(){this.size=d(this.element)};a.setPosition=function(e){this.x=e;this.updateTarget();this.renderPosition(e)};a.updateTarget=a.setDefaultTarget=function(){var e=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[e]+this.size.width*this.parent.cellAlign};a.renderPosition=function(e){var f=this.parent.originSide;this.element.style[f]=this.parent.getPositionValue(e)};a.select=function(){this.element.classList.add("is-selected");this.element.removeAttribute("aria-hidden")};a.unselect=function(){this.element.classList.remove("is-selected");this.element.setAttribute("aria-hidden","true")};a.wrapShift=function(e){this.shift=e;this.renderPosition(this.x+this.parent.slideableWidth*e)};a.remove=function(){this.element.parentNode.removeChild(this.element)};return c}));(function(b,a){if(typeof define=="function"&&define.amd){define("flickity/js/slide",a)}else{if(typeof module=="object"&&module.exports){module.exports=a()}else{b.Flickity=b.Flickity||{};b.Flickity.Slide=a()}}}(window,function factory(){function b(c){this.parent=c;this.isOriginLeft=c.originSide=="left";this.cells=[];this.outerWidth=0;this.height=0}var a=b.prototype;a.addCell=function(c){this.cells.push(c);this.outerWidth+=c.size.outerWidth;this.height=Math.max(c.size.outerHeight,this.height);if(this.cells.length==1){this.x=c.x;var d=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=c.size[d]}};a.updateTarget=function(){var d=this.isOriginLeft?"marginRight":"marginLeft";var c=this.getLastCell();var e=c?c.size[d]:0;var f=this.outerWidth-(this.firstMargin+e);this.target=this.x+this.firstMargin+f*this.parent.cellAlign};a.getLastCell=function(){return this.cells[this.cells.length-1]};a.select=function(){this.cells.forEach(function(c){c.select()})};a.unselect=function(){this.cells.forEach(function(c){c.unselect()})};a.getCellElements=function(){return this.cells.map(function(c){return c.element})};return b}));(function(b,a){if(typeof define=="function"&&define.amd){define("flickity/js/animate",["fizzy-ui-utils/utils"],function(c){return a(b,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("fizzy-ui-utils"))}else{b.Flickity=b.Flickity||{};b.Flickity.animatePrototype=a(b,b.fizzyUIUtils)}}}(window,function factory(c,a){var b={};b.startAnimation=function(){if(this.isAnimating){return}this.isAnimating=true;this.restingFrames=0;this.animate()};b.animate=function(){this.applyDragForce();this.applySelectedAttraction();var e=this.x;this.integratePhysics();this.positionSlider();this.settle(e);if(this.isAnimating){var f=this;requestAnimationFrame(function d(){f.animate()})}};b.positionSlider=function(){var d=this.x;if(this.options.wrapAround&&this.cells.length>1){d=a.modulo(d,this.slideableWidth);d=d-this.slideableWidth;this.shiftWrapCells(d)}this.setTranslateX(d,this.isAnimating);this.dispatchScrollEvent()};b.setTranslateX=function(d,e){d+=this.cursorPosition;d=this.options.rightToLeft?-d:d;var f=this.getPositionValue(d);this.slider.style.transform=e?"translate3d("+f+",0,0)":"translateX("+f+")"};b.dispatchScrollEvent=function(){var f=this.slides[0];if(!f){return}var e=-this.x-f.target;var d=e/this.slidesWidth;this.dispatchEvent("scroll",null,[d,e])};b.positionSliderAtSelected=function(){if(!this.cells.length){return}this.x=-this.selectedSlide.target;this.velocity=0;this.positionSlider()};b.getPositionValue=function(d){if(this.options.percentPosition){return(Math.round((d/this.size.innerWidth)*10000)*0.01)+"%"}else{return Math.round(d)+"px"}};b.settle=function(d){if(!this.isPointerDown&&Math.round(this.x*100)==Math.round(d*100)){this.restingFrames++}if(this.restingFrames>2){this.isAnimating=false;delete this.isFreeScrolling;this.positionSlider();this.dispatchEvent("settle",null,[this.selectedIndex])}};b.shiftWrapCells=function(e){var d=this.cursorPosition+e;this._shiftCells(this.beforeShiftCells,d,-1);var f=this.size.innerWidth-(e+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,f,1)};b._shiftCells=function(g,j,f){for(var h=0;h<g.length;h++){var d=g[h];var e=j>0?f:0;d.wrapShift(e);j-=d.size.outerWidth}};b._unshiftCells=function(d){if(!d||!d.length){return}for(var e=0;e<d.length;e++){d[e].wrapShift(0)}};b.integratePhysics=function(){this.x+=this.velocity;this.velocity*=this.getFrictionFactor()};b.applyForce=function(d){this.velocity+=d};b.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]};b.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())};b.applyDragForce=function(){if(!this.isDraggable||!this.isPointerDown){return}var d=this.dragX-this.x;var e=d-this.velocity;this.applyForce(e)};b.applySelectedAttraction=function(){var d=this.isDraggable&&this.isPointerDown;if(d||this.isFreeScrolling||!this.slides.length){return}var f=this.selectedSlide.target*-1-this.x;var e=f*this.options.selectedAttraction;this.applyForce(e)};return b}));(function(b,a){if(typeof define=="function"&&define.amd){define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(d,i,e,h,g,f){return a(b,d,i,e,h,g,f)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"))}else{var c=b.Flickity;b.Flickity=a(b,b.EvEmitter,b.getSize,b.fizzyUIUtils,c.Cell,c.Slide,c.animatePrototype)}}}(window,function factory(k,d,o,n,c,e,m){var p=k.jQuery;var b=k.getComputedStyle;var f=k.console;function h(q,r){q=n.makeArray(q);while(q.length){r.appendChild(q.shift())}}var j=0;var a={};function l(t,s){var r=n.getQueryElement(t);if(!r){if(f){f.error("Bad element for Flickity: "+(r||t))}return}this.element=r;if(this.element.flickityGUID){var q=a[this.element.flickityGUID];q.option(s);return q}if(p){this.$element=p(this.element)}this.options=n.extend({},this.constructor.defaults);this.option(s);this._create()}l.defaults={accessibility:true,cellAlign:"center",freeScrollFriction:0.075,friction:0.28,namespaceJQueryEvents:true,percentPosition:true,resize:true,selectedAttraction:0.025,setGallerySize:true};l.createMethods=[];var i=l.prototype;n.extend(i,d.prototype);i._create=function(){var s=this.guid=++j;this.element.flickityGUID=s;a[s]=this;this.selectedIndex=0;this.restingFrames=0;this.x=0;this.velocity=0;this.originSide=this.options.rightToLeft?"right":"left";this.viewport=document.createElement("div");this.viewport.className="flickity-viewport";this._createSlider();if(this.options.resize||this.options.watchCSS){k.addEventListener("resize",this)}for(var q in this.options.on){var r=this.options.on[q];this.on(q,r)}l.createMethods.forEach(function(t){this[t]()},this);if(this.options.watchCSS){this.watchCSS()}else{this.activate()}};i.option=function(q){n.extend(this.options,q)};i.activate=function(){if(this.isActive){return}this.isActive=true;this.element.classList.add("flickity-enabled");if(this.options.rightToLeft){this.element.classList.add("flickity-rtl")}this.getSize();var q=this._filterFindCellElements(this.element.children);h(q,this.slider);this.viewport.appendChild(this.slider);this.element.appendChild(this.viewport);this.reloadCells();if(this.options.accessibility){this.element.tabIndex=0;this.element.addEventListener("keydown",this)}this.emitEvent("activate");this.selectInitialIndex();this.isInitActivated=true;this.dispatchEvent("ready")};i._createSlider=function(){var q=document.createElement("div");q.className="flickity-slider";q.style[this.originSide]=0;this.slider=q};i._filterFindCellElements=function(q){return n.filterFindElements(q,this.options.cellSelector)};i.reloadCells=function(){this.cells=this._makeCells(this.slider.children);this.positionCells();this._getWrapShiftCells();this.setGallerySize()};i._makeCells=function(r){var q=this._filterFindCellElements(r);var s=q.map(function(t){return new c(t,this)},this);return s};i.getLastCell=function(){return this.cells[this.cells.length-1]};i.getLastSlide=function(){return this.slides[this.slides.length-1]};i.positionCells=function(){this._sizeCells(this.cells);this._positionCells(0)};i._positionCells=function(s){s=s||0;this.maxCellHeight=s?this.maxCellHeight||0:0;var v=0;if(s>0){var u=this.cells[s-1];v=u.x+u.size.outerWidth}var r=this.cells.length;for(var t=s;t<r;t++){var q=this.cells[t];q.setPosition(v);v+=q.size.outerWidth;this.maxCellHeight=Math.max(q.size.outerHeight,this.maxCellHeight)}this.slideableWidth=v;this.updateSlides();this._containSlides();this.slidesWidth=r?this.getLastSlide().target-this.slides[0].target:0};i._sizeCells=function(q){q.forEach(function(r){r.getSize()})};i.updateSlides=function(){this.slides=[];if(!this.cells.length){return}var q=new e(this);this.slides.push(q);var t=this.originSide=="left";var r=t?"marginRight":"marginLeft";var s=this._getCanCellFit();this.cells.forEach(function(u,v){if(!q.cells.length){q.addCell(u);return}var w=(q.outerWidth-q.firstMargin)+(u.size.outerWidth-u.size[r]);if(s.call(this,v,w)){q.addCell(u)}else{q.updateTarget();q=new e(this);this.slides.push(q);q.addCell(u)}},this);q.updateTarget();this.updateSelectedSlide()};i._getCanCellFit=function(){var t=this.options.groupCells;if(!t){return function(){return false}}else{if(typeof t=="number"){var s=parseInt(t,10);return function(u){return(u%s)!==0}}}var q=typeof t=="string"&&t.match(/^(\d+)%$/);var r=q?parseInt(q[1],10)/100:1;return function(u,v){return v<=(this.size.innerWidth+1)*r}};i._init=i.reposition=function(){this.positionCells();this.positionSliderAtSelected()};i.getSize=function(){this.size=o(this.element);this.setCellAlign();this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:0.5,right:0.5},left:{left:0,right:1},right:{right:0,left:1}};i.setCellAlign=function(){var q=g[this.options.cellAlign];this.cellAlign=q?q[this.originSide]:this.options.cellAlign};i.setGallerySize=function(){if(this.options.setGallerySize){var q=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=q+"px"}};i._getWrapShiftCells=function(){if(!this.options.wrapAround){return}this._unshiftCells(this.beforeShiftCells);this._unshiftCells(this.afterShiftCells);var r=this.cursorPosition;var q=this.cells.length-1;this.beforeShiftCells=this._getGapCells(r,q,-1);r=this.size.innerWidth-this.cursorPosition;this.afterShiftCells=this._getGapCells(r,0,1)};i._getGapCells=function(u,t,r){var s=[];while(u>0){var q=this.cells[t];if(!q){break}s.push(q);t+=r;u-=q.size.outerWidth}return s};i._containSlides=function(){if(!this.options.contain||this.options.wrapAround||!this.cells.length){return}var t=this.options.rightToLeft;var w=t?"marginRight":"marginLeft";var s=t?"marginLeft":"marginRight";var r=this.slideableWidth-this.getLastCell().size[s];var q=r<this.size.innerWidth;var u=this.cursorPosition+this.cells[0].size[w];var v=r-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(x){if(q){x.target=r*this.cellAlign}else{x.target=Math.max(x.target,u);x.target=Math.min(x.target,v)}},this)};i.dispatchEvent=function(u,v,s){var t=v?[v].concat(s):s;this.emitEvent(u,t);if(p&&this.$element){u+=this.options.namespaceJQueryEvents?".flickity":"";var r=u;if(v){var q=p.Event(v);q.type=u;r=q}this.$element.trigger(r,s)}};i.select=function(q,s,t){if(!this.isActive){return}q=parseInt(q,10);this._wrapSelect(q);if(this.options.wrapAround||s){q=n.modulo(q,this.slides.length)}if(!this.slides[q]){return}var r=this.selectedIndex;this.selectedIndex=q;this.updateSelectedSlide();if(t){this.positionSliderAtSelected()}else{this.startAnimation()}if(this.options.adaptiveHeight){this.setGallerySize()}this.dispatchEvent("select",null,[q]);if(q!=r){this.dispatchEvent("change",null,[q])}this.dispatchEvent("cellSelect")};i._wrapSelect=function(t){var q=this.slides.length;var s=this.options.wrapAround&&q>1;if(!s){return t}var u=n.modulo(t,q);var w=Math.abs(u-this.selectedIndex);var r=Math.abs((u+q)-this.selectedIndex);var v=Math.abs((u-q)-this.selectedIndex);if(!this.isDragSelect&&r<w){t+=q}else{if(!this.isDragSelect&&v<w){t-=q}}if(t<0){this.x-=this.slideableWidth}else{if(t>=q){this.x+=this.slideableWidth}}};i.previous=function(q,r){this.select(this.selectedIndex-1,q,r)};i.next=function(q,r){this.select(this.selectedIndex+1,q,r)};i.updateSelectedSlide=function(){var q=this.slides[this.selectedIndex];if(!q){return}this.unselectSelectedSlide();this.selectedSlide=q;q.select();this.selectedCells=q.cells;this.selectedElements=q.getCellElements();this.selectedCell=q.cells[0];this.selectedElement=this.selectedElements[0]};i.unselectSelectedSlide=function(){if(this.selectedSlide){this.selectedSlide.unselect()}};i.selectInitialIndex=function(){var s=this.options.initialIndex;if(this.isInitActivated){this.select(this.selectedIndex,false,true);return}if(s&&typeof s=="string"){var q=this.queryCell(s);if(q){this.selectCell(s,false,true);return}}var r=0;if(s&&this.slides[s]){r=s}this.select(r,false,true)};i.selectCell=function(u,s,t){var q=this.queryCell(u);if(!q){return}var r=this.getCellSlideIndex(q);this.select(r,s,t)};i.getCellSlideIndex=function(r){for(var t=0;t<this.slides.length;t++){var q=this.slides[t];var s=q.cells.indexOf(r);if(s!=-1){return t}}};i.getCell=function(s){for(var r=0;r<this.cells.length;r++){var q=this.cells[r];if(q.element==s){return q}}};i.getCells=function(q){q=n.makeArray(q);var r=[];q.forEach(function(t){var s=this.getCell(t);if(s){r.push(s)}},this);return r};i.getCellElements=function(){return this.cells.map(function(q){return q.element})};i.getParentCell=function(r){var q=this.getCell(r);if(q){return q}r=n.getParent(r,".flickity-slider > *");return this.getCell(r)};i.getAdjacentCellElements=function(s,u){if(!s){return this.selectedSlide.getCellElements()}u=u===undefined?this.selectedIndex:u;var r=this.slides.length;if(1+(s*2)>=r){return this.getCellElements()}var t=[];for(var v=u-s;v<=u+s;v++){var w=this.options.wrapAround?n.modulo(v,r):v;var q=this.slides[w];if(q){t=t.concat(q.getCellElements())}}return t};i.queryCell=function(q){if(typeof q=="number"){return this.cells[q]}if(typeof q=="string"){if(q.match(/^[#\.]?[\d\/]/)){return}q=this.element.querySelector(q)}return this.getCell(q)};i.uiChange=function(){this.emitEvent("uiChange")};i.childUIPointerDown=function(q){if(q.type!="touchstart"){q.preventDefault()}this.focus()};i.onresize=function(){this.watchCSS();this.resize()};n.debounceMethod(l,"onresize",150);i.resize=function(){if(!this.isActive){return}this.getSize();if(this.options.wrapAround){this.x=n.modulo(this.x,this.slideableWidth)}this.positionCells();this._getWrapShiftCells();this.setGallerySize();this.emitEvent("resize");var q=this.selectedElements&&this.selectedElements[0];this.selectCell(q,false,true)};i.watchCSS=function(){var q=this.options.watchCSS;if(!q){return}var r=b(this.element,":after").content;if(r.indexOf("flickity")!=-1){this.activate()}else{this.deactivate()}};i.onkeydown=function(r){var s=document.activeElement&&document.activeElement!=this.element;if(!this.options.accessibility||s){return}var q=l.keyboardHandlers[r.keyCode];if(q){q.call(this)}};l.keyboardHandlers={37:function(){var q=this.options.rightToLeft?"next":"previous";this.uiChange();this[q]()},39:function(){var q=this.options.rightToLeft?"previous":"next";this.uiChange();this[q]()}};i.focus=function(){var q=k.pageYOffset;this.element.focus({preventScroll:true});if(k.pageYOffset!=q){k.scrollTo(k.pageXOffset,q)}};i.deactivate=function(){if(!this.isActive){return}this.element.classList.remove("flickity-enabled");this.element.classList.remove("flickity-rtl");this.unselectSelectedSlide();this.cells.forEach(function(q){q.destroy()});this.element.removeChild(this.viewport);h(this.slider.children,this.element);if(this.options.accessibility){this.element.removeAttribute("tabIndex");this.element.removeEventListener("keydown",this)}this.isActive=false;this.emitEvent("deactivate")};i.destroy=function(){this.deactivate();k.removeEventListener("resize",this);this.allOff();this.emitEvent("destroy");if(p&&this.$element){p.removeData(this.element,"flickity")}delete this.element.flickityGUID;delete a[this.guid]};n.extend(i,m);l.data=function(q){q=n.getQueryElement(q);var r=q&&q.flickityGUID;return r&&a[r]};n.htmlInit(l,"flickity");if(p&&p.bridget){p.bridget("flickity",l)}l.setJQuery=function(q){p=q};l.Cell=c;l.Slide=e;return l}));
/*!
 * Unipointer v2.3.0
 * base class for doing one thing with pointer event
 * MIT license
 */
(function(b,a){if(typeof define=="function"&&define.amd){define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(c){return a(b,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("ev-emitter"))}else{b.Unipointer=a(b,b.EvEmitter)}}}(window,function factory(e,a){function d(){}function f(){}var c=f.prototype=Object.create(a.prototype);c.bindStartEvent=function(g){this._bindStartEvent(g,true)};c.unbindStartEvent=function(g){this._bindStartEvent(g,false)};c._bindStartEvent=function(j,h){h=h===undefined?true:h;var i=h?"addEventListener":"removeEventListener";var g="mousedown";if(e.PointerEvent){g="pointerdown"}else{if("ontouchstart" in e){g="touchstart"}}j[i](g,this)};c.handleEvent=function(g){var h="on"+g.type;if(this[h]){this[h](g)}};c.getTouch=function(h){for(var g=0;g<h.length;g++){var j=h[g];if(j.identifier==this.pointerIdentifier){return j}}};c.onmousedown=function(h){var g=h.button;if(g&&(g!==0&&g!==1)){return}this._pointerDown(h,h)};c.ontouchstart=function(g){this._pointerDown(g,g.changedTouches[0])};c.onpointerdown=function(g){this._pointerDown(g,g)};c._pointerDown=function(g,h){if(g.button||this.isPointerDown){return}this.isPointerDown=true;this.pointerIdentifier=h.pointerId!==undefined?h.pointerId:h.identifier;this.pointerDown(g,h)};c.pointerDown=function(g,h){this._bindPostStartEvents(g);this.emitEvent("pointerDown",[g,h])};var b={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};c._bindPostStartEvents=function(h){if(!h){return}var g=b[h.type];g.forEach(function(i){e.addEventListener(i,this)},this);this._boundPointerEvents=g};c._unbindPostStartEvents=function(){if(!this._boundPointerEvents){return}this._boundPointerEvents.forEach(function(g){e.removeEventListener(g,this)},this);delete this._boundPointerEvents};c.onmousemove=function(g){this._pointerMove(g,g)};c.onpointermove=function(g){if(g.pointerId==this.pointerIdentifier){this._pointerMove(g,g)}};c.ontouchmove=function(g){var h=this.getTouch(g.changedTouches);if(h){this._pointerMove(g,h)}};c._pointerMove=function(g,h){this.pointerMove(g,h)};c.pointerMove=function(g,h){this.emitEvent("pointerMove",[g,h])};c.onmouseup=function(g){this._pointerUp(g,g)};c.onpointerup=function(g){if(g.pointerId==this.pointerIdentifier){this._pointerUp(g,g)}};c.ontouchend=function(g){var h=this.getTouch(g.changedTouches);if(h){this._pointerUp(g,h)}};c._pointerUp=function(g,h){this._pointerDone();this.pointerUp(g,h)};c.pointerUp=function(g,h){this.emitEvent("pointerUp",[g,h])};c._pointerDone=function(){this._pointerReset();this._unbindPostStartEvents();this.pointerDone()};c._pointerReset=function(){this.isPointerDown=false;delete this.pointerIdentifier};c.pointerDone=d;c.onpointercancel=function(g){if(g.pointerId==this.pointerIdentifier){this._pointerCancel(g,g)}};c.ontouchcancel=function(g){var h=this.getTouch(g.changedTouches);if(h){this._pointerCancel(g,h)}};c._pointerCancel=function(g,h){this._pointerDone();this.pointerCancel(g,h)};c.pointerCancel=function(g,h){this.emitEvent("pointerCancel",[g,h])};f.getPointerPoint=function(g){return{x:g.pageX,y:g.pageY}};return f}));
/*!
 * Unidragger v2.3.0
 * Draggable base class
 * MIT license
 */
(function(b,a){if(typeof define=="function"&&define.amd){define("unidragger/unidragger",["unipointer/unipointer"],function(c){return a(b,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("unipointer"))}else{b.Unidragger=a(b,b.Unipointer)}}}(window,function factory(b,e){function c(){}var a=c.prototype=Object.create(e.prototype);a.bindHandles=function(){this._bindHandles(true)};a.unbindHandles=function(){this._bindHandles(false)};a._bindHandles=function(g){g=g===undefined?true:g;var j=g?"addEventListener":"removeEventListener";var l=g?this._touchActionValue:"";for(var h=0;h<this.handles.length;h++){var k=this.handles[h];this._bindStartEvent(k,g);k[j]("click",this);if(b.PointerEvent){k.style.touchAction=l}}};a._touchActionValue="none";a.pointerDown=function(h,i){var g=this.okayPointerDown(h);if(!g){return}this.pointerDownPointer=i;h.preventDefault();this.pointerDownBlur();this._bindPostStartEvents(h);this.emitEvent("pointerDown",[h,i])};var d={TEXTAREA:true,INPUT:true,SELECT:true,OPTION:true};var f={radio:true,checkbox:true,button:true,submit:true,image:true,file:true};a.okayPointerDown=function(j){var h=d[j.target.nodeName];var g=f[j.target.type];var i=!h||g;if(!i){this._pointerReset()}return i};a.pointerDownBlur=function(){var h=document.activeElement;var g=h&&h.blur&&h!=document.body;if(g){h.blur()}};a.pointerMove=function(h,i){var g=this._dragPointerMove(h,i);this.emitEvent("pointerMove",[h,i,g]);this._dragMove(h,i,g)};a._dragPointerMove=function(h,i){var g={x:i.pageX-this.pointerDownPointer.pageX,y:i.pageY-this.pointerDownPointer.pageY};if(!this.isDragging&&this.hasDragStarted(g)){this._dragStart(h,i)}return g};a.hasDragStarted=function(g){return Math.abs(g.x)>3||Math.abs(g.y)>3};a.pointerUp=function(g,h){this.emitEvent("pointerUp",[g,h]);this._dragPointerUp(g,h)};a._dragPointerUp=function(g,h){if(this.isDragging){this._dragEnd(g,h)}else{this._staticClick(g,h)}};a._dragStart=function(g,h){this.isDragging=true;this.isPreventingClicks=true;this.dragStart(g,h)};a.dragStart=function(g,h){this.emitEvent("dragStart",[g,h])};a._dragMove=function(h,i,g){if(!this.isDragging){return}this.dragMove(h,i,g)};a.dragMove=function(h,i,g){h.preventDefault();this.emitEvent("dragMove",[h,i,g])};a._dragEnd=function(g,h){this.isDragging=false;setTimeout(function(){delete this.isPreventingClicks}.bind(this));this.dragEnd(g,h)};a.dragEnd=function(g,h){this.emitEvent("dragEnd",[g,h])};a.onclick=function(g){if(this.isPreventingClicks){g.preventDefault()}};a._staticClick=function(g,h){if(this.isIgnoringMouseUp&&g.type=="mouseup"){return}this.staticClick(g,h);if(g.type!="mouseup"){this.isIgnoringMouseUp=true;setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)}};a.staticClick=function(g,h){this.emitEvent("staticClick",[g,h])};c.getPointerPoint=e.getPointerPoint;return c}));(function(b,a){if(typeof define=="function"&&define.amd){define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(d,e,c){return a(b,d,e,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("./flickity"),require("unidragger"),require("fizzy-ui-utils"))}else{b.Flickity=a(b,b.Flickity,b.Unidragger,b.fizzyUIUtils)}}}(window,function factory(e,h,g,i){i.extend(h.defaults,{draggable:">1",dragThreshold:3});h.createMethods.push("_createDrag");var b=h.prototype;i.extend(b,g.prototype);b._touchActionValue="pan-y";var a="createTouch" in document;var d=false;b._createDrag=function(){this.on("activate",this.onActivateDrag);this.on("uiChange",this._uiChangeDrag);this.on("deactivate",this.onDeactivateDrag);this.on("cellChange",this.updateDraggable);if(a&&!d){e.addEventListener("touchmove",function(){});d=true}};b.onActivateDrag=function(){this.handles=[this.viewport];this.bindHandles();this.updateDraggable()};b.onDeactivateDrag=function(){this.unbindHandles();this.element.classList.remove("is-draggable")};b.updateDraggable=function(){if(this.options.draggable==">1"){this.isDraggable=this.slides.length>1}else{this.isDraggable=this.options.draggable}if(this.isDraggable){this.element.classList.add("is-draggable")}else{this.element.classList.remove("is-draggable")}};b.bindDrag=function(){this.options.draggable=true;this.updateDraggable()};b.unbindDrag=function(){this.options.draggable=false;this.updateDraggable()};b._uiChangeDrag=function(){delete this.isFreeScrolling};b.pointerDown=function(k,l){if(!this.isDraggable){this._pointerDownDefault(k,l);return}var j=this.okayPointerDown(k);if(!j){return}this._pointerDownPreventDefault(k);this.pointerDownFocus(k);if(document.activeElement!=this.element){this.pointerDownBlur()}this.dragX=this.x;this.viewport.classList.add("is-pointer-down");this.pointerDownScroll=c();e.addEventListener("scroll",this);this._pointerDownDefault(k,l)};b._pointerDownDefault=function(j,k){this.pointerDownPointer={pageX:k.pageX,pageY:k.pageY};this._bindPostStartEvents(j);this.dispatchEvent("pointerDown",j,[k])};var f={INPUT:true,TEXTAREA:true,SELECT:true};b.pointerDownFocus=function(k){var j=f[k.target.nodeName];if(!j){this.focus()}};b._pointerDownPreventDefault=function(m){var j=m.type=="touchstart";var l=m.pointerType=="touch";var k=f[m.target.nodeName];if(!j&&!l&&!k){m.preventDefault()}};b.hasDragStarted=function(j){return Math.abs(j.x)>this.options.dragThreshold};b.pointerUp=function(j,k){delete this.isTouchScrolling;this.viewport.classList.remove("is-pointer-down");this.dispatchEvent("pointerUp",j,[k]);this._dragPointerUp(j,k)};b.pointerDone=function(){e.removeEventListener("scroll",this);delete this.pointerDownScroll};b.dragStart=function(j,k){if(!this.isDraggable){return}this.dragStartPosition=this.x;this.startAnimation();e.removeEventListener("scroll",this);this.dispatchEvent("dragStart",j,[k])};b.pointerMove=function(k,l){var j=this._dragPointerMove(k,l);this.dispatchEvent("pointerMove",k,[l,j]);this._dragMove(k,l,j)};b.dragMove=function(l,p,k){if(!this.isDraggable){return}l.preventDefault();this.previousDragX=this.dragX;var m=this.options.rightToLeft?-1:1;if(this.options.wrapAround){k.x=k.x%this.slideableWidth}var o=this.dragStartPosition+k.x*m;if(!this.options.wrapAround&&this.slides.length){var j=Math.max(-this.slides[0].target,this.dragStartPosition);o=o>j?(o+j)*0.5:o;var n=Math.min(-this.getLastSlide().target,this.dragStartPosition);o=o<n?(o+n)*0.5:o}this.dragX=o;this.dragMoveTime=new Date();this.dispatchEvent("dragMove",l,[p,k])};b.dragEnd=function(l,m){if(!this.isDraggable){return}if(this.options.freeScroll){this.isFreeScrolling=true}var k=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var j=this.getRestingPosition();this.isFreeScrolling=-j>this.slides[0].target&&-j<this.getLastSlide().target}else{if(!this.options.freeScroll&&k==this.selectedIndex){k+=this.dragEndBoostSelect()}}delete this.previousDragX;this.isDragSelect=this.options.wrapAround;this.select(k);delete this.isDragSelect;this.dispatchEvent("dragEnd",l,[m])};b.dragEndRestingSelect=function(){var j=this.getRestingPosition();var n=Math.abs(this.getSlideDistance(-j,this.selectedIndex));var m=this._getClosestResting(j,n,1);var l=this._getClosestResting(j,n,-1);var k=m.distance<l.distance?m.index:l.index;return k};b._getClosestResting=function(k,o,j){var l=this.selectedIndex;var m=Infinity;var n=this.options.contain&&!this.options.wrapAround?function(q,p){return q<=p}:function(q,p){return q<p};while(n(o,m)){l+=j;m=o;o=this.getSlideDistance(-k,l);if(o===null){break}o=Math.abs(o)}return{distance:m,index:l-j}};b.getSlideDistance=function(l,m){var k=this.slides.length;var n=this.options.wrapAround&&k>1;var p=n?i.modulo(m,k):m;var j=this.slides[p];if(!j){return null}var o=n?this.slideableWidth*Math.floor(m/k):0;return l-(j.target+o)};b.dragEndBoostSelect=function(){if(this.previousDragX===undefined||!this.dragMoveTime||new Date()-this.dragMoveTime>100){return 0}var k=this.getSlideDistance(-this.dragX,this.selectedIndex);var j=this.previousDragX-this.dragX;if(k>0&&j>0){return 1}else{if(k<0&&j<0){return -1}}return 0};b.staticClick=function(l,n){var m=this.getParentCell(l.target);var j=m&&m.element;var k=m&&this.cells.indexOf(m);this.dispatchEvent("staticClick",l,[n,j,k])};b.onscroll=function(){var j=c();var l=this.pointerDownScroll.x-j.x;var k=this.pointerDownScroll.y-j.y;if(Math.abs(l)>3||Math.abs(k)>3){this._pointerDone()}};function c(){return{x:e.pageXOffset,y:e.pageYOffset}}return h}));(function(b,a){if(typeof define=="function"&&define.amd){define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(d,e,c){return a(b,d,e,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("./flickity"),require("unipointer"),require("fizzy-ui-utils"))}else{a(b,b.Flickity,b.Unipointer,b.fizzyUIUtils)}}}(window,function factory(g,f,h,a){var c="http://www.w3.org/2000/svg";function b(j,i){this.direction=j;this.parent=i;this._create()}b.prototype=Object.create(h.prototype);b.prototype._create=function(){this.isEnabled=true;this.isPrevious=this.direction==-1;var i=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==i;var k=this.element=document.createElement("button");k.className="flickity-button flickity-prev-next-button";k.className+=this.isPrevious?" previous":" next";k.setAttribute("type","button");this.disable();k.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var j=this.createSVG();k.appendChild(j);this.parent.on("select",this.update.bind(this));this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))};b.prototype.activate=function(){this.bindStartEvent(this.element);this.element.addEventListener("click",this);this.parent.element.appendChild(this.element)};b.prototype.deactivate=function(){this.parent.element.removeChild(this.element);this.unbindStartEvent(this.element);this.element.removeEventListener("click",this)};b.prototype.createSVG=function(){var i=document.createElementNS(c,"svg");i.setAttribute("class","flickity-button-icon");i.setAttribute("viewBox","0 0 100 100");var j=document.createElementNS(c,"path");var k=d(this.parent.options.arrowShape);j.setAttribute("d",k);j.setAttribute("class","arrow");if(!this.isLeft){j.setAttribute("transform","translate(100, 100) rotate(180) ")}i.appendChild(j);return i};function d(i){if(typeof i=="string"){return i}return"M "+i.x0+",50 L "+i.x1+","+(i.y1+50)+" L "+i.x2+","+(i.y2+50)+" L "+i.x3+",50  L "+i.x2+","+(50-i.y2)+" L "+i.x1+","+(50-i.y1)+" Z"}b.prototype.handleEvent=a.handleEvent;b.prototype.onclick=function(){if(!this.isEnabled){return}this.parent.uiChange();var i=this.isPrevious?"previous":"next";this.parent[i]()};b.prototype.enable=function(){if(this.isEnabled){return}this.element.disabled=false;this.isEnabled=true};b.prototype.disable=function(){if(!this.isEnabled){return}this.element.disabled=true;this.isEnabled=false};b.prototype.update=function(){var i=this.parent.slides;if(this.parent.options.wrapAround&&i.length>1){this.enable();return}var l=i.length?i.length-1:0;var j=this.isPrevious?0:l;var k=this.parent.selectedIndex==j?"disable":"enable";this[k]()};b.prototype.destroy=function(){this.deactivate();this.allOff()};a.extend(f.defaults,{prevNextButtons:true,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}});f.createMethods.push("_createPrevNextButtons");var e=f.prototype;e._createPrevNextButtons=function(){if(!this.options.prevNextButtons){return}this.prevButton=new b(-1,this);this.nextButton=new b(1,this);this.on("activate",this.activatePrevNextButtons)};e.activatePrevNextButtons=function(){this.prevButton.activate();this.nextButton.activate();this.on("deactivate",this.deactivatePrevNextButtons)};e.deactivatePrevNextButtons=function(){this.prevButton.deactivate();this.nextButton.deactivate();this.off("deactivate",this.deactivatePrevNextButtons)};f.PrevNextButton=b;return f}));(function(b,a){if(typeof define=="function"&&define.amd){define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(d,e,c){return a(b,d,e,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("./flickity"),require("unipointer"),require("fizzy-ui-utils"))}else{a(b,b.Flickity,b.Unipointer,b.fizzyUIUtils)}}}(window,function factory(d,c,f,a){function e(g){this.parent=g;this._create()}e.prototype=Object.create(f.prototype);e.prototype._create=function(){this.holder=document.createElement("ol");this.holder.className="flickity-page-dots";this.dots=[];this.handleClick=this.onClick.bind(this);this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))};e.prototype.activate=function(){this.setDots();this.holder.addEventListener("click",this.handleClick);this.bindStartEvent(this.holder);this.parent.element.appendChild(this.holder)};e.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick);this.unbindStartEvent(this.holder);this.parent.element.removeChild(this.holder)};e.prototype.setDots=function(){var g=this.parent.slides.length-this.dots.length;if(g>0){this.addDots(g)}else{if(g<0){this.removeDots(-g)}}};e.prototype.addDots=function(m){var j=document.createDocumentFragment();var n=[];var l=this.dots.length;var g=l+m;for(var k=l;k<g;k++){var h=document.createElement("li");h.className="dot";h.setAttribute("aria-label","Page dot "+(k+1));j.appendChild(h);n.push(h)}this.holder.appendChild(j);this.dots=this.dots.concat(n)};e.prototype.removeDots=function(h){var g=this.dots.splice(this.dots.length-h,h);g.forEach(function(i){this.holder.removeChild(i)},this)};e.prototype.updateSelected=function(){if(this.selectedDot){this.selectedDot.className="dot";this.selectedDot.removeAttribute("aria-current")}if(!this.dots.length){return}this.selectedDot=this.dots[this.parent.selectedIndex];this.selectedDot.className="dot is-selected";this.selectedDot.setAttribute("aria-current","step")};e.prototype.onTap=e.prototype.onClick=function(h){var i=h.target;if(i.nodeName!="LI"){return}this.parent.uiChange();var g=this.dots.indexOf(i);this.parent.select(g)};e.prototype.destroy=function(){this.deactivate();this.allOff()};c.PageDots=e;a.extend(c.defaults,{pageDots:true});c.createMethods.push("_createPageDots");var b=c.prototype;b._createPageDots=function(){if(!this.options.pageDots){return}this.pageDots=new e(this);this.on("activate",this.activatePageDots);this.on("select",this.updateSelectedPageDots);this.on("cellChange",this.updatePageDots);this.on("resize",this.updatePageDots);this.on("deactivate",this.deactivatePageDots)};b.activatePageDots=function(){this.pageDots.activate()};b.updateSelectedPageDots=function(){this.pageDots.updateSelected()};b.updatePageDots=function(){this.pageDots.setDots()};b.deactivatePageDots=function(){this.pageDots.deactivate()};c.PageDots=e;return c}));(function(b,a){if(typeof define=="function"&&define.amd){define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(c,d,e){return a(c,d,e)})}else{if(typeof module=="object"&&module.exports){module.exports=a(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity"))}else{a(b.EvEmitter,b.fizzyUIUtils,b.Flickity)}}}(window,function factory(a,b,e){function c(f){this.parent=f;this.state="stopped";this.onVisibilityChange=this.visibilityChange.bind(this);this.onVisibilityPlay=this.visibilityPlay.bind(this)}c.prototype=Object.create(a.prototype);c.prototype.play=function(){if(this.state=="playing"){return}var f=document.hidden;if(f){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing";document.addEventListener("visibilitychange",this.onVisibilityChange);this.tick()};c.prototype.tick=function(){if(this.state!="playing"){return}var f=this.parent.options.autoPlay;f=typeof f=="number"?f:3000;var g=this;this.clear();this.timeout=setTimeout(function(){g.parent.next(true);g.tick()},f)};c.prototype.stop=function(){this.state="stopped";this.clear();document.removeEventListener("visibilitychange",this.onVisibilityChange)};c.prototype.clear=function(){clearTimeout(this.timeout)};c.prototype.pause=function(){if(this.state=="playing"){this.state="paused";this.clear()}};c.prototype.unpause=function(){if(this.state=="paused"){this.play()}};c.prototype.visibilityChange=function(){var f=document.hidden;this[f?"pause":"unpause"]()};c.prototype.visibilityPlay=function(){this.play();document.removeEventListener("visibilitychange",this.onVisibilityPlay)};b.extend(e.defaults,{pauseAutoPlayOnHover:true});e.createMethods.push("_createPlayer");var d=e.prototype;d._createPlayer=function(){this.player=new c(this);this.on("activate",this.activatePlayer);this.on("uiChange",this.stopPlayer);this.on("pointerDown",this.stopPlayer);this.on("deactivate",this.deactivatePlayer)};d.activatePlayer=function(){if(!this.options.autoPlay){return}this.player.play();this.element.addEventListener("mouseenter",this)};d.playPlayer=function(){this.player.play()};d.stopPlayer=function(){this.player.stop()};d.pausePlayer=function(){this.player.pause()};d.unpausePlayer=function(){this.player.unpause()};d.deactivatePlayer=function(){this.player.stop();this.element.removeEventListener("mouseenter",this)};d.onmouseenter=function(){if(!this.options.pauseAutoPlayOnHover){return}this.player.pause();this.element.addEventListener("mouseleave",this)};d.onmouseleave=function(){this.player.unpause();this.element.removeEventListener("mouseleave",this)};e.Player=c;return e}));(function(b,a){if(typeof define=="function"&&define.amd){define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(d,c){return a(b,d,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("./flickity"),require("fizzy-ui-utils"))}else{a(b,b.Flickity,b.fizzyUIUtils)}}}(window,function factory(d,c,a){function e(g){var f=document.createDocumentFragment();g.forEach(function(h){f.appendChild(h.element)});return f}var b=c.prototype;b.insert=function(g,k){var j=this._makeCells(g);if(!j||!j.length){return}var f=this.cells.length;k=k===undefined?f:k;var i=e(j);var m=k==f;if(m){this.slider.appendChild(i)}else{var h=this.cells[k].element;this.slider.insertBefore(i,h)}if(k===0){this.cells=j.concat(this.cells)}else{if(m){this.cells=this.cells.concat(j)}else{var l=this.cells.splice(k,f-k);this.cells=this.cells.concat(j).concat(l)}}this._sizeCells(j);this.cellChange(k,true)};b.append=function(f){this.insert(f,this.cells.length)};b.prepend=function(f){this.insert(f,0)};b.remove=function(g){var h=this.getCells(g);if(!h||!h.length){return}var f=this.cells.length-1;h.forEach(function(i){i.remove();var j=this.cells.indexOf(i);f=Math.min(j,f);a.removeFrom(this.cells,i)},this);this.cellChange(f,true)};b.cellSizeChange=function(h){var f=this.getCell(h);if(!f){return}f.getSize();var g=this.cells.indexOf(f);this.cellChange(g)};b.cellChange=function(i,h){var g=this.selectedElement;this._positionCells(i);this._getWrapShiftCells();this.setGallerySize();var f=this.getCell(g);if(f){this.selectedIndex=this.getCellSlideIndex(f)}this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex);this.emitEvent("cellChange",[i]);this.select(this.selectedIndex);if(h){this.positionSliderAtSelected()}};return c}));(function(b,a){if(typeof define=="function"&&define.amd){define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(d,c){return a(b,d,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("./flickity"),require("fizzy-ui-utils"))}else{a(b,b.Flickity,b.fizzyUIUtils)}}}(window,function factory(e,d,a){d.createMethods.push("_createLazyload");var c=d.prototype;c._createLazyload=function(){this.on("select",this.lazyLoad)};c.lazyLoad=function(){var j=this.options.lazyLoad;if(!j){return}var g=typeof j=="number"?j:0;var h=this.getAdjacentCellElements(g);var i=[];h.forEach(function(k){var l=f(k);i=i.concat(l)});i.forEach(function(k){new b(k,this)},this)};function f(g){if(g.nodeName=="IMG"){var k=g.getAttribute("data-flickity-lazyload");var h=g.getAttribute("data-flickity-lazyload-src");var j=g.getAttribute("data-flickity-lazyload-srcset");if(k||h||j){return[g]}}var i="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]";var l=g.querySelectorAll(i);return a.makeArray(l)}function b(g,h){this.img=g;this.flickity=h;this.load()}b.prototype.handleEvent=a.handleEvent;b.prototype.load=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);var h=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src");var g=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=h;if(g){this.img.setAttribute("srcset",g)}this.img.removeAttribute("data-flickity-lazyload");this.img.removeAttribute("data-flickity-lazyload-src");this.img.removeAttribute("data-flickity-lazyload-srcset")};b.prototype.onload=function(g){this.complete(g,"flickity-lazyloaded")};b.prototype.onerror=function(g){this.complete(g,"flickity-lazyerror")};b.prototype.complete=function(j,i){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this);var g=this.flickity.getParentCell(this.img);var h=g&&g.element;this.flickity.cellSizeChange(h);this.img.classList.add(i);this.flickity.dispatchEvent("lazyLoad",j,h)};d.LazyLoader=b;return d}));
/*!
 * Flickity v2.2.0
 * Touch, responsive, flickable carousels
 *
 * Licensed GPLv3 for open source use
 * or Flickity Commercial License for commercial use
 *
 * https://flickity.metafizzy.co
 * Copyright 2015-2018 Metafizzy
 */
(function(b,a){if(typeof define=="function"&&define.amd){define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],a)}else{if(typeof module=="object"&&module.exports){module.exports=a(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload"))}}})(window,function factory(a){return a});
/*!
 * Flickity asNavFor v2.0.1
 * enable asNavFor for Flickity
 */
(function(b,a){if(typeof define=="function"&&define.amd){define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],a)}else{if(typeof module=="object"&&module.exports){module.exports=a(require("flickity"),require("fizzy-ui-utils"))}else{b.Flickity=a(b.Flickity,b.fizzyUIUtils)}}}(window,function factory(d,a){d.createMethods.push("_createAsNavFor");var c=d.prototype;c._createAsNavFor=function(){this.on("activate",this.activateAsNavFor);this.on("deactivate",this.deactivateAsNavFor);this.on("destroy",this.destroyAsNavFor);var g=this.options.asNavFor;if(!g){return}var f=this;setTimeout(function e(){f.setNavCompanion(g)})};c.setNavCompanion=function(e){e=a.getQueryElement(e);var g=d.data(e);if(!g||g==this){return}this.navCompanion=g;var f=this;this.onNavCompanionSelect=function(){f.navCompanionSelect()};g.on("select",this.onNavCompanionSelect);this.on("staticClick",this.onNavStaticClick);this.navCompanionSelect(true)};c.navCompanionSelect=function(i){if(!this.navCompanion){return}var h=this.navCompanion.selectedCells[0];var g=this.navCompanion.cells.indexOf(h);var j=g+this.navCompanion.selectedCells.length-1;var f=Math.floor(b(g,j,this.navCompanion.cellAlign));this.selectCell(f,false,i);this.removeNavSelectedElements();if(f>=this.cells.length){return}var e=this.cells.slice(g,j+1);this.navSelectedElements=e.map(function(k){return k.element});this.changeNavSelectedClass("add")};function b(f,e,g){return(e-f)*g+f}c.changeNavSelectedClass=function(e){this.navSelectedElements.forEach(function(f){f.classList[e]("is-nav-selected")})};c.activateAsNavFor=function(){this.navCompanionSelect(true)};c.removeNavSelectedElements=function(){if(!this.navSelectedElements){return}this.changeNavSelectedClass("remove");delete this.navSelectedElements};c.onNavStaticClick=function(g,h,e,f){if(typeof f=="number"){this.navCompanion.selectCell(f)}};c.deactivateAsNavFor=function(){this.removeNavSelectedElements()};c.destroyAsNavFor=function(){if(!this.navCompanion){return}this.navCompanion.off("select",this.onNavCompanionSelect);this.off("staticClick",this.onNavStaticClick);delete this.navCompanion};return d}));
/*!
 * imagesLoaded v4.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(b,a){if(typeof define=="function"&&define.amd){define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(c){return a(b,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("ev-emitter"))}else{b.imagesLoaded=a(b,b.EvEmitter)}}})(typeof window!=="undefined"?window:this,function factory(h,d){var f=h.jQuery;var e=h.console;function i(m,l){for(var n in l){m[n]=l[n]}return m}var a=Array.prototype.slice;function b(m){if(Array.isArray(m)){return m}var l=typeof m=="object"&&typeof m.length=="number";if(l){return a.call(m)}return[m]}function g(o,n,m){if(!(this instanceof g)){return new g(o,n,m)}var l=o;if(typeof o=="string"){l=document.querySelectorAll(o)}if(!l){e.error("Bad element for imagesLoaded "+(l||o));return}this.elements=b(l);this.options=i({},this.options);if(typeof n=="function"){m=n}else{i(this.options,n)}if(m){this.on("always",m)}this.getImages();if(f){this.jqDeferred=new f.Deferred()}setTimeout(this.check.bind(this))}g.prototype=Object.create(d.prototype);g.prototype.options={};g.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)};g.prototype.addElementImages=function(p){if(p.nodeName=="IMG"){this.addImage(p)}if(this.options.background===true){this.addElementBackgroundImages(p)}var l=p.nodeType;if(!l||!c[l]){return}var q=p.querySelectorAll("img");for(var o=0;o<q.length;o++){var m=q[o];this.addImage(m)}if(typeof this.options.background=="string"){var n=p.querySelectorAll(this.options.background);for(o=0;o<n.length;o++){var r=n[o];this.addElementBackgroundImages(r)}}};var c={1:true,9:true,11:true};g.prototype.addElementBackgroundImages=function(n){var m=getComputedStyle(n);if(!m){return}var p=/url\((['"])?(.*?)\1\)/gi;var o=p.exec(m.backgroundImage);while(o!==null){var l=o&&o[2];if(l){this.addBackground(l,n)}o=p.exec(m.backgroundImage)}};g.prototype.addImage=function(l){var m=new j(l);this.images.push(m)};g.prototype.addBackground=function(l,n){var m=new k(l,n);this.images.push(m)};g.prototype.check=function(){var m=this;this.progressedCount=0;this.hasAnyBroken=false;if(!this.images.length){this.complete();return}function l(p,o,n){setTimeout(function(){m.progress(p,o,n)})}this.images.forEach(function(n){n.once("progress",l);n.check()})};g.prototype.progress=function(n,m,l){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;this.emitEvent("progress",[this,n,m]);if(this.jqDeferred&&this.jqDeferred.notify){this.jqDeferred.notify(this,n)}if(this.progressedCount==this.images.length){this.complete()}if(this.options.debug&&e){e.log("progress: "+l,n,m)}};g.prototype.complete=function(){var m=this.hasAnyBroken?"fail":"done";this.isComplete=true;this.emitEvent(m,[this]);this.emitEvent("always",[this]);if(this.jqDeferred){var l=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[l](this)}};function j(l){this.img=l}j.prototype=Object.create(d.prototype);j.prototype.check=function(){var l=this.getIsImageComplete();if(l){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image();this.proxyImage.addEventListener("load",this);this.proxyImage.addEventListener("error",this);this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.proxyImage.src=this.img.src};j.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth};j.prototype.confirm=function(l,m){this.isLoaded=l;this.emitEvent("progress",[this,this.img,m])};j.prototype.handleEvent=function(l){var m="on"+l.type;if(this[m]){this[m](l)}};j.prototype.onload=function(){this.confirm(true,"onload");this.unbindEvents()};j.prototype.onerror=function(){this.confirm(false,"onerror");this.unbindEvents()};j.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};function k(l,m){this.url=l;this.element=m;this.img=new Image()}k.prototype=Object.create(j.prototype);k.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;var l=this.getIsImageComplete();if(l){this.confirm(this.img.naturalWidth!==0,"naturalWidth");this.unbindEvents()}};k.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};k.prototype.confirm=function(l,m){this.isLoaded=l;this.emitEvent("progress",[this,this.element,m])};g.makeJQueryPlugin=function(l){l=l||h.jQuery;if(!l){return}f=l;f.fn.imagesLoaded=function(n,o){var m=new g(this,n,o);return m.jqDeferred.promise(f(this))}};g.makeJQueryPlugin();return g});
/*!
 * Flickity imagesLoaded v2.0.0
 * enables imagesLoaded option for Flickity
 */
(function(b,a){if(typeof define=="function"&&define.amd){define(["flickity/js/index","imagesloaded/imagesloaded"],function(d,c){return a(b,d,c)})}else{if(typeof module=="object"&&module.exports){module.exports=a(b,require("flickity"),require("imagesloaded"))}else{b.Flickity=a(b,b.Flickity,b.imagesLoaded)}}}(window,function factory(d,c,a){c.createMethods.push("_createImagesLoaded");var b=c.prototype;b._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)};b.imagesLoaded=function(){if(!this.options.imagesLoaded){return}var f=this;function e(h,i){var g=f.getParentCell(i.img);f.cellSizeChange(g&&g.element);if(!f.options.freeScroll){f.positionSliderAtSelected()}}a(this.slider).on("progress",e)};return c}));
/*!
 * Flickity imagesLoaded v2.0.0
 * enables imagesLoaded option for Flickity
 */

/*jshint browser: true, strict: true, undef: true, unused: true */

( function( window, factory ) {
  // universal module definition
  /*jshint strict: false */ /*globals define, module, require */
  if ( typeof define == 'function' && define.amd ) {
    // AMD
    define( [
      'flickity/js/index',
      'imagesloaded/imagesloaded'
    ], function( Flickity, imagesLoaded ) {
      return factory( window, Flickity, imagesLoaded );
    });
  } else if ( typeof module == 'object' && module.exports ) {
    // CommonJS
    module.exports = factory(
      window,
      require('flickity'),
      require('imagesloaded')
    );
  } else {
    // browser global
    window.Flickity = factory(
      window,
      window.Flickity,
      window.imagesLoaded
    );
  }

}( window, function factory( window, Flickity, imagesLoaded ) {
'use strict';

Flickity.createMethods.push('_createImagesLoaded');

var proto = Flickity.prototype;

proto._createImagesLoaded = function() {
  this.on( 'activate', this.imagesLoaded );
};

proto.imagesLoaded = function() {
  if ( !this.options.imagesLoaded ) {
    return;
  }
  var _this = this;
  function onImagesLoadedProgress( instance, image ) {
    var cell = _this.getParentCell( image.img );
    _this.cellSizeChange( cell && cell.element );
    if ( !_this.options.freeScroll ) {
      _this.positionSliderAtSelected();
    }
  }
  imagesLoaded( this.slider ).on( 'progress', onImagesLoadedProgress );
};

return Flickity;

}));
/*!
Name: Reading Time
Dependencies: jQuery
Author: Michael Lynch
Author URL: http://michaelynch.com
Date Created: August 14, 2013
Date Updated: May 2, 2018
Licensed under the MIT license
*/
!function (n) {
    n.fn.readingTime = function (e) {
        const t = n(this);
        let i, r, a, s, u, g, l, m, o;
        this.settings = n.extend({}, {
            readingTimeTarget: ".eta",
            readingTimeAsNumber: !1,
            wordCountTarget: null,
            wordsPerMinute: 270,
            round: !0,
            lang: "de",
            lessThanAMinuteString: "",
            prependTimeString: "",
            prependWordString: "",
            remotePath: null,
            remoteTarget: null,
            success: function () {
            },
            error: function () {
            }
        }, e);
        const d = this.settings, T = function (e) {
            "" !== e.text ? (s = e.text.trim().split(/\s+/g).length, i = d.wordsPerMinute / 60, u = s / i, g = Math.floor(u / 60), l = Math.round(u - 60 * g), m = `${g}:${l}`, d.round ? g > 0 ? n(d.readingTimeTarget).text(d.prependTimeString + g + (d.readingTimeAsNumber ? "" : " " + a)) : n(d.readingTimeTarget).text(d.readingTimeAsNumber ? g : d.prependTimeString + r) : n(d.readingTimeTarget).text(d.prependTimeString + m), "" !== d.wordCountTarget && void 0 !== d.wordCountTarget && n(d.wordCountTarget).text(d.prependWordString + s), o = {
                wpm: d.wordsPerMinute,
                words: s,
                eta: {time: m, minutes: g, seconds: u}
            }, d.success.call(this, o)) : d.error.call(this, {error: "The element does not contain any text"})
        };
        return this.length ? ("ar" == d.lang ? (r = d.lessThanAMinuteString || "أقل من دقيقة", a = "دقيقة") : "cz" == d.lang ? (r = d.lessThanAMinuteString || "Méně než minutu", a = "min") : "da" == d.lang ? (r = d.lessThanAMinuteString || "Mindre end et minut", a = "min") : "de" == d.lang ? (r = d.lessThanAMinuteString || "< eine Minute", a = "min") : "es" == d.lang ? (r = d.lessThanAMinuteString || "Menos de un minuto", a = "min") : "fr" == d.lang ? (r = d.lessThanAMinuteString || "Moins d'une minute", a = "min") : "hu" == d.lang ? (r = d.lessThanAMinuteString || "Kevesebb mint egy perc", a = "perc") : "is" == d.lang ? (r = d.lessThanAMinuteString || "Minna en eina mínútu", a = "min") : "it" == d.lang ? (r = d.lessThanAMinuteString || "Meno di un minuto", a = "min") : "nl" == d.lang ? (r = d.lessThanAMinuteString || "Minder dan een minuut", a = "min") : "no" == d.lang ? (r = d.lessThanAMinuteString || "Mindre enn ett minutt", a = "min") : "pl" == d.lang ? (r = d.lessThanAMinuteString || "Mniej niż minutę", a = "min") : "ru" == d.lang ? (r = d.lessThanAMinuteString || "Меньше минуты", a = "мин") : "sk" == d.lang ? (r = d.lessThanAMinuteString || "Menej než minútu", a = "min") : "sv" == d.lang ? (r = d.lessThanAMinuteString || "Mindre än en minut", a = "min") : "tr" == d.lang ? (r = d.lessThanAMinuteString || "Bir dakikadan az", a = "dk") : "uk" == d.lang ? (r = d.lessThanAMinuteString || "Менше хвилини", a = "хв") : (r = d.lessThanAMinuteString || "Less than a minute", a = "min"), t.each(function (e) {
            null != d.remotePath && null != d.remoteTarget ? n.get(d.remotePath, function (e) {
                let t = document.createElement("div");
                t.innerHTML = e, T({text: n(t).find(d.remoteTarget).text()})
            }) : T({text: t.text()})
        }), !0) : (d.error.call(this, {error: "The element could not be found"}), this)
    }
}(jQuery);

/*
jQuery(document).ready(function(){
    jQuery('h1, h2, h3, h4, h5, p, a, strong, b, em, i, label').each(function(){
        html = jQuery(this).html();
        if (jQuery(this).children().length == 0 && html.indexOf("no-uppercase") < 0) {
            jQuery(this).html( jQuery(this).html().replace( /ß/g, '<span class="no-uppercase">ẞ</span>' ) );
        }
    });
});
*/


jQuery(document).ready(function(){
    jQuery('h1, h2, h3, h4, h5, p, a, strong, b, em, i, label').each(function(){
        html = jQuery(this).html();
        if (jQuery(this).children().length == 0 && html.indexOf("no-uppercase") < 0 && jQuery(this).css("text-transform") === "uppercase") {
            jQuery(this).html( jQuery(this).html().replace( /ß/g, 'ẞ' ) );
        }
    });
});




$(".intro-slide").first().addClass("active");

$(function () {
    $('article').each(function () {
        let _this = $(this);
        _this.readingTime({
            readingTimeTarget: _this.find('.eta'),
            remotePath: _this.attr('data-file'),
            remoteTarget: _this.attr('data-target'),
            success: function (data) {
                console.log(data);
            }
        });
    });
});

$('article').readingTime( );

(function() {

	"use strict";

	const app = {

		init: () => {

			//=== Start page ===\\
			app.startPage();

			//=== Lazy loading ===\\
			app.lazyLoading();


			//=== Cookie ===\\
			if(app.COOKIE_DISPLAYED) { app.cookieCheck(); }
			app.setUpListeners();

            //=== Animations ===\\
            app.animations.init();

            /*
              //=== Custom cursor ===\\
              app.cursor();
            */

			//=== Paralax circles for image items ===\\
			app.paralaxEl.init('.pitem-img', 20);

			//=== Paralax circles for pricing ===\\
			app.paralaxEl.init('.pricing-table-item-btn-parallax', 20);

			//=== Paralax brand in numbers ===\\
			app.paralaxEl.init('.bin-container', 10);
			app.paralaxEl.init('.bin-item-bordered', 20);

			//=== Forming href for phone ===\\
			app.formingHrefTel();

			//=== Intro slider ===\\
			app.introSlider.init();

			//=== News item image ===\\
			app.newsItemImg.init();

			//=== Testimonials ===\\
			app.testimonials.init();

			//=== Brands ===\\
			app.brands.init();

			//=== Marquee ===\\
			app.marquee();

			//=== SEO ===\\
			app.seo();

			//=== Elements wide fixed ===\\
			app.elWideFixed.init();

			//=== Content table responsive ===\\
			app.contentTableResponsive();

			//=== Go to top trigger ===\\
			app.goToTopTrigger();

			app.customLog();

		},

		setUpListeners: () => {

			//=== Tabs ===\\
			const tabsNav = document.querySelectorAll(".tabs-nav li");
			if(tabsNav.length) {
				tabsNav.forEach(item => { item.addEventListener("click", app.tabs); });
			}

			//=== Accordion ===\\
			const accordionBtn = document.querySelectorAll(".accordion-toggle");
			if(accordionBtn.length) {
				accordionBtn.forEach(item => { item.addEventListener("click", app.accordion); });
			}

			//=== Menu ===\\
			const menuBtn = document.querySelector(".mnu-btn");
			if(menuBtn !== null) { menuBtn.addEventListener("click", app.menu.init); }
			const menuItemBtns = document.querySelectorAll(".mmi-btn");
			if(menuItemBtns.length) { menuItemBtns.forEach(btn => { btn.addEventListener("click", app.menu.itemToggle); }); }
			const menuItemBtn2s = document.querySelectorAll(".mmi-btn2");
			if(menuItemBtn2s.length) { menuItemBtns.forEach(btn => { btn.addEventListener("click", app.menu.itemToggle); }); }

			//=== Lang ===\\
			const lang = document.querySelector(".lang-current");
			if(lang !== null) { lang.addEventListener("click", app.langToggle); }
			document.addEventListener("click", app.langCloseNotEl);

			//=== Popup ===\\
			const pClass = document.querySelectorAll(".btn-popup-open, .popup-close");
			if(pClass.length) {
				pClass.forEach(item => { item.addEventListener("click", app.popup.init); });
			}

			//=== Scroll to next section ===\\
			const btnScrollToNextSection = document.querySelectorAll(".btn-scroll-to-next-section");
			if(btnScrollToNextSection.length) {
				btnScrollToNextSection.forEach(item => { item.addEventListener("click", app.scrollToNextSection); });
			}
			const btnScrollToSection = document.querySelectorAll(".btn-scroll-to-section");
			if(btnScrollToSection.length) {
				btnScrollToSection.forEach(item => { item.addEventListener("click", app.scrollToSection); });
			}

			//=== Go to top ===\\
			const btnGoToTop = document.querySelector(".go-to-top");
			if(btnGoToTop !== null) { btnGoToTop.addEventListener("click", app.goToTop); }

			//=== Cookie ===\\
			const cookieBtn = document.querySelector(".cookie-btn");
			if(cookieBtn !== null) { cookieBtn.addEventListener("click", app.cookieSet); }

		},

		//=== Start page ===\\
		startPage: () => {

			const preloader = document.querySelector(".preloader");

			if(preloader !== null) {

				preloader.classList.remove("active");

			}

		},

		//=== Lazy loading ===\\
		lazyLoading: () => {

			const observer = lozad(".lazy", {
				loaded: el => {

					if(el.tagName.toLowerCase() === 'picture') {

						const sources = el.querySelectorAll("source");

						if(sources.length) {

							sources.forEach( (item) => {

								const srcset = item.getAttribute('data-srcset');

								if(srcset !== null) {

									item.setAttribute("srcset", srcset);
									item.removeAttribute("data-srcset");

								}

							});

						}

					}

				}
			});
			observer.observe();

		},

		//=== Tabs ===\\
		tabs: e => {

			let _this = e.currentTarget,
				index = app.index(_this) - 1,
				tabs = _this.closest(".tabs"),
				items = tabs.querySelectorAll(".tabs-item");

			if (!_this.classList.contains("active")) {

				_this.classList.add("active");
				items[index].classList.add("active");

				app.siblings(_this).forEach(item => { item.classList.remove("active"); });
				app.siblings(items[index]).forEach(item => { item.classList.remove("active"); });

			}

		},

		//=== Accordion ===\\
		ACCORDION_FLAG: true,
		accordion: e => {

			e.preventDefault();

			const duration = 400;

			if(app.ACCORDION_FLAG === true) {

				app.ACCORDION_FLAG = false;

				const _this = e.currentTarget,
					  item = _this.closest(".accordion-item"),
					  container = _this.closest(".accordion"),
					  items = container.querySelectorAll(".accordion-item"),
					  content = item.querySelector(".accordion-content"),
					  activeContent = container.querySelector(".accordion-item.active .accordion-content");

				if (!item.classList.contains("active")) {
					items.forEach(function(item) { item.classList.remove("active"); });
					item.classList.add("active");
					if(activeContent !== null) { app.slideUp(activeContent, duration); }
					app.slideDown(content, duration);
				} else {
					item.classList.remove("active");
					app.slideUp(content, duration);
				}

			}

			window.setTimeout(function() { app.ACCORDION_FLAG = true }, duration);

		},

		//=== Menu ===\\
		menu: {

			BODY: document.getElementsByTagName("body")[0],
			HEADER: document.querySelector(".header"),
			TARGET: document.querySelector(".main-menu"),
			TL: gsap.timeline(),

			init: () => {

				if(!app.menu.TARGET.classList.contains("main-menu-transition")) {
					app.menu.TARGET.classList.add("main-menu-transition");
				}

				app.menu.BODY.classList.toggle("mm-open");

				if(window.pageYOffset === 0) { app.menu.HEADER.classList.toggle("header-min"); }

			},


			itemToggle: e => {

				e.preventDefault();

				const li = e.currentTarget.closest("li"),
					  container = li.closest(".sag-list"),
					  ulToggle = li.querySelector("ul"),
					  liOthers = container.querySelectorAll("li.open"),
					  duration = 500;

				li.classList.toggle("open");

				if(ulToggle !== null) {

					if(liOthers.length) {
						liOthers.forEach(function(li) {
							const ul = li.querySelector("ul");
							if(ul !== null) {
								li.classList.remove("open");
								app.slideUp(ul, duration);
							}
						});
					}
					app.slideToggle(ulToggle, duration);

				}

			}

		},

		//=== Lang ===\\
		langToggle: e => {

			const container = e.currentTarget.closest(".lang");

			container.classList.toggle("open");
			if(container.classList.contains("open")) {
				gsap.fromTo(".lang-list > li", 0.3, {y: 20, opacity: 0}, {y: 0, opacity: 1, stagger: 0.1});
			}

		},
		langCloseNotEl: e => {

			const lang = document.querySelector(".lang");
			if(lang !== null && lang.classList.contains("open")) {

				if (e.target.closest(".lang") !== null) return;
				lang.classList.remove("open");
				e.stopPropagation();

			}

		},

		//=== Popup ===\\
		popup: {

			body: document.getElementsByTagName("body")[0],
			target: null,
			id: null,

			init: e => {

				e.preventDefault();

				const _this = e.currentTarget;

				if(_this.classList.contains("btn-popup-open")) {
					app.popup.id = _this.getAttribute("data-popup-id");
				}

				if(app.popup.id !== null) {

					app.popup.target = document.querySelector(app.popup.id);

					if(app.popup.target !== null) {

						if(!app.popup.target.classList.contains("popup-transition")) { app.popup.target.classList.add("popup-transition");	}
						app.popup.body.classList.add("popup-open");
						app.popup.animIn();

					}

				}

				if(_this.classList.contains("popup-close")) {

					app.popup.target = _this.closest(".popup");

					if(app.popup.target !== null) {

						app.popup.body.classList.remove("popup-open");
						app.popup.animOut();

					}

				}

			},

			animIn: () => {

				setTimeout(function() { app.popup.body.classList.add("overflow-hidden"); }, 0);

				if(!app.popup.target.querySelector(".marquee")) {
					gsap.fromTo(app.popup.target.querySelectorAll(".popup-anim"), 0.3, {opacity: 0}, {opacity: 1, delay: 0.4, stagger: 0.2});
				} else {
					gsap.fromTo(app.popup.target.querySelectorAll(".popup-anim, .marquee"), 0.3, {opacity: 0}, {opacity: 1, delay: 0.4, stagger: 0.2});
				}

			},

			animOut: () => {

				setTimeout(function() { app.popup.body.classList.remove("overflow-hidden"); }, 300);

				gsap.fromTo(app.popup.target.querySelectorAll(".popup-anim"), 0.3, {opacity: 1}, {opacity: 0, delay: 0});
				if(app.popup.target.querySelector(".marquee") !== null) {
					gsap.fromTo(app.popup.target.querySelector(".marquee"), 0.3, {opacity: 1}, {opacity: 0, delay: 0});
				}

			},

		},

		//=== Scroll to section ===\\
		scrollToNextSection: e => {

			const currentSection = e.currentTarget.closest(".section");

			if(currentSection !== null) {

				const nextSection = currentSection.nextElementSibling;

				if(nextSection !== null && (nextSection.classList.contains("section") || nextSection.classList.contains("marquee"))) {

					gsap.to(window, 0.6, { scrollTo: {y: nextSection.offsetTop, offsetY: 0 }});

				}

			}

		},
		scrollToSection: e => {

			const id = e.currentTarget.getAttribute("data-id");

			if(id !== null && document.querySelector(id) !== null) {

				gsap.to(window, 0.6, { scrollTo: { y: id, offsetY: 0 }});

			}

		},

		//=== Go to top ===\\
		goToTop: e => {

			gsap.to(window, 1, {scrollTo: { y: 0, offsetY: 0 }});

		},

		//=== Go to top trigger ===\\
		goToTopTrigger: () => {

			ScrollTrigger.matchMedia({
				"(min-width: 768px)": () => {
					ScrollTrigger.create({
						trigger: 'body',
						start: '300px top',
						end: 'max+=100',
						toggleClass: { targets: ".go-to-top", className: "active" }
					});
				},
			});

		},

		//=== Animations ===\\

		ANIMATION_DELAY: 0.2,
		animations: {

			init: () => {

				/*=== Delay ===*/
				app.animations.delay();

				/*=== Settings ===*/
				app.animations.settings();

				/*=== Components ===*/
				app.animations.components();

				/*=== Layouts ===*/
				app.animations.layouts();

				/*=== Sections ===*/
				app.animations.sections();

				/*=== Pages ===*/
				app.animations.pages();

			},

			/*=== Settings ===*/
			settings: () => {

				/*--- Plugin registration ---*/
				gsap.registerPlugin(ScrollTrigger, SplitText, DrawSVGPlugin, ScrollToPlugin);

				/*--- Default ScrollTrigger settings ---*/
				ScrollTrigger.defaults({ start: "top 90%" });

			},

			/*=== Delay ===*/
			delay: () => {

				let scrolling = false;
				window.addEventListener("scroll", (e) => {
					if(!scrolling) { scrolling = true; app.ANIMATION_DELAY = 0; }
				});

			},

			/*=== Components ===*/
			components: () => {

				/*--- Buttons ---*/
				app.animations.buttons();

				/*--- Pagination ---*/
				app.animations.pagination();

				/*--- Bread crumbs ---*/
				app.animations.breadCrumbs();

				/*--- Tabs ---*/
				app.animations.tabs();

				/*--- Accordion ---*/
				app.animations.accordion();

			},

			/*=== Layouts ===*/
			layouts: () => {

				/*--- Header ---*/
				app.animations.header();

				/*--- Footer ---*/
				app.animations.footer();

			},

			/*=== Sections ===*/
			sections: () => {

				/*--- Section Heading ---*/
				app.animations.sectionHeading();

				/*--- Section footer ---*/
				app.animations.sectionFooter();

				/*--- Intro ---*/
				app.animations.intro();

				/*--- Intro slider ---*/
				app.animations.introSlider();

				/*--- Image items ---*/
				app.animations.imageItems();

				/*--- Items of numbers ---*/
				app.animations.itemsOfNumbers();

				/*--- Icon items ---*/
				app.animations.iconItems();

				/*--- News ---*/
				app.animations.news();

				/*--- Contacts ---*/
				app.animations.contacts();

				/*--- Brand in numbers ---*/
				app.animations.brandInNumbers();

				/*--- Team ---*/
				app.animations.team();

				/*--- Testimonials ---*/
				app.animations.testimonials();

				/*--- Brands ---*/
				app.animations.brands();

				/*--- Pricing ---*/
				app.animations.pricing();

				/*--- SEO ---*/
				app.animations.seo();

			},

			/*=== Pages ===*/
			pages: () => {

				app.animations.itemsAnim(".article-content-anim", ".article-content", [1, 1]);
				app.animations.itemsAnim(".content-anim-outer", ".content-anim", [1, 1]);

			},

			/*--- Buttons ---*/
			buttons: () => {

				if(document.querySelectorAll(".btn-anim").length) {

					gsap.utils.toArray(".btn-anim").forEach(btn => {

						const tl = gsap.timeline({ scrollTrigger: { trigger: btn } });
						const btnTC = btn.querySelector(".btn-tc");
						const btnCircleSpikes = btn.querySelector(".btn-сircle-spikes");

						tl.from(btn.querySelector(".cdb-circle"), 0.6, {drawSVG:"0", ease:Power2.easeIn }, "start+=" + app.ANIMATION_DELAY)
						  .from(btn.querySelector(".cd-icon path"), 0.6, {drawSVG:"0", ease:Power2.easeInOut, onComplete: app.animations.circleHover, onCompleteParams: [btn] }, "start+=" + (app.ANIMATION_DELAY + 0.35));

						if(btnTC !== null) { tl.from(btnTC, 0.6, {opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.5)); }
						if(btnCircleSpikes !== null) { tl.from(btnCircleSpikes, 0.4, {opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.65)); }

					});

				}

			},
			/*--- Pagination ---*/
			pagination: () => {

				const pagination = document.querySelectorAll(".pagination");
				if(pagination.length) {

					let tl = gsap.timeline({
						scrollTrigger: {
							trigger: pagination,
							start: "top 100%"
						}
					});

					tl.from(pagination, 0.4, { y: 40, opacity: 0 }, "start+=" + app.ANIMATION_DELAY);

				}

			},
			/*--- Bread crumbs ---*/
			breadCrumbs: () => {

				if(document.querySelectorAll(".bread-crumbs").length) {

					gsap.from(".bread-crumbs", 0.4, {x: 20, opacity: 0, delay: (app.ANIMATION_DELAY + 0.1) });

				}

			},
			/*--- Tabs ---*/
			tabs: () => {

				app.animations.itemsAnim(".tabs", ".tabs-anim", [1, 1]);

			},
			/*--- Accordion ---*/
			accordion: () => {

				app.animations.itemsAnim(".accordion", ".accordion-item", [1, 1]);

			},

			/*--- Header ---*/
			header: () => {

				gsap.set(".hf-amin", { opacity: 0 });

				if(window.pageYOffset === 0) {
					gsap.fromTo(".h-amin, .hf-amin", 0.4, {opacity: 0}, {opacity: 1, delay: app.ANIMATION_DELAY, stagger: 0.05});
				} else if(window.pageYOffset > 0) {
					gsap.from(".h-amin", 0.4, {opacity: 0, delay: app.ANIMATION_DELAY, stagger: 0.05});
				}

				ScrollTrigger.matchMedia({
					"(min-width: 768px)": () => {
						ScrollTrigger.create({
							trigger: 'body',
							start: '1px top',
							toggleClass: { targets: ".header", className: "header-min" },
							onEnter: () => gsap.to('.hf-amin', 0.2, { opacity: 0 }),
							onLeaveBack: () => gsap.to('.hf-amin', 0.2, { opacity: 1, stagger: 0.05 })
						});
					},
				});

				ScrollTrigger.create({
					start: 'top -80',
					end: 99999,
					toggleClass: {className: 'hf-main-scroll', targets: 'header'}
				});

			},
			/*--- Footer ---*/
			footer: () => {

				if(document.querySelector(".footer-fixed") !== null) {
					ScrollTrigger.matchMedia({
						"(min-width: 768px)": () => {
							gsap.from(".footer-fixed", 0.4, {x: 10, opacity: 0, delay: app.ANIMATION_DELAY + 0.1});
						},
					});
				}

			},

			/*--- Section Heading ---*/
			sectionHeading: () => {

				const sections = gsap.utils.toArray(".section");

				if(sections.length) {

					sections.forEach(section => {

						let tl = gsap.timeline({
								scrollTrigger: {
									trigger: section
								},
								onComplete: () => {
									tl.kill();
									headingSplitText.revert();
								}
							}),
							sectionHeading = section.querySelectorAll(".section-heading h1, .section-heading h2, .section-heading h3"),
							line = section.querySelectorAll(".sh-line"),
							desc = section.querySelector(".section-desc"),
							headingSplitText = new SplitText(sectionHeading, {type:"words, lines", linesClass:"shd-line"}),
							wordsh2 = headingSplitText.words;

						if(sectionHeading.length) {
							tl.from(wordsh2, 0.4, { yPercent: 100, stagger: 0.1, ease: "Power1.easeOut", }, "start+=" + app.ANIMATION_DELAY);
						}
						if(line.length) {
							tl.from(line, 0.4, { scaleX: 0, transformOrigin: "right center", ease: "none" }, "start+=" + app.ANIMATION_DELAY);
						}
						if(desc !== null) { tl.from(desc, 0.4, { opacity: 0, x: 10 }, "start+=" + (app.ANIMATION_DELAY + 0.1)); }

					});

				}

			},
			/*--- Section footer ---*/
			sectionFooter: () => {

				if(document.querySelectorAll(".section-footer").length) {

					gsap.utils.toArray(".section-footer").forEach(footer => {

						const tl = gsap.timeline({ scrollTrigger: { trigger: footer } });
						const content = footer.querySelector(".section-footer-content");

						if(content !== null) { tl.from(content, 0.6, { opacity: 0, x: 20 }, "start+=" + app.ANIMATION_DELAY); }

					});

				}

			},
			/*--- Intro ---*/
			intro: () => {

				const sections = gsap.utils.toArray(".intro");

				if(sections.length) {

					sections.forEach(intro => {

						const tl = gsap.timeline({
								scrollTrigger: {
									trigger: intro
								}
							}),
							_this = app.animations,
							desc = intro.querySelector(".intro-desc-anim"),
							btn = intro.querySelector(".btn-outer"),
							btnTextCircle = intro.querySelector(".btn-text-circle"),
							idlbArrows = intro.querySelector(".idlb-arrows"),
							textCircle = intro.querySelector(".intro-text-circle");

						_this.textAnimation(tl, desc, 0.05, "start+=" + (app.ANIMATION_DELAY + 0.2));
						if(btn !== null) {
							tl.from(btn.querySelector(".cdb-circle"), 0.6, {drawSVG:"0", ease:Power2.easeIn }, "start+=" + app.ANIMATION_DELAY)
							  .from(btn.querySelector(".cd-icon path"), 0.6, {drawSVG:"0", ease:Power2.easeInOut, onComplete: app.animations.circleHover, onCompleteParams: [btn] }, "start+=" + (app.ANIMATION_DELAY + 0.35));
						}
						if(btnTextCircle !== null) {
							tl.from(btnTextCircle.querySelector(".cd-icon path"), 0.6, {drawSVG:"0", ease:Power2.easeInOut, onComplete: app.animations.circleHover, onCompleteParams: [btnTextCircle] }, "start+=" + (app.ANIMATION_DELAY + 0.4))
							  .from(btnTextCircle.querySelector(".btn-circle"), 0.4, { opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.6));
						}
						if(idlbArrows !== null) { tl.from(idlbArrows, 0.4, { x: -20, opacity: 0}, "start+=" + (app.ANIMATION_DELAY + 0.55)); }
						if(textCircle !== null) { tl.from(textCircle, 0.4, { opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.55)); }

					});

				}

			},
			/*--- Intro Slider ---*/
			introSlider: () => {

				const sections = gsap.utils.toArray(".intro-slider");

				if(sections.length) {

					sections.forEach(introSlider => {

						const tl = gsap.timeline({
								scrollTrigger: {
									trigger: introSlider
								},
								onComplete: () => {
									tl.kill();
								}
							}),
							desc = introSlider.querySelector(".intro-desc-anim"),
							slide = introSlider.querySelector(".intro-slide.active"),
							bg = slide.querySelector(".intro-slide-bg"),
							btn = slide.querySelector(".btn-outer"),
							textCircle = slide.querySelector(".intro-slider-text-circle"),
							navBtns = introSlider.querySelectorAll(".slider-btn");


						if(navBtns.length) { tl.set(navBtns, { opacity: 0, y: 20 }); }
						if(bg !== null) { tl.from(bg, 0.6, { opacity: 0 }, "start+=" + app.ANIMATION_DELAY); }
						if(btn !== null) {
							tl.from(btn.querySelector(".cdb-circle"), 0.6, {drawSVG:"0", ease:Power2.easeIn }, "start+=" + app.ANIMATION_DELAY)
							  .from(btn.querySelector(".cd-icon path"), 0.6, {drawSVG:"0", ease:Power2.easeInOut, onComplete: app.animations.circleHover, onCompleteParams: [btn] }, "start+=" + (app.ANIMATION_DELAY + 0.35));
						}
						if(textCircle !== null) { tl.from(textCircle, 0.6, { opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.2)); }
						if(navBtns.length) { tl.to(navBtns, 0.4, { opacity: 1, y: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.5)); }
						if(desc !== null) { app.animations.textAnimation(tl, desc, 0.05, "start+=" + (app.ANIMATION_DELAY + 0.2)); }

					});

				}

			},
			/*--- Image items ---*/
			imageItems: () => {

				app.animations.itemsAnim(".image-items", ".pitem", [1, 4]);

			},
			/*--- Items of numbers ---*/
			itemsOfNumbers: () => {

				const sections = gsap.utils.toArray(".items-of-numbers");

				app.animations.itemsAnim(".items-of-numbers", ".nitem-amin", [1, 2]);

				if(sections.length) {

					sections.forEach(section => {

						const nitems = section.querySelector(".nitems"),
							tl = gsap.timeline({
								scrollTrigger: {
									trigger: nitems
								}
							}),
							ifnDecor = section.querySelector(".ifn-decor"),
							decorAnim = section.querySelector(".decor-anim");

						if(ifnDecor !== null) {
							tl.from(ifnDecor, 0.4, { opacity: 0, delay: app.ANIMATION_DELAY+0.4 }, "pos");
						}
						if(decorAnim !== null && ifnDecor !== null) {
							ScrollTrigger.matchMedia({
								"(min-width: 768px)": () => {
									gsap.fromTo(ifnDecor, {
										y: 0
									}, {
										y: app.offsetHeight(decorAnim) - app.offsetHeight(ifnDecor),
										scrollTrigger: {
											trigger: decorAnim,
											scrub: true,
											start: "top center",
											end: "+=" + app.offsetHeight(decorAnim) - app.offsetHeight(ifnDecor)
										},
										ease: "none"
									});
								}
							});
						}

						const items = section.querySelectorAll(".nitem-style");
						if(nitems !== null && nitems.classList.contains("nitemsStyle") && items.length) {

							let incrementDelay = 0.1;

							items.forEach((item, index) => {

								const numb = item.querySelector(".nitem-numb-abs span"),
									  decor = item.querySelector(".nitem-arrow-decor svg"),
									  heading = item.querySelector(".item-heading-large"),
									  desc = item.querySelector(".item-desc");

								tl.from(heading, 0.4, { x: 20, opacity: 0 }, "pos+=" + (app.ANIMATION_DELAY + (incrementDelay * index)))
								.from(desc, 0.4, { x: 20, opacity: 0 }, "pos+=" + (app.ANIMATION_DELAY + 0.1 + (incrementDelay * index)))
								.from(numb, 0.4, { xPercent: 100, opacity: 0 }, "pos+=" + (app.ANIMATION_DELAY + 0.2 + (incrementDelay * index)))
								.from(decor, 0.4, { x: -10, opacity: 0 }, "pos+=" + (app.ANIMATION_DELAY + 0.3 + (incrementDelay * index)));

							});

						}

					});

				}

			},
			/*--- Icon items ---*/
			iconItems: () => {

				const sections = gsap.utils.toArray(".icon-items");

				if(sections.length) {

					sections.forEach(section => {

						const iitems = section.querySelector(".iitems"),
							tl = gsap.timeline({
								scrollTrigger: {
									trigger: iitems
								}
							}),
							items = section.querySelectorAll(".iitem");

						if(iitems !== null && items.length) {

							let incrementDelay = 0.1;

							items.forEach((item, index) => {

								const b1 = item.querySelector(".b1"),
									  b2 = item.querySelector(".b2"),
									  b3 = item.querySelector(".b3"),
									  b4 = item.querySelector(".b4"),
									  iconOuter = item.querySelector(".iitem-icon"),
									  icon = iconOuter.querySelector("svg"),
									  line = item.querySelector(".iitem-line-decor"),
									  heading = item.querySelector(".item-heading-large"),
									  headingMin = item.querySelector(".item-heading"),
									  desc = item.querySelector(".item-desc"),
									  numb = item.querySelector(".iitem-numb-abs span");

								if(b1 !== null && b2 !== null && b3 !== null && b4 !== null) {
									tl.from(b1, 0.4, { scaleX: 0, transformOrigin: "left center", ease: "none" }, "start+=" + (app.ANIMATION_DELAY + (incrementDelay * index)))
									  .from(b2, 0.4, { scaleY: 0, transformOrigin: "center top", ease: "none" }, "start+=" + (app.ANIMATION_DELAY + (incrementDelay * index)))
									  .from(b3, 0.4, { scaleX: 0, transformOrigin: "right center", ease: "none" }, "start+=" + (app.ANIMATION_DELAY + (incrementDelay * index)))
									  .from(b4, 0.4, { scaleY: 0, transformOrigin: "center bottom", ease: "none" }, "start+=" + (app.ANIMATION_DELAY + (incrementDelay * index)));
								}

								if(iconOuter !== null) { tl.from(iconOuter, 0.4, { scale: 0  }, "start+=" + (app.ANIMATION_DELAY + (incrementDelay * index))); }
								if(icon !== null) { tl.from(icon, 0.4, { opacity: 0  }, "start+=" + (app.ANIMATION_DELAY + 0.3) + (incrementDelay * index)); }

								if(heading !== null) { tl.from(heading, 0.4, { x: 20, opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.25 + (incrementDelay * index))); }
								if(headingMin !== null) { tl.from(headingMin, 0.4, { x: 20, opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.25 + (incrementDelay * index))); }

								if(desc !== null) { tl.from(desc, 0.4, { x: 20, opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.35 + (incrementDelay * index))); }

								if(line !== null) { tl.from(line, 0.4, { scaleX: 0, transformOrigin: "left center", ease: "none" }, "start+=" + (app.ANIMATION_DELAY + (incrementDelay * index))); }
								if(numb !== null) { tl.from(numb, 0.4, { xPercent: 100, opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.3 + (incrementDelay * index))); }

							});

						}

					});

				}

			},
			/*--- News ---*/
			news: () => {

				if(document.querySelector(".news-text-circle") !== null) {

					gsap.from(".news-text-circle", 0.4, { opacity: 0, delay: app.ANIMATION_DELAY });

				}

				app.animations.itemsAnim(".news", ".news-item-anim", [1, 3]);

				const articleHeader = document.querySelector(".article-header");
				if(articleHeader !== null) {

					const tl = gsap.timeline(),
						  btn = articleHeader.querySelector(".btn-outer"),
						  articleMain = articleHeader.querySelector(".article-main-inner");

					if(articleMain !== null) { tl.from(articleMain, 0.4, { opacity: 0, x: 20}, "start+=" + (app.ANIMATION_DELAY + 0.1)); }
					if(btn !== null) {
						tl.from(btn.querySelector(".cdb-circle"), 0.6, {drawSVG:"0", ease:Power2.easeIn }, "start+=" + app.ANIMATION_DELAY)
						  .from(btn.querySelector(".cd-icon path"), 0.6, {drawSVG:"0", ease:Power2.easeInOut, onComplete: app.animations.circleHover, onCompleteParams: [btn] }, "start+=" + (app.ANIMATION_DELAY + 0.35));
					}

				}

			},
			/*--- Contacts ---*/
			contacts: () => {

				const sections = gsap.utils.toArray(".contacts");

				if(sections.length) {

					sections.forEach(section => {

						let sectionTrigger = section.querySelector(".section-trigger");
						if(sectionTrigger === null) { sectionTrigger = section }

						const tl = gsap.timeline({
								scrollTrigger: {
									trigger: sectionTrigger
								}
							}),
							items = section.querySelectorAll(".contacts-item"),
							form = section.querySelector(".contact-form"),
							decor = section.querySelector(".contacts-arrows-decor"),
							map = section.querySelector(".map-outer"),
							btn = section.querySelector(".btn-arrows-contacts"),
							textCircle = section.querySelector(".contacts-text-circle");

						if(items.length) { tl.from(items, 0.4, { x: 20, opacity: 0, stagger: 0.1 }, "start+=" + app.ANIMATION_DELAY); }
						if(form !== null) { tl.from(form, 0.4, { y: 20, opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.1)); }
						if(decor !== null) { tl.from(decor, 0.6, { y: -40, opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.3)); }

						if(btn !== null) { tl.from(btn, 0.4, { y: 20, opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.1)); }
						if(textCircle !== null) { tl.from(textCircle, 0.4, { opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.2)); }

						if(map !== null) {
							const tl = gsap.timeline({ scrollTrigger: { trigger: map } });
							tl.from(map, 1, { opacity: 0 });
						}

					});

				}


			},
			/*--- Brand in numbers ---*/
			brandInNumbers: () => {

				app.animations.itemsAnim(".brand-in-numbers", ".bin-anim", [1, 1]);

				const sections = gsap.utils.toArray(".brand-in-numbers");

				if(sections.length) {

					sections.forEach(section => {

						const tl = gsap.timeline({
								scrollTrigger: {
									trigger: section
								}
							}),
							marquee = section.querySelectorAll(".marquee");

						if(marquee.length) { tl.from(marquee, 0.4, { opacity: 0 }, "start+=" + (app.ANIMATION_DELAY + 0.5)); }

					});

				}

			},
			/*--- Team ---*/
			team: () => {

				app.animations.itemsAnim(".team", ".team-member-item", [1, 4]);

			},
			/*--- Testimonials ---*/
			testimonials: () => {

				app.animations.itemsAnim(".testimonials", ".testimonials-anim", [1, 1]);

			},
			/*--- Brands ---*/
			brands: () => {

				app.animations.itemsAnim(".brands", ".brands-anim", [1, 1]);

			},
			/*--- Pricing ---*/
			pricing: () => {

				app.animations.itemsAnim(".pricing", ".pricing-anim", [1, 4]);

			},
			/*--- SEO ---*/
			seo: () => {

				app.animations.itemsAnim(".seo", ".seo-anim", [1, 1]);

			},

			/*--- Text Animation ---*/
			textAnimation: (tl, target, stgg, del) => {

				const splitText = new SplitText(target, {type:"words"});

				tl.from(splitText.words, {
					opacity: 0,
					duration: 0.6,
					stagger: stgg,
					ease: "Power1.easeOut",
					onComplete: () => {
						tl.kill();
						splitText.revert();
					}
				}, del);

			},
			textAnimationOut: (tl, target, stgg, del) => {

				const splitText = new SplitText(target, {type:"words"});

				tl.to(splitText.words, {
					opacity: 0,
					duration: 0.6,
					stagger: stgg,
					ease: "Power1.easeOut",
					onComplete: () => {
						tl.kill();
						splitText.revert();
					}
				}, del);

			},

			/*--- Items animation ---*/
			itemsAnim: (sectionClass, itemClass, staggerGrid) => {

				const sections = gsap.utils.toArray(sectionClass);

				if(sections.length) {

					sections.forEach(section => {

						const item = section.querySelectorAll(itemClass);

						if(item.length) { app.animations.itemsBatch(item, staggerGrid); }

					});

				}

			},
			/*--- Items batch ---*/
			itemsBatch: (item, staggerGrid) => {

				gsap.set(item, {y: 40, opacity: 0, ease: "power3.out"});
				ScrollTrigger.batch(item, {
					interval: 0.1,
					onEnter: function(batch) {
						gsap.to(batch, {
							opacity: 1,
							y: 0,
							delay: app.ANIMATION_DELAY,
							stagger: {
								each: 0.1,
								grid: staggerGrid
							},
							overwrite: true
						});
					},
					onEnterBack: function(batch) {
						gsap.set(batch, { opacity: 1, y: 0 });
					}
				});

			},

			circleHover: selector => { selector.classList.add("btn-hover"); },

		},

		//=== News item image ===\\
		newsItemImg: {

			mouseMovePos: 0,
			rotation: 15,

			init: () => {

				const title = document.querySelectorAll(".news-item-title a");
				if(title.length) {
					title.forEach(function(item) { item.addEventListener("mousemove", app.newsItemImg.handler); });
				}

			},

			handler: e => {

				const _this = e.currentTarget,
					  img = _this.parentNode.querySelector(".news-item-img");

				if(img !== null) {

					if (e.pageX < app.newsItemImg.mouseMovePos) {

						app.newsItemImg.rotation = -15;

					} else if (e.pageX > app.newsItemImg.mouseMovePos) {

						app.newsItemImg.rotation = 15;

					}

					app.newsItemImg.mouseMovePos = e.pageX;

					gsap.to(img, {
						x: e.offsetX - img.offsetWidth/2,
						y: e.offsetY - _this.offsetHeight - img.offsetHeight/2,
						rotation: app.newsItemImg.rotation,
						ease: "Back.easeOut",
					});

				}

			},

		},

		//=== Testimonials ===\\
		testimonials: {

			init: () => {

				app.testimonials.slider();

			},

			slider: () => {

				app.customCarousel(".testimonials-slider, .testimonials-carousel", ".testimonials", {
					pageDots: false,
					contain: true,
					prevNextButtons: false,
					wrapAround: true,
					cellAlign: 'left',
				});

			},

		},

		//=== Brands ===\\
		brands: {

			init: () => {

				app.brands.carousel();

			},

			carousel: () => {

				app.customCarousel(".brands-carousel", ".brands", {
					pageDots: false,
					contain: true,
					prevNextButtons: false,
					wrapAround: true,
					groupCells: 5,
					lazyLoad: 4,
					cellAlign: 'left',
					autoPlay: true,
				});

			}

		},

		//=== Intro slider ===\\
		introSlider: {

			init: () => {

				app.introSlider.setUpListeners();

			},

			TARGET: document.querySelectorAll(".intro-slider"),
			CURRENT_POSITION: 0,
			IS_ANIMATING: false,
			ANIMATION: 1,

			config: {
				animation1: {
					init: 'inset(0% 0% 0% 18% round 1000px 0vw 0vw 1001px)',
					final: 'inset(25% 15% 25.01% 45% round 25vw 25vw 25.01vw 25.01vw)',
				},
				animation2: {
					init: 'circle(100% at 50% 50%)',
					final: 'circle(15% at 50% 50%)',
				},
			},

			setUpListeners: () => {

				if(app.introSlider.TARGET.length) { app.introSlider.TARGET.forEach(slider => {

					const slides = slider.querySelectorAll(".intro-slide");
					const btns = slider.querySelectorAll(".slider-btn");
					const animation = slider.getAttribute("data-animation");

					if(animation !== null && app.isNumber(animation)) { app.introSlider.ANIMATION = parseInt(animation); }

					let configAnimation = app.introSlider.config.animation1;
					if(app.introSlider.ANIMATION === 2) { configAnimation = app.introSlider.config.animation2; }
					gsap.set(slides[app.introSlider.CURRENT_POSITION].querySelector(".intro-slide-bg"), {clipPath: configAnimation.init});

					if(btns.length) { btns.forEach(btn => {

						btn.addEventListener("click", app.introSlider.slideToggle.bind(null, slides));

					}); }

				}); }

			},

			slideToggle: (slides, e) => {

				const _this = e.currentTarget;

				if(_this.classList.contains("slider-btn-prev")) {

					app.introSlider.navigate("prev", slides);

				} else if(_this.classList.contains("slider-btn-next")) {

					app.introSlider.navigate("next", slides);

				}

			},

			navigate: (direction, slides) => {

				if(app.introSlider.IS_ANIMATING) { return false; }
				app.introSlider.IS_ANIMATING = true;

				const currentSlide = slides[app.introSlider.CURRENT_POSITION];
				const currentImageOuter = currentSlide.querySelector(".intro-slide-bg");
				const currentImage = currentImageOuter.firstChild;
				const currentHeading = currentSlide.querySelectorAll(".section-heading h1, .section-heading h2");
				const currentHeadingSplitText = new SplitText(currentHeading, {type:"words, lines", linesClass:"shd-line"});
				const currentDesc = currentSlide.querySelector(".intro-desc-anim");
				let currentDescSplitText = null;
				if(currentDesc !== null) { currentDescSplitText = new SplitText(currentDesc, {type:"words"}); }
				const currentBtn = currentSlide.querySelector(".btn-outer");
				const currentTextCircle = currentSlide.querySelector(".intro-slider-text-circle");

				const current = app.introSlider.CURRENT_POSITION;
				const slidesTotal = slides.length-1;

				if (direction === "next") {

					app.introSlider.CURRENT_POSITION = current < slidesTotal ? current+1 : 0;

				} else {

					app.introSlider.CURRENT_POSITION = current > 0 ? current-1 : slidesTotal;

				}

				const upcomingSlide = slides[app.introSlider.CURRENT_POSITION];
				const upcomingImageOuter = upcomingSlide.querySelector(".intro-slide-bg");
				const upcomingImage = upcomingImageOuter.firstChild;
				const upcomingHeading = upcomingSlide.querySelectorAll(".section-heading h1, .section-heading h2");
				const upcomingHeadingSplitText = new SplitText(upcomingHeading, {type:"words, lines", linesClass:"shd-line"});
				const upcomingDesc = upcomingSlide.querySelector(".intro-desc-anim");
				let upcomingDescSplitText = null;
				if(upcomingDesc !== null) { upcomingDescSplitText = new SplitText(upcomingDesc, {type:"words"}); }
				const upcomingBtn = upcomingSlide.querySelector(".btn-outer");
				const upcomingTextCircle = upcomingSlide.querySelector(".intro-slider-text-circle");

				let configAnimation = app.introSlider.config.animation1;
				if(app.introSlider.ANIMATION === 2) { configAnimation = app.introSlider.config.animation2; }

				const tl = gsap.timeline({
					onStart: () => {
						upcomingSlide.classList.add("upcoming");
					},
					onComplete: () => {
						tl.kill();
						currentHeadingSplitText.revert();
						if(currentDesc !== null) { currentDescSplitText.revert(); }
                        upcomingHeadingSplitText.revert();
						if(upcomingDesc !== null) { upcomingDescSplitText.revert(); }
						app.introSlider.IS_ANIMATING = false;
						upcomingSlide.classList.add("active");
						upcomingSlide.classList.remove("upcoming");
						currentSlide.classList.remove("active");
					}
				}).addLabel("start", 0);

				tl
					.set(upcomingImageOuter, {
						x: direction === "next" ? "-100%" : "100%",
						clipPath: configAnimation.final
					}, 'start')
					.set(upcomingImage, { x: direction === "next" ? "50%" : "-50%" }, "start")
					.fromTo(currentImageOuter, 1, {
						clipPath: configAnimation.init
					}, {
						ease: 'power3',
						clipPath: configAnimation.final
					}, "start")
					.to(currentImageOuter, 1, {
						ease: "power2.inOut",
						x: direction === "next" ? "100%" : "-100%"
					}, "start+=0.5")
					.to(currentImage, 1, {
						ease: "power2.inOut",
						x: direction === "next" ? "-50%" : "50%"
					}, "start+=0.5")
					.to(upcomingImageOuter, 1, {
						ease: "power2.inOut",
						x: '0%'
					}, "start+=0.5")
					.to(upcomingImage, 1, {
						ease: "power2.inOut",
						x: '0%'
					}, "start+=0.5")
					.to(upcomingImageOuter, 1, {
						ease: "expo.inOut",
						clipPath: configAnimation.init
					}, "start+=1");

					if(currentHeading.length) {
						tl.to(currentHeadingSplitText.words, 0.4, {
							yPercent: -100,
							stagger: 0.08,
							ease: "Power1.easeOut",
						}, "start");
					}
					if(currentDesc !== null) {
						tl.to(currentDescSplitText.words, 0.4, {
							opacity: 0,
							stagger: 0.02,
							ease: "Power1.easeOut",
						}, "start");
					}

					if(currentBtn !== null) { tl.to(currentBtn, 0.4, { y: 100, opacity: 0 }, "start"); }
					if(currentTextCircle !== null) { tl.to(currentTextCircle, 0.4, { y: -100, opacity: 0 }, "start"); }

					if(upcomingHeading.length) {
						tl.from(upcomingHeadingSplitText.words, 0.4, {
							yPercent: 100,
							stagger: 0.08,
							ease: "Power1.easeOut",
						}, "start+=1.1");
					}
					if(upcomingDesc !== null) {
						tl.from(upcomingDescSplitText.words, 0.6, {
							opacity: 0,
							stagger: 0.05,
							ease: "Power1.easeOut",
						}, "start+=1.1");
					}

					if(upcomingBtn !== null) {
						tl.set(upcomingBtn, {y: 0, opacity: 1}, "start+=1.1")
						  .from(upcomingBtn.querySelector(".cdb-circle"), 0.6, {drawSVG:"0", ease:Power2.easeIn }, "start+=1.1")
						  .from(upcomingBtn.querySelector(".cd-icon path"), 0.6, {drawSVG:"0", ease:Power2.easeInOut, onComplete: app.animations.circleHover, onCompleteParams: [upcomingBtn] }, "start+=1.45");
					}
					if(upcomingTextCircle !== null) {
						tl.set(upcomingTextCircle, {y: 0 }, "start+=1")
						  .fromTo(upcomingTextCircle, 0.6, { opacity: 0 }, { opacity: 1 }, "start+=1.3");
					}

			},

		},

		customCarousel: (targetClass, containerClass, obj) => {

			const carousels = document.querySelectorAll(targetClass);

			if(carousels.length) {

				carousels.forEach(carousel => {

					obj.on = { change: () => { sliderCounter(); } };

					const flkty = new Flickity(carousel, obj),
						container = carousel.closest(containerClass),
						btns = container.querySelectorAll(".slider-btn"),
						currentSlide = container.querySelector(".snc-current-slide"),
						slides = container.querySelector(".snc-slides"),
						sliderCounter = () => {
							if(currentSlide !== null) { currentSlide.textContent = flkty.selectedIndex+1; }
							if(currentSlide !== null) { slides.textContent = flkty.slides.length; }
						},
						dots = () => {

							let buttons = container.querySelector(".slider-dots");

							if(buttons !== null) {

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

								for (let index = 0; index < flkty.slides.length; index++) {
									let dot = document.createElement("div");
									dot.classList.add("slider-dot");
									buttons.appendChild(dot);
								}

								const button = buttons.querySelectorAll('.slider-dot');
								if(button.length) {
									flkty.on( 'select', () => {
										Array.prototype.filter.call(button,  el => { el.classList.remove('active'); })
										button[flkty.selectedIndex].classList.add('active');
									});

									button.forEach(item => {
										item.addEventListener("click", e => {

											const _this = e.currentTarget;

											flkty.select( app.index(_this)-1 );

										});
									});
								}

							}

						}

					sliderCounter();
					dots();

					if(btns.length) {
						btns.forEach(item => {
							item.addEventListener("click", e => {

								const _this = e.currentTarget;

								if(_this.classList.contains("slider-btn-prev")) {

									flkty.previous();
									sliderCounter();

								} else if(_this.classList.contains("slider-btn-next")) {

									flkty.next();
									sliderCounter();

								}

							});
						});
					}

					window.addEventListener("resize", () => {
						flkty.resize();
						dots();
					});

				});

			}

		},

		//=== Custom cursor ===\\
		/*
		cursor: () => {

			const cursor = document.querySelector(".cursor"),
				main = document.querySelector("main.main"),
				pos = { x: window.innerWidth / 2, y: window.innerHeight / 2 },
				mouse = { x: pos.x, y: pos.y },
				speed = 0.3,
				xSet = gsap.quickSetter(cursor, "x", "px"),
				ySet = gsap.quickSetter(cursor, "y", "px");

			window.addEventListener("mousemove", e => {

				const _this = e.target;

				if(_this.classList.contains("crm") || _this.closest(".crm")) {

					let elem = _this.classList.contains("crm");
					if(_this.closest(".crm")) { elem = _this.closest(".crm"); }

					const offset = elem.getBoundingClientRect(),
						width = elem.offsetWidth,
						height = elem.offsetHeight,
						html = document.querySelector('html');
					let fontSize = Number.parseInt( getComputedStyle(html, null).getPropertyValue('font-size') );
					const cursorSize = fontSize * 2.5;

					if(width > cursorSize || height > cursorSize) {

						cursor.style.setProperty('--d', width + 'px');
						cursor.style.setProperty('--r', - width / 2 + 'px');

						mouse.x = offset.left + width / 2;
						mouse.y = offset.top + height / 2;

					} else {

						mouse.x = offset.left + cursorSize / 2 - (cursorSize - width) / 2;
						mouse.y = offset.top + cursorSize / 2 - (cursorSize - height) / 2;

					}


				} else {

					removeProperties(['--d', '--r']);

					mouse.x = e.x;
					mouse.y = e.y;

				}

				if(cursor.classList.contains('hide')) { cursor.classList.remove('hide'); }

			});

			const removeProperties = (array) => {
				for (let i = 0; i < array.length; i++) {
					if(cursor.style.getPropertyValue(array[i]) !== '') { cursor.style.removeProperty(array[i]); }
				}
			}

			main.addEventListener("mouseenter", () => { cursor.classList.remove('hidden'); });
			main.addEventListener("mouseleave", () => { cursor.classList.add('hidden'); });

			document.querySelectorAll('.mc').forEach((elem) => {
				elem.addEventListener('mouseenter', () => { cursor.classList.add("mc"); });
				elem.addEventListener('mouseleave', () => { cursor.classList.remove("mc"); });
			});

			document.querySelectorAll('.crs, .content a').forEach((elem) => {
				elem.addEventListener('mouseenter', () => { cursor.classList.add("crs"); });
				elem.addEventListener('mouseleave', () => { cursor.classList.remove("crs"); });
			});

			document.querySelectorAll('.crh').forEach((elem) => {
				elem.addEventListener('mouseenter', () => { cursor.classList.add("hidden"); });
				elem.addEventListener('mouseleave', () => { cursor.classList.remove("hidden"); });
			});

			document.querySelectorAll('.cr-opposite').forEach((elem) => {
				elem.addEventListener('mouseenter', () => { cursor.classList.add("opposite"); });
				elem.addEventListener('mouseleave', () => { cursor.classList.remove("opposite"); });
			});

			gsap.ticker.add(() => {

				const dt = 1.0 - Math.pow(1.0 - speed, gsap.ticker.deltaRatio());

				pos.x += (mouse.x - pos.x) * dt;
				pos.y += (mouse.y - pos.y) * dt;
				xSet(pos.x);
				ySet(pos.y);

			});

		},
		*/


		//=== Forming href for phone ===\\
		formingHrefTel: () => {

			let linkAll = document.querySelectorAll(".formingHrefTel"),
				joinNumbToStringTel = 'tel:';


			linkAll.forEach(item => {
				let _this = item,
					linkValue = _this.textContent,
					arrayString = linkValue.split("");

				for (let i = 0; i < arrayString.length; i++) {
					let thisNunb = app.isNumber(arrayString[i]);
					if (thisNunb === true || (arrayString[i] === "+" && i === 0)) {
						joinNumbToStringTel += arrayString[i];
					}
				}

				_this.setAttribute("href", joinNumbToStringTel);
				joinNumbToStringTel = 'tel:';

			});

		},

		isNumber: n => {

			return !isNaN(parseFloat(n)) && isFinite(n);

		},

		//Parallax circles
		paralaxEl: {

			init: (target, movement) => {

				const container = document.querySelectorAll(target);
				if(container.length) {
					container.forEach(item => { item.addEventListener("mousemove", app.paralaxEl.itemHit.bind(null, movement)); });
				}

			},

			itemHit: (movement, e) => {

				setTimeout(app.paralaxEl.callParallaxHit.bind(null, e, e.currentTarget, movement), 200);

			},
			callParallaxHit: (e, container, movement) => {

				app.paralaxEl.parallaxHit(e, container, container.querySelectorAll(".pel-1"), -movement);
				app.paralaxEl.parallaxHit(e, container, container.querySelectorAll(".pel-3"), movement);

			},
			parallaxHit: (e, container, elements, movement) => {

				if(container.querySelectorAll(".pel").length) {

					const offset = container.getBoundingClientRect(),
						relX = e.pageX - (offset.left + window.scrollX),
						relY = e.pageY - (offset.top + window.scrollY),
						width = container.offsetWidth,
						height = container.offsetHeight;

					elements.forEach(item => {
						gsap.to(item, 1, {
							x: (relX - width/2) / width * movement,
							y: (relY - height/2) / height * movement,
							ease: Power2.easeOut
						});
					});

				}

			},

		},

		//=== Marquee ===\\
		marquee: () => {

			document.querySelectorAll(".marquee").forEach(function(items) {

				items.querySelectorAll(".marquee-row").forEach(function(item) {

					let el = item,
						list = el.parentNode,
						dirAttr = list.getAttribute("data-dir"),
						rate = 60,
						distance = el.offsetWidth,
						marginRight = parseInt(el.style.marginRight) || 0,
						totalDistance = distance + marginRight,
						time = distance / rate,
						dir = '-=';

					if(dirAttr === "right") {
						dir = '+=';
						gsap.set(list, {x:-distance});
					} else {
						dir = '-=';
					}

					gsap.to(list, time, {
						repeat: -1,
						x: dir + totalDistance,
						ease: Linear.easeNone,
					});

				});

			});

		},

		//=== SEO ===\\
		seo: () => {

			const seo = document.querySelector(".seo");

			if(seo !== null) {

				const seoHidden = seo.querySelector(".seo-content-hidden");
				const btns = seo.querySelectorAll(".seo-btn");

				btns.forEach(function(btn) { btn.addEventListener("click", e => {

					seo.classList.toggle("open");
					if(seo.classList.contains("open")) {
						seoHidden.style.maxHeight = null;
					} else {
						seoHidden.style.maxHeight = "0";
					}

				}); });

			}

		},

		//=== Elements wide fixed ===\\
		elWideFixed: {

			init: () => {

				app.elWideFixed.body();
				window.addEventListener("resize", function() { app.elWideFixed.body(); });

			},

			body: () => {

				const widht = document.querySelector('body').offsetWidth;
				const container = document.querySelector(".container");
				const containerWidth = container.offsetWidth;
				const containerPadding = Number.parseInt( getComputedStyle(container, null).getPropertyValue('padding-right') );

				const footerFixed = document.querySelector(".footer-fixed");
				if(footerFixed !== null) {

					const footerFixedWidth = footerFixed.offsetWidth;

					if(widht > containerWidth) {

						footerFixed.style.right = ( ( ( widht - containerWidth ) / 2 ) + ( containerPadding - footerFixedWidth ) / 2 ) + "px";
						footerFixed.classList.add("footer-wide");

					} else {

						if(footerFixed.classList.contains('footer-wide')) {
							footerFixed.removeAttribute('style');
							footerFixed.classList.remove("footer-wide");
						}

					}

				}

				const goToTopFixed = document.querySelector(".go-to-top");
				if(goToTopFixed !== null) {

					const goToTopFixedWidth = goToTopFixed.offsetWidth;

					if(widht > containerWidth) {

						goToTopFixed.style.left = ( ( ( widht - containerWidth ) / 2 ) + ( containerPadding - goToTopFixedWidth ) / 2 ) + "px";
						goToTopFixed.classList.add("go-to-top-wide");

					} else {

						if(goToTopFixed.classList.contains('go-to-top-wide')) {
							goToTopFixed.removeAttribute('style');
							goToTopFixed.classList.remove("go-to-top-wide");
						}

					}

				}

			},

		},


		//=== Content table responsive ===\\
		contentTableResponsive: () => {

			const contents = document.querySelectorAll(".content");
			if(contents.length) {
				HTMLElement.prototype.wrap = function(wrapper) {
					this.parentNode.insertBefore(wrapper, this);
					wrapper.appendChild(this);
				}
				contents.forEach(content => {
					const tables = content.querySelectorAll("table");
					if(tables.length) {
						tables.forEach(table => {
							let wrapper = document.createElement('div');
							wrapper.classList.add("table-responsive");
							table.wrap(wrapper);
							let wrapper2 = document.createElement('div');
							wrapper2.classList.add("table-responsive-outer");
							wrapper.wrap(wrapper2);
						});
					}
				});
			}

		},

		offsetHeight: el => {

			let height = el.offsetHeight;
			window.addEventListener("resize", () => { height = el.offsetHeight; });
			return height;

		},

		index: el => {
			if (!el) return -1;
			let i = 0;
			do {
			  i++;
			} while (el = el.previousElementSibling);
			return i;
		},
		siblings: el => {

			if (el.parentNode === null) return [];

			return Array.prototype.filter.call(el.parentNode.children, child => {

			  return child !== el;

			});

		},
		slideDown: target => {

			const duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;

			target.style.removeProperty('display');
			let display = window.getComputedStyle(target).display;
			if (display === 'none') display = 'block';
			target.style.display = display;
			const height = target.offsetHeight;
			target.style.overflow = 'hidden';
			target.style.height = 0;
			target.style.paddingTop = 0;
			target.style.paddingBottom = 0;
			target.style.marginTop = 0;
			target.style.marginBottom = 0;
			target.offsetHeight;
			target.style.boxSizing = 'border-box';
			target.style.transitionProperty = "height, margin, padding";
			target.style.transitionDuration = duration + 'ms';
			target.style.height = height + 'px';
			target.style.removeProperty('padding-top');
			target.style.removeProperty('padding-bottom');
			target.style.removeProperty('margin-top');
			target.style.removeProperty('margin-bottom');
			window.setTimeout(function() {
				  target.style.removeProperty('height');
				  target.style.removeProperty('overflow');
				  target.style.removeProperty('transition-duration');
				  target.style.removeProperty('transition-property');
			}, duration);

		},
		slideUp: target => {

			const duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;

			target.style.transitionProperty = 'height, margin, padding';
			target.style.transitionDuration = duration + 'ms';
			target.style.boxSizing = 'border-box';
			target.style.height = target.offsetHeight + 'px';
			target.offsetHeight;
			target.style.overflow = 'hidden';
			target.style.height = 0;
			target.style.paddingTop = 0;
			target.style.paddingBottom = 0;
			target.style.marginTop = 0;
			target.style.marginBottom = 0;
			window.setTimeout(function() {
				  target.style.display = 'none';
				  target.style.removeProperty('height');
				  target.style.removeProperty('padding-top');
				  target.style.removeProperty('padding-bottom');
				  target.style.removeProperty('margin-top');
				  target.style.removeProperty('margin-bottom');
				  target.style.removeProperty('overflow');
				  target.style.removeProperty('transition-duration');
				  target.style.removeProperty('transition-property');
			}, duration);

		},
		slideToggle: target => {

			const duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;

			if (window.getComputedStyle(target).display === 'none') {

			  return app.slideDown(target, duration);

			} else {

			  return app.slideUp(target, duration);

			}

		},

		customLog: () => {

			const styles = [
					//'font-size: 14px',
					//'color: #ffffff',
					//'background-color: #000000',
					//'padding: 4px 0 4px 8px'
				].join(';'),
				brandStyles = [
					//'font-size: 14px',
					//'color: #ffffff',
					//'background-color: #000000',
					//'padding: 4px 8px 4px 0',
					'font-weight: bold'
				].join(';'),
				text = '%cby %cSpecia1ne';

			console.log(text, styles, brandStyles);

		},

	}

	app.init();
}());

!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t=n();for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,(()=>(()=>{"use strict";var e={};(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);var n,t="fslightbox-",o="".concat(t,"styles"),r="".concat(t,"full-dimension"),i="".concat(t,"display-none"),s="".concat(t,"cursor-grabbing"),a="".concat(t,"flex-centered"),c="".concat(t,"open"),u="".concat(t,"transform-transition"),d="".concat(t,"absoluted"),l="".concat(t,"opacity-1"),p="".concat(t,"ui-fade-out"),h="".concat(t,"slide-btn"),m="".concat(h,"-container"),f="".concat(t,"fade-in"),g="".concat(t,"fade-out"),b=f+"-strong",v=g+"-strong",x="".concat(t,"caption"),w=x+"-inner",S="".concat(t,"source"),y="".concat(S,"-wrappers-container"),T="".concat(y,"-pinching"),A="".concat(t,"thumb"),C=A+"s",L="".concat(C,"-loader"),I="".concat(C,"-cursorer"),W="".concat(C,"-inner"),z=A+"-wrapper",E=A+"-invalid",F=A+"-active";function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function P(e,n){var t=this,o=e.elements.sourceMainWrappers,r=e.props,i=0,s=0,a=0;this.translate=function(e,n){return s=e,void 0!==n&&(a=n),t},this.getTranslateX=function(){return i},this.getTranslateY=function(){return a},this.negative=function(){c(-(1+r.slideDistance)*innerWidth)},this.zero=function(){c(0)},this.noTransform=function(){o[n].style.removeProperty("transform")},this.positive=function(){c((1+r.slideDistance)*innerWidth)};var c=function(e){i=e+s,u(),s=0},u=function(){o[n].style.transform="translate(".concat(i,"px, ").concat(a,"px)")}}function N(e){var n=e.componentsServices,t=e.core,o=t.sourceEnhancementWrappersTransformer,r=t.thumbsRenderDispatcher,i=t.zoomer,s=e.data,a=e.props.sources,c=e.ui;function u(){for(var e=0;e<a.length;e++)o.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(e)}this.openThumbs=function(){i.ifZoomingResetZoom(),s.isThumbing=!0,c.fadeInThumbsFadeOutCaption(),u(),r.renderThumbsIfNotYetAndAllTypesDetected(),s.unloadedThumbsCount&&n.appendThumbsLoaderIfNotYet()},this.closeThumbs=function(){i.ifZoomingResetZoom(),s.isThumbing=!1,c.fadeOutThumbsFadeInCaption(),u()}}function B(e,n){var t=e.classList;t.contains(n)&&t.remove(n)}function H(e,n){var t=e.classList;t.contains(n)||t.add(n)}function k(e){var n=e.data,t=e.elements,o=e.stageIndexes;this.runActions=function(){B(t.thumbsContainer,a);var e=innerWidth/2,i=t.thumbsWrappers[o.current],s=i.offsetLeft+i.offsetWidth/2,c=n.thumbsInnerWidth-s;s>e&&c>e?r(e-s):s>e?r(innerWidth-n.thumbsInnerWidth-9):c>e&&r(0)},this.runToThinThumbsActions=function(){H(t.thumbsContainer,a),r(0)};var r=function(e){n.thumbsTransform=e,t.thumbsInner.style.transform="translateX(".concat(e,"px)")}}function O(e,n){var t=[];return function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];t.push(!0),setTimeout((function(){t.pop(),t.length||e.apply(void 0,r)}),n)}}function D(e){var n=this,t=e.core,o=t.eventsDispatcher,r=t.globalEventsController,i=t.scrollbarRecompensor,s=t.slideshowManager,a=t.zoomer,u=e.data,d=e.elements,l=e.fs,p=e.props,h=e.sourcePointerProps,m=e.thumbsSwipingProps;this.isLightboxFadingOut=!1,this.runActions=function(){n.isLightboxFadingOut=!0,d.container.classList.add(v),r.removeListeners(),s.resetSlideshow(),p.exitFullscreenOnClose&&u.ifs&&l.exitFullscreen(),a.ifZoomingResetZoom(),setTimeout((function(){n.isLightboxFadingOut=!1,h.isPointering=!1,m&&(m.isPointering=!1),d.container.classList.remove(v),document.documentElement.classList.remove(c),i.removeRecompense(),document.body.removeChild(d.container),o.dispatch("onClose")}),270)}}function R(e){requestAnimationFrame((function(){requestAnimationFrame((function(){e()}))}))}function X(e,n,t,o){var r=e.collections.sourceMainWrapperTransformers,s=e.core,a=s.sourceWrappersStager,c=s.stageManager,u=e.elements,d=u.sourceAnimationWrappers,l=u.sourceMainWrappers,p=e.data.isSourceLoadedArray,h=e.props.slideChangeAnimation,m=e.stageIndexes,f=n.previous,b=n.current,v=n.next;function x(){c.isSourceInStage(b)?b===m.previous?r[b].negative():b===m.next&&r[b].positive():(l[b].classList.add(i),r[b].noTransform())}function w(e,n,t){e&&d[n].classList.add(t)}this.runJumpReflowedActions=function(){w(t,b,g),w(o,m.current,h),a.displayNotDisplayedStageSourceMainWrappers(),void 0!==m.previous&&m.previous!==b&&r[m.previous].negative(),r[m.current].noTransform(),void 0!==m.next&&m.next!==b&&r[m.next].positive(),a.possiblyUnstageSourceMainWrapperAtIndex(f),a.possiblyUnstageSourceMainWrapperAtIndex(v),p[b]?setTimeout(x,260):x()}}function Y(e){var n,t=e.core,o=t.slideshowManager,r=t.slideChangeFacade,i=e.componentsServices,s=e.elements,a=e.props,c=!1;function u(){c=!1,clearTimeout(n),s.slideshowBar.classList.remove(l),i.stopSlideshow()}function d(){s.slideshowBar.style.transition="opacity .2s",s.slideshowBar.style.width="0px",s.slideshowBar.offsetWidth,s.slideshowBar.style.transition="opacity .2s, width linear ".concat(a.slideshowTime,"ms"),s.slideshowBar.style.width=innerWidth+"px",n=setTimeout((function(){r.changeToNext(),d()}),a.slideshowTime)}o.toggleSlideshow=function(){c?u():(c=!0,i.startSlideshow(),s.slideshowBar.classList.add(l),d())},o.resetSlideshow=function(){c&&u()}}function U(e){var n=e.core.pointeringBucket,t=e.data,o=e.elements,r=e.thumbsSwipingProps;this.runActions=function(e){n.runSwipingMoveActionsForPropsAndEvent(r,e),o.thumbsInner.style.transform="translateX(".concat(t.thumbsTransform+r.swipedX,"px)"),o.thumbsContainer.contains(o.thumbsCursorer)||o.thumbsContainer.appendChild(o.thumbsCursorer)}}function Z(e){var n=e.data,t=e.resolve,o=e.thumbsSwipingProps,r=t(U),i=window.innerWidth;this.listener=function(e){n.thumbsInnerWidth>i&&o.isPointering&&r.runActions(e)}}function j(e,n){e.contains(n)&&e.removeChild(n)}function q(e){var n=e.data,t=e.core,o=t.slideIndexChanger,r=t.thumbsTransformTransitioner,i=t.pointeringBucket,s=e.elements,a=e.thumbsSwipingProps,c=s.thumbsWrappers;this.runNoSwipeActionsForEvent=function(e){j(s.thumbsContainer,s.thumbsCursorer),a.isPointering=!1;for(var n=0;n<c.length;n++)if(c[n]&&c[n].contains(e.target))return void o.jumpTo(n)},this.runActions=function(){if(j(s.thumbsContainer,s.thumbsCursorer),n.thumbsTransform+=a.swipedX,i.runSwipingTopActionsForPropsAndEvent(a),n.thumbsTransform>0)return u(0);n.thumbsTransform<innerWidth-n.thumbsInnerWidth-9&&u(innerWidth-n.thumbsInnerWidth-9)};var u=function(e){n.thumbsTransform=e,r.callActionWithTransition((function(){s.thumbsInner.style.transform="translateX(".concat(e,"px)")}))}}function V(e){var n=e.resolve,t=e.thumbsSwipingProps,o=n(q);this.listener=function(e){t.isPointering&&(t.swipedX?o.runActions():o.runNoSwipeActionsForEvent(e))}}function _(e){var n=e.collections.sourceMainWrapperTransformers,t=e.core.zoomer,o=e.data,r=e.sourcePointerProps;this.runZoomingPinchActionsForHypot=function(e){var n=e-r.pinchedHypot,i=o.zoom+n/Math.hypot(innerWidth,innerHeight)*10;i<.9&&(i=.9),t.zoomTo(i),r.pinchedHypot=e},this.translateSourceMainWrapperAtIndexUsingMethod=function(e,t){n[e].translate(r.swipedX)[t]()}}function J(e){var n=Object.keys(e.pointers),t=e.pointers[n[0]],o=e.pointers[n[1]];return Math.hypot(t.screenX-o.screenX,t.screenY-o.screenY)}function $(e){var n=e.collections.sourceMainWrapperTransformers,t=e.core.pointeringBucket,o=e.data,r=e.elements,i=e.resolve,s=e.sourcePointerProps,a=e.stageIndexes,c=i(_);this.runActions=function(e){t.runSwipingMoveActionsForPropsAndEvent(s,e),r.container.contains(r.slideSwipingHoverer)||r.container.appendChild(r.slideSwipingHoverer)},this.runPinchActions=function(){var e=J(s);s.pinchedHypot?c.runZoomingPinchActionsForHypot(e):s.pinchedHypot=e},this.runNormalSwipeActions=function(){c.translateSourceMainWrapperAtIndexUsingMethod(a.current,"zero"),void 0!==a.previous&&s.swipedX>0?c.translateSourceMainWrapperAtIndexUsingMethod(a.previous,"negative"):void 0!==a.next&&s.swipedX<0&&c.translateSourceMainWrapperAtIndexUsingMethod(a.next,"positive")},this.runZoomSwipeActions=function(e){s.swipedX=(e.screenX-s.downScreenX)/o.zoom,s.swipedY=(e.screenY-s.downScreenY)/o.zoom,n[a.current].translate(s.upSwipedX+s.swipedX,s.upSwipedY+s.swipedY).zero()}}function G(e){var n=e.data,t=e.props.sources,o=e.resolve,r=e.sourcePointerProps,i=o($);this.listener=function(e){if(r.isPinching)return i.runActions(e),void i.runPinchActions();2!==r.pointersCount&&(i.runActions(e),1===n.zoom?1===t.length?r.swipedX=1:i.runNormalSwipeActions():i.runZoomSwipeActions(e))}}function K(e){var n=e.collections.sourceMainWrapperTransformers,t=e.core,o=t.clickZoomer,r=t.slideIndexChanger,s=t.sourceWrappersStager,a=e.data,c=e.elements,d=e.sourcePointerProps,l=e.stageIndexes,p=c.sourceMainWrappers;function h(e){p[l.current].classList.add(u),n[l.current][e]()}function m(e,t){void 0!==e&&(B(p[e],i),n[e][t]())}this.runPositiveSwipedXActions=function(){if(void 0===l.previous)h("zero");else{h("positive");var e=l.next;r.changeTo(l.previous),s.removeAnimationsFromSourceAnimationWrapperAtIndexIfThereAre(l.previous),s.possiblyUnstageSourceMainWrapperAtIndex(e),h("zero"),m(l.previous,"negative")}},this.runNegativeSwipedXActions=function(){if(void 0===l.next)h("zero");else{h("negative");var e=l.previous;r.changeTo(l.next),s.removeAnimationsFromSourceAnimationWrapperAtIndexIfThereAre(l.next),s.possiblyUnstageSourceMainWrapperAtIndex(e),h("zero"),m(l.next,"positive")}},this.saveCurrentSourceMainWrapperPosition=function(){d.upSwipedX=n[l.current].getTranslateX(),d.upSwipedY=n[l.current].getTranslateY()},this.runSourceDownEventTargetActions=function(){a.zoom<=1?o.zoomIn():o.zoomOut()}}function Q(e){var n=e.core,t=n.lightboxCloser,o=n.pointeringBucket,r=e.data,i=e.elements,s=e.resolve,a=e.props.doNotCloseOnBackgroundTouch,c=e.sourcePointerProps,u=s(K);this.runActions=function(){j(i.container,i.slideSwipingHoverer),c.isPinching=!1,c.pinchedHypot=0,o.runSwipingTopActionsForPropsAndEvent(c),B(i.sourceWrappersContainer,T)},this.runSwipeActions=function(){1===r.zoom?c.swipedX>0?u.runPositiveSwipedXActions():u.runNegativeSwipedXActions():u.saveCurrentSourceMainWrapperPosition()},this.runNoSwipeActions=function(){c.isSourceDownEventTarget?u.runSourceDownEventTargetActions():a&&"touch"===c.pointerType||t.close()}}function ee(e){var n=e.data,t=e.resolve,o=e.sourcePointerProps,r=e.core.zoomer,i=t(Q);this.listener=function(e){o.pointers={},o.isPointering&&(o.isPinching||(o.swipedX?i.runSwipeActions():i.runNoSwipeActions()),i.runActions(e),n.zoom<1&&(r.zoomTo(1),r.stopZooming()))}}function ne(e){return e.sourcePointerProps.isPointering}function te(e,n){var t=e.sourcePointerProps;t.pointers[n.pointerId]={screenX:n.screenX,screenY:n.screenY};var o=Object.keys(t.pointers).length;return t.pointersCount=o,o<=2}function oe(e){return!e.sourcePointerProps.isPointering}function re(e){var n=e.core.zoomer,t=e.data;this.listener=function(e){if(1===t.zoom){if(e.deltaY>0)return;n.startZooming()}var o=.1*t.zoom,r=t.zoom;e.deltaY<0?r+=o:(r-=o)<1&&(r=1),n.zoomTo(r),1===r&&n.stopZooming()}}function ie(e){var n,t=e.middleware,o=e.props,r=e.resolve,i=(e.sourcePointerProps,e.ui),s=r(G),a=r(ee),c=r(Z),u=r(V),d=r(re),l=(n=!1,function(){return!n&&(n=!0,requestAnimationFrame((function(){n=!1})),!0)});this.moveListener=function(e){i.scheduleFadeOutAndPossiblyFadeIn(),t(t(s.listener,te),ne)(e),o.disableThumbs||c.listener(e)},this.upListener=function(e){a.listener(e),o.disableThumbs||u.listener(e)},this.wheelListener=t((function(e){i.scheduleFadeOutAndPossiblyFadeIn(),l()&&d.listener(e)}),oe)}function se(e){var n=e.core.zoomer,t=e.data,o=e.elements,r=e.sourcePointerProps;this.runPinchActions=function(){r.isPinching=!0,r.pinchedHypot=J(r),H(o.sourceWrappersContainer,T),1===t.zoom&&n.startZooming()}}function ae(e){var n,t,o,r=e.data,i=e.elements,s=r.captionHeights,a=r.notThumbedSourceEnhancementWrapperScales,c=r.notThumbedSourceEnhancementWrapperTranslatesY,u=i.sourceEnhancementWrappers,d=i.sources;this.setUpThumbedEnhancementWrapperTransform=function(){n=i.thumbsContainer.offsetHeight,t=r.thumbedSourceEnhancementWrapperTranslateY,o="translateY(".concat(t,"px) scale(").concat(r.thumbedSourceEnhancementWrapperScale,")")},this.setUpNotThumbedEnhancementWrapperTransformAtIndex=function(e){n=s[e],t=c[e],o="translateY(".concat(t,"px) scale(").concat(a[e],")")},this.ifSourceIsLoadedTransformEnhancementWrapperAtIndex=function(e){d[e]&&(innerWidth<innerHeight&&d[e].offsetWidth>d[e].offsetHeight+n?u[e].style.transform="translateY(".concat(t/2,"px) scale(1)"):u[e].style.transform=o)}}function ce(e){!function(e){var n=e.core,t=n.classFacade,o=n.stageManager,r=e.elements;t.removeFromEachElementClassIfContains=function(e,n){for(var t=0;t<r[e].length;t++)B(r[e][t],n)},t.stagedRemovalAndOutstagedAddingOfClassIfContains=function(e,n){for(var t=0;t<r[e].length;t++)o.isSourceInStage(t)?B(r[e][t],n):H(r[e][t],n)}}(e),function(e){var n=e.core,t=n.clickZoomer,o=n.zoomer,r=e.data,i=e.elements,s=e.props.zoomIncrement,a=O((function(){B(i.sourceWrappersContainer,u)}),300);t.zoomIn=function(){c(),d(r.zoom+s)},t.zoomOut=function(){r.zoom-s<=1?1!==r.zoom&&(d(1),o.stopZooming()):(c(),d(r.zoom-s),1===r.zoom&&o.stopZooming())};var c=function(){1===r.zoom&&o.startZooming()},d=function(e){H(i.sourceWrappersContainer,u),o.zoomTo(e),a()}}(e),function(e){var n=e.core.enhancementActiver,t=e.data,o=e.elements.thumbs,r=e.ui;n.changeActiveCaptionFromTo=function(e,n){t.isThumbing||(r.fadeOutCaption(e),r.fadeInCaption(n))},n.changeActiveThumbFromTo=function(e,n){o&&o[e]&&(o[e].classList.remove(F),o[n].classList.add(F))}}(e),function(e){var n=e.core.eventsDispatcher,t=e.props;n.dispatch=function(n){t[n]&&t[n](e)}}(e),function(e){var n=e.componentsServices,t=e.data,o=e.fs,r=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"];function i(e){for(var n=0;n<r.length;n++)document[e](r[n],s)}function s(){document.fullscreenElement||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement?n.ofs():n.xfs()}o.o=function(){n.ofs();var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},o.x=function(){n.xfs(),document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},o.t=function(){t.ifs?o.x():o.o()},o.l=function(){i("addEventListener")},o.q=function(){i("removeEventListener")}}(e),function(e){var n,t=e.core,o=t.globalEventsController,r=t.windowResizeActioner,i=e.fs,s=e.resolve,a=e.ui,c=s(ie);o.addListeners=function(){document.addEventListener("pointerdown",a.scheduleFadeOutAndPossiblyFadeIn),document.addEventListener("pointermove",c.moveListener),document.addEventListener("pointerup",c.upListener),addEventListener("resize",r.runActions),n=function(n){return function(e,n){var t=e.core,o=t.clickZoomer,r=t.lightboxCloser,i=t.slideChangeFacade,s=t.slideshowManager,a=t.thumbsToggler,c=e.fs,u=e.middleware,d=e.props;if(e.ui.scheduleFadeOutAndPossiblyFadeIn(),"Space"!==n.code)switch(n.key){case"Escape":r.close();break;case"ArrowLeft":i.changeToPrevious();break;case"ArrowRight":i.changeToNext();break;case"t":d.disableThumbs||a.toggleThumbs();break;case"+":u(o.zoomIn,oe)();break;case"-":u(o.zoomOut,oe)();break;case"F11":n.preventDefault(),c.t()}else s.toggleSlideshow()}(e,n)},document.addEventListener("keydown",n),document.addEventListener("wheel",c.wheelListener),i.l()},o.removeListeners=function(){document.removeEventListener("pointerdown",a.scheduleFadeOutAndPossiblyFadeIn),document.removeEventListener("pointermove",c.moveListener),document.removeEventListener("pointerup",c.upListener),removeEventListener("resize",r.runActions),document.removeEventListener("keydown",n),document.removeEventListener("wheel",c.wheelListener),i.q()}}(e),function(e){var n=e.data,t=e.elements,o=e.props.UIFadeOutTime,r=e.stageIndexes,i=e.ui,s=!1,a=O((function(){s=!0,c(v)}),o);function c(e){u(e),d(e),l(e)}function u(e){e(t.nav)}function d(e){t.slideButtonPrevious&&(e(t.slideButtonPrevious),e(t.slideButtonNext))}function l(e){n.isThumbing?b(e):f(e)}function h(e,n){g(e,n)}function m(e){d(e),l(e)}function f(e){g(e,r.current)}function g(e,n){var o=t.captions[n];o&&e(o)}function b(e){e(t.thumbsContainer)}function v(e){e.classList.add(p)}function x(e){e.classList.remove(p)}i.scheduleFadeOutAndPossiblyFadeIn=function(){i.scheduleFadeOut()&&s&&(s=!1,1===n.zoom?c(x):u(x))},i.scheduleFadeOut=function(){return a(),!0},i.fadeInCaption=function(e){h(x,e)},i.fadeOutCaption=function(e){h(v,e)},i.zoomFadeOut=function(){m(v)},i.zoomFadeIn=function(){m(x)},i.fadeInThumbsFadeOutCaption=function(){b(x),f(v)},i.fadeOutThumbsFadeInCaption=function(){b(v),f(x)}}(e),function(e){var n=e.core.lightboxCloser,t=(0,e.resolve)(D);n.close=function(){t.isLightboxFadingOut||t.runActions()}}(e),function(e){var n=e.core.pointeringBucket,t=e.elements;n.runSwipingDownActionsForPropsAndEvent=function(e,n){e.isPointering=!0,e.downScreenX=n.screenX,e.swipedX=0},n.runSwipingMoveActionsForPropsAndEvent=function(e,n){H(t.slideSwipingHoverer,s),e.swipedX=n.screenX-e.downScreenX},n.runSwipingTopActionsForPropsAndEvent=function(e){B(t.slideSwipingHoverer,s),e.isPointering=!1}}(e),function(e){var n=e.data,t=e.core.scrollbarRecompensor;t.addRecompense=function(){"complete"===document.readyState?o():window.addEventListener("load",(function(){o(),t.addRecompense=o}))};var o=function(){document.body.offsetHeight>window.innerHeight&&(document.body.style.marginRight=n.scrollbarWidth+"px")};t.removeRecompense=function(){document.body.style.removeProperty("margin-right")}}(e),Y(e),function(e){var n=e.core,t=n.slideChangeFacade,o=n.slideIndexChanger,r=n.stageManager;e.props.sources.length>1?(t.changeToPrevious=function(){o.jumpTo(r.getPreviousSlideIndex())},t.changeToNext=function(){o.jumpTo(r.getNextSlideIndex())}):(t.changeToPrevious=function(){},t.changeToNext=function(){})}(e),function(e){var n=e.componentsServices,t=e.core,o=t.enhancementActiver,r=t.classFacade,i=t.eventsDispatcher,s=t.slideIndexChanger,a=t.sourceDisplayFacade,c=t.sourceWrappersStager,d=t.stageManager,l=t.thumbsTransformer,p=t.zoomer,h=e.data.isSourceLoadedArray,m=e.props.disableThumbs,f=e.resolve,g=e.stageIndexes;s.changeTo=function(e){p.ifZoomingResetZoom(),o.changeActiveCaptionFromTo(g.current,e);var t=g.current;g.current=e,d.updateStageIndexes(),n.setSlideNumber(e+1),m||(o.changeActiveThumbFromTo(t,e),l.transformToCurrentWithTransition()),o.changeActiveCaptionFromTo(t,e),a.displaySourcesWhichShouldBeDisplayed(),i.dispatch("onSlideChange")},s.jumpTo=function(e){if(g.current!==e){var n=g.current,t=f(X,[{previous:g.previous,current:n,next:g.next},h[n],h[e]]);s.changeTo(e),r.removeFromEachElementClassIfContains("sourceMainWrappers",u),c.removeAnimationsFromSourceAnimationWrapperAtIndexIfThereAre(n),c.removeAnimationsFromStageSourceAnimationWrappersIfThereAre(),R(t.runJumpReflowedActions)}}}(e),function(e){var n=e.core.sourceEnhancementWrappersTransformer,t=e.data,o=(0,e.resolve)(ae);n.ifSourceIsLoadedTransformEnhancementWrapperAtIndex=function(e){t.isThumbing?o.setUpThumbedEnhancementWrapperTransform():o.setUpNotThumbedEnhancementWrapperTransformAtIndex(e),o.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(e)},n.ifSourceIsLoadedTransformThumbedEnhancementWrapperAtIndex=function(e){o.setUpThumbedEnhancementWrapperTransform(e),o.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(e)},n.ifSourceIsLoadedTransformNotThumbedEnhancementWrapperAtIndex=function(e){o.setUpNotThumbedEnhancementWrapperTransformAtIndex(e),o.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(e)}}(e),function(e){var n=e.collections.sourcesRenderFunctions,t=e.core.sourceDisplayFacade,o=e.props.loadOnlyCurrentSource,r=e.stageIndexes;function i(e){n[e]&&(n[e](),delete n[e])}t.displaySourcesWhichShouldBeDisplayed=function(){if(o)i(r.current);else for(var e in r)i(r[e])}}(e),function(e){var n=e.collections.sourceMainWrapperTransformers,t=e.core,o=t.sourceWrappersStager,r=t.stageManager,s=e.data.isSourceLoadedArray,a=e.elements,c=a.sourceAnimationWrappers,u=a.sourceMainWrappers,d=e.props,l=d.initialAnimation,p=d.slideChangeAnimation,h=e.stageIndexes;o.displayNotDisplayedStageSourceMainWrappers=function(){for(var e in h)B(u[h[e]],i)},o.possiblyUnstageSourceMainWrapperAtIndex=function(e){void 0===e||r.isSourceInStage(e)||(u[e].classList.add(i),n[e].noTransform())},o.removeAnimationsFromStageSourceAnimationWrappersIfThereAre=function(){for(var e in h)o.removeAnimationsFromSourceAnimationWrapperAtIndexIfThereAre(h[e])},o.removeAnimationsFromSourceAnimationWrapperAtIndexIfThereAre=function(e){if(s[e]){var n=c[e];B(n,l),B(n,p),B(n,g)}}}(e),function(e){var n=e.core,t=n.sourcesPointerDown,o=n.pointeringBucket,r=e.elements,i=r.sources,s=r.sourceMainWrappers,a=e.resolve,c=e.sourcePointerProps,d=e.stageIndexes,l=a(se);t.listener=function(e){if("touch"!==e.pointerType&&"VIDEO"!==e.target.tagName&&e.preventDefault(),o.runSwipingDownActionsForPropsAndEvent(c,e),c.downScreenY=e.screenY,c.pointerType=e.pointerType,2===c.pointersCount)l.runPinchActions();else for(var n in d)B(s[d[n]],u);var t=i[d.current],r=t&&t.contains(e.target);c.isSourceDownEventTarget=r}}(e),function(e){var n=e.collections,t=n.sourceMainWrapperTransformers,o=n.sourceSizers,r=e.core,i=r.sourceEnhancementWrappersTransformer,s=r.windowResizeActioner,a=r.thumbsTransformer,c=e.data,d=e.elements,l=e.props,p=l.disableThumbs,h=l.sources,m=e.stageIndexes,f=c.notThumbedSourceEnhancementWrapperScales,g=c.captionHeights,b=c.notThumbedSourceEnhancementWrapperTranslatesY,v=d.captions,x=d.sourceMainWrappers,w=d.thumbs;s.runActions=function(){innerWidth<992?c.maxSourceWidth=innerWidth:c.maxSourceWidth=.9*innerWidth,c.maxSourceHeight=.9*innerHeight,p||(c.thumbedSourceEnhancementWrapperScale=1-d.thumbsContainer.offsetHeight/innerHeight,c.thumbedSourceEnhancementWrapperTranslateY=-d.thumbsContainer.offsetHeight/2),0===c.unloadedThumbsCount&&s.runThumbsActions(),void 0!==m.previous&&t[m.previous].negative(),void 0!==m.next&&t[m.next].positive();for(var e=0;e<h.length;e++){if(v[e]){g[e]=v[e].offsetHeight;var n=g[e]-25;f[e]=1-n/innerHeight,b[e]=-n/2}else f[e]=1,b[e]=0;B(x[e],u),i.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(e),o[e]&&o[e].adjustSize()}},s.runThumbsActions=function(){c.thumbsInnerWidth=0;for(var e=0;e<h.length;e++)c.thumbsInnerWidth+=w[e].offsetWidth+8;a.transformToCurrent()}}(e),function(e){var n=e.collections.sourceMainWrapperTransformers,t=e.core.zoomer,o=e.data,r=e.elements,i=e.sourcePointerProps,s=e.stageIndexes,a=e.ui,c=r.sources,d=r.sourceMainWrappers;t.zoomTo=function(e){o.zoom=p(e),r.sourceWrappersContainer.style.transform="scale(".concat(o.zoom,")")},t.ifZoomingResetZoom=function(){1!==o.zoom&&(t.zoomTo(1),t.stopZooming())},t.startZooming=function(){l("grab"),a.zoomFadeOut()},t.stopZooming=function(){l("zoom-in"),a.zoomFadeIn(),d[s.current].classList.add(u),n[s.current].translate(0,0).zero(),i.upSwipedX=0,i.upSwipedY=0};var l=function(e){c[s.current]&&(c[s.current].style.cursor=e)},p=function(e){return parseFloat(e.toPrecision(12))}}(e)}function ue(e,n,o,r,i){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttributeNS(null,"width",n),s.setAttributeNS(null,"height",n),s.setAttributeNS(null,"viewBox",r);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttributeNS(null,"class","".concat(t,"svg-path")),a.setAttributeNS(null,"d",i),s.appendChild(a),e.appendChild(s),s}function de(e,n){var o=document.createElement("div");return o.className="".concat(t,"toolbar-button ").concat(a),o.title=n,e.appendChild(o),o}function le(e,n,t){var o=de(e,n.title);o.onclick=t,ue(o,n.width,n.height,n.viewBox,n.d)}function pe(e){var n=e.props.sources,o=e.elements,r=document.createElement("div");o.nav=r,r.className="".concat(t,"nav"),o.container.appendChild(r),function(e,n){var o=e.core,r=o.clickZoomer,i=r.zoomIn,s=r.zoomOut,a=o.lightboxCloser.close,c=o.thumbsToggler,u=e.props,d=u.customToolbarButtons,l=u.disableThumbs,p=u.toolbarButtons,h=document.createElement("div");h.className="".concat(t,"toolbar"),n.appendChild(h);for(var m=function(n){le(h,d[n],(function(){return d[n].onClick(e)}))},f=0;f<d.length;f++)m(f);l||le(h,p.thumbs,c.toggleThumbs),le(h,p.zoomIn,i),le(h,p.zoomOut,s),function(e,n){var t=e.core.slideshowManager.toggleSlideshow,o=e.componentsServices,r=e.props.toolbarButtons.slideshow,i=r.start,s=r.pause,a=de(n,i.title);a.onclick=t;var c=ue(a,i.width,i.height,i.viewBox,i.d);function u(e){a.title=e.title,c.setAttributeNS(null,"width",e.width),c.setAttributeNS(null,"height",e.height),c.setAttributeNS(null,"viewBox",e.viewBox),c.firstChild.setAttributeNS(null,"d",e.d)}o.startSlideshow=function(){u(s)},o.stopSlideshow=function(){u(i)}}(e,h),function(e,n){var t=e.componentsServices,o=e.data,r=e.fs,i=e.props.toolbarButtons.fullscreen,s=i.enter,a=i.exit,c=de(n,s.title),u=ue(c,s.width,s.height,s.viewBox,s.d);function d(e){c.title=e.title,u.setAttributeNS(null,"width",e.width),u.setAttributeNS(null,"height",e.height),u.setAttributeNS(null,"viewBox",e.viewBox),u.firstChild.setAttributeNS(null,"d",e.d)}t.ofs=function(){o.ifs=!0,d(a)},t.xfs=function(){o.ifs=!1,d(s)},c.onclick=r.t}(e,h),le(h,p.close,a)}(e,r),n.length>1&&function(e,n){var o=e.componentsServices,r=e.props.sources,i=document.createElement("div");i.className="".concat(t,"slide-number-container");var s=document.createElement("div");s.className=a;var c=document.createElement("span");o.setSlideNumber=function(e){return c.innerHTML=e};var u=document.createElement("span");u.className="".concat(t,"slash");var d=document.createElement("div");d.innerHTML=r.length,i.appendChild(s),s.appendChild(c),s.appendChild(u),s.appendChild(d),n.appendChild(i),setTimeout((function(){s.offsetWidth>55&&(i.style.justifyContent="flex-start")}))}(e,r)}function he(e){var n="fslightbox-loader",t=document.createElement("div");t.className=n;for(var o=0;o<3;o++){var r=document.createElement("div");r.className="".concat(n,"-child"),t.appendChild(r)}return e.appendChild(t),t}function me(e,n){var t=e.core.stageManager,o=e.elements,s=o.sourceWrappersContainer,c=o.sourceMainWrappers;c[n]=document.createElement("div");var u="".concat(d," ").concat(r," ").concat(a);t.isSourceInStage(n)||(u+=" ".concat(i)),c[n].className=u,s.appendChild(c[n]),function(e,n){var t=e.elements,o=t.sourceMainWrappers,r=t.sourceEnhancementWrappers;r[n]=document.createElement("div"),o[n].appendChild(r[n]),function(e,n){var t=e.elements,o=t.sourceAnimationWrappers,r=t.sourceEnhancementWrappers;o[n]=document.createElement("div"),he(o[n]),r[n].appendChild(o[n])}(e,n)}(e,n)}function fe(e,n){var t=e.data.isThumbing,o=e.elements,r=o.captions,i=o.container,s=e.props.captions,c=e.stageIndexes.current;r[n]=document.createElement("div");var u="".concat(x," ").concat(a);(c!==n||t)&&(u+=" ".concat(p)),r[n].className=u;var d=document.createElement("div");d.className=w,d.innerHTML=s[n],r[n].appendChild(d),i.appendChild(r[n])}function ge(e,n){var t=e.core.slideChangeFacade,o=e.elements,r=e.props.slideButtons,i=n.charAt(0).toUpperCase()+n.slice(1),s="slideButton".concat(i),c=r[n];o[s]=document.createElement("div"),o[s].className="".concat(m," ").concat(m,"-").concat(n),o[s].title=c.title,o[s].onclick=t["changeTo".concat(i)],function(e,n){var t=document.createElement("div");t.className="".concat(h," ").concat(a),ue(t,n.width,n.height,n.viewBox,n.d),e.appendChild(t)}(o[s],c),o.container.appendChild(o[s])}"object"===("undefined"==typeof document?"undefined":M(document))&&((n=document.createElement("style")).className=o,n.appendChild(document.createTextNode(".fslightbox-fade-in{animation:fslightbox-fade-in .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out{animation:fslightbox-fade-out .3s ease}.fslightbox-fade-in-strong{animation:fslightbox-fade-in-strong forwards .3s cubic-bezier(0,0,.7,1)}.fslightbox-fade-out-strong{animation:fslightbox-fade-out-strong .3s ease}@keyframes fslightbox-fade-in{from{opacity:.65}to{opacity:1}}@keyframes fslightbox-fade-out{from{opacity:.35}to{opacity:0}}@keyframes fslightbox-fade-in-strong{from{opacity:.3}to{opacity:1}}@keyframes fslightbox-fade-out-strong{from{opacity:1}to{opacity:0}}.fslightbox-absoluted{position:absolute;top:0;left:0}.fslightbox-cursor-grabbing{cursor:grabbing!important}.fslightbox-full-dimension{width:100%;height:100%}.fslightbox-display-none{display:none!important}.fslightbox-open{overflow:hidden;height:100%}.fslightbox-flex-centered{display:flex;justify-content:center;align-items:center}.fslightbox-opacity-0{opacity:0!important}.fslightbox-opacity-1{opacity:1!important}.fslightbox-ui-fade-out{opacity:0!important;z-index:-1!important}.fslightbox-scrollbarfix{padding-right:17px}.fslightbox-transform-transition{transition:transform .3s!important}.fslightbox-container{font-family:Arial,sans-serif;position:fixed;top:0;left:0;background:linear-gradient(rgba(30,30,30,.9),#000 1810%);touch-action:none;z-index:1000000000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fslightbox-container *{box-sizing:border-box}.fslightbox-svg-path{transition:fill .15s ease;fill:#d1d2d2}.fslightbox-loader{display:block;margin:auto;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:67px;height:67px}.fslightbox-loader-child{box-sizing:border-box;display:block;position:absolute;width:54px;height:54px;margin:6px;border:5px solid;border-color:#999 transparent transparent transparent;border-radius:50%;animation:fslightbox-loader 1.2s cubic-bezier(.5,0,.5,1) infinite}.fslightbox-loader-child:nth-child(1){animation-delay:-.45s}.fslightbox-loader-child:nth-child(2){animation-delay:-.3s}.fslightbox-loader-child:nth-child(3){animation-delay:-.15s}@keyframes fslightbox-loader{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.fslightbox-thumbs-loader{width:54px!important;height:54px!important}.fslightbox-thumbs-loader div{border-width:4px!important;width:44px!important;height:44px!important}.fslightbox-nav{height:45px;width:100%;transition:opacity .3s}.fslightbox-slide-number-container{display:flex;justify-content:center;align-items:center;position:relative;height:100%;font-size:15px;color:#d7d7d7;z-index:0;max-width:55px;text-align:left}.fslightbox-slide-number-container .fslightbox-flex-centered{height:100%}.fslightbox-slash{display:block;margin:0 5px;width:1px;height:12px;transform:rotate(15deg);background:#fff}.fslightbox-toolbar{position:absolute;z-index:2;right:0;top:0;height:45px;display:flex;background:rgba(35,35,35,.65)}.fslightbox-toolbar-button{height:100%;width:45px;cursor:pointer}.fslightbox-toolbar-button:hover .fslightbox-svg-path{fill:#fff}.fslightbox-slide-btn-container{display:flex;align-items:center;padding:12px 12px 12px 6px;position:absolute;top:50%;cursor:pointer;z-index:2;transform:translateY(-50%);transition:opacity .3s}@media (min-width:476px){.fslightbox-slide-btn-container{padding:22px 22px 22px 6px}}@media (min-width:768px){.fslightbox-slide-btn-container{padding:30px 30px 30px 6px}}.fslightbox-slide-btn-container:hover .fslightbox-svg-path{fill:#f1f1f1}.fslightbox-slide-btn{padding:9px;font-size:26px;background:rgba(35,35,35,.65)}@media (min-width:768px){.fslightbox-slide-btn{padding:10px}}@media (min-width:1600px){.fslightbox-slide-btn{padding:11px}}.fslightbox-slide-btn-container-previous{left:0}@media (max-width:475.99px){.fslightbox-slide-btn-container-previous{padding-left:3px}}.fslightbox-slide-btn-container-next{right:0;padding-left:12px;padding-right:3px}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-left:22px}}@media (min-width:768px){.fslightbox-slide-btn-container-next{padding-left:30px}}@media (min-width:476px){.fslightbox-slide-btn-container-next{padding-right:6px}}.fslightbox-slide-swiping-hoverer{z-index:3}.fslightbox-slideshow-bar{width:0;height:2px;z-index:3;opacity:0;background:#fff}.fslightbox-invalid-file-wrapper{font-size:24px;color:#eaebeb;margin:auto}.fslightbox-video{object-fit:cover}.fslightbox-youtube-iframe{border:0}.fslightbox-source{position:relative;z-index:3;display:block;opacity:0;margin:auto;cursor:zoom-in}.fslightbox-source-wrappers-container{z-index:1;transition:transform .2s linear}.fslightbox-source-wrappers-container-pinching{transition:none!important}.fslightbox-thumbs{position:absolute;bottom:0;left:0;width:100%;z-index:2;background:linear-gradient(180deg,rgba(0,0,0,0),#1e1e1e 100%);transition:opacity .2s;padding:0 5px 12px 5px;height:114px}@media (min-width:992px){.fslightbox-thumbs{padding-bottom:13px;height:120px}}@media (min-width:1600px){.fslightbox-thumbs{padding-bottom:14px;height:126px}}.fslightbox-thumbs-inner{display:inline-flex;justify-content:flex-start;align-items:center;height:100%}.fslightbox-thumb-wrapper{position:relative;height:100%;margin:0 4px;opacity:0;transition:opacity .3s}.fslightbox-thumb-wrapper svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);cursor:pointer;z-index:1}.fslightbox-thumb-wrapper path{fill:#fff}.fslightboxtd{position:absolute;top:2px;left:2px;width:calc(100% - 4px);height:calc(100% - 4px);background:rgba(0,0,0,.4);cursor:pointer}.fslightbox-thumb{cursor:pointer;border-radius:1px;height:100%;width:auto!important;border:2px solid transparent;max-width:unset;max-height:unset}.fslightbox-thumb-active{border:2px solid #fff!important}.fslightbox-thumb-invalid{background:linear-gradient(to bottom,#0f0f0f,rgba(15,15,15,.5));display:inline-block;min-width:155px}.fslightbox-thumbs-cursorer{z-index:3;cursor:grabbing}.fslightbox-caption{position:absolute;bottom:0;left:50%;width:100%;background:linear-gradient(180deg,rgba(0,0,0,0),#1e1e1e 100%);transform:translateX(-50%);transition:opacity .2s;z-index:2;user-select:text}.fslightbox-caption-inner{padding:25px;max-width:1200px;color:#eee;text-align:center;font-size:14px}@media (min-width:768px){.fslightbox-caption-inner{padding:30px 25px}}")),document.head.appendChild(n));var be="fslightbox-types";function ve(e){var n,t=e.props,o=0,r={};this.getSourceTypeFromLocalStorageByUrl=function(e){return n[e]?n[e]:i(e)},this.handleReceivedSourceTypeForUrl=function(e,t){if(!1===r[t]&&(o--,"invalid"!==e?r[t]=e:delete r[t],0===o)){!function(e,n){for(var t in n)e[t]=n[t]}(n,r);try{localStorage.setItem(be,JSON.stringify(n))}catch(e){}}};var i=function(e){o++,r[e]=!1};if(t.disableLocalStorage)this.getSourceTypeFromLocalStorageByUrl=function(){},this.handleReceivedSourceTypeForUrl=function(){};else{try{n=JSON.parse(localStorage.getItem(be))}catch(e){}n||(n={},this.getSourceTypeFromLocalStorageByUrl=i)}}var xe="image",we="video",Se="youtube",ye="custom",Te="invalid";function Ae(e,n,t,o){var r=e.data,i=e.elements.sources,s=t/o,a=0;this.adjustSize=function(){if((a=r.maxSourceWidth/s)<r.maxSourceHeight)return t<r.maxSourceWidth&&(a=o),c();a=o>r.maxSourceHeight?r.maxSourceHeight:o,c()};var c=function(){var e=i[n].style;e.width=a*s+"px",e.height=a+"px"}}function Ce(e,n){var t=this,o=e.collections.sourceSizers,r=e.core.sourceEnhancementWrappersTransformer,i=e.data.isSourceLoadedArray,s=e.elements,a=s.sourceAnimationWrappers,c=s.sourceEnhancementWrappers,d=(s.sourceMainWrappers,s.sources),p=e.props.initialAnimation,h=e.resolve;function m(e,t){o[n]=h(Ae,[n,e,t]),o[n].adjustSize()}this.runActions=function(e,o){i[n]=!0,d[n].classList.add(l),a[n].classList.add(p),a[n].removeChild(a[n].firstChild),r.ifSourceIsLoadedTransformEnhancementWrapperAtIndex(n),R((function(){c[n].classList.add(u)})),m(e,o),t.runActions=m}}function Le(e,n){var t,o=this,r=e.elements.sources,i=e.props,s=(0,e.resolve)(Ce,[n]);this.handleImageLoad=function(e){var n=e.target,t=n.naturalWidth,o=n.naturalHeight;s.runActions(t,o)},this.handleVideoLoad=function(e){var n=e.target,o=n.videoWidth,r=n.videoHeight;t=!0,s.runActions(o,r)},this.handleNotMetaDatedVideoLoad=function(){t||o.handleYoutubeLoad()},this.handleYoutubeLoad=function(){var e=1920,n=1080;i.maxYoutubeDimensions&&(e=i.maxYoutubeDimensions.width,n=i.maxYoutubeDimensions.height),s.runActions(e,n)},this.handleCustomLoad=function(){var e=r[n];e.offsetWidth&&e.offsetHeight?s.runActions(e.offsetWidth,e.offsetHeight):setTimeout(o.handleCustomLoad)}}function Ie(e,n,t){var o=e.elements.sources,r=e.props.customClasses,i=r[n]?r[n]:"";o[n].className=t+" "+i}function We(e,n){var t=e.elements.sources,o=e.props.customAttributes;for(var r in o[n])t[n].setAttribute(r,o[n][r])}function ze(e,n){var t=e.collections.sourceLoadHandlers,o=e.elements,r=o.sources,i=o.sourceAnimationWrappers,s=e.props.sources;r[n]=document.createElement("img"),Ie(e,n,S),r[n].src=s[n],r[n].onload=t[n].handleImageLoad,We(e,n),i[n].appendChild(r[n])}function Ee(e,n){var t=e.collections.sourceLoadHandlers,o=e.elements,r=o.sources,i=o.sourceAnimationWrappers,s=e.props,a=s.sources,c=s.videosPosters;r[n]=document.createElement("video"),Ie(e,n,S),r[n].src=a[n],r[n].onloadedmetadata=function(e){t[n].handleVideoLoad(e)},r[n].controls=!0,We(e,n),c[n]&&(r[n].poster=c[n]);var u=document.createElement("source");u.src=a[n],r[n].appendChild(u),setTimeout(t[n].handleNotMetaDatedVideoLoad,3e3),i[n].appendChild(r[n])}function Fe(e,n){var o=e.collections.sourceLoadHandlers,r=e.elements,i=r.sources,s=r.sourceAnimationWrappers,a=e.props.sources;i[n]=document.createElement("iframe"),Ie(e,n,"".concat(S," ").concat(t,"youtube-iframe"));var c=a[n],u=c.split("?")[1];i[n].src="https://www.youtube.com/embed/".concat(c.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2],"?").concat(u||""),i[n].allowFullscreen=!0,We(e,n),s[n].appendChild(i[n]),o[n].handleYoutubeLoad()}function Me(e,n){var t=e.collections.sourceLoadHandlers,o=e.elements,r=o.sources,i=o.sourceAnimationWrappers,s=e.props.sources;r[n]=s[n],Ie(e,n,"".concat(r[n].className," ").concat(S)),i[n].appendChild(r[n]),t[n].handleCustomLoad()}function Pe(e,n){e.data.isSourceLoaded;var o=e.elements,r=o.sources,i=o.sourceAnimationWrappers;o.sourceMainWrappers,e.props.sources,r[n]=document.createElement("div"),r[n].className="".concat(t,"invalid-file-wrapper ").concat(a," ").concat(b),r[n].innerHTML="Invalid source",i[n].removeChild(i[n].firstChild),i[n].appendChild(r[n])}function Ne(e,n,t){var o=e.props.thumbsIcons;if(o[t]){n.appendChild(o[t].cloneNode(!0));var r=document.createElement("div");r.className="fslightboxtd",n.appendChild(r)}}function Be(e,n,t){var o=e.elements,r=o.thumbsWrappers,i=o.thumbsInner;r[n]=document.createElement("div"),r[n].className=z,Ne(e,r[n],n),function(e,n,t,o){var r=e.core.thumbLoadHandler.handleLoad,i=e.elements.thumbs,s=e.stageIndexes.current;i[t]=document.createElement("img"),i[t].src=o;var a=A;s===t&&(a+=" ".concat(F)),i[t].className=a,i[t].onload=r,n.appendChild(i[t])}(e,r[n],n,t),i.appendChild(r[n])}function He(e){var n=e.core.thumbsRenderDispatcher,t=e.data,o=e.props,r=o.showThumbsOnMount,i=o.sources,s=o.thumbs;this.buildThumbForTypeAndIndex=function(o,c){var u;u=s[c]?function(){return Be(e,c,s[c])}:o===xe?function(){return Be(e,c,i[c])}:function(){return function(e,n){var t=e.elements,o=t.thumbsWrappers,r=t.thumbsInner;o[n]=document.createElement("div"),o[n].className="".concat(E," ").concat(z),Ne(e,o[n],n),function(e,n,t){var o=e.core.thumbLoadHandler.handleLoad,r=e.elements.thumbs,i=e.stageIndexes.current;r[t]=document.createElement("div");var s="".concat(A," ").concat(a);i===t&&(s+=" ".concat(F)),r[t].className=s,ue(r[t],"22px",0,"0 0 30 30","M15,3C8.373,3,3,8.373,3,15c0,6.627,5.373,12,12,12s12-5.373,12-12C27,8.373,21.627,3,15,3z M16.212,8l-0.2,9h-2.024l-0.2-9 H16.212z M15.003,22.189c-0.828,0-1.323-0.441-1.323-1.182c0-0.755,0.494-1.196,1.323-1.196c0.822,0,1.316,0.441,1.316,1.196 C16.319,21.748,15.825,22.189,15.003,22.189z"),n.appendChild(r[t]),setTimeout(o)}(e,o[n],n),r.appendChild(o[n])}(e,c)},n.addFunctionToToBeRenderedAtIndex(u,c),(r||t.isThumbing)&&n.renderThumbsIfNotYetAndAllTypesDetected()}}function ke(e){var n,t=e.collections,o=t.sourceLoadHandlers,r=t.sourcesRenderFunctions,i=e.core.sourceDisplayFacade,s=e.props.disableThumbs,a=e.resolve;s||(n=a(He)),this.runActionsForSourceTypeAndIndex=function(t,c){var u;switch(t!==Te&&(o[c]=a(Le,[c])),t){case xe:u=ze;break;case we:u=Ee;break;case Se:u=Fe;break;case ye:u=Me;break;default:u=Pe}r[c]=function(){return u(e,c)},i.displaySourcesWhichShouldBeDisplayed(),s||n.buildThumbForTypeAndIndex(t,c)}}function Oe(e,n,t){var o=e.props,r=o.types,i=o.type,s=o.sources;this.getTypeSetByClientForIndex=function(e){var n;return r&&r[e]?n=r[e]:i&&(n=i),n},this.retrieveTypeWithXhrForIndex=function(e){!function(e,n){var t=document.createElement("a");t.href=e;var o=t.hostname;if("www.youtube.com"===o||"youtu.be"===o)return n(Se);var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4!==r.readyState){if(2===r.readyState){var e,t=r.getResponseHeader("content-type");switch(t.slice(0,t.indexOf("/"))){case"image":e=xe;break;case"video":e=we;break;default:e=Te}r.onreadystatechange=null,r.abort(),n(e)}}else n(Te)},r.open("GET",e),r.send()}(s[e],(function(o){n.handleReceivedSourceTypeForUrl(o,s[e]),t.runActionsForSourceTypeAndIndex(o,e)}))}}function De(e){var n,o,i,s=e.collections.sourceMainWrapperTransformers,a=e.componentsServices,h=e.core,m=h.enhancementActiver,f=h.eventsDispatcher,g=h.lightboxOpener,v=h.globalEventsController,x=h.scrollbarRecompensor,w=h.sourceDisplayFacade,S=h.sourceWrappersStager,T=h.stageManager,A=h.windowResizeActioner,z=e.data,E=e.elements,F=e.stageIndexes,M=e.ui;function B(){!function(e){var n=e.stageIndexes,t=e.core.stageManager,o=e.props.sources.length-1;t.getPreviousSlideIndex=function(){return 0===n.current?o:n.current-1},t.getNextSlideIndex=function(){return n.current===o?0:n.current+1},t.updateStageIndexes=0===o?function(){}:1===o?function(){0===n.current?(n.next=1,delete n.previous):(n.previous=0,delete n.next)}:function(){n.previous=t.getPreviousSlideIndex(),n.next=t.getNextSlideIndex()},t.isSourceInStage=o<=2?function(){return!0}:function(e){var t=n.current;if(0===t&&e===o||t===o&&0===e)return!0;var r=t-e;return-1===r||0===r||1===r}}(e)}function H(){var n=e.props,o=n.disableThumbs,i=n.showThumbsOnMount,s=n.sources;z.isInitialized=!0,z.scrollbarWidth=function(){var e=document.createElement("div"),n=e.style,t=document.createElement("div");n.visibility="hidden",n.width="100px",n.msOverflowStyle="scrollbar",n.overflow="scroll",t.style.width="100%",document.body.appendChild(e);var o=e.offsetWidth;e.appendChild(t);var r=t.offsetWidth;return document.body.removeChild(e),o-r}(),z.unloadedThumbsCount=s.length,function(e){for(var n=e.collections.sourceMainWrapperTransformers,t=e.props.sources,o=e.resolve,r=0;r<t.length;r++)n[r]=o(P,[r])}(e),o||(z.isThumbing=i,function(e){var n=e.core,t=e.data,o=e.elements,r=e.props;t.isThumbing=r.showThumbsOnMount,t.thumbsInnerWidth=null,t.thumbsTransform=0,t.thumbedSourceEnhancementWrapperScale=null,t.thumbedSourceEnhancementWrapperTranslateY=null,t.unloadedThumbsCount=r.sources.length,e.thumbsSwipingProps={isPointering:!1,downScreenX:null,swipedX:null},n.thumbLoadHandler={},n.thumbsRenderDispatcher={},n.thumbsSwipingDown={},n.thumbsToggler={},n.thumbsTransformer={},n.thumbsTransformTransitioner={},o.thumbsContainer=null,o.thumbs=[],o.thumbsWrappers=[],o.thumbsComponents=[],o.thumbsInner=null,function(e){var n=e.core,t=n.thumbLoadHandler,o=n.windowResizeActioner,r=e.componentsServices,i=e.data,s=e.elements.thumbsWrappers;t.handleLoad=function(){if(i.unloadedThumbsCount--,0===i.unloadedThumbsCount){for(var e=0;e<s.length;e++)s[e].classList.add(l);o.runThumbsActions(),r.hideThumbsLoader()}}}(e),function(e){var n=e.core.thumbsRenderDispatcher,t=e.props.sources,o=[],r=!1,i=0;n.addFunctionToToBeRenderedAtIndex=function(e,n){o[n]=e,i++},n.renderThumbsIfNotYetAndAllTypesDetected=function(){if(!r&&i===t.length){r=!0;for(var e=0;e<t.length;e++)o[e]()}}}(e),function(e){var n=e.core,t=n.thumbsSwipingDown,o=n.pointeringBucket,r=e.thumbsSwipingProps;t.listener=function(e){e.preventDefault(),o.runSwipingDownActionsForPropsAndEvent(r,e)}}(e),function(e){var n=e.core.thumbsToggler,t=e.data,o=(0,e.resolve)(N);n.toggleThumbs=function(){t.isThumbing?o.closeThumbs():o.openThumbs()}}(e),function(e){var n=e.core,t=n.thumbsTransformer,o=n.thumbsTransformTransitioner,r=e.data,i=(0,e.resolve)(k);t.transformToCurrent=function(){r.thumbsInnerWidth>innerWidth?i.runActions():i.runToThinThumbsActions()},t.transformToCurrentWithTransition=function(){r.thumbsInnerWidth>innerWidth&&o.callActionWithTransition(i.runActions)}}(e),function(e){var n=e.core.thumbsTransformTransitioner,t=e.elements,o=O((function(){t.thumbsInner.classList.remove(u)}),300);n.callActionWithTransition=function(e){t.thumbsInner.classList.add(u),e(),o()}}(e)}(e)),ce(e),function(e){var n=e.elements,o=document.createElement("div");o.className="".concat(t,"container ").concat(r," ").concat(b),n.container=o}(e),function(e){var n=e.elements;n.slideSwipingHoverer=document.createElement("div"),n.slideSwipingHoverer.className="".concat(t,"slide-swiping-hoverer ").concat(r," ").concat(d)}(e),pe(e),function(e){var n=e.elements;n.slideshowBar=document.createElement("div"),n.slideshowBar.className="".concat(t,"slideshow-bar ").concat(d),n.container.appendChild(n.slideshowBar)}(e),function(e){var n=e.core.sourcesPointerDown.listener,t=e.elements,o=e.middleware,i=e.props.sources,s=document.createElement("div");s.className="".concat(y," ").concat(d," ").concat(r),t.container.appendChild(s),s.addEventListener("pointerdown",o(n,te)),t.sourceWrappersContainer=s;for(var a=0;a<i.length;a++)me(e,a)}(e),function(e){for(var n=e.props.captions,t=0;t<n.length;t++)n[t]&&fe(e,t)}(e),s.length>1&&function(e){ge(e,"previous"),ge(e,"next")}(e),o||function(e){var n=e.componentsServices,t=e.elements,o=e.data;t.thumbsContainer=document.createElement("div");var i,s,a=C;function c(){s=!0,(i=he(t.thumbsContainer)).classList.add(L)}o.isThumbing?c():a+=" ".concat(p),n.appendThumbsLoaderIfNotYet=function(){s||c()},n.hideThumbsLoader=function(){t.thumbsContainer.removeChild(i)},t.thumbsContainer.className=a,t.container.appendChild(t.thumbsContainer),function(e){var n=e.elements;n.thumbsCursorer=document.createElement("div"),n.thumbsCursorer.className="".concat(I," ").concat(r," ").concat(d)}(e),function(e){var n=e.core.thumbsSwipingDown.listener,t=e.elements;t.thumbsInner=document.createElement("div"),t.thumbsInner.className=W,t.thumbsInner.addEventListener("pointerdown",n),t.thumbsContainer.appendChild(t.thumbsInner)}(e)}(e),function(e){for(var n=e.props.sources,t=e.resolve,o=t(ve),r=t(ke),i=t(Oe,[o,r]),s=0;s<n.length;s++)if("string"==typeof n[s]){var a=i.getTypeSetByClientForIndex(s);if(a)r.runActionsForSourceTypeAndIndex(a,s);else{var c=o.getSourceTypeFromLocalStorageByUrl(n[s]);c?r.runActionsForSourceTypeAndIndex(c,s):i.retrieveTypeWithXhrForIndex(s)}}else r.runActionsForSourceTypeAndIndex(ye,s)}(e),f.dispatch("onInit")}function D(){S.removeAnimationsFromStageSourceAnimationWrappersIfThereAre(),S.displayNotDisplayedStageSourceMainWrappers(),S.possiblyUnstageSourceMainWrapperAtIndex(n),S.possiblyUnstageSourceMainWrapperAtIndex(o),S.possiblyUnstageSourceMainWrapperAtIndex(i),m.changeActiveCaptionFromTo(o,F.current),m.changeActiveThumbFromTo(o,F.current),f.dispatch("onShow")}g.open=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;n=F.previous,o=F.current,i=F.next,F.current=e,z.isInitialized||B(),T.updateStageIndexes(),z.isInitialized?D():H(),w.displaySourcesWhichShouldBeDisplayed(),a.setSlideNumber(e+1),document.body.appendChild(E.container),document.documentElement.classList.add(c),x.addRecompense(),v.addListeners(),A.runActions(),s[F.current].noTransform(),M.scheduleFadeOut(),f.dispatch("onOpen")}}function Re(e){return function(e){if(Array.isArray(e))return Xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return Xe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Xe(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function Ye(e,n,t){return Ye=Ue()?Reflect.construct.bind():function(e,n,t){var o=[null];o.push.apply(o,n);var r=new(Function.bind.apply(e,o));return t&&Ze(r,t.prototype),r},Ye.apply(null,arguments)}function Ue(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Ze(e,n){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Ze(e,n)}function je(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return qe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qe(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function Ve(){for(var e=document.getElementsByTagName("a"),n=function(n){if(!e[n].hasAttribute("data-fslightbox"))return"continue";var t=e[n].getAttribute("href");if(!t)return console.warn('The "data-fslightbox" attribute was set without the "href" attribute.'),"continue";var o=e[n].getAttribute("data-fslightbox");fsLightboxInstances[o]||(fsLightboxInstances[o]=new FsLightbox);var r=null;"#"===t.charAt(0)?(r=document.getElementById(t.substring(1)).cloneNode(!0)).removeAttribute("id"):r=t,fsLightboxInstances[o].props.sources.push(r),fsLightboxInstances[o].elements.a.push(e[n]);var i=fsLightboxInstances[o].props.sources.length-1;e[n].onclick=function(e){e.preventDefault(),fsLightboxInstances[o].open(i)},l("captions","data-caption"),l("customClasses","data-class"),l("customClasses","data-custom-class"),l("types","data-type"),l("thumbs","data-thumb"),l("videosPosters","data-video-poster");for(var s=["href","data-fslightbox","data-caption","data-class","data-custom-class","data-type","data-thumb","data-video-poster"],a=e[n].attributes,c=fsLightboxInstances[o].props.customAttributes,u=0;u<a.length;u++)if(-1===s.indexOf(a[u].name)&&"data-"===a[u].name.substr(0,5)){c[i]||(c[i]={});var d=a[u].name.substr(5);c[i][d]=a[u].value}function l(t,r){e[n].hasAttribute(r)&&(fsLightboxInstances[o].props[t][i]=e[n].getAttribute(r))}},t=0;t<e.length;t++)n(t);var o=Object.keys(fsLightboxInstances);window.fsLightbox=fsLightboxInstances[o[o.length-1]]}return window.FsLightbox=function(){var e=this;this.props={sources:[],maxYoutubeDimensions:null,customAttributes:[],customClasses:[],types:[],type:null,thumbs:[],thumbsIcons:[],captions:[],videosPosters:[],customToolbarButtons:[],initialAnimation:b,slideChangeAnimation:f,slideDistance:.3,slideshowTime:8e3,UIFadeOutTime:8e3,zoomIncrement:.25,toolbarButtons:{thumbs:{width:"17px",height:"17px",viewBox:"0 0 22 22",d:"M 3 2 C 2.448 2 2 2.448 2 3 L 2 6 C 2 6.552 2.448 7 3 7 L 6 7 C 6.552 7 7 6.552 7 6 L 7 3 C 7 2.448 6.552 2 6 2 L 3 2 z M 10 2 C 9.448 2 9 2.448 9 3 L 9 6 C 9 6.552 9.448 7 10 7 L 13 7 C 13.552 7 14 6.552 14 6 L 14 3 C 14 2.448 13.552 2 13 2 L 10 2 z M 17 2 C 16.448 2 16 2.448 16 3 L 16 6 C 16 6.552 16.448 7 17 7 L 20 7 C 20.552 7 21 6.552 21 6 L 21 3 C 21 2.448 20.552 2 20 2 L 17 2 z M 3 9 C 2.448 9 2 9.448 2 10 L 2 13 C 2 13.552 2.448 14 3 14 L 6 14 C 6.552 14 7 13.552 7 13 L 7 10 C 7 9.448 6.552 9 6 9 L 3 9 z M 10 9 C 9.448 9 9 9.448 9 10 L 9 13 C 9 13.552 9.448 14 10 14 L 13 14 C 13.552 14 14 13.552 14 13 L 14 10 C 14 9.448 13.552 9 13 9 L 10 9 z M 17 9 C 16.448 9 16 9.448 16 10 L 16 13 C 16 13.552 16.448 14 17 14 L 20 14 C 20.552 14 21 13.552 21 13 L 21 10 C 21 9.448 20.552 9 20 9 L 17 9 z M 3 16 C 2.448 16 2 16.448 2 17 L 2 20 C 2 20.552 2.448 21 3 21 L 6 21 C 6.552 21 7 20.552 7 20 L 7 17 C 7 16.448 6.552 16 6 16 L 3 16 z M 10 16 C 9.448 16 9 16.448 9 17 L 9 20 C 9 20.552 9.448 21 10 21 L 13 21 C 13.552 21 14 20.552 14 20 L 14 17 C 14 16.448 13.552 16 13 16 L 10 16 z M 17 16 C 16.448 16 16 16.448 16 17 L 16 20 C 16 20.552 16.448 21 17 21 L 20 21 C 20.552 21 21 20.552 21 20 L 21 17 C 21 16.448 20.552 16 20 16 L 17 16 z",title:"Thumbnails"},zoomIn:{width:"20px",height:"20px",viewBox:"0 0 30 30",d:"M 13 3 C 7.4889971 3 3 7.4889971 3 13 C 3 18.511003 7.4889971 23 13 23 C 15.396508 23 17.597385 22.148986 19.322266 20.736328 L 25.292969 26.707031 A 1.0001 1.0001 0 1 0 26.707031 25.292969 L 20.736328 19.322266 C 22.148986 17.597385 23 15.396508 23 13 C 23 7.4889971 18.511003 3 13 3 z M 13 5 C 17.430123 5 21 8.5698774 21 13 C 21 17.430123 17.430123 21 13 21 C 8.5698774 21 5 17.430123 5 13 C 5 8.5698774 8.5698774 5 13 5 z M 12.984375 7.9863281 A 1.0001 1.0001 0 0 0 12 9 L 12 12 L 9 12 A 1.0001 1.0001 0 1 0 9 14 L 12 14 L 12 17 A 1.0001 1.0001 0 1 0 14 17 L 14 14 L 17 14 A 1.0001 1.0001 0 1 0 17 12 L 14 12 L 14 9 A 1.0001 1.0001 0 0 0 12.984375 7.9863281 z",title:"Zoom In"},zoomOut:{width:"20px",height:"20px",viewBox:"0 0 30 30",d:"M 13 3 C 7.4889971 3 3 7.4889971 3 13 C 3 18.511003 7.4889971 23 13 23 C 15.396508 23 17.597385 22.148986 19.322266 20.736328 L 25.292969 26.707031 A 1.0001 1.0001 0 1 0 26.707031 25.292969 L 20.736328 19.322266 C 22.148986 17.597385 23 15.396508 23 13 C 23 7.4889971 18.511003 3 13 3 z M 13 5 C 17.430123 5 21 8.5698774 21 13 C 21 17.430123 17.430123 21 13 21 C 8.5698774 21 5 17.430123 5 13 C 5 8.5698774 8.5698774 5 13 5 z M 9 12 A 1.0001 1.0001 0 1 0 9 14 L 17 14 A 1.0001 1.0001 0 1 0 17 12 L 9 12 z",title:"Zoom Out"},slideshow:{start:{width:"16px",height:"16px",viewBox:"0 0 30 30",d:"M 6 3 A 1 1 0 0 0 5 4 A 1 1 0 0 0 5 4.0039062 L 5 15 L 5 25.996094 A 1 1 0 0 0 5 26 A 1 1 0 0 0 6 27 A 1 1 0 0 0 6.5800781 26.8125 L 6.5820312 26.814453 L 26.416016 15.908203 A 1 1 0 0 0 27 15 A 1 1 0 0 0 26.388672 14.078125 L 6.5820312 3.1855469 L 6.5800781 3.1855469 A 1 1 0 0 0 6 3 z",title:"Turn on slideshow"},pause:{width:"14px",height:"14px",viewBox:"0 0 356.19 356.19",d:"M121,0c18,0,33,15,33,33v372c0,18-15,33-33,33s-32-15-32-33V33C89,15,103,0,121,0zM317,0c18,0,32,15,32,33v372c0,18-14,33-32,33s-33-15-33-33V33C284,15,299,0,317,0z",title:"Turn off slideshow"}},fullscreen:{enter:{width:"20px",height:"20px",viewBox:"0 0 18 18",d:"M4.5 11H3v4h4v-1.5H4.5V11zM3 7h1.5V4.5H7V3H3v4zm10.5 6.5H11V15h4v-4h-1.5v2.5zM11 3v1.5h2.5V7H15V3h-4z",title:"Enter fullscreen"},exit:{width:"24px",height:"24px",viewBox:"0 0 950 1024",d:"M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z",title:"Exit fullscreen"}},close:{width:"20px",height:"20px",viewBox:"0 0 24 24",d:"M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z",title:"Close"}},slideButtons:{previous:{width:"20px",height:"20px",viewBox:"0 0 20 20",d:"M18.271,9.212H3.615l4.184-4.184c0.306-0.306,0.306-0.801,0-1.107c-0.306-0.306-0.801-0.306-1.107,0L1.21,9.403C1.194,9.417,1.174,9.421,1.158,9.437c-0.181,0.181-0.242,0.425-0.209,0.66c0.005,0.038,0.012,0.071,0.022,0.109c0.028,0.098,0.075,0.188,0.142,0.271c0.021,0.026,0.021,0.061,0.045,0.085c0.015,0.016,0.034,0.02,0.05,0.033l5.484,5.483c0.306,0.307,0.801,0.307,1.107,0c0.306-0.305,0.306-0.801,0-1.105l-4.184-4.185h14.656c0.436,0,0.788-0.353,0.788-0.788S18.707,9.212,18.271,9.212z",title:"Previous"},next:{width:"20px",height:"20px",viewBox:"0 0 20 20",d:"M1.729,9.212h14.656l-4.184-4.184c-0.307-0.306-0.307-0.801,0-1.107c0.305-0.306,0.801-0.306,1.106,0l5.481,5.482c0.018,0.014,0.037,0.019,0.053,0.034c0.181,0.181,0.242,0.425,0.209,0.66c-0.004,0.038-0.012,0.071-0.021,0.109c-0.028,0.098-0.075,0.188-0.143,0.271c-0.021,0.026-0.021,0.061-0.045,0.085c-0.015,0.016-0.034,0.02-0.051,0.033l-5.483,5.483c-0.306,0.307-0.802,0.307-1.106,0c-0.307-0.305-0.307-0.801,0-1.105l4.184-4.185H1.729c-0.436,0-0.788-0.353-0.788-0.788S1.293,9.212,1.729,9.212z",title:"Next"}}},this.data={isInitialized:!1,isThumbing:!1,maxSourceWidth:0,maxSourceHeight:0,scrollbarWidth:0,isSlideshowOn:!1,isSourceLoadedArray:[],captionHeights:[],notThumbedSourceEnhancementWrapperScales:[],notThumbedSourceEnhancementWrapperTranslatesY:[],zoom:1},this.ifs=!1,this.sourcePointerProps={isPointering:!1,pointers:{},pointersCount:0,downScreenX:null,downScreenY:null,isSourceDownEventTarget:!1,swipedX:0,swipedY:0,upSwipedX:0,upSwipedY:0,pinchedHypot:0},this.stageIndexes={},this.elements={a:[],captions:[],container:null,nav:null,slideSwipingHoverer:null,slideButtonPrevious:null,slideButtonNext:null,sourceWrappersContainer:null,slideshowBar:null,sourceAnimationWrappers:[],sourceEnhancementWrappers:[],sourceMainWrappers:[],sources:[]},this.componentsServices={setSlideNumber:function(){},startSlideshow:null,stopSlideshow:null},this.middleware=function(n,t){return function(e,n,t){return function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var s=t?[].concat(Re(t),r):r;n.apply(void 0,Re(s))&&e.apply(void 0,r)}}(n,t,[e])},this.resolve=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.unshift(e),Ye(n,je(t))},this.collections={sourceMainWrapperTransformers:[],sourceLoadHandlers:[],sourcesRenderFunctions:[],sourceSizers:[]},this.core={enhancementActiver:{},classFacade:{},clickZoomer:{},eventsDispatcher:{},globalEventsController:{},lightboxCloser:{},lightboxOpener:{},lightboxUpdater:{},pointeringBucket:{},scrollbarRecompensor:{},slideshowManager:{},slideChangeFacade:{},slideIndexChanger:{},sourceDisplayFacade:{},sourceEnhancementWrappersTransformer:{},sourceWrappersStager:{},sourcesPointerDown:{},stageManager:{},swipingActioner:{},windowResizeActioner:{},zoomer:{}},this.fs={},this.ui={},De(this),this.open=this.core.lightboxOpener.open,this.close=function(){return e.core.lightboxCloser.close()}},window.fsLightboxInstances={},Ve(),window.refreshFsLightbox=function(){for(var e in fsLightboxInstances){var n=fsLightboxInstances[e].props;fsLightboxInstances[e]=new FsLightbox,fsLightboxInstances[e].props=n,fsLightboxInstances[e].props.sources=[],fsLightboxInstances[e].elements.a=[]}Ve()},e})()));