1/*! For license information please see main.js.LICENSE.txt */ 2!function(){var t={16:function(){},565:function(t){!function(e){var r={src:"https://www.youtube.com/iframe_api",loading:!1,loaded:!1,listeners:[],load:function(t){var r=this;if(this.listeners.push(t),this.loaded)setTimeout((function(){r.done()}));else if(!this.loading){this.loading=!0,e.onYouTubeIframeAPIReady=function(){r.loaded=!0,r.done()};var n=document.createElement("script");n.type="text/javascript",n.src=this.src,document.body.appendChild(n)}},done:function(){for(delete e.onYouTubeIframeAPIReady;this.listeners.length;)this.listeners.pop()(e.YT)}};t.exports?t.exports=r:e.YouTubeIframeLoader=r}(window)}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),function(){"use strict";function t(){if(!(this instanceof t))return new t;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}r(16);var e=window.document.documentElement,n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.msMatchesSelector;t.prototype.matchesSelector=function(t,e){return n.call(t,e)},t.prototype.querySelectorAll=function(t,e){return e.querySelectorAll(t)},t.prototype.indexes=[];var i=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;t.prototype.indexes.push({name:"ID",selector:function(t){var e;if(e=t.match(i))return e[0].slice(1)},element:function(t){if(t.id)return[t.id]}});var o=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;t.prototype.indexes.push({name:"CLASS",selector:function(t){var e;if(e=t.match(o))return e[0].slice(1)},element:function(t){var e=t.className;if(e){if("string"==typeof e)return e.split(/\s/);if("object"==typeof e&&"baseVal"in e)return e.baseVal.split(/\s/)}}});var s,a=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;t.prototype.indexes.push({name:"TAG",selector:function(t){var e;if(e=t.match(a))return e[0].toUpperCase()},element:function(t){return[t.nodeName.toUpperCase()]}}),t.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},s="function"==typeof window.Map?window.Map:function(){function t(){this.map={}}return t.prototype.get=function(t){return this.map[t+" "]},t.prototype.set=function(t,e){this.map[t+" "]=e},t}();var l=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function c(t,e){var r,n,i,o,s,a,c=(t=t.slice(0).concat(t.default)).length,u=e,h=[];do{if(l.exec(""),(i=l.exec(u))&&(u=i[3],i[2]||!u))for(r=0;r<c;r++)if(s=(a=t[r]).selector(i[1])){for(n=h.length,o=!1;n--;)if(h[n].index===a&&h[n].key===s){o=!0;break}o||h.push({index:a,key:s});break}}while(i);return h}function u(t,e){var r,n,i;for(r=0,n=t.length;r<n;r++)if(i=t[r],e.isPrototypeOf(i))return i}function h(t,e){return t.id-e.id}t.prototype.logDefaultIndexUsed=function(){},t.prototype.add=function(t,e){var r,n,i,o,a,l,h,d,f=this.activeIndexes,p=this.selectors,m=this.selectorObjects;if("string"==typeof t){for(m[(r={id:this.uid++,selector:t,data:e}).id]=r,h=c(this.indexes,t),n=0;n<h.length;n++)o=(d=h[n]).key,(a=u(f,i=d.index))||((a=Object.create(i)).map=new s,f.push(a)),i===this.indexes.default&&this.logDefaultIndexUsed(r),(l=a.map.get(o))||(l=[],a.map.set(o,l)),l.push(r);this.size++,p.push(t)}},t.prototype.remove=function(t,e){if("string"==typeof t){var r,n,i,o,s,a,l,u,h=this.activeIndexes,d=this.selectors=[],f=this.selectorObjects,p={},m=1===arguments.length;for(r=c(this.indexes,t),i=0;i<r.length;i++)for(n=r[i],o=h.length;o--;)if(a=h[o],n.index.isPrototypeOf(a)){if(l=a.map.get(n.key))for(s=l.length;s--;)(u=l[s]).selector!==t||!m&&u.data!==e||(l.splice(s,1),p[u.id]=!0);break}for(i in p)delete f[i],this.size--;for(i in f)d.push(f[i].selector)}},t.prototype.queryAll=function(t){if(!this.selectors.length)return[];var e,r,n,i,o,s,a,l,c={},u=[],d=this.querySelectorAll(this.selectors.join(", "),t);for(e=0,n=d.length;e<n;e++)for(o=d[e],r=0,i=(s=this.matches(o)).length;r<i;r++)c[(l=s[r]).id]?a=c[l.id]:(a={id:l.id,selector:l.selector,data:l.data,elements:[]},c[l.id]=a,u.push(a)),a.elements.push(o);return u.sort(h)},t.prototype.matches=function(t){if(!t)return[];var e,r,n,i,o,s,a,l,c,u,d,f=this.activeIndexes,p={},m=[];for(e=0,i=f.length;e<i;
2e++)if(l=(a=f[e]).element(t))for(r=0,o=l.length;r<o;r++)if(c=a.map.get(l[r]))for(n=0,s=c.length;n<s;n++)!p[d=(u=c[n]).id]&&this.matchesSelector(t,u.selector)&&(p[d]=!0,m.push(u));return m.sort(h)};const d={},f={},p=["mouseenter","mouseleave","pointerenter","pointerleave","blur","focus"];function m(t){void 0===f[t]&&(f[t]=new Set)}function g(t){return"string"==typeof t?document.querySelectorAll(t):t}function v(t){let e=function(t,e){const r=[];let n=e;do{if(1!==n.nodeType)break;const e=t.matches(n);e.length&&r.push({delegatedTarget:n,stack:e})}while(n=n.parentElement);return r}(d[t.type],t.target);if(e.length)for(let r=0;r<e.length;r++)for(let n=0;n<e[r].stack.length;n++)-1!==p.indexOf(t.type)?(y(t,e[r].delegatedTarget),t.target===e[r].delegatedTarget&&e[r].stack[n].data(t)):(y(t,e[r].delegatedTarget),e[r].stack[n].data(t))}function y(t,e){Object.defineProperty(t,"currentTarget",{configurable:!0,enumerable:!0,get:()=>e})}const w=new class{bindAll(t,e){e||(e=Object.getOwnPropertyNames(Object.getPrototypeOf(t)));for(let r=0;r<e.length;r++)t[e[r]]=t[e[r]].bind(t)}on(t,e,r,n){const i=t.split(" ");for(let t=0;t<i.length;t++)if("function"!=typeof e||void 0!==r)if(e.nodeType&&1===e.nodeType||e===window||e===document)e.addEventListener(i[t],r,n);else{e=g(e);for(let o=0;o<e.length;o++)e[o].addEventListener(i[t],r,n)}else m(i[t]),f[i[t]].add(e)}delegate(e,r,n){const i=e.split(" ");for(let e=0;e<i.length;e++){let o=d[i[e]];void 0===o&&(o=new t,d[i[e]]=o,-1!==p.indexOf(i[e])?document.addEventListener(i[e],v,!0):document.addEventListener(i[e],v)),o.add(r,n)}}off(t,e,r,n){const i=t.split(" ");for(let t=0;t<i.length;t++){if(void 0===e){f[i[t]]?.clear();continue}if("function"==typeof e){m(i[t]),f[i[t]].delete(e);continue}const o=d[i[t]];if(void 0===o||(o.remove(e,r),0!==o.size))if(void 0===e.removeEventListener){e=g(e);for(let o=0;o<e.length;o++)e[o].removeEventListener(i[t],r,n)}else e.removeEventListener(i[t],r,n);else delete d[i[t]],-1!==p.indexOf(i[t])?document.removeEventListener(i[t],v,!0):document.removeEventListener(i[t],v)}}emit(t,...e){!function(t,e){f[t]&&f[t].forEach((t=>{t(...e)}))}(t,e)}debugDelegated(){return JSON.parse(JSON.stringify(d))}debugBus(){return function(t){const e={};for(const r in t)e[r]=[...t[r]];return e}(f)}hasBus(t){return this.debugBus().hasOwnProperty(t)}};var _=w;const x=new DOMParser;function b(t){const e=new URL(t,window.location.origin),r=e.hash.length?t.replace(e.hash,""):null;return{hasHash:e.hash.length>0,pathname:e.pathname.replace(/\/+$/,""),host:e.host,search:e.search,raw:t,href:r||e.href}}function T(t,e){t.parentNode.replaceChild(S(t,e),t)}function E(t,e){("HEAD"===t.parentNode.tagName?document.head:document.body).appendChild(S(t,e))}function S(t,e){const r=document.createElement(e);for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e];r.setAttribute(n.nodeName,n.nodeValue)}return t.innerHTML&&(r.innerHTML=t.innerHTML),r}class k{constructor({wrapper:t}){this.wrapper=t}leave(t){return new Promise((e=>{this.onLeave({...t,done:e})}))}enter(t){return new Promise((e=>{this.onEnter({...t,done:e})}))}onLeave({from:t,trigger:e,done:r}){r()}onEnter({to:t,trigger:e,done:r}){r()}}class C{constructor({content:t,page:e,title:r,wrapper:n}){this._contentString=t.outerHTML,this._DOM=null,this.page=e,this.title=r,this.wrapper=n,this.content=this.wrapper.lastElementChild}onEnter(){}onEnterCompleted(){}onLeave(){}onLeaveCompleted(){}initialLoad(){this.onEnter(),this.onEnterCompleted()}update(){document.title=this.title,this.wrapper.appendChild(this._DOM.firstElementChild),this.content=this.wrapper.lastElementChild,this._DOM=null}createDom(){this._DOM||(this._DOM=document.createElement("div"),this._DOM.innerHTML=this._contentString)}remove(){this.wrapper.firstElementChild.remove()}enter(t,e){return new Promise((r=>{this.onEnter(),t.enter({trigger:e,to:this.content}).then((()=>{this.onEnterCompleted(),r()}))}))}leave(t,e,r){return new Promise((n=>{this.onLeave(),t.leave({trigger:e,from:this.content}).then((()=>{r&&this.remove(),this.onLeaveCompleted(),n()}))}))}}class L{data=new Map;regexCache=new Map;add(t,e,r){this.data.has(t)||(this.data.set(t,new Map),this.regexCache.set(t,new RegExp(`^${t}$`))),this.data.get(t).set(e,r),this.regexCache.set(e,new RegExp(`^${e}$`))}
vendor: 7,125 bytes, line 2
2findMatch(t,e){for(const[r,n]of this.data)if(t.pathname.match(this.regexCache.get(r))){for(const[t,r]of n)if(e.pathname.match(this.regexCache.get(t)))return r;break}return null}}const M="A transition is currently in progress";function P(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function A(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var O,F,D,R,q,N,I,z,H,Y,B,j,X,W,V,U,$,G={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},K={duration:.5,overwrite:!1,delay:0},J=1e8,Q=1e-8,Z=2*Math.PI,tt=Z/4,et=0,rt=Math.sqrt,nt=Math.cos,it=Math.sin,ot=function(t){return"string"==typeof t},st=function(t){return"function"==typeof t},at=function(t){return"number"==typeof t},lt=function(t){return void 0===t},ct=function(t){return"object"==typeof t},ut=function(t){return!1!==t},ht=function(){return"undefined"!=typeof window},dt=function(t){return st(t)||ot(t)},ft="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},pt=Array.isArray,mt=/(?:-?\.?\d|\.)+/gi,gt=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,vt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,yt=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,wt=/[+-]=-?[.\d]+/,_t=/[^,'"\[\]\s]+/gi,xt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,bt={},Tt={},Et=function(t){return(Tt=te(t,bt))&&tn},St=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},kt=function(t,e){return!e&&console.warn(t)},Ct=function(t,e){return t&&(bt[t]=e)&&Tt&&(Tt[t]=e)||bt},Lt=function(){return 0},Mt={suppressEvents:!0,isStart:!0,kill:!1},Pt={suppressEvents:!0,kill:!1},At={suppressEvents:!0},Ot={},Ft=[],Dt={},Rt={},qt={},Nt=30,It=[],zt="",Ht=function(t){var e,r,n=t[0];if(ct(n)||st(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=It.length;r--&&!It[r].targetTest(n););e=It[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new pr(t[r],e)))||t.splice(r,1);return t},Yt=function(t){return t._gsap||Ht(Ae(t))[0]._gsap},Bt=function(t,e,r){return(r=t[e])&&st(r)?t[e]():lt(r)&&t.getAttribute&&t.getAttribute(e)||r},jt=function(t,e){return(t=t.split(",")).forEach(e)||t},Xt=function(t){return Math.round(1e5*t)/1e5||0},Wt=function(t){return Math.round(1e7*t)/1e7||0},Vt=function(t,e){var r=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+n:"-"===r?t-n:"*"===r?t*n:t/n},Ut=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},$t=function(){var t,e,r=Ft.length,n=Ft.slice(0);for(Dt={},Ft.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Gt=function(t){return!!(t._initted||t._startAt||t.add)},Kt=function(t,e,r,n){Ft.length&&!F&&$t(),t.render(e,r,n||!!(F&&e<0&&Gt(t))),Ft.length&&!F&&$t()},Jt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(_t).length<2?e:ot(t)?t.trim():t},Qt=function(t){return t},Zt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},te=function(t,e){for(var r in e)t[r]=e[r];return t},ee=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=ct(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},re=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},ne=function(t){var e,r=t.parent||R,n=t.keyframes?(e=pt(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):Zt;if(ut(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},ie=function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var o,s=t[n];if(i)for(o=e[i];s&&s[i]>o;)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},oe=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},se=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},ae=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},le=function(t,e,r,n){return t._startAt&&(F?t._startAt.revert(Pt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},ce=function t(e){return!e||e._ts&&t(e.parent)},ue=function(t){return t._repeat?he(t._tTime,t=t.duration()+t._rDelay)*t:0},he=function(t,e){var r=Math.floor(t=Wt(t/e));return t&&r===t?r-1:r},de=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},fe=function(t){return t._end=Wt(t._start+(t._tDur/Math.abs(t._ts||t._rts||Q)||0))},pe=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Wt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),fe(t),r._dirty||ae(r,t)),t},me=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=de(t.rawTime(),e),(!e._dur||Ce(0,e.totalDuration(),r)-e._tTime>Q)&&e.render(r,!0)),ae(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},ge=function(t,e,r,n){return e.parent&&se(e),e._start=Wt((at(r)?r:r||t!==R?Ee(t,r,e):t._time)+e._delay),e._end=Wt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),ie(t,e,"_first","_last",t._sort?"_start":0),_e(e)||(t._recent=e),n||me(t,e),t._ts<0&&pe(t,t._tTime),t},ve=function(t,e){return(bt.ScrollTrigger||St("scrollTrigger",e))&&bt.ScrollTrigger.create(e,t)},ye=function(t,e,r,n,i){return br(t,e,i),t._initted?!r&&t._pt&&!F&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&H!==er.frame?(Ft.push(t),t._lazy=[i,n],1):void 0:1},we=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},_e=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},xe=function(t,e,r,n){var i=t._repeat,o=Wt(e)||0,s=t._tTime/t._tDur;return s&&!n&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:Wt(o*(i+1)+t._rDelay*i):o,s>0&&!n&&pe(t,t._tTime=t._tDur*s),t.parent&&fe(t),r||ae(t.parent,t),t},be=function(t){return t instanceof gr?ae(t):xe(t,t._dur)},Te={_start:0,endTime:Lt,totalDuration:Lt},Ee=function t(e,r,n){var i,o,s,a=e.labels,l=e._recent||Te,c=e.duration()>=J?l.endTime(!1):e._dur;return ot(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?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(s?(i<0?l:n).totalDuration()/100:1)):i<0?(r in a||(a[r]=c),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:c+o)):null==r?c:+r},Se=function(t,e,r){var n,i,o=at(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=ut(i.vars.inherit)&&i.parent;a.immediateRender=ut(n.immediateRender),t<2?a.runBackwards=1:a.startAt=e[s-1]}return new Cr(e[0],a,e[s+1])},ke=function(t,e){return t||0===t?e(t):e},Ce=function(t,e,r){return r<t?t:r>e?e:r},Le=function(t,e){return ot(t)&&(e=xt.exec(t))?e[1]:""},Me=[].slice,Pe=function(t,e){return t&&ct(t)&&"length"in t&&(!e&&!t.length||t.length-1
vendor: 46,095 bytes, line 2
2in t&&ct(t[0]))&&!t.nodeType&&t!==q},Ae=function(t,e,r){return D&&!e&&D.selector?D.selector(t):!ot(t)||r||!N&&rr()?pt(t)?function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var n;return ot(t)&&!e||Pe(t,1)?(n=r).push.apply(n,Ae(t)):r.push(t)}))||r}(t,r):Pe(t)?Me.call(t,0):t?[t]:[]:Me.call((e||I).querySelectorAll(t),0)},Oe=function(t){return t=Ae(t)[0]||kt("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return Ae(e,r.querySelectorAll?r:r===t?kt("Invalid scope")||I.createElement("div"):t)}},Fe=function(t){return t.sort((function(){return.5-Math.random()}))},De=function(t){if(st(t))return t;var e=ct(t)?t:{each:t},r=cr(e.ease),n=e.from||0,i=parseFloat(e.base)||0,o={},s=n>0&&n<1,a=isNaN(n)||s,l=e.axis,c=n,u=n;return ot(n)?c=u={center:.5,edges:.5,end:1}[n]||0:!s&&a&&(c=n[0],u=n[1]),function(t,s,h){var d,f,p,m,g,v,y,w,_,x=(h||e).length,b=o[x];if(!b){if(!(_="auto"===e.grid?0:(e.grid||[1,J])[1])){for(y=-J;y<(y=h[_++].getBoundingClientRect().left)&&_<x;);_<x&&_--}for(b=o[x]=[],d=a?Math.min(_,x)*c-.5:n%_,f=_===J?0:a?x*u/_-.5:n/_|0,y=0,w=J,v=0;v<x;v++)p=v%_-d,m=f-(v/_|0),b[v]=g=l?Math.abs("y"===l?m:p):rt(p*p+m*m),g>y&&(y=g),g<w&&(w=g);"random"===n&&Fe(b),b.max=y-w,b.min=w,b.v=x=(parseFloat(e.amount)||parseFloat(e.each)*(_>x?x-1:l?"y"===l?x/_:_:Math.max(_,x/_))||0)*("edges"===n?-1:1),b.b=x<0?i-x:i,b.u=Le(e.amount||e.each)||0,r=r&&x<0?ar(r):r}return x=(b[t]-b.min)/b.max||0,Wt(b.b+(r?r(x):x)*b.v)+b.u}},Re=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=Wt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(at(r)?0:Le(r))}},qe=function(t,e){var r,n,i=pt(t);return!i&&ct(t)&&(r=i=t.radius||J,t.values?(t=Ae(t.values),(n=!at(t[0]))&&(r*=r)):t=Re(t.increment)),ke(e,i?st(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),l=J,c=0,u=t.length;u--;)(i=n?(i=t[u].x-s)*i+(o=t[u].y-a)*o:Math.abs(t[u]-s))<l&&(l=i,c=u);return c=!r||l<=r?t[c]:e,n||c===e||at(e)?c:c+Le(e)}:Re(t))},Ne=function(t,e,r,n){return ke(pt(t)?!e:!0===r?!!(r=0):!n,(function(){return pt(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*n)/n}))},Ie=function(t,e,r){return ke(r,(function(r){return t[~~e(r)]}))},ze=function(t){for(var e,r,n,i,o=0,s="";~(e=t.indexOf("random(",o));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?_t:mt),s+=t.substr(o,e-o)+Ne(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),o=n+1;return s+t.substr(o,t.length-o)},He=function(t,e,r,n,i){var o=e-t,s=n-r;return ke(i,(function(e){return r+((e-t)/o*s||0)}))},Ye=function(t,e,r){var n,i,o,s=t.labels,a=J;for(n in s)(i=s[n]-e)<0==!!r&&i&&a>(i=Math.abs(i))&&(o=n,a=i);return o},Be=function(t,e,r){var n,i,o,s=t.vars,a=s[e],l=D,c=t._ctx;if(a)return n=s[e+"Params"],i=s.callbackScope||t,r&&Ft.length&&$t(),c&&(D=c),o=n?a.apply(i,n):a.call(i),D=l,o},je=function(t){return se(t),t.scrollTrigger&&t.scrollTrigger.kill(!!F),t.progress()<1&&Be(t,"onInterrupt"),t},Xe=[],We=function(t){if(t)if(t=!t.name&&t.default||t,ht()||t.headless){var e=t.name,r=st(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:Lt,render:qr,add:_r,kill:Ir,modifier:Nr,rawVars:0},o={targetTest:0,get:0,getSetter:Or,aliases:{},register:0};if(rr(),t!==n){if(Rt[e])return;Zt(n,Zt(re(t,i),o)),te(n.prototype,te(i,re(t,o))),Rt[n.prop=e]=n,t.targetTest&&(It.push(n),Ot[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Ct(e,n),t.register&&t.register(tn,n,Yr)}else Xe.push(t)},Ve=255,Ue={aqua:[0,Ve,Ve],lime:[0,Ve,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ve],navy:[0,0,128],white:[Ve,Ve,Ve],olive:[128,128,0],yellow:[Ve,Ve,0],orange:[Ve,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ve,0,0],pink:[Ve,192,203],cyan:[0,Ve,Ve],transparent:[Ve,Ve,Ve,0]},$e=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)*Ve+.5|0},Ge=function(t,e,r){var n,i,o,s,a,l,c,u,h,d,f=t?at(t)?[t>>16,t>>8&Ve,t&Ve]:0:Ue.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ue[t])f=Ue[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[(f=parseInt(t.substr(1,6),16))>>16,f>>8&Ve,f&Ve,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&Ve,t&Ve]}else if("hsl"===t.substr(0,3))if(f=d=t.match(mt),e){if(~t.indexOf("="))return f=t.match(gt),r&&f.length<4&&(f[3]=1),f}else s=+f[0]%360/360,a=+f[1]/100,n=2*(l=+f[2]/100)-(i=l<=.5?l*(a+1):l+a-l*a),f.length>3&&(f[3]*=1),f[0]=$e(s+1/3,n,i),f[1]=$e(s,n,i),f[2]=$e(s-1/3,n,i);else f=t.match(mt)||Ue.transparent;f=f.map(Number)}return e&&!d&&(n=f[0]/Ve,i=f[1]/Ve,o=f[2]/Ve,l=((c=Math.max(n,i,o))+(u=Math.min(n,i,o)))/2,c===u?s=a=0:(h=c-u,a=l>.5?h/(2-c-u):h/(c+u),s=c===n?(i-o)/h+(i<o?6:0):c===i?(o-n)/h+2:(n-i)/h+4,s*=60),f[0]=~~(s+.5),f[1]=~~(100*a+.5),f[2]=~~(100*l+.5)),r&&f.length<4&&(f[3]=1),f},Ke=function(t){var e=[],r=[],n=-1;return t.split(Qe).forEach((function(t){var i=t.match(vt)||[];e.push.apply(e,i),r.push(n+=i.length+1)})),e.c=r,e},Je=function(t,e,r){var n,i,o,s,a="",l=(t+a).match(Qe),c=e?"hsla(":"rgba(",u=0;if(!l)return t;if(l=l.map((function(t){return(t=Ge(t,e,1))&&c+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),r&&(o=Ke(t),(n=r.c).join(a)!==o.c.join(a)))for(s=(i=t.replace(Qe,"1").split(vt)).length-1;u<s;u++)a+=i[u]+(~n.indexOf(u)?l.shift()||c+"0,0,0,0)":(o.length?o:l.length?l:r).shift());if(!i)for(s=(i=t.split(Qe)).length-1;u<s;u++)a+=i[u]+l[u];return a+i[s]},Qe=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ue)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ze=/hsl[a]?\(/,tr=function(t){var e,r=t.join(" ");if(Qe.lastIndex=0,Qe.test(r))return e=Ze.test(r),t[1]=Je(t[1],e),t[0]=Je(t[0],e,Ke(t[1])),!0},er=function(){var t,e,r,n,i,o,s=Date.now,a=500,l=33,c=s(),u=c,h=1e3/240,d=h,f=[],p=function r(p){var m,g,v,y,w=s()-u,_=!0===p;if((w>a||w<0)&&(c+=w-l),((m=(v=(u+=w)-c)-d)>0||_)&&(y=++n.frame,i=v-1e3*n.time,n.time=v/=1e3,d+=m+(m>=h?4:h-m),g=1),_||(t=e(r)),g)for(o=0;o<f.length;o++)f[o](v,i,y,p)};return n={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){z&&(!N&&ht()&&(q=N=window,I=q.document||{},bt.gsap=tn,(q.gsapVersions||(q.gsapVersions=[])).push(tn.version),Et(Tt||q.GreenSockGlobals||!q.gsap&&q||{}),Xe.forEach(We)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,d-1e3*n.time+1|0)},B=1,p(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),B=0,e=Lt},lagSmoothing:function(t,e){a=t||1/0,l=Math.min(e||33,a)},fps:function(t){h=1e3/(t||240),d=1e3*n.time+h},add:function(t,e,r){var i=e?function(e,r,o,s){t(e,r,o,s),n.remove(i)}:t;return n.remove(t),f[r?"unshift":"push"](i),rr(),i},remove:function(t,e){~(e=f.indexOf(t))&&f.splice(e,1)&&o>=e&&o--},_listeners:f}}(),rr=function(){return!B&&er.wake()},nr={},ir=/^[\d.\-M][\d.\-,\s]/,or=/["']/g,sr=function(t){for(var e,r,n,i={},o=t.substr(1,t.length-3).split(":"),s=o[0],a=1,l=o.length;a<l;a++)r=o[a],e=a!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[s]=isNaN(n)?n.replace(or,"").trim():+n,s=r.substr(e+1).trim();return i},ar=function(t){return function(e){return 1-t(1-e)}},lr=function t(e,r){for(var n,i=e._first;i;)i instanceof gr?t(i,r):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===r||(i.timeline?t(i.timeline,r):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=r)),i=i._next},cr=function(t,e){return t&&(st(t)?t:nr[t]||function(t){var e,r,n,i,o=(t+"").split("("),s=nr[o[0]];return s&&o.length>1&&s.config?s.config.apply(null,~t.indexOf("{")?[sr(o[1])]:(e=t,r=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",r),e.substring(r,~i&&i<n?e.indexOf(")",n+1):n)).split(",").map(Jt)):nr._CE&&ir.test(t)?nr._CE("",t):s}(t))||e},ur=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,o={easeIn:e,easeOut:r,easeInOut:n};return jt(t,(function(t){for(var e in nr[t]=bt[t]=o,nr[i=t.toLowerCase()]=r,o)nr[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=nr[t+"."+e]=o[e]})),o},hr=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},dr=function t(e,r,n){var i=r>=1?r:1,o=(n||(e?.3:.45))/(r<1?r:1),s=o/Z*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*it((t-s)*o)+1},l="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:hr(a);return o=Z/o,l.config=function(r,n){return t(e,r,n)},l},fr=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)}:hr(n);return i.config=function(r){return t(e,r)},i};jt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;ur(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}))})),nr.Linear.easeNone=nr.none=nr.Linear.easeIn,ur("Elastic",dr("in"),dr("out"),dr()),j=7.5625,V=2*(W=1/(X=2.75)),U=2.5*W,ur("Bounce",(function(t){return 1-$(1-t)}),$=function(t){return t<W?j*t*t:t<V?j*Math.pow(t-1.5/X,2)+.75:t<U?j*(t-=2.25/X)*t+.9375:j*Math.pow(t-2.625/X,2)+.984375}),ur("Expo",(function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)})),ur("Circ",(function(t){return-(rt(1-t*t)-1)})),ur("Sine",(function(t){return 1===t?1:1-nt(t*tt)})),ur("Back",fr("in"),fr("out"),fr()),nr.SteppedEase=nr.steps=bt.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0;return function(t){return((n*Ce(0,.99999999,t)|0)+i)*r}}},K.ease=nr["quad.out"],jt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return zt+=t+","+t+"Params,"}));var pr=function(t,e){this.id=et++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Bt,this.set=e?e.getSetter:Or},mr=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,xe(this,+t.duration,1,1),this.data=t.data,D&&(this._ctx=D,D.data.push(this)),B||er.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,xe(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(rr(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(pe(this,t),!r._dp||r.parent||me(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&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&ge(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Q||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Kt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+ue(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)+ue(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?he(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?de(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Ce(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),fe(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(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):(rr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Q&&(this._tTime-=Q)))),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)&&ge(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(ut(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?de(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=At);var e=F;return F=t,Gt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),F=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,be(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,be(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(Ee(this,t),ut(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,ut(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&&t<this.endTime(!0)-Q))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(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=st(t)?t:Qt,i=function(){var t=e.then;e.then=null,st(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(){je(this)},t}();Zt(mr.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 gr=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=ut(e.sortChildren),R&&ge(e.parent||R,P(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&ve(P(n),e.scrollTrigger),n}A(e,t);var r=e.prototype;return r.to=function(t,e,r){return Se(0,arguments,this),this},r.from=function(t,e,r){return Se(1,arguments,this),this},r.fromTo=function(t,e,r,n){return Se(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,ne(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Cr(t,e,Ee(this,r),1),this},r.call=function(t,e,r){return ge(this,Cr.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 Cr(t,r,Ee(this,i)),this},r.staggerFrom=function(t,e,r,n,i,o,s){return r.runBackwards=1,ne(r).immediateRender=ut(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,ne(n).immediateRender=ut(n.immediateRender),this.staggerTo(t,e,n,i,o,s,a)},r.render=function(t,e,r){var n,i,o,s,a,l,c,u,h,d,f,p,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:Wt(t),w=this._zTime<0!=t<0&&(this._initted||!v);if(this!==R&&y>g&&t>=0&&(y=g),y!==this._tTime||r||w){if(m!==this._time&&v&&(y+=this._time-m,t+=this._time-m),n=y,h=this._start,l=!(u=this._ts),w&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(f=this._yoyo,a=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,r);if(n=Wt(y%a),y===g?(s=this._repeat,n=v):((s=~~(d=Wt(y/a)))&&s===d&&(n=v,s--),n>v&&(n=v)),d=he(this._tTime,a),!m&&this._tTime&&d!==s&&this._tTime-d*a-this._dur<=0&&(d=s),f&&1&s&&(n=v-n,p=1),s!==d&&!this._lock){var _=f&&1&d,x=_===(f&&1&s);if(s<d&&(_=!_),m=_?0:y%v?v:y,this._lock=1,this.render(m||(p?0:Wt(s*a)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&Be(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),m&&m!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,g=this._tDur,x&&(this._lock=2,m=_?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;lr(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,r){var n;if(r>e)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<e)return n;n=n._prev}}(this,Wt(m),Wt(n)),c&&(y-=n-(n=c._start))),this._tTime=y,this._time=n,this._act=!u,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&y&&!e&&!d&&(Be(this,"onStart"),this._tTime!==y))return this;if(n>=m&&t>=0)for(i=this._first;i;){if(o=i._next,(i._act||n>=i._start)&&i._ts&&c!==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&&!l){c=0,o&&(y+=this._zTime=-1e-8);break}}i=o}else{i=this._last;for(var b=t<0?t:n;i;){if(o=i._prev,(i._act||b<=i._end)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(b-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(b-i._start)*i._ts,e,r||F&&Gt(i)),n!==this._time||!this._ts&&!l){c=0,o&&(y+=this._zTime=b?-1e-8:Q);break}}i=o}}if(c&&!e&&(this.pause(),c.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=h,fe(this),this.render(t,e,r);this._onUpdate&&!e&&Be(this,"onUpdate",!0),(y===g&&this._tTime>=this.totalDuration()||!y&&m)&&(h!==this._start&&Math.abs(u)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&se(this,1),e||t<0&&!m||!y&&!m&&g||(Be(this,y===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<g&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(at(e)||(e=Ee(this,e,t)),!(t instanceof mr)){if(pt(t))return t.forEach((function(t){return r.add(t,e)})),this;if(ot(t))return this.addLabel(t,e);if(!st(t))return this;t=Cr.delayedCall(0,t)}return this!==t?ge(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=-J);for(var i=[],o=this._first;o;)o._start>=n&&(o instanceof Cr?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 ot(t)?this.removeLabel(t):st(t)?this.killTweensOf(t):(t.parent===this&&oe(this,t),t===this._recent&&(this._recent=this._last),ae(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Wt(er.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]=Ee(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=Cr.delayedCall(0,e||Lt,r);return n.data="isPause",this._hasPause=1,ge(this,n,Ee(this,t))},r.removePause=function(t){var e=this._first;for(t=Ee(this,t);e;)e._start===t&&"isPause"===e.data&&se(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)vr!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=Ae(t),o=this._first,s=at(e);o;)o instanceof Cr?Ut(o._targets,i)&&(s?(!vr||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=Ee(n,t),o=e,s=o.startAt,a=o.onStart,l=o.onStartParams,c=o.immediateRender,u=Cr.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())||Q,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:n._time))/n.timeScale());u._dur!==t&&xe(u,t,0,1).render(u._time,!0,!0),r=1}a&&a.apply(u,l||[])}},e));return c?u.render(0):u},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,Zt({startAt:{time:Ee(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),Ye(this,Ee(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),Ye(this,Ee(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Q)},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 ae(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={}),ae(this)},r.totalDuration=function(t){var e,r,n,i=0,o=this,s=o._last,a=J;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,ge(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;xe(o,o===R&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(R._ts&&(Kt(R,de(t,R)),H=er.frame),er.frame>=Nt){Nt+=G.autoSleep||120;var e=R._first;if((!e||!e._ts)&&G.autoSleep&&er._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||er.sleep()}}},e}(mr);Zt(gr.prototype,{_lock:0,_hasPause:0,_forcing:0});var vr,yr,wr=function(t,e,r,n,i,o,s){var a,l,c,u,h,d,f,p,m=new Yr(this._pt,t,e,0,1,Rr,null,i),g=0,v=0;for(m.b=r,m.e=n,r+="",(f=~(n+="").indexOf("random("))&&(n=ze(n)),o&&(o(p=[r,n],t,e),r=p[0],n=p[1]),l=r.match(yt)||[];a=yt.exec(n);)u=a[0],h=n.substring(g,a.index),c?c=(c+1)%5:"rgba("===h.substr(-5)&&(c=1),u!==l[v++]&&(d=parseFloat(l[v-1])||0,m._pt={_next:m._pt,p:h||1===v?h:",",s:d,c:"="===u.charAt(1)?Vt(d,u)-d:parseFloat(u)-d,m:c&&c<4?Math.round:0},g=yt.lastIndex);return m.c=g<n.length?n.substring(g,n.length):"",m.fp=s,(wt.test(n)||f)&&(m.e=0),this._pt=m,m},_r=function(t,e,r,n,i,o,s,a,l,c){st(n)&&(n=n(i||0,t,o));var u,h=t[e],d="get"!==r?r:st(h)?l?t[e.indexOf("set")||!st(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,f=st(h)?l?Pr:Mr:Lr;if(ot(n)&&(~n.indexOf("random(")&&(n=ze(n)),"="===n.charAt(1)&&((u=Vt(d,n)+(Le(d)||0))||0===u)&&(n=u)),!c||d!==n||yr)return isNaN(d*n)||""===n?(!h&&!(e in t)&&St(e,n),wr.call(this,t,e,d,n,f,a||G.stringFilter,l)):(u=new Yr(this._pt,t,e,+d||0,n-(d||0),"boolean"==typeof h?Dr:Fr,0,f),l&&(u.fp=l),s&&u.modifier(s,this,t),this._pt=u)},xr=function(t,e,r,n,i,o){var s,a,l,c;if(Rt[t]&&!1!==(s=new Rt[t]).init(i,s.rawVars?e[t]:function(t,e,r,n,i){if(st(t)&&(t=Er(t,i,e,r,n)),!ct(t)||t.style&&t.nodeType||pt(t)||ft(t))return ot(t)?Er(t,i,e,r,n):t;var o,s={};for(o in t)s[o]=Er(t[o],i,e,r,n);return s}(e[t],n,i,o,r),r,n,o)&&(r._pt=a=new Yr(r._pt,i,t,0,1,s.render,s,0,s.priority),r!==Y))for(l=r._ptLookup[r._targets.indexOf(i)],c=s._props.length;c--;)l[s._props[c]]=a;return s},br=function t(e,r,n){var i,o,s,a,l,c,u,h,d,f,p,m,g,v=e.vars,y=v.ease,w=v.startAt,_=v.immediateRender,x=v.lazy,b=v.onUpdate,T=v.runBackwards,E=v.yoyoEase,S=v.keyframes,k=v.autoRevert,C=e._dur,L=e._startAt,M=e._targets,P=e.parent,A=P&&"nested"===P.data?P.vars.targets:M,D="auto"===e._overwrite&&!O,q=e.timeline;if(q&&(!S||!y)&&(y="none"),e._ease=cr(y,K.ease),e._yEase=E?ar(cr(!0===E?y:E,K.ease)):0,E&&e._yoyo&&!e._repeat&&(E=e._yEase,e._yEase=e._ease,e._ease=E),e._from=!q&&!!v.runBackwards,!q||S&&!v.stagger){if(m=(h=M[0]?Yt(M[0]).harness:0)&&v[h.prop],i=re(v,Ot),L&&(L._zTime<0&&L.progress(1),r<0&&T&&_&&!k?L.render(-1,!0):L.revert(T&&C?Pt:Mt),L._lazy=0),w){if(se(e._startAt=Cr.set(M,Zt({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:!L&&ut(x),startAt:null,delay:0,onUpdate:b&&function(){return Be(e,"onUpdate")},stagger:0},w))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(F||!_&&!k)&&e._startAt.revert(Pt),_&&C&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(T&&C&&!L)if(r&&(_=!1),s=Zt({overwrite:!1,data:"isFromStart",lazy:_&&!L&&ut(x),immediateRender:_,stagger:0,parent:P},i),m&&(s[h.prop]=m),se(e._startAt=Cr.set(M,s)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(F?e._startAt.revert(Pt):e._startAt.render(-1,!0)),e._zTime=r,_){if(!r)return}else t(e._startAt,Q,Q);for(e._pt=e._ptCache=0,x=C&&ut(x)||x&&!C,o=0;o<M.length;o++){if(u=(l=M[o])._gsap||Ht(M)[o]._gsap,e._ptLookup[o]=f={},Dt[u.id]&&Ft.length&&$t(),p=A===M?o:A.indexOf(l),h&&!1!==(d=new h).init(l,m||i,e,p,A)&&(e._pt=a=new Yr(e._pt,l,d.name,0,1,d.render,d,0,d.priority),d._props.forEach((function(t){f[t]=a})),d.priority&&(c=1)),!h||m)for(s in i)Rt[s]&&(d=xr(s,i,e,p,l,A))?d.priority&&(c=1):f[s]=a=_r.call(e,l,s,"get",i[s],p,A,0,v.stringFilter);e._op&&e._op[o]&&e.kill(l,e._op[o]),D&&e._pt&&(vr=e,R.killTweensOf(l,f,e.globalTime(r)),g=!e.parent,vr=0),e._pt&&x&&(Dt[u.id]=1)}c&&Hr(e),e._onInit&&e._onInit(e)}e._onUpdate=b,e._initted=(!e._op||e._pt)&&!g,S&&r<=0&&q.render(J,!0,!0)},Tr=function(t,e,r,n){var i,o,s=e.ease||n||"power1.inOut";if(pt(e))o=r[t]||(r[t]=[]),e.forEach((function(t,r){return o.push({t:r/(e.length-1)*100,v:t,e:s})}));else for(i in e)o=r[i]||(r[i]=[]),"ease"===i||o.push({t:parseFloat(t),v:e[i],e:s})},Er=function(t,e,r,n,i){return st(t)?t.call(e,r,n,i):ot(t)&&~t.indexOf("random(")?ze(t):t},Sr=zt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",kr={};jt(Sr+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return kr[t]=1}));var Cr=function(t){function e(e,r,n,i){var o;"number"==typeof r&&(n.duration=r,r=n,n=null);var s,a,l,c,u,h,d,f,p=(o=t.call(this,i?r:ne(r))||this).vars,m=p.duration,g=p.delay,v=p.immediateRender,y=p.stagger,w=p.overwrite,_=p.keyframes,x=p.defaults,b=p.scrollTrigger,T=p.yoyoEase,E=r.parent||R,S=(pt(e)||ft(e)?at(e[0]):"length"in r)?[e]:Ae(e);if(o._targets=S.length?Ht(S):kt("GSAP target "+e+" not found. https://gsap.com",!G.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=w,_||y||dt(m)||dt(g)){if(r=o.vars,(s=o.timeline=new gr({data:"nested",defaults:x||{},targets:E&&"nested"===E.data?E.vars.targets:S})).kill(),s.parent=s._dp=P(o),s._start=0,y||dt(m)||dt(g)){if(c=S.length,d=y&&De(y),ct(y))for(u in y)~Sr.indexOf(u)&&(f||(f={}),f[u]=y[u]);for(a=0;a<c;a++)(l=re(r,kr)).stagger=0,T&&(l.yoyoEase=T),f&&te(l,f),h=S[a],l.duration=+Er(m,P(o),a,h,S),l.delay=(+Er(g,P(o),a,h,S)||0)-o._delay,!y&&1===c&&l.delay&&(o._delay=g=l.delay,o._start+=g,l.delay=0),s.to(h,l,d?d(a,h,S):0),s._ease=nr.none;s.duration()?m=g=0:o.timeline=0}else if(_){ne(Zt(s.vars.defaults,{ease:"none"})),s._ease=cr(_.ease||r.ease||"none");var k,C,L,M=0;if(pt(_))_.forEach((function(t){return s.to(S,t,">")})),s.duration();else{for(u in l={},_)"ease"===u||"easeEach"===u||Tr(u,_[u],l,_.easeEach);for(u in l)for(k=l[u].sort((function(t,e){return t.t-e.t})),M=0,a=0;a<k.length;a++)(L={ease:(C=k[a]).e,duration:(C.t-(a?k[a-1].t:0))/100*m})[u]=C.v,s.to(S,L,M),M+=L.duration;s.duration()<m&&s.to({},{duration:m-s.duration()})}}m||o.duration(m=s.duration())}else o.timeline=0;return!0!==w||O||(vr=P(o),R.killTweensOf(S),vr=0),ge(E,P(o),n),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(v||!m&&!_&&o._start===Wt(E._time)&&ut(v)&&ce(P(o))&&"nested"!==E.data)&&(o._tTime=-1e-8,o.render(Math.max(0,-g)||0)),b&&ve(P(o),b),o}A(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,o,s,a,l,c,u,h,d=this._time,f=this._tDur,p=this._dur,m=t<0,g=t>f-Q&&!m?f:t<Q?0:t;if(p){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(n=g,u=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*s+t,e,r);if(n=Wt(g%s),g===f?(o=this._repeat,n=p):(o=~~(a=Wt(g/s)))&&o===a?(n=p,o--):n>p&&(n=p),(l=this._yoyo&&1&o)&&(h=this._yEase,n=p-n),a=he(this._tTime,s),n===d&&!r&&this._initted&&o===a)return this._tTime=g,this;o!==a&&(u&&this._yEase&&lr(u,l),this.vars.repeatRefresh&&!l&&!this._lock&&n!==s&&this._initted&&(this._lock=r=1,this.render(Wt(s*o),!0).invalidate()._lock=0))}if(!this._initted){if(ye(this,m?t:n,r,e,g))return this._tTime=0,this;if(!(d===this._time||r&&this.vars.repeatRefresh&&o!==a))return this;if(p!==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=c=(h||this._ease)(n/p),this._from&&(this.ratio=c=1-c),!d&&g&&!e&&!a&&(Be(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;u&&u.render(t<0?t:u._dur*u._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&le(this,t,0,r),Be(this,"onUpdate")),this._repeat&&o!==a&&this.vars.onRepeat&&!e&&this.parent&&Be(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&le(this,t,0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&se(this,1),e||m&&!d||!(g||d||l)||(Be(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,o,s,a=t.ratio,l=e<0||!e&&(!t._start&&we(t)&&(t._initted||!_e(t))||(t._ts<0||t._dp._ts<0)&&!_e(t))?0:1,c=t._rDelay,u=0;if(c&&t._repeat&&(u=Ce(0,t._tDur,e),o=he(u,c),t._yoyo&&1&o&&(l=1-l),o!==he(t._tTime,c)&&(a=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==a||F||n||t._zTime===Q||!e&&t._zTime){if(!t._initted&&ye(t,e,n,r,u))return;for(s=t._zTime,t._zTime=e||(r?Q:0),r||(r=e&&!s),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=u,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&le(t,e,0,!0),t._onUpdate&&!r&&Be(t,"onUpdate"),u&&t._repeat&&!r&&t.parent&&Be(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&se(t,1),r||F||(Be(t,l?"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){B||er.wake(),this._ts||this.play();var o=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||br(this,o),function(t,e,r,n,i,o,s,a){var l,c,u,h,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d)for(d=t._ptCache[e]=[],u=t._ptLookup,h=t._targets.length;h--;){if((l=u[h][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return yr=1,t.vars[e]="+=0",br(t,s),yr=0,a?kt(e+" not eligible for reset"):1;d.push(l)}for(h=d.length;h--;)(l=(c=d[h])._pt||c).s=!n&&0!==n||i?l.s+(n||0)+o*l.c:n,l.c=r-l.s,c.e&&(c.e=Xt(r)+Le(c.e)),c.b&&(c.b=l.s+Le(c.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||ie(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?je(this):this.scrollTrigger&&this.scrollTrigger.kill(!!F),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,vr&&!0!==vr.vars.overwrite)._first||je(this),this.parent&&r!==this.timeline.totalDuration()&&xe(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,o,s,a,l,c,u=this._targets,h=t?Ae(t):u,d=this._ptLookup,f=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}(u,h))return"all"===e&&(this._pt=0),je(this);for(n=this._op=this._op||[],"all"!==e&&(ot(e)&&(a={},jt(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=te({},e),a)if(n in r)for(i=(o=a[n].split(",")).length;i--;)r[o[i]]=r[n];return r}(u,e)),c=u.length;c--;)if(~h.indexOf(u[c]))for(a in i=d[c],"all"===e?(n[c]=e,s=i,o={}):(o=n[c]=n[c]||{},s=e),s)(l=i&&i[a])&&("kill"in l.d&&!0!==l.d.kill(a)||oe(this,l,"_pt"),delete i[a]),"all"!==o&&(o[a]=1);return this._initted&&!this._pt&&f&&je(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return Se(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 Se(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 R.killTweensOf(t,e,r)},e}(mr);Zt(Cr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),jt("staggerTo,staggerFrom,staggerFromTo",(function(t){Cr[t]=function(){var e=new gr,r=Me.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var Lr=function(t,e,r){return t[e]=r},Mr=function(t,e,r){return t[e](r)},Pr=function(t,e,r,n){return t[e](n.fp,r)},Ar=function(t,e,r){return t.setAttribute(e,r)},Or=function(t,e){return st(t[e])?Mr:lt(t[e])&&t.setAttribute?Ar:Lr},Fr=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)},Rr=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)},qr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},Nr=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},Ir=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?oe(this,n,"_pt"):n.dep||(e=1),n=r;return!e},zr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},Hr=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,l){this.t=e,this.s=n,this.c=i,this.p=r,this.r=o||Fr,this.d=s||this,this.set=a||Lr,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=zr,this.m=t,this.mt=r,this.tween=e},t}();jt(zt+"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 Ot[t]=1})),bt.TweenMax=bt.TweenLite=Cr,bt.TimelineLite=bt.TimelineMax=gr,R=new gr({sortChildren:!1,defaults:K,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),G.stringFilter=tr;var Br=[],jr={},Xr=[],Wr=0,Vr=0,Ur=function(t){return(jr[t]||Xr).map((function(t){return t()}))},$r=function(){var t=Date.now(),e=[];t-Wr>2&&(Ur("matchMediaInit"),Br.forEach((function(t){var r,n,i,o,s=t.queries,a=t.conditions;for(n in s)(r=q.matchMedia(s[n]).matches)&&(i=1),r!==a[n]&&(a[n]=r,o=1);o&&(t.revert(),i&&e.push(t))})),Ur("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),Wr=t,Ur("matchMedia"))},Gr=function(){function t(t,e){this.selector=e&&Oe(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Vr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){st(t)&&(r=e,e=t,t=st);var n=this,i=function(){var t,i=D,o=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=Oe(r)),D=n,t=e.apply(n,arguments),st(t)&&n._r.push(t),D=i,n.selector=o,n.isReverted=!1,t};return n.last=i,t===st?i(n,(function(t){return n.add(null,t)})):t?n[t]=i:i},e.ignore=function(t){var e=D;D=null,t(this),D=e},e.getTweens=function(){var e=[];return this.data.forEach((function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof Cr&&!(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: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 gr?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof Cr)&&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=Br.length;n--;)Br[n].id===this.id&&Br.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Kr=function(){function t(t){this.contexts=[],this.scope=t,D&&D.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){ct(t)||(t={matches:t});var n,i,o,s=new Gr(0,r||this.scope),a=s.conditions={};for(i in D&&!s.selector&&(s.selector=D.selector),this.contexts.push(s),e=s.add("onMatch",e),s.queries=t,t)"all"===i?o=1:(n=q.matchMedia(t[i]))&&(Br.indexOf(s)<0&&Br.push(s),(a[i]=n.matches)&&(o=1),n.addListener?n.addListener($r):n.addEventListener("change",$r));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}(),Jr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach((function(t){return We(t)}))},timeline:function(t){return new gr(t)},getTweensOf:function(t,e){return R.getTweensOf(t,e)},getProperty:function(t,e,r,n){ot(t)&&(t=Ae(t)[0]);var i=Yt(t||{}).get,o=r?Qt:Jt;return"native"===r&&(r=""),t?e?o((Rt[e]&&Rt[e].get||i)(t,e,r,n)):function(e,r,n){return o((Rt[e]&&Rt[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=Ae(t)).length>1){var n=t.map((function(t){return tn.quickSetter(t,e,r)})),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var o=Rt[e],s=Yt(t),a=s.harness&&(s.harness.aliases||{})[e]||e,l=o?function(e){var n=new o;Y._pt=0,n.init(t,r?e+r:e,Y,0,[t]),n.render(1,n),Y._pt&&qr(1,Y)}:s.set(t,a);return o?l:function(e){return l(t,a,r?e+r:e,s,1)}},quickTo:function(t,e,r){var n,i=tn.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 R.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=cr(t.ease,K.ease)),ee(K,t||{})},config:function(t){return ee(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&&!Rt[t]&&!bt[t]&&kt(e+" effect requires "+t+" plugin.")})),qt[e]=function(t,e,n){return r(Ae(t),Zt(e||{},i),n)},o&&(gr.prototype[e]=function(t,r,n){return this.add(qt[e](t,ct(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){nr[t]=cr(e)},parseEase:function(t,e){return arguments.length?cr(t,e):nr},getById:function(t){return R.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new gr(t);for(i.smoothChildTiming=ut(t.smoothChildTiming),R.remove(i),i._dp=0,i._time=i._tTime=R._time,r=R._first;r;)n=r._next,!e&&!r._dur&&r instanceof Cr&&r.vars.onComplete===r._targets[0]||ge(i,r,r._start-r._delay),r=n;return ge(R,i,0),i},context:function(t,e){return t?new Gr(t,e):D},matchMedia:function(t){return new Kr(t)},matchMediaRefresh:function(){return Br.forEach((function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()}))||$r()},addEventListener:function(t,e){var r=jr[t]||(jr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=jr[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)?Ie(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)?Ie(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:Ne,snap:qe,normalize:function(t,e,r){return He(t,e,0,1,r)},getUnit:Le,clamp:function(t,e,r){return ke(r,(function(r){return Ce(t,e,r)}))},splitColor:Ge,toArray:Ae,selector:Oe,mapRange:He,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(r){return t(parseFloat(r))+(e||Le(r))}},interpolate:function t(e,r,n,i){var o=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!o){var s,a,l,c,u,h=ot(e),d={};if(!0===n&&(i=1)&&(n=null),h)e={p:e},r={p:r};else if(pt(e)&&!pt(r)){for(l=[],c=e.length,u=c-2,a=1;a<c;a++)l.push(t(e[a-1],e[a]));c--,o=function(t){t*=c;var e=Math.min(u,~~t);return l[e](t-e)},n=r}else i||(e=te(pt(e)?[]:{},e));if(!l){for(s in r)_r.call(d,e,s,"get",r[s]);o=function(t){return qr(t,d)||(h?e.p:e)}}}return ke(n,o)},shuffle:Fe},install:Et,effects:qt,ticker:er,updateRoot:gr.updateRoot,plugins:Rt,globalTimeline:R,core:{PropTween:Yr,globals:Ct,Tween:Cr,Timeline:gr,Animation:mr,getCache:Yt,_removeLinkedListItem:oe,reverting:function(){return F},context:function(t){return t&&D&&(D.data.push(t),t._ctx=D),D},suppressOverwrites:function(t){return O=t}}};jt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Jr[t]=Cr[t]})),er.add(gr.updateRoot),Y=Jr.to({},{duration:0});var Qr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Zr=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(ot(r)&&(n={},jt(r,(function(t){return n[t]=1})),r=n),e){for(i in n={},r)n[i]=e(r[i]);r=n}!function(t,e){var r,n,i,o=t._targets;for(r in e)for(n=o.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=Qr(i,r)),i&&i.modifier&&i.modifier(e[r],t,o[n],r))}(t,r)}}}},tn=Jr.registerPlugin({name:"attr",init:function(t,e,r,n,i){var o,s,a;for(o in this.tween=r,e)a=t.getAttribute(o)||"",(s=this.add(t,"setAttribute",(a||0)+"",e[o],n,i,0,0,o)).op=o,s.b=a,this._props.push(o)},render:function(t,e){for(var r=e._pt;r;)F?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Zr("roundProps",Re),Zr("modifiers"),Zr("snap",qe))||Jr;Cr.version=gr.version=tn.version="3.13.0",z=1,ht()&&rr(),nr.Power0,nr.Power1,nr.Power2,nr.Power3,nr.Power4,nr.Linear,nr.Quad,nr.Cubic,nr.Quart,nr.Quint,nr.Strong,nr.Elastic,nr.Back,nr.SteppedEase,nr.Bounce,nr.Sine,nr.Expo,nr.Circ;var en,rn,nn,on,sn,an,ln,cn,un={},hn=180/Math.PI,dn=Math.PI/180,fn=Math.atan2,pn=/([A-Z])/g,mn=/(left|right|width|margin|padding|x)/i,gn=/[\s,\(]\S/,vn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},yn=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},wn=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},_n=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},xn=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},bn=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Tn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},En=function(t,e,r){return t.style[e]=r},Sn=function(t,e,r){return t.style.setProperty(e,r)},kn=function(t,e,r){return t._gsap[e]=r},Cn=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Ln=function(t,e,r,n,i){var o=t._gsap;o.scaleX=o.scaleY=r,o.renderTransform(i,o)},Mn=function(t,e,r,n,i){var o=t._gsap;o[e]=r,o.renderTransform(i,o)},Pn="transform",An=Pn+"Origin",On=function t(e,r){var n=this,i=this.target,o=i.style,s=i._gsap;if(e in un&&o){if(this.tfm=this.tfm||{},"transform"===e)return vn.transform.split(",").forEach((function(e){return t.call(n,e,r)}));if(~(e=vn[e]||e).indexOf(",")?e.split(",").forEach((function(t){return n.tfm[t]=Kn(i,t)})):this.tfm[e]=s.x?s[e]:Kn(i,e),e===An&&(this.tfm.zOrigin=s.zOrigin),this.props.indexOf(Pn)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(An,r,"")),e=Pn}(o||r)&&this.props.push(e,r,o[e])},Fn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Dn=function(){var t,e,r=this.props,n=this.target,i=n.style,o=n._gsap;for(t=0;t<r.length;t+=3)r[t+1]?2===r[t+1]?n[r[t]](r[t+2]):n[r[t]]=r[t+2]:r[t+2]?i[r[t]]=r[t+2]:i.removeProperty("--"===r[t].substr(0,2)?r[t]:r[t].replace(pn,"-$
21").toLowerCase());if(this.tfm){for(e in this.tfm)o[e]=this.tfm[e];o.svg&&(o.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(t=ln())&&t.isStart||i[Pn]||(Fn(i),o.zOrigin&&i[An]&&(i[An]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},Rn=function(t,e){var r={target:t,props:[],revert:Dn,save:On};return t._gsap||tn.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach((function(t){return r.save(t)})),r},qn=function(t,e){var r=rn.createElementNS?rn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):rn.createElement(t);return r&&r.style?r:rn.createElement(t)},Nn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(pn,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,zn(r)||r,1)||""},In="O,Moz,ms,Ms,Webkit".split(","),zn=function(t,e,r){var n=(e||sn).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(In[i]+t in n););return i<0?null:(3===i?"ms":i>=0?In[i]:"")+t},Hn=function(){"undefined"!=typeof window&&window.document&&(en=window,rn=en.document,nn=rn.documentElement,sn=qn("div")||{style:{}},qn("div"),Pn=zn(Pn),An=Pn+"Origin",sn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",cn=!!zn("perspective"),ln=tn.core.reverting,on=1)},Yn=function(t){var e,r=t.ownerSVGElement,n=qn("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},Bn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},jn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=Yn(t),r=1}return e&&(e.width||e.height)||r||(e=Yn(t)),!e||e.width||e.x||e.y?e:{x:+Bn(t,["x","cx","x1"])||0,y:+Bn(t,["y","cy","y1"])||0,width:0,height:0}},Xn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!jn(t))},Wn=function(t,e){if(e){var r,n=t.style;e in un&&e!==An&&(e=Pn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(pn,"-$1").toLowerCase())):n.removeAttribute(e)}},Vn=function(t,e,r,n,i,o){var s=new Yr(t._pt,e,r,0,1,o?Tn:bn);return t._pt=s,s.b=n,s.e=i,t._props.push(r),s},Un={deg:1,rad:1,turn:1},$n={grid:1,flex:1},Gn=function t(e,r,n,i){var o,s,a,l,c=parseFloat(n)||0,u=(n+"").trim().substr((c+"").length)||"px",h=sn.style,d=mn.test(r),f="svg"===e.tagName.toLowerCase(),p=(f?"client":"offset")+(d?"Width":"Height"),m=100,g="px"===i,v="%"===i;if(i===u||!c||Un[i]||Un[u])return c;if("px"!==u&&!g&&(c=t(e,r,n,"px")),l=e.getCTM&&Xn(e),(v||"%"===u)&&(un[r]||~r.indexOf("adius")))return o=l?e.getBBox()[d?"width":"height"]:e[p],Xt(v?c/o*m:c/100*o);if(h[d?"width":"height"]=m+(g?u:i),s="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!f?e:e.parentNode,l&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==rn&&s.appendChild||(s=rn.body),(a=s._gsap)&&v&&a.width&&d&&a.time===er.time&&!a.uncache)return Xt(c/a.width*m);if(!v||"height"!==r&&"width"!==r)(v||"%"===u)&&!$n[Nn(s,"display")]&&(h.position=Nn(e,"position")),s===e&&(h.position="static"),s.appendChild(sn),o=sn[p],s.removeChild(sn),h.position="absolute";else{var y=e.style[r];e.style[r]=m+i,o=e[p],y?e.style[r]=y:Wn(e,r)}return d&&v&&((a=Yt(s)).time=er.time,a.width=s[p]),Xt(g?o*c/m:o&&c?m/o*c:0)},Kn=function(t,e,r,n){var i;return on||Hn(),e in vn&&"transform"!==e&&~(e=vn[e]).indexOf(",")&&(e=e.split(",")[0]),un[e]&&"transform"!==e?(i=ai(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:li(Nn(t,An))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=ti[e]&&ti[e](t,e,r)||Nn(t,e)||Bt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?Gn(t,e,i,r)+r:i},Jn=function(t,e,r,n){if(!r||"none"===r){var i=zn(e,t,1),o=i&&Nn(t,i,1);o&&o!==r?(e=i,r=o):"borderColor"===e&&(r=Nn(t,"borderTopColor"))}var s,a,l,c,u,h,d,f,p,m,g,v=new Yr(this._pt,t.style,e,0,1,Rr),y=0,w=0;if(v.b=r,v.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=Nn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(h=t.style[e],t.style[e]=n,n=Nn(t,e)||n,h?t.style[e]=h:Wn(t,e)),tr(s=[r,n]),n=s[1],l=(r=s[0]).match(vt)||[],(n.match(vt)||[]).length){for(;a=vt.exec(n);)d=a[0],p=n.substring(y,a.index),u?u=(u+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(u=1),d!==(h=l[w++]||"")&&(c=parseFloat(h)||0,g=h.substr((c+"").length),"="===d.charAt(1)&&(d=Vt(c,d)+g),f=parseFloat(d),m=d.substr((f+"").length),y=vt.lastIndex-m.length,m||(m=m||G.units[e]||g,y===n.length&&(n+=m,v.e+=m)),g!==m&&(c=Gn(t,e,h,m)||0),v._pt={_next:v._pt,p:p||1===w?p:",",s:c,c:f-c,m:u&&u<4||"zIndex"===e?Math.round:0});v.c=y<n.length?n.substring(y,n.length):""}
vendor: 52,272 bytes, line 2
2else v.r="display"===e&&"none"===n?Tn:bn;return wt.test(n)&&(v.e=0),this._pt=v,v},Qn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Zn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,o=e.t,s=o.style,a=e.u,l=o._gsap;if("all"===a||!0===a)s.cssText="",n=1;else for(i=(a=a.split(",")).length;--i>-1;)r=a[i],un[r]&&(n=1,r="transformOrigin"===r?An:Pn),Wn(o,r);n&&(Wn(o,Pn),l&&(l.svg&&o.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",ai(o,1),l.uncache=1,Fn(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,Zn);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=Nn(t,Pn);return ni(e)?ei:e.substr(7).match(gt).map(Xt)},oi=function(t,e){var r,n,i,o,s=t._gsap||Yt(t),a=t.style,l=ii(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?ei:l:(l!==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)),l=ii(t),i?a.display=i:Wn(t,"display"),o&&(n?r.insertBefore(t,n):r?r.appendChild(t):nn.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},si=function(t,e,r,n,i,o){var s,a,l,c=t._gsap,u=i||oi(t,!0),h=c.xOrigin||0,d=c.yOrigin||0,f=c.xOffset||0,p=c.yOffset||0,m=u[0],g=u[1],v=u[2],y=u[3],w=u[4],_=u[5],x=e.split(" "),b=parseFloat(x[0])||0,T=parseFloat(x[1])||0;r?u!==ei&&(a=m*y-g*v)&&(l=b*(-g/a)+T*(m/a)-(m*_-g*w)/a,b=b*(y/a)+T*(-v/a)+(v*_-y*w)/a,T=l):(b=(s=jn(t)).x+(~x[0].indexOf("%")?b/100*s.width:b),T=s.y+(~(x[1]||x[0]).indexOf("%")?T/100*s.height:T)),n||!1!==n&&c.smooth?(w=b-h,_=T-d,c.xOffset=f+(w*m+_*v)-w,c.yOffset=p+(w*g+_*y)-_):c.xOffset=c.yOffset=0,c.xOrigin=b,c.yOrigin=T,c.smooth=!!n,c.origin=e,c.originIsAbsolute=!!r,t.style[An]="0px 0px",o&&(Vn(o,c,"xOrigin",h,b),Vn(o,c,"yOrigin",d,T),Vn(o,c,"xOffset",f,c.xOffset),Vn(o,c,"yOffset",p,c.yOffset)),t.setAttribute("data-svg-origin",b+" "+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,l,c,u,h,d,f,p,m,g,v,y,w,_,x,b,T,E,S,k,C,L,M,P,A,O,F,D,R=t.style,q=r.scaleX<0,N="px",I="deg",z=getComputedStyle(t),H=Nn(t,An)||"0";return n=i=o=l=c=u=h=d=f=0,s=a=1,r.svg=!(!t.getCTM||!Xn(t)),z.translate&&("none"===z.translate&&"none"===z.scale&&"none"===z.rotate||(R[Pn]=("none"!==z.translate?"translate3d("+(z.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==z.rotate?"rotate("+z.rotate+") ":"")+("none"!==z.scale?"scale("+z.scale.split(" ").join(",")+") ":"")+("none"!==z[Pn]?z[Pn]:"")),R.scale=R.rotate=R.translate="none"),g=oi(t,r.svg),r.svg&&(r.uncache?(C=t.getBBox(),H=r.xOrigin-C.x+"px "+(r.yOrigin-C.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),si(t,k||H,!!k||r.originIsAbsolute,!1!==r.smooth,g)),p=r.xOrigin||0,m=r.yOrigin||0,g!==ei&&(_=g[0],x=g[1],b=g[2],T=g[3],n=E=g[4],i=S=g[5],6===g.length?(s=Math.sqrt(_*_+x*x),a=Math.sqrt(T*T+b*b),l=_||x?fn(x,_)*hn:0,(h=b||T?fn(b,T)*hn+l:0)&&(a*=Math.abs(Math.cos(h*dn))),r.svg&&(n-=p-(p*_+m*b),i-=m-(p*x+m*T))):(D=g[6],O=g[7],M=g[8],P=g[9],A=g[10],F=g[11],n=g[12],i=g[13],o=g[14],c=(v=fn(D,A))*hn,v&&(k=E*(y=Math.cos(-v))+M*(w=Math.sin(-v)),C=S*y+P*w,L=D*y+A*w,M=E*-w+M*y,P=S*-w+P*y,A=D*-w+A*y,F=O*-w+F*y,E=k,S=C,D=L),u=(v=fn(-b,A))*hn,v&&(y=Math.cos(-v),F=T*(w=Math.sin(-v))+F*y,_=k=_*y-M*w,x=C=x*y-P*w,b=L=b*y-A*w),l=(v=fn(x,_))*hn,v&&(k=_*(y=Math.cos(v))+x*(w=Math.sin(v)),C=E*y+S*w,x=x*y-_*w,S=S*y-E*w,_=k,E=C),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),s=Xt(Math.sqrt(_*_+x*x+b*b)),a=Xt(Math.sqrt(S*S+D*D)),v=fn(E,S),h=Math.abs(v)>2e-4?v*hn:0,f=F?1/(F<0?-F:F):0),r.svg&&(k=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!ni(Nn(t,Pn)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(q?(s*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,h+=h<=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)+N,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)+N,r.z=o+N,r.scaleX=Xt(s),r.scaleY=Xt(a),r.rotation=Xt(l)+I,r.rotationX=Xt(c)+I,r.rotationY=Xt(u)+I,r.skewX=h+I,r.skewY=d+I,r.transformPerspective=f+N,(r.zOrigin=parseFloat(H.split(" ")[2])||!e&&r.zOrigin||0)&&(R[An]=li(H)),r.xOffset=r.yOffset=0,r.force3D=G.force3D,r.renderTransform=r.svg?mi:cn?pi:ui,r.uncache=0,r},li=function(t){return(t=t.split(" "))[0]+" "+t[1]},ci=function(t,e,r){var n=Le(e);return Xt(parseFloat(e)+parseFloat(Gn(t,"x",r+"px",n)))+n},ui=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,pi(t,e)},hi="0deg",di="0px",fi=") ",pi=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,o=r.x,s=r.y,a=r.z,l=r.rotation,c=r.rotationY,u=r.rotationX,h=r.skewX,d=r.skewY,f=r.scaleX,p=r.scaleY,m=r.transformPerspective,g=r.force3D,v=r.target,y=r.zOrigin,w="",_="auto"===g&&t&&1!==t||!0===g;if(y&&(u!==hi||c!==hi)){var x,b=parseFloat(c)*dn,T=Math.sin(b),E=Math.cos(b);b=parseFloat(u)*dn,x=Math.cos(b),o=ci(v,o,T*x*-y),s=ci(v,s,-Math.sin(b)*-y),a=ci(v,a,E*x*-y+y)}m!==di&&(w+="perspective("+m+fi),(n||i)&&(w+="translate("+n+"%, "+i+"%) "),(_||o!==di||s!==di||a!==di)&&(w+=a!==di||_?"translate3d("+o+", "+s+", "+a+") ":"translate("+o+", "+s+fi),l!==hi&&(w+="rotate("+l+fi),c!==hi&&(w+="rotateY("+c+fi),u!==hi&&(w+="rotateX("+u+fi),h===hi&&d===hi||(w+="skew("+h+", "+d+fi),1===f&&1===p||(w+="scale("+f+", "+p+fi),v.style[Pn]=w||"translate(0, 0)"},mi=function(t,e){var r,n,i,o,s,a=e||this,l=a.xPercent,c=a.yPercent,u=a.x,h=a.y,d=a.rotation,f=a.skewX,p=a.skewY,m=a.scaleX,g=a.scaleY,v=a.target,y=a.xOrigin,w=a.yOrigin,_=a.xOffset,x=a.yOffset,b=a.forceCSS,T=parseFloat(u),E=parseFloat(h);d=parseFloat(d),f=parseFloat(f),(p=parseFloat(p))&&(f+=p=parseFloat(p),d+=p),d||f?(d*=dn,f*=dn,r=Math.cos(d)*m,n=Math.sin(d)*m,i=Math.sin(d-f)*-g,o=Math.cos(d-f)*g,f&&(p*=dn,s=Math.tan(f-p),i*=s=Math.sqrt(1+s*s),o*=s,p&&(s=Math.tan(p),r*=s=Math.sqrt(1+s*s),n*=s)),r=Xt(r),n=Xt(n),i=Xt(i),o=Xt(o)):(r=m,o=g,n=i=0),(T&&!~(u+"").indexOf("px")||E&&!~(h+"").indexOf("px"))&&(T=Gn(v,"x",u,"px"),E=Gn(v,"y",h,"px")),(y||w||_||x)&&(T=Xt(T+y-(y*r+w*i)+_),E=Xt(E+w-(y*n+w*o)+x)),(l||c)&&(s=v.getBBox(),T=Xt(T+l/100*s.width),E=Xt(E+c/100*s.height)),s="matrix("+r+","+n+","+i+","+o+","+T+","+E+")",v.setAttribute("transform",s),b&&(v.style[Pn]=s)},gi=function(t,e,r,n,i){var o,s,a=360,l=ot(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?hn:1)-n,u=n+c+"deg";return l&&("short"===(o=i.split("_")[1])&&(c%=a)!=c%180&&(c+=c<0?a:-360),"cw"===o&&c<0?c=(c+36e9)%a-~~(c/a)*a:"ccw"===o&&c>0&&(c=(c-36e9)%a-~~(c/a)*a)),t._pt=s=new Yr(t._pt,e,r,n,c,wn),s.e=u,s.u="deg",t._props.push(r),s},vi=function(t,e){for(var r in e)t[r]=e[r];return t},yi=function(t,e,r){var n,i,o,s,a,l,c,u=vi({},r._gsap),h=r.style;for(i in u.svg?(o=r.getAttribute("transform"),r.setAttribute("transform",""),h[Pn]=e,n=ai(r,1),Wn(r,Pn),r.setAttribute("transform",o)):(o=getComputedStyle(r)[Pn],h[Pn]=e,n=ai(r,1),h[Pn]=o),un)(o=u[i])!==(s=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=Le(o)!==(c=Le(s))?Gn(r,i,o,c):parseFloat(o),l=parseFloat(s),t._pt=new Yr(t._pt,n,i,a,l-a,yn),t._pt.u=c||0,t._props.push(i));vi(n,u)};jt("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 Kn(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 wi,_i,xi={name:"css",register:Hn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var o,s,a,l,c,u,h,d,f,p,m,g,v,y,w,_,x,b,T,E,S=this._props,k=t.style,C=r.vars.startAt;for(h in on||Hn(),this.styles=this.styles||Rn(t),_=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(s=e[h],!Rt[h]||!xr(h,e,r,n,t,i)))if(c=typeof s,u=ti[h],"function"===c&&(c=typeof(s=s.call(r,n,t,i))),"string"===c&&~s.indexOf("random(")&&(s=ze(s)),u)u(this,t,h,s,r)&&(w=1);else if("--"===h.substr(0,2))o=(getComputedStyle(t).getPropertyValue(h)+"").trim(),s+="",Qe.lastIndex=0,Qe.test(o)||(d=Le(o),f=Le(s)),f?d!==f&&(o=Gn(t,h,o,f)+f):d&&(s+=d),this.add(k,"setProperty",o,s,n,i,0,0,h),S.push(h),_.push(h,0,k[h]);else if("undefined"!==c){if(C&&h in C?(o="function"==typeof C[h]?C[h].call(r,n,t,i):C[h],ot(o)&&~o.indexOf("random(")&&(o=ze(o)),Le(o+"")||"auto"===o||(o+=G.units[h]||Le(Kn(t,h))||""),"="===(o+"").charAt(1)&&(o=Kn(t,h))):o=Kn(t,h),l=parseFloat(o),(p="string"===c&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),a=parseFloat(s),h in vn&&("autoAlpha"===h&&(1===l&&"hidden"===Kn(t,"visibility")&&a&&(l=0),_.push("visibility",0,k.visibility),Vn(this,k,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==h&&"transform"!==h&&~(h=vn[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in un)if(this.styles.save(h),"string"===c&&"var(--"===s.substring(0,6)&&(s=Nn(t,s.substring(4,s.indexOf(")"))),a=parseFloat(s)),g||((v=t._gsap).renderTransform&&!e.parseTransform||ai(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new Yr(this._pt,k,Pn,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new Yr(this._pt,v,"scaleY",v.scaleY,(p?Vt(v.scaleY,p+a):a)-v.scaleY||0,yn),this._pt.u=0,S.push("scaleY",h),h+="X";else{if("transformOrigin"===h){_.push(An,0,k[An]),b=void 0,T=void 0,E=void 0,T=(b=(x=s).split(" "))[0],E=b[1]||"50%","top"!==T&&"bottom"!==T&&"left"!==E&&"right"!==E||(x=T,T=E,E=x),b[0]=Qn[T]||T,b[1]=Qn[E]||E,s=b.join(" "),v.svg?si(t,s,0,y,0,this):((f=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&Vn(this,v,"zOrigin",v.zOrigin,f),Vn(this,k,h,li(o),li(s)));continue}if("svgOrigin"===h){si(t,s,1,y,0,this);continue}if(h in ri){gi(this,v,h,l,p?Vt(l,p+s):s);continue}if("smoothOrigin"===h){Vn(this,v,"smooth",v.smooth,s);continue}if("force3D"===h){v[h]=s;continue}if("transform"===h){yi(this,s,t);continue}}else h in k||(h=zn(h)||h);if(m||(a||0===a)&&(l||0===l)&&!gn.test(s)&&h in k)a||(a=0),(d=(o+"").substr((l+"").length))!==(f=Le(s)||(h in G.units?G.units[h]:d))&&(l=Gn(t,h,o,f)),this._pt=new Yr(this._pt,m?v:k,h,l,(p?Vt(l,p+a):a)-l,m||"px"!==f&&"zIndex"!==h||!1===e.autoRound?yn:xn),this._pt.u=f||0,d!==f&&"%"!==f&&(this._pt.b=o,this._pt.r=_n);else if(h in k)Jn.call(this,t,h,o,p?p+s:s);else if(h in t)this.add(t,h,o||t[h],p?p+s:s,n,i);else if("parseTransform"!==h){St(h,s);continue}m||(h in k?_.push(h,0,k[h]):"function"==typeof t[h]?_.push(h,2,t[h]()):_.push(h,1,o||t[h])),S.push(h)}w&&Hr(this)},render:function(t,e){if(e.tween._time||!ln())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Kn,aliases:vn,getSetter:function(t,e,r){var n=vn[e];return n&&n.indexOf(",")<0&&(e=n),e in un&&e!==An&&(t._gsap.x||Kn(t,"x"))?r&&an===r?"scale"===e?Cn:kn:(an=r||{})&&("scale"===e?Ln:Mn):t.style&&!lt(t.style[e])?En:~e.indexOf("-")?Sn:Or(t,e)},core:{_removeProperty:Wn,_getMatrix:oi}};tn.utils.checkPrefix=zn,tn.core.getStyleSaver=Rn,_i=jt("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(wi="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){un[t]=1})),jt(wi,(function(t){G.units[t]="deg",ri[t]=1})),vn[_i[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+wi,jt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");vn[e[1]]=_i[e[0]]})),jt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){G.units[t]="px"})),tn.registerPlugin(xi);var bi=tn.registerPlugin(xi)||tn;function Ti(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}bi.core.Tween;var Ei,Si,ki,Ci,Li,Mi,Pi,Ai,Oi,Fi,Di,Ri,qi,Ni=function(){return Ei||"undefined"!=typeof window&&(Ei=window.gsap)&&Ei.registerPlugin&&Ei},Ii=1,zi=[],Hi=[],Yi=[],Bi=Date.now,ji=function(t,e){return e},Xi=function(t,e){return~Yi.indexOf(t)&&Yi[Yi.indexOf(t)+1][e]},Wi=function(t){return!!~Fi.indexOf(t)},Vi=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},Ui=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},$i="scrollLeft",Gi="scrollTop",Ki=function(){return Di&&Di.isPressed||Hi.cache++},Ji=function(t,e){var r=function r(n){if(n||0===n){Ii&&(ki.history.scrollRestoration="manual");var i=Di&&Di.isPressed;n=r.v=Math.round(n)||(Di&&Di.iOS?1:0),t(n),r.cacheID=Hi.cache,i&&ji("ss",n)}else(e||Hi.cache!==r.cacheID||ji("ref"))&&(r.cacheID=Hi.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},Qi={s:$i,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Ji((function(t){return arguments.length?ki.scrollTo(t,Zi.sc()):ki.pageXOffset||Ci[$i]||Li[$i]||Mi[$i]||0}))},Zi={s:Gi,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Qi,sc:Ji((function(t){return arguments.length?ki.scrollTo(Qi.sc(),t):ki.pageYOffset||Ci[Gi]||Li[Gi]||Mi[Gi]||0}))},to=function(t,e){return(e&&e._ctx&&e._ctx.selector||Ei.utils.toArray)(t)[0]||("string"==typeof t&&!1!==Ei.config().nullTargetWarn?console.warn("Element not found:",t):null)},eo=function(t,e){var r=e.s,n=e.sc;Wi(t)&&(t=Ci.scrollingElement||Li);var i=Hi.indexOf(t),o=n===Zi.sc?1:2;!~i&&(i=Hi.push(t)-1),Hi[i+o]||Vi(t,"scroll",Ki);var s=Hi[i+o],a=s||(Hi[i+o]=Ji(Xi(t,r),!0)||(Wi(t)?n:Ji((function(e){return arguments.length?t[r]=e:t[r]}))));return a.target=t,s||(a.smooth="smooth"===Ei.getProperty(t,"scrollBehavior")),a},ro=function(t,e,r){var n=t,i=t,o=Bi(),s=o,a=e||50,l=Math.max(500,3*a),c=function(t,e){var l=Bi();e||l-o>a?(i=n,n=t,s=o,o=l):r?n+=t:n=i+(t-i)/(l-s)*(o-s)};return{update:c,reset:function(){i=n=r?0:n,s=o=0},getVelocity:function(t){var e=s,a=i,u=Bi();return(t||0===t)&&t!==n&&c(t),o===s||u-s>l?0:(n+(r?a:-a))/((r?u:o)-e)*1e3}}},no=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},io=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},oo=function(){var t,e,r,n;(Oi=Ei.core.globals().ScrollTrigger)&&Oi.core&&(t=Oi.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,Hi),n.push.apply(n,Yi),Hi=r,Yi=n,ji=function(t,r){return e[t](r)})},so=function(t){return Ei=t||Ni(),!Si&&Ei&&"undefined"!=typeof document&&document.body&&(ki=window,Ci=document,Li=Ci.documentElement,Mi=Ci.body,Fi=[ki,Ci,Li,Mi],Ei.utils.clamp,qi=Ei.core.context||function(){},Ai="onpointerenter"in Mi?"pointer":"mouse",Pi=ao.isTouch=ki.matchMedia&&ki.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ki||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Ri=ao.eventTypes=("ontouchstart"in Li?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Li?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return Ii=0}),500),oo(),Si=1),Si};Qi.op=Zi,Hi.cache=0;var ao=function(){function t(t){this.init(t)}var e,r;return t.prototype.init=function(t){Si||so(Ei)||console.warn("Please gsap.registerPlugin(Observer)"),Oi||oo();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,o=t.lineHeight,s=t.debounce,a=t.preventDefault,l=t.onStop,c=t.onStopDelay,u=t.ignore,h=t.wheelSpeed,d=t.event,f=t.onDragStart,p=t.onDragEnd,m=t.onDrag,g=t.onPress,v=t.onRelease,y=t.onRight,w=t.onLeft,_=t.onUp,x=t.onDown,b=t.onChangeX,T=t.onChangeY,E=t.onChange,S=t.onToggleX,k=t.onToggleY,C=t.onHover,L=t.onHoverEnd,M=t.onMove,P=t.ignoreCheck,A=t.isNormalizer,O=t.onGestureStart,F=t.onGestureEnd,D=t.onWheel,R=t.onEnable,q=t.onDisable,N=t.onClick,I=t.scrollSpeed,z=t.capture,H=t.allowClicks,Y=t.lockAxis,B=t.onLockAxis;this.target=i=to(i)||Li,this.vars=t,u&&(u=Ei.utils.toArray(u)),e=e||1e-9,r=r||0,h=h||1,I=I||1,n=n||"wheel,touch,pointer",s=!1!==s,o||(o=parseFloat(ki.getComputedStyle(Mi).lineHeight)||22);var j,X,W,V,U,$,G,K=this,J=0,Q=0,Z=t.passive||!a&&!1!==t.passive,tt=eo(i,Qi),et=eo(i,Zi),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===Ri[0],ot=Wi(i),st=i.ownerDocument||Ci,at=[0,0,0],lt=[0,0,0],ct=0,ut=function(){return ct=Bi()},ht=function(t,e){return(K.event=t)&&u&&function(t,e){for(var r=e.length;r--;)if(e[r]===t||e[r].contains(t))return!0;return!1}(t.target,u)||e&&it&&"touch"!==t.pointerType||P&&P(t,e)},dt=function(){var t=K.deltaX=io(at),r=K.deltaY=io(lt),n=Math.abs(t)>=e,i=Math.abs(r)>=e;E&&(n||i)&&E(K,t,r,at,lt),n&&(y&&K.deltaX>0&&y(K),w&&K.deltaX<0&&w(K),b&&b(K),S&&K.deltaX<0!=J<0&&S(K),J=K.deltaX,at[0]=at[1]=at[2]=0),i&&(x&&K.deltaY>0&&x(K),_&&K.deltaY<0&&_(K),T&&T(K),k&&K.deltaY<0!=Q<0&&k(K),Q=K.deltaY,lt[0]=lt[1]=lt[2]=0),(V||W)&&(M&&M(K),W&&(f&&1===W&&f(K),m&&m(K),W=0),V=!1),$&&!($=!1)&&B&&B(K),U&&(D(K),U=!1),j=0},ft=function(t,e,r){at[r]+=t,lt[r]+=e,K._vx.update(t),K._vy.update(e),s?j||(j=requestAnimationFrame(dt)):dt()},pt=function(t,e){Y&&!G&&(K.axis=G=Math.abs(t)>Math.abs(e)?"x":"y",$=!0),"y"!==G&&(at[2]+=t,K._vx.update(t,!0)),"x"!==G&&(lt[2]+=e,K._vy.update(e,!0)),s?j||(j=requestAnimationFrame(dt)):dt()},mt=function(t){if(!ht(t,1)){var e=(t=no(t,a)).clientX,n=t.clientY,i=e-K.x,o=n-K.y,s=K.isDragging;K.x=e,K.y=n,(s||(i||o)&&(Math.abs(K.startX-e)>=r||Math.abs(K.startY-n)>=r))&&(W=s?2:1,s||(K.isDragging=!0),pt(i,o))}},gt=K.onPress=function(t){ht(t,1)||t&&t.button||(K.axis=G=null,X.pause(),K.isPressed=!0,t=no(t),J=Q=0,K.startX=K.x=t.clientX,K.startY=K.y=t.clientY,K._vx.reset(),K._vy.reset(),Vi(A?i:st,Ri[1],mt,Z,!0),K.deltaX=K.deltaY=0,g&&g(K))},vt=K.onRelease=function(t){if(!ht(t,1)){Ui(A?i:st,Ri[1],mt,!0);var e=!isNaN(K.y-K.startY),r=K.isDragging,n=r&&(Math.abs(K.x-K.startX)>3||Math.abs(K.y-K.startY)>3),o=no(t);!n&&e&&(K._vx.reset(),K._vy.reset(),a&&H&&Ei.delayedCall(.08,(function(){if(Bi()-ct>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(st.createEvent){var e=st.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,ki,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),K.isDragging=K.isGesturing=K.isPressed=!1,l&&r&&!A&&X.restart(!0),W&&dt(),p&&r&&p(K),v&&v(K,n)}},yt=function(t){return t.touches&&t.touches.length>1&&(K.isGesturing=!0)&&O(t,K.isDragging)},wt=function(){return(K.isGesturing=!1)||F(K)},_t=function(t){if(!ht(t)){var e=tt(),r=et();ft((e-rt)*I,(r-nt)*I,1),rt=e,nt=r,l&&X.restart(!0)}},xt=function(t){if(!ht(t)){t=no(t,a),D&&(U=!0);var e=(1===t.deltaMode?o:2===t.deltaMode?ki.innerHeight:1)*h;ft(t.deltaX*e,t.deltaY*e,0),l&&!A&&X.restart(!0)}},bt=function(t){if(!ht(t)){var e=t.clientX,r=t.clientY,n=e-K.x,i=r-K.y;K.x=e,K.y=r,V=!0,l&&X.restart(!0),(n||i)&&pt(n,i)}},Tt=function(t){K.event=t,C(K)},Et=function(t){K.event=t,L(K)},St=function(t){return ht(t)||no(t,a)&&N(K)};X=K._dc=Ei.delayedCall(c||.25,(function(){K._vx.reset(),K._vy.reset(),X.pause(),l&&l(K)})).pause(),K.deltaX=K.deltaY=0,K._vx=ro(0,50,!0),K._vy=ro(0,50,!0),K.scrollX=tt,K.scrollY=et,K.isDragging=K.isGesturing=K.isPressed=!1,qi(this),K.enable=function(t){return K.isEnabled||(Vi(ot?st:i,"scroll",Ki),n.indexOf("scroll")>=0&&Vi(ot?st:i,"scroll",_t,Z,z),n.indexOf("wheel")>=0&&Vi(i,"wheel",xt,Z,z),(n.indexOf("touch")>=0&&Pi||n.indexOf("pointer")>=0)&&(Vi(i,Ri[0],gt,Z,z),Vi(st,Ri[2],vt),Vi(st,Ri[3],vt),H&&Vi(i,"click",ut,!0,!0),N&&Vi(i,"click",St),O&&Vi(st,"gesturestart",yt),F&&Vi(st,"gestureend",wt),C&&Vi(i,Ai+"enter",Tt),L&&Vi(i,Ai+"leave",Et),M&&Vi(i,Ai+"move",bt)),K.isEnabled=!0,K.isDragging=K.isGesturing=K.isPressed=V=W=!1,K._vx.reset(),K._vy.reset(),rt=tt(),nt=et(),t&&t.type&>(t),R&&R(K)),K},K.disable=function(){K.isEnabled&&(zi.filter((function(t){return t!==K&&Wi(t.target)})).length||Ui(ot?st:i,"scroll",Ki),K.isPressed&&(K._vx.reset(),K._vy.reset(),Ui(A?i:st,Ri[1],mt,!0)),Ui(ot?st:i,"scroll",_t,z),Ui(i,"wheel",xt,z),Ui(i,Ri[0],gt,z),Ui(st,Ri[2],vt),Ui(st,Ri[3],vt),Ui(i,"click",ut,!0),Ui(i,"click",St),Ui(st,"gesturestart",yt),Ui(st,"gestureend",wt),Ui(i,Ai+"enter",Tt),Ui(i,Ai+"leave",Et),Ui(i,Ai+"move",bt),K.isEnabled=K.isPressed=K.isDragging=!1,q&&q(K))},K.kill=K.revert=function(){K.disable();var t=zi.indexOf(K);t>=0&&zi.splice(t,1),Di===K&&(Di=0)},zi.push(K),A&&Wi(i)&&(Di=K),K.enable(d)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&Ti(e.prototype,r),t}();ao.version="3.13.0",ao.create=function(t){return new ao(t)},ao.register=so,ao.getAll=function(){return zi.slice()},ao.getById=function(t){return zi.filter((function(e){return e.vars.id===t}))[0]},Ni()&&Ei.registerPlugin(ao);var lo,co,uo,ho,fo,po,mo,go,vo,yo,wo,_o,xo,bo,To,Eo,So,ko,Co,Lo,Mo,Po,Ao,Oo,Fo,Do,Ro,qo,No,Io,zo,Ho,Yo,Bo,jo,Xo,Wo,Vo,Uo=1,$o=Date.now,Go=$o(),Ko=0,Jo=0,Qo=function(t,e,r){var n=ds(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Zo=function(t,e){return!e||ds(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},ts=function t(){return Jo&&requestAnimationFrame(t)},es=function(){return bo=1},rs=function(){return bo=0},ns=function(t){return t},is=function(t){return Math.round(1e5*t)/1e5||0},os=function(){return"undefined"!=typeof window},ss=function(){return lo||os()&&(lo=window.gsap)&&lo.registerPlugin&&lo},as=function(t){return!!~mo.indexOf(t)},ls=function(t){return("Height"===t?zo:uo["inner"+t])||fo["client"+t]||po["client"+t]},cs=function(t){return Xi(t,"getBoundingClientRect")||(as(t)?function(){return ba.width=uo.innerWidth,ba.height=zo,ba}:function(){return Rs(t)})},us=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()-cs(t)()[i]:as(t)?(fo[r]||po[r])-ls(n):t[r]-t["offset"+n])},hs=function(t,e){for(var r=0;r<Co.length;r+=3)(!e||~e.indexOf(Co[r+1]))&&t(Co[r],Co[r+1],Co[r+2])},ds=function(t){return"string"==typeof t},fs=function(t){return"function"==typeof t},ps=function(t){return"number"==typeof t},ms=function(t){return"object"==typeof t},gs=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},vs=function(t,e){if(t.enabled){var r=t._ctx?t._ctx.add((function(){return e(t)})):e(t);r&&r.totalTime&&(t.callbackAnimation=r)}},ys=Math.abs,ws="left",_s="right",xs="bottom",bs="width",Ts="height",Es="Right",Ss="Left",ks="Top",Cs="Bottom",Ls="padding",Ms="margin",Ps="Width",As="Height",Os="px",Fs=function(t){return uo.getComputedStyle(t)},Ds=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Rs=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==Fs(t)[To]&&lo.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect();return r&&r.progress(0).kill(),n},qs=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},Ns=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},Is=function(t){var e=lo.utils.snap(t),r=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return r?function(t,n,i){var o;if(void 0===i&&(i=.001),!n)return e(t);if(n>0){for(t-=i,o=0;o<r.length;o++)if(r[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)<i||o-r<0==n<0?o:e(n<0?r-t:r+t)}},zs=function(t,e,r,n){return r.split(",").forEach((function(r){return t(e,r,n)}))},Hs=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},Ys=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Bs=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},js={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Xs={toggleActions:"play",anticipatePin:0},Ws={top:0,left:0,center:.5,bottom:1,right:1},Vs=function(t,e){if(ds(t)){var r=t.indexOf("="),n=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in Ws?Ws[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Us=function(t,e,r,n,i,o,s,a){var l=i.startColor,c=i.endColor,u=i.fontSize,h=i.indent,d=i.fontWeight,f=ho.createElement("div"),p=as(r)||"fixed"===Xi(r,"pinType"),m=-1!==t.indexOf("scroller"),g=p?po:r,v=-1!==t.indexOf("start"),y=v?l:c,w="border-color:"+y+";font-size:"+u+";color:"+y+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return w+="position:"+((m||a)&&p?"fixed;":"absolute;"),(m||a||!p)&&(w+=(n===Zi?_s:xs)+":"+(o+parseFloat(h))+"px;"),s&&(w+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),f._isStart=v,f.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),f.style.cssText=w,f.innerText=e||0===e?t+"-"+e:t,g.children[0]?g.insertBefore(f,g.children[0]):g.appendChild(f),f._offset=f["offset"+n.op.d2],$s(f,0,n,v),f},$s=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+Ps]=1,i["border"+s+Ps]=0,i[r.p]=e+"px",lo.set(t,i)},Gs=[],Ks={},Js=function(){return $o()-Ko>34&&(jo||(jo=requestAnimationFrame(ma)))},Qs=function(){(!Ao||!Ao.isPressed||Ao.startX>po.clientWidth)&&(Hi.cache++,Ao?jo||(jo=requestAnimationFrame(ma)):ma(),Ko||ia("scrollStart"),Ko=$o())},Zs=function(){Do=uo.innerWidth,Fo=uo.innerHeight},ta=function(t){Hi.cache++,(!0===t||!xo&&!Po&&!ho.fullscreenElement&&!ho.webkitFullscreenElement&&(!Oo||Do!==uo.innerWidth||Math.abs(uo.innerHeight-Fo)>.25*uo.innerHeight))&&go.restart(!0)},ea={},ra=[],na=function t(){return Ys(Ma,"scrollEnd",t)||da(!0)},ia=function(t){return ea[t]&&ea[t].map((function(t){return t()}))||ra},oa=[],sa=function(t){for(var e=0;e<oa.length;e+=5)(!t||oa[e+4]&&oa[e+4].query===t)&&(oa[e].style.cssText=oa[e+1],oa[e].getBBox&&oa[e].setAttribute("transform",oa[e+2]||""),oa[e+3].uncache=1)},aa=function(t,e){var r;for(Eo=0;Eo<Gs.length;Eo++)!(r=Gs[Eo])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));Ho=!0,e&&sa(e),e||ia("revert")},la=function(t,e){Hi.cache++,(e||!Xo)&&Hi.forEach((function(t){return fs(t)&&t.cacheID++&&(t.rec=0)})),ds(t)&&(uo.history.scrollRestoration=No=t)},ca=0,ua=function(){po.appendChild(Io),zo=!Ao&&Io.offsetHeight||uo.innerHeight,po.removeChild(Io)},ha=function(t){return vo(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach((function(e){return e.style.display=t?"none":"block"}))},da=function(t,e){if(fo=ho.documentElement,po=ho.body,mo=[uo,ho,fo,po],!Ko||t||Ho){ua(),Xo=Ma.isRefreshing=!0,Hi.forEach((function(t){return fs(t)&&++t.cacheID&&(t.rec=t())}));var r=ia("refreshInit");Lo&&Ma.sort(),e||aa(),Hi.forEach((function(t){fs(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))})),Gs.slice(0).forEach((function(t){return t.refresh()})),Ho=!1,Gs.forEach((function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",r=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-r),t.refresh()}})),Yo=1,ha(!0),Gs.forEach((function(t){var e=us(t.scroller,t._dir),r="max"===t.vars.end||t._endClamp&&t.end>e,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)})),ha(!1),Yo=0,r.forEach((function(t){return t&&t.render&&t.render(-1)})),Hi.forEach((function(t){fs(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),la(No,1),go.pause(),ca++,Xo=2,ma(2),Gs.forEach((function(t){return fs(t.vars.onRefresh)&&t.vars.onRefresh(t)})),Xo=Ma.isRefreshing=!1,ia("refresh")}else Hs(Ma,"scrollEnd",na)},fa=0,pa=1,ma=function(t){if(2===t||!Xo&&!Ho){Ma.isUpdating=!0,Vo&&Vo.update(0);var e=Gs.length,r=$o(),n=r-Go>=50,i=e&&Gs[0].scroll();if(pa=fa>i?-1:1,Xo||(fa=i),n&&(Ko&&!bo&&r-Ko>200&&(Ko=0,ia("scrollEnd")),wo=Go,Go=r),pa<0){for(Eo=e;Eo-- >0;)Gs[Eo]&&Gs[Eo].update(0,n);pa=1}else for(Eo=0;Eo<e;Eo++)Gs[Eo]&&Gs[Eo].update(0,n);Ma.isUpdating=!1}jo=0},ga=[ws,"top",xs,_s,Ms+Cs,Ms+Es,Ms+ks,Ms+Ss,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],va=ga.concat([bs,Ts,"boxSizing","max"+Ps,"max"+As,"position",Ms,Ls,Ls+ks,Ls+Es,Ls+Cs,Ls+Ss]),ya=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,o=ga.length,s=e.style,a=t.style;o--;)s[i=ga[o]]=r[i];s.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(s.display="inline-block"),a[xs]=a[_s]="auto",s.flexBasis=r.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[bs]=qs(t,Qi)+Os,s[Ts]=qs(t,Zi)+Os,s[Ls]=a[Ms]=a.top=a[ws]="0",_a(n),a[bs]=a["max"+Ps]=r[bs],a[Ts]=a["max"+As]=r[Ts],a[Ls]=r[Ls],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},wa=/([A-Z])/g,_a=function(t){if(t){var e,r,n=t.t.style,i=t.length,o=0;for((t.t._gsap||lo.core.getCache(t.t)).uncache=1;o<i;o+=2)r=t[o+1],e=t[o],r?n[e]=r:n[e]&&n.removeProperty(e.replace(wa,"-$1").toLowerCase())}},xa=function(t){for(var e=va.length,r=t.style,n=[],i=0;i<e;i++)n.push(va[i],r[va[i]]);return n.t=t,n},ba={left:0,top:0},Ta=function(t,e,r,n,i,o,s,a,l,c,u,h,d,f){fs(t)&&(t=t(a)),ds(t)&&"max"===t.substr(0,3)&&(t=h+("="===t.charAt(4)?Vs("0"+t.substr(3),r):0));var p,m,g,v=d?d.time():0;if(d&&d.seek(0),isNaN(t)||(t=+t),ps(t))d&&(t=lo.utils.mapRange(d.scrollTrigger.start,d.scrollTrigger.end,0,h,t)),s&&$s(s,r,n,!0);else{fs(e)&&(e=e(a));var y,w,_,x,b=(t||"0").split(" ");g=to(e,a)||po,(y=Rs(g)||{})&&(y.left||y.top)||"none"!==Fs(g).display||(x=g.style.display,g.style.display="block",y=Rs(g),x?g.style.display=x:g.style.removeProperty("display")),w=Vs(b[0],y[n.d]),_=Vs(b[1]||"0",r),t=y[n.p]-l[n.p]-c+w+i-_,s&&$s(s,_,n,r-_<20||s._isStart&&_>20),r-=r-_}if(f&&(a[f]=t||-.001,t<0&&(t=0)),o){var T=t+r,E=o._isStart;p="scroll"+n.d2,$s(o,T,n,E&&T>20||!E&&(u?Math.max(po[p],fo[p]):o.parentNode[p])<=T+1),u&&(l=Rs(s),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+Os))}return d&&g&&(p=Rs(g),d.seek(h),m=Rs(g),d._caScrollDist=p[n.p]-m[n.p],t=t/d._caScrollDist*h),d&&d.seek(v),d?t:Math.round(t)},Ea=/(webkit|moz|length|cssText|inset)/i,Sa=function(t,e,r,n){if(t.parentNode!==e){var i,o,s=t.style;if(e===po){for(i in t._stOrig=s.cssText,o=Fs(t))+i||Ea.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;lo.core.getCache(t).uncache=1,e.appendChild(t)}},ka=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)}},Ca=function(t,e,r){var n={};n[e.p]="+="+r,lo.set(t,n)},La=function(t,e){var r=eo(t,e),n="_scroll"+e.p2,i=function e(i,o,s,a,l){var c=e.tween,u=o.onComplete,h={};s=s||r();var d=ka(r,s,(function(){c.kill(),e.tween=0}));return l=a&&l||0,a=a||i-s,c&&c.kill(),o[n]=i,o.inherit=!1,o.modifiers=h,h[n]=function(){return d(s+a*c.ratio+l*c.ratio*c.ratio)},o.onUpdate=function(){Hi.cache++,e.tween&&ma()},o.onComplete=function(){e.tween=0,u&&u.call(c)},c=e.tween=lo.to(t,o)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Hs(t,"wheel",r.wheelHandler),Ma.isTouch&&Hs(t,"touchmove",r.wheelHandler),i},Ma=function(){function t(e,r){co||t.register(lo)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),qo(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Jo){var n,i,o,s,a,l,c,u,h,d,f,p,m,g,v,y,w,_,x,b,T,E,S,k,C,L,M,P,A,O,F,D,R,q,N,I,z,H,Y,B,j,X,W=e=Ds(ds(e)||ps(e)||e.nodeType?{trigger:e}:e,Xs),V=W.onUpdate,U=W.toggleClass,$=W.id,G=W.onToggle,K=W.onRefresh,J=W.scrub,Q=W.trigger,Z=W.pin,tt=W.pinSpacing,et=W.invalidateOnRefresh,rt=W.anticipatePin,nt=W.onScrubComplete,it=W.onSnapComplete,ot=W.once,st=W.snap,at=W.pinReparent,lt=W.pinSpacer,ct=W.containerAnimation,ut=W.fastScrollEnd,ht=W.preventOverlaps,dt=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Qi:Zi,ft=!J&&0!==J,pt=to(e.scroller||uo),mt=lo.core.getCache(pt),gt=as(pt),vt="fixed"===("pinType"in e?e.pinType:Xi(pt,"pinType")||gt&&"fixed"),yt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],wt=ft&&e.toggleActions.split(" "),_t="markers"in e?e.markers:Xs.markers,xt=gt?0:parseFloat(Fs(pt)["border"+dt.p2+Ps])||0,bt=this,Tt=e.onRefreshInit&&function(){return e.onRefreshInit(bt)},Et=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?ls(i):t["client"+i])||0}}(pt,gt,dt),St=function(t,e){return!e||~Yi.indexOf(t)?cs(t):function(){return ba}}(pt,gt),kt=0,Ct=0,Lt=0,Mt=eo(pt,dt);if(bt._startClamp=bt._endClamp=!1,bt._dir=dt,rt*=45,bt.scroller=pt,bt.scroll=ct?ct.time.bind(ct):Mt,s=Mt(),bt.vars=e,r=r||e.animation,"refreshPriority"in e&&(Lo=1,-9999===e.refreshPriority&&(Vo=bt)),mt.tweenScroll=mt.tweenScroll||{top:La(pt,Zi),left:La(pt,Qi)},bt.tweenTo=n=mt.tweenScroll[dt.p],bt.scrubDuration=function(t){(R=ps(t)&&t)?D?D.duration(t):D=lo.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:R,paused:!0,onComplete:function(){return nt&&nt(bt)}}):(D&&D.progress(1).kill(),D=0)},r&&(r.vars.lazy=!1,r._initted&&!bt.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),bt.animation=r.pause(),r.scrollTrigger=bt,bt.scrubDuration(J),O=0,$||($=r.vars.id)),st&&(ms(st)&&!st.push||(st={snapTo:st}),"scrollBehavior"in po.style&&lo.set(gt?[po,fo]:pt,{scrollBehavior:"auto"}),Hi.forEach((function(t){return fs(t)&&t.target===(gt?ho.scrollingElement||fo:pt)&&(t.smooth=!1)})),o=fs(st.snapTo)?st.snapTo:"labels"===st.snapTo?function(t){return function(e){return lo.utils.snap(Ns(t),e)}}(r):"labelsDirectional"===st.snapTo?(B=r,function(t,e){return Is(Ns(B))(t,e.direction)}):!1!==st.directional?function(t,e){return Is(st.snapTo)(t,$o()-Ct<500?0:e.direction)}:lo.utils.snap(st.snapTo),q=st.duration||{min:.1,max:2},q=ms(q)?yo(q.min,q.max):yo(q,q),N=lo.delayedCall(st.delay||R/2||.1,(function(){var t=Mt(),e=$o()-Ct<500,i=n.tween;if(!(e||Math.abs(bt.getVelocity())<10)||i||bo||kt===t)bt.isActive&&kt!==t&&N.restart(!0);else{var s,a,u=(t-l)/g,h=r&&!ft?r.totalProgress():u,d=e?0:(h-F)/($o()-wo)*1e3||0,f=lo.utils.clamp(-u,1-u,ys(d/2)*d/.185),p=u+(!1===st.inertia?0:f),m=st,v=m.onStart,y=m.onInterrupt,w=m.onComplete;if(s=o(p,bt),ps(s)||(s=p),a=Math.max(0,Math.round(l+s*g)),t<=c&&t>=l&&a!==t){if(i&&!i._initted&&i.data<=ys(a-t))return;!1===st.inertia&&(f=s-u),n(a,{duration:q(ys(.185*Math.max(ys(p-h),ys(s-h))/d/.05||0)),ease:st.ease||"power3",data:ys(a-t),onInterrupt:function(){return N.restart(!0)&&y&&y(bt)},onComplete:function(){bt.update(),kt=Mt(),r&&!ft&&(D?D.resetTo("totalProgress",s,r._tTime/r._tDur):r.progress(s)),O=F=r&&!ft?r.totalProgress():bt.progress,it&&it(bt),w&&w(bt)}},t,f*g,a-t-f*g),v&&v(bt,n.tween)}}})).pause()),$&&(Ks[$]=bt),(Y=(Q=bt.trigger=to(Q||!0!==Z&&Z))&&Q._gsap&&Q._gsap.stRevert)&&(Y=Y(bt)),Z=!0===Z?Q:to(Z),ds(U)&&(U={targets:Q,className:U}),Z&&(!1===tt||tt===Ms||(tt=!(!tt&&Z.parentNode&&Z.parentNode.style&&"flex"===Fs(Z.parentNode).display)&&Ls),bt.pin=Z,(i=lo.core.getCache(Z)).spacer?v=i.pinState:(lt&&((lt=to(lt))&&!lt.nodeType&&(lt=lt.current||lt.nativeElement),i.spacerIsNative=!!lt,lt&&(i.spacerState=xa(lt))),i.spacer=_=lt||ho.createElement("div"),_.classList.add("pin-spacer"),$&&_.classList.add("pin-spacer-"+$),i.pinState=v=xa(Z)),!1!==e.force3D&&lo.set(Z,{force3D:!0}),bt.spacer=_=i.spacer,A=Fs(Z),k=A[tt+dt.os2],b=lo.getProperty(Z),T=lo.quickSetter(Z,dt.a,Os),ya(Z,_,A),w=xa(Z)),_t){p=ms(_t)?Ds(_t,js):js,d=Us("scroller-start",$,pt,dt,p,0),f=Us("scroller-end",$,pt,dt,p,0,d),x=d["offset"+dt.op.d2];var Pt=to(Xi(pt,"content")||pt);u=this.markerStart=Us("start",$,Pt,dt,p,x,0,ct),h=this.markerEnd=Us("end",$,Pt,dt,p,x,0,ct),ct&&(H=lo.quickSetter([u,h],dt.a,Os)),vt||Yi.length&&!0===Xi(pt,"fixedMarkers")||(X=Fs(j=gt?po:pt).position,j.style.position="absolute"===X||"fixed"===X?X:"relative",lo.set([d,f],{force3D:!0}),L=lo.quickSetter(d,dt.a,Os),P=lo.quickSetter(f,dt.a,Os))}if(ct){var At=ct.vars.onUpdate,Ot=ct.vars.onUpdateParams;ct.eventCallback("onUpdate",(function(){bt.update(0,0,1),At&&At.apply(ct,Ot||[])}))}if(bt.previous=function(){return Gs[Gs.indexOf(bt)-1]},bt.next=function(){return Gs[Gs.indexOf(bt)+1]},bt.revert=function(t,e){if(!e)return bt.kill(!0);var n=!1!==t||!bt.enabled,i=xo;n!==bt.isReverted&&(n&&(I=Math.max(Mt(),bt.scroll.rec||0),Lt=bt.progress,z=r&&r.progress()),u&&[u,h,d,f].forEach((function(t){return t.style.display=n?"none":"block"})),n&&(xo=bt,bt.update(n)),!Z||at&&bt.isActive||(n?function(t,e,r){_a(r);var n=t._gsap;if(n.spacerIsNative)_a(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(Z,_,v):ya(Z,_,Fs(Z),C)),n||bt.update(n),xo=i,bt.isReverted=n)},bt.refresh=function(i,o,p,x){if(!xo&&bt.enabled||o)if(Z&&i&&Ko)Hs(t,"scrollEnd",na);else{!Xo&&Tt&&Tt(bt),xo=bt,n.tween&&!p&&(n.tween.kill(),n.tween=0),D&&D.pause(),et&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren&&r.getChildren(!0,!0,!1).forEach((function(t){return t.vars.immediateRender&&t.render(0,!0,!0)}))),bt.isReverted||bt.revert(!0,!0),bt._subPinOffset=!1;var T,k,L,P,A,O,F,R,q,H,Y,B,j,X=Et(),W=St(),V=ct?ct.duration():us(pt,dt),U=g<=.01||!g,$=0,G=x||0,J=ms(p)?p.end:e.end,rt=e.endTrigger||Q,nt=ms(p)?p.start:e.start||(0!==e.start&&Q?Z?"0 0":"0 100%":0),it=bt.pinnedContainer=e.pinnedContainer&&to(e.pinnedContainer,bt),ot=Q&&Math.max(0,Gs.indexOf(bt))||0,st=ot;for(_t&&ms(p)&&(B=lo.getProperty(d,dt.p),j=lo.getProperty(f,dt.p));st-- >0;)(O=Gs[st]).end||O.refresh(0,1)||(xo=bt),!(F=O.pin)||F!==Q&&F!==Z&&F!==it||O.isReverted||(H||(H=[]),H.unshift(O),O.revert(!0,!0)),O!==Gs[st]&&(ot--,st--);for(fs(nt)&&(nt=nt(bt)),nt=Qo(nt,"start",bt),l=Ta(nt,Q,X,dt,Mt(),u,d,bt,W,xt,vt,V,ct,bt._startClamp&&"_startClamp")||(Z?-.001:0),fs(J)&&(J=J(bt)),ds(J)&&!J.indexOf("+=")&&(~J.indexOf(" ")?J=(ds(nt)?nt.split(" ")[0]:"")+J:($=Vs(J.substr(2),X),J=ds(nt)?nt:(ct?lo.utils.mapRange(0,ct.duration(),ct.scrollTrigger.start,ct.scrollTrigger.end,l):l)+$,rt=Q)),J=Qo(J,"end",bt),c=Math.max(l,Ta(J||(rt?"100% 0":V),rt,X,dt,Mt()+$,h,f,bt,W,xt,vt,V,ct,bt._endClamp&&"_endClamp"))||-.001,$=0,st=ot;st--;)(F=(O=Gs[st]).pin)&&O.start-O._pinPush<=l&&!ct&&O.end>0&&(T=O.end-(bt._startClamp?Math.max(0,O.start):O.start),(F===Q&&O.start-O._pinPush<l||F===it)&&isNaN(nt)&&($+=T*(1-O.progress)),F===Z&&(G+=T));if(l+=$,c+=$,bt._startClamp&&(bt._startClamp+=$),bt._endClamp&&!Xo&&(bt._endClamp=c||-.001,c=Math.min(c,us(pt,dt))),g=c-l||(l-=.01)&&.001,U&&(Lt=lo.utils.clamp(0,1,lo.utils.normalize(l,c,I))),bt._pinPush=G,u&&$&&((T={})[dt.a]="+="+$,it&&(T[dt.p]="-="+Mt()),lo.set([u,h],T)),!Z||Yo&&bt.end>=us(pt,dt)){if(Q&&Mt()&&!ct)for(k=Q.parentNode;k&&k!==po;)k._pinOffset&&(l-=k._pinOffset,c-=k._pinOffset),k=k.parentNode}else T=Fs(Z),P=dt===Zi,L=Mt(),E=parseFloat(b(dt.a))+G,!V&&c>1&&(Y={style:Y=(gt?ho.scrollingElement||fo:pt).style,value:Y["overflow"+dt.a.toUpperCase()]},gt&&"scroll"!==Fs(po)["overflow"+dt.a.toUpperCase()]&&(Y.style["overflow"+dt.a.toUpperCase()]="scroll")),ya(Z,_,T),w=xa(Z),k=Rs(Z,!0),R=vt&&eo(pt,P?Qi:Zi)(),tt?((C=[tt+dt.os2,g+G+Os]).t=_,(st=tt===Ls?qs(Z,dt)+g+G:0)&&(C.push(dt.d,st+Os),"auto"!==_.style.flexBasis&&(_.style.flexBasis=st+Os)),_a(C),it&&Gs.forEach((function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),vt&&Mt(I)):(st=qs(Z,dt))&&"auto"!==_.style.flexBasis&&(_.style.flexBasis=st+Os),vt&&((A={top:k.top+(P?L-l:R)+Os,left:k.left+(P?R:L-l)+Os,boxSizing:"border-box",position:"fixed"})[bs]=A["max"+Ps]=Math.ceil(k.width)+Os,A[Ts]=A["max"+As]=Math.ceil(k.height)+Os,A[Ms]=A[Ms+ks]=A[Ms+Es]=A[Ms+Cs]=A[Ms+Ss]="0",A[Ls]=T[Ls],A[Ls+ks]=T[Ls+ks],A[Ls+Es]=T[Ls+Es],A[Ls+Cs]=T[Ls+Cs],A[Ls+Ss]=T[Ls+Ss],y=function(t,e,r){for(var n,i=[],o=t.length,s=r?8:0;s<o;s+=2)n=t[s],i.push(n,n in e?e[n]:t[s+1]);return i.t=t.t,i}(v,A,at),Xo&&Mt(0)),r?(q=r._initted,Mo(1),r.render(r.duration(),!0,!0),S=b(dt.a)-E+g+G,M=Math.abs(g-S)>1,vt&&M&&y.splice(y.length-2,2),r.render(0,!0,!0),q||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),Mo(0)):S=g,Y&&(Y.value?Y.style["overflow"+dt.a.toUpperCase()]=Y.value:Y.style.removeProperty("overflow-"+dt.a));H&&H.forEach((function(t){return t.revert(!1,!0)})),bt.start=l,bt.end=c,s=a=Xo?I:Mt(),ct||Xo||(s<I&&Mt(I),bt.scroll.rec=0),bt.revert(!1,!0),Ct=$o(),N&&(kt=-1,N.restart(!0)),xo=0,r&&ft&&(r._initted||z)&&r.progress()!==z&&r.progress(z||0,!0).render(r.time(),!0,!0),(U||Lt!==bt.progress||ct||et||r&&!r._initted)&&(r&&!ft&&(r._initted||Lt||!1!==r.vars.immediateRender)&&r.totalProgress(ct&&l<-.001&&!Lt?lo.utils.normalize(l,c,0):Lt,!0),bt.progress=U||(s-l)/g===Lt?0:Lt),Z&&tt&&(_._pinOffset=Math.round(bt.progress*S)),D&&D.invalidate(),isNaN(B)||(B-=lo.getProperty(d,dt.p),j-=lo.getProperty(f,dt.p),Ca(d,dt,B),Ca(u,dt,B-(x||0)),Ca(f,dt,j),Ca(h,dt,j-(x||0))),U&&!Xo&&bt.update(),!K||Xo||m||(m=!0,K(bt),m=!1)}},bt.getVelocity=function(){return(Mt()-a)/($o()-wo)*1e3||0},bt.endAnimation=function(){gs(bt.callbackAnimation),r&&(D?D.progress(1):r.paused()?ft||gs(r,bt.direction<0,1):gs(r,r.reversed()))},bt.labelToScroll=function(t){return r&&r.labels&&(l||bt.refresh()||l)+r.labels[t]/r.duration()*g||0},bt.getTrailing=function(t){var e=Gs.indexOf(bt),r=bt.direction>0?Gs.slice(0,e).reverse():Gs.slice(e+1);return(ds(t)?r.filter((function(e){return e.vars.preventOverlaps===t})):r).filter((function(t){return bt.direction>0?t.end<=l:t.start>=c}))},bt.update=function(t,e,i){if(!ct||i||t){var o,u,h,f,p,m,v,x=!0===Xo?I:bt.scroll(),b=t?0:(x-l)/g,C=b<0?0:b>1?1:b||0,A=bt.progress;if(e&&(a=s,s=ct?Mt():x,st&&(F=O,O=r&&!ft?r.totalProgress():C)),rt&&Z&&!xo&&!Uo&&Ko&&(!C&&l<x+(x-a)/($o()-wo)*rt?C=1e-4:1===C&&c>x+(x-a)/($o()-wo)*rt&&(C=.9999)),C!==A&&bt.enabled){if(f=(p=(o=bt.isActive=!!C&&C<1)!=(!!A&&A<1))||!!C!=!!A,bt.direction=C>A?1:-1,bt.progress=C,f&&!xo&&(u=C&&!A?0:1===C?1:1===A?2:3,ft&&(h=!p&&"none"!==wt[u+1]&&wt[u+1]||wt[u],v=r&&("complete"===h||"reset"===h||h in r))),ht&&(p||v)&&(v||J||!r)&&(fs(ht)?ht(bt):bt.getTrailing(ht).forEach((function(t){return t.endAnimation()}))),ft||(!D||xo||Uo?r&&r.totalProgress(C,!(!xo||!Ct&&!t)):(D._dp._time-D._start!==D._time&&D.render(D._dp._time-D._start),D.resetTo?D.resetTo("totalProgress",C,r._tTime/r._tDur):(D.vars.totalProgress=C,D.invalidate().restart()))),Z)if(t&&tt&&(_.style[tt+dt.os2]=k),vt){if(f){if(m=!t&&C>A&&c+1>x&&x+1>=us(pt,dt),at)if(t||!o&&!m)Sa(Z,_);else{var R=Rs(Z,!0),q=x-l;Sa(Z,po,R.top+(dt===Zi?q:0)+Os,R.left+(dt===Zi?0:q)+Os)}_a(o||m?y:w),M&&C<1&&o||T(E+(1!==C||m?0:S))}}else T(is(E+S*C));st&&!n.tween&&!xo&&!Uo&&N.restart(!0),U&&(p||ot&&C&&(C<1||!Bo))&&vo(U.targets).forEach((function(t){return t.classList[o||ot?"add":"remove"](U.className)})),V&&!ft&&!t&&V(bt),f&&!xo?(ft&&(v&&("complete"===h?r.pause().totalProgress(1):"reset"===h?r.restart(!0).pause():"restart"===h?r.restart(!0):r[h]()),V&&V(bt)),!p&&Bo||(G&&p&&vs(bt,G),yt[u]&&vs(bt,yt[u]),ot&&(1===C?bt.kill(!1,1):yt[u]=0),p||yt[u=1===C?1:3]&&vs(bt,yt[u])),ut&&!o&&Math.abs(bt.getVelocity())>(ps(ut)?ut:2500)&&(gs(bt.callbackAnimation),D?D.progress(1):gs(r,"reverse"===h?1:!C,1))):ft&&V&&!xo&&V(bt)}if(P){var z=ct?x/ct.duration()*(ct._caScrollDist||0):x;L(z+(d._isFlipped?1:0)),P(z)}H&&H(-x/ct.duration()*(ct._caScrollDist||0))}},bt.enable=function(e,r){bt.enabled||(bt.enabled=!0,Hs(pt,"resize",ta),gt||Hs(pt,"scroll",Qs),Tt&&Hs(t,"refreshInit",Tt),!1!==e&&(bt.progress=Lt=0,s=a=kt=Mt()),!1!==r&&bt.refresh())},bt.getTween=function(t){return t&&n?n.tween:D},bt.setPositions=function(t,e,r,n){if(ct){var i=ct.scrollTrigger,o=ct.duration(),s=i.end-i.start;t=i.start+s*t/o,e=i.start+s*e/o}bt.refresh(!1,!1,{start:Zo(t,r&&!!bt._startClamp),end:Zo(e,r&&!!bt._endClamp)},n),bt.update()},bt.adjustPinSpacing=function(t){if(C&&t){var e=C.indexOf(dt.d)+1;C[e]=parseFloat(C[e])+t+Os,C[1]=parseFloat(C[1])+t+Os,_a(C)}},bt.disable=function(e,r){if(bt.enabled&&(!1!==e&&bt.revert(!0,!0),bt.enabled=bt.isActive=!1,r||D&&D.pause(),I=0,i&&(i.uncache=1),Tt&&Ys(t,"refreshInit",Tt),N&&(N.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!gt)){for(var o=Gs.length;o--;)if(Gs[o].scroller===pt&&Gs[o]!==bt)return;Ys(pt,"resize",ta),gt||Ys(pt,"scroll",Qs)}},bt.kill=function(t,n){bt.disable(t,n),D&&!n&&D.kill(),$&&delete Ks[$];var o=Gs.indexOf(bt);o>=0&&Gs.splice(o,1),o===Eo&&pa>0&&Eo--,o=0,Gs.forEach((function(t){return t.scroller===bt.scroller&&(o=1)})),o||Xo||(bt.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),u&&[u,h,d,f].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),Vo===bt&&(Vo=0),Z&&(i&&(i.uncache=1),o=0,Gs.forEach((function(t){return t.pin===Z&&o++})),o||(i.spacer=0)),e.onKill&&e.onKill(bt)},Gs.push(bt),bt.enable(!1,!1),Y&&Y(bt),r&&r.add&&!g){var Ft=bt.update;bt.update=function(){bt.update=Ft,Hi.cache++,l||c||bt.refresh()},lo.delayedCall(.01,bt.update),g=.01,l=c=0}else bt.refresh();Z&&function(){if(Wo!==ca){var t=Wo=ca;requestAnimationFrame((function(){return t===ca&&da(!0)}))}}()}else this.update=this.refresh=this.kill=ns},t.register=function(e){return co||(lo=e||ss(),os()&&window.document&&t.enable(),co=Jo),co},t.defaults=function(t){if(t)for(var e in t)Xs[e]=t[e];return Xs},t.disable=function(t,e){Jo=0,Gs.forEach((function(r){return r[e?"kill":"disable"](t)})),Ys(uo,"wheel",Qs),Ys(ho,"scroll",Qs),clearInterval(_o),Ys(ho,"touchcancel",ns),Ys(po,"touchstart",ns),zs(Ys,ho,"pointerdown,touchstart,mousedown",es),zs(Ys,ho,"pointerup,touchend,mouseup",rs),go.kill(),hs(Ys);for(var r=0;r<Hi.length;r+=3)Bs(Ys,Hi[r],Hi[r+1]),Bs(Ys,Hi[r],Hi[r+2])},t.enable=function(){if(uo=window,ho=document,fo=ho.documentElement,po=ho.body,lo&&(vo=lo.utils.toArray,yo=lo.utils.clamp,qo=lo.core.context||ns,Mo=lo.core.suppressOverwrites||ns,No=uo.history.scrollRestoration||"auto",fa=uo.pageYOffset||0,lo.core.globals("ScrollTrigger",t),po)){Jo=1,(Io=document.createElement("div")).style.height="100vh",Io.style.position="absolute",ua(),ts(),ao.register(lo),t.isTouch=ao.isTouch,Ro=ao.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Oo=1===ao.isTouch,Hs(uo,"wheel",Qs),mo=[uo,ho,fo,po],lo.matchMedia?(t.matchMedia=function(t){var e,r=lo.matchMedia();for(e in t)r.add(e,t[e]);return r},lo.addEventListener("matchMediaInit",(function(){return aa()})),lo.addEventListener("matchMediaRevert",(function(){return sa()})),lo.addEventListener("matchMedia",(function(){da(0,1),ia("matchMedia")})),lo.matchMedia().add("(orientation: portrait)",(function(){return Zs(),Zs}))):console.warn("Requires GSAP 3.11.0 or later"),Zs(),Hs(ho,"scroll",Qs);var e,r,n=po.hasAttribute("style"),i=po.style,o=i.borderTopStyle,s=lo.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=Rs(po),Zi.m=Math.round(e.top+Zi.sc())||0,Qi.m=Math.round(e.left+Qi.sc())||0,o?i.borderTopStyle=o:i.removeProperty("border-top-style"),n||(po.setAttribute("style",""),po.removeAttribute("style")),_o=setInterval(Js,250),lo.delayedCall(.5,(function(){return Uo=0})),Hs(ho,"touchcancel",ns),Hs(po,"touchstart",ns),zs(Hs,ho,"pointerdown,touchstart,mousedown",es),zs(Hs,ho,"pointerup,touchend,mouseup",rs),To=lo.utils.checkPrefix("transform"),va.push(To),co=$o(),go=lo.delayedCall(.2,da).pause(),Co=[ho,"visibilitychange",function(){var t=uo.innerWidth,e=uo.innerHeight;ho.hidden?(So=t,ko=e):So===t&&ko===e||ta()},ho,"DOMContentLoaded",da,uo,"load",da,uo,"resize",ta],hs(Hs),Gs.forEach((function(t){return t.enable(0,1)})),r=0;r<Hi.length;r+=3)Bs(Ys,Hi[r],Hi[r+1]),Bs(Ys,Hi[r],Hi[r+2])}},t.config=function(e){"limitCallbacks"in e&&(Bo=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(_o)||(_o=r)&&setInterval(Js,r),"ignoreMobileResize"in e&&(Oo=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(hs(Ys)||hs(Hs,e.autoRefreshEvents||"none"),Po=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=to(t),n=Hi.indexOf(r),i=as(r);~n&&Hi.splice(n,i?6:2),e&&(i?Yi.unshift(uo,e,po,e,fo,e):Yi.unshift(r,e))},t.clearMatchMedia=function(t){Gs.forEach((function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)}))},t.isInViewport=function(t,e,r){var n=(ds(t)?to(t):t).getBoundingClientRect(),i=n[r?bs:Ts]*e||0;return r?n.right-i>0&&n.left+i<uo.innerWidth:n.bottom-i>0&&n.top+i<uo.innerHeight},t.positionInViewport=function(t,e,r){ds(t)&&(t=to(t));var n=t.getBoundingClientRect(),i=n[r?bs:Ts],o=null==e?i/2:e in Ws?Ws[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+o)/uo.innerWidth:(n.top+o)/uo.innerHeight},t.killAll=function(t){if(Gs.slice(0).forEach((function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()})),!0!==t){var e=ea.killAll||[];ea={},e.forEach((function(t){return t()}))}},t}();Ma.version="3.13.0",Ma.saveStyles=function(t){return t?vo(t).forEach((function(t){if(t&&t.style){var e=oa.indexOf(t);e>=0&&oa.splice(e,5),oa.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),lo.core.getCache(t),qo())}})):oa},Ma.revert=function(t,e){return aa(!t,e)},Ma.create=function(t,e){return new Ma(t,e)},Ma.refresh=function(t){return t?ta(!0):(co||Ma.register())&&da(!0)},Ma.update=function(t){return++Hi.cache&&ma(!0===t?2:0)},Ma.clearScrollMemory=la,Ma.maxScroll=function(t,e){return us(t,e?Qi:Zi)},Ma.getScrollFunc=function(t,e){return eo(to(t),e?Qi:Zi)},Ma.getById=function(t){return Ks[t]},Ma.getAll=function(){return Gs.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},Ma.isScrolling=function(){return!!Ko},Ma.snapDirectional=Is,Ma.addEventListener=function(t,e){var r=ea[t]||(ea[t]=[]);~r.indexOf(e)||r.push(e)},Ma.removeEventListener=function(t,e){var r=ea[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},Ma.batch=function(t,e){var r,n=[],i={},o=e.interval||.016,s=e.batchMax||1e9,a=function(t,e){var r=[],n=[],i=lo.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)&&fs(e[r])&&"onRefreshInit"!==r?a(0,e[r]):e[r];return fs(s)&&(s=s(),Hs(Ma,"refresh",(function(){return s=e.batchMax()}))),vo(t).forEach((function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(Ma.create(e))})),n};var Pa,Aa=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},Oa=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(ao.isTouch?" pinch-zoom":""):"none",e===fo&&t(po,r)},Fa={auto:1,scroll:1},Da=function(t){var e,r=t.event,n=t.target,i=t.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,s=o._gsap||lo.core.getCache(o),a=$o();if(!s._isScrollT||a-s._isScrollT>2e3){for(;o&&o!==po&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!Fa[(e=Fs(o)).overflowY]&&!Fa[e.overflowX]);)o=o.parentNode;s._isScroll=o&&o!==n&&!as(o)&&(Fa[(e=Fs(o)).overflowY]||Fa[e.overflowX]),s._isScrollT=a}(s._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},Ra=function(t,e,r,n){return ao.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&Da,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&Hs(ho,ao.eventTypes[0],Na,!1,!0)},onDisable:function(){return Ys(ho,ao.eventTypes[0],Na,!0)}})},qa=/(input|label|select|textarea)/i,Na=function(t){var e=qa.test(t.target.tagName);(e||Pa)&&(t._gsapAllow=!0,Pa=e)};Ma.sort=function(t){if(fs(t))return Gs.sort(t);var e=uo.pageYOffset||0;return Ma.getAll().forEach((function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+uo.innerHeight})),Gs.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+(t.vars.containerAnimation?1e6:t._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},Ma.observe=function(t){return new ao(t)},Ma.normalizeScroll=function(t){if(void 0===t)return Ao;if(!0===t&&Ao)return Ao.enable();if(!1===t)return Ao&&Ao.kill(),void(Ao=t);var e=t instanceof ao?t:function(t){ms(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,r,n,i,o,s,a,l,c=t,u=c.normalizeScrollX,h=c.momentum,d=c.allowNestedScroll,f=c.onRelease,p=to(t.target)||fo,m=lo.core.globals().ScrollSmoother,g=m&&m.get(),v=Ro&&(t.content&&to(t.content)||g&&!1!==t.content&&!g.smooth()&&g.content()),y=eo(p,Zi),w=eo(p,Qi),_=1,x=(ao.isTouch&&uo.visualVie
vendor: 6,762 bytes, line 2
2wport?uo.visualViewport.scale*uo.visualViewport.width:uo.outerWidth)/uo.innerWidth,b=0,T=fs(h)?function(){return h(e)}:function(){return h||2.8},E=Ra(p,t.type,!0,d),S=function(){return i=!1},k=ns,C=ns,L=function(){r=us(p,Zi),C=yo(Ro?1:0,r),u&&(k=yo(0,us(p,Qi))),n=ca},M=function(){v._gsap.y=is(parseFloat(v._gsap.y)+y.offset)+"px",v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(v._gsap.y)+", 0, 1)",y.offset=y.cacheID=0},P=function(){L(),o.isActive()&&o.vars.scrollY>r&&(y()>r?o.progress(1)&&y(r):o.resetTo("scrollY",r))};return v&&lo.set(v,{y:"+=0"}),t.ignoreCheck=function(t){return Ro&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(S);var t=is(e.deltaY/2),r=C(y.v-t);if(v&&r!==y.v+y.offset){y.offset=r-y.v;var n=is((parseFloat(v&&v._gsap.y)||0)-y.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",v._gsap.y=n+"px",y.cacheID=Hi.cache,ma()}return!0}y.offset&&M(),i=!0}()||_>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=_;_=is((uo.visualViewport&&uo.visualViewport.scale||1)/x),o.pause(),t!==_&&Oa(p,_>1.01||!u&&"x"),s=w(),a=y(),L(),n=ca},t.onRelease=t.onGestureStart=function(t,e){if(y.offset&&M(),e){Hi.cache++;var n,i,s=T();u&&(i=(n=w())+.05*s*-t.velocityX/.227,s*=Aa(w,n,i,us(p,Qi)),o.vars.scrollX=k(i)),i=(n=y())+.05*s*-t.velocityY/.227,s*=Aa(y,n,i,us(p,Zi)),o.vars.scrollY=C(i),o.invalidate().duration(s).play(.01),(Ro&&o.vars.scrollY>=r||n>=r-1)&&lo.to({},{onUpdate:P,duration:s})}else l.restart(!0);f&&f(t)},t.onWheel=function(){o._ts&&o.pause(),$o()-b>1e3&&(n=0,b=$o())},t.onChange=function(t,e,r,i,o){if(ca!==n&&L(),e&&u&&w(k(i[2]===e?s+(t.startX-t.x):w()+e-i[1])),r){y.offset&&M();var l=o[2]===r,c=l?a+t.startY-t.y:y()+r-o[1],h=C(c);l&&c!==h&&(a+=h-c),y(h)}(r||e)&&ma()},t.onEnable=function(){Oa(p,!u&&"x"),Ma.addEventListener("refresh",P),Hs(uo,"resize",P),y.smooth&&(y.target.style.scrollBehavior="auto",y.smooth=w.smooth=!1),E.enable()},t.onDisable=function(){Oa(p,!0),Ys(uo,"resize",P),Ma.removeEventListener("refresh",P),E.kill()},t.lockAxis=!1!==t.lockAxis,(e=new ao(t)).iOS=Ro,Ro&&!y()&&y(1),Ro&&lo.ticker.add(ns),l=e._dc,o=lo.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:ka(y,y(),(function(){return o.pause()}))},onUpdate:ma,onComplete:l.vars.onComplete}),e}(t);return Ao&&Ao.target===e.target&&Ao.kill(),as(e.target)&&(Ao=e),e},Ma.core={_getVelocityProp:ro,_inputObserver:Ra,_scrollers:Hi,_proxies:Yi,bridge:{ss:function(){Ko||ia("scrollStart"),Ko=$o()},ref:function(){return xo}}},ss()&&lo.registerPlugin(Ma);let Ia,za,Ha,Ya="undefined"!=typeof Intl?new Intl.Segmenter:0,Ba=t=>"string"==typeof t?Ba(document.querySelectorAll(t)):"length"in t?Array.from(t):[t],ja=t=>Ba(t).filter((t=>t instanceof HTMLElement)),Xa=[],Wa=function(){},Va=/\s+/g,Ua=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),$a={left:0,top:0,width:0,height:0},Ga=(t,e)=>{if(e){let r,n,i,o,s=new Set(t.join("").match(e)||Xa),a=t.length;if(s.size)for(;--a>-1;)for(i of(n=t[a],s))if(i.startsWith(n)&&i.length>n.length){for(r=0,o=n;i.startsWith(o+=t[a+ ++r])&&o.length<i.length;);if(r&&o.length===i.length){t[a]=i,t.splice(a+1,r);break}}}return t},Ka=t=>"inline"===window.getComputedStyle(t).display&&(t.style.display="inline-block"),Ja=(t,e,r)=>e.insertBefore("string"==typeof t?document.createTextNode(t):t,r),Qa=(t,e,r)=>{let n=e[t+"sClass"]||"",{tag:i="div",aria:o="auto",propIndex:s=!1}=e,a="line"===t?"block":"inline-block",l=n.indexOf("++")>-1,c=e=>{let c=document.createElement(i),u=r.length+1;return n&&(c.className=n+(l?" "+n+u:"")),s&&c.style.setProperty("--"+t,u+""),"none"!==o&&c.setAttribute("aria-hidden","true"),"span"!==i&&(c.style.position="relative",c.style.display=a),c.textContent=e,r.push(c),c};return l&&(n=n.replace("++","")),c.collection=r,c},Za=(t,e,r,n,i,o,s,a,l,c)=>{var u;let h,d,f,p,m,g,v,y,w,_,x,b,T,E,S,k,C,L,M=Array.from(t.childNodes),P=0,{wordDelimiter:A,reduceWhiteSpace:O=!0,prepareText:F}=e,D=t.getBoundingClientRect(),R=D,q=!O&&"pre"===window.getComputedStyle(t).whiteSpace.substring(0,3),N=0,I=r.collection;for("object"==typeof A?(f=A.delimiter||A,d=A.replaceWith||""):d=""===A?"":A||" ",h=" "!==d;P<M.length;P++)if(p=M[P],3===p.nodeType){for(S=p.textContent||"",O?S=S.replace(Va," "):q&&(S=S.replace(/\n/g,d+"\n")),F&&(S=F(S,t)),p.textContent=S,m=d||f?S.split(f||d):S.match(a)||Xa,C=m[m.length-1],y=h?" "===C.slice(-1):!C,C||m.pop(),R=D,v=h?" "===m[0].charAt(0):!m[0],v&&Ja(" ",t,p),m[0]||m.shift(),Ga(m,l),o&&c||(p.textContent=""),w=1;w<=m.length;w++)if(k=m[w-1],!O&&q&&"\n"===k.charAt(0)&&(null==(u=p.previousSibling)||u.remove(),Ja(document.createElement("br"),t,p),k=k.slice(1)),O||""!==k)if(" "===k)t.insertBefore(document.createTextNode(" "),p);else{if(h&&" "===k.charAt(0)&&Ja(" ",t,p),N&&1===w&&!v&&I.indexOf(N.parentNode)>-1?(g=I[I.length-1],g.appendChild(document.createTextNode(n?"":k))):(g=r(n?"":k),Ja(g,t,p),N&&1===w&&!v&&g.insertBefore(N,g.firstChild)),n)for(x=Ya?Ga([...Ya.segment(k)].map((t=>t.segment)),l):k.match(a)||Xa,L=0;L<x.length;L++)g.appendChild(" "===x[L]?document.createTextNode(" "):n(x[L]));if(o&&c){if(S=p.textContent=S.substring(k.length+1,S.length),_=g.getBoundingClientRect(),_.top>R.top&&_.left<=R.left){for(b=t.cloneNode(),T=t.childNodes[0];T&&T!==g;)E=T,T=T.nextSibling,b.appendChild(E);t.parentNode.insertBefore(b,t),i&&Ka(b)}R=_}(w<m.length||y)&&Ja(w>=m.length?" ":h&&" "===k.slice(-1)?" "+d:d,t,p)}else Ja(d,t,p);t.removeChild(p),N=0}else 1===p.nodeType&&(s&&s.indexOf(p)>-1?(I.indexOf(p.previousSibling)>-1&&I[I.length-1].appendChild(p),N=p):(Za(p,e,r,n,i,o,s,a,l,!0),N=0),i&&Ka(p))};const tl=class t{constructor(t,e){this.isSplit=!1,Ha||el.register(window.gsap),this.elements=ja(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=e,this._split=()=>this.isSplit&&this.split(this.vars);let r,n=[],i=()=>{let t,e=n.length;for(;e--;){t=n[e];let r=t.element.offsetWidth;if(r!==t.width)return t.width=r,void this._split()}};this._data={orig:n,obs:"undefined"!=typeof ResizeObserver&&new ResizeObserver((()=>{clearTimeout(r),r=setTimeout(i,200)}))},Wa(this),this.split(e)}split(t){this.isSplit&&this.revert(),this.vars=t=t||this.vars||{};let e,{type:r="chars,words,lines",aria:n="auto",deepSlice:i=!0,smartWrap:o,onSplit:s,autoSplit:a=!1,specialChars:l,mask:c}=this.vars,u=r.indexOf("lines")>-1,h=r.indexOf("chars")>-1,d=r.indexOf("words")>-1,f=h&&!d&&!u,p=l&&("push"in l?new RegExp("(?:"+l.join("|")+")","gu"):l),m=p?new RegExp(p.source+"|"+Ua.source,"gu"):Ua,g=!!t.ignore&&ja(t.ignore),{orig:v,animTime:y,obs:w}=this._data;
2return(h||d||u)&&(this.elements.forEach(((e,r)=>{v[r]={element:e,html:e.innerHTML,ariaL:e.getAttribute("aria-label"),ariaH:e.getAttribute("aria-hidden")},"auto"===n?e.setAttribute("aria-label",(e.textContent||"").trim()):"hidden"===n&&e.setAttribute("aria-hidden","true");let s,a,l,c,y=[],w=[],_=[],x=h?Qa("char",t,y):null,b=Qa("word",t,w);if(Za(e,t,b,x,f,i&&(u||f),g,m,p,!1),u){let r,n=Ba(e.childNodes),i=((t,e,r,n)=>{let i=Qa("line",r,n),o=window.getComputedStyle(t).textAlign||"left";return(r,n)=>{let s=i("");for(s.style.textAlign=o,t.insertBefore(s,e[r]);r<n;r++)s.appendChild(e[r]);s.normalize()}})(e,n,t,_),o=[],a=0,l=n.map((t=>1===t.nodeType?t.getBoundingClientRect():$a)),c=$a;for(s=0;s<n.length;s++)r=n[s],1===r.nodeType&&("BR"===r.nodeName?(o.push(r),i(a,s+1),a=s+1,c=l[a]):(s&&l[s].top>c.top&&l[s].left<=c.left&&(i(a,s),a=s),c=l[s]));a<s&&i(a,s),o.forEach((t=>{var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}))}if(!d){for(s=0;s<w.length;s++)if(a=w[s],h||!a.nextSibling||3!==a.nextSibling.nodeType)if(o&&!u){for(l=document.createElement("span"),l.style.whiteSpace="nowrap";a.firstChild;)l.appendChild(a.firstChild);a.replaceWith(l)}else a.replaceWith(...a.childNodes);else c=a.nextSibling,c&&3===c.nodeType&&(c.textContent=(a.textContent||"")+(c.textContent||""),a.remove());w.length=0,e.normalize()}this.lines.push(..._),this.words.push(...w),this.chars.push(...y)})),c&&this[c]&&this.masks.push(...this[c].map((t=>{let e=t.cloneNode();return t.replaceWith(e),e.appendChild(t),t.className&&(e.className=t.className.replace(/(\b\w+\b)/g,"$1-mask")),e.style.overflow="clip",e})))),this.isSplit=!0,za&&(a?za.addEventListener("loadingdone",this._split):"loading"===za.status&&console.warn("SplitText c
2alled before fonts loaded")),(e=s&&s(this))&&e.totalTime&&(this._data.anim=y?e.totalTime(y):e),u&&a&&this.elements.forEach(((t,e)=>{v[e].width=t.offsetWidth,w&&w.observe(t)})),this}revert(){var t,e;let{orig:r,anim:n,obs:i}=this._data;return i&&i.disconnect(),r.forEach((({element:t,html:e,ariaL:r,ariaH:n})=>{t.innerHTML=e,r?t.setAttribute("aria-label",r):t.removeAttribute("aria-label"),n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")})),this.chars.length=this.words.length=this.lines.length=r.length=this.masks.length=0,this.isSplit=!1,null==za||za.removeEventListener("loadingdone",this._split),n&&(this._data.animTime=n.totalTime(),n.revert()),null==(e=(t=this.vars).onRevert)||e.call(t,this),this}static create(e,r){return new t(e,r)}static register(t){Ia=Ia||t||window.gsap,Ia&&(Ba=Ia.utils.toArray,Wa=Ia.core.context||Wa),!Ha&&window.innerWidth>0&&(za=document.fonts,Ha=!0)}};tl.version="3.13.0";let el=tl;function rl(t,e,r){return Math.max(t,Math.min(e,r))}var nl=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;const r=rl(0,this.currentTime/this.duration,1);e=r>=1;const n=e?1:this.easing(r);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=function(t,e,r,n){return function(t,e,r){return(1-r)*t+r*e}(t,e,1-Math.exp(-r*n))}(this.value,this.to,60*this.lerp,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:r,duration:n,easing:i,onStart:o,onUpdate:s}){this.from=this.value=t,this.to=e,this.lerp=r,this.duration=n,this.easing=i,this.currentTime=0,this.isRunning=!0,o?.(),this.onUpdate=s}},il=class{constructor(t,e,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=t,this.content=e,r&&(this.debouncedResize=function(t,e){let r;return function(...n){let i=this;clearTimeout(r),r=setTimeout((()=>{r=void 0,t.apply(i,n)}),e)}}(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},ol=class{events={};emit(t,...e){let r=this.events[t]||[];for(let t=0,n=r.length;t<n;t++)r[t]?.(...e)}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter((t=>e!==t))}}off(t,e){this.events[t]=this.events[t]?.filter((t=>e!==t))}destroy(){this.events={}}},sl=100/6,al={passive:!1},ll=class{constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,al),this.element.addEventListener("touchstart",this.onTouchStart,al),this.element.addEventListener("touchmove",this.onTouchMove,al),this.element.addEventListener("touchend",this.onTouchEnd,al)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new ol;on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,al),this.element.removeEventListener("touchstart",this.onTouchStart,al),this.element.removeEventListener("touchmove",this.onTouchMove,al),this.element.removeEventListener("touchend",this.onTouchEnd,al)}onTouchStart=t=>{const{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{const{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t,n=-(e-this.touchStart.x)*this.options.touchMultiplier,i=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:n,y:i},this.emitter.emit("scroll",{deltaX:n,deltaY:i,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:r,deltaMode:n}=t;e*=1===n?sl:2===n?this.window.width:1,r*=1===n?sl:2===n?this.window.height:1,e*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:r,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}};bi.registerPlugin(Ma);const cl=new class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;__rafID=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new nl;emitter=new ol;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:r=t,smoothWheel:n=!0,syncTouch:i=!1,syncTouchLerp:o=.075,touchInertiaMultiplier:s=35,duration:a,easing:l=t=>
vendor: 9,529 bytes, line 2
2Math.min(1,1.001-Math.pow(2,-10*t)),lerp:c=.1,infinite:u=!1,orientation:h="vertical",gestureOrientation:d="vertical",touchMultiplier:f=1,wheelMultiplier:p=1,autoResize:m=!0,prevent:g,virtualScroll:v,overscroll:y=!0,autoRaf:w=!1,anchors:_=!1,__experimental__naiveDimensions:x=!1}={}){window.lenisVersion="1.1.19",t&&t!==document.documentElement||(t=window),this.options={wrapper:t,content:e,eventsTarget:r,smoothWheel:n,syncTouch:i,syncTouchLerp:o,touchInertiaMultiplier:s,duration:a,easing:l,lerp:c,infinite:u,gestureOrientation:d,orientation:h,touchMultiplier:f,wheelMultiplier:p,autoResize:m,prevent:g,virtualScroll:v,overscroll:y,autoRaf:w,anchors:_,__experimental__naiveDimensions:x},this.dimensions=new il(t,e,{autoResize:m}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new ll(r,{touchMultiplier:f,wheelMultiplier:p}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{const e=t.composedPath().find((t=>t instanceof HTMLAnchorElement&&t.getAttribute("href")?.startsWith("#")));if(e){const t=e.getAttribute("href");if(t){const e="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0;this.scrollTo(t,e)}}};onPointerDown=t=>{1===t.button&&this.reset()};onVirtualScroll=t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;const{deltaX:e,deltaY:r,event:n}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:r,event:n}),n.ctrlKey)return;if(n.lenisStopPropagation)return;const i=n.type.includes("touch"),o=n.type.includes("wheel");this.isTouching="touchstart"===n.type||"touchmove"===n.type;const s=0===e&&0===r;if(this.options.syncTouch&&i&&"touchstart"===n.type&&s&&!this.isStopped&&!this.isLocked)return void this.reset();const a="vertical"===this.options.gestureOrientation&&0===r||"horizontal"===this.options.gestureOrientation&&0===e;if(s||a)return;let l=n.composedPath();l=l.slice(0,l.indexOf(this.rootElement));const c=this.options.prevent;if(l.find((t=>t instanceof HTMLElement&&("function"==typeof c&&c?.(t)||t.hasAttribute?.("data-lenis-prevent")||i&&t.hasAttribute?.("data-lenis-prevent-touch")||o&&t.hasAttribute?.("data-lenis-prevent-wheel")))))return;if(this.isStopped||this.isLocked)return void n.preventDefault();if(!(this.options.syncTouch&&i||this.options.smoothWheel&&o))return this.isScrolling="native",this.animate.stop(),void(n.lenisStopPropagation=!0);let u=r;"both"===this.options.gestureOrientation?u=Math.abs(r)>Math.abs(e)?r:e:"horizontal"===this.options.gestureOrientation&&(u=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&r>0||this.animatedScroll===this.limit&&r<0))&&(n.lenisStopPropagation=!0),n.preventDefault();const h=i&&this.options.syncTouch,d=i&&"touchend"===n.type&&Math.abs(u)>5;d&&(u=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+u,{programmatic:!1,...h?{lerp:d?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent)this._preventNextNativeScrollEvent=!1;else if(!1===this.isScrolling||"native"===this.isScrolling){const t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout((()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()}),400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.reset(),this.isStopped=!1)}stop(){this.isStopped||(this.reset(),this.isStopped=!0)}raf=t=>{const e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:r=!1,lock:n=!1,duration:i=this.options.duration,easing:o=this.options.easing,lerp:s=this.options.lerp,onStart:a,onComplete:l,force:c=!1,programmatic:u=!0,userData:h}={}){if(!this.isStopped&&!this.isLocked||c){if("string"==typeof t&&["top","left","start"].includes(t))t=0;else if("string"==typeof t&&["bottom","right","end"].includes(t))t=this.limit;else{let r;if("string"==typeof t?r=document.querySelector(t):t instanceof HTMLElement&&t?.nodeType&&(r=t),r){if(this.options.wrapper!==window){const t=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?t.left:t.top}const n=r.getBoundingClientRect();t=(this.isHorizontal?n.left:n.top)+this.animatedScroll}}if("number"==typeof t){if(t+=e,t=Math.round(t),this.options.infinite?u&&(this.targetScroll=this.animatedScroll=this.scroll):t=rl(0,t,this.limit),t===this.targetScroll)return a?.(this),void l?.(this);if(this.userData=h??{},r)return this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},void requestAnimationFrame((()=>{this.dispatchScrollendEvent()}));u||(this.targetScroll=t),this.animate.fromTo(this.animatedScroll,t,{duration:i,easing:o,lerp:s,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",a?.(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),u&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame((()=>{this.dispatchScrollendEvent()})),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame((()=>{this._preventNextNativeScrollEvent=!1}))}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){const t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){return this.options.infinite?function(t,e){return(t%e+e)%e}(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let t="lenis";return this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};function ul(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 hl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
vendor: 4,898 bytes, line 2
2e%2?ul(Object(r),!0).forEach((function(e){yl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ul(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dl(){dl=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var o=e&&e.prototype instanceof d?e:d,s=Object.create(o.prototype),a=new S(i||[]);return n(s,"_invoke",{value:x(t,r,a)}),s}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h={};function d(){}function f(){}function p(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(k([])));v&&v!==e&&r.call(v,o)&&(m=v);var y=p.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function i(n,o,s,a){var l=u(t[n],t,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,a)}),(function(t){i("throw",t,s,a)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return i("throw",t,s,a)}))}a(l.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function x(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var s=r.delegate;if(s){var a=b(s,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function b(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=u(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:f,configurable:!0}),f.displayName=l(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(_.prototype),l(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var s=new _(c(e,r,n,i),o);return t.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},w(y),l(y,a,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
vendor: 5,651 bytes, line 2
2h(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return s.type="throw",s.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function fl(t,e,r,n,i,o,s){try{var a=t[o](s),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,i)}function pl(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){fl(o,n,i,s,a,"next",t)}function a(t){fl(o,n,i,s,a,"throw",t)}s(void 0)}))}}function ml(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gl(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Sl(n.key),n)}}function vl(t,e,r){return e&&gl(t.prototype,e),r&&gl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yl(t,e,r){return(e=Sl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wl(t){return wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wl(t)}function _l(t,e){return _l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_l(t,e)}function xl(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function bl(t,e,r){return bl=xl()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&_l(i,r.prototype),i},bl.apply(null,arguments)}function Tl(t){var e="function"==typeof Map?new Map:void 0;return Tl=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return bl(t,arguments,wl(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_l(n,t)},Tl(t)}function El(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sl(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}bi.registerPlugin(Ma,el),r(565);var kl=void 0!==r.g&&"[object global]"==={}.toString.call(r.g);function Cl(t,e){return 0===t.indexOf(e.toLowerCase())?t:"".concat(e.toLowerCase()).concat(t.substr(0,1).toUpperCase()).concat(t.substr(1))}function Ll(t){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(t)}function Ml(t){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(t)}function Pl(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,n=e.url,i=r||n;if(!i)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(t=i,!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t)return"https://vimeo.com/".concat(i);if(Ll(i))return i.replace("http:","https:");if(r)throw new TypeError("â".concat(r,"â is not a valid video id."));throw new TypeError("â".concat(i,"â is not a vimeo.com url."))}var Al=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",o="str
2ing"==typeof e?[e]:e;return o.forEach((function(e){t[n](e,r)})),{cancel:function(){return o.forEach((function(e){return t[i](e,r)}))}}},Ol=void 0!==Array.prototype.indexOf,Fl="undefined"!=typeof window&&void 0!==window.postMessage;if(!(kl||Ol&&Fl))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var Dl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};!function(t){if(!t.WeakMap){var e=Object.prototype.hasOwnProperty,r=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(t){}}(),n=function(t,e,n){r?Object.defineProperty(t,e,{configurable:!0,writable:!0,value:n}):t[e]=n};t.WeakMap=function(){function t(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id","_WeakMap_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function r(t,r){if(!i(t)||!e.call(t,"_id"))throw new TypeError(r+" method called on incompatible receiver "+typeof t)}function o(){return Math.random().toString().substring(2)}return n(t.prototype,"delete",(function(t){if(r(this,"delete"),!i(t))return!1;var e=t[this._id];return!(!e||e[0]!==t||(delete t[this._id],0))})),n(t.prototype,"get",(function(t){if(r(this,"get"),i(t)){var e=t[this._id];return e&&e[0]===t?e[1]:void 0}})),n(t.prototype,"has",(function(t){if(r(this,"has"),!i(t))return!1;var e=t[this._id];return!(!e||e[0]!==t)})),n(t.prototype,"set",(function(t,e){if(r(this,"set"),!i(t))throw new TypeError("Invalid value used as weak map key");var o=t[this._id];return o&&o[0]===t?(o[1]=e,this):(n(t,this._id,[t,e]),this)})),n(t,"_polyfill",!0),t}()}function i(t){return Object(t)===t}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:Dl);var Rl,ql,Nl=(Rl=function(t){var e,r,n;n=function(){var t,e,r,n=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(t){return setImmediate(t)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(t,e,r,n){return Object.defineProperty(t,e,{value:r,writable:!0,configurable:!1!==n})}}catch(e){t=function(t,e,r){return t[e]=r,t}}function o(t,n){r.add(t,n),e||(e=i(r.drain))}function s(t){var e,r=typeof t;return null==t||"object"!=r&&"function"!=r||(e=t.then),"function"==typeof e&&e}function a(){for(var t=0;t<this.chain.length;t++)l(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function l(t,e,r){var n,i;try{!1===e?r.reject(t.msg):(n=!0===e?t.msg:e.call(void 0,t.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=s(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(t){r.reject(t)}}function c(t){var e,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(e=s(t))?o((function(){var n=new d(r);try{e.call(t,(function(){c.apply(n,arguments)}),(function(){u.apply(n,arguments)}))}catch(t){u.call(n,t)}})):(r.msg=t,r.state=1,r.chain.length>0&&o(a,r))}catch(t){u.call(new d(r),t)}}}function u(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&o(a,e))}function h(t,e,r,n){for(var i=0;i<e.length;i++)!function(i){t.resolve(e[i]).then((function(t){r(i,t)}),n)}(i)}function d(t){this.def=t,this.triggered=!1}function f(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var e=new f(this);this.then=function(t,r){var n={success:"function"!=typeof t||t,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");n.resolve=t,n.reject=e})),e.chain.push(n),0!==e.state&&o(a,e),n.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,(function(t){c.call(e,t)}),(function(t){u.call(e,t)}))}catch(t){u.call(e,t)}}r=function(){var t,r,n;function i(t,e){this.fn=t,this.self=e,this.next=void 0}return{add:function(e,o){n=new i(e,o),r?r.next=n:t=n,r=n,n=void 0},drain:function(){var n=t;for(t=r=e=void 0;n;)n.fn.call(n.self),n=n.next}}}();var m=t({},"constructor",p,!1);return p.prototype=m,t(m,"__NPO__",0,!1),t(p,"resolve",(function(t){return t&&"object"==typeof t&&1===t.__NPO__?t:new this((function(e,r){if("function"!=typeof e||"function"!=typeof r)throw TypeError("Not a function");e(t)}))}
2)),t(p,"reject",(function(t){return new this((function(e,r){if("function"!=typeof e||"function"!=typeof r)throw TypeError("Not a function");r(t)}))})),t(p,"all",(function(t){var e=this;return"[object Array]"!=n.call(t)?e.reject(TypeError("Not an array")):0===t.length?e.resolve([]):new e((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=t.length,o=Array(i),s=0;h(e,t,(function(t,e){o[t]=e,++s===i&&r(o)}),n)}))})),t(p,"race",(function(t){var e=this;return"[object Array]"!=n.call(t)?e.reject(TypeError("Not an array")):new e((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");h(e,t,(function(t,e){r(e)}),n)}))})),p},(r=Dl)[e="Promise"]=r[e]||n(),t.exports&&(t.exports=r[e])},Rl(ql={exports:{}}),ql.exports),Il=new WeakMap;function zl(t,e,r){var n=Il.get(t.element)||{};e in n||(n[e]=[]),n[e].push(r),Il.set(t.element,n)}function Hl(t,e){return(Il.get(t.element)||{})[e]||[]}function Yl(t,e,r){var n=Il.get(t.element)||{};if(!n[e])return!0;if(!r)return n[e]=[],Il.set(t.element,n),!0;var i=n[e].indexOf(r);return-1!==i&&n[e].splice(i,1),Il.set(t.element,n),n[e]&&0===n[e].length}function Bl(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){return console.warn(t),{}}return t}function jl(t,e,r){if(t.element.contentWindow&&t.element.contentWindow.postMessage){var n={method:e};void 0!==r&&(n.value=r);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(n=JSON.stringify(n)),t.element.contentWindow.postMessage(n,t.origin)}}var Xl=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","speed","start_time","texttrack","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Wl(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Xl.reduce((function(e,r){var n=t.getAttribute("data-vimeo-".concat(r));return(n||""===n)&&(e[r]=""===n?1:n),e}),e)}function Vl(t,e){var r=t.html;if(!e)throw new TypeError("An element must be provided");if(null!==e.getAttribute("data-vimeo-initialized"))return e.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=r,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function Ul(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new Promise((function(n,i){if(!Ll(t))throw new TypeError("â".concat(t,"â is not a vimeo.com url."));var o=function(t){for(var e=(t||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),r=(e&&e[1]||"").replace("player.",""),n=0,i=[".videoji.hk",".vimeo.work",".videoji.cn"];n<i.length;n++){var o=i[n];if(r.endsWith(o))return r}return"vimeo.com"}(t),s="https://".concat(o,"/api/oembed.json?url=").concat(encodeURIComponent(t));for(var a in e)e.hasOwnProperty(a)&&(s+="&".concat(a,"=").concat(encodeURIComponent(e[a])));var l="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;l.open("GET",s,!0),l.onload=function(){if(404!==l.status)if(403!==l.status)try{var e=JSON.parse(l.responseText);if(403===e.domain_status_code)return Vl(e,r),void i(new Error("â".concat(t,"â is not embeddable.")));n(e)}catch(t){i(t)}else i(new Error("â".concat(t,"â is not embeddable.")));else i(new Error("â".concat(t,"â was not found.")))},l.onerror=function(){var t=l.status?" (".concat(l.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(t,".")))},l.send()}))}var $l={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},Gl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_l(t,e)}(a,t);var e,r,n,i,o,s=(i=a,o=xl(),function(){var t,e=wl(i);if(o){var r=wl(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return El(t)}(this,t)});function a(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;return ml(this,a),yl(El(r=s.call(this)),"logger",void 0),yl(El(r),"speedAdjustment",0),yl(El(r),"adjustSpeed",function(){var t=pl(dl().mark((function t(e,n){var i;return dl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.speedAdjustment!==n){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.getPlaybackRate();case 4:return t.t0=t.sent,t.t1=r.speedAdjustment,t.t2=t.t0-t.t1,t.t3=n,i=t.t2+t.t3,r.log("New playbackRate: ".concat(i)),t.next=12,e.setPlaybackRate(i);case 12:r.speedAdjustment=n;case 13:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),r.logger=i,r.init(e,t,hl(hl({},$l),n)),r}return vl(a,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(n=pl(dl().mark((function t(e,r,n){var i,o,s,a=this;return dl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.waitForTOReadyState(e,"open");case 2:if("viewer"!==n.role){t.next=10;break}return t.next=5,this.updatePlayer(e,r,n);case 5:i=Al(e,"change",(function(){return a.updatePlayer(e,r,n)})),o=this.maintainPlaybackPosition(e,r,n),this.addEventListener("disconnect",(function(){o.cancel(),i.cancel()})),t.next=14;break;case 10:return t.next=12,this.updateTimingObject(e,r);case 12:s=Al(r,["seeked","play","pause","ratechange"],(function(){return a.updateTimingObject(e,r)}),"on","off"),this.addEventListener("disconnect",(function(){return s.cancel()}));case 14:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return n.apply(this,arguments)})},{key:"updateTimingObject",value:(r=pl(dl().mark((function t(e,r){return dl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,r.getCurrentTime();case 3:return t.t1=t.sent,t.next=6,r.getPaused();case 6:if(!t.sent){t.next=10;break}t.t2=0,t.next=13;break;case 10:return t.next=12,r.getPlaybackRate();case 12:t.t2=t.sent;case 13:t.t3=t.t2,t.t4={position:t.t1,velocity:t.t3},t.t0.update.call(t.t0,t.t4);case 16:case"end":return t.stop()}}),t)}))),function(t,e){return r.apply(this,arguments)})},{key:"updatePlayer",value:(e=pl(dl().mark((function t(e,r,n){var i,o,s;return dl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.query(),o=i.position,s=i.velocity,"number"==typeof o&&r.setCurrentTime(o),"number"!=typeof s){t.next=25;break}if(0!==s){t.next=11;break}return t.next=6,r.getPaused();case 6:if(t.t0=t.sent,!1!==t.t0){t.next=9;break}r.pause();case 9:t.next=25;break;case 11:if(!(s>0)){t.next=25;break}return t.next=14,r.getPaused();case 14:if(t.t1=t.sent,!0!==t.t1){t.next=19;break}return t.next=18,r.play().catch(function(){var t=pl(dl().mark((function t(e){return dl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("NotAllowedError"!==e.name||!n.autoPlayMuted){t.next=5;break}return t.next=3,r.setMuted(!0);case 3:return t.next=5,r.play().catch((function(t){return console.error("Couldn't play the video from TimingSrcConnector. Error:",t)}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 18:this.updatePlayer(e,r,n);case 19:return t.next=21,r.getPlaybackRate();case 21:if(t.t2=t.sent,t.t3=s,t.t2===t.t3){t.next=25;break}r.setPlaybackRate(s);case 25:case"end":return t.stop()}}),t,this)}))),function(t,r,n){return e.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(t,e,r){var n=this,i=r.allowedDrift,o=r.maxAllowedDrift,s=r.minCheckInterval,a=r.maxRateAdjustment,l=r.maxTimeToCatchUp,c=1e3*Math.min(l,Math.max(s,o)),u=function(){var r=pl(dl().mark((function r(){var s,c,u,h,d;return dl().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.t0=0===t.query().velocity,r.t0){r.next=6;break}return r.next=4,e.getPaused();case 4:r.t1=r.sent,r.t0=!0===r.t1;case 6:if(!r.t0){r.next=8;break}return r.abrupt("return");case 8:return r.t2=t.query().position,r.next=11,e.getCurrentTime();case 11:if(r.t3=r.sent,s=r.t2-r.t3,c=Math.abs(s),n.log("Drift: ".concat(s)),!(c>o)){r.next=22;break}return r.next=18,n.adjustSpeed(e,0);case 18:e.setCurrentTime(t.query().position),n.log("Resync by currentTime"),r.next=29;break;case 22:if(!(c>i)){r.next=29;break}return d=(u=c/l)<(h=a)?(h-u)/2:h,r.next=28,n.adjustSpeed(e,d*Math.sign(s));case 28:n.log("Resync by playbackRate");case 29:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),h=setInterval((function(){return u()}),c);return{cancel:function(){return clearInterval(h)}}}},{key:"log",value:function(t){var e;null===(e=this.logger)||void 0===e||e.call(this,"TimingSrcConnector: ".concat(t))}},{key:"waitForTOReadyState",value:function(t,e){return new Promise((function(r){!function n(){t.readyState===e?r():t.addEventListener("readystatechange",n,{once:!0})}()}))}}]),a}(Tl(EventTarget)),Kl=new WeakMap,Jl=new WeakMap,Ql={},Zl=function(){function t(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ml(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!function(t){return Boolean(t&&1===t.nodeType&&"nodeName"in t&&t.ownerDocument&&t.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");
vendor: 7,811 bytes, line 2
2if("IFRAME"!==e.nodeName){var i=e.querySelector("iframe");i&&(e=i)}if("IFRAME"===e.nodeName&&!Ll(e.getAttribute("src")||""))throw new Error("The player element passed isnât a Vimeo embed.");if(Kl.has(e))return Kl.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var o=new Nl((function(t,i){if(r._onMessage=function(e){if(Ll(e.origin)&&r.element.contentWindow===e.source){"*"===r.origin&&(r.origin=e.origin);var n=Bl(e.data);if(n&&"error"===n.event&&n.data&&"ready"===n.data.method){var o=new Error(n.data.message);return o.name=n.data.name,void i(o)}var s=n&&"ready"===n.event,a=n&&"ping"===n.method;if(s||a)return r.element.setAttribute("data-ready","true"),void t();!function(t,e){var r,n=[];if((e=Bl(e)).event)"error"===e.event&&Hl(t,e.data.method).forEach((function(r){var n=new Error(e.data.message);n.name=e.data.name,r.reject(n),Yl(t,e.data.method,r)})),n=Hl(t,"event:".concat(e.event)),r=e.data;else if(e.method){var i=function(t,e){var r=Hl(t,e);if(r.length<1)return!1;var n=r.shift();return Yl(t,e,n),n}(t,e.method);i&&(n.push(i),r=e.value)}n.forEach((function(e){try{if("function"==typeof e)return void e.call(t,r);e.resolve(r)}catch(t){}}))}(r,n)}},r._window.addEventListener("message",r._onMessage),"IFRAME"!==r.element.nodeName){var o=Wl(e,n);Ul(Pl(o),o,e).then((function(t){var n,i,o,s=Vl(t,e);return r.element=s,r._originalElement=e,n=e,i=s,o=Il.get(n),Il.set(i,o),Il.delete(n),Kl.set(r.element,r),t})).catch(i)}}));if(Jl.set(this,o),Kl.set(this.element,this),"IFRAME"===this.element.nodeName&&jl(this,"ping"),Ql.isEnabled){var s=function(){return Ql.exit()};this.fullscreenchangeHandler=function(){Ql.isFullscreen?zl(r,"event:exitFullscreen",s):Yl(r,"event:exitFullscreen",s),r.ready().then((function(){jl(r,"fullscreenchange",Ql.isFullscreen)}))},Ql.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var e;return vl(t,[{key:"callMethod",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Nl((function(n,i){return e.ready().then((function(){zl(e,t,{resolve:n,reject:i}),jl(e,t,r)})).catch(i)}))}},{key:"get",value:function(t){var e=this;return new Nl((function(r,n){return t=Cl(t,"get"),e.ready().then((function(){zl(e,t,{resolve:r,reject:n}),jl(e,t)})).catch(n)}))}},{key:"set",value:function(t,e){var r=this;return new Nl((function(n,i){if(t=Cl(t,"set"),null==e)throw new TypeError("There must be a value to set.");return r.ready().then((function(){zl(r,t,{resolve:n,reject:i}),jl(r,t,e)})).catch(i)}))}},{key:"on",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(!e)throw new TypeError("You must pass a callback function.");if("function"!=typeof e)throw new TypeError("The callback must be a function.");0===Hl(this,"event:".concat(t)).length&&this.callMethod("addEventListener",t).catch((function(){})),zl(this,"event:".concat(t),e)}},{key:"off",value:function(t,e){if(!t)throw new TypeError("You must pass an event name.");if(e&&"function"!=typeof e)throw new TypeError("The callback must be a function.");Yl(this,"event:".concat(t),e)&&this.callMethod("removeEventListener",t).catch((function(t){}))}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=Jl.get(this)||new Nl((function(t,e){e(new Error("Unknown player. Probably unloaded."))}));return Nl.resolve(t)}},{key:"addCuePoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:e})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,e){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:e})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return Ql.isEnabled?Ql.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return Ql.isEnabled?Ql.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return Ql.isEnabled?Nl.resolve(Ql.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new Nl((function(e){if(Jl.delete(t),Kl.delete(t.element),t._originalElement&&(Kl.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&"IFRAME"===t.element.nodeName&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&"DIV"===t.element.nodeName&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var r=t.element.querySelector("iframe");r&&r.parentNode&&(r.parentNode.parentNode&&t._originalElement&&t._originalElement!==r.parentNode?r.parentNode.parentNode.removeChild(r.parentNode):r.parentNode.removeChild(r))}t._window.removeEventListener("message",t._onMessage),Ql.isEnabled&&Ql.off("fullscreenchange",t.fullscreenchangeHandler),e()}))}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return Nl.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new Nl((function(t,e){return e(new TypeError("Argument must be an array."))}));var e=new Nl((function(t){return t(null)})),r=[t[0]?this.set("colorOne",t[0]):e,t[1]?this.set("colorTwo",t[1]):e,t[2]?this.set("colorThree",t[2]):e,t[3]?this.set("colorFour",t[3]):e];return Nl.all(r)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}
2},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:(e=pl(dl().mark((function t(e,r){var n,i=this;return dl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return t.next=4,this.ready();case 4:return n=new Gl(this,e,r),jl(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",(function(){return jl(i,"notifyTimingObjectDisconnect")})),t.abrupt("return",n);case 8:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})}]),t}();kl||(Ql=function(){var t=function(){for(var t,e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,n=e.length,i={};r<n;r++)if((t=e[r])&&t[1]in document){for(r=0;r<t.length;r++)i[e[0][r]]=t[r];return i}return!1}(),e={fullscreenchange:t.fullscreenchange,fullscreenerror:t.fullscreenerror},r={request:function(e){return new Promise((function(n,i){var o=function t(){r.off("fullscreenchange",t),n()};r.on("fullscreenchange",o);var s=(e=e||document.documentElement)[t.requestFullscreen]();s instanceof Promise&&s.then(o).catch(i)}))},exit:function(){return new Promise((function(e,n){if(r.isFullscreen){var i=function t(){r.off("fullscreenchange",t),e()};r.on("fullscreenchange",i);var o=document[t.exitFullscreen]();o instanceof Promise&&o.then(i).catch(n)}else e()}))},on:function(t,r){var n=e[t];n&&document.addEventListener(n,r)},off:function(t,r){var n=e[t];n&&document.removeEventListener(n,r)}};return Object.defineProperties(r,{isFullscreen:{get:function(){return Boolean(document[t.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[t.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[t.fullscreenEnabled])}}}),r}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),r=function(t){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(t))};e.forEach((function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var e=Wl(t);Ul(Pl(e),e,t).then((function(e){return Vl(e,t)})).catch(r)}catch(t){r(t)}}))}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",(function(e){if(Ll(e.origin)&&e.data&&"spacechange"===e.data.event)for(var r=t.querySelectorAll("iframe"),n=0;n<r.length;n++)if(r[n].contentWindow===e.source){r[n].parentElement.style.paddingBottom="".concat(e.data.data[0].bottom,"px");break}}
2)))}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",(function(e){if(Ll(e.origin)){var r=Bl(e.data);if(r&&"ready"===r.event)for(var n=t.querySelectorAll("iframe"),i=0;i<n.length;i++){var o=n[i],s=o.contentWindow===e.source;Ml(o.src)&&s&&new Zl(o).callMethod("appendVideoMetadata",window.location.href)}}})))}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(t){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(t))};window.addEventListener("message",(function(r){if(Ll(r.origin)){var n=Bl(r.data);if(n&&"ready"===n.event)for(var i=t.querySelectorAll("iframe"),o=function(){var t=i[s],n=t.contentWindow===r.source;if(Ml(t.src)&&n){var o=new Zl(t);o.getVideoId().then((function(t){var e=new RegExp("[?&]vimeo_t_".concat(t,"=([^&#]*)")).exec(window.location.href);if(e&&e[1]){var r=decodeURI(e[1]);o.setCurrentTime(r)}})).catch(e)}},s=0;s<i.length;s++)o()}}))}}());var tc=Zl;bi.registerPlugin(Ma);var ec,rc,nc,ic,oc,sc,ac,lc,cc,uc="transform",hc=uc+"Origin",dc=function(t){var e=t.ownerDocument||t;!(uc in t.style)&&"msTransform"in t.style&&(hc=(uc="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(rc=window,ac=new wc,e){ec=e,nc=e.documentElement,ic=e.body,(lc=ec.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var r=e.createElement("div"),n=e.createElement("div"),i=e&&(e.body||e.firstElementChild);i&&i.appendChild&&(i.appendChild(r),r.appendChild(n),r.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),cc=n.offsetParent!==r,i.removeChild(r))}return e},fc=[],pc=[],mc=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},gc=function t(e){return"fixed"===rc.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)},vc=function t(e,r){if(e.parentNode&&(ec||dc(e))){var n=mc(e),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o=n?r?"rect":"g":"div",s=2!==r?0:100,a=3===r?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",c=ec.createElementNS?ec.createElementNS(i.replace(/^https/,"http"),o):ec.createElement(o);return r&&(n?(sc||(sc=t(e)),c.setAttribute("width",.01),c.setAttribute("height",.01),c.setAttribute("transform","translate("+s+","+a+")"),sc.appendChild(c)):(oc||((oc=t(e)).style.cssText=l),c.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+s+"px",oc.appendChild(c))),c}throw"Need document and parent."},yc=function(t,e,r,n,i,o,s){return t.a=e,t.b=r,t.c=n,t.d=i,t.e=o,t.f=s,t},wc=function(){function t(t,e,r,n,i,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=1),void 0===i&&(i=0),void 0===o&&(o=0),yc(this,t,e,r,n,i,o)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,r=this.c,n=this.d,i=this.e,o=this.f,s=t*n-e*r||1e-10;return yc(this,n/s,-e/s,-r/s,t/s,(r*o-n*i)/s,-(t*o-e*i)/s)},e.multiply=function(t){var e=this.a,r=this.b,n=this.c,i=this.d,o=this.e,s=this.f,a=t.a,l=t.c,c=t.b,u=t.d,h=t.e,d=t.f;return yc(this,a*e+c*n,a*r+c*i,l*e+u*n,l*r+u*i,o+h*e+d*n,s+h*r+d*i)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,r=this.b,n=this.c,i=this.d,o=this.e,s=this.f;return e===t.a&&r===t.b&&n===t.c&&i===t.d&&o===t.e&&s===t.f},e.apply=function(t,e){void 0===e&&(e={});var r=t.x,n=t.y,i=this.a,o=this.b,s=this.c,a=this.d,l=this.e,c=this.f;return e.x=r*i+n*s+l||0,e.y=r*o+n*a+c||0,e},t}();function _c(t,e,r,n){if(!t||!t.parentNode||(ec||dc(t)).documentElement===t)return new wc;var i=function(t){for(var e,r;t&&t!==ic;)(r=t._gsap)&&r.uncache&&r.get(t,"x"),r&&!r.scaleX&&!r.scaleY&&r.renderTransform&&(r.scaleX=r.scaleY=1e-4,r.renderTransform(1,r),e?e.push(r):e=[r]),t=t.parentNode;return e}(t),o=mc(t)?fc:pc,s=function(t,e){var r,n,i,o,s,a,l=mc(t),c=t===l,u=l?fc:pc,h=t.parentNode,d=h&&!l&&h.shadowRoot&&h.shadowRoot.appendChild?h.shadowRoot:h;if(t===rc)return t;if(u.length||u.push(vc(t,1),vc(t,2),vc(t,3)),r=l?sc:oc,l)c?(i=function(t){var e,r=t.getCTM();return r||(e=t.style[uc],t.style[uc]="none",t.appendChild(lc),r=lc.getCTM(),t.removeChild(lc),e?t.style[uc]=e:t.style.removeProperty(uc.replace(/([A-Z])/g,"-$1").toLowerCase())),r||ac.clone()}(t),o=-i.e/i.a,s=-i.f/i.d,n=ac):t.getBBox?(i=t.getBBox(),n=(n=t.transform?t.transform.baseVal:{}).numberOfItems?n.numberOfItems>1?function(t){for(var e=new wc,r=0;r<t.numberOfItems;
2r++)e.multiply(t.getItem(r).matrix);return e}(n):n.getItem(0).matrix:ac,o=n.a*i.x+n.c*i.y,s=n.b*i.x+n.d*i.y):(n=new wc,o=s=0),e&&"g"===t.tagName.toLowerCase()&&(o=s=0),(c?l:h).appendChild(r),r.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+o)+","+(n.f+s)+")");else{if(o=s=0,cc)for(n=t.offsetParent,i=t;i&&(i=i.parentNode)&&i!==n&&i.parentNode;)(rc.getComputedStyle(i)[uc]+"").length>4&&(o=i.offsetLeft,s=i.offsetTop,i=0);if("absolute"!==(a=rc.getComputedStyle(t)).position&&"fixed"!==a.position)for(n=t.offsetParent;h&&h!==n;)o+=h.scrollLeft||0,s+=h.scrollTop||0,h=h.parentNode;(i=r.style).top=t.offsetTop-s+"px",i.left=t.offsetLeft-o+"px",i[uc]=a[uc],i[hc]=a[hc],i.position="fixed"===a.position?"fixed":"absolute",d.appendChild(r)}return r}(t,r),a=o[0].getBoundingClientRect(),l=o[1].getBoundingClientRect(),c=o[2].getBoundingClientRect(),u=s.parentNode,h=!n&&gc(t),d=new wc((l.left-a.left)/100,(l.top-a.top)/100,(c.left-a.left)/100,(c.top-a.top)/100,a.left+(h?0:rc.pageXOffset||ec.scrollLeft||nc.scrollLeft||ic.scrollLeft||0),a.top+(h?0:rc.pageYOffset||ec.scrollTop||nc.scrollTop||ic.scrollTop||0));if(u.removeChild(s),i)for(a=i.length;a--;)(l=i[a]).scaleX=l.scaleY=0,l.renderTransform(1,l);return e?d.inverse():d}function xc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var bc,Tc,Ec,Sc,kc,Cc,Lc,Mc,Pc,Ac,Oc,Fc,Dc,Rc,qc,Nc,Ic,zc,Hc,Yc,Bc,jc,Xc=0,Wc=function(){return"undefined"!=typeof window},Vc=function(){return bc||Wc()&&(bc=window.gsap)&&bc.registerPlugin&&bc},Uc=function(t){return"function"==typeof t},$c=function(t){return"object"==typeof t},Gc=function(t){return void 0===t},Kc=function(){return!1},Jc="transform",Qc="transformOrigin",Zc=function(t){return Math.round(1e4*t)/1e4},tu=Array.isArray,eu=function(t,e){var r=Ec.createElementNS?Ec.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ec.createElement(t);return r.style?r:Ec.createElement(t)},ru=180/Math.PI,nu=1e20,iu=new wc,ou=Date.now||function(){return(new Date).getTime()},su=[],au={},lu=0,cu=/^(?:a|input|textarea|button|select)$/i,uu=0,hu={},du={},fu=function(t,e){var r,n={};for(r in t)n[r]=e?t[r]*e:t[r];return n},pu=function t(e,r){for(var n,i=e.length;i--;)r?e[i].style.touchAction=r:e[i].style.removeProperty("touch-action"),(n=e[i].children)&&n.length&&t(n,r)},mu=function(){return su.forEach((function(t){return t()}))},gu=function(){return!su.length&&bc.ticker.remove(mu)},vu=function(t){for(var e=su.length;e--;)su[e]===t&&su.splice(e,1);bc.to(gu,{overwrite:!0,delay:15,duration:0,onComplete:gu,data:"_draggable"})},yu=function(t,e,r,n){if(t.addEventListener){var i=Dc[e];n=n||(Oc?{passive:!1}:null),t.addEventListener(i||e,r,n),i&&e!==i&&t.addEventListener(e,r,n)}},wu=function(t,e,r,n){if(t.removeEventListener){var i=Dc[e];t.removeEventListener(i||e,r,n),i&&e!==i&&t.removeEventListener(e,r,n)}},_u=function(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()},xu=function t(e){Rc=e.touches&&Xc<e.touches.length,wu(e.target,"touchend",t)},bu=function(t){Rc=t.touches&&Xc<t.touches.length,yu(t.target,"touchend",xu)},Tu=function(t){return Tc.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0},Eu=function(t){return Tc.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0},Su=function t(e,r){yu(e,"scroll",r),Cu(e.parentNode)||t(e.parentNode,r)},ku=function t(e,r){wu(e,"scroll",r),Cu(e.parentNode)||t(e.parentNode,r)},Cu=function(t){return!(t&&t!==Sc&&9!==t.nodeType&&t!==Ec.body&&t!==Tc&&t.nodeType&&t.parentNode)},Lu=function(t,e){var r="x"===e?"Width":"Height",n="scroll"+r,i="client"+r;return Math.max(0,Cu(t)?Math.max(Sc[n],kc[n])-(Tc["inner"+r]||Sc[i]||kc[i]):t[n]-t[i])},Mu=function t(e,r){var n=Lu(e,"x"),i=Lu(e,"y");Cu(e)?e=du:t(e.parentNode,r),e._gsMaxScrollX=n,e._gsMaxScrollY=i,r||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},Pu=function(t,e,r){var n=t.style;n&&(Gc(n[e])&&(e=Pc(e,t)||e),null==r?n.removeProperty&&n.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):n[e]=r)},Au=function(t){return Tc.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)},Ou={},Fu=function(t){if(t===Tc)return Ou.left=Ou.top=0,Ou.width=Ou.right=Sc.clientWidth||t.innerWidth||kc.clientWidth||0,Ou.height=Ou.bottom=(t.innerHe
vendor: 10,817 bytes, line 2
2ight||0)-20<Sc.clientHeight?Sc.clientHeight:t.innerHeight||kc.clientHeight||0,Ou;var e=t.ownerDocument||Ec,r=Gc(t.pageX)?t.nodeType||Gc(t.left)||Gc(t.top)?Ac(t)[0].getBoundingClientRect():t:{left:t.pageX-Eu(e),top:t.pageY-Tu(e),right:t.pageX-Eu(e)+1,bottom:t.pageY-Tu(e)+1};return Gc(r.right)&&!Gc(r.width)?(r.right=r.left+r.width,r.bottom=r.top+r.height):Gc(r.width)&&(r={width:r.right-r.left,height:r.bottom-r.top,right:r.right,left:r.left,bottom:r.bottom,top:r.top}),r},Du=function(t,e,r){var n,i=t.vars,o=i[r],s=t._listeners[e];return Uc(o)&&(n=o.apply(i.callbackScope||t,i[r+"Params"]||[t.pointerEvent])),s&&!1===t.dispatchEvent(e)&&(n=!1),n},Ru=function(t,e){var r,n,i,o=Ac(t)[0];return o.nodeType||o===Tc?Nu(o,e):Gc(t.left)?{left:n=t.min||t.minX||t.minRotation||0,top:r=t.min||t.minY||0,width:(t.max||t.maxX||t.maxRotation||0)-n,height:(t.max||t.maxY||0)-r}:(i={x:0,y:0},{left:t.left-i.x,top:t.top-i.y,width:t.width,height:t.height})},qu={},Nu=function(t,e){e=Ac(e)[0];var r,n,i,o,s,a,l,c,u,h,d,f,p,m=t.getBBox&&t.ownerSVGElement,g=t.ownerDocument||Ec;if(t===Tc)i=Tu(g),n=(r=Eu(g))+(g.documentElement.clientWidth||t.innerWidth||g.body.clientWidth||0),o=i+((t.innerHeight||0)-20<g.documentElement.clientHeight?g.documentElement.clientHeight:t.innerHeight||g.body.clientHeight||0);else{if(e===Tc||Gc(e))return t.getBoundingClientRect();r=i=0,m?(d=(h=t.getBBox()).width,f=h.height):(t.viewBox&&(h=t.viewBox.baseVal)&&(r=h.x||0,i=h.y||0,d=h.width,f=h.height),d||(h="border-box"===(p=Au(t)).boxSizing,d=(parseFloat(p.width)||t.clientWidth||0)+(h?0:parseFloat(p.borderLeftWidth)+parseFloat(p.borderRightWidth)),f=(parseFloat(p.height)||t.clientHeight||0)+(h?0:parseFloat(p.borderTopWidth)+parseFloat(p.borderBottomWidth)))),n=d,o=f}return t===e?{left:r,top:i,width:n-r,height:o-i}:(a=(s=_c(e,!0).multiply(_c(t))).apply({x:r,y:i}),l=s.apply({x:n,y:i}),c=s.apply({x:n,y:o}),u=s.apply({x:r,y:o}),{left:r=Math.min(a.x,l.x,c.x,u.x),top:i=Math.min(a.y,l.y,c.y,u.y),width:Math.max(a.x,l.x,c.x,u.x)-r,height:Math.max(a.y,l.y,c.y,u.y)-i})},Iu=function(t,e,r,n,i,o){var s,a,l,c={};if(e)if(1!==i&&e instanceof Array){if(c.end=s=[],l=e.length,$c(e[0]))for(a=0;a<l;a++)s[a]=fu(e[a],i);else for(a=0;a<l;a++)s[a]=e[a]*i;r+=1.1,n-=1.1}else Uc(e)?c.end=function(r){var n,o,s=e.call(t,r);if(1!==i)if($c(s)){for(o in n={},s)n[o]=s[o]*i;s=n}else s*=i;return s}:c.end=e;return(r||0===r)&&(c.max=r),(n||0===n)&&(c.min=n),o&&(c.velocity=0),c},zu=function t(e){var r;return!(!e||!e.getAttribute||e===kc)&&(!("true"!==(r=e.getAttribute("data-clickable"))&&("false"===r||!cu.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||t(e.parentNode))},Hu=function(t,e){for(var r,n=t.length;n--;)(r=t[n]).ondragstart=r.onselectstart=e?null:Kc,bc.set(r,{lazy:!0,userSelect:e?"text":"none"})},Yu=function t(e){return"fixed"===Au(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)},Bu=function(t,e){t=bc.utils.toArray(t)[0],e=e||{};var r,n,i,o,s,a,l=document.createElement("div"),c=l.style,u=t.firstChild,h=0,d=0,f=t.scrollTop,p=t.scrollLeft,m=t.scrollWidth,g=t.scrollHeight,v=0,y=0,w=0;Bc&&!1!==e.force3D?(s="translate3d(",a="px,0px)"):Jc&&(s="translate(",a="px)"),this.scrollTop=function(t,e){if(!arguments.length)return-this.top();this.top(-t,e)},this.scrollLeft=function(t,e){if(!arguments.length)return-this.left();this.left(-t,e)},this.left=function(r,n){if(!arguments.length)return-(t.scrollLeft+d);var i=t.scrollLeft-p,o=d;if((i>2||i<-2)&&!n)return p=t.scrollLeft,bc.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-p),void(e.onKill&&e.onKill());(r=-r)<0?(d=r-.5|0,r=0):r>y?(d=r-y|0,r=y):d=0,(d||o)&&(this._skip||(c[Jc]=s+-d+"px,"+-h+a),d+v>=0&&(c.paddingRight=d+v+"px")),t.scrollLeft=0|r,p=t.scrollLeft},this.top=function(r,n){if(!arguments.length)return-(t.scrollTop+h);var i=t.scrollTop-f,o=h;if((i>2||i<-2)&&!n)return f=t.scrollTop,bc.killTweensOf(this,{top:1,scrollTop:1}),this.top(-f),void(e.onKill&&e.onKill());(r=-r)<0?(h=r-.5|0,r=0):r>w?(h=r-w|0,r=w):h=0,(h||o)&&(this._skip||(c[Jc]=s+-d+"px,"+-h+a)),t.scrollTop=0|r,f=t.scrollTop},this.maxScrollTop=function(){return w},this.maxScrollLeft=function(){return y},this.disable=function(){for(u=l.firstChild;u;)o=u.nextSibling,t.appendChild(u),u=o;t===l.parentNode&&t.removeChild(l)},this.enable=function(){if((u=t.firstChild)!==l){for(;u;)o=u.nextSibling,l.appendChild(u),u=o;t.appendChild(l),this.calibrate()}},this.calibrate=function(e){var o,s,a,u=t.clientWidth===r;f=t.scrollTop,p=t.scrollLeft,u&&t.clientHeight===n&&l.offsetHeight===i&&m===t.scrollWidth&&g===t.scrollHeight&&!e||((h||d)&&(s=this.left(),a=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),o=Au(t),u&&!e||(c.display="block",c.width="auto",c.paddingRight="0px",(v=Math.max(0,t.scrollWidth-t.clientWidth))&&(v+=parseFloat(o.paddingLeft)+(jc?parseFloat(o.paddingRight):0))),c.display="inline-block",c.position="relative",c.overflow="visible",c.verticalAlign="top",c.boxSizing="content-box",c.width="100%",c.paddingRight=v+"px",jc&&(c.paddingBottom=o.paddingBottom),r=t.clientWidth,n=t.clientHeight,m=t.scrollWidth,g=t.scrollHeight,y=t.scrollWidth-r,w=t.scrollHeight-n,i=l.offsetHeight,c.display="block",(s||a)&&(this.left(s),this.top(a)))},this.content=l,this.element=t,this._skip=!1,this.enable()},ju=function(t){if(Wc()&&document.body){var e=window&&window.navigator;Tc=window,Ec=document,Sc=Ec.documentElement,kc=Ec.body,Cc=eu("div"),zc=!!window.PointerEvent,(Lc=eu("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Ic="grab"===Lc.style.cursor?"grab":"move",qc=e&&-1!==e.userAgent.toLowerCase().indexOf("android"),Fc="ontouchstart"in Sc&&"orientation"in Tc||e&&(e.MaxTouchPoints>0||e.msMaxTouchPoints>0),n=eu("div"),o=(i=eu("div")).style,s=kc,o.display="inline-block",o.position="relative",n.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",n.appendChild(i),s.appendChild(n),r=i.offsetHeight+18>n.scrollHeight,s.removeChild(n),jc=r,Dc=function(t){for(var e=t.split(","),r=(("onpointerdown"in Cc?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in Cc?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(",")),n={},i=4;--i>-1;)n[e[i]]=r[i],n[r[i]]=e[i];try{Sc.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){Oc=1}}))}catch(t){}return n}("touchstart,touchmove,touchend,touchcancel"),yu(Ec,"touchcancel",Kc),yu(Tc,"touchmove",Kc),kc&&kc.addEventListener("touchstart",Kc),yu(Ec,"contextmenu",(function(){for(var t in au)au[t].isPressed&&au[t].endDrag()})),bc=Mc=Vc()}var r,n,i,o,s;bc?(Nc=bc.plugins.inertia,Hc=bc.core.context||function(){},Pc=bc.utils.checkPrefix,Jc=Pc(Jc),Qc=Pc(Qc),Ac=bc.utils.toArray,Yc=bc.core.getStyleSaver,Bc=!!Pc("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")},Xu=function(t){var e,r;function n(e,r){var i;i=t.call(this)||this,Mc||ju(1),e=Ac(e)[0],i.styles=Yc&&Yc(e,"transform,left,top"),Nc||(Nc=bc.plugins.inertia),i.vars=r=fu(r||{}),i.target=e,i.x=i.y=i.rotation=0,i.dragResistance=parseFloat(r.dragResistance)||0,i.edgeResistance=isNaN(r.edgeResistance)?1:parseFloat(r.edgeResistance)||0,i.lockAxis=r.lockAxis,i.autoScroll=r.autoScroll||0,i.lockedAxis=null,i.allowEventDefault=!!r.allowEventDefault,bc.getProperty(e,"x");var o,s,a,l,c,u,h,d,f,p,m,g,v,y,w,_,x,b,T,E,S,k,C,L,M,P,A,O,F,D,R,q,N,I=(r.type||"x,y").toLowerCase(),z=~I.indexOf("x")||~I.indexOf("y"),H=-1!==I.indexOf("rotation"),Y=H?"rotation":z?"x":"left",B=z?"y":"top",j=!(!~I.indexOf("x")&&!~I.indexOf("left")&&"scroll"!==I),X=!(!~I.indexOf("y")&&!~I.indexOf("top")&&"scroll"!==I),W=r.minimumMovement||2,V=xc(i),U=Ac(r.trigger||r.handle||e),$={},G=0,K=!1,J=r.autoScrollMarginTop||40,Q=r.autoScrollMarginRight||40,Z=r.autoScrollMarginBottom||40,tt=r.autoScrollMarginLeft||40,et=r.clickableTest||zu,rt=0,nt=e._gsap||bc.core.getCache(e),it=Yu(e),ot=function(t,r){return parseFloat(nt.get(e,t,r))},st=e.ownerDocument||Ec,at=function(t){return _u(t),t.stopImmediatePropagation&&t.stopImmediatePropagation(),!1},lt=function t(r){if(V.autoScroll&&V.isDragging&&(K||x)){var n,i,o,a,l,c,u,h,f=e,p=15*V.autoScroll;for(K=!1,du.scrollTop=null!=Tc.pageYOffset?Tc.pageYOffset:null!=st.documentElement.scrollTop?st.documentElement.scrollTop:st.body.scrollTop,du.scrollLeft=null!=Tc.pageXOffset?Tc.pageXOffset:null!=st.documentElement.scrollLeft?st.documentElement.scrollLeft:st.body.scrollLeft,a=V.pointerX-du.scrollLeft,l=V.pointerY-du.scrollTop;f&&!i;)n=(i=Cu(f.parentNode))?du:f.parentNode,o=i?{bottom:Math.max(Sc.clientHeight,Tc.innerHeight||0),right:Math.max(Sc.clientWidth,Tc.innerWidth||0),left:0,top:0}:n.getBoundingClientRect(),c=u=0,X&&((h=n._gsMaxScrollY-n.scrollTop)<0?u=h:l>o.bottom-Z&&h?(K=!0,u=Math.min(h,p*(1-Math.max(0,o.bottom-l)/Z)|0)):l<o.top+J&&n.scrollTop&&(K=!0,u=-Math.min(n.scrollTop,p*(1-Math.max(0,l-o.top)/J)|0)),u&&(n.scrollTop+=u)),j&&((h=n._gsMaxScrollX-n.scrollLeft)<0?c=h:a>o.right-Q&&h?(K=!0,c=Math.min(h,p*(1-Math.max(0,o.right-a)/Q)|0)):a<o.left+tt&&n.scrollLeft&&(K=!0,c=-Math.min(n.scrollLeft,p*(1-Math.max(0,a-o.left)/tt)|0)),c&&(n.scrollLeft+=c)),i&&(c||u)&&(Tc.scrollTo(n.scrollLeft,n.scrollTop),xt(V.pointerX+c,V.pointerY+u)),f=n}if(x){var m=V.x,g=V.y;H?(V.deltaX=m-parseFloat(nt.rotation),V.rotation=m,nt.rotation=m+"deg",nt.renderTransform(1,nt)):s?(X&&(V.deltaY=g-s.top(),s.top(g)),j&&(V.deltaX=m-s.left(),s.left(m))):z?(X&&(V.deltaY=g-parseFloat(nt.y),nt.y=g+"px"),j&&(V.deltaX=m-parseFloat(nt.x),nt.x=m+"px"),nt.renderTransform(1,nt)):(X&&(V.deltaY=g-parseFloat(e.style.top||0),e.style.top=g+"px"),j&&(V.deltaX=m-parseFloat(e.style.left||0),e.style.left=m+"px")),!d||r||O||(O=!0,!1===Du(V,"drag","onDrag")&&(j&&(V.x-=V.deltaX),X&&(V.y-=V.deltaY),t(!0)),O=!1)}x=!1},ct=function(t,r){var n,i,o=V.x,a=V.y;e._gsap||(nt=bc.core.getCache(e)),nt.uncache&&bc.getProperty(e,"x"),z?(V.x=parseFloat(nt.x),V.y=parseFloat(nt.y)):H?V.x=V.rotation=parseFloat(nt.rotation):s?(V.y=s.top(),V.x=s.left()):(V.y=parseFloat(e.style.top||(i=Au(e))&&i.top)||0,V.x=parseFloat(e.style.left||(i||{}).left)||0),(T||E||S)&&!r&&(V.isDragging||V.isThrowing)&&(S&&(hu.x=V.x,hu.y=V.y,(n=S(hu)).x!==V.x&&(V.x=n.x,x=!0),n.y!==V.y&&(V.y=n.y,x=!0)),T&&(n=T(V.x))!==V.x&&(V.x=n,H&&(V.rotation=n),x=!0),E&&((n=E(V.y))!==V.y&&(V.y=n),x=!0)),x&<(!0),t||(V.deltaX=V.x-o,V.deltaY=V.y-a,Du(V,"throwupdate","onThrowUpdate"))},ut=function(t,e,r,n){return null==e&&(e=-nu),null==r&&(r=nu),Uc(t)?function(i){var o=V.isPressed?1-V.edgeResistance:1;return t.call(V,(i>r?r+(i-r)*o:i<e?e+(i-e)*o:i)*n)*n}:tu(t)?function(n){for(var i,o,s=t.length,a=0,l=nu;--s>-1;)(o=(i=t[s])-n)<0&&(o=-o),o<l&&i>=e&&i<=r&&(a=s,l=o);return t[a]}:isNaN(t)?function(t){return t}:function(){return t*n}},ht=function(){var t,n,i,o;h=!1,s?(s.calibrate(),V.minX=m=-s.maxScrollLeft(),V.minY=v=-s.maxScrollTop(),V.maxX=p=V.maxY=g=0,h=!0):r.boun
vendor: 3,914 bytes, line 2
2ds&&(t=Ru(r.bounds,e.parentNode),H?(V.minX=m=t.left,V.maxX=p=t.left+t.width,V.minY=v=V.maxY=g=0):Gc(r.bounds.maxX)&&Gc(r.bounds.maxY)?(n=Ru(e,e.parentNode),V.minX=m=Math.round(ot(Y,"px")+t.left-n.left),V.minY=v=Math.round(ot(B,"px")+t.top-n.top),V.maxX=p=Math.round(m+(t.width-n.width)),V.maxY=g=Math.round(v+(t.height-n.height))):(t=r.bounds,V.minX=m=t.minX,V.minY=v=t.minY,V.maxX=p=t.maxX,V.maxY=g=t.maxY),m>p&&(V.minX=p,V.maxX=p=m,m=V.minX),v>g&&(V.minY=g,V.maxY=g=v,v=V.minY),H&&(V.minRotation=m,V.maxRotation=p),h=!0),r.liveSnap&&(i=!0===r.liveSnap?r.snap||{}:r.liveSnap,o=tu(i)||Uc(i),H?(T=ut(o?i:i.rotation,m,p,1),E=null):i.points?S=function(t,e,r,n,i,o,s){return o=o&&o<nu?o*o:nu,Uc(t)?function(a){var l,c,u,h=V.isPressed?1-V.edgeResistance:1,d=a.x,f=a.y;return a.x=d=d>r?r+(d-r)*h:d<e?e+(d-e)*h:d,a.y=f=f>i?i+(f-i)*h:f<n?n+(f-n)*h:f,(l=t.call(V,a))!==a&&(a.x=l.x,a.y=l.y),1!==s&&(a.x*=s,a.y*=s),o<nu&&(c=a.x-d)*c+(u=a.y-f)*u>o&&(a.x=d,a.y=f),a}:tu(t)?function(e){for(var r,n,i,s,a=t.length,l=0,c=nu;--a>-1;)(s=(r=(i=t[a]).x-e.x)*r+(n=i.y-e.y)*n)<c&&(l=a,c=s);return c<=o?t[l]:e}:function(t){return t}}(o?i:i.points,m,p,v,g,i.radius,s?-1:1):(j&&(T=ut(o?i:i.x||i.left||i.scrollLeft,m,p,s?-1:1)),X&&(E=ut(o?i:i.y||i.top||i.scrollTop,v,g,s?-1:1))))},dt=function(){V.isThrowing=!1,Du(V,"throwcomplete","onThrowComplete")},ft=function(){V.isThrowing=!1},pt=function(t,n){var i,o,a,l;t&&Nc?(!0===t&&(i=r.snap||r.liveSnap||{},o=tu(i)||Uc(i),t={resistance:(r.throwResistance||r.resistance||1e3)/(H?10:1)},H?t.rotation=Iu(V,o?i:i.rotation,p,m,1,n):(j&&(t[Y]=Iu(V,o?i:i.points||i.x||i.left,p,m,s?-1:1,n||"x"===V.lockedAxis)),X&&(t[B]=Iu(V,o?i:i.points||i.y||i.top,g,v,s?-1:1,n||"y"===V.lockedAxis)),(i.points||tu(i)&&$c(i[0]))&&(t.linkedProps=Y+","+B,t.radius=i.radius))),V.isThrowing=!0,l=isNaN(r.overshootTolerance)?1===r.edgeResistance?0:1-V.edgeResistance+.2:r.overshootTolerance,t.duration||(t.duration={max:Math.max(r.minDuration||0,"maxDuration"in r?r.maxDuration:2),min:isNaN(r.minDuration)?0===l||$c(t)&&t.resistance>1e3?0:.5:r.minDuration,overshoot:l}),V.tween=a=bc.to(s||e,{inertia:t,data:"_draggable",inherit:!1,onComplete:dt,onInterrupt:ft,onUpdate:r.fastMode?Du:ct,onUpdateParams:r.fastMode?[V,"onthrowupdate","onThrowUpdate"]:i&&i.radius?[!1,!0]:[]}),r.fastMode||(s&&(s._skip=!0),a.render(1e9,!0,!0),ct(!0,!0),V.endX=V.x,V.endY=V.y,H&&(V.endRotation=V.x),a.play(0),ct(!0,!0),s&&(s._skip=!1))):h&&V.applyBounds()},mt=function(t){var r,n=L;L=_c(e.parentNode,!0),t&&V.isPressed&&!L.equals(n||new wc)&&(r=n.inverse().apply({x:a,y:l}),L.apply(r,r),a=r.x,l=r.y),L.equals(iu)&&(L=null)},gt=function(){var t,r,n,i=1-V.edgeResistance,o=it?Eu(st):0,d=it?Tu(st):0;z&&(nt.x=ot(Y,"px")+"px",nt.y=ot(B,"px")+"px",nt.renderTransform()),mt(!1),qu.x=V.pointerX-o,qu.y=V.pointerY-d,L&&L.apply(qu,qu),a=qu.x,l=qu.y,x&&(xt(V.pointerX,V.pointerY),lt(!0)),q=_c(e),s?(ht(),u=s.top(),c=s.left()):(vt()?(ct(!0,!0),ht()):V.applyBounds(),H?(t=e.ownerSVGElement?[nt.xOrigin-e.getBBox().x,nt.yOrigin-e.getBBox().y]:(Au(e)[Qc]||"0 0").split(" "),_=V.rotationOrigin=_c(e).apply({x:parseFloat(t[0])||0,y:parseFloat(t[1])||0}),ct(!0,!0),r=V.pointerX-_.x-o,n=_.y-V.pointerY+d,c=V.x,u=V.y=Math.atan2(n,r)*ru):(u=ot(B,"px"),c=ot(Y,"px"))),h&&i&&(c>p?c=p+(c-p)/i:c<m&&(c=m-(m-c)/i),H||(u>g?u=g+(u-g)/i:u<v&&(u=v-(v-u)/i))),V.startX=c=Zc(c),V.startY=u=Zc(u)},vt=function(){return V.tween&&V.tween.isActive()},yt=function(){!Lc.parentNode||vt()||V.isDragging||Lc.parentNode.removeChild(Lc)},wt=function(t,i){var c;if(!o||V.isPressed||!t||!("mousedown"!==t.type&&"pointerdown"!==t.type||i)&&ou()-rt<30&&Dc[V.pointerEvent.type])R&&t&&o&&_u(t);else{if(M=vt(),N=!1,V.pointerEvent=t,Dc[t.type]?(C=~t.type.indexOf("touch")?t.currentTarget||t.target:st,yu(C,"touchend",bt),yu(C,"touchmove",_t),yu(C,"touchcancel",bt),yu(st,"touchstart",bu)):(C=null,yu(st,"mousemove",_t)),A=null,zc&&C||(yu(st,"mouseup",bt),t&&t.target&&yu(t.target,"mouseup",bt)),
2k=et.call(V,t.target)&&!1===r.dragClickables&&!i)return yu(t.target,"change",bt),Du(V,"pressInit","onPressInit"),Du(V,"press","onPress"),Hu(U,!0),void(R=!1);var u;if(P=!(!C||j===X||!1===V.vars.allowNativeTouchScrolling||V.vars.allowContextMenu&&t&&(t.ctrlKey||t.which>2))&&(j?"y":"x"),(R=!P&&!V.allowEventDefault)&&(_u(t),yu(Tc,"touchforcechange",_u)),t.changedTouches?(t=y=t.changedTouches[0],w=t.identifier):t.pointerId?w=t.pointerId:y=w=null,Xc++,u=lt,su.push(u),1===su.length&&bc.ticker.add(mu),l=V.pointerY=t.pageY,a=V.pointerX=t.pageX,Du(V,"pressInit","onPressInit"),(P||V.autoScroll)&&Mu(e.parentNode),!e.parentNode||!V.autoScroll||s||H||!e.parentNode._gsMaxScrollX||Lc.parentNode||e.getBBox||(Lc.style.width=e.parentNode.scrollWidth+"px",e.parentNode.appendChild(Lc)),gt(),V.tween&&V.tween.kill(),V.isThrowing=!1,bc.killTweensOf(s||e,$,!0),s&&bc.killTweensOf(e,{scrollTo:1},!0),V.tween=V.lockedAxis=null,(r.zIndexBoost||!H&&!s&&!1!==r.zIndexBoost)&&(e.style.zIndex=n.zIndex++),V.isPressed=!0,d=!(!r.onDrag&&!V._listeners.drag),f=!(!r.onMove&&!V._listeners.move),!1!==r.cursor||r.activeCursor)for(c=U.length;--c>-1;)bc.set(U[c],{cursor:r.activeCursor||r.cursor||("grab"===Ic?"grabbing":Ic)});Du(V,"press","onPress")}},_t=function(t){var r,n,i,s,c,u,h=t;if(o&&!Rc&&V.isPressed&&t){if(V.pointerEvent=t,r=t.changedTouches){if((t=r[0])!==y&&t.identifier!==w){for(s=r.length;--s>-1&&(t=r[s]).identifier!==w&&t.target!==e;);if(s<0)return}}else if(t.pointerId&&w&&t.pointerId!==w)return;C&&P&&!A&&(qu.x=t.pageX-(it?Eu(st):0),qu.y=t.pageY-(it?Tu(st):0),L&&L.apply(qu,qu),n=qu.x,i=qu.y,((c=Math.abs(n-a))!==(u=Math.abs(i-l))&&(c>W||u>W)||qc&&P===A)&&(A=c>u&&j?"x":"y",P&&A!==P&&yu(Tc,"touchforcechange",_u),!1!==V.vars.lockAxisOnTouchScroll&&j&&X&&(V.lockedAxis="x"===A?"y":"x",Uc(V.vars.onLockAxis)&&V.vars.onLockAxis.call(V,h)),qc&&P===A))?bt(h):(V.allowEventDefault||P&&(!A||P===A)||!1===h.cancelable?R&&(R=!1):(_u(h),R=!0),V.autoScroll&&(K=!0),xt(t.pageX,t.pageY,f))}else R&&t&&o&&_u(t)},xt=function(t,e,r){var n,i,o,s,d,f,y=1-V.dragResistance,w=1-V.edgeResistance,b=V.pointerX,k=V.pointerY,C=u,M=V.x,P=V.y,A=V.endX,O=V.endY,F=V.endRotation,D=x;V.pointerX=t,V.pointerY=e,it&&(t-=Eu(st),e-=Tu(st)),H?(s=Math.atan2(_.y-e,t-_.x)*ru,(d=V.y-s)>180?(u-=360,V.y=s):d<-180&&(u+=360,V.y=s),V.x!==c||Math.max(Math.abs(a-t),Math.abs(l-e))>W?(V.y=s,o=c+(u-s)*y):o=c):(L&&(f=t*L.a+e*L.c+L.e,e=t*L.b+e*L.d+L.f,t=f),(i=e-l)<W&&i>-W&&(i=0),(n=t-a)<W&&n>-W&&(n=0),(V.lockAxis||V.lockedAxis)&&(n||i)&&((f=V.lockedAxis)||(V.lockedAxis=f=j&&Math.abs(n)>Math.abs(i)?"y":X?"x":null,f&&Uc(V.vars.onLockAxis)&&V.vars.onLockAxis.call(V,V.pointerEvent)),"y"===f?i=0:"x"===f&&(n=0)),o=Zc(c+n*y),s=Zc(u+i*y)),(T||E||S)&&(V.x!==o||V.y!==s&&!H)&&(S&&(hu.x=o,hu.y=s,f=S(hu),o=Zc(f.x),s=Zc(f.y)),T&&(o=Zc(T(o))),E&&(s=Zc(E(s)))),h&&(o>p?o=p+Math.round((o-p)*w):o<m&&(o=m+Math.round((o-m)*w)),H||(s>g?s=Math.round(g+(s-g)*w):s<v&&(s=Math.round(v+(s-v)*w)))),(V.x!==o||V.y!==s&&!H)&&(H?(V.endRotation=V.x=V.endX=o,x=!0):(X&&(V.y=V.endY=s,x=!0),j&&(V.x=V.endX=o,x=!0)),r&&!1===Du(V,"move","onMove")?(V.pointerX=b,V.pointerY=k,u=C,V.x=M,V.y=P,V.endX=A,V.endY=O,V.endRotation=F,x=D):!V.isDragging&&V.isPressed&&(V.isDragging=N=!0,Du(V,"dragstart","onDragStart")))},bt=function t(n,i){if(o&&V.isPressed&&(!n||null==w||i||!(n.pointerId&&n.pointerId!==w&&n.target!==e||n.changedTouches&&!function(t,e){for(var r=t.length;r--;)if(t[r].identifier===e)return!0}(n.changedTouches,w)))){V.isPressed=!1;var s,a,l,c,u,h=n,d=V.isDragging,f=V.vars.allowContextMenu&&n&&(n.ctrlKey||n.which>2),p=bc.delayedCall(.001,yt);if(C?(wu(C,"touchend",t),wu(C,"touchmove",_t),wu(C,"touchcancel",t),wu(st,"touchstart",bu)):wu(st,"mousemove",_t),wu(Tc,"touchforcechange",_u),zc&&C||(wu(st,"mouseup",t),n&&n.target&&wu(n.target,"mouseup",t)),x=!1,d&&(G=uu=ou(),V.isDragging=!1),vu(lt),k&&!f)return n&&(wu(n.target,"change",t),V.pointerEvent=h),Hu(U,!1),Du(V,"release","onRelease"),Du(V,"click","onClick"),void(k=!1);for(a=U.length;--a>-1;)Pu(U[a],"cursor",r.cursor||(!1!==r.cursor?Ic:null));if(Xc--,n){if((s=n.changedTouches)&&(n=s[0])!==y&&n.identifier!==w){for(a=s.length;--a>-1&&(n=s[a]).identifier!==w&&n.target!==e;);if(a<0&&!i)return}V.pointerEvent=h,V.pointerX=n.pageX,V.pointerY=n.pageY}return f&&h?(_u(h),R=!0,Du(V,"release","onRelease")):h&&!d?(R=!1,M&&(r.snap||r.bounds)&&pt(r.inertia||r.throwProps),Du(V,"release","onRelease"),qc&&"touchmove"===h.type||-1!==h.type.indexOf("cancel")||(Du(V,"click","onClick"),ou()-rt<300&&Du(V,"doubleclick","onDoubleClick"),c=h.target||e,rt=ou(),u=function(){rt===F||!V.enabled()||V.isPressed||h.defaultPrevented||(c.click?c.click():st.createEvent&&((l=st.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,Tc,1,V.pointerEvent.
vendor: 4,482 bytes, line 2
2screenX,V.pointerEvent.screenY,V.pointerX,V.pointerY,!1,!1,!1,!1,0,null),c.dispatchEvent(l)))},qc||h.defaultPrevented||bc.delayedCall(.05,u))):(pt(r.inertia||r.throwProps),V.allowEventDefault||!h||!1===r.dragClickables&&et.call(V,h.target)||!d||P&&(!A||P!==A)||!1===h.cancelable?R=!1:(R=!0,_u(h)),Du(V,"release","onRelease")),vt()&&p.duration(V.tween.duration()),d&&Du(V,"dragend","onDragEnd"),!0}R&&n&&o&&_u(n)},Tt=function(t){if(t&&V.isDragging&&!s){var r=t.target||e.parentNode,n=r.scrollLeft-r._gsScrollX,i=r.scrollTop-r._gsScrollY;(n||i)&&(L?(a-=n*L.a+i*L.c,l-=i*L.d+n*L.b):(a-=n,l-=i),r._gsScrollX+=n,r._gsScrollY+=i,xt(V.pointerX,V.pointerY))}},Et=function(t){var e=ou(),r=e-rt<100,n=e-G<50,i=r&&F===rt,o=V.pointerEvent&&V.pointerEvent.defaultPrevented,s=r&&D===rt,a=t.isTrusted||null==t.isTrusted&&r&&i;if((i||n&&!1!==V.vars.suppressClickOnDrag)&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),r&&(!V.pointerEvent||!V.pointerEvent.defaultPrevented)&&(!i||a&&!s))return a&&i&&(D=rt),void(F=rt);(V.isPressed||n||r)&&(a&&t.detail&&r&&!o||_u(t)),r||n||N||(t&&t.target&&(V.pointerEvent=t),Du(V,"click","onClick"))},St=function(t){return L?{x:t.x*L.a+t.y*L.c+L.e,y:t.x*L.b+t.y*L.d+L.f}:{x:t.x,y:t.y}};return(b=n.get(e))&&b.kill(),i.startDrag=function(t,r){var n,i,o,s;wt(t||V.pointerEvent,!0),r&&!V.hitTest(t||V.pointerEvent)&&(n=Fu(t||V.pointerEvent),i=Fu(e),o=St({x:n.left+n.width/2,y:n.top+n.height/2}),s=St({x:i.left+i.width/2,y:i.top+i.height/2}),a-=o.x-s.x,l-=o.y-s.y),V.isDragging||(V.isDragging=N=!0,Du(V,"dragstart","onDragStart"))},i.drag=_t,i.endDrag=function(t){return bt(t||V.pointerEvent,!0)},i.timeSinceDrag=function(){return V.isDragging?0:(ou()-G)/1e3},i.timeSinceClick=function(){return(ou()-rt)/1e3},i.hitTest=function(t,e){return n.hitTest(V.target,t,e)},i.getDirection=function(t,r){var n,i,o,s,a,l,h="velocity"===t&&Nc?t:$c(t)&&!H?"element":"start";return"element"===h&&(a=Fu(V.target),l=Fu(t)),n="start"===h?V.x-c:"velocity"===h?Nc.getVelocity(e,Y):a.left+a.width/2-(l.left+l.width/2),H?n<0?"counter-clockwise":"clockwise":(r=r||2,i="start"===h?V.y-u:"velocity"===h?Nc.getVelocity(e,B):a.top+a.height/2-(l.top+l.height/2),s=(o=Math.abs(n/i))<1/r?"":n<0?"left":"right",o<r&&(""!==s&&(s+="-"),s+=i<0?"up":"down"),s)},i.applyBounds=function(t,n){var i,o,s,a,l,c;if(t&&r.bounds!==t)return r.bounds=t,V.update(!0,n);if(ct(!0),ht(),h&&!vt()){if(i=V.x,o=V.y,i>p?i=p:i<m&&(i=m),o>g?o=g:o<v&&(o=v),(V.x!==i||V.y!==o)&&(s=!0,V.x=V.endX=i,H?V.endRotation=i:V.y=V.endY=o,x=!0,lt(!0),V.autoScroll&&!V.isDragging))for(Mu(e.parentNode),a=e,du.scrollTop=null!=Tc.pageYOffset?Tc.pageYOffset:null!=st.documentElement.scrollTop?st.documentElement.scrollTop:st.body.scrollTop,du.scrollLeft=null!=Tc.pageXOffset?Tc.pageXOffset:null!=st.documentElement.scrollLeft?st.documentElement.scrollLeft:st.body.scrollLeft;a&&!c;)l=(c=Cu(a.parentNode))?du:a.parentNode,X&&l.scrollTop>l._gsMaxScrollY&&(l.scrollTop=l._gsMaxScrollY),j&&l.scrollLeft>l._gsMaxScrollX&&(l.scrollLeft=l._gsMaxScrollX),a=l;V.isThrowing&&(s||V.endX>p||V.endX<m||V.endY>g||V.endY<v)&&pt(r.inertia||r.throwProps,s)}return V},i.update=function(t,r,n){if(r&&V.isPressed){var i=_c(e),o=q.apply({x:V.x-c,y:V.y-u}),s=_c(e.parentNode,!0);s.apply({x:i.e-o.x,y:i.f-o.y},o),V.x-=o.x-s.e,V.y-=o.y-s.f,lt(!0),gt()}var a=V.x,l=V.y;return mt(!r),t?V.applyBounds():(x&&n&<(!0),ct(!0)),r&&(xt(V.pointerX,V.pointerY),x&<(!0)),V.isPressed&&!r&&(j&&Math.abs(a-V.x)>.01||X&&Math.abs(l-V.y)>.01&&!H)&>(),V.autoScroll&&(Mu(e.parentNode,V.isDragging),K=V.isDragging,lt(!0),ku(e,Tt),Su(e,Tt)),V},i.enable=function(t){var n,i,a,l={lazy:!0};if(!1!==r.cursor&&(l.cursor=r.cursor||Ic),bc.utils.checkPrefix("touchCallout")&&(l.touchCallout="none"),"soft"!==t){for(pu(U,j===X?"none":r.allowNativeTouchScrolling&&e.scrollHeight===e.clientHeight==(e.scrollWidth===e.clientHeight)||r.allowEventDefault?"manipulation":j?"pan-y":"pan-x"),i=U.length;--i>-1;)a=U[i],zc||yu(a,"mousedown",wt),yu(a,"touchstart",wt),yu(a,"click",Et,!0),bc.set(a,l),a.getBBox&&a.ownerSVGElement&&j!==X&&bc.set(a.ownerSVGElement,{touchAction:r.allowNativeTouchScrolling||r.allowEventDefault?"manipulation":j?"pan-y":"pan-x"}),r.allowContextMenu||yu(a,"contextmenu",at);Hu(U,!1)}return Su(e,Tt),o=!0,Nc&&"soft"!==t&&Nc.track(s||e,z?"x,y":H?"rotation":"top,left"),e._gsDragID=n=e._gsDragID||"d"+lu++,au[n]=V,s&&(s.enable(),s.element._gsDragID=n),(r.bounds||H)&>(),r.bounds&&V.applyBounds(),V},i.disable=function(t){for(var r,n=V.isDragging,i=U.length;--i>-1;
2)Pu(U[i],"cursor",null);if("soft"!==t){for(pu(U,null),i=U.length;--i>-1;)r=U[i],Pu(r,"touchCallout",null),wu(r,"mousedown",wt),wu(r,"touchstart",wt),wu(r,"click",Et,!0),wu(r,"contextmenu",at);Hu(U,!0),C&&(wu(C,"touchcancel",bt),wu(C,"touchend",bt),wu(C,"touchmove",_t)),wu(st,"mouseup",bt),wu(st,"mousemove",_t)}return ku(e,Tt),o=!1,Nc&&"soft"!==t&&(Nc.untrack(s||e,z?"x,y":H?"rotation":"top,left"),V.tween&&V.tween.kill()),s&&s.disable(),vu(lt),V.isDragging=V.isPressed=k=!1,n&&Du(V,"dragend","onDragEnd"),V},i.enabled=function(t,e){return arguments.length?t?V.enable(e):V.disable(e):o},i.kill=function(){return V.isThrowing=!1,V.tween&&V.tween.kill(),V.disable(),bc.set(U,{clearProps:"userSelect"}),delete au[e._gsDragID],V},i.revert=function(){this.kill(),this.styles&&this.styles.revert()},~I.indexOf("scroll")&&(s=i.scrollProxy=new Bu(e,function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}({onKill:function(){V.isPressed&&bt(null)}},r)),e.style.overflowY=X&&!Fc?"auto":"hidden",e.style.overflowX=j&&!Fc?"auto":"hidden",e=s.content),H?$.rotation=1:(j&&($[Y]=1),X&&($[B]=1)),nt.force3D=!("force3D"in r)||r.force3D,Hc(xc(i)),i.enable(),i}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.register=function(t){bc=t,ju()},n.create=function(t,e){return Mc||ju(!0),Ac(t).map((function(t){return new n(t,e)}))},n.get=function(t){return au[(Ac(t)[0]||{})._gsDragID]},n.timeSinceDrag=function(){return(ou()-uu)/1e3},n.hitTest=function(t,e,r){if(t===e)return!1;var n,i,o,s=Fu(t),a=Fu(e),l=s.top,c=s.left,u=s.right,h=s.bottom,d=s.width,f=s.height,p=a.left>u||a.right<c||a.top>h||a.bottom<l;return p||!r?!p:(o=-1!==(r+"").indexOf("%"),r=parseFloat(r)||0,(n={left:Math.max(c,a.left),top:Math.max(l,a.top)}).width=Math.min(u,a.right)-n.left,n.height=Math.min(h,a.bottom)-n.top,!(n.width<0||n.height<0)&&(o?(r*=.01,(i=n.width*n.height)>=d*f*r||i>=a.width*a.height*r):n.width>r&&n.height>r))},n}(function(){function t(t){this._listeners={},this.target=t||this}var e=t.prototype;return e.addEventListener=function(t,e){var r=this._listeners[t]||(this._listeners[t]=[]);~r.indexOf(e)||r.push(e)},e.removeEventListener=function(t,e){var r=this._listeners[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},e.dispatchEvent=function(t){var e,r=this;return(this._listeners[t]||[]).forEach((function(n){return!1===n.call(r,{type:t,target:r.target})&&(e=!1)})),e},t}());!function(t,e){for(var r in e)r in t||(t[r]=e[r])}(Xu.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),Xu.zIndex=1e3,Xu.version="3.13.0",Vc()&&bc.registerPlugin(Xu);var Wu,Vu,Uu,$u,Gu,Ku,Ju,Qu,Zu=function(){return Wu||"undefined"!=typeof window&&(Wu=window.gsap)},th={},eh=function(t){return Qu(t).id},rh=function(t){return th[eh("string"==typeof t?Uu(t)[0]:t)]},nh=function(t){var e,r=Gu;if(t-Ju>=.05)for(Ju=t;r;)((e=r.g(r.t,r.p))!==r.v1||t-r.t1>.2)&&(r.v2=r.v1,r.v1=e,r.t2=r.t1,r.t1=t),r=r._next},ih={deg:360,rad:2*Math.PI},oh=function(){(Wu=Zu())&&(Uu=Wu.utils.toArray,$u=Wu.utils.getUnit,Qu=Wu.core.getCache,Ku=Wu.ticker,Vu=1)},sh=function(t,e,r,n){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=ih[r||$u(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=Ku.time,n&&(this._next=n,n._prev=this)},ah=function(){function t(t,e){Vu||oh(),this.target=Uu(t)[0],th[eh(this.target)]=this,this._props={},e&&this.add(e)}t.register=function(t){Wu=t,oh()};var e=t.prototype;return e.get=function(t,e){var r,n,i,o=this._props[t]||console.warn("Not tracking "+t+" velocity.");return r=parseFloat(e?o.v1:o.g(o.t,o.p))-parseFloat(o.v2),(n=o.rCap)&&(r%=n)!=r%(n/2)&&(r=r<0?r+n:r-n),i=r/((e?o.t1:Ku.time)-o.t2),Math.round(1e4*i)/1e4},e.getAll=function(){var t,e={},r=this._props;for(t in r)e[t]=this.get(t);return e},e.isTracking=function(t){return t in this._props},e.add=function(t,e){t in this._props||(Gu||(Ku.add(nh),Ju=Ku.time),Gu=this._props[t]=new sh(this.target,t,e,Gu))},e.remove=function(t){var e,r,n=this._props[t];n&&(e=n._prev,r=n._next,e&&(e._next=r),r?r._prev=e:Gu===n&&(Ku.remove(nh),Gu=0),delete this._props[t])},e.kill=function(t){for(var e in this._props)this.remove(e);t||delete th[eh(this.target)]},t.track=function(e,r,n){Vu||oh();for(var i,o,s=[],a=Uu(e),l=r.split(","),c=(n||"").split(","),u=a.length;u--;){for(i=rh(a[u])||new t(a[u]),o=l.length;o--;)i.add(l[o],c[o]||c[0]);s.push(i)}return s},t.untrack=function(t,e){var r=(e||"").split(",");Uu(t).forEach((function(t){var e=rh(t);e&&(r.length?r.forEach((function(t){return e.remove(t)})):e.kill(1))}))},t.isTracking=function(t,e){var r=rh(t);return r&&r.isTracking(e)},t.getVelocity=function(t,e){var r=rh(t);return r&&r.isTracking(e)?r.get(e):console.warn("Not tracking velocity of "+e)},t}();ah.getByTarget=rh,Zu()&&Wu.registerPlugin(ah);var lh,ch,uh,hh,dh,fh,ph,mh,gh,vh,yh,wh,_h,xh,bh=ah.getByTarget,Th=function(){return lh||"undefined"!=typeof window&&(lh=window.gsap)&&lh.registerPlugin&&lh},Eh=function(t){return"number"==typeof t},Sh=function(t){return"object"==typeof t},kh=function(t){return"function"==typeof t},Ch=Array.isArray,Lh=function(t){return t},Mh=1e10,Ph=function(t,e,r){for(var n in e)n in t||n===r||(t[n]=e[n]);return t},Ah=function t(e){var r,n,i={};for(r in e)i[r]=Sh(n=e[r])&&!Ch(n)?t(n):n;return i},Oh=function(t,e,r,n,i){var o,s,a,l,c=e.length,u=0,h=Mh;if(Sh(t)){for(;c--;){for(a in o=e[c],s=0,t)s+=(l=o[a]-t[a])*l;s<h&&(u=c,h=s)}if((i||Mh)<Mh&&i<Math.sqrt(h))return t}else for(;c--;)(s=(o=e[c])-t)<0&&(s=-s),s<h&&o>=n&&o<=r&&(u=c,h=s);return e[u]}
2,Fh=function(t,e,r,n,i,o,s){if("auto"===t.end)return t;var a,l,c=t.end;if(r=isNaN(r)?Mh:r,n=isNaN(n)?-1e10:n,Sh(e)){if(a=e.calculated?e:(kh(c)?c(e,s):Oh(e,c,r,n,o))||e,!e.calculated){for(l in a)e[l]=a[l];e.calculated=!0}a=a[i]}else a=kh(c)?c(e,s):Ch(c)?Oh(e,c,r,n,o):parseFloat(c);return a>r?a=r:a<n&&(a=n),{max:a,min:a,unitFactor:t.unitFactor}},Dh=function(t,e,r){return isNaN(t[e])?r:+t[e]},Rh=function(t,e){return.05*e*t/vh},qh=function(t,e,r){return Math.abs((e-t)*vh/r/.05)},Nh={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},Ih=function(t,e,r,n){if(e.linkedProps){var i,o,s,a,l,c,u=e.linkedProps.split(","),h={};for(i=0;i<u.length;i++)(s=e[o=u[i]])&&(a=Eh(s.velocity)?s.velocity:(l=l||bh(t))&&l.isTracking(o)?l.get(o):0,c=Math.abs(a/Dh(s,"resistance",n)),h[o]=parseFloat(r(t,o))+Rh(a,c));return h}},zh=function(){(lh=Th())&&(uh=lh.parseEase,hh=lh.utils.toArray,ph=lh.utils.getUnit,gh=lh.core.getCache,yh=lh.utils.clamp,_h=lh.core.getStyleSaver,xh=lh.core.reverting||function(){},dh=uh("power3"),vh=dh(.05),mh=lh.core.PropTween,lh.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),fh=lh.config(),lh.registerPlugin(ah),ch=1)},Hh={version:"3.13.0",name:"inertia",register:function(t){lh=t,zh()},init:function(t,e,r,n,i){ch||zh();var o=bh(t);if("auto"===e){if(!o)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=o.getAll()}this.styles=_h&&"object"==typeof t.style&&_h(t),this.target=t,this.tween=r,wh=e;var s,a,l,c,u,h,d,f,p,m=t._gsap,g=m.get,v=e.duration,y=Sh(v),w=e.preventOvershoot||y&&0===v.overshoot,_=Dh(e,"resistance",fh.resistance),x=Eh(v)?v:function(t,e,r,n,i,o){if(void 0===r&&(r=10),void 0===n&&(n=.2),void 0===i&&(i=1),void 0===o&&(o=0),"string"==typeof t&&(t=hh(t)[0]),!t)return 0;var s,a,l,c,u,h,d,f,p,m,g=0,v=Mh,y=e.inertia||e,w=gh(t).get,_=Dh(y,"resistance",fh.resistance);for(s in m=Ih(t,y,w,_),y)Nh[s]||(a=y[s],Sh(a)||((f=f||bh(t))&&f.isTracking(s)?a=Eh(a)?{velocity:a}:{velocity:f.get(s)}:(c=+a||0,l=Math.abs(c/_))),Sh(a)&&(c=Eh(a.velocity)?a.velocity:(f=f||bh(t))&&f.isTracking(s)?f.get(s):0,l=yh(n,r,Math.abs(c/Dh(a,"resistance",_))),h=(u=parseFloat(w(t,s))||0)+Rh(c,l),"end"in a&&(a=Fh(a,m&&s in m?m:h,a.max,a.min,s,y.radius,c),o&&(wh===e&&(wh=y=Ah(e)),y[s]=Ph(a,y[s],"end"))),"max"in a&&h>+a.max+1e-10?(p=a.unitFactor||fh.unitFactors[s]||1,(d=u>a.max&&a.min!==a.max||c*p>-15&&c*p<45?n+.1*(r-n):qh(u,a.max,c))+i<v&&(v=d+i)):"min"in a&&h<+a.min-1e-10&&(p=a.unitFactor||fh.unitFactors[s]||1,(d=u<a.min&&a.min!==a.max||c*p>-45&&c*p<15?n+.1*(r-n):qh(u,a.min,c))+i<v&&(v=d+i)),d>g&&(g=d)),l>g&&(g=l));return g>v&&(g=v),g>r?r:g<n?n:g}(t,e,y&&v.max||10,y&&v.min||.2,y&&"overshoot"in v?+v.overshoot:w?0:1,!0);for(s in e=wh,wh=0,p=Ih(t,e,g,_),e)Nh[s]||(a=e[s],kh(a)&&(a=a(n,t,i)),Eh(a)?u=a:Sh(a)&&!isNaN(a.velocity)?u=+a.velocity:o&&o.isTracking(s)?u=o.get(s):console.warn("ERROR: No velocity was defined for "+t+" property: "+s),h=Rh(u,x),f=0,l=g(t,s),c=ph(l),l=parseFloat(l),Sh(a)&&(d=l+h,"end"in a&&(a=Fh(a,p&&s in p?p:d,a.max,a.min,s,e.radius,u)),"max"in a&&+a.max<d?w||a.preventOvershoot?h=a.max-l:f=a.max-l-h:"min"in a&&+a.min>d&&(w||a.preventOvershoot?h=a.min-l:f=a.min-l-h)),this._props.push(s),this.styles&&this.styles.save(s),this._pt=new mh(this._pt,t,s,l,0,Lh,0,m.set(t,s,this)),this._pt.u=c||0,this._pt.c1=h,this._pt.c2=f);return r.duration(x),1},render:function(t,e){var r,n=e._pt;if((t=dh(e.tween._time/e.tween._dur))||!xh())for(;n;)n.set(n.t,n.p,(r=n.s+n.c1*t+n.c2*t*t,Math.round(1e4*r)/1e4+n.u),n.d,t),n=n._next;else e.styles.revert()}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach((function(t){return Hh[t]=ah[t]})),Th()&&lh.registerPlugin(Hh),bi.registerPlugin(Xu,Hh),bi.registerPlugin(Ma);class Yh{constructor(){this.currentFilters={post_type:this.detectPostType(),taxonomy:"",term_slug:"",search:"",paged:1,sort_by:"menu-order"},this.isLoading=!1,this.ajaxUrl=window.filterAjax?.ajaxurl||"/wp-admin/admin-ajax.php",this.nonce=window.filterAjax?.nonce||"",this.initialPostType=this.currentFilters.post_type}detectPostType(){const t=window.location.pathname;return t.includes("/events")?"cpt-events":t.includes("/resources")||t.includes("/technical-content")?"cpt-resources":t.includes("/blog")||t.includes("/news")?"cpt-articles":t.includes("/team")?"cpt-team":document.querySelector('[data-post-type="cpt-events"]')?"cpt-events":document.querySelector('[data-post-type="cpt-resources"]')?"cpt-resources":document.querySelector('[data-post-type="cpt-articles"]')?"cpt-articles":document.querySelector('[data-post-type="cpt-team"]')?"cpt-team":window.filterAjax?.post_type||"cpt-articles"}init(){const t=document.querySelector("[data-search-input]"),e=document.querySelector("[data-taxonomy]"),r=document.querySelector("[data-posts-container]");(t||e||r)&&(this.checkPostTypeChange(),document.querySelectorAll("[data-custom-pagination]").forEach((t=>{t.addEventListener("tabChanged",(e=>{const{index:r,tab:n}=e.detail;"team-departments"===t.getAttribute("data-custom-pagination")?this.handleTeamDepartmentChange(r):this.switchTaxonomyGroup(r)}))}
2)),this.initTaxonomyButtons(),this.initSearch(),this.initClearButton(),this.initSortDropdown(),this.initPopState(),this.initFromURL(),this.initTeamDepartments())}checkPostTypeChange(){const t=this.detectPostType();this.initialPostType!==t&&(this.resetFilters(),this.initialPostType=t,this.currentFilters.post_type=t)}resetFilters(){this.currentFilters={post_type:this.detectPostType(),taxonomy:"",term_slug:"",search:"",paged:1,sort_by:"menu-order"},this.clearActiveFilters();const t=document.querySelector("[data-search-input]");if(t&&(t.value=""),window.location.search){const t=window.location.pathname;window.history.replaceState({filters:this.currentFilters},"",t)}}switchTaxonomyGroup(t){document.querySelectorAll("[data-taxonomy-group]").forEach((t=>{bi.to(t,{opacity:0,duration:.2,onComplete:()=>{t.style.display="none"}})})),setTimeout((()=>{let e;e="cpt-resources"===this.currentFilters.post_type?0===t?"tax-resource-type":"tax-resource-topic":0===t?"tax-news-type":"tax-news-topic";const r=document.querySelector(`[data-taxonomy-group="${e}"]`);if(r){r.style.display="flex",bi.fromTo(r,{opacity:0},{opacity:1,duration:.3}),this.clearActiveFilters();const t=r.querySelector("[data-show-all]");t&&(t.classList.add("active","bg-primary-1","text-white"),t.classList.remove("border-primary-1"))}}),200)}initTeamDepartments(){if("cpt-team"!==this.currentFilters.post_type)return;const t=document.querySelector('[data-custom-pagination="team-departments"]');if(!t)return;this.mainContainer=document.querySelector("[data-main-container]");const e=t.getAttribute("data-department-names");if(e&&"null"!==e)try{const t=JSON.parse(e);this.departments=t.map(((t,e)=>({term_id:e+1,name:t,slug:this.createSlug(t)})))}catch(t){return void console.error("Failed to parse department names:",t)}const r=this.departments?.[0];r&&(this.currentFilters.taxonomy="tax-department",this.currentFilters.term_slug=r.slug,this.currentFilters.posts_per_page=-1,this.showDepartmentInfo(r.slug),this.executeFilter(!1))}createSlug(t){return t.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").trim()}showDepartmentInfo(t){if(!this.mainContainer)return;this.mainContainer.querySelectorAll("[data-department-info]").forEach((t=>{t.style.display="none"}));const e=this.mainContainer.querySelector(`[data-department-info="${t}"]`);e&&(e.style.display="block")}handleTeamDepartmentChange(t){const e=(this.departments||[])[t];e&&(this.showDepartmentInfo(e.slug),this.currentFilters.taxonomy="tax-department",this.currentFilters.term_slug=e.slug,this.currentFilters.paged=1,this.currentFilters.posts_per_page=-1,this.executeFilter())}initTaxonomyButtons(){const t=document.querySelectorAll("[data-taxonomy][data-term-id]"),e=document.querySelectorAll("[data-show-all]");t.forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault();const e=t.target.getAttribute("data-taxonomy"),r=t.target.getAttribute("data-term-slug");t.target.classList.contains("active")?this.removeFilter(t.target):this.addFilter(t.target,e,r)}))})),e.forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault(),this.clearCurrentTaxonomyFilter()}))}))}clearCurrentTaxonomyFilter(){this.clearActiveFilters();const t=document.querySelector('[data-taxonomy-group]:not([style*="display: none"])');if(t){const e=t.querySelector("[data-show-all]");e&&(e.classList.add("active","bg-primary-1","text-white"),e.classList.remove("border-primary-1"))}this.currentFilters.taxonomy="",this.currentFilters.term_slug="",this.currentFilters.paged=1,this.executeFilter()}initSearch(){const t=document.querySelector("[data-search-input]");if(t){let e;t.addEventListener("input",(t=>{clearTimeout(e),e=setTimeout((()=>{this.currentFilters.search=t.target.value,this.currentFilters.paged=1,this.executeFilter()}),500)})),t.addEventListener("keydown",(t=>{"Enter"===t.key&&(t.preventDefault(),clearTimeout(e),this.currentFilters.search=t.target.value,this.currentFilters.paged=1,this.executeFilter())}))}const e=document.querySelector("[data-search-clear]");e&&e.addEventListener("click",(()=>{const t=document.querySelector("[data-search-input]");t&&(t.value="",this.currentFilters.search="",this.currentFilters.paged=1,this.executeFilter())}))}initClearButton(){const t=document.querySelector("[data-clear-filters]");t&&t.addEventListener("click",(t=>{t.preventDefault(),this.clearAllFilters()}))}clearAllFilters(){this.currentFilters.taxonomy="",this.currentFilters.term_slug="",this.currentFilters.search="",this.currentFilters.paged=1,this.currentFilters.sort_by="menu-order",this.clearActiveFilters();const t=document.querySelector("[data-search-input]");t&&(t.value="");const e=document.querySelector("[data-sort-label]");e&&(e.textContent="Sort by"),this.executeFilter()}initSortDropdown(){const t=document.querySelector("[data-sort-trigger]"),e=document.querySelector("[data-sort-menu]"),r=(document.querySelector("[data-sort-icon]"),document.querySelector("[data-sort-label]")),n=document.querySelectorAll("[data-sort-option]");t&&e&&(t.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e.classList.contains("hidden")?this.openSortDropdown():this.closeSortDropdown()}
2)),n.forEach((t=>{t.addEventListener("click",(e=>{e.preventDefault();const n=t.getAttribute("data-sort-option"),i=t.textContent.trim();this.currentFilters.sort_by=n,this.currentFilters.paged=1,r&&(r.textContent=i),this.closeSortDropdown(),this.executeFilter()}))})),document.addEventListener("click",(t=>{const e=document.querySelector("[data-sort-dropdown]");e&&!e.contains(t.target)&&this.closeSortDropdown()})))}openSortDropdown(){const t=document.querySelector("[data-sort-menu]"),e=document.querySelector("[data-sort-icon]");t&&t.classList.remove("hidden"),e&&(e.style.transform="rotate(180deg)")}closeSortDropdown(){const t=document.querySelector("[data-sort-menu]"),e=document.querySelector("[data-sort-icon]");t&&t.classList.add("hidden"),e&&(e.style.transform="rotate(0deg)")}initPopState(){window.addEventListener("popstate",(t=>{t.state&&t.state.filters&&(this.currentFilters={...t.state.filters},this.executeFilter(!1),this.updateUIFromFilters())}))}initFromURL(){const t=new URLSearchParams(window.location.search),e=t.get("search"),r=parseInt(t.get("paged"))||1,n=t.get("type"),i=t.get("topic");n&&"cpt-events"!==this.currentFilters.post_type?("cpt-resources"===this.currentFilters.post_type?this.currentFilters.taxonomy="tax-resource-type":this.currentFilters.taxonomy="tax-news-type",this.currentFilters.term_slug=n):i&&"cpt-events"!==this.currentFilters.post_type&&("cpt-resources"===this.currentFilters.post_type?this.currentFilters.taxonomy="tax-resource-topic":this.currentFilters.taxonomy="tax-news-topic",this.currentFilters.term_slug=i),e&&(this.currentFilters.search=e),this.currentFilters.paged=r,(this.currentFilters.taxonomy||e||r>1)&&(this.executeFilter(!1),this.updateUIFromFilters())}addFilter(t,e,r){this.clearActiveFilters(),t.classList.add("active","bg-primary-1","text-white"),t.classList.remove("border-primary-1"),this.currentFilters.taxonomy=e,this.currentFilters.term_slug=r,this.currentFilters.paged=1,this.executeFilter()}removeFilter(t){t.classList.remove("active","bg-primary-1","text-white"),t.classList.add("border-primary-1"),this.currentFilters.taxonomy="",this.currentFilters.term_slug="",this.currentFilters.paged=1,this.executeFilter()}clearActiveFilters(){document.querySelectorAll("[data-taxonomy].active, [data-show-all].active").forEach((t=>{t.classList.remove("active","bg-primary-1","text-white"),t.classList.add("border-primary-1")}))}updateUIFromFilters(){if(this.clearActiveFilters(),this.currentFilters.taxonomy&&this.currentFilters.term_slug){const t=document.querySelector(`[data-taxonomy="${this.currentFilters.taxonomy}"][data-term-slug="${this.currentFilters.term_slug}"]`);t&&(t.classList.add("active","bg-primary-1","text-white"),t.classList.remove("border-primary-1"))}const t=document.querySelector("[data-search-input]");t&&this.currentFilters.search&&(t.value=this.currentFilters.search)}executeFilter(t=!0){if(this.isLoading)return;this.isLoading=!0,this.showLoadingState();const e=new FormData;
2e.append("action","filter_posts"),e.append("nonce",this.nonce),e.append("post_type",this.currentFilters.post_type),e.append("taxonomy",this.currentFilters.taxonomy),e.append("term_slug",this.currentFilters.term_slug),e.append("search",this.currentFilters.search),e.append("paged",this.currentFilters.paged),e.append("sort_by",this.currentFilters.sort_by),this.currentFilters.posts_per_page?e.append("posts_per_page",this.currentFilters.posts_per_page):"cpt-team"===this.currentFilters.post_type&&e.append("posts_per_page","-1"),fetch(this.ajaxUrl,{method:"POST",body:e}).then((t=>t.json())).then((e=>{e.success?(this.updateResults(e.data),t&&this.updateURL()):console.error("Filter request failed:",e)})).catch((t=>{console.error("AJAX error:",t)})).finally((()=>{this.isLoading=!1,this.hideLoadingState()}))}showLoadingState(){const t=document.querySelector("[data-posts-container]");t&&("cpt-team"===this.currentFilters.post_type?t.querySelectorAll(".team-member-card").forEach((t=>{t.style.opacity="0.5",t.style.pointerEvents="none"})):(t.style.opacity="0.5",t.style.pointerEvents="none"))}hideLoadingState(){const t=document.querySelector("[data-posts-container]");t&&("cpt-team"===this.currentFilters.post_type?t.querySelectorAll(".team-member-card").forEach((t=>{bi.to(t,{opacity:1,duration:.3}),t.style.pointerEvents="auto"})):(bi.to(t,{opacity:1,duration:.3}),t.style.pointerEvents="auto"))}updateResults(t){const e=document.querySelector("[data-posts-container]");e&&bi.to(e,{opacity:0,duration:.2,onComplete:()=>{let r=t.posts.join("");t.pagination_html&&(r+=t.pagination_html),e.innerHTML=r,bi.fromTo(e,{opacity:0},{opacity:1,duration:.3})}})}updateURL(){const t=new URLSearchParams;this.currentFilters.taxonomy&&this.currentFilters.term_slug&&(this.currentFilters.taxonomy.includes("-type")?t.set("type",this.currentFilters.term_slug):this.currentFilters.taxonomy.includes("-topic")&&t.set("topic",this.currentFilters.term_slug)),this.currentFilters.search&&t.set("search",this.currentFilters.search),this.currentFilters.paged>1&&t.set("paged",this.currentFilters.paged);const e=window.location.pathname+(t.toString()?"?"+t.toString():"");window.history.pushState({filters:this.currentFilters},"",e)}}var Bh,jh,Xh,Wh,Vh,Uh,$h,Gh,Kh=function(){return"undefined"!=typeof window},Jh=function(){return Bh||Kh()&&(Bh=window.gsap)&&Bh.registerPlugin&&Bh},Qh=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,Zh={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},td=function(t){return Math.round(1e4*t)/1e4},ed=function(t){return parseFloat(t)||0},rd=function(t,e){var r=ed(t);return~t.indexOf("%")?r/100*e:r},nd=function(t,e){return ed(t.getAttribute(e))},id=Math.sqrt,od=function(t,e,r,n,i,o){return id(Math.pow((ed(r)-ed(t))*i,2)+Math.pow((ed(n)-ed(e))*o,2))},sd=function(t){return console.warn(t)},ad=function(t){return"non-scaling-stroke"===t.getAttribute("vector-effect")},ld=function(t){if(!(t=jh(t)[0]))return 0;var e,r,n,i,o,s,a,l=t.tagName.toLowerCase(),c=t.style,u=1,h=1;ad(t)&&(h=t.getScreenCTM(),u=id(h.a*h.a+h.b*h.b),h=id(h.d*h.d+h.c*h.c));try{r=t.getBBox()}catch(t){sd("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var d=r||{x:0,y:0,width:0,height:0},f=d.x,p=d.y,m=d.width,g=d.height;if(r&&(m||g)||!Zh[l]||(m=nd(t,Zh[l][0]),g=nd(t,Zh[l][1]),"rect"!==l&&"line"!==l&&(m*=2,g*=2),"line"===l&&(f=nd(t,"x1"),p=nd(t,"y1"),m=Math.abs(m-f),g=Math.abs(g-p))),"path"===l)i=c.strokeDasharray,c.strokeDasharray="none",e=t.getTotalLength()||0,td(u)!==td(h)&&!Uh&&(Uh=1)&&sd("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),e*=(u+h)/2,c.strokeDasharray=i;else if("rect"===l)e=2*m*u+2*g*h;else if("line"===l)e=od(f,p,f+m,p+g,u,h);else if("polyline"===l||"polygon"===l)for(n=t.getAttribute("points").match(Qh)||[],"polygon"===l&&n.push(n[0],n[1]),e=0,o=2;o<n.length;o+=2)e+=od(n[o-2],n[o-1],n[o],n[o+1],u,h)||0;else"circle"!==l&&"ellipse"!==l||(s=m/2*u,a=g/2*h,e=Math.PI*(3*(s+a)-id((3*s+a)*(s+3*a))));return e||0},cd=function(t,e){if(!(t=jh(t)[0]))return[0,0];e||(e=ld(t)+1);var r=Xh.getComputedStyle(t),n=r.strokeDasharray||"",i=ed(r.strokeDashoffset),o=n.indexOf(",");return o<0&&(o=n.indexOf(" ")),(n=o<0?e:ed(n.substr(0,o)))>e&&(n=e),[-i||0,n-i||0]},ud=function(){Kh()&&(document,Xh=window,Vh=Bh=Jh(),jh=Bh.utils.toArray,$h=Bh.core.getStyleSaver,Gh=Bh.core.reverting||function(){},Wh=-1!==((Xh.navigator||{}).userAgent||"").indexOf("Edge"))},hd={version:"3.13.0",name:"drawSVG",register:function(t){Bh=t,ud()},init:function(t,e,r,n,i){if(!t.getBBox)return!1;Vh||ud();var o,s,a,l=ld(t);return this.styles=$h&&$h(t,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=r,this._style=t.style,this._target=t,e+""=="true"?e="
20 100%":e?-1===(e+"").indexOf(" ")&&(e="0 "+e):e="0 0",s=function(t,e,r){var n,i,o=t.indexOf(" ");return o<0?(n=void 0!==r?r+"":t,i=t):(n=t.substr(0,o),i=t.substr(o+1)),(n=rd(n,e))>(i=rd(i,e))?[i,n]:[n,i]}(e,l,(o=cd(t,l))[0]),this._length=td(l),this._dash=td(o[1]-o[0]),this._offset=td(-o[0]),this._dashPT=this.add(this,"_dash",this._dash,td(s[1]-s[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,td(-s[0]),0,0,0,0,0,1),Wh&&(a=Xh.getComputedStyle(t)).strokeLinecap!==a.strokeLinejoin&&(s=ed(a.strokeMiterlimit),this.add(t.style,"strokeMiterlimit",s,s+.01)),this._live=ad(t)||~(e+"").indexOf("live"),this._nowrap=~(e+"").indexOf("nowrap"),this._props.push("drawSVG"),1},render:function(t,e){if(e.tween._time||!Gh()){var r,n,i,o,s=e._pt,a=e._style;if(s){for(e._live&&(r=ld(e._target))!==e._length&&(n=r/e._length,e._length=r,e._offsetPT&&(e._offsetPT.s*=n,e._offsetPT.c*=n),e._dashPT?(e._dashPT.s*=n,e._dashPT.c*=n):e._dash*=n);s;)s.r(t,s.d),s=s._next;i=e._dash||t&&1!==t&&1e-4||0,r=e._length-i+.1,o=e._offset,i&&o&&i+Math.abs(o%e._length)>e._length-.05&&(o+=o<0?.005:-.005)&&(r+=.005),a.strokeDashoffset=i?o:o+.001,a.strokeDasharray=r<.1?"none":i?i+"px,"+(e._nowrap?999999:r)+"px":"0px, 999999px"}}else e.styles.revert()},getLength:ld,getPosition:cd};Jh()&&Bh.registerPlugin(hd),bi.registerPlugin(hd),bi.registerPlugin(Ma);const dd=new class{viewHeight(){function t(){let t=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",`${t}px`)}t(),window.addEventListener("resize",(()=>{t()}))}},fd=new class{cleanText(t){if("string"==typeof t)return this.cleanText(document.querySelectorAll(t));if(t[0]&&t[0].innerHTML)for(var e=0;e<t.length;e++)this.cleanText(t[e]);else t.innerHTML=t.innerHTML.replace(/\-/g,"â").replace(/V/g,"âVâ").replace(/\./g,"â.â").replace(/,/g,"â,â").replace(/A/g,"âAâ").replace(/fi/g,"fâi")}animations(){bi.utils.toArray('[data-animate="opacity"]').forEach((t=>{const e=t.dataset.animateDelayDesktop||t.dataset.animateDelayMobile||(t.offsetTop<window.innerHeight?t.dataset.animateDelay||"0.5":t.dataset.animateDelay||"0"),r=t.dataset.animateDurationDesktop||t.dataset.animateDurationMobile||t.dataset.animateDuration||"2",n=t.dataset.animateStaggerDesktop||t.dataset.animateStaggerMobile||t.dataset.animateStagger||"0.1";bi.timeline({scrollTrigger:{trigger:t,start:"top bottom"}}).fromTo(t,{autoAlpha:0},{autoAlpha:1,ease:"power4.out",duration:r,stagger:n,delay:e})})),bi.utils.toArray('[data-animate="text"]').forEach((t=>{function e(e,r,n,i){const o=new el(e,{type:"lines, words",linesClass:"lines--inner"}),s=new el(e,{type:"lines, words",linesClass:"lines--outer"}),a=bi.timeline({scrollTrigger:{trigger:e,start:"top bottom"},onComplete:()=>{s.revert(),o.revert()}});a.set(t,{opacity:1}),a.fromTo(o.lines,{yPercent:-100,opacity:0},{yPercent:0,opacity:1,ease:"power4.out",duration:n,stagger:i,delay:r})}this.cleanText(t),document.fonts.ready.then((()=>{const r=t.dataset.animateDelayDesktop||t.dataset.animateDelayMobile||(t.offsetTop<window.innerHeight?t.dataset.animateDelay||"0.5":t.dataset.animateDelay||"0"),n=t.dataset.animateDurationDesktop||t.dataset.animateDurationMobile||t.dataset.animateDuration||"1",i=t.dataset.animateStaggerDesktop||t.dataset.animateStaggerMobile||t.dataset.animateStagger||"0";t.matches("p, h1, h2, h3, h4, h5, h6, span, strong, em")?e(t,r,n,i):bi.utils.toArray(t.querySelectorAll("p, h1, h2, h3, h4, h5, h6, span, strong, em")).forEach((t=>{e(t,r,n,i)}))}))})),bi.utils.toArray('[data-animate="scale"]').forEach((t=>{const e=t.dataset.animateDelayDesktop||t.dataset.animateDelayMobile||(t.offsetTop<window.innerHeight?t.dataset.animateDelay||"0.5":t.dataset.animateDelay||"0"),r=t.dataset.animateDurationDesktop||t.dataset.animateDurationMobile||t.dataset.animateDuration||"2",n=t.dataset.animateStaggerDesktop||t.dataset.animateStaggerMobile||t.dataset.animateStagger||"0.1";bi.timeline({scrollTrigger:{trigger:t,start:"top bottom"}}).fromTo(t,{autoAlpha:0,scale:1.2,filter:"blur(5vw)"},{autoAlpha:1,scale:1,filter:"blur(0vw)",ease:"power4.out",duration:r,stagger:n,delay:e})}))}},pd=new class{init(){cl.on("scroll",Ma.update),bi.ticker.add((t=>{cl.raf(1e3*t)})),bi.ticker.lagSmoothing(0)}scrollToTop(){"granted"!==new URLSearchParams(window.location.search).get("access")&&cl.scrollTo(0,{immediate:!0})}},md=new class{constructor(){this.consentChangeCleanups=[]}customPlayer(){const t=this;
2bi.utils.toArray('[data-video="container"]').forEach((e=>{if(!e)return;const n=e.getAttribute("data-video-type"),i=e.querySelector("[data-video-url]");if(!i)return;const o=i.getAttribute("data-video-url");if(!o)return;const s=e.querySelector("[data-video-play]"),a=e.querySelector("[data-video-mute]"),l=e.getAttribute("data-video-play"),{type:c,id:u,hash:h}=function(t){let e;return(e=t.match(/(?:youtu\.be\/|youtube\.com\/(?:watch\?v=|embed\/|v\/|shorts\/))([\w-]+)/))?{type:"youtube",id:e[1]}:(e=t.match(/(?:vimeo\.com\/(?:video\/)?(?:channels\/\w+\/)?(?:groups\/\w+\/videos\/)?(?:album\/\w+\/video\/)?(?:showcase\/\w+\/video\/)?)([\d]+)(?:\/([a-zA-Z0-9]+))?/))?{type:"vimeo",id:e[1],hash:e[2]||null}:(/\.mp4(\?.*)?$/.test(t),{type:"mp4",id:t})}(o);let d,f;var p;function m(){if(window.Cookiebot&&window.Cookiebot.consent)return!!window.Cookiebot.consent.marketing;const t=document.cookie.match(/(?:^|;\s*)CookieConsent=([^;]+)/);return!!t&&/marketing\s*:\s*true/.test(decodeURIComponent(t[1]))}function g(t){f&&f.kill(),f=Ma.create({trigger:e,start:"top 100%",end:"bottom 0%",toggleActions:"play pause resume pause",onEnter:()=>w(t)}),e.querySelector("[data-video-poster]")&&e.querySelector("[data-video-poster]").classList.add("hidden")}function v(t){if(!s)return;const r=s.querySelector("span:first-child");s._videoClickHandler&&s.removeEventListener("click",s._videoClickHandler),s._videoClickHandler=async()=>{await async function(t){if(t.getPlayerState)return 1===t.getPlayerState();if(!t.getPaused)return!t.paused;try{return!await t.getPaused()}catch(t){return!1}}(t)?(function(t){t.pause?t.pause():t.pauseVideo&&t.pauseVideo(),s&&s.classList.add("!opacity-100"),a&&a.classList.add("!opacity-100")}(t),r&&(r.textContent="Play video")):(w(t),r&&(r.textContent="Pause video"),e.querySelector("[data-video-poster]")&&e.querySelector("[data-video-poster]").classList.add("hidden"))},s.addEventListener("click",s._videoClickHandler)}function y(t){if(!a)return;const e=a.querySelector("span:first-child");a._videoClickHandler&&a.removeEventListener("click",a._videoClickHandler),a._videoClickHandler=async()=>{await async function(t){if(t.isMuted)return t.isMuted();if(!t.getVolume)return t.muted;try{return 0===await t.getVolume()}catch(t){return!0}}(t)?(function(t){t.unMute?t.unMute():t.setVolume?t.setVolume(1).catch((()=>{})):t.muted=!1}(t),e&&(e.textContent="Mute")):(function(t){t.mute?t.mute():t.setVolume?t.setVolume(0).catch((()=>{})):t.muted=!0}(t),e&&(e.textContent="Unmute"))},a.addEventListener("click",a._videoClickHandler)}function w(t){t.play?("mp4"===c&&t.load(),t.play()):t.playVideo&&t.playVideo(),s&&s.classList.remove("!opacity-100"),a&&a.classList.remove("!opacity-100")}"youtube"===c?(p=u,r(565).load((function(t){d=new t.Player(i,{videoId:p,playerVars:{controls:"full-width"===n?"0":1,modestbranding:1,rel:0,showinfo:0,iv_load_policy:3,cc_load_policy:0,fs:0,autohide:1},events:{onReady:function(t){"autoplay"===l?(t.target.mute(),g(t.target),"full-width"===n&&setupVideoControls(t.target,l,n)):s?v(t.target):setupVideoControls(t.target,l,n),a&&y(t.target)},onStateChange:function(e){if(e.data===t.PlayerState.PLAYING&&"inline"===n){const t=e.target.getIframe();t.classList.contains("pointer-events-none")&&t.classList.remove("pointer-events-none")}}}})}))):"vimeo"===c?function(e,r,o){let c=!m();function u(){const t={controls:!1,muted:"autoplay"===l,loop:!0,dnt:c};r?t.url=o:t.id=e,d=new tc(i,t),d.ready().then((()=>{"autoplay"===l?(g(d),"full-width"===n&&setupVideoControls(d,l,n)):s?v(d):setupVideoControls(d,l,n),a&&y(d)}))}function h(){const t=!m();t!==c&&(c=t,d.destroy().then(u).catch(u))}u(),window.addEventListener("CookiebotOnAccept",h),window.addEventListener("CookiebotOnDecline",h),t.consentChangeCleanups.push((()=>{window.removeEventListener("CookiebotOnAccept",h),window.removeEventListener("CookiebotOnDecline",h)}))}(u,h,o):"mp4"===c&&function(t){const e=document.createElement("video");e.src=t,e.controls=!1,e.classList.add("w-full"),e.classList.add("h-full"),e.classList.add("object-cover"),e.muted="autoplay"===l,e.playsInline=!0,e.loop=!0,i.innerHTML="",i.appendChild(e),"autoplay"===l?(g
2(e),"full-width"===n&&setupVideoControls(e,l,n)):s?v(e):setupVideoControls(e,l,n),a&&y(e)}(o)}))}destroy(){this.consentChangeCleanups.forEach((t=>t())),this.consentChangeCleanups=[]}},gd=new class{init(){document.querySelectorAll("[data-gradient].\\!text-primary-4").forEach((t=>{this.updateTextColors(t)}))}updateTextColors(t){t.querySelectorAll(".text-primary-1, .text-primary-5").forEach((e=>{const r=e.closest("section.bg-gradient-to-b.from-secondary-3.to-primary-4");r&&t.contains(r)||(e.classList.remove("text-primary-1","text-primary-5"),e.classList.add("text-primary-4"))}))}},vd=new class{init(){function t(){const t=document.getElementById("hero-homepage");if(!t)return;const e=t.firstElementChild,r=t.lastElementChild;if(!e||!r)return;e.style.height="";const n=e.offsetHeight+r.offsetHeight/2;return e.style.height=`${n}px`,n}t(),window.addEventListener("resize",(()=>{t()}))}},yd=new class{init(){bi.utils.toArray('[data-carousel="container"]:not(header [data-carousel="container"])').forEach((t=>{if(t.querySelector('[data-carousel="slide"]')){const e=t.querySelector('[data-carousel="carousel"]'),r=bi.utils.toArray(e.querySelectorAll('[data-carousel="slide"]')),n=t.getAttribute("data-carousel-transition")||"slide",i="true"===t.getAttribute("data-carousel-autoplay"),o=parseInt(t.getAttribute("data-carousel-duration"))||3e3,s=t.querySelector('[data-carousel="button-next"]'),a=t.querySelector('[data-carousel="button-prev"]'),l=t.querySelector('[data-slide-count="total"]'),c=t.querySelector('[data-slide-count="step"]'),u=c?c.parentElement:null,h=r.length;let d=[];const f=()=>{const e=window.innerWidth>=768;return 1===h?(s&&(s.style.display="none"),a&&(a.style.display="none"),c&&u&&(u.style.display="none"),t.querySelectorAll('[data-carousel="pagination"], .carousel-pagination').forEach((t=>{t.style.display="none"})),!0):2!==h||!e||"slide"!==n&&n?(2!==h||e||"slide"!==n&&n||(s&&(s.style.display=""),a&&(a.style.display=""),c&&u&&(u.style.display=""),t.querySelectorAll('[data-carousel="pagination"], .carousel-pagination').forEach((t=>{t.style.display=""}))),!1):(s&&(s.style.display="none"),a&&(a.style.display="none"),c&&u&&(u.style.display="none"),t.querySelectorAll('[data-carousel="pagination"], .carousel-pagination').forEach((t=>{t.style.display="none"})),!0)};if(f())return;window.addEventListener("resize",(()=>{f()})),l&&(l.textContent=h<10?`0${h}`:h),c&&u&&(u.innerHTML="",r.forEach(((t,e)=>{const r=c.cloneNode(!0);r.setAttribute("data-step-number",e+1<10?`0${e+1}`:e+1),r.classList.add("cursor-pointer"),0===e?r.classList.add("bg-gradient-to-r","from-mid-blue","to-primary-1","!w-16"):r.classList.add("!bg-grey-4"),u.appendChild(r)})),d=u.querySelectorAll('[data-slide-count="step"]'));const p=t=>{d.length>0&&d.forEach(((e,r)=>{r===t?(e.classList.remove("!bg-grey-4"),e.classList.add("bg-gradient-to-r","from-mid-blue","to-primary-1","!w-16")):(e.classList.remove("bg-gradient-to-r","from-mid-blue","to-primary-1","!w-16"),e.classList.add("!bg-grey-4"))}))};let m;if("stacked"===n){let t,e=0;r.forEach(((t,e)=>{0===e?bi.set(t,{zIndex:20,x:"0%"}):1===e?bi.set(t,{zIndex:10,x:100/4.5+"%"}):bi.set(t,{zIndex:0,x:"50%"})}));const n=t=>{t!==e&&(r.forEach(((e,n)=>{let i,o;n===t?(i=20,o="0%"):n===(t+1)%r.length?(i=10,o=100/4.5+"%"):(i=0,o="50%"),bi.to(e,{zIndex:i,x:o,duration:.6,ease:"power2.out"})})),e=t,p(t))},s=()=>{i&&!t&&(t=setInterval((()=>{n((e+1)%r.length)}),o))},a=()=>{t&&(clearInterval(t),t=null)};m={next:()=>{a(),n((e+1)%r.length),s()},previous:()=>{a(),n(0===e?r.length-1:e-1),s()},toIndex:t=>{a(),n(t),s()}},s()}else if("fade"===n){let t,e=0,n=!1;const s=()=>{r.forEach((t=>{t.style.height=""}));let t=0;r.forEach((e=>{const r=e.offsetHeight;r>t&&(t=r)})),r.forEach((e=>{e.style.height=`${t}px`}))};r.forEach(((t,e)=>{bi.set(t,{autoAlpha:0===e?1:0,position:0===e?"relative":"absolute"})})),s();const a=()=>{r.forEach(((t,r)=>{r===e?bi.set(t,{autoAlpha:1,position:"relative"}):bi.set(t,{autoAlpha:0,position:"absolute"})}))},l=t=>{if(t===e||n)return;n=!0;const i=r[e],o=r[t];bi.killTweensOf([i,o]);const s=bi.timeline({onComplete:()=>{n=!1,a()}});s.to(i,{autoAlpha:0,duration:.5,ease:"power2.out"}),s.set(i,{position:"absolute"}),s.set(o,{position:"relative"}),s.to(o,{autoAlpha:1,duration:.5,ease:"power2.out"},.5),e=t,p(t)},c=()=>{i&&!t&&(t=setInterval((()=>{l((e+1)%r.length)}),o))},u=()=>{t&&(clearInterval(t),t=null)};m={next:()=>{u(),l((e+1)%r.length),c()},previous:()=>{u(),l(0===e?r.length-1:e-1),c()},toIndex:t=>{u(),l(t),c()}},c(),window.addEventListener("resize",(()=>{s()}))}else m=function(t,e){let r;return t=bi.utils.toArray(t),e=e||{},bi.context((()=>
2{let n,i,o,s=e.onChange,a=0,l=bi.timeline({repeat:e.repeat,onUpdate:s&&function(){let e=l.closestIndex();a!==e&&(a=e,s(t[e],e))},paused:e.paused,defaults:{ease:"none"},onReverseComplete:()=>l.totalTime(l.rawTime()+100*l.duration())}),c=t.length,u=t[0].offsetLeft,h=[],d=[],f=[],p=[],m=0,g=!1,v=e.center,y=100*(e.speed||1),w=!1===e.snap?t=>t:bi.utils.snap(e.snap||1),_=0,x=!0===v?t[0].parentNode:bi.utils.toArray(v)[0]||t[0].parentNode,b=()=>{let r,i=x.getBoundingClientRect();t.forEach(((t,e)=>{d[e]=parseFloat(bi.getProperty(t,"width","px")),p[e]=w(parseFloat(bi.getProperty(t,"x","px"))/d[e]*100+bi.getProperty(t,"xPercent")),r=t.getBoundingClientRect(),f[e]=r.left-(e?i.right:i.left),i=r})),bi.set(t,{xPercent:t=>p[t]}),n=t[c-1].offsetLeft+p[c-1]/100*d[c-1]-u+f[0]+t[c-1].offsetWidth*bi.getProperty(t[c-1],"scaleX")+(parseFloat(e.paddingRight)||0)},T=()=>{_=v?l.duration()*(x.offsetWidth/2)/n:0,v&&h.forEach(((t,e)=>{h[e]=i(l.labels["label"+e]+l.duration()*d[e]/2/n-_)}))},E=(t,e,r)=>{let n,i=t.length,o=1e10,s=0;for(;i--;)n=Math.abs(t[i]-e),n>r/2&&(n=r-n),n<o&&(o=n,s=i);return s},S=()=>{let e,r,o,s,a;for(l.clear(),e=0;e<c;e++)r=t[e],o=p[e]/100*d[e],s=r.offsetLeft+o-u+f[0],a=s+d[e]*bi.getProperty(r,"scaleX"),l.to(r,{xPercent:w((o-a)/d[e]*100),duration:a/y},0).fromTo(r,{xPercent:w((o-a+n)/d[e]*100)},{xPercent:p[e],duration:(o-a+n-o)/y,immediateRender:!1},a/y).add("label"+e,s/y),h[e]=s/y;i=bi.utils.wrap(0,l.duration())},k=t=>{let e=l.progress();l.progress(0,!0),b(),t&&S(),T(),t&&l.draggable?l.time(h[m],!0):l.progress(e,!0)},C=()=>k(!0);function L(t,e){e=e||{},Math.abs(t-m)>c/2&&(t+=t>m?-c:c);let r=bi.utils.wrap(0,c,t),n=h[r];return n>l.time()!=t>m&&t!==m&&(n+=l.duration()*(t>m?1:-1)),(n<0||n>l.duration())&&(e.modifiers={time:i}),m=r,e.overwrite=!0,bi.killTweensOf(o),0===e.duration?l.time(i(n)):l.tweenTo(n,e)}if(bi.set(t,{x:0}),b(),S(),T(),window.addEventListener("resize",C),l.toIndex=(t,e)=>L(t,e),l.closestIndex=t=>{let e=E(h,l.time(),l.duration());return t&&(m=e,g=!1),e},l.current=()=>g?l.closestIndex(!0):m,l.next=t=>L(l.current()+1,t),l.previous=t=>L(l.current()-1,t),l.times=h,l.progress(1,!0).progress(0,!0),e.reversed&&(l.vars.onReverseComplete(),l.reverse()),e.draggable&&"function"==typeof Xu){o=document.createElement("div");let e,r,s,a,c,u,d=bi.utils.wrap(0,1),f=()=>l.progress(d(r+(s.startX-s.x)*e)),p=()=>l.closestIndex(!0);void 0===Hh&&console.warn("InertiaPlugin required for momentum-based scrolling and snapping. https://greensock.com/club"),s=Xu.create(o,{trigger:t[0].parentNode,type:"x",onPressInit(){let t=this.x;bi.killTweensOf(l),u=!l.paused(),l.pause(),r=l.progress(),k(),e=1/n,c=r/-e-t,bi.set(o,{x:r/-e})},onDrag:f,onThrowUpdate:f,overshootTolerance:0,inertia:!0,snap(t){if(Math.abs(r/-e-this.x)<10)return a+c;let n=-t*e*l.duration(),o=i(n),s=h[E(h,o,l.duration())]-o;return Math.abs(s)>l.duration()/2&&(s+=s<0?l.duration():-l.duration()),a=(n+s)/l.duration()/-e,a},onRelease(){p(),s.isThrowing&&(g=!0)},onThrowComplete:()=>{p(),u&&l.play()}})[0],l.draggable=s}return l.closestIndex(!0),a=m,s&&s(t[m],m),r=l,()=>window.removeEventListener("resize",C)})),r}(r,{paused:!i,draggable:!0,center:!1,onChange:(t,r)=>{p(r);const n=e.querySelectorAll("[data-timeline-year]");n.length&&n.forEach(((t,e)=>{e===r?(t.classList.remove("border","border-primary-1","bg-primary-4","text-primary-1"),t.classList.add("bg-primary-1","text-primary-4")):(t.classList.remove("bg-primary-1","text-primary-4"),t.classList.add("border","border-primary-1","bg-primary-4","text-primary-1"))}))}});if(s&&s.addEventListener("click",(()=>{"fade"===n||"stacked"===n?m.next():m.next({ease:"power4",duration:1})})),a&&a.addEventListener("click",(()=>{"fade"===n||"stacked"===n?m.previous():m.previous({ease:"power4",duration:1})})),d.length>0&&d.forEach(((t,e)=>{t.addEventListener("click",(()=>{"fade"===n||"stacked"===n?m.toIndex(e):m.toIndex(e,{ease:"power3",duration:.725})}))})),t.getAttribute("data-custom-pagination")&&t.addEventListener("tabChanged",(t=>{const e=t.detail.index;"fade"===n||"stacked"===n?m.toIndex(e):m.toIndex(e,{ease:"power3",duration:.725})})),"stacked"===n){const t=document.querySelectorAll('[data-timeline="pagination"]');t.length&&t.forEach(((e,r)=>{e.addEventListener("click",(function(){t.forEach(((t,e)=>{const n=t.querySelector(".pagination-indicator"),i=t.querySelector(".timeline-dot");e===r?(n.classList.remove("text-primary-1"),n.classList.add("bg-primary-1","text-primary-4"),i&&(i.classList.remove("bg-secondary-3"),i.classList.add("bg-primary-1"))):(n.
2classList.remove("bg-primary-1","text-primary-4"),n.classList.add("text-primary-1"),i&&(i.classList.remove("bg-primary-1"),i.classList.add("bg-secondary-3")))})),m.toIndex(r)}))})),r.forEach(((t,e)=>{t.addEventListener("click",(function(){document.querySelectorAll('[data-timeline="pagination"]').forEach(((t,r)=>{const n=t.querySelector(".pagination-indicator"),i=t.querySelector(".timeline-dot");r===e?(n.classList.remove("border","border-primary-1","text-primary-1"),n.classList.add("bg-primary-1","text-primary-4"),i&&(i.classList.remove("bg-secondary-3"),i.classList.add("bg-primary-1"))):(n.classList.remove("bg-primary-1","text-primary-4"),n.classList.add("border","border-primary-1","text-primary-1"),i&&(i.classList.remove("bg-primary-1"),i.classList.add("bg-secondary-3")))})),m.toIndex(e)}))}))}if("slide"===n||!n){const t=e.querySelectorAll("[data-timeline-year]");t.length&&t.forEach((e=>{e.addEventListener("click",(function(){const e=parseInt(this.getAttribute("data-timeline-year"));t.forEach(((t,r)=>{r===e?(t.classList.remove("border","border-primary-1","bg-primary-4","text-primary-1"),t.classList.add("bg-primary-1","text-primary-4")):(t.classList.remove("bg-primary-1","text-primary-4"),t.classList.add("border","border-primary-1","bg-primary-4","text-primary-1"))})),m.toIndex(e,{ease:"power3",duration:.725})}))}))}}}))}headerInit(){bi.utils.toArray('header [data-carousel="container"]').forEach((t=>{if(t.querySelector('[data-carousel="slide"]')){const e=t.querySelector('[data-carousel="carousel"]'),r=bi.utils.toArray(e.querySelectorAll('[data-carousel="slide"]')),n="true"===t.getAttribute("data-carousel-autoplay"),i=parseInt(t.getAttribute("data-carousel-duration"))||3e3;let o,s=0,a=!1;r.forEach(((t,e)=>{bi.set(t,{autoAlpha:0===e?1:0,position:0===e?"relative":"absolute"})}));const l=()=>{r.forEach(((t,e)=>{e===s?bi.set(t,{autoAlpha:1,position:"relative"}):bi.set(t,{autoAlpha:0,position:"absolute"})}))},c=t=>{if(t===s||a)return;a=!0;const e=r[s],n=r[t];bi.killTweensOf([e,n]);const i=bi.timeline({onComplete:()=>{a=!1,l()}});i.to(e,{autoAlpha:0,duration:.5,ease:"power2.out"}),i.set(e,{position:"absolute"}),i.set(n,{position:"relative"}),i.to(n,{autoAlpha:1,duration:.5,ease:"power2.out"},.5),s=t};n&&!o&&(o=setInterval((()=>{c((s+1)%r.length)}),i))}}))}},wd=new class{init(){bi.utils.toArray('[data-tab-bar="container"]').forEach((t=>{const e=t.querySelector('[data-tab-bar="button"]'),r=t.querySelectorAll("button");let n=r[0];const i="dark"===(t.getAttribute("data-theme")||"light"),o=i?"text-primary-4":"text-primary-1",s=i?"text-primary-1":"text-primary-4",a=(r,n=0)=>{const{rect:i,padding:o}={rect:t.getBoundingClientRect(),padding:parseInt(getComputedStyle(t).paddingLeft)},s=r.getBoundingClientRect();bi.to(e,{x:s.left-i.left-o,width:s.width,height:s.height,duration:n,ease:n>0?"power2.out":"none"})};if(r[0]){const t=r[0];a(t),t.classList.add(o),t.classList.remove(s)}r.forEach((e=>{e.addEventListener("mouseenter",(()=>{a(e,.5),r.forEach((t=>{t.classList.remove(o),t.classList.add(s)})),e.classList.add(o),e.classList.remove(s)})),e.addEventListener("mouseleave",(()=>{e!==n&&(r.forEach((t=>{t.classList.remove(o),t.classList.add(s)})),n.classList.add(o),n.classList.remove(s),a(n,.5))})),e.addEventListener("click",(()=>{const i=Array.from(r).indexOf(e);n&&(n.classList.remove(o),n.classList.add(s)),n=e,e.classList.add(o),e.classList.remove(s),a(e,.5);const l=t.getAttribute("data-target");if(l){const t=document.querySelector(`[data-custom-pagination="${l}"]`);t&&t.dispatchEvent(new CustomEvent("tabChanged",{detail:{index:i,tab:e}}))}}))})),window.addEventListener("resize",(()=>{a(n)}))}))}},_d=new class{init(){bi.utils.toArray('[data-carousel="container"][data-carousel-transition="stacked"]').forEach((t=>{const e=t.querySelector('[data-timeline="line"]'),r=t.querySelectorAll('[data-timeline="pagination"]');if(e&&r.length>1){const t=()=>{const t=r[0],n=r[r.length-1],i=t.getBoundingClientRect(),o=n.getBoundingClientRect(),s=o.top+o.height/2-(i.top+i.height/2);bi.set(e,{height:s})};t(),window.addEventListener("resize",t)}}))}},xd=new class{init(){function t(){const t=document.querySelector("header");if(t){const e=t.offsetHeight;document.documentElement.style.setProperty("--header",`${e}px`)}}t(),window.addEventListener("resize",(()=>{t()})),this.initMobileMenu(),this.updateActiveLinks()}scroll(){const t=document.querySelector("header");if(!t)return;const e=t.firstElementChild;if(!e)return;const r=()=>
2{if(Ma.getAll().forEach((t=>{"headerScroll"===t.vars.id&&t.kill()})),window.innerWidth>=768){const r=e.offsetHeight;Ma.create({id:"headerScroll",trigger:t,start:`${t.offsetHeight} top`,onEnter:()=>{t.style.transform=`translateY(-${r}px)`},onLeaveBack:()=>{t.style.transform="translateY(0)"}})}else t.style.transform=""};r(),window.addEventListener("resize",r)}reset(){const t=document.querySelector("header");t&&(t.style.transform="")}initMobileMenu(){const t=document.querySelector("[data-mobile-toggle]"),e=document.querySelector("[data-mobile-menu]"),r=document.querySelector("[data-mobile-overlay]"),n=document.querySelector("[data-mobile-close]"),i=document.querySelectorAll("[data-submenu-toggle]"),o=document.querySelectorAll("[data-mobile-menu] a");if(!t||!e||!r)return;const s=(t=!1)=>{const e=document.querySelectorAll("[data-mobile-submenu]"),r=document.querySelectorAll("[data-submenu-toggle]"),n=window.innerWidth<768;if(t)e.forEach((t=>{t.classList.add("max-sm:translate-x-full"),n?t.style.removeProperty("max-height"):t.style.maxHeight="0px"}));else{if(n){const t=document.querySelectorAll("[data-mobile-submenu]:not(.max-sm\\:translate-x-full)");let e=t.length>0;return t.forEach(((t,e)=>{setTimeout((()=>{t.classList.add("max-sm:translate-x-full")}),50*e)})),e}e.forEach((t=>{t.style.maxHeight="0px"}))}return r.forEach((t=>{t.setAttribute("aria-expanded","false")})),!1};t.addEventListener("click",(()=>{const n="true"===t.getAttribute("aria-expanded"),i=window.innerWidth<768;if(n)if(i){const n=s();setTimeout((()=>{t.setAttribute("aria-expanded","false"),e.classList.add("max-sm:translate-x-full"),r.classList.add("opacity-0","pointer-events-none"),document.body.classList.remove("overflow-hidden")}),n?200:0)}else t.setAttribute("aria-expanded","false"),e.classList.add("max-sm:translate-x-full"),r.classList.add("opacity-0","pointer-events-none"),document.body.classList.remove("overflow-hidden"),s();else t.setAttribute("aria-expanded","true"),e.classList.remove("max-sm:translate-x-full"),r.classList.remove("opacity-0","pointer-events-none"),document.body.classList.add("overflow-hidden"),i&&s(!0)})),r.addEventListener("click",(()=>{t.click()})),n&&n.addEventListener("click",(()=>{t.click()})),i.forEach((t=>{t.addEventListener("click",(()=>{const e=t.getAttribute("data-submenu-toggle"),r=document.querySelector(`[data-mobile-submenu="${e}"]`),n="true"===t.getAttribute("aria-expanded"),i=window.innerWidth<768;r&&(t.setAttribute("aria-expanded",!n),i?n?r.classList.add("max-sm:translate-x-full"):r.classList.remove("max-sm:translate-x-full"):r.style.maxHeight=n?"0px":r.scrollHeight+"px")}))})),document.querySelectorAll("[data-submenu-back]").forEach((t=>{t.addEventListener("click",(()=>{const e=t.getAttribute("data-submenu-back"),r=document.querySelector(`[data-mobile-submenu="${e}"]`),n=document.querySelector(`[data-submenu-toggle="${e}"]`);r&&n&&(r.classList.add("max-sm:translate-x-full"),n.setAttribute("aria-expanded","false"))}))})),document.querySelectorAll("[data-mobile-submenu-close]").forEach((e=>{e.addEventListener("click",(()=>{t.click()}))})),o.forEach((e=>{e.addEventListener("click",(r=>{const n=e.getAttribute("href"),i=n&&(n.startsWith("/")||n.startsWith(window.location.origin)),o=window.innerWidth<768;i&&o&&"true"===t.getAttribute("aria-expanded")&&t.click()}))}))}updateActiveLinks(){const t=document.querySelector("header");if(!t)return;const e=t.querySelectorAll("nav a"),r=t.querySelectorAll("nav span svg"),n=location.href;e.forEach((t=>{t.classList.remove("text-contrast-2","!text-contrast-2","text-primary-3","!text-primary-3")})),r.forEach((t=>{t.classList.remove("fill-contrast-2","!fill-contrast-2")})),e.forEach((t=>{const e=t.href;if(e===n||e!==location.origin+"/"&&n.startsWith(e)&&e.endsWith("/"))if(t.closest('nav[role="secondary-menubar"]'))t.classList.add("!text-primary-3");else{t.classList.add("!text-contrast-2");const e=t.closest("li");if(e){const t=e.querySelector("span svg");t&&t.classList.add("!fill-contrast-2")}}}))}},bd=new class{init(t={}){const{oneAtATime:e=!1}=t,r=bi.utils.toArray('[data-accordion="container"]');let n=!1;if(r.length>0){const t=r[0].closest('[data-accordion-first-open="true"]');n=null!==t}function i(t){const e=t.querySelector('[data-accordion="trigger"]'),r=t.querySelector('[data-accordion="content"]'),n=t.classList.contains("is-active")?e.offsetHeight+r.scrollHeight:e.offsetHeight;bi.set(t,{height:n})}r.forEach(((t,i)=>{const o=t.querySelector('[data-accordion="trigger"]'),s=t.querySelector('[data-accordion="content"]');0===i&&n?(t.classList.add("is-active"),t.style.height=`${o.offsetHeight+s.scrollHeight}px`):(t.classList.remove("is-active"),t.style.height=`${o.offsetHeight}px`),o.addEventListener("click",(()=>{const n=t.classList.contains("is-active");e&&!n&&r.forEach((e=>{if(e!==t&&e.classList.contains("is-active")){const t=e.querySelector('[data-accordion="trigger"]');e.classList.remove("is-active"),bi.to(e,{height:t.offsetHeight,duration:.5,ease:"power4.out"})}})),t.classList.toggle("is-active");const i=n?o.offsetHeight:o.offsetHeight+s.scrollHeight;bi.to(t,{height:i,duration:.5,ease:"power4.out"})}))})),window.addEventListener("resize",(()=>r.forEach(i)))}},Td=new class{init(){bi.utils.toArray(".button-primary").forEach((t=>{t.addEventListener("mouseenter",(()=>{bi.fromTo(t.querySelector("svg rect"),{drawSVG:"0"},{drawSVG:"100%",duration:1,ease:"power2.out"})})),t.addEventListener("mouseleave",(()=>{bi.to(t.querySelector("svg rect"),{drawSVG:"0",duration:1,ease:"power2.out"})}))}))}},Ed=(new class{constructor(){this.modal=null,this.isOpen=!1,this.init()}init(){this.createModal(),this.bindEvents()}createModal(){this.modal=document.createElement("div"),this.modal.className="team-modal fixed inset-0 bg-gradient-to-l from-white-70 to-grey-3 backdrop-blur-md z-[9999] flex items-center justify-center p-16 opacity-0 pointer-events-none transition",this.modal.innerHTML='\n <div data-lenis-prevent class="team-modal-content bg-white rounded-lg container max-h-[90vh] overflow-hidden relative transform scale-95 transition flex flex-col">\n <button class="group team-modal-close absolute top-12 right-12 flex gap-2 items-center justify-center z-10 cursor-pointer">\n <div class="w-8 h-8 bg-gradient-to-b from-mid-blue to-primary-1 rounded-full stroke-primary-4 p-2 group-hover:rotate-90 transition">\n <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24">\n <path class="bg-primary-4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>\n </svg>\n </div>\n <p class="text-sm font-bold text-primary-1">Close</p>\n </button>\n <div class="team-modal-body p-16 max-sm:overflow-y-scroll flex-1"></div>\n </div>\n ',document.body.appendChild(this.modal),this.modalContent=this.modal.querySelector(".team-modal-content"),this.modalBody=this.modal.querySelector(".team-modal-body")}bindEvents(){this.modal.addEventListener("click",(t=>{t.target===this.modal&&this.close()})),this.modal.querySelector(".team-modal-close").addEventListener("click",(()=>{this.close()})),document.addEventListener("keydown",(t=>{"Escape"===t.key&&this.isOpen&&this.close()})),document.addEventListener("click",(t=>{const e=t.target.closest("[data-team-modal]");if(e){t.preventDefault();const r=e.getAttribute("data-team-modal");this.open(r)}}))}open(t){if(this.isOpen)return;const e=document.querySelector(`[data-team-content="${t}"]`);if(!e)return console.error("Team member content not found for ID:",t),void console.log("Available team content elements:",document.querySelectorAll("[data-team-content]"));this.isOpen=!0,this.modalBody.innerHTML=e.innerHTML,this.modal.classList.remove("pointer-events-none"),this.modal.classList.add("opacity-100"),this.modalContent.classList.remove("scale-95"),this.modalContent.classList.add("scale-100"),document.body.style.overflow="hidden"}close(){this.isOpen&&(this.isOpen=!1,this.modal.classList.add("pointer-events-none"),this.modal.classList.remove("opacity-100"),this.modalContent.classList.add("scale-95"),this.modalContent.classList.remove("scale-100"),setTimeout((()=>{this.modalBody.innerHTML=""}),800),document.body.style.overflow="")}},new class{init(){this.initContactForms()}initContactForms(){const t=document.querySelectorAll(".form-iframe");0!==t.length&&t.forEach((t=>{this.setupIframeHandling(t)}))}setupIframeHandling(t){this.messageHandler=e=>{e.data&&"react-devtools-content-script"===e.data.source||"https://www2.codexis.com"===e.origin&&e.data.height&&(t.style.height=e.data.height+"px")},window.addEventListener("message",this.messageHandler),t.addEventListener("load",(()=>{try{const e=t.contentDocument||t.contentWindow.document;if(e){const r=()=>{const r=e.body.scrollHeight;t.style.height=r+"px"};r(),this.observer=new MutationObserver(r),this.observer.observe(e.body,{childList:!0,subtree:!0,attributes:!0})}}catch(e){t.style.height="800px"}}));let e=0;const r=setInterval((()=>{e++;try{const e=t.contentDocument||t.contentWindow.document;if(e&&e.body){const n=e.body.scrollHeight;n>100&&(t.style.height=n+"px",clearInterval(r))}}catch(t){e>10&&clearInterval(r)}}),500);this.heightChecks||(this.heightChecks=[]),this.heightChecks.push(r),this.observers||(this.observers=[]),this.observer&&this.observers.push(this.observer)}destroy(){this.messageHandler&&window.removeEventListener("message",this.messageHandler),this.heightChecks&&this.heightChecks.forEach((t=>
2clearInterval(t))),this.observers&&this.observers.forEach((t=>t.disconnect()))}}),Sd=new class{init(){function t(){const t=document.querySelectorAll('[data-stat="container"]');if(0===t.length)return;const e=new Map;t.forEach((t=>{const r=t.parentElement;e.has(r)||e.set(r,[]),e.get(r).push(t)})),e.forEach((t=>{const e=[],r=[];if(t.forEach((t=>{const n=t.querySelector("h3"),i=t.querySelector(".prose");n&&i&&(e.push(n),r.push(i))})),0===e.length)return;e.forEach((t=>{t.style.minHeight=""}));let n=0;e.forEach((t=>{const e=t.offsetHeight;e>n&&(n=e)})),e.forEach((t=>{t.style.minHeight=`${n}px`}))}))}t(),window.addEventListener("resize",(()=>{t()}))}},kd=new class{init(){if("granted"===new URLSearchParams(window.location.search).get("access")){const t=document.getElementById("gated-content");t&&setTimeout((()=>{cl.scrollTo(t,{immediate:!0})}),100)}}},Cd=new class{init(){const t=document.getElementById("accessibility-form");t&&(this.requestContainer=document.getElementById("request-container"),this.addButton=document.getElementById("add-request"),this.requestCount=1,this.addButton&&this.requestContainer&&this.addButton.addEventListener("click",(()=>this.addRequestBlock())),this.requestContainer.addEventListener("click",(t=>{t.target.classList.contains("remove-request")&&this.removeRequestBlock(t.target)})),t.addEventListener("submit",(t=>this.handleSubmit(t))))}addRequestBlock(){const t=document.createElement("div");t.className="request-block",t.setAttribute("data-request-index",this.requestCount),t.innerHTML=`\n\t\t\t<div class="grid gap-4 mt-16">\n\t\t\t\t<div class="col-span-full flex justify-between items-center">\n\t\t\t\t\t<h4 class="text-md">Additional Request</h4>\n\t\t\t\t\t<button type="button" class="button-tertiary cursor-pointer remove-request">Remove</button>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-span-full flex flex-col gap-4">\n\t\t\t\t\t<label for="request_url_${this.requestCount}">URL of requested document or webpage</label>\n\t\t\t\t\t<input type="text" id="request_url_${this.requestCount}" name="requests[${this.requestCount}][url]">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-span-full flex flex-col gap-4">\n\t\t\t\t\t<label for="request_description_${this.requestCount}">Description of request or issue</label>\n\t\t\t\t\t<textarea id="request_description_${this.requestCount}" name="requests[${this.requestCount}][description]" rows="4"></textarea>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`,this.requestContainer.appendChild(t),this.requestCount++}removeRequestBlock(t){const e=t.closest(".request-block");e&&this.requestContainer.children.length>1&&e.remove()}handleSubmit(t){const e=t.target,r=e.querySelector('button[type="submit"]');r.disabled=!0,r.textContent="Submitting","undefined"!=typeof grecaptcha&&window.recaptchaSiteKey&&(t.preventDefault(),grecaptcha.execute(window.recaptchaSiteKey,{action:"accessibility_form"}).then((t=>{let r=e.querySelector('input[name="g-recaptcha-response"]');r||(r=document.createElement("input"),r.type="hidden",r.name="g-recaptcha-response",e.appendChild(r)),r.value=t,e.submit()})).catch((()=>{e.submit()})))}};let Ld=null;new class{isTransitioning=!1;currentCacheEntry=null;cache=new Map;activePromises=new Map;constructor(t={}){const{links:e="a[href]:not([target]):not([href^=\\#]):not([data-taxi-ignore])",removeOldContent:r=!0,allowInterruption:n=!1,bypassCache:i=!1,enablePrefetch:o=!0,renderers:s={default:C},transitions:a={default:k},reloadJsFilter:l=t=>void 0!==t.dataset.taxiReload,reloadCssFilter:c=t=>!0}=t;this.renderers=s,this.transitions=a,this.defaultRenderer=this.renderers.default||C,this.defaultTransition=this.transitions.default||k,this.wrapper=document.querySelector("[data-taxi]"),this.reloadJsFilter=l,this.reloadCssFilter=c,this.removeOldContent=r,this.allowInterruption=n,this.bypassCache=i,this.enablePrefetch=o,this.cache=new Map,this.isPopping=!1,this.attachEvents(e),this.currentLocation=b(window.location.href),this.cache.set(this.currentLocation.href,this.createCacheEntry(document.cloneNode(!0),window.location.href)),this.currentCacheEntry=this.cache.get(this.currentLocation.href),this.currentCacheEntry.renderer.initialLoad()}setDefaultRenderer(t){this.defaultRenderer=this.renderers[t]}setDefaultTransition(t){this.defaultTransition=this.transitions[t]}
2addRoute(t,e,r){this.router||(this.router=new L),this.router.add(t,e,r)}preload(t,e=!1){return t=b(t).href,this.cache.has(t)?Promise.resolve():this.fetch(t,!1).then((async r=>{this.cache.set(t,this.createCacheEntry(r.html,r.url)),e&&this.cache.get(t).renderer.createDom()})).catch((t=>console.warn(t)))}updateCache(t){const e=b(t||window.location.href).href;this.cache.has(e)&&this.cache.delete(e),this.cache.set(e,this.createCacheEntry(document.cloneNode(!0),e))}clearCache(t){const e=b(t||window.location.href).href;this.cache.has(e)&&this.cache.delete(e)}navigateTo(t,e=!1,r=!1){return new Promise(((n,i)=>{if(!this.allowInterruption&&this.isTransitioning)return void i(new Error(M));this.isTransitioning=!0,this.isPopping=!0,this.targetLocation=b(t),this.popTarget=window.location.href;const o=new(this.chooseTransition(e))({wrapper:this.wrapper});let s;if(this.bypassCache||!this.cache.has(this.targetLocation.href)||this.cache.get(this.targetLocation.href).skipCache){const e=this.fetch(this.targetLocation.href).then((t=>{this.cache.set(this.targetLocation.href,this.createCacheEntry(t.html,t.url)),this.cache.get(this.targetLocation.href).renderer.createDom()})).catch((e=>{window.location.href=t}));s=this.beforeFetch(this.targetLocation,o,r).then((async()=>e.then((async()=>await this.afterFetch(this.targetLocation,o,this.cache.get(this.targetLocation.href),r)))))}else this.cache.get(this.targetLocation.href).renderer.createDom(),s=this.beforeFetch(this.targetLocation,o,r).then((async()=>await this.afterFetch(this.targetLocation,o,this.cache.get(this.targetLocation.href),r)));s.then((()=>{n()}))}))}on(t,e){_.on(t,e)}off(t,e){_.off(t,e)}beforeFetch(t,e,r){return _.emit("NAVIGATE_OUT",{from:this.currentCacheEntry,trigger:r}),new Promise((n=>{this.currentCacheEntry.renderer.leave(e,r,this.removeOldContent).then((()=>{"popstate"!==r&&window.history.pushState({},"",t.raw),n()}))}))}afterFetch(t,e,r,n){return this.currentLocation=t,this.popTarget=this.currentLocation.href,new Promise((i=>
2{r.renderer.update(),_.emit("NAVIGATE_IN",{from:this.currentCacheEntry,to:r,trigger:n}),this.reloadJsFilter&&this.loadScripts(r.scripts),this.reloadCssFilter&&this.loadStyles(r.styles),"popstate"!==n&&t.href!==r.finalUrl&&window.history.replaceState({},"",r.finalUrl),r.renderer.enter(e,n).then((()=>{_.emit("NAVIGATE_END",{from:this.currentCacheEntry,to:r,trigger:n}),this.currentCacheEntry=r,this.isTransitioning=!1,this.isPopping=!1,i()}))}))}loadScripts(t){const e=[...t],r=Array.from(document.querySelectorAll("script")).filter(this.reloadJsFilter);for(let t=0;t<r.length;t++)for(let n=0;n<e.length;n++)if(r[t].outerHTML===e[n].outerHTML){T(r[t],"SCRIPT"),e.splice(n,1);break}for(const t of e)E(t,"SCRIPT")}loadStyles(t){const e=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter(this.reloadCssFilter),r=Array.from(document.querySelectorAll("style")).filter(this.reloadCssFilter),n=t.filter((t=>!t.href||(e.find((e=>e.href===t.href))?void 0:(document.body.append(t),!1))));for(let t=0;t<r.length;t++)for(let e=0;e<n.length;e++)if(r[t].outerHTML===n[e].outerHTML){T(r[t],"STYLE"),n.splice(e,1);break}for(const t of n)E(t,"STYLE")}attachEvents(t){_.delegate("click",t,this.onClick),_.on("popstate",window,this.onPopstate),this.enablePrefetch&&_.delegate("mouseenter focus",t,this.onPrefetch)}onClick=t=>{if(!t.metaKey&&!t.ctrlKey){const e=b(t.currentTarget.href);if(this.currentLocation=b(window.location.href),this.currentLocation.host!==e.host)return;if(this.currentLocation.href!==e.href||this.currentLocation.hasHash&&!e.hasHash)return t.preventDefault(),void this.navigateTo(e.raw,t.currentTarget.dataset.transition||!1,t.currentTarget).catch((t=>console.warn(t)));this.currentLocation.hasHash||e.hasHash||t.preventDefault()}};onPopstate=()=>{const t=b(window.location.href);return!(t.pathname===this.currentLocation.pathname&&t.search===this.currentLocation.search&&!this.isPopping)&&(this.allowInterruption||!this.isTransitioning&&!this.isPopping?(this.isPopping||(this.popTarget=window.location.href),this.isPopping=!0,void this.navigateTo(window.location.href,!1,"popstate")):(window.history.pushState({},"",this.popTarget),console.warn(M),!1))};onPrefetch=t=>{const e=b(t.currentTarget.href);this.currentLocation.host===e.host&&this.preload(t.currentTarget.href,!1)};fetch(t,e=!0){if(this.activePromises.has(t))return this.activePromises.get(t);const r=new Promise(((r,n)=>{let i;fetch(t,{mode:"same-origin",method:"GET",headers:{"X-Requested-With":"Taxi"},credentials:"same-origin"}).then((r=>(r.ok||(n("Taxi encountered a non 2xx HTTP status code"),e&&(window.location.href=t)),i=r.url,r.text()))).then((t=>{var e;r({html:(e=t,"string"==typeof e?x.parseFromString(e,"text/html"):e),url:i})}
2)).catch((r=>{n(r),e&&(window.location.href=t)})).finally((()=>{this.activePromises.delete(t)}))}));return this.activePromises.set(t,r),r}chooseTransition(t){if(t)return this.transitions[t];const e=this.router?.findMatch(this.currentLocation,this.targetLocation);return e?this.transitions[e]:this.defaultTransition}createCacheEntry(t,e){const r=t.querySelector("[data-taxi-view]"),n=r.dataset.taxiView.length?this.renderers[r.dataset.taxiView]:this.defaultRenderer;return n||console.warn(`The Renderer "${r.dataset.taxiView}" was set in the data-taxi-view of the requested page, but not registered in Taxi.`),{page:t,content:r,finalUrl:e,skipCache:r.hasAttribute("data-taxi-nocache"),scripts:this.reloadJsFilter?Array.from(t.querySelectorAll("script")).filter(this.reloadJsFilter):[],styles:this.reloadCssFilter?Array.from(t.querySelectorAll('link[rel="stylesheet"], style')).filter(this.reloadCssFilter):[],title:t.title,renderer:new n({wrapper:this.wrapper,title:t.title,content:r,page:t})}}}({renderers:{default:class extends C{initialLoad(){this.onEnter(dd.viewHeight(),pd.init(),yd.headerInit()),this.onEnterCompleted(xd.init(),kd.init())}onEnter(){pd.scrollToTop(),fd.animations(),gd.init(),yd.init(),wd.init(),_d.init(),Td.init(),bd.init({oneAtATime:!0}),Ld=new Yh,Ld.init(),Ed.init(),Sd.init(),Cd.init(),md.customPlayer()}onEnterCompleted(){vd.init(),xd.scroll(),xd.updateActiveLinks()}onLeave(){}onLeaveCompleted(){Ma.getAll().forEach((t=>{t.kill()})),xd.reset(),Ed.destroy(),md.destroy()}}},transitions:{default:class extends k{onLeave({to:t,from:e,trigger:r,done:n}){bi.timeline({onComplete:()=>{n()}}).to(e,{autoAlpha:0,duration:.25})}onEnter({to:t,trigger:e,done:r,from:n}){bi.timeline({onComplete:()=>{r()}}).fromTo(t,{autoAlpha:0},{autoAlpha:1,duration:.25})}}}})}()}(); 3//# sourceMappingURL=main.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.