/*! For license information please see index.js.LICENSE.txt */ (()=>{var t={4298:(t,e,r)=>{var n,i,o,s;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}t=r.nmd(t),window,s=function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==a(t)&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return m}));var n=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.positions={top:0,bottom:0,height:0}}var e;return(e=[{key:"setViewportTop",value:function(t){return this.positions.top=t?t.scrollTop:window.pageYOffset,this.positions}},{key:"setViewportBottom",value:function(){return this.positions.bottom=this.positions.top+this.positions.height,this.positions}},{key:"setViewportAll",value:function(t){return this.positions.top=t?t.scrollTop:window.pageYOffset,this.positions.height=t?t.clientHeight:document.documentElement.clientHeight,this.positions.bottom=this.positions.top+this.positions.height,this.positions}}])&&function(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?setTimeout((function(){e.setTransitionCSS(),e.elementContainer.classList.add("simple-parallax-initialized")}),10):this.elementContainer.classList.add("simple-parallax-initialized"),this.isInit=!0))}},{key:"wrapElement",value:function(){var t=this.element.closest("picture")||this.element,e=this.customWrapper||document.createElement("div");e.classList.add("simpleParallax"),e.style.overflow="hidden",this.customWrapper||(t.parentNode.insertBefore(e,t),e.appendChild(t)),this.elementContainer=e}},{key:"unWrapElement",value:function(){var t=this.elementContainer;this.customWrapper?(t.classList.remove("simpleParallax"),t.style.overflow=""):t.replaceWith.apply(t,function(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}(t)||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.")}()}(t.childNodes))}},{key:"setTransformCSS",value:function(){!1===this.settings.overflow&&(this.element.style[o]="scale(".concat(this.settings.scale,")")),this.element.style.willChange="transform"}},{key:"setTransitionCSS",value:function(){this.element.style.transition="transform ".concat(this.settings.delay,"s ").concat(this.settings.transition)}},{key:"unSetStyle",value:function(){this.element.style.willChange="",this.element.style[o]="",this.element.style.transition=""}},{key:"getElementOffset",value:function(){var t=this.elementContainer.getBoundingClientRect();if(this.elementHeight=t.height,this.elementTop=t.top+n.positions.top,this.settings.customContainer){var e=this.settings.customContainer.getBoundingClientRect();this.elementTop=t.top-e.top+n.positions.top}this.elementBottom=this.elementHeight+this.elementTop}},{key:"buildThresholdList",value:function(){for(var t=[],e=1;e<=this.elementHeight;e++){var r=e/this.elementHeight;t.push(r)}return t}},{key:"intersectionObserver",value:function(){var t={root:null,threshold:this.buildThresholdList()};this.observer=new IntersectionObserver(this.intersectionObserverCallback.bind(this),t),this.observer.observe(this.element)}},{key:"intersectionObserverCallback",value:function(t){var e=this;t.forEach((function(t){t.isIntersecting?e.isVisible=!0:e.isVisible=!1}))}},{key:"checkIfVisible",value:function(){return this.elementBottom>n.positions.top&&this.elementTopthis.settings.maxTransition&&(t=this.settings.maxTransition),this.oldPercentage!==t&&(this.rangeMax||this.getRangeMax(),this.translateValue=(t/100*this.rangeMax-this.rangeMax/2).toFixed(0),this.oldTranslateValue!==this.translateValue&&(this.oldPercentage=t,this.oldTranslateValue=this.translateValue,!0))}},{key:"animate",value:function(){var t,e=0,r=0;(this.settings.orientation.includes("left")||this.settings.orientation.includes("right"))&&(r="".concat(this.settings.orientation.includes("left")?-1*this.translateValue:this.translateValue,"px")),(this.settings.orientation.includes("up")||this.settings.orientation.includes("down"))&&(e="".concat(this.settings.orientation.includes("up")?-1*this.translateValue:this.translateValue,"px")),t=!1===this.settings.overflow?"translate3d(".concat(r,", ").concat(e,", 0) scale(").concat(this.settings.scale,")"):"translate3d(".concat(r,", ").concat(e,", 0)"),this.element.style[o]=t}}])&&function(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r{"use strict";t.exports=r.p+"images/728aff5c33f1f6e27f1c.png"},7100:(t,e,r)=>{"use strict";t.exports=r.p+"images/09f3f7018735109ce8c1.png"},1366:(t,e,r)=>{"use strict";t.exports=r.p+"images/6667cb0d5ee289d5a723.png"},4774:(t,e,r)=>{"use strict";t.exports=r.p+"images/e24f7364061cf2a6b287.png"},8128:(t,e,r)=>{"use strict";t.exports=r.p+"images/1d4a0f4efdd0bed180a6.png"},4906:(t,e,r)=>{"use strict";t.exports=r.p+"images/662f65c43990be6631d7.png"},6120:(t,e,r)=>{"use strict";t.exports=r.p+"images/662f65c43990be6631d7.png"},9331:(t,e,r)=>{"use strict";t.exports=r.p+"images/662f65c43990be6631d7.png"},3427:(t,e,r)=>{"use strict";t.exports=r.p+"images/662f65c43990be6631d7.png"},3298:(t,e,r)=>{"use strict";t.exports=r.p+"images/6667cb0d5ee289d5a723.png"},2916:(t,e,r)=>{"use strict";t.exports=r.p+"images/6667cb0d5ee289d5a723.png"},3709:(t,e,r)=>{"use strict";t.exports=r.p+"images/ccd25c4904e539ea24ec.png"},8794:(t,e,r)=>{"use strict";t.exports=r.p+"images/ddc3a3bd591d69117c28.png"},9191:(t,e,r)=>{"use strict";t.exports=r.p+"images/5f69b8a6cd9840dfe9fc.png"},168:(t,e,r)=>{"use strict";t.exports=r.p+"images/2687b8266cde0268587e.png"},1816:(t,e,r)=>{"use strict";t.exports=r.p+"images/d1d82833e8c627824cdc.png"},743:(t,e,r)=>{"use strict";t.exports=r.p+"images/6175f22915fa85608e3e.png"}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n](o,o.exports,r),o.loaded=!0,o.exports}r.m=t,r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t+"../"})(),r.b=document.baseURI||self.location.href,(()=>{"use strict";var t=r(4298),e=r.n(t);function n(t,e){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:0;o(this,t),this._renderedItems=n||[],this._container=document.querySelector(r),this._renderer=i,this._delay=0,this._delayTime=s}var e,r;return e=t,(r=[{key:"setItem",value:function(t){this._container.prepend(t)}},{key:"appendItem",value:function(t){this._container.append(t)}},{key:"clear",value:function(){this._container.innerHTML="",this._delay=0}},{key:"renderFiltered",value:function(t){var e=this;this.clear(),this._renderedItems=t,this._renderedItems.forEach((function(t){e._renderer(t)})),0===t.length&&(this._container.innerHTML='

Тепловой пункт в пути или проходит пуско-наладку :) Скоро опубликуем!

')}},{key:"renderItems",value:function(){var t=this;this._renderedItems.forEach((function(e){e["data-wow-delay"]="".concat(t._delay/1e3,"s"),setTimeout((function(){t._renderer(e)}),t._delay),t._delay+=t._delayTime}))}},{key:"renderItemsFromApi",value:function(t){var e=this;t.forEach((function(t){t["data-wow-delay"]="".concat(e._delay/1e3,"s"),setTimeout((function(){e._renderer(t)}),e._delay),e._delay+=e._delayTime}))}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function u(t,e){for(var r=0;r=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,c);!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this,p))._staticInfo={dateTime:r,title:n,intro:i,desc:a,posterLink:l},e._posterLink=l,e._handleObjectClick=h,e._imagesArray=u?JSON.parse(u).map((function(t){return"https://www.utermo.ru/api-images/anews/".concat(f,"/").concat(t)})):[];var d=new Date(r),m=d.getMonth()+1;return e._dateString="".concat(d.getDate(),".").concat(m<10?"0":"").concat(m,".").concat(d.getFullYear()),e}return e=s,(r=[{key:"generateCard",value:function(){return this._element=m(y(s.prototype),"_getTemplate",this).call(this),this._posterElem=this._element.querySelector(".card-news__image"),this._titleElem=this._element.querySelector(".card-news__title"),this._introElem=this._element.querySelector(".card-news__intro"),this._dateElem=this._element.querySelector(".card-news__date"),this._posterElem.src=this._posterLink,this._titleElem.textContent=this._staticInfo.title,this._introElem&&(this._introElem.textContent=this._staticInfo.intro),this._dateElem.textContent=this._dateString,this._setEventListeners(),this._element}},{key:"_setEventListeners",value:function(){var t=this;this._element.addEventListener("mousedown",(function(e){e.preventDefault(),console.log(t.__staticInfo),t._handleObjectClick(h(h({},t._staticInfo),{},{posterLink:t._posterLink,date:t._dateString,imagesArr:t._imagesArray}))}))}}])&&d(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(function(){function t(e){var r=e.cardTemplateSelector,n=e.cardSelector,i=e.animateClass;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._cardSelector=n,this._cardTemplateSelector=r,this._animateClass=i}var e,r;return e=t,(r=[{key:"_getTemplate",value:function(){return document.querySelector(this._cardTemplateSelector).content.querySelector(this._cardSelector).cloneNode(!0)}},{key:"generateCard",value:function(){return this._element=this._getTemplate(),this._element}}])&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}());function w(t,e){for(var r=0;ro;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=s,e.parent=e._dp=t,e},ne=function(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,o=e._next;i?i._next=o:t[r]===e&&(t[r]=o),o?o._prev=i:t[n]===e&&(t[n]=i),e._next=e._prev=e.parent=null},ie=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},oe=function(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},se=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},ae=function(t,e,r,n){return t._startAt&&(L?t._startAt.revert(Pt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},ue=function t(e){return!e||e._ts&&t(e.parent)},le=function(t){return t._repeat?ce(t._tTime,t=t.duration()+t._rDelay)*t:0},ce=function(t,e){var r=Math.floor(t=Xt(t/e));return t&&r===t?r-1:r},fe=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},he=function(t){return t._end=Xt(t._start+(t._tDur/Math.abs(t._ts||t._rts||Z)||0))},pe=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Xt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),he(t),r._dirty||oe(r,t)),t},de=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._startZ)&&e.render(r,!0)),oe(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},me=function(t,e,r,n){return e.parent&&ie(e),e._start=Xt((st(r)?r:r||t!==I?Te(t,r,e):t._time)+e._delay),e._end=Xt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),re(t,e,"_first","_last",t._sort?"_start":0),ye(e)||(t._recent=e),n||de(t,e),t._ts<0&&pe(t,t._tTime),t},ge=function(t,e){return(wt.ScrollTrigger||Ot("scrollTrigger",e))&&wt.ScrollTrigger.create(e,t)},_e=function(t,e,r,n,i){return wr(t,e,i),t._initted?!r&&t._pt&&!L&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&q!==tr.frame?(Rt.push(t),t._lazy=[i,n],1):void 0:1},ve=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},ye=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},be=function(t,e,r,n){var i=t._repeat,o=Xt(e)||0,s=t._tTime/t._tDur;return s&&!n&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:Xt(o*(i+1)+t._rDelay*i):o,s>0&&!n&&pe(t,t._tTime=t._tDur*s),t.parent&&he(t),r||oe(t.parent,t),t},we=function(t){return t instanceof mr?oe(t):be(t,t._dur)},xe={_start:0,endTime:Ct,totalDuration:Ct},Te=function t(e,r,n){var i,o,s,a=e.labels,u=e._recent||xe,l=e.duration()>=Q?u.endTime(!1):e._dur;return it(r)&&(isNaN(r)||r in a)?(o=r.charAt(0),s="%"===r.substr(-1),i=r.indexOf("="),"<"===o||">"===o?(i>=0&&(r=r.replace(/=/,"")),("<"===o?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(s?(i<0?u:n).totalDuration()/100:1)):i<0?(r in a||(a[r]=l),a[r]):(o=parseFloat(r.charAt(i-1)+r.substr(i+1)),s&&n&&(o=o/100*(pt(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+o:l+o)):null==r?l:+r},Oe=function(t,e,r){var n,i,o=st(e[1]),s=(o?2:1)+(t<2?0:1),a=e[s];if(o&&(a.duration=e[1]),a.parent=r,t){for(n=a,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=lt(i.vars.inherit)&&i.parent;a.immediateRender=lt(n.immediateRender),t<2?a.runBackwards=1:a.startAt=e[s-1]}return new Sr(e[0],a,e[s+1])},ke=function(t,e){return t||0===t?e(t):e},Se=function(t,e,r){return re?e:r},Ce=function(t,e){return it(t)&&(e=bt.exec(t))?e[1]:""},Ee=[].slice,Pe=function(t,e){return t&&ut(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&ut(t[0]))&&!t.nodeType&&t!==z},Me=function(t,e,r){return j&&!e&&j.selector?j.selector(t):!it(t)||r||!F&&er()?pt(t)?function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var n;return it(t)&&!e||Pe(t,1)?(n=r).push.apply(n,Me(t)):r.push(t)}))||r}(t,r):Pe(t)?Ee.call(t,0):t?[t]:[]:Ee.call((e||B).querySelectorAll(t),0)},Ae=function(t){return t=Me(t)[0]||kt("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return Me(e,r.querySelectorAll?r:r===t?kt("Invalid scope")||B.createElement("div"):t)}},Re=function(t){return t.sort((function(){return.5-Math.random()}))},De=function(t){if(ot(t))return t;var e=ut(t)?t:{each:t},r=ur(e.ease),n=e.from||0,i=parseFloat(e.base)||0,o={},s=n>0&&n<1,a=isNaN(n)||s,u=e.axis,l=n,c=n;return it(n)?l=c={center:.5,edges:.5,end:1}[n]||0:!s&&a&&(l=n[0],c=n[1]),function(t,s,f){var h,p,d,m,g,_,v,y,b,w=(f||e).length,x=o[w];if(!x){if(!(b="auto"===e.grid?0:(e.grid||[1,Q])[1])){for(v=-Q;v<(v=f[b++].getBoundingClientRect().left)&&bv&&(v=g),gw?w-1:u?"y"===u?w/b:b:Math.max(b,w/b))||0)*("edges"===n?-1:1),x.b=w<0?i-w:i,x.u=Ce(e.amount||e.each)||0,r=r&&w<0?sr(r):r}return w=(x[t]-x.min)/x.max||0,Xt(x.b+(r?r(w):w)*x.v)+x.u}},Le=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=Xt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(st(r)?0:Ce(r))}},je=function(t,e){var r,n,i=pt(t);return!i&&ut(t)&&(r=i=t.radius||Q,t.values?(t=Me(t.values),(n=!st(t[0]))&&(r*=r)):t=Le(t.increment)),ke(e,i?ot(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,o,s=parseFloat(n?e.x:e),a=parseFloat(n?e.y:0),u=Q,l=0,c=t.length;c--;)(i=n?(i=t[c].x-s)*i+(o=t[c].y-a)*o:Math.abs(t[c]-s))(i=Math.abs(i))&&(o=n,a=i);return o},qe=function(t,e,r){var n,i,o,s=t.vars,a=s[e],u=j,l=t._ctx;if(a)return n=s[e+"Params"],i=s.callbackScope||t,r&&Rt.length&&Ht(),l&&(j=l),o=n?a.apply(i,n):a.call(i),j=u,o},Ne=function(t){return ie(t),t.scrollTrigger&&t.scrollTrigger.kill(!!L),t.progress()<1&&qe(t,"onInterrupt"),t},Ve=[],Xe=function(t){if(t)if(t=!t.name&&t.default||t,ct()||t.headless){var e=t.name,r=ot(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:Ct,render:jr,add:yr,kill:zr,modifier:Ir,rawVars:0},o={targetTest:0,get:0,getSetter:Ar,aliases:{},register:0};if(er(),t!==n){if(Lt[e])return;Zt(n,Zt(te(t,i),o)),Jt(n.prototype,Jt(i,te(t,o))),Lt[n.prop=e]=n,t.targetTest&&(zt.push(n),At[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}St(e,n),t.register&&t.register(Kr,n,Yr)}else Ve.push(t)},Ue=255,We={aqua:[0,Ue,Ue],lime:[0,Ue,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ue],navy:[0,0,128],white:[Ue,Ue,Ue],olive:[128,128,0],yellow:[Ue,Ue,0],orange:[Ue,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ue,0,0],pink:[Ue,192,203],cyan:[0,Ue,Ue],transparent:[Ue,Ue,Ue,0]},He=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*Ue+.5|0},Ge=function(t,e,r){var n,i,o,s,a,u,l,c,f,h,p=t?st(t)?[t>>16,t>>8&Ue,t&Ue]:0:We.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),We[t])p=We[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),i=t.charAt(2),o=t.charAt(3),t="#"+n+n+i+i+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&Ue,p&Ue,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&Ue,t&Ue]}else if("hsl"===t.substr(0,3))if(p=h=t.match(dt),e){if(~t.indexOf("="))return p=t.match(mt),r&&p.length<4&&(p[3]=1),p}else s=+p[0]%360/360,a=+p[1]/100,n=2*(u=+p[2]/100)-(i=u<=.5?u*(a+1):u+a-u*a),p.length>3&&(p[3]*=1),p[0]=He(s+1/3,n,i),p[1]=He(s,n,i),p[2]=He(s-1/3,n,i);else p=t.match(dt)||We.transparent;p=p.map(Number)}return e&&!h&&(n=p[0]/Ue,i=p[1]/Ue,o=p[2]/Ue,u=((l=Math.max(n,i,o))+(c=Math.min(n,i,o)))/2,l===c?s=a=0:(f=l-c,a=u>.5?f/(2-l-c):f/(l+c),s=l===n?(i-o)/f+(ia||y<0)&&(l+=y-u),((m=(_=(c+=y)-l)-h)>0||b)&&(v=++n.frame,i=_-1e3*n.time,n.time=_/=1e3,h+=m+(m>=f?4:f-m),g=1),b||(t=e(r)),g)for(o=0;o=e&&o--},_listeners:p}}(),er=function(){return!V&&tr.wake()},rr={},nr=/^[\d.\-M][\d.\-,\s]/,ir=/["']/g,or=function(t){for(var e,r,n,i={},o=t.substr(1,t.length-3).split(":"),s=o[0],a=1,u=o.length;a1&&s.config?s.config.apply(null,~t.indexOf("{")?[or(o[1])]:(e=t,r=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",r),e.substring(r,~i&&i=1?r:1,o=(n||(e?.3:.45))/(r<1?r:1),s=o/J*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*nt((t-s)*o)+1},u="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:cr(a);return o=J/o,u.config=function(r,n){return t(e,r,n)},u},hr=function t(e,r){void 0===r&&(r=1.70158);var n=function(t){return t?--t*t*((r+1)*t+r)+1:0},i="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:cr(n);return i.config=function(r){return t(e,r)},i};Nt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;lr(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}))})),rr.Linear.easeNone=rr.none=rr.Linear.easeIn,lr("Elastic",fr("in"),fr("out"),fr()),X=7.5625,W=1/(U=2.75),lr("Bounce",(function(t){return 1-H(1-t)}),H=function(t){return t0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,be(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(er(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(pe(this,t),!r._dp||r.parent||de(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&me(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Z||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Gt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+le(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+le(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?ce(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?fe(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Se(-Math.abs(this._delay),this._tDur,r),!1!==e),he(this),se(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(er(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Z&&(this._tTime-=Z)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&me(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(lt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(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?fe(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=Mt);var e=L;return L=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),L=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,we(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,we(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Te(this,t),lt(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,lt(e)),this._dur||(this._zTime=-1e-8),this},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(r){var n=ot(t)?t:Qt,i=function(){var t=e.then;e.then=null,ot(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){Ne(this)},t}();Zt(dr.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:-1e-8,_prom:0,_ps:!1,_rts:1});var mr=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=lt(e.sortChildren),I&&me(e.parent||I,A(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&ge(A(n),e.scrollTrigger),n}R(e,t);var r=e.prototype;return r.to=function(t,e,r){return Oe(0,arguments,this),this},r.from=function(t,e,r){return Oe(1,arguments,this),this},r.fromTo=function(t,e,r,n){return Oe(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,ee(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Sr(t,e,Te(this,r),1),this},r.call=function(t,e,r){return me(this,Sr.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,n,i,o,s){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=o,r.onCompleteParams=s,r.parent=this,new Sr(t,r,Te(this,i)),this},r.staggerFrom=function(t,e,r,n,i,o,s){return r.runBackwards=1,ee(r).immediateRender=lt(r.immediateRender),this.staggerTo(t,e,r,n,i,o,s)},r.staggerFromTo=function(t,e,r,n,i,o,s,a){return n.startAt=r,ee(n).immediateRender=lt(n.immediateRender),this.staggerTo(t,e,n,i,o,s,a)},r.render=function(t,e,r){var n,i,o,s,a,u,l,c,f,h,p,d,m=this._time,g=this._dirty?this.totalDuration():this._tDur,_=this._dur,v=t<=0?0:Xt(t),y=this._zTime<0!=t<0&&(this._initted||!_);if(this!==I&&v>g&&t>=0&&(v=g),v!==this._tTime||r||y){if(m!==this._time&&_&&(v+=this._time-m,t+=this._time-m),n=v,f=this._start,u=!(c=this._ts),y&&(_||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(p=this._yoyo,a=_+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,r);if(n=Xt(v%a),v===g?(s=this._repeat,n=_):((s=~~(h=Xt(v/a)))&&s===h&&(n=_,s--),n>_&&(n=_)),h=ce(this._tTime,a),!m&&this._tTime&&h!==s&&this._tTime-h*a-this._dur<=0&&(h=s),p&&1&s&&(n=_-n,d=1),s!==h&&!this._lock){var b=p&&1&h,w=b===(p&&1&s);if(se)for(n=t._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if("isPause"===n.data&&n._start=m&&t>=0)for(i=this._first;i;){if(o=i._next,(i._act||n>=i._start)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!u){l=0,o&&(v+=this._zTime=-1e-8);break}}i=o}else{i=this._last;for(var x=t<0?t:n;i;){if(o=i._prev,(i._act||x<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(x-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(x-i._start)*i._ts,e,r||L&&(i._initted||i._startAt)),n!==this._time||!this._ts&&!u){l=0,o&&(v+=this._zTime=x?-1e-8:Z);break}}i=o}}if(l&&!e&&(this.pause(),l.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=f,he(this),this.render(t,e,r);this._onUpdate&&!e&&qe(this,"onUpdate",!0),(v===g&&this._tTime>=this.totalDuration()||!v&&m)&&(f!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!_)&&(v===g&&this._ts>0||!v&&this._ts<0)&&ie(this,1),e||t<0&&!m||!v&&!m&&g||(qe(this,v===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(st(e)||(e=Te(this,e,t)),!(t instanceof dr)){if(pt(t))return t.forEach((function(t){return r.add(t,e)})),this;if(it(t))return this.addLabel(t,e);if(!ot(t))return this;t=Sr.delayedCall(0,t)}return this!==t?me(this,t,e):this},r.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-Q);for(var i=[],o=this._first;o;)o._start>=n&&(o instanceof Sr?e&&i.push(o):(r&&i.push(o),t&&i.push.apply(i,o.getChildren(!0,e,r)))),o=o._next;return i},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return it(t)?this.removeLabel(t):ot(t)?this.killTweensOf(t):(t.parent===this&&ne(this,t),t===this._recent&&(this._recent=this._last),oe(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Xt(tr.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=Te(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=Sr.delayedCall(0,e||Ct,r);return n.data="isPause",this._hasPause=1,me(this,n,Te(this,t))},r.removePause=function(t){var e=this._first;for(t=Te(this,t);e;)e._start===t&&"isPause"===e.data&&ie(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)gr!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=Me(t),o=this._first,s=st(e);o;)o instanceof Sr?Wt(o._targets,i)&&(s?(!gr||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&n.push(o):(r=o.getTweensOf(i,e)).length&&n.push.apply(n,r),o=o._next;return n},r.tweenTo=function(t,e){e=e||{};var r,n=this,i=Te(n,t),o=e,s=o.startAt,a=o.onStart,u=o.onStartParams,l=o.immediateRender,c=Sr.to(n,Zt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(s&&"time"in s?s.time:n._time))/n.timeScale())||Z,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:n._time))/n.timeScale());c._dur!==t&&be(c,t,0,1).render(c._time,!0,!0),r=1}a&&a.apply(c,u||[])}},e));return l?c.render(0):c},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,Zt({startAt:{time:Te(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),Ye(this,Te(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),Ye(this,Te(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Z)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,o=this.labels;i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in o)o[n]>=r&&(o[n]+=t);return oe(this)},r.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},r.clear=function(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={}),oe(this)},r.totalDuration=function(t){var e,r,n,i=0,o=this,s=o._last,a=Q;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(n=o.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(r=s._start)>a&&o._sort&&s._ts&&!o._lock?(o._lock=1,me(o,s,r-s._delay,1)._lock=0):a=r,r<0&&s._ts&&(i-=r,(!n&&!o._dp||n&&n.smoothChildTiming)&&(o._start+=r/o._ts,o._time-=r,o._tTime-=r),o.shiftChildren(-r,!1,-Infinity),a=0),s._end>i&&s._ts&&(i=s._end),s=e;be(o,o===I&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(I._ts&&(Gt(I,fe(t,I)),q=tr.frame),tr.frame>=It){It+=G.autoSleep||120;var e=I._first;if((!e||!e._ts)&&G.autoSleep&&tr._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||tr.sleep()}}},e}(dr);Zt(mr.prototype,{_lock:0,_hasPause:0,_forcing:0});var gr,_r,vr=function(t,e,r,n,i,o,s){var a,u,l,c,f,h,p,d,m=new Yr(this._pt,t,e,0,1,Lr,null,i),g=0,_=0;for(m.b=r,m.e=n,r+="",(p=~(n+="").indexOf("random("))&&(n=Fe(n)),o&&(o(d=[r,n],t,e),r=d[0],n=d[1]),u=r.match(_t)||[];a=_t.exec(n);)c=a[0],f=n.substring(g,a.index),l?l=(l+1)%5:"rgba("===f.substr(-5)&&(l=1),c!==u[_++]&&(h=parseFloat(u[_-1])||0,m._pt={_next:m._pt,p:f||1===_?f:",",s:h,c:"="===c.charAt(1)?Ut(h,c)-h:parseFloat(c)-h,m:l&&l<4?Math.round:0},g=_t.lastIndex);return m.c=g")})),s.duration();else{for(c in u={},b)"ease"===c||"easeEach"===c||xr(c,b[c],u,b.easeEach);for(c in u)for(S=u[c].sort((function(t,e){return t.t-e.t})),P=0,a=0;ap-Z&&!m?p:td&&(n=d),(u=this._yoyo&&1&o)&&(f=this._yEase,n=d-n),a=ce(this._tTime,s),n===h&&!r&&this._initted&&o===a)return this._tTime=g,this;o!==a&&(c&&this._yEase&&ar(c,u),this.vars.repeatRefresh&&!u&&!this._lock&&n!==s&&this._initted&&(this._lock=r=1,this.render(Xt(s*o),!0).invalidate()._lock=0))}if(!this._initted){if(_e(this,m?t:n,r,e,g))return this._tTime=0,this;if(!(h===this._time||r&&this.vars.repeatRefresh&&o!==a))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(f||this._ease)(n/d),this._from&&(this.ratio=l=1-l),n&&!h&&!e&&!o&&(qe(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;c&&c.render(t<0?t:c._dur*c._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&ae(this,t,0,r),qe(this,"onUpdate")),this._repeat&&o!==a&&this.vars.onRepeat&&!e&&this.parent&&qe(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&ae(this,t,0,!0),(t||!d)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&ie(this,1),e||m&&!h||!(g||h||u)||(qe(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g0)&&this._prom()))}}else!function(t,e,r,n){var i,o,s,a=t.ratio,u=e<0||!e&&(!t._start&&ve(t)&&(t._initted||!ye(t))||(t._ts<0||t._dp._ts<0)&&!ye(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=Se(0,t._tDur,e),o=ce(c,l),t._yoyo&&1&o&&(u=1-u),o!==ce(t._tTime,l)&&(a=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==a||L||n||t._zTime===Z||!e&&t._zTime){if(!t._initted&&_e(t,e,n,r,c))return;for(s=t._zTime,t._zTime=e||(r?Z:0),r||(r=e&&!s),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=c,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&ae(t,e,0,!0),t._onUpdate&&!r&&qe(t,"onUpdate"),c&&t._repeat&&!r&&t.parent&&qe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&ie(t,1),r||L||(qe(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},r.resetTo=function(t,e,r,n,i){V||tr.wake(),this._ts||this.play();var o=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||wr(this,o),function(t,e,r,n,i,o,s,a){var u,l,c,f,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],c=t._ptLookup,f=t._targets.length;f--;){if((u=c[f][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return _r=1,t.vars[e]="+=0",wr(t,s),_r=0,a?kt(e+" not eligible for reset"):1;h.push(u)}for(f=h.length;f--;)(u=(l=h[f])._pt||l).s=!n&&0!==n||i?u.s+(n||0)+o*u.c:n,u.c=r-u.s,l.e&&(l.e=Vt(r)+Ce(l.e)),l.b&&(l.b=u.s+Ce(l.b))}(this,t,e,r,n,this._ease(o/this._dur),o,i)?this.resetTo(t,e,r,n,1):(pe(this,0),this.parent||re(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Ne(this):this.scrollTrigger&&this.scrollTrigger.kill(!!L),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,gr&&!0!==gr.vars.overwrite)._first||Ne(this),this.parent&&r!==this.timeline.totalDuration()&&be(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,o,s,a,u,l,c=this._targets,f=t?Me(t):c,h=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(c,f))return"all"===e&&(this._pt=0),Ne(this);for(n=this._op=this._op||[],"all"!==e&&(it(e)&&(a={},Nt(e,(function(t){return a[t]=1})),e=a),e=function(t,e){var r,n,i,o,s=t[0]?Yt(t[0]).harness:0,a=s&&s.aliases;if(!a)return e;for(n in r=Jt({},e),a)if(n in r)for(i=(o=a[n].split(",")).length;i--;)r[o[i]]=r[n];return r}(c,e)),l=c.length;l--;)if(~f.indexOf(c[l]))for(a in i=h[l],"all"===e?(n[l]=e,s=i,o={}):(o=n[l]=n[l]||{},s=e),s)(u=i&&i[a])&&("kill"in u.d&&!0!==u.d.kill(a)||ne(this,u,"_pt"),delete i[a]),"all"!==o&&(o[a]=1);return this._initted&&!this._pt&&p&&Ne(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return Oe(1,arguments)},e.delayedCall=function(t,r,n,i){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},e.fromTo=function(t,e,r){return Oe(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return I.killTweensOf(t,e,r)},e}(dr);Zt(Sr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Nt("staggerTo,staggerFrom,staggerFromTo",(function(t){Sr[t]=function(){var e=new mr,r=Ee.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var Cr=function(t,e,r){return t[e]=r},Er=function(t,e,r){return t[e](r)},Pr=function(t,e,r,n){return t[e](n.fp,r)},Mr=function(t,e,r){return t.setAttribute(e,r)},Ar=function(t,e){return ot(t[e])?Er:at(t[e])&&t.setAttribute?Mr:Cr},Rr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},Dr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Lr=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},jr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},Ir=function(t,e,r,n){for(var i,o=this._pt;o;)i=o._next,o.p===n&&o.modifier(t,e,r),o=i},zr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?ne(this,n,"_pt"):n.dep||(e=1),n=r;return!e},Fr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},Br=function(t){for(var e,r,n,i,o=t._pt;o;){for(e=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:i)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:i=o,o=e}t._pt=n},Yr=function(){function t(t,e,r,n,i,o,s,a,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=o||Rr,this.d=s||this,this.set=a||Cr,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=Fr,this.m=t,this.mt=r,this.tween=e},t}();Nt(Ft+"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 At[t]=1})),wt.TweenMax=wt.TweenLite=Sr,wt.TimelineLite=wt.TimelineMax=mr,I=new mr({sortChildren:!1,defaults:$,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),G.stringFilter=Ke;var qr=[],Nr={},Vr=[],Xr=0,Ur=0,Wr=function(t){return(Nr[t]||Vr).map((function(t){return t()}))},Hr=function(){var t=Date.now(),e=[];t-Xr>2&&(Wr("matchMediaInit"),qr.forEach((function(t){var r,n,i,o,s=t.queries,a=t.conditions;for(n in s)(r=z.matchMedia(s[n]).matches)&&(i=1),r!==a[n]&&(a[n]=r,o=1);o&&(t.revert(),i&&e.push(t))})),Wr("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),Xr=t,Wr("matchMedia"))},Gr=function(){function t(t,e){this.selector=e&&Ae(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Ur++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){ot(t)&&(r=e,e=t,t=ot);var n=this,i=function(){var t,i=j,o=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=Ae(r)),j=n,t=e.apply(n,arguments),ot(t)&&n._r.push(t),j=i,n.selector=o,n.isReverted=!1,t};return n.last=i,t===ot?i(n,(function(t){return n.add(null,t)})):t?n[t]=i:i},e.ignore=function(t){var e=j;j=null,t(this),j=e},e.getTweens=function(){var e=[];return this.data.forEach((function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof Sr&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,n=r.getTweens(),i=r.data.length;i--;)"isFlip"===(e=r.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return n.splice(n.indexOf(t),1)})));for(n.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),i=r.data.length;i--;)(e=r.data[i])instanceof mr?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof Sr)&&e.revert&&e.revert(t);r._r.forEach((function(e){return e(t,r)})),r.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var n=qr.length;n--;)qr[n].id===this.id&&qr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),$r=function(){function t(t){this.contexts=[],this.scope=t,j&&j.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){ut(t)||(t={matches:t});var n,i,o,s=new Gr(0,r||this.scope),a=s.conditions={};for(i in j&&!s.selector&&(s.selector=j.selector),this.contexts.push(s),e=s.add("onMatch",e),s.queries=t,t)"all"===i?o=1:(n=z.matchMedia(t[i]))&&(qr.indexOf(s)<0&&qr.push(s),(a[i]=n.matches)&&(o=1),n.addListener?n.addListener(Hr):n.addEventListener("change",Hr));return o&&e(s,(function(t){return s.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Qr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r1){var n=t.map((function(t){return Kr.quickSetter(t,e,r)})),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var o=Lt[e],s=Yt(t),a=s.harness&&(s.harness.aliases||{})[e]||e,u=o?function(e){var n=new o;N._pt=0,n.init(t,r?e+r:e,N,0,[t]),n.render(1,n),N._pt&&jr(1,N)}:s.set(t,a);return o?u:function(e){return u(t,a,r?e+r:e,s,1)}},quickTo:function(t,e,r){var n,i=Kr.to(t,Zt(((n={})[e]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),o=function(t,r,n){return i.resetTo(e,t,r,n)};return o.tween=i,o},isTweening:function(t){return I.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=ur(t.ease,$.ease)),Kt($,t||{})},config:function(t){return Kt(G,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!Lt[t]&&!wt[t]&&kt(e+" effect requires "+t+" plugin.")})),jt[e]=function(t,e,n){return r(Me(t),Zt(e||{},i),n)},o&&(mr.prototype[e]=function(t,r,n){return this.add(jt[e](t,ut(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){rr[t]=ur(e)},parseEase:function(t,e){return arguments.length?ur(t,e):rr},getById:function(t){return I.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new mr(t);for(i.smoothChildTiming=lt(t.smoothChildTiming),I.remove(i),i._dp=0,i._time=i._tTime=I._time,r=I._first;r;)n=r._next,!e&&!r._dur&&r instanceof Sr&&r.vars.onComplete===r._targets[0]||me(i,r,r._start-r._delay),r=n;return me(I,i,0),i},context:function(t,e){return t?new Gr(t,e):j},matchMedia:function(t){return new $r(t)},matchMediaRefresh:function(){return qr.forEach((function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()}))||Hr()},addEventListener:function(t,e){var r=Nr[t]||(Nr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Nr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return pt(e)?ze(e,t(0,e.length),r):ke(n,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,r,n){var i=r-e,o=2*i;return pt(e)?ze(e,t(0,e.length-1),r):ke(n,(function(t){return e+((t=(o+(t-e)%o)%o||0)>i?o-t:t)}))},distribute:De,random:Ie,snap:je,normalize:function(t,e,r){return Be(t,e,0,1,r)},getUnit:Ce,clamp:function(t,e,r){return ke(r,(function(r){return Se(t,e,r)}))},splitColor:Ge,toArray:Me,selector:Ae,mapRange:Be,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(An,r,"")),e=Mn}(o||r)&&this.props.push(e,r,o[e])},Dn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Ln=function(){var t,e,r=this.props,n=this.target,i=n.style,o=n._gsap;for(t=0;t=0?Fn[i]:"")+t},Yn=function(){"undefined"!=typeof window&&window.document&&(en=window,rn=en.document,nn=rn.documentElement,sn=In("div")||{style:{}},In("div"),Mn=Bn(Mn),An=Mn+"Origin",sn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ln=!!Bn("perspective"),un=Kr.core.reverting,on=1)},qn=function(t){var e,r=t.ownerSVGElement,n=In("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),nn.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),nn.removeChild(n),e},Nn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Vn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=qn(t),r=1}return e&&(e.width||e.height)||r||(e=qn(t)),!e||e.width||e.x||e.y?e:{x:+Nn(t,["x","cx","x1"])||0,y:+Nn(t,["y","cy","y1"])||0,width:0,height:0}},Xn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Vn(t))},Un=function(t,e){if(e){var r,n=t.style;e in cn&&e!==An&&(e=Mn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(dn,"-$1").toLowerCase())):n.removeAttribute(e)}},Wn=function(t,e,r,n,i,o){var s=new Yr(t._pt,e,r,0,1,o?Tn:xn);return t._pt=s,s.b=n,s.e=i,t._props.push(r),s},Hn={deg:1,rad:1,turn:1},Gn={grid:1,flex:1},$n=function t(e,r,n,i){var o,s,a,u,l=parseFloat(n)||0,c=(n+"").trim().substr((l+"").length)||"px",f=sn.style,h=mn.test(r),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(h?"Width":"Height"),m=100,g="px"===i,_="%"===i;if(i===c||!l||Hn[i]||Hn[c])return l;if("px"!==c&&!g&&(l=t(e,r,n,"px")),u=e.getCTM&&Xn(e),(_||"%"===c)&&(cn[r]||~r.indexOf("adius")))return o=u?e.getBBox()[h?"width":"height"]:e[d],Vt(_?l/o*m:l/100*o);if(f[h?"width":"height"]=m+(g?c:i),s="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==rn&&s.appendChild||(s=rn.body),(a=s._gsap)&&_&&a.width&&h&&a.time===tr.time&&!a.uncache)return Vt(l/a.width*m);if(!_||"height"!==r&&"width"!==r)(_||"%"===c)&&!Gn[zn(s,"display")]&&(f.position=zn(e,"position")),s===e&&(f.position="static"),s.appendChild(sn),o=sn[d],s.removeChild(sn),f.position="absolute";else{var v=e.style[r];e.style[r]=m+i,o=e[d],v?e.style[r]=v:Un(e,r)}return h&&_&&((a=Yt(s)).time=tr.time,a.width=s[d]),Vt(g?o*l/m:o&&l?m/o*l:0)},Qn=function(t,e,r,n){var i;return on||Yn(),e in _n&&"transform"!==e&&~(e=_n[e]).indexOf(",")&&(e=e.split(",")[0]),cn[e]&&"transform"!==e?(i=ai(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:ui(zn(t,An))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=ti[e]&&ti[e](t,e,r)||zn(t,e)||qt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?$n(t,e,i,r)+r:i},Zn=function(t,e,r,n){if(!r||"none"===r){var i=Bn(e,t,1),o=i&&zn(t,i,1);o&&o!==r?(e=i,r=o):"borderColor"===e&&(r=zn(t,"borderTopColor"))}var s,a,u,l,c,f,h,p,d,m,g,_=new Yr(this._pt,t.style,e,0,1,Lr),v=0,y=0;if(_.b=r,_.e=n,r+="","auto"==(n+="")&&(f=t.style[e],t.style[e]=n,n=zn(t,e)||n,f?t.style[e]=f:Un(t,e)),Ke(s=[r,n]),n=s[1],u=(r=s[0]).match(gt)||[],(n.match(gt)||[]).length){for(;a=gt.exec(n);)h=a[0],d=n.substring(v,a.index),c?c=(c+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(c=1),h!==(f=u[y++]||"")&&(l=parseFloat(f)||0,g=f.substr((l+"").length),"="===h.charAt(1)&&(h=Ut(l,h)+g),p=parseFloat(h),m=h.substr((p+"").length),v=gt.lastIndex-m.length,m||(m=m||G.units[e]||g,v===n.length&&(n+=m,_.e+=m)),g!==m&&(l=$n(t,e,f,m)||0),_._pt={_next:_._pt,p:d||1===y?d:",",s:l,c:p-l,m:c&&c<4||"zIndex"===e?Math.round:0});_.c=v-1;)r=a[i],cn[r]&&(n=1,r="transformOrigin"===r?An:Mn),Un(o,r);n&&(Un(o,Mn),u&&(u.svg&&o.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",ai(o,1),u.uncache=1,Dn(s)))}},ti={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var o=t._pt=new Yr(t._pt,e,r,0,0,Kn);return o.u=n,o.pr=-10,o.tween=i,t._props.push(r),1}}},ei=[1,0,0,1,0,0],ri={},ni=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},ii=function(t){var e=zn(t,Mn);return ni(e)?ei:e.substr(7).match(mt).map(Vt)},oi=function(t,e){var r,n,i,o,s=t._gsap||Yt(t),a=t.style,u=ii(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?ei:u:(u!==ei||t.offsetParent||t===nn||s.svg||(i=a.display,a.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(o=1,n=t.nextElementSibling,nn.appendChild(t)),u=ii(t),i?a.display=i:Un(t,"display"),o&&(n?r.insertBefore(t,n):r?r.appendChild(t):nn.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},si=function(t,e,r,n,i,o){var s,a,u,l=t._gsap,c=i||oi(t,!0),f=l.xOrigin||0,h=l.yOrigin||0,p=l.xOffset||0,d=l.yOffset||0,m=c[0],g=c[1],_=c[2],v=c[3],y=c[4],b=c[5],w=e.split(" "),x=parseFloat(w[0])||0,T=parseFloat(w[1])||0;r?c!==ei&&(a=m*v-g*_)&&(u=x*(-g/a)+T*(m/a)-(m*b-g*y)/a,x=x*(v/a)+T*(-_/a)+(_*b-v*y)/a,T=u):(x=(s=Vn(t)).x+(~w[0].indexOf("%")?x/100*s.width:x),T=s.y+(~(w[1]||w[0]).indexOf("%")?T/100*s.height:T)),n||!1!==n&&l.smooth?(y=x-f,b=T-h,l.xOffset=p+(y*m+b*_)-y,l.yOffset=d+(y*g+b*v)-b):l.xOffset=l.yOffset=0,l.xOrigin=x,l.yOrigin=T,l.smooth=!!n,l.origin=e,l.originIsAbsolute=!!r,t.style[An]="0px 0px",o&&(Wn(o,l,"xOrigin",f,x),Wn(o,l,"yOrigin",h,T),Wn(o,l,"xOffset",p,l.xOffset),Wn(o,l,"yOffset",d,l.yOffset)),t.setAttribute("data-svg-origin",x+" "+T)},ai=function(t,e){var r=t._gsap||new pr(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,o,s,a,u,l,c,f,h,p,d,m,g,_,v,y,b,w,x,T,O,k,S,C,E,P,M,A,R,D,L,j=t.style,I=r.scaleX<0,z="px",F="deg",B=getComputedStyle(t),Y=zn(t,An)||"0";return n=i=o=u=l=c=f=h=p=0,s=a=1,r.svg=!(!t.getCTM||!Xn(t)),B.translate&&("none"===B.translate&&"none"===B.scale&&"none"===B.rotate||(j[Mn]=("none"!==B.translate?"translate3d("+(B.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==B.rotate?"rotate("+B.rotate+") ":"")+("none"!==B.scale?"scale("+B.scale.split(" ").join(",")+") ":"")+("none"!==B[Mn]?B[Mn]:"")),j.scale=j.rotate=j.translate="none"),g=oi(t,r.svg),r.svg&&(r.uncache?(C=t.getBBox(),Y=r.xOrigin-C.x+"px "+(r.yOrigin-C.y)+"px",S=""):S=!e&&t.getAttribute("data-svg-origin"),si(t,S||Y,!!S||r.originIsAbsolute,!1!==r.smooth,g)),d=r.xOrigin||0,m=r.yOrigin||0,g!==ei&&(b=g[0],w=g[1],x=g[2],T=g[3],n=O=g[4],i=k=g[5],6===g.length?(s=Math.sqrt(b*b+w*w),a=Math.sqrt(T*T+x*x),u=b||w?pn(w,b)*fn:0,(f=x||T?pn(x,T)*fn+u:0)&&(a*=Math.abs(Math.cos(f*hn))),r.svg&&(n-=d-(d*b+m*x),i-=m-(d*w+m*T))):(L=g[6],R=g[7],P=g[8],M=g[9],A=g[10],D=g[11],n=g[12],i=g[13],o=g[14],l=(_=pn(L,A))*fn,_&&(S=O*(v=Math.cos(-_))+P*(y=Math.sin(-_)),C=k*v+M*y,E=L*v+A*y,P=O*-y+P*v,M=k*-y+M*v,A=L*-y+A*v,D=R*-y+D*v,O=S,k=C,L=E),c=(_=pn(-x,A))*fn,_&&(v=Math.cos(-_),D=T*(y=Math.sin(-_))+D*v,b=S=b*v-P*y,w=C=w*v-M*y,x=E=x*v-A*y),u=(_=pn(w,b))*fn,_&&(S=b*(v=Math.cos(_))+w*(y=Math.sin(_)),C=O*v+k*y,w=w*v-b*y,k=k*v-O*y,b=S,O=C),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),s=Vt(Math.sqrt(b*b+w*w+x*x)),a=Vt(Math.sqrt(k*k+L*L)),_=pn(O,k),f=Math.abs(_)>2e-4?_*fn:0,p=D?1/(D<0?-D:D):0),r.svg&&(S=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!ni(zn(t,Mn)),S&&t.setAttribute("transform",S))),Math.abs(f)>90&&Math.abs(f)<270&&(I?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(a*=-1,f+=f<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+z,r.y=i-((r.yPercent=i&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+z,r.z=o+z,r.scaleX=Vt(s),r.scaleY=Vt(a),r.rotation=Vt(u)+F,r.rotationX=Vt(l)+F,r.rotationY=Vt(c)+F,r.skewX=f+F,r.skewY=h+F,r.transformPerspective=p+z,(r.zOrigin=parseFloat(Y.split(" ")[2])||!e&&r.zOrigin||0)&&(j[An]=ui(Y)),r.xOffset=r.yOffset=0,r.force3D=G.force3D,r.renderTransform=r.svg?mi:ln?di:ci,r.uncache=0,r},ui=function(t){return(t=t.split(" "))[0]+" "+t[1]},li=function(t,e,r){var n=Ce(e);return Vt(parseFloat(e)+parseFloat($n(t,"x",r+"px",n)))+n},ci=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,di(t,e)},fi="0deg",hi="0px",pi=") ",di=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,o=r.x,s=r.y,a=r.z,u=r.rotation,l=r.rotationY,c=r.rotationX,f=r.skewX,h=r.skewY,p=r.scaleX,d=r.scaleY,m=r.transformPerspective,g=r.force3D,_=r.target,v=r.zOrigin,y="",b="auto"===g&&t&&1!==t||!0===g;if(v&&(c!==fi||l!==fi)){var w,x=parseFloat(l)*hn,T=Math.sin(x),O=Math.cos(x);x=parseFloat(c)*hn,w=Math.cos(x),o=li(_,o,T*w*-v),s=li(_,s,-Math.sin(x)*-v),a=li(_,a,O*w*-v+v)}m!==hi&&(y+="perspective("+m+pi),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(b||o!==hi||s!==hi||a!==hi)&&(y+=a!==hi||b?"translate3d("+o+", "+s+", "+a+") ":"translate("+o+", "+s+pi),u!==fi&&(y+="rotate("+u+pi),l!==fi&&(y+="rotateY("+l+pi),c!==fi&&(y+="rotateX("+c+pi),f===fi&&h===fi||(y+="skew("+f+", "+h+pi),1===p&&1===d||(y+="scale("+p+", "+d+pi),_.style[Mn]=y||"translate(0, 0)"},mi=function(t,e){var r,n,i,o,s,a=e||this,u=a.xPercent,l=a.yPercent,c=a.x,f=a.y,h=a.rotation,p=a.skewX,d=a.skewY,m=a.scaleX,g=a.scaleY,_=a.target,v=a.xOrigin,y=a.yOrigin,b=a.xOffset,w=a.yOffset,x=a.forceCSS,T=parseFloat(c),O=parseFloat(f);h=parseFloat(h),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),h+=d),h||p?(h*=hn,p*=hn,r=Math.cos(h)*m,n=Math.sin(h)*m,i=Math.sin(h-p)*-g,o=Math.cos(h-p)*g,p&&(d*=hn,s=Math.tan(p-d),i*=s=Math.sqrt(1+s*s),o*=s,d&&(s=Math.tan(d),r*=s=Math.sqrt(1+s*s),n*=s)),r=Vt(r),n=Vt(n),i=Vt(i),o=Vt(o)):(r=m,o=g,n=i=0),(T&&!~(c+"").indexOf("px")||O&&!~(f+"").indexOf("px"))&&(T=$n(_,"x",c,"px"),O=$n(_,"y",f,"px")),(v||y||b||w)&&(T=Vt(T+v-(v*r+y*i)+b),O=Vt(O+y-(v*n+y*o)+w)),(u||l)&&(s=_.getBBox(),T=Vt(T+u/100*s.width),O=Vt(O+l/100*s.height)),s="matrix("+r+","+n+","+i+","+o+","+T+","+O+")",_.setAttribute("transform",s),x&&(_.style[Mn]=s)},gi=function(t,e,r,n,i){var o,s,a=360,u=it(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?fn:1)-n,c=n+l+"deg";return u&&("short"===(o=i.split("_")[1])&&(l%=a)!=l%180&&(l+=l<0?a:-360),"cw"===o&&l<0?l=(l+36e9)%a-~~(l/a)*a:"ccw"===o&&l>0&&(l=(l-36e9)%a-~~(l/a)*a)),t._pt=s=new Yr(t._pt,e,r,n,l,yn),s.e=c,s.u="deg",t._props.push(r),s},_i=function(t,e){for(var r in e)t[r]=e[r];return t},vi=function(t,e,r){var n,i,o,s,a,u,l,c=_i({},r._gsap),f=r.style;for(i in c.svg?(o=r.getAttribute("transform"),r.setAttribute("transform",""),f[Mn]=e,n=ai(r,1),Un(r,Mn),r.setAttribute("transform",o)):(o=getComputedStyle(r)[Mn],f[Mn]=e,n=ai(r,1),f[Mn]=o),cn)(o=c[i])!==(s=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=Ce(o)!==(l=Ce(s))?$n(r,i,o,l):parseFloat(o),u=parseFloat(s),t._pt=new Yr(t._pt,n,i,a,u-a,vn),t._pt.u=l||0,t._props.push(i));_i(n,c)};Nt("padding,margin,Width,Radius",(function(t,e){var r="Top",n="Right",i="Bottom",o="Left",s=(e<3?[r,n,i,o]:[r+o,r+n,i+n,i+o]).map((function(r){return e<2?t+r:"border"+r+t}));ti[e>1?"border"+t:t]=function(t,e,r,n,i){var o,a;if(arguments.length<4)return o=s.map((function(e){return Qn(t,e,r)})),5===(a=o.join(" ")).split(o[0]).length?o[0]:a;o=(n+"").split(" "),a={},s.forEach((function(t,e){return a[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,a,i)}}));var yi,bi,wi={name:"css",register:Yn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var o,s,a,u,l,c,f,h,p,d,m,g,_,v,y,b,w,x,T,O,k=this._props,S=t.style,C=r.vars.startAt;for(f in on||Yn(),this.styles=this.styles||jn(t),b=this.styles.props,this.tween=r,e)if("autoRound"!==f&&(s=e[f],!Lt[f]||!br(f,e,r,n,t,i)))if(l=tn(s),c=ti[f],"function"===l&&(l=tn(s=s.call(r,n,t,i))),"string"===l&&~s.indexOf("random(")&&(s=Fe(s)),c)c(this,t,f,s,r)&&(y=1);else if("--"===f.substr(0,2))o=(getComputedStyle(t).getPropertyValue(f)+"").trim(),s+="",Ze.lastIndex=0,Ze.test(o)||(h=Ce(o),p=Ce(s)),p?h!==p&&(o=$n(t,f,o,p)+p):h&&(s+=h),this.add(S,"setProperty",o,s,n,i,0,0,f),k.push(f),b.push(f,0,S[f]);else if("undefined"!==l){if(C&&f in C?(o="function"==typeof C[f]?C[f].call(r,n,t,i):C[f],it(o)&&~o.indexOf("random(")&&(o=Fe(o)),Ce(o+"")||"auto"===o||(o+=G.units[f]||Ce(Qn(t,f))||""),"="===(o+"").charAt(1)&&(o=Qn(t,f))):o=Qn(t,f),u=parseFloat(o),(d="string"===l&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),a=parseFloat(s),f in _n&&("autoAlpha"===f&&(1===u&&"hidden"===Qn(t,"visibility")&&a&&(u=0),b.push("visibility",0,S.visibility),Wn(this,S,"visibility",u?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==f&&"transform"!==f&&~(f=_n[f]).indexOf(",")&&(f=f.split(",")[0])),m=f in cn)if(this.styles.save(f),g||((_=t._gsap).renderTransform&&!e.parseTransform||ai(t,e.parseTransform),v=!1!==e.smoothOrigin&&_.smooth,(g=this._pt=new Yr(this._pt,S,Mn,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===f)this._pt=new Yr(this._pt,_,"scaleY",_.scaleY,(d?Ut(_.scaleY,d+a):a)-_.scaleY||0,vn),this._pt.u=0,k.push("scaleY",f),f+="X";else{if("transformOrigin"===f){b.push(An,0,S[An]),x=void 0,T=void 0,O=void 0,T=(x=(w=s).split(" "))[0],O=x[1]||"50%","top"!==T&&"bottom"!==T&&"left"!==O&&"right"!==O||(w=T,T=O,O=w),x[0]=Jn[T]||T,x[1]=Jn[O]||O,s=x.join(" "),_.svg?si(t,s,0,v,0,this):((p=parseFloat(s.split(" ")[2])||0)!==_.zOrigin&&Wn(this,_,"zOrigin",_.zOrigin,p),Wn(this,S,f,ui(o),ui(s)));continue}if("svgOrigin"===f){si(t,s,1,v,0,this);continue}if(f in ri){gi(this,_,f,u,d?Ut(u,d+s):s);continue}if("smoothOrigin"===f){Wn(this,_,"smooth",_.smooth,s);continue}if("force3D"===f){_[f]=s;continue}if("transform"===f){vi(this,s,t);continue}}else f in S||(f=Bn(f)||f);if(m||(a||0===a)&&(u||0===u)&&!gn.test(s)&&f in S)a||(a=0),(h=(o+"").substr((u+"").length))!==(p=Ce(s)||(f in G.units?G.units[f]:h))&&(u=$n(t,f,o,p)),this._pt=new Yr(this._pt,m?_:S,f,u,(d?Ut(u,d+a):a)-u,m||"px"!==p&&"zIndex"!==f||!1===e.autoRound?vn:wn),this._pt.u=p||0,h!==p&&"%"!==p&&(this._pt.b=o,this._pt.r=bn);else if(f in S)Zn.call(this,t,f,o,d?d+s:s);else if(f in t)this.add(t,f,o||t[f],d?d+s:s,n,i);else if("parseTransform"!==f){Ot(f,s);continue}m||(f in S?b.push(f,0,S[f]):"function"==typeof t[f]?b.push(f,2,t[f]()):b.push(f,1,o||t[f])),k.push(f)}y&&Br(this)},render:function(t,e){if(e.tween._time||!un())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Qn,aliases:_n,getSetter:function(t,e,r){var n=_n[e];return n&&n.indexOf(",")<0&&(e=n),e in cn&&e!==An&&(t._gsap.x||Qn(t,"x"))?r&&an===r?"scale"===e?Cn:Sn:(an=r||{})&&("scale"===e?En:Pn):t.style&&!at(t.style[e])?On:~e.indexOf("-")?kn:Ar(t,e)},core:{_removeProperty:Un,_getMatrix:oi}};Kr.utils.checkPrefix=Bn,Kr.core.getStyleSaver=jn,bi=Nt("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(yi="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){cn[t]=1})),Nt(yi,(function(t){G.units[t]="deg",ri[t]=1})),_n[bi[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+yi,Nt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");_n[e[1]]=bi[e[0]]})),Nt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){G.units[t]="px"})),Kr.registerPlugin(wi);var xi=Kr.registerPlugin(wi)||Kr;function Ti(t,e){for(var r=0;ra?(i=n,n=t,s=o,o=u):r?n+=t:n=i+(t-i)/(u-s)*(o-s)};return{update:l,reset:function(){i=n=r?0:n,s=o=0},getVelocity:function(t){var e=s,a=i,c=Ni();return(t||0===t)&&t!==n&&l(t),o===s||c-s>u?0:(n+(r?a:-a))/((r?c:o)-e)*1e3}}},eo=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},ro=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},no=function(){var t,e,r,n;(Ri=Oi.core.globals().ScrollTrigger)&&Ri.core&&(t=Ri.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,Yi),n.push.apply(n,qi),Yi=r,qi=n,Vi=function(t,r){return e[t](r)})},io=function(t){return Oi=t||zi(),!ki&&Oi&&"undefined"!=typeof document&&document.body&&(Si=window,Ci=document,Ei=Ci.documentElement,Pi=Ci.body,Di=[Si,Ci,Ei,Pi],Oi.utils.clamp,Ii=Oi.core.context||function(){},Ai="onpointerenter"in Pi?"pointer":"mouse",Mi=oo.isTouch=Si.matchMedia&&Si.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Si||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ji=oo.eventTypes=("ontouchstart"in Ei?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ei?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return Fi=0}),500),no(),ki=1),ki};Qi.op=Zi,Yi.cache=0;var oo=function(){function t(t){this.init(t)}var e,r;return t.prototype.init=function(t){ki||io(Oi)||console.warn("Please gsap.registerPlugin(Observer)"),Ri||no();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,o=t.lineHeight,s=t.debounce,a=t.preventDefault,u=t.onStop,l=t.onStopDelay,c=t.ignore,f=t.wheelSpeed,h=t.event,p=t.onDragStart,d=t.onDragEnd,m=t.onDrag,g=t.onPress,_=t.onRelease,v=t.onRight,y=t.onLeft,b=t.onUp,w=t.onDown,x=t.onChangeX,T=t.onChangeY,O=t.onChange,k=t.onToggleX,S=t.onToggleY,C=t.onHover,E=t.onHoverEnd,P=t.onMove,M=t.ignoreCheck,A=t.isNormalizer,R=t.onGestureStart,D=t.onGestureEnd,L=t.onWheel,j=t.onEnable,I=t.onDisable,z=t.onClick,F=t.scrollSpeed,B=t.capture,Y=t.allowClicks,q=t.lockAxis,N=t.onLockAxis;this.target=i=Ji(i)||Ei,this.vars=t,c&&(c=Oi.utils.toArray(c)),e=e||1e-9,r=r||0,f=f||1,F=F||1,n=n||"wheel,touch,pointer",s=!1!==s,o||(o=parseFloat(Si.getComputedStyle(Pi).lineHeight)||22);var V,X,U,W,H,G,$,Q=this,Z=0,J=0,K=t.passive||!a&&!1!==t.passive,tt=Ki(i,Qi),et=Ki(i,Zi),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===ji[0],ot=Ui(i),st=i.ownerDocument||Ci,at=[0,0,0],ut=[0,0,0],lt=0,ct=function(){return lt=Ni()},ft=function(t,e){return(Q.event=t)&&c&&~c.indexOf(t.target)||e&&it&&"touch"!==t.pointerType||M&&M(t,e)},ht=function(){var t=Q.deltaX=ro(at),r=Q.deltaY=ro(ut),n=Math.abs(t)>=e,i=Math.abs(r)>=e;O&&(n||i)&&O(Q,t,r,at,ut),n&&(v&&Q.deltaX>0&&v(Q),y&&Q.deltaX<0&&y(Q),x&&x(Q),k&&Q.deltaX<0!=Z<0&&k(Q),Z=Q.deltaX,at[0]=at[1]=at[2]=0),i&&(w&&Q.deltaY>0&&w(Q),b&&Q.deltaY<0&&b(Q),T&&T(Q),S&&Q.deltaY<0!=J<0&&S(Q),J=Q.deltaY,ut[0]=ut[1]=ut[2]=0),(W||U)&&(P&&P(Q),U&&(p&&1===U&&p(Q),m&&m(Q),U=0),W=!1),G&&!(G=!1)&&N&&N(Q),H&&(L(Q),H=!1),V=0},pt=function(t,e,r){at[r]+=t,ut[r]+=e,Q._vx.update(t),Q._vy.update(e),s?V||(V=requestAnimationFrame(ht)):ht()},dt=function(t,e){q&&!$&&(Q.axis=$=Math.abs(t)>Math.abs(e)?"x":"y",G=!0),"y"!==$&&(at[2]+=t,Q._vx.update(t,!0)),"x"!==$&&(ut[2]+=e,Q._vy.update(e,!0)),s?V||(V=requestAnimationFrame(ht)):ht()},mt=function(t){if(!ft(t,1)){var e=(t=eo(t,a)).clientX,n=t.clientY,i=e-Q.x,o=n-Q.y,s=Q.isDragging;Q.x=e,Q.y=n,(s||(i||o)&&(Math.abs(Q.startX-e)>=r||Math.abs(Q.startY-n)>=r))&&(U=s?2:1,s||(Q.isDragging=!0),dt(i,o))}},gt=Q.onPress=function(t){ft(t,1)||t&&t.button||(Q.axis=$=null,X.pause(),Q.isPressed=!0,t=eo(t),Z=J=0,Q.startX=Q.x=t.clientX,Q.startY=Q.y=t.clientY,Q._vx.reset(),Q._vy.reset(),Wi(A?i:st,ji[1],mt,K,!0),Q.deltaX=Q.deltaY=0,g&&g(Q))},_t=Q.onRelease=function(t){if(!ft(t,1)){Hi(A?i:st,ji[1],mt,!0);var e=!isNaN(Q.y-Q.startY),r=Q.isDragging,n=r&&(Math.abs(Q.x-Q.startX)>3||Math.abs(Q.y-Q.startY)>3),o=eo(t);!n&&e&&(Q._vx.reset(),Q._vy.reset(),a&&Y&&Oi.delayedCall(.08,(function(){if(Ni()-lt>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(st.createEvent){var e=st.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Si,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),Q.isDragging=Q.isGesturing=Q.isPressed=!1,u&&r&&!A&&X.restart(!0),U&&ht(),d&&r&&d(Q),_&&_(Q,n)}},vt=function(t){return t.touches&&t.touches.length>1&&(Q.isGesturing=!0)&&R(t,Q.isDragging)},yt=function(){return(Q.isGesturing=!1)||D(Q)},bt=function(t){if(!ft(t)){var e=tt(),r=et();pt((e-rt)*F,(r-nt)*F,1),rt=e,nt=r,u&&X.restart(!0)}},wt=function(t){if(!ft(t)){t=eo(t,a),L&&(H=!0);var e=(1===t.deltaMode?o:2===t.deltaMode?Si.innerHeight:1)*f;pt(t.deltaX*e,t.deltaY*e,0),u&&!A&&X.restart(!0)}},xt=function(t){if(!ft(t)){var e=t.clientX,r=t.clientY,n=e-Q.x,i=r-Q.y;Q.x=e,Q.y=r,W=!0,u&&X.restart(!0),(n||i)&&dt(n,i)}},Tt=function(t){Q.event=t,C(Q)},Ot=function(t){Q.event=t,E(Q)},kt=function(t){return ft(t)||eo(t,a)&&z(Q)};X=Q._dc=Oi.delayedCall(l||.25,(function(){Q._vx.reset(),Q._vy.reset(),X.pause(),u&&u(Q)})).pause(),Q.deltaX=Q.deltaY=0,Q._vx=to(0,50,!0),Q._vy=to(0,50,!0),Q.scrollX=tt,Q.scrollY=et,Q.isDragging=Q.isGesturing=Q.isPressed=!1,Ii(this),Q.enable=function(t){return Q.isEnabled||(Wi(ot?st:i,"scroll",Gi),n.indexOf("scroll")>=0&&Wi(ot?st:i,"scroll",bt,K,B),n.indexOf("wheel")>=0&&Wi(i,"wheel",wt,K,B),(n.indexOf("touch")>=0&&Mi||n.indexOf("pointer")>=0)&&(Wi(i,ji[0],gt,K,B),Wi(st,ji[2],_t),Wi(st,ji[3],_t),Y&&Wi(i,"click",ct,!0,!0),z&&Wi(i,"click",kt),R&&Wi(st,"gesturestart",vt),D&&Wi(st,"gestureend",yt),C&&Wi(i,Ai+"enter",Tt),E&&Wi(i,Ai+"leave",Ot),P&&Wi(i,Ai+"move",xt)),Q.isEnabled=!0,Q.isDragging=Q.isGesturing=Q.isPressed=W=U=!1,Q._vx.reset(),Q._vy.reset(),rt=tt(),nt=et(),t&&t.type&>(t),j&&j(Q)),Q},Q.disable=function(){Q.isEnabled&&(Bi.filter((function(t){return t!==Q&&Ui(t.target)})).length||Hi(ot?st:i,"scroll",Gi),Q.isPressed&&(Q._vx.reset(),Q._vy.reset(),Hi(A?i:st,ji[1],mt,!0)),Hi(ot?st:i,"scroll",bt,B),Hi(i,"wheel",wt,B),Hi(i,ji[0],gt,B),Hi(st,ji[2],_t),Hi(st,ji[3],_t),Hi(i,"click",ct,!0),Hi(i,"click",kt),Hi(st,"gesturestart",vt),Hi(st,"gestureend",yt),Hi(i,Ai+"enter",Tt),Hi(i,Ai+"leave",Ot),Hi(i,Ai+"move",xt),Q.isEnabled=Q.isPressed=Q.isDragging=!1,I&&I(Q))},Q.kill=Q.revert=function(){Q.disable();var t=Bi.indexOf(Q);t>=0&&Bi.splice(t,1),Li===Q&&(Li=0)},Bi.push(Q),A&&Ui(i)&&(Li=Q),Q.enable(h)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&Ti(e.prototype,r),t}();function so(t){return so="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(t)}oo.version="3.12.7",oo.create=function(t){return new oo(t)},oo.register=io,oo.getAll=function(){return Bi.slice()},oo.getById=function(t){return Bi.filter((function(e){return e.vars.id===t}))[0]},zi()&&Oi.registerPlugin(oo);var ao,uo,lo,co,fo,ho,po,mo,go,_o,vo,yo,bo,wo,xo,To,Oo,ko,So,Co,Eo,Po,Mo,Ao,Ro,Do,Lo,jo,Io,zo,Fo,Bo,Yo,qo,No,Vo,Xo,Uo,Wo=1,Ho=Date.now,Go=Ho(),$o=0,Qo=0,Zo=function(t,e,r){var n=fs(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Jo=function(t,e){return!e||fs(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Ko=function t(){return Qo&&requestAnimationFrame(t)},ts=function(){return wo=1},es=function(){return wo=0},rs=function(t){return t},ns=function(t){return Math.round(1e5*t)/1e5||0},is=function(){return"undefined"!=typeof window},os=function(){return ao||is()&&(ao=window.gsap)&&ao.registerPlugin&&ao},ss=function(t){return!!~po.indexOf(t)},as=function(t){return("Height"===t?Fo:lo["inner"+t])||fo["client"+t]||ho["client"+t]},us=function(t){return Xi(t,"getBoundingClientRect")||(ss(t)?function(){return ma.width=lo.innerWidth,ma.height=Fo,ma}:function(){return Es(t)})},ls=function(t,e){var r=e.s,n=e.d2,i=e.d,o=e.a;return Math.max(0,(r="scroll"+n)&&(o=Xi(t,r))?o()-us(t)()[i]:ss(t)?(fo[r]||ho[r])-as(n):t[r]-t["offset"+n])},cs=function(t,e){for(var r=0;r0){for(t-=i,o=0;o=t)return r[o];return r[o-1]}for(o=r.length,t+=i;o--;)if(r[o]<=t)return r[o];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var o=e(r);return!n||Math.abs(o-r)r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in Fs?Fs[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Ys=function(t,e,r,n,i,o,s,a){var u=i.startColor,l=i.endColor,c=i.fontSize,f=i.indent,h=i.fontWeight,p=co.createElement("div"),d=ss(r)||"fixed"===Xi(r,"pinType"),m=-1!==t.indexOf("scroller"),g=d?ho:r,_=-1!==t.indexOf("start"),v=_?u:l,y="border-color:"+v+";font-size:"+c+";color:"+v+";font-weight:"+h+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((m||a)&&d?"fixed;":"absolute;"),(m||a||!d)&&(y+=(n===Zi?vs:ys)+":"+(o+parseFloat(f))+"px;"),s&&(y+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),p._isStart=_,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=y,p.innerText=e||0===e?t+"-"+e:t,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p["offset"+n.op.d2],qs(p,0,n,_),p},qs=function(t,e,r,n){var i={display:"block"},o=r[n?"os2":"p2"],s=r[n?"p2":"os2"];t._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+Os]=1,i["border"+s+Os]=0,i[r.p]=e+"px",ao.set(t,i)},Ns=[],Vs={},Xs=function(){return Ho()-$o>34&&(No||(No=requestAnimationFrame(ua)))},Us=function(){(!Mo||!Mo.isPressed||Mo.startX>ho.clientWidth)&&(Yi.cache++,Mo?No||(No=requestAnimationFrame(ua)):ua(),$o||Zs("scrollStart"),$o=Ho())},Ws=function(){Do=lo.innerWidth,Ro=lo.innerHeight},Hs=function(t){Yi.cache++,(!0===t||!bo&&!Po&&!co.fullscreenElement&&!co.webkitFullscreenElement&&(!Ao||Do!==lo.innerWidth||Math.abs(lo.innerHeight-Ro)>.25*lo.innerHeight))&&mo.restart(!0)},Gs={},$s=[],Qs=function t(){return Ls(xa,"scrollEnd",t)||oa(!0)},Zs=function(t){return Gs[t]&&Gs[t].map((function(t){return t()}))||$s},Js=[],Ks=function(t){for(var e=0;ee,n=t._startClamp&&t.start>=e;(r||n)&&t.setPositions(n?e-1:t.start,r?Math.max(n?e:t.start+1,e):t.end,!0)})),ia(!1),Yo=0,r.forEach((function(t){return t&&t.render&&t.render(-1)})),Yi.forEach((function(t){hs(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),ea(Io,1),mo.pause(),ra++,Vo=2,ua(2),Ns.forEach((function(t){return hs(t.vars.onRefresh)&&t.vars.onRefresh(t)})),Vo=xa.isRefreshing=!1,Zs("refresh")}else Ds(xa,"scrollEnd",Qs)},sa=0,aa=1,ua=function(t){if(2===t||!Vo&&!Bo){xa.isUpdating=!0,Uo&&Uo.update(0);var e=Ns.length,r=Ho(),n=r-Go>=50,i=e&&Ns[0].scroll();if(aa=sa>i?-1:1,Vo||(sa=i),n&&($o&&!wo&&r-$o>200&&($o=0,Zs("scrollEnd")),vo=Go,Go=r),aa<0){for(To=e;To-- >0;)Ns[To]&&Ns[To].update(0,n);aa=1}else for(To=0;To20),r-=r-b}if(p&&(a[p]=t||-.001,t<0&&(t=0)),o){var T=t+r,O=o._isStart;d="scroll"+n.d2,qs(o,T,n,O&&T>20||!O&&(c?Math.max(ho[d],fo[d]):o.parentNode[d])<=T+1),c&&(u=Es(s),c&&(o.style[n.op.p]=u[n.op.p]-n.op.m-o._offset+ks))}return h&&g&&(d=Es(g),h.seek(f),m=Es(g),h._caScrollDist=d[n.p]-m[n.p],t=t/h._caScrollDist*f),h&&h.seek(_),h?t:Math.round(t)},_a=/(webkit|moz|length|cssText|inset)/i,va=function(t,e,r,n){if(t.parentNode!==e){var i,o,s=t.style;if(e===ho){for(i in t._stOrig=s.cssText,o=Ss(t))+i||_a.test(i)||!o[i]||"string"!=typeof s[i]||"0"===i||(s[i]=o[i]);s.top=r,s.left=n}else s.cssText=t._stOrig;ao.core.getCache(t).uncache=1,e.appendChild(t)}},ya=function(t,e,r){var n=e,i=n;return function(e){var o=Math.round(t());return o!==n&&o!==i&&Math.abs(o-n)>3&&Math.abs(o-i)>3&&(e=o,r&&r()),i=n,n=Math.round(e)}},ba=function(t,e,r){var n={};n[e.p]="+="+r,ao.set(t,n)},wa=function(t,e){var r=Ki(t,e),n="_scroll"+e.p2,i=function e(i,o,s,a,u){var l=e.tween,c=o.onComplete,f={};s=s||r();var h=ya(r,s,(function(){l.kill(),e.tween=0}));return u=a&&u||0,a=a||i-s,l&&l.kill(),o[n]=i,o.inherit=!1,o.modifiers=f,f[n]=function(){return h(s+a*l.ratio+u*l.ratio*l.ratio)},o.onUpdate=function(){Yi.cache++,e.tween&&ua()},o.onComplete=function(){e.tween=0,c&&c.call(l)},l=e.tween=ao.to(t,o)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Ds(t,"wheel",r.wheelHandler),xa.isTouch&&Ds(t,"touchmove",r.wheelHandler),i},xa=function(){function t(e,r){uo||t.register(ao)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),jo(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Qo){var n,i,o,s,a,u,l,c,f,h,p,d,m,g,_,v,y,b,w,x,T,O,k,S,C,E,P,M,A,R,D,L,j,I,z,F,B,Y,q,N,V,X,U=e=Cs(fs(e)||ps(e)||e.nodeType?{trigger:e}:e,zs),W=U.onUpdate,H=U.toggleClass,G=U.id,$=U.onToggle,Q=U.onRefresh,Z=U.scrub,J=U.trigger,K=U.pin,tt=U.pinSpacing,et=U.invalidateOnRefresh,rt=U.anticipatePin,nt=U.onScrubComplete,it=U.onSnapComplete,ot=U.once,st=U.snap,at=U.pinReparent,ut=U.pinSpacer,lt=U.containerAnimation,ct=U.fastScrollEnd,ft=U.preventOverlaps,ht=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Qi:Zi,pt=!Z&&0!==Z,dt=Ji(e.scroller||lo),mt=ao.core.getCache(dt),gt=ss(dt),_t="fixed"===("pinType"in e?e.pinType:Xi(dt,"pinType")||gt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=pt&&e.toggleActions.split(" "),bt="markers"in e?e.markers:zs.markers,wt=gt?0:parseFloat(Ss(dt)["border"+ht.p2+Os])||0,xt=this,Tt=e.onRefreshInit&&function(){return e.onRefreshInit(xt)},Ot=function(t,e,r){var n=r.d,i=r.d2,o=r.a;return(o=Xi(t,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(e?as(i):t["client"+i])||0}}(dt,gt,ht),kt=function(t,e){return!e||~qi.indexOf(t)?us(t):function(){return ma}}(dt,gt),St=0,Ct=0,Et=0,Pt=Ki(dt,ht);if(xt._startClamp=xt._endClamp=!1,xt._dir=ht,rt*=45,xt.scroller=dt,xt.scroll=lt?lt.time.bind(lt):Pt,s=Pt(),xt.vars=e,r=r||e.animation,"refreshPriority"in e&&(Co=1,-9999===e.refreshPriority&&(Uo=xt)),mt.tweenScroll=mt.tweenScroll||{top:wa(dt,Zi),left:wa(dt,Qi)},xt.tweenTo=n=mt.tweenScroll[ht.p],xt.scrubDuration=function(t){(j=ps(t)&&t)?L?L.duration(t):L=ao.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:j,paused:!0,onComplete:function(){return nt&&nt(xt)}}):(L&&L.progress(1).kill(),L=0)},r&&(r.vars.lazy=!1,r._initted&&!xt.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),xt.animation=r.pause(),r.scrollTrigger=xt,xt.scrubDuration(Z),R=0,G||(G=r.vars.id)),st&&(ds(st)&&!st.push||(st={snapTo:st}),"scrollBehavior"in ho.style&&ao.set(gt?[ho,fo]:dt,{scrollBehavior:"auto"}),Yi.forEach((function(t){return hs(t)&&t.target===(gt?co.scrollingElement||fo:dt)&&(t.smooth=!1)})),o=hs(st.snapTo)?st.snapTo:"labels"===st.snapTo?function(t){return function(e){return ao.utils.snap(Ms(t),e)}}(r):"labelsDirectional"===st.snapTo?(N=r,function(t,e){return As(Ms(N))(t,e.direction)}):!1!==st.directional?function(t,e){return As(st.snapTo)(t,Ho()-Ct<500?0:e.direction)}:ao.utils.snap(st.snapTo),I=st.duration||{min:.1,max:2},I=ds(I)?_o(I.min,I.max):_o(I,I),z=ao.delayedCall(st.delay||j/2||.1,(function(){var t=Pt(),e=Ho()-Ct<500,i=n.tween;if(!(e||Math.abs(xt.getVelocity())<10)||i||wo||St===t)xt.isActive&&St!==t&&z.restart(!0);else{var s,a,c=(t-u)/g,f=r&&!pt?r.totalProgress():c,h=e?0:(f-D)/(Ho()-vo)*1e3||0,p=ao.utils.clamp(-c,1-c,_s(h/2)*h/.185),d=c+(!1===st.inertia?0:p),m=st,_=m.onStart,v=m.onInterrupt,y=m.onComplete;if(s=o(d,xt),ps(s)||(s=d),a=Math.max(0,Math.round(u+s*g)),t<=l&&t>=u&&a!==t){if(i&&!i._initted&&i.data<=_s(a-t))return;!1===st.inertia&&(p=s-c),n(a,{duration:I(_s(.185*Math.max(_s(d-f),_s(s-f))/h/.05||0)),ease:st.ease||"power3",data:_s(a-t),onInterrupt:function(){return z.restart(!0)&&v&&v(xt)},onComplete:function(){xt.update(),St=Pt(),r&&!pt&&(L?L.resetTo("totalProgress",s,r._tTime/r._tDur):r.progress(s)),R=D=r&&!pt?r.totalProgress():xt.progress,it&&it(xt),y&&y(xt)}},t,p*g,a-t-p*g),_&&_(xt,n.tween)}}})).pause()),G&&(Vs[G]=xt),(q=(J=xt.trigger=Ji(J||!0!==K&&K))&&J._gsap&&J._gsap.stRevert)&&(q=q(xt)),K=!0===K?J:Ji(K),fs(H)&&(H={targets:J,className:H}),K&&(!1===tt||tt===Ts||(tt=!(!tt&&K.parentNode&&K.parentNode.style&&"flex"===Ss(K.parentNode).display)&&xs),xt.pin=K,(i=ao.core.getCache(K)).spacer?_=i.pinState:(ut&&((ut=Ji(ut))&&!ut.nodeType&&(ut=ut.current||ut.nativeElement),i.spacerIsNative=!!ut,ut&&(i.spacerState=da(ut))),i.spacer=b=ut||co.createElement("div"),b.classList.add("pin-spacer"),G&&b.classList.add("pin-spacer-"+G),i.pinState=_=da(K)),!1!==e.force3D&&ao.set(K,{force3D:!0}),xt.spacer=b=i.spacer,A=Ss(K),S=A[tt+ht.os2],x=ao.getProperty(K),T=ao.quickSetter(K,ht.a,ks),fa(K,b,A),y=da(K)),bt){d=ds(bt)?Cs(bt,Is):Is,h=Ys("scroller-start",G,dt,ht,d,0),p=Ys("scroller-end",G,dt,ht,d,0,h),w=h["offset"+ht.op.d2];var Mt=Ji(Xi(dt,"content")||dt);c=this.markerStart=Ys("start",G,Mt,ht,d,w,0,lt),f=this.markerEnd=Ys("end",G,Mt,ht,d,w,0,lt),lt&&(Y=ao.quickSetter([c,f],ht.a,ks)),_t||qi.length&&!0===Xi(dt,"fixedMarkers")||(X=Ss(V=gt?ho:dt).position,V.style.position="absolute"===X||"fixed"===X?X:"relative",ao.set([h,p],{force3D:!0}),E=ao.quickSetter(h,ht.a,ks),M=ao.quickSetter(p,ht.a,ks))}if(lt){var At=lt.vars.onUpdate,Rt=lt.vars.onUpdateParams;lt.eventCallback("onUpdate",(function(){xt.update(0,0,1),At&&At.apply(lt,Rt||[])}))}if(xt.previous=function(){return Ns[Ns.indexOf(xt)-1]},xt.next=function(){return Ns[Ns.indexOf(xt)+1]},xt.revert=function(t,e){if(!e)return xt.kill(!0);var n=!1!==t||!xt.enabled,i=bo;n!==xt.isReverted&&(n&&(F=Math.max(Pt(),xt.scroll.rec||0),Et=xt.progress,B=r&&r.progress()),c&&[c,f,h,p].forEach((function(t){return t.style.display=n?"none":"block"})),n&&(bo=xt,xt.update(n)),!K||at&&xt.isActive||(n?function(t,e,r){pa(r);var n=t._gsap;if(n.spacerIsNative)pa(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(K,b,_):fa(K,b,Ss(K),C)),n||xt.update(n),bo=i,xt.isReverted=n)},xt.refresh=function(i,o,d,w){if(!bo&&xt.enabled||o)if(K&&i&&$o)Ds(t,"scrollEnd",Qs);else{!Vo&&Tt&&Tt(xt),bo=xt,n.tween&&!d&&(n.tween.kill(),n.tween=0),L&&L.pause(),et&&r&&r.revert({kill:!1}).invalidate(),xt.isReverted||xt.revert(!0,!0),xt._subPinOffset=!1;var T,S,E,M,A,R,D,j,I,Y,q,N,V,X=Ot(),U=kt(),W=lt?lt.duration():ls(dt,ht),H=g<=.01,G=0,$=w||0,Z=ds(d)?d.end:e.end,rt=e.endTrigger||J,nt=ds(d)?d.start:e.start||(0!==e.start&&J?K?"0 0":"0 100%":0),it=xt.pinnedContainer=e.pinnedContainer&&Ji(e.pinnedContainer,xt),ot=J&&Math.max(0,Ns.indexOf(xt))||0,st=ot;for(bt&&ds(d)&&(N=ao.getProperty(h,ht.p),V=ao.getProperty(p,ht.p));st-- >0;)(R=Ns[st]).end||R.refresh(0,1)||(bo=xt),!(D=R.pin)||D!==J&&D!==K&&D!==it||R.isReverted||(Y||(Y=[]),Y.unshift(R),R.revert(!0,!0)),R!==Ns[st]&&(ot--,st--);for(hs(nt)&&(nt=nt(xt)),nt=Zo(nt,"start",xt),u=ga(nt,J,X,ht,Pt(),c,h,xt,U,wt,_t,W,lt,xt._startClamp&&"_startClamp")||(K?-.001:0),hs(Z)&&(Z=Z(xt)),fs(Z)&&!Z.indexOf("+=")&&(~Z.indexOf(" ")?Z=(fs(nt)?nt.split(" ")[0]:"")+Z:(G=Bs(Z.substr(2),X),Z=fs(nt)?nt:(lt?ao.utils.mapRange(0,lt.duration(),lt.scrollTrigger.start,lt.scrollTrigger.end,u):u)+G,rt=J)),Z=Zo(Z,"end",xt),l=Math.max(u,ga(Z||(rt?"100% 0":W),rt,X,ht,Pt()+G,f,p,xt,U,wt,_t,W,lt,xt._endClamp&&"_endClamp"))||-.001,G=0,st=ot;st--;)(D=(R=Ns[st]).pin)&&R.start-R._pinPush<=u&&!lt&&R.end>0&&(T=R.end-(xt._startClamp?Math.max(0,R.start):R.start),(D===J&&R.start-R._pinPush=ls(dt,ht)){if(J&&Pt()&&!lt)for(S=J.parentNode;S&&S!==ho;)S._pinOffset&&(u-=S._pinOffset,l-=S._pinOffset),S=S.parentNode}else T=Ss(K),M=ht===Zi,E=Pt(),O=parseFloat(x(ht.a))+$,!W&&l>1&&(q={style:q=(gt?co.scrollingElement||fo:dt).style,value:q["overflow"+ht.a.toUpperCase()]},gt&&"scroll"!==Ss(ho)["overflow"+ht.a.toUpperCase()]&&(q.style["overflow"+ht.a.toUpperCase()]="scroll")),fa(K,b,T),y=da(K),S=Es(K,!0),j=_t&&Ki(dt,M?Qi:Zi)(),tt?((C=[tt+ht.os2,g+$+ks]).t=b,(st=tt===xs?Ps(K,ht)+g+$:0)&&(C.push(ht.d,st+ks),"auto"!==b.style.flexBasis&&(b.style.flexBasis=st+ks)),pa(C),it&&Ns.forEach((function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),_t&&Pt(F)):(st=Ps(K,ht))&&"auto"!==b.style.flexBasis&&(b.style.flexBasis=st+ks),_t&&((A={top:S.top+(M?E-u:j)+ks,left:S.left+(M?j:E-u)+ks,boxSizing:"border-box",position:"fixed"}).width=A.maxWidth=Math.ceil(S.width)+ks,A.height=A.maxHeight=Math.ceil(S.height)+ks,A.margin=A.marginTop=A.marginRight=A.marginBottom=A.marginLeft="0",A.padding=T.padding,A.paddingTop=T.paddingTop,A.paddingRight=T.paddingRight,A.paddingBottom=T.paddingBottom,A.paddingLeft=T.paddingLeft,v=function(t,e,r){for(var n,i=[],o=t.length,s=r?8:0;s1,_t&&P&&v.splice(v.length-2,2),r.render(0,!0,!0),I||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),Eo(0)):k=g,q&&(q.value?q.style["overflow"+ht.a.toUpperCase()]=q.value:q.style.removeProperty("overflow-"+ht.a));Y&&Y.forEach((function(t){return t.revert(!1,!0)})),xt.start=u,xt.end=l,s=a=Vo?F:Pt(),lt||Vo||(s0?Ns.slice(0,e).reverse():Ns.slice(e+1);return(fs(t)?r.filter((function(e){return e.vars.preventOverlaps===t})):r).filter((function(t){return xt.direction>0?t.end<=u:t.start>=l}))},xt.update=function(t,e,i){if(!lt||i||t){var o,c,f,p,d,m,_,w=!0===Vo?F:xt.scroll(),x=t?0:(w-u)/g,C=x<0?0:x>1?1:x||0,A=xt.progress;if(e&&(a=s,s=lt?Pt():w,st&&(D=R,R=r&&!pt?r.totalProgress():C)),rt&&K&&!bo&&!Wo&&$o&&(!C&&uw+(w-a)/(Ho()-vo)*rt&&(C=.9999)),C!==A&&xt.enabled){if(p=(d=(o=xt.isActive=!!C&&C<1)!=(!!A&&A<1))||!!C!=!!A,xt.direction=C>A?1:-1,xt.progress=C,p&&!bo&&(c=C&&!A?0:1===C?1:1===A?2:3,pt&&(f=!d&&"none"!==yt[c+1]&&yt[c+1]||yt[c],_=r&&("complete"===f||"reset"===f||f in r))),ft&&(d||_)&&(_||Z||!r)&&(hs(ft)?ft(xt):xt.getTrailing(ft).forEach((function(t){return t.endAnimation()}))),pt||(!L||bo||Wo?r&&r.totalProgress(C,!(!bo||!Ct&&!t)):(L._dp._time-L._start!==L._time&&L.render(L._dp._time-L._start),L.resetTo?L.resetTo("totalProgress",C,r._tTime/r._tDur):(L.vars.totalProgress=C,L.invalidate().restart()))),K)if(t&&tt&&(b.style[tt+ht.os2]=S),_t){if(p){if(m=!t&&C>A&&l+1>w&&w+1>=ls(dt,ht),at)if(t||!o&&!m)va(K,b);else{var j=Es(K,!0),I=w-u;va(K,ho,j.top+(ht===Zi?I:0)+ks,j.left+(ht===Zi?0:I)+ks)}pa(o||m?v:y),P&&C<1&&o||T(O+(1!==C||m?0:k))}}else T(ns(O+k*C));st&&!n.tween&&!bo&&!Wo&&z.restart(!0),H&&(d||ot&&C&&(C<1||!qo))&&go(H.targets).forEach((function(t){return t.classList[o||ot?"add":"remove"](H.className)})),W&&!pt&&!t&&W(xt),p&&!bo?(pt&&(_&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),W&&W(xt)),!d&&qo||($&&d&&gs(xt,$),vt[c]&&gs(xt,vt[c]),ot&&(1===C?xt.kill(!1,1):vt[c]=0),d||vt[c=1===C?1:3]&&gs(xt,vt[c])),ct&&!o&&Math.abs(xt.getVelocity())>(ps(ct)?ct:2500)&&(ms(xt.callbackAnimation),L?L.progress(1):ms(r,"reverse"===f?1:!C,1))):pt&&W&&!bo&&W(xt)}if(M){var B=lt?w/lt.duration()*(lt._caScrollDist||0):w;E(B+(h._isFlipped?1:0)),M(B)}Y&&Y(-w/lt.duration()*(lt._caScrollDist||0))}},xt.enable=function(e,r){xt.enabled||(xt.enabled=!0,Ds(dt,"resize",Hs),gt||Ds(dt,"scroll",Us),Tt&&Ds(t,"refreshInit",Tt),!1!==e&&(xt.progress=Et=0,s=a=St=Pt()),!1!==r&&xt.refresh())},xt.getTween=function(t){return t&&n?n.tween:L},xt.setPositions=function(t,e,r,n){if(lt){var i=lt.scrollTrigger,o=lt.duration(),s=i.end-i.start;t=i.start+s*t/o,e=i.start+s*e/o}xt.refresh(!1,!1,{start:Jo(t,r&&!!xt._startClamp),end:Jo(e,r&&!!xt._endClamp)},n),xt.update()},xt.adjustPinSpacing=function(t){if(C&&t){var e=C.indexOf(ht.d)+1;C[e]=parseFloat(C[e])+t+ks,C[1]=parseFloat(C[1])+t+ks,pa(C)}},xt.disable=function(e,r){if(xt.enabled&&(!1!==e&&xt.revert(!0,!0),xt.enabled=xt.isActive=!1,r||L&&L.pause(),F=0,i&&(i.uncache=1),Tt&&Ls(t,"refreshInit",Tt),z&&(z.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!gt)){for(var o=Ns.length;o--;)if(Ns[o].scroller===dt&&Ns[o]!==xt)return;Ls(dt,"resize",Hs),gt||Ls(dt,"scroll",Us)}},xt.kill=function(t,n){xt.disable(t,n),L&&!n&&L.kill(),G&&delete Vs[G];var o=Ns.indexOf(xt);o>=0&&Ns.splice(o,1),o===To&&aa>0&&To--,o=0,Ns.forEach((function(t){return t.scroller===xt.scroller&&(o=1)})),o||Vo||(xt.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),c&&[c,f,h,p].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),Uo===xt&&(Uo=0),K&&(i&&(i.uncache=1),o=0,Ns.forEach((function(t){return t.pin===K&&o++})),o||(i.spacer=0)),e.onKill&&e.onKill(xt)},Ns.push(xt),xt.enable(!1,!1),q&&q(xt),r&&r.add&&!g){var Dt=xt.update;xt.update=function(){xt.update=Dt,Yi.cache++,u||l||xt.refresh()},ao.delayedCall(.01,xt.update),g=.01,u=l=0}else xt.refresh();K&&function(){if(Xo!==ra){var t=Xo=ra;requestAnimationFrame((function(){return t===ra&&oa(!0)}))}}()}else this.update=this.refresh=this.kill=rs},t.register=function(e){return uo||(ao=e||os(),is()&&window.document&&t.enable(),uo=Qo),uo},t.defaults=function(t){if(t)for(var e in t)zs[e]=t[e];return zs},t.disable=function(t,e){Qo=0,Ns.forEach((function(r){return r[e?"kill":"disable"](t)})),Ls(lo,"wheel",Us),Ls(co,"scroll",Us),clearInterval(yo),Ls(co,"touchcancel",rs),Ls(ho,"touchstart",rs),Rs(Ls,co,"pointerdown,touchstart,mousedown",ts),Rs(Ls,co,"pointerup,touchend,mouseup",es),mo.kill(),cs(Ls);for(var r=0;r0&&n.left+i0&&n.top+i=0&&Js.splice(e,5),Js.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),ao.core.getCache(t),jo())}})):Js},xa.revert=function(t,e){return ta(!t,e)},xa.create=function(t,e){return new xa(t,e)},xa.refresh=function(t){return t?Hs(!0):(uo||xa.register())&&oa(!0)},xa.update=function(t){return++Yi.cache&&ua(!0===t?2:0)},xa.clearScrollMemory=ea,xa.maxScroll=function(t,e){return ls(t,e?Qi:Zi)},xa.getScrollFunc=function(t,e){return Ki(Ji(t),e?Qi:Zi)},xa.getById=function(t){return Vs[t]},xa.getAll=function(){return Ns.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},xa.isScrolling=function(){return!!$o},xa.snapDirectional=As,xa.addEventListener=function(t,e){var r=Gs[t]||(Gs[t]=[]);~r.indexOf(e)||r.push(e)},xa.removeEventListener=function(t,e){var r=Gs[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},xa.batch=function(t,e){var r,n=[],i={},o=e.interval||.016,s=e.batchMax||1e9,a=function(t,e){var r=[],n=[],i=ao.delayedCall(o,(function(){e(r,n),r=[],n=[]})).pause();return function(t){r.length||i.restart(!0),r.push(t.trigger),n.push(t),s<=r.length&&i.progress(1)}};for(r in e)i[r]="on"===r.substr(0,2)&&hs(e[r])&&"onRefreshInit"!==r?a(0,e[r]):e[r];return hs(s)&&(s=s(),Ds(xa,"refresh",(function(){return s=e.batchMax()}))),go(t).forEach((function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(xa.create(e))})),n};var Ta,Oa=function(t,e,r,n){return e>n?t(n):e<0&&t(0),r>n?(n-e)/(r-e):r<0?e/(e-r):1},ka=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(oo.isTouch?" pinch-zoom":""):"none",e===fo&&t(ho,r)},Sa={auto:1,scroll:1},Ca=function(t){var e,r=t.event,n=t.target,i=t.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,s=o._gsap||ao.core.getCache(o),a=Ho();if(!s._isScrollT||a-s._isScrollT>2e3){for(;o&&o!==ho&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!Sa[(e=Ss(o)).overflowY]&&!Sa[e.overflowX]);)o=o.parentNode;s._isScroll=o&&o!==n&&!ss(o)&&(Sa[(e=Ss(o)).overflowY]||Sa[e.overflowX]),s._isScrollT=a}(s._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},Ea=function(t,e,r,n){return oo.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&Ca,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&Ds(co,oo.eventTypes[0],Ma,!1,!0)},onDisable:function(){return Ls(co,oo.eventTypes[0],Ma,!0)}})},Pa=/(input|label|select|textarea)/i,Ma=function(t){var e=Pa.test(t.target.tagName);(e||Ta)&&(t._gsapAllow=!0,Ta=e)};function Aa(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ra(t){for(var e=1;er&&(v()>r?o.progress(1)&&v(r):o.resetTo("scrollY",r))};return _&&ao.set(_,{y:"+=0"}),t.ignoreCheck=function(t){return Lo&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(k);var t=ns(e.deltaY/2),r=C(v.v-t);if(_&&r!==v.v+v.offset){v.offset=r-v.v;var n=ns((parseFloat(_&&_._gsap.y)||0)-v.offset);_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",_._gsap.y=n+"px",v.cacheID=Yi.cache,ua()}return!0}v.offset&&P(),i=!0}()||b>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=b;b=ns((lo.visualViewport&&lo.visualViewport.scale||1)/w),o.pause(),t!==b&&ka(d,b>1.01||!c&&"x"),s=y(),a=v(),E(),n=ra},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&P(),e){Yi.cache++;var n,i,s=T();c&&(i=(n=y())+.05*s*-t.velocityX/.227,s*=Oa(y,n,i,ls(d,Qi)),o.vars.scrollX=S(i)),i=(n=v())+.05*s*-t.velocityY/.227,s*=Oa(v,n,i,ls(d,Zi)),o.vars.scrollY=C(i),o.invalidate().duration(s).play(.01),(Lo&&o.vars.scrollY>=r||n>=r-1)&&ao.to({},{onUpdate:M,duration:s})}else u.restart(!0);p&&p(t)},t.onWheel=function(){o._ts&&o.pause(),Ho()-x>1e3&&(n=0,x=Ho())},t.onChange=function(t,e,r,i,o){if(ra!==n&&E(),e&&c&&y(S(i[2]===e?s+(t.startX-t.x):y()+e-i[1])),r){v.offset&&P();var u=o[2]===r,l=u?a+t.startY-t.y:v()+r-o[1],f=C(l);u&&l!==f&&(a+=f-l),v(f)}(r||e)&&ua()},t.onEnable=function(){ka(d,!c&&"x"),xa.addEventListener("refresh",M),Ds(lo,"resize",M),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),O.enable()},t.onDisable=function(){ka(d,!0),Ls(lo,"resize",M),xa.removeEventListener("refresh",M),O.kill()},t.lockAxis=!1!==t.lockAxis,(e=new oo(t)).iOS=Lo,Lo&&!v()&&v(1),Lo&&ao.ticker.add(rs),u=e._dc,o=ao.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:ya(v,v(),(function(){return o.pause()}))},onUpdate:ua,onComplete:u.vars.onComplete}),e}(t);return Mo&&Mo.target===e.target&&Mo.kill(),ss(e.target)&&(Mo=e),e},xa.core={_getVelocityProp:to,_inputObserver:Ea,_scrollers:Yi,_proxies:qi,bridge:{ss:function(){$o||Zs("scrollStart"),$o=Ho()},ref:function(){return bo}}},os()&&ao.registerPlugin(xa);var La=document.querySelector(".mainpage-pto__image-container"),ja=document.querySelector(".parallax-bg-about"),Ia=new i({baseUrl:"",headers:{"Content-Type":"application/json"}}),za=new P({popupPosterSelector:".popup-news-poster",popupTitleSelector:".popup-title",popupDescSelector:".popup-desc",popupDateSelector:".popup-news-date"},".popup-news-item");za.setEventListeners(),new(e())(La,{delay:.5,overflow:!0,scale:1.2,transition:"ease-out",customWrapper:".flexburton__right-side"}),new(e())(ja,{orientation:"down",delay:.5,overflow:!0,scale:1.05}),Array.from(document.querySelectorAll(".smooth-scroll-link")).map((function(t,e){t.addEventListener("click",(function(t){t.preventDefault(),document.querySelector(t.target.dataset.scroll).scrollIntoView({behavior:"smooth"})}))})),Ia.getInitialNews().then((function(t){var e=t.find((function(t){return t.isPinned}));console.log(e),console.log("222");var r=new a({data:t.filter((function(t){return!t.isPinned})).slice(0,3),renderer:function(t){var e=new b(Ra(Ra({},t),{},{posterLink:"https://www.utermo.ru/api-images/anews/".concat(t.textId,"/poster.png"),handleObjectClick:function(t){za.open(t),console.log(t)},cardTemplateSelector:"#card-news-template",cardSelector:".news-small-card"})).generateCard();r.appendItem(e)}},".news-cards");r.clear(),r.renderItems()})),xi.registerPlugin(xa);var Fa=xi.utils.toArray(".panel");Fa.pop(),Fa.forEach((function(t,e){xi.timeline({scrollTrigger:{trigger:t,start:"bottom bottom",pinSpacing:!1,pin:!0,scrub:.3,onRefresh:function(){return xi.set(t,{transformOrigin:"center "+(t.offsetHeight-window.innerHeight/2)+"px"})}}}).fromTo(t,1,{y:0,yPercent:0,rotate:0,scale:1,opacity:1},{y:0,rotateX:0,scale:.8,yPercent:-20,opacity:.5},0).to(t,.1,{opacity:0})}));var Ba=xi.utils.toArray(".large-logo-img");Ba.pop(),Ba.forEach((function(t,e){xi.timeline({scrollTrigger:{trigger:t,start:"center +=25%",pinSpacing:!1,pin:!1,scrub:.3}}).fromTo(t,1,{y:0,yPercent:0,rotate:0,opacity:1},{rotateX:0,yPercent:100,opacity:.5},0).to(t,.1,{opacity:0})}))})()})();