@leemeyer/nth-letter 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2104,7 +2104,9 @@ Ii.version = "3.14.2";
2104
2104
  var Li = Ii;
2105
2105
  pi.registerPlugin(Li), t({ onComplete(e, t, n) {
2106
2106
  n.forEach((e) => e.remove());
2107
- let r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = e.replace(/([^,{]+?)::?nth-letter\s*\(([^)]*)\)/gi, (e, t, n) => (t = t.trim(), r.add(t), i.add(n), `${t}::part(nth-child\\(${CSS.escape(n)}\\))`));
2107
+ let r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
2108
+ e = e.replace(/\/\*[\s\S]*?\*\//g, "");
2109
+ let a = e.replace(/([^,{]+?)::?nth-letter\s*\(([^)]*)\)/gi, (e, t, n) => (t = t.trim(), r.add(t), i.add(n), `${t}::part(nth-child\\(${CSS.escape(n)}\\))`));
2108
2110
  document.head.insertAdjacentHTML("beforeend", `<style>${a}</style>`), r.forEach((e) => {
2109
2111
  document.querySelectorAll(e).forEach((e) => {
2110
2112
  if (e.shadowRoot) return;
@@ -1,3 +1,3 @@
1
1
  (function(e){typeof define==`function`&&define.amd?define([],e):e()})(function(){function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n={mimeType:t.mimeType||null,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.isArray(e)?e:[e],i=Array.apply(null,Array(r.length)).map((function(e){return null}));function a(e){var t=typeof e==`string`,n=t&&e.trim().charAt(0)===`<`;return t&&!n}function o(e,t){n.onError(e,r[t],t)}function s(e,t){var a=n.onSuccess(e,r[t],t);e=a===!1?``:a||e,i[t]=e,i.indexOf(null)===-1&&n.onComplete(i)}var c=document.createElement(`a`);r.forEach((function(e,t){if(c.setAttribute(`href`,e),c.href=String(c.href),document.all&&!window.atob&&c.host.split(`:`)[0]!==location.host.split(`:`)[0])if(c.protocol===location.protocol){var r=new XDomainRequest;r.open(`GET`,e),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){var e=r.responseText;a(e)?s(e,t):o(r,t)},r.onerror=function(e){o(r,t)},setTimeout((function(){r.send()}),0)}else console.warn(`Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (${e})`),o(null,t);else{var i=new XMLHttpRequest;i.open(`GET`,e),n.mimeType&&i.overrideMimeType&&i.overrideMimeType(n.mimeType),n.onBeforeSend(i,e,t),i.onreadystatechange=function(){if(i.readyState===4){var e=i.responseText;i.status<400&&a(e)||i.status===0&&a(e)?s(e,t):o(i,t)}},i.send()}}))}function t(t){var i={cssComments:/\/\*[\s\S]+?\*\//g,cssImports:/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g},a={rootElement:t.rootElement||document,include:t.include||`style,link[rel="stylesheet"]`,exclude:t.exclude||null,filter:t.filter||null,skipDisabled:t.skipDisabled!==!1,useCSSOM:t.useCSSOM||!1,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},o=Array.apply(null,a.rootElement.querySelectorAll(a.include)).filter((function(e){return!r(e,a.exclude)})),s=Array.apply(null,Array(o.length)).map((function(e){return null}));function c(){if(s.indexOf(null)===-1){s.reduce((function(e,t,n){return t===``&&e.push(n),e}),[]).reverse().forEach((function(e){return[o,s].forEach((function(t){return t.splice(e,1)}))}));var e=s.join(``);a.onComplete(e,s,o)}}function l(e,t,n,r){var i=a.onSuccess(e,n,r);e=i!==void 0&&!i?``:i||e,d(e,n,r,(function(e,r){s[t]===null&&(r.forEach((function(e){return a.onError(e.xhr,n,e.url)})),!a.filter||a.filter.test(e)?s[t]=e:s[t]=``,c())}))}function u(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a={};return a.rules=(e.replace(i.cssComments,``).match(i.cssImports)||[]).filter((function(e){return r.indexOf(e)===-1})),a.urls=a.rules.map((function(e){return e.replace(i.cssImports,`$1`)})),a.absoluteUrls=a.urls.map((function(e){return n(e,t)})),a.absoluteRules=a.rules.map((function(e,r){var i=a.urls[r],o=n(a.absoluteUrls[r],t);return e.replace(i,o)})),a}function d(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],c=u(t,r,s);c.rules.length?e(c.absoluteUrls,{onBeforeSend:function(e,t,r){a.onBeforeSend(e,n,t)},onSuccess:function(e,t,r){var i=a.onSuccess(e,n,t);e=i===!1?``:i||e;var o=u(e,t,s);return o.rules.forEach((function(t,n){e=e.replace(t,o.absoluteRules[n])})),e},onError:function(e,a,l){o.push({xhr:e,url:a}),s.push(c.rules[l]),d(t,n,r,i,o,s)},onComplete:function(e){e.forEach((function(e,n){t=t.replace(c.rules[n],e)})),d(t,n,r,i,o,s)}}):i(t,o)}o.length?o.forEach((function(t,r){var i=t.getAttribute(`href`),o=t.getAttribute(`rel`),u=t.nodeName.toLowerCase()===`link`&&i&&o&&o.toLowerCase().indexOf(`stylesheet`)!==-1,d=a.skipDisabled===!1?!1:t.disabled,f=t.nodeName.toLowerCase()===`style`;if(u&&!d)if(i.indexOf(`data:text/css`)!==-1){var p=decodeURIComponent(i.substring(i.indexOf(`,`)+1));a.useCSSOM&&(p=Array.apply(null,t.sheet.cssRules).map((function(e){return e.cssText})).join(``)),l(p,r,t,location.href)}else e(i,{mimeType:`text/css`,onBeforeSend:function(e,n,r){a.onBeforeSend(e,t,n)},onSuccess:function(e,a,o){l(e,r,t,n(i))},onError:function(e,n,i){s[r]=``,a.onError(e,t,n),c()}});else if(f&&!d){var m=t.textContent;a.useCSSOM&&(m=Array.apply(null,t.sheet.cssRules).map((function(e){return e.cssText})).join(``)),l(m,r,t,location.href)}else s[r]=``,c()})):a.onComplete(``,[])}function n(e,t){var n=document.implementation.createHTMLDocument(``),r=n.createElement(`base`),i=n.createElement(`a`);return n.head.appendChild(r),n.body.appendChild(i),r.href=t||document.baseURI||(document.querySelector(`base`)||{}).href||location.href,i.href=e,i.href}function r(e,t){return(e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector).call(e,t)}function i(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var o={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},s={duration:.5,overwrite:!1,delay:0},c,l,u,d=1e8,f=1/d,p=Math.PI*2,m=p/4,h=0,g=Math.sqrt,_=Math.cos,v=Math.sin,y=function(e){return typeof e==`string`},b=function(e){return typeof e==`function`},x=function(e){return typeof e==`number`},S=function(e){return e===void 0},C=function(e){return typeof e==`object`},w=function(e){return e!==!1},T=function(){return typeof window<`u`},E=function(e){return b(e)||y(e)},D=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},O=Array.isArray,k=/random\([^)]+\)/g,A=/,\s*/g,j=/(?:-?\.?\d|\.)+/gi,M=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,N=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,P=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,F=/[+-]=-?[.\d]+/,I=/[^,'"\[\]\s]+/gi,L=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,R,z,B,ee,te={},ne={},re,ie=function(e){return(ne=Me(e,te))&&Z},ae=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},oe=function(e,t){return!t&&console.warn(e)},se=function(e,t){return e&&(te[e]=t)&&ne&&(ne[e]=t)||te},ce=function(){return 0},le={suppressEvents:!0,isStart:!0,kill:!1},ue={suppressEvents:!0,kill:!1},de={suppressEvents:!0},fe={},pe=[],me={},he,ge={},_e={},ve=30,ye=[],be=``,xe=function(e){var t=e[0],n,r;if(C(t)||b(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=ye.length;r--&&!ye[r].targetTest(t););n=ye[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new on(e[r],n)))||e.splice(r,1);return e},Se=function(e){return e._gsap||xe(mt(e))[0]._gsap},Ce=function(e,t,n){return(n=e[t])&&b(n)?e[t]():S(n)&&e.getAttribute&&e.getAttribute(t)||n},V=function(e,t){return(e=e.split(`,`)).forEach(t)||e},H=function(e){return Math.round(e*1e5)/1e5||0},U=function(e){return Math.round(e*1e7)/1e7||0},we=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},Te=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},Ee=function(){var e=pe.length,t=pe.slice(0),n,r;for(me={},pe.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},De=function(e){return!!(e._initted||e._startAt||e.add)},Oe=function(e,t,n,r){pe.length&&!l&&Ee(),e.render(t,n,r||!!(l&&t<0&&De(e))),pe.length&&!l&&Ee()},ke=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(I).length<2?t:y(e)?e.trim():e},Ae=function(e){return e},W=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},je=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},Me=function(e,t){for(var n in t)e[n]=t[n];return e},Ne=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=C(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Pe=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},Fe=function(e){var t=e.parent||R,n=e.keyframes?je(O(e.keyframes)):W;if(w(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},Ie=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},Le=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},Re=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},ze=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Be=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Ve=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},He=function(e,t,n,r){return e._startAt&&(l?e._startAt.revert(ue):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Ue=function e(t){return!t||t._ts&&e(t.parent)},We=function(e){return e._repeat?Ge(e._tTime,e=e.duration()+e._rDelay)*e:0},Ge=function(e,t){var n=Math.floor(e=U(e/t));return e&&n===e?n-1:n},Ke=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},qe=function(e){return e._end=U(e._start+(e._tDur/Math.abs(e._ts||e._rts||f)||0))},Je=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=U(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),qe(e),n._dirty||Be(n,e)),e},Ye=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=Ke(e.rawTime(),t),(!t._dur||lt(0,t.totalDuration(),n)-t._tTime>f)&&t.render(n,!0)),Be(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-f}},Xe=function(e,t,n,r){return t.parent&&ze(t),t._start=U((x(n)?n:n||e!==R?ot(e,n,t):e._time)+t._delay),t._end=U(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Le(e,t,`_first`,`_last`,e._sort?`_start`:0),et(t)||(e._recent=t),r||Ye(e,t),e._ts<0&&Je(e,e._tTime),e},Ze=function(e,t){return(te.ScrollTrigger||ae(`scrollTrigger`,t))&&te.ScrollTrigger.create(t,e)},Qe=function(e,t,n,r,i){if(mn(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!l&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&he!==Gt.frame)return pe.push(e),e._lazy=[i,r],1},$e=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},et=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},tt=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&$e(e)&&!(!e._initted&&et(e))||(e._ts<0||e._dp._ts<0)&&!et(e))?0:1,o=e._rDelay,s=0,c,u,d;if(o&&e._repeat&&(s=lt(0,e._tDur,t),u=Ge(s,o),e._yoyo&&u&1&&(a=1-a),u!==Ge(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||l||r||e._zTime===f||!t&&e._zTime){if(!e._initted&&Qe(e,t,r,n,s))return;for(d=e._zTime,e._zTime=t||(n?f:0),n||=t&&!d,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&He(e,t,n,!0),e._onUpdate&&!n&&jt(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&jt(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&ze(e,1),!n&&!l&&(jt(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},nt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start<t)return r;r=r._prev}},rt=function(e,t,n,r){var i=e._repeat,a=U(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:U(a*(i+1)+e._rDelay*i):a,o>0&&!r&&Je(e,e._tTime=e._tDur*o),e.parent&&qe(e),n||Be(e.parent,e),e},it=function(e){return e instanceof J?Be(e):rt(e,e._dur)},at={_start:0,endTime:ce,totalDuration:ce},ot=function e(t,n,r){var i=t.labels,a=t._recent||at,o=t.duration()>=d?a.endTime(!1):t._dur,s,c,l;return y(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(O(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},st=function(e,t,n){var r=x(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=w(s.vars.inherit)&&s.parent;a.immediateRender=w(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Y(t[0],a,t[i+1])},ct=function(e,t){return e||e===0?t(e):t},lt=function(e,t,n){return n<e?e:n>t?t:n},G=function(e,t){return!y(e)||!(t=L.exec(e))?``:t[1]},ut=function(e,t,n){return ct(n,function(n){return lt(e,t,n)})},dt=[].slice,ft=function(e,t){return e&&C(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&C(e[0]))&&!e.nodeType&&e!==z},pt=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return y(e)&&!t||ft(e,1)?(r=n).push.apply(r,mt(e)):n.push(e)})||n},mt=function(e,t,n){return u&&!t&&u.selector?u.selector(e):y(e)&&!n&&(B||!Kt())?dt.call((t||ee).querySelectorAll(e),0):O(e)?pt(e,n):ft(e)?dt.call(e,0):e?[e]:[]},ht=function(e){return e=mt(e)[0]||oe(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return mt(t,n.querySelectorAll?n:n===e?oe(`Invalid scope`)||ee.createElement(`div`):e)}},gt=function(e){return e.sort(function(){return .5-Math.random()})},_t=function(e){if(b(e))return e;var t=C(e)?e:{each:e},n=en(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return y(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,f){var p=(f||t).length,m=a[p],h,_,v,y,b,x,S,C,w;if(!m){if(w=t.grid===`auto`?0:(t.grid||[1,d])[1],!w){for(S=-d;S<(S=f[w++].getBoundingClientRect().left)&&w<p;);w<p&&w--}for(m=a[p]=[],h=s?Math.min(w,p)*l-.5:r%w,_=w===d?0:s?p*u/w-.5:r/w|0,S=0,C=d,x=0;x<p;x++)v=x%w-h,y=_-(x/w|0),m[x]=b=c?Math.abs(c===`y`?y:v):g(v*v+y*y),b>S&&(S=b),b<C&&(C=b);r===`random`&&gt(m),m.max=S-C,m.min=C,m.v=p=(parseFloat(t.amount)||parseFloat(t.each)*(w>p?p-1:c?c===`y`?p/w:w:Math.max(w,p/w))||0)*(r===`edges`?-1:1),m.b=p<0?i-p:i,m.u=G(t.amount||t.each)||0,n=n&&p<0?Qt(n):n}return p=(m[e]-m.min)/m.max||0,U(m.b+(n?n(p):p)*m.v)+m.u}},vt=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=U(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(x(n)?0:G(n))}},yt=function(e,t){var n=O(e),r,i;return!n&&C(e)&&(r=n=e.radius||d,e.values?(e=mt(e.values),(i=!x(e[0]))&&(r*=r)):e=vt(e.increment)),ct(t,n?b(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=d,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),l<o&&(o=l,s=c);return s=!r||o<=r?e[s]:t,i||s===t||x(t)?s:s+G(t)}:vt(e))},bt=function(e,t,n,r){return ct(O(e)?!t:n===!0?!!(n=0):!r,function(){return O(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},xt=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},St=function(e,t){return function(n){return e(parseFloat(n))+(t||G(n))}},Ct=function(e,t,n){return Ot(e,t,0,1,n)},wt=function(e,t,n){return ct(n,function(n){return e[~~t(n)]})},Tt=function e(t,n,r){var i=n-t;return O(t)?wt(t,e(0,t.length),n):ct(r,function(e){return(i+(e-t)%i)%i+t})},Et=function e(t,n,r){var i=n-t,a=i*2;return O(t)?wt(t,e(0,t.length-1),n):ct(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},Dt=function(e){return e.replace(k,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(A);return bt(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},Ot=function(e,t,n,r,i){var a=t-e,o=r-n;return ct(i,function(t){return n+((t-e)/a*o||0)})},kt=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=y(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(O(t)&&!O(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=Me(O(t)?[]:{},t));if(!u){for(c in n)ln.call(s,t,c,`get`,n[c]);a=function(e){return kn(e,s)||(o?t.p:t)}}}return ct(r,a)},At=function(e,t,n){var r=e.labels,i=d,a,o,s;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(s=a,i=o);return s},jt=function(e,t,n){var r=e.vars,i=r[t],a=u,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&pe.length&&Ee(),o&&(u=o),l=s?i.apply(c,s):i.call(c),u=a,l},Mt=function(e){return ze(e),e.scrollTrigger&&e.scrollTrigger.kill(!!l),e.progress()<1&&jt(e,`onInterrupt`),e},Nt,Pt=[],Ft=function(e){if(e)if(e=!e.name&&e.default||e,T()||e.headless){var t=e.name,n=b(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:ce,render:kn,add:ln,kill:jn,modifier:An,rawVars:0},a={targetTest:0,get:0,getSetter:Tn,aliases:{},register:0};if(Kt(),e!==r){if(ge[t])return;W(r,W(Pe(e,i),a)),Me(r.prototype,Me(i,Pe(e,a))),ge[r.prop=t]=r,e.targetTest&&(ye.push(r),fe[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}se(t,r),e.register&&e.register(Z,r,X)}else Pt.push(e)},K=255,It={aqua:[0,K,K],lime:[0,K,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,K],navy:[0,0,128],white:[K,K,K],olive:[128,128,0],yellow:[K,K,0],orange:[K,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[K,0,0],pink:[K,192,203],cyan:[0,K,K],transparent:[K,K,K,0]},Lt=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*K+.5|0},Rt=function(e,t,n){var r=e?x(e)?[e>>16,e>>8&K,e&K]:0:It.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),It[e])r=It[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&K,r&K,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&K,e&K]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(j),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Lt(s+1/3,i,a),r[1]=Lt(s,i,a),r[2]=Lt(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(M),n&&r.length<4&&(r[3]=1),r}else r=e.match(j)||It.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/K,a=r[1]/K,o=r[2]/K,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},zt=function(e){var t=[],n=[],r=-1;return e.split(Vt).forEach(function(e){var i=e.match(N)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},Bt=function(e,t,n){var r=``,i=(e+r).match(Vt),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=Rt(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=zt(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(Vt,`1`).split(N),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(Vt),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},Vt=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in It)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),Ht=/hsl[a]?\(/,Ut=function(e){var t=e.join(` `),n;if(Vt.lastIndex=0,Vt.test(t))return n=Ht.test(t),e[1]=Bt(e[1],n),e[0]=Bt(e[0],n,zt(e[1])),!0},Wt,Gt=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){re&&(!B&&T()&&(z=B=window,ee=z.document||{},te.gsap=Z,(z.gsapVersions||=[]).push(Z.version),ie(ne||z.GreenSockGlobals||!z.gsap&&z||{}),Pt.forEach(Ft)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},Wt=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),Wt=0,l=ce},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),Kt(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),Kt=function(){return!Wt&&Gt.wake()},q={},qt=/^[\d.\-M][\d.\-,\s]/,Jt=/["']/g,Yt=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(Jt,``).trim():+c,r=s.substr(o+1).trim();return t},Xt=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},Zt=function(e){var t=(e+``).split(`(`),n=q[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Yt(t[1])]:Xt(e).split(`,`).map(ke)):q._CE&&qt.test(e)?q._CE(``,e):n},Qt=function(e){return function(t){return 1-e(1-t)}},$t=function e(t,n){for(var r=t._first,i;r;)r instanceof J?e(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?e(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},en=function(e,t){return e&&(b(e)?e:q[e]||Zt(e))||t},tn=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return V(e,function(e){for(var t in q[e]=te[e]=i,q[a=e.toLowerCase()]=n,i)q[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=q[e+`.`+t]=i[t]}),i},nn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},rn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/p*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*v((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:nn(s);return a=p/a,c.config=function(n,r){return e(t,n,r)},c},an=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:nn(r);return i.config=function(n){return e(t,n)},i};V(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;tn(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),q.Linear.easeNone=q.none=q.Linear.easeIn,tn(`Elastic`,rn(`in`),rn(`out`),rn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};tn(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),tn(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),tn(`Circ`,function(e){return-(g(1-e*e)-1)}),tn(`Sine`,function(e){return e===1?1:-_(e*m)+1}),tn(`Back`,an(`in`),an(`out`),an()),q.SteppedEase=q.steps=te.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+(t?0:1),i=t?1:0,a=1-f;return function(e){return((r*lt(0,a,e)|0)+i)*n}}},s.ease=q[`quad.out`],V(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return be+=e+`,`+e+`Params,`});var on=function(e,t){this.id=h++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Ce,this.set=t?t.getSetter:Tn},sn=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,rt(this,+e.duration,1,1),this.data=e.data,u&&(this._ctx=u,u.data.push(this)),Wt||Gt.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,rt(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Kt(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Je(this,e),!n._dp||n.parent||Ye(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Xe(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===f||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Oe(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+We(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+We(this),t):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?Ge(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-f?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?Ke(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-f?0:this._rts,this.totalTime(lt(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),qe(this),Ve(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Kt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==f&&(this._tTime-=f)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=U(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Xe(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(w(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ke(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=de);var t=l;return l=e,De(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),l=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,it(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,it(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(ot(this,e),w(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,w(t)),this._dur||(this._zTime=-f),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-f:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-f,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n<this.endTime(!0)-f)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=b(e)?e:Ae,a=function(){var e=t.then;t.then=null,n&&n(),b(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Mt(this)},e}();W(sn.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:-f,_prom:0,_ps:!1,_rts:1});var J=function(e){a(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=w(t.sortChildren),R&&Xe(t.parent||R,i(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&Ze(i(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return st(0,arguments,this),this},n.from=function(e,t,n){return st(1,arguments,this),this},n.fromTo=function(e,t,n,r){return st(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Fe(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Y(e,t,ot(this,n),1),this},n.call=function(e,t,n){return Xe(this,Y.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new Y(e,n,ot(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Fe(n).immediateRender=w(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Fe(r).immediateRender=w(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:U(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,u,d,p,m,h,g,_,v,y,b,x;if(this!==R&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,v=this._start,_=this._ts,h=!_,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(b=this._yoyo,m=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(m*100+e,t,n);if(c=U(o%m),o===i?(p=this._repeat,c=a):(y=U(o/m),p=~~y,p&&p===y&&(c=a,p--),c>a&&(c=a)),y=Ge(this._tTime,m),!r&&this._tTime&&y!==p&&this._tTime-y*m-this._dur<=0&&(y=p),b&&p&1&&(c=a-c,x=1),p!==y&&!this._lock){var S=b&&y&1,C=S===(b&&p&1);if(p<y&&(S=!S),r=S?0:o%a?a:o,this._lock=1,this.render(r||(x?0:U(p*m)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&jt(this,`onRepeat`),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1,y=p),r&&r!==this._time||h!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,C&&(this._lock=2,r=S?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!h))return this;$t(this,x)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(g=nt(this,U(r),U(c)),g&&(o-=c-(c=g._start))),this._tTime=o,this._time=c,this._act=!_,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!y&&(jt(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(u=this._first;u;){if(d=u._next,(u._act||c>=u._start)&&u._ts&&g!==u){if(u.parent!==this)return this.render(e,t,n);if(u.render(u._ts>0?(c-u._start)*u._ts:(u._dirty?u.totalDuration():u._tDur)+(c-u._start)*u._ts,t,n),c!==this._time||!this._ts&&!h){g=0,d&&(o+=this._zTime=-f);break}}u=d}else{u=this._last;for(var w=e<0?e:c;u;){if(d=u._prev,(u._act||w<=u._end)&&u._ts&&g!==u){if(u.parent!==this)return this.render(e,t,n);if(u.render(u._ts>0?(w-u._start)*u._ts:(u._dirty?u.totalDuration():u._tDur)+(w-u._start)*u._ts,t,n||l&&De(u)),c!==this._time||!this._ts&&!h){g=0,d&&(o+=this._zTime=w?-f:f);break}}u=d}}if(g&&!t&&(this.pause(),g.render(c>=r?0:-f)._zTime=c>=r?1:-1,this._ts))return this._start=v,qe(this),this.render(e,t,n);this._onUpdate&&!t&&jt(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(v===this._start||Math.abs(_)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&ze(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(jt(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o<i&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(x(t)||(t=ot(this,t,e)),!(e instanceof sn)){if(O(e))return e.forEach(function(e){return n.add(e,t)}),this;if(y(e))return this.addLabel(e,t);if(b(e))e=Y.delayedCall(0,e);else return this}return this===e?this:Xe(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-d);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Y?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return y(e)?this.removeLabel(e):b(e)?this.killTweensOf(e):(e.parent===this&&Re(this,e),e===this._recent&&(this._recent=this._last),Be(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=U(Gt.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=ot(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Y.delayedCall(0,t||ce,n);return r.data=`isPause`,this._hasPause=1,Xe(this,r,ot(this,e))},n.removePause=function(e){var t=this._first;for(e=ot(this,e);t;)t._start===e&&t.data===`isPause`&&ze(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)fn!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=mt(e),i=this._first,a=x(t),o;i;)i instanceof Y?Te(i._targets,r)&&(a?(!fn||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=ot(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Y.to(n,W({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||f,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&rt(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,W({startAt:{time:ot(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),At(this,ot(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),At(this,ot(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+f)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=U(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return Be(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Be(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=d,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,Xe(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=U(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;rt(n,n===R&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(R._ts&&(Oe(R,Ke(e,R)),he=Gt.frame),Gt.frame>=ve){ve+=o.autoSleep||120;var t=R._first;if((!t||!t._ts)&&o.autoSleep&&Gt._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Gt.sleep()}}},t}(sn);W(J.prototype,{_lock:0,_hasPause:0,_forcing:0});var cn=function(e,t,n,r,i,a,o){var s=new X(this._pt,e,t,0,1,On,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=Dt(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(P)||[];u=P.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?we(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=P.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(F.test(r)||g)&&(s.e=0),this._pt=s,s},ln=function(e,t,n,r,i,a,s,c,l,u){b(r)&&(r=r(i||0,e,a));var d=e[t],f=n===`get`?b(d)?l?e[t.indexOf(`set`)||!b(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](l):e[t]():d:n,p=b(d)?l?Cn:Sn:xn,m;if(y(r)&&(~r.indexOf(`random(`)&&(r=Dt(r)),r.charAt(1)===`=`&&(m=we(f,r)+(G(f)||0),(m||m===0)&&(r=m))),!u||f!==r||pn)return!isNaN(f*r)&&r!==``?(m=new X(this._pt,e,t,+f||0,r-(f||0),typeof d==`boolean`?Dn:En,0,p),l&&(m.fp=l),s&&m.modifier(s,this,e),this._pt=m):(!d&&!(t in e)&&ae(t,r),cn.call(this,e,t,f,r,p,c||o.stringFilter,l))},un=function(e,t,n,r,i){if(b(e)&&(e=vn(e,i,t,n,r)),!C(e)||e.style&&e.nodeType||O(e)||D(e))return y(e)?vn(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=vn(e[o],i,t,n,r);return a},dn=function(e,t,n,r,i,a){var o,s,c,l;if(ge[e]&&(o=new ge[e]).init(i,o.rawVars?t[e]:un(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new X(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Nt))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},fn,pn,mn=function e(t,n,r){var i=t.vars,a=i.ease,o=i.startAt,u=i.immediateRender,p=i.lazy,m=i.onUpdate,h=i.runBackwards,g=i.yoyoEase,_=i.keyframes,v=i.autoRevert,y=t._dur,b=t._startAt,x=t._targets,S=t.parent,C=S&&S.data===`nested`?S.vars.targets:x,T=t._overwrite===`auto`&&!c,E=t.timeline,D,O,k,A,j,M,N,P,F,I,L,z,B;if(E&&(!_||!a)&&(a=`none`),t._ease=en(a,s.ease),t._yEase=g?Qt(en(g===!0?a:g,s.ease)):0,g&&t._yoyo&&!t._repeat&&(g=t._yEase,t._yEase=t._ease,t._ease=g),t._from=!E&&!!i.runBackwards,!E||_&&!i.stagger){if(P=x[0]?Se(x[0]).harness:0,z=P&&i[P.prop],D=Pe(i,fe),b&&(b._zTime<0&&b.progress(1),n<0&&h&&u&&!v?b.render(-1,!0):b.revert(h&&y?ue:le),b._lazy=0),o){if(ze(t._startAt=Y.set(x,W({data:`isStart`,overwrite:!1,parent:S,immediateRender:!0,lazy:!b&&w(p),startAt:null,delay:0,onUpdate:m&&function(){return jt(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(l||!u&&!v)&&t._startAt.revert(ue),u&&y&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(h&&y&&!b){if(n&&(u=!1),k=W({overwrite:!1,data:`isFromStart`,lazy:u&&!b&&w(p),immediateRender:u,stagger:0,parent:S},D),z&&(k[P.prop]=z),ze(t._startAt=Y.set(x,k)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(l?t._startAt.revert(ue):t._startAt.render(-1,!0)),t._zTime=n,!u)e(t._startAt,f,f);else if(!n)return}for(t._pt=t._ptCache=0,p=y&&w(p)||p&&!y,O=0;O<x.length;O++){if(j=x[O],N=j._gsap||xe(x)[O]._gsap,t._ptLookup[O]=I={},me[N.id]&&pe.length&&Ee(),L=C===x?O:C.indexOf(j),P&&(F=new P).init(j,z||D,t,L,C)!==!1&&(t._pt=A=new X(t._pt,j,F.name,0,1,F.render,F,0,F.priority),F._props.forEach(function(e){I[e]=A}),F.priority&&(M=1)),!P||z)for(k in D)ge[k]&&(F=dn(k,D,t,L,j,C))?F.priority&&(M=1):I[k]=A=ln.call(t,j,k,`get`,D[k],L,C,0,i.stringFilter);t._op&&t._op[O]&&t.kill(j,t._op[O]),T&&t._pt&&(fn=t,R.killTweensOf(j,I,t.globalTime(n)),B=!t.parent,fn=0),t._pt&&p&&(me[N.id]=1)}M&&Nn(t),t._onInit&&t._onInit(t)}t._onUpdate=m,t._initted=(!t._op||t._pt)&&!B,_&&n<=0&&E.render(d,!0,!0)},hn=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return pn=1,e.vars[t]=`+=0`,mn(e,o),pn=0,s?oe(t+` not eligible for reset`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&=H(n)+G(u.e),u.b&&=l.s+G(u.b)},gn=function(e,t){var n=e[0]?Se(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=Me({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},_n=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(O(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},vn=function(e,t,n,r,i){return b(e)?e.call(t,n,r,i):y(e)&&~e.indexOf(`random(`)?Dt(e):e},yn=be+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert`,bn={};V(yn+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return bn[e]=1});var Y=function(e){a(t,e);function t(t,n,r,a){var s;typeof n==`number`&&(r.duration=n,n=r,r=null),s=e.call(this,a?n:Fe(n))||this;var l=s.vars,u=l.duration,d=l.delay,p=l.immediateRender,m=l.stagger,h=l.overwrite,g=l.keyframes,_=l.defaults,v=l.scrollTrigger,y=l.yoyoEase,b=n.parent||R,S=(O(t)||D(t)?x(t[0]):`length`in n)?[t]:mt(t),T,k,A,j,M,N,P,F;if(s._targets=S.length?xe(S):oe(`GSAP target `+t+` not found. https://gsap.com`,!o.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=h,g||m||E(u)||E(d)){if(n=s.vars,T=s.timeline=new J({data:`nested`,defaults:_||{},targets:b&&b.data===`nested`?b.vars.targets:S}),T.kill(),T.parent=T._dp=i(s),T._start=0,m||E(u)||E(d)){if(j=S.length,P=m&&_t(m),C(m))for(M in m)~yn.indexOf(M)&&(F||={},F[M]=m[M]);for(k=0;k<j;k++)A=Pe(n,bn),A.stagger=0,y&&(A.yoyoEase=y),F&&Me(A,F),N=S[k],A.duration=+vn(u,i(s),k,N,S),A.delay=(+vn(d,i(s),k,N,S)||0)-s._delay,!m&&j===1&&A.delay&&(s._delay=d=A.delay,s._start+=d,A.delay=0),T.to(N,A,P?P(k,N,S):0),T._ease=q.none;T.duration()?u=d=0:s.timeline=0}else if(g){Fe(W(T.vars.defaults,{ease:`none`})),T._ease=en(g.ease||n.ease||`none`);var I=0,L,z,B;if(O(g))g.forEach(function(e){return T.to(S,e,`>`)}),T.duration();else{for(M in A={},g)M===`ease`||M===`easeEach`||_n(M,g[M],A,g.easeEach);for(M in A)for(L=A[M].sort(function(e,t){return e.t-t.t}),I=0,k=0;k<L.length;k++)z=L[k],B={ease:z.e,duration:(z.t-(k?L[k-1].t:0))/100*u},B[M]=z.v,T.to(S,B,I),I+=B.duration;T.duration()<u&&T.to({},{duration:u-T.duration()})}}u||s.duration(u=T.duration())}else s.timeline=0;return h===!0&&!c&&(fn=i(s),R.killTweensOf(S),fn=0),Xe(b,i(s),r),n.reversed&&s.reverse(),n.paused&&s.paused(!0),(p||!u&&!g&&s._start===U(b._time)&&w(p)&&Ue(i(s))&&b.data!==`nested`)&&(s._tTime=-f,s.render(Math.max(0,-d)||0)),v&&Ze(i(s),v),s}var n=t.prototype;return n.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-f&&!o?i:e<f?0:e,c,l,u,d,p,m,h,g,_;if(!a)tt(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(c=s,g=this.timeline,this._repeat){if(d=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(d*100+e,t,n);if(c=U(s%d),s===i?(u=this._repeat,c=a):(p=U(s/d),u=~~p,u&&u===p?(c=a,u--):c>a&&(c=a)),m=this._yoyo&&u&1,m&&(_=this._yEase,c=a-c),p=Ge(this._tTime,d),c===r&&!n&&this._initted&&u===p)return this._tTime=s,this;u!==p&&(g&&this._yEase&&$t(g,m),this.vars.repeatRefresh&&!m&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(U(d*u),!0).invalidate()._lock=0))}if(!this._initted){if(Qe(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==p))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._tTime=s,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(_||this._ease)(c/a),this._from&&(this.ratio=h=1-h),!r&&s&&!t&&!p&&(jt(this,`onStart`),this._tTime!==s))return this;for(l=this._pt;l;)l.r(h,l.d),l=l._next;g&&g.render(e<0?e:g._dur*g._ease(c/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&He(this,e,t,n),jt(this,`onUpdate`)),this._repeat&&u!==p&&this.vars.onRepeat&&!t&&this.parent&&jt(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&He(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&ze(this,1),!t&&!(o&&!r)&&(s||r||m)&&(jt(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){Wt||Gt.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||mn(this,a),o=this._ease(a/this._dur),hn(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(Je(this,0),this.parent||Le(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Mt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!l),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,fn&&fn.vars.overwrite!==!0)._first||Mt(this),this.parent&&n!==this.timeline.totalDuration()&&rt(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?mt(e):r,a=this._ptLookup,o=this._pt,s,c,u,d,f,p,m;if((!t||t===`all`)&&Ie(r,i))return t===`all`&&(this._pt=0),Mt(this);for(s=this._op=this._op||[],t!==`all`&&(y(t)&&(f={},V(t,function(e){return f[e]=1}),t=f),t=gn(r,t)),m=r.length;m--;)if(~i.indexOf(r[m]))for(f in c=a[m],t===`all`?(s[m]=t,d=c,u={}):(u=s[m]=s[m]||{},d=t),d)p=c&&c[f],p&&((!(`kill`in p.d)||p.d.kill(f)===!0)&&Re(this,p,`_pt`),delete c[f]),u!==`all`&&(u[f]=1);return this._initted&&!this._pt&&o&&Mt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return st(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return st(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return R.killTweensOf(e,t,n)},t}(sn);W(Y.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),V(`staggerTo,staggerFrom,staggerFromTo`,function(e){Y[e]=function(){var t=new J,n=dt.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var xn=function(e,t,n){return e[t]=n},Sn=function(e,t,n){return e[t](n)},Cn=function(e,t,n,r){return e[t](r.fp,n)},wn=function(e,t,n){return e.setAttribute(t,n)},Tn=function(e,t){return b(e[t])?Sn:S(e[t])&&e.setAttribute?wn:xn},En=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Dn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},On=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},kn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},An=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},jn=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Re(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Mn=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Nn=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},X=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||En,this.d=o||this,this.set=s||xn,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Mn,this.m=e,this.mt=n,this.tween=t},e}();V(be+`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(e){return fe[e]=1}),te.TweenMax=te.TweenLite=Y,te.TimelineLite=te.TimelineMax=J,R=new J({sortChildren:!1,defaults:s,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),o.stringFilter=Ut;var Pn=[],Fn={},In=[],Ln=0,Rn=0,zn=function(e){return(Fn[e]||In).map(function(e){return e()})},Bn=function(){var e=Date.now(),t=[];e-Ln>2&&(zn(`matchMediaInit`),Pn.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=z.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),zn(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Ln=e,zn(`matchMedia`))},Vn=function(){function e(e,t){this.selector=t&&ht(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Rn++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){b(e)&&(n=t,t=e,e=b);var r=this,i=function(){var e=u,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=ht(n)),u=r,a=t.apply(r,arguments),b(a)&&r._r.push(a),u=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===b?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=u;u=null,e(this),u=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Y&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof J?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Y)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Pn.length;r--;)Pn[r].id===this.id&&Pn.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),Hn=function(){function e(e){this.contexts=[],this.scope=e,u&&u.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){C(e)||(e={matches:e});var r=new Vn(0,n||this.scope),i=r.conditions={},a,o,s;for(o in u&&!r.selector&&(r.selector=u.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=z.matchMedia(e[o]),a&&(Pn.indexOf(r)<0&&Pn.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(Bn):a.addEventListener(`change`,Bn)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),Un={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return Ft(e)})},timeline:function(e){return new J(e)},getTweensOf:function(e,t){return R.getTweensOf(e,t)},getProperty:function(e,t,n,r){y(e)&&(e=mt(e)[0]);var i=Se(e||{}).get,a=n?Ae:ke;return n===`native`&&(n=``),e&&(t?a((ge[t]&&ge[t].get||i)(e,t,n,r)):function(t,n,r){return a((ge[t]&&ge[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=mt(e),e.length>1){var r=e.map(function(e){return Z.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=ge[t],o=Se(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Nt._pt=0,r.init(e,n?t+n:t,Nt,0,[e]),r.render(1,r),Nt._pt&&kn(1,Nt)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Z.to(e,W((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return R.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=en(e.ease,s.ease)),Ne(s,e||{})},config:function(e){return Ne(o,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!ge[e]&&!te[e]&&oe(t+` effect requires `+e+` plugin.`)}),_e[t]=function(e,t,r){return n(mt(e),W(t||{},i),r)},a&&(J.prototype[t]=function(e,n,r){return this.add(_e[t](e,C(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){q[e]=en(t)},parseEase:function(e,t){return arguments.length?en(e,t):q},getById:function(e){return R.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new J(e),r,i;for(n.smoothChildTiming=w(e.smoothChildTiming),R.remove(n),n._dp=0,n._time=n._tTime=R._time,r=R._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Y&&r.vars.onComplete===r._targets[0]))&&Xe(n,r,r._start-r._delay),r=i;return Xe(R,n,0),n},context:function(e,t){return e?new Vn(e,t):u},matchMedia:function(e){return new Hn(e)},matchMediaRefresh:function(){return Pn.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Bn()},addEventListener:function(e,t){var n=Fn[e]||(Fn[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Fn[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Tt,wrapYoyo:Et,distribute:_t,random:bt,snap:yt,normalize:Ct,getUnit:G,clamp:ut,splitColor:Rt,toArray:mt,selector:ht,mapRange:Ot,pipe:xt,unitize:St,interpolate:kt,shuffle:gt},install:ie,effects:_e,ticker:Gt,updateRoot:J.updateRoot,plugins:ge,globalTimeline:R,core:{PropTween:X,globals:se,Tween:Y,Timeline:J,Animation:sn,getCache:Se,_removeLinkedListItem:Re,reverting:function(){return l},context:function(e){return e&&u&&(u.data.push(e),e._ctx=u),u},suppressOverwrites:function(e){return c=e}}};V(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return Un[e]=Y[e]}),Gt.add(J.updateRoot),Nt=Un.to({},{duration:0});var Wn=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Gn=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=Wn(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},Kn=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(y(n)&&(r={},V(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}Gn(e,n)}}}},Z=Un.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)l?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},Kn(`roundProps`,vt),Kn(`modifiers`),Kn(`snap`,yt))||Un;Y.version=J.version=Z.version=`3.14.2`,re=1,T()&&Kt(),q.Power0,q.Power1,q.Power2,q.Power3,q.Power4,q.Linear,q.Quad,q.Cubic,q.Quart,q.Quint,q.Strong,q.Elastic,q.Back,q.SteppedEase,q.Bounce,q.Sine,q.Expo,q.Circ;var qn,Jn,Yn,Xn,Zn,Qn,$n,er=function(){return typeof window<`u`},tr={},nr=180/Math.PI,rr=Math.PI/180,ir=Math.atan2,ar=1e8,or=/([A-Z])/g,sr=/(left|right|width|margin|padding|x)/i,cr=/[\s,\(]\S/,lr={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},ur=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},dr=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},fr=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},pr=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},mr=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},hr=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},gr=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},_r=function(e,t,n){return e.style[t]=n},vr=function(e,t,n){return e.style.setProperty(t,n)},yr=function(e,t,n){return e._gsap[t]=n},br=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},xr=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Sr=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},Q=`transform`,$=Q+`Origin`,Cr=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in tr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=lr[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=Hr(i,e)}):this.tfm[t]=o.x?o[t]:Hr(i,t),t===$&&(this.tfm.zOrigin=o.zOrigin);else return lr.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(Q)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push($,n,``)),t=Q}(a||n)&&this.props.push(t,n,a[t])},wr=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Tr=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(or,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=$n(),(!i||!i.isStart)&&!n[Q]&&(wr(n),r.zOrigin&&n[$]&&(n[$]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},Er=function(e,t){var n={target:e,props:[],revert:Tr,save:Cr};return e._gsap||Z.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},Dr,Or=function(e,t){var n=Jn.createElementNS?Jn.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):Jn.createElement(e);return n&&n.style?n:Jn.createElement(e)},kr=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(or,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,jr(n)||n,1)||``},Ar=`O,Moz,ms,Ms,Webkit`.split(`,`),jr=function(e,t,n){var r=(t||Zn).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(Ar[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?Ar[i]:``)+e},Mr=function(){er()&&window.document&&(qn=window,Jn=qn.document,Yn=Jn.documentElement,Zn=Or(`div`)||{style:{}},Or(`div`),Q=jr(Q),$=Q+`Origin`,Zn.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Dr=!!jr(`perspective`),$n=Z.core.reverting,Xn=1)},Nr=function(e){var t=e.ownerSVGElement,n=Or(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),Yn.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),Yn.removeChild(n),i},Pr=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Fr=function(e){var t,n;try{t=e.getBBox()}catch{t=Nr(e),n=1}return t&&(t.width||t.height)||n||(t=Nr(e)),t&&!t.width&&!t.x&&!t.y?{x:+Pr(e,[`x`,`cx`,`x1`])||0,y:+Pr(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},Ir=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Fr(e))},Lr=function(e,t){if(t){var n=e.style,r;t in tr&&t!==$&&(t=Q),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(or,`-$1`).toLowerCase())):n.removeAttribute(t)}},Rr=function(e,t,n,r,i,a){var o=new X(e._pt,t,n,0,1,a?gr:hr);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},zr={deg:1,rad:1,turn:1},Br={grid:1,flex:1},Vr=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=Zn.style,c=sr.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||zr[i]||zr[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&Ir(t),(p||o===`%`)&&(tr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],H(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Jn||!h.appendChild)&&(h=Jn.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Gt.time&&!g.uncache)return H(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Lr(t,n)}else (p||o===`%`)&&!Br[kr(h,`display`)]&&(s.position=kr(t,`position`)),h===t&&(s.position=`static`),h.appendChild(Zn),m=Zn[u],h.removeChild(Zn),s.position=`absolute`;return c&&p&&(g=Se(h),g.time=Gt.time,g.width=h[u]),H(f?m*a/d:m&&a?d/m*a:0)},Hr=function(e,t,n,r){var i;return Xn||Mr(),t in lr&&t!==`transform`&&(t=lr[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),tr[t]&&t!==`transform`?(i=ei(e,r),i=t===`transformOrigin`?i.svg?i.origin:ti(kr(e,$))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=qr[t]&&qr[t](e,t,n)||kr(e,t)||Ce(e,t)||(t===`opacity`?1:0))),n&&!~(i+``).trim().indexOf(` `)?Vr(e,t,i,n)+n:i},Ur=function(e,t,n,r){if(!n||n===`none`){var i=jr(t,e,1),a=i&&kr(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=kr(e,`borderTopColor`))}var s=new X(this._pt,e.style,t,0,1,On),c=0,l=0,u,d,f,p,m,h,g,_,v,y,b,x;if(s.b=n,s.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=kr(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(h=e.style[t],e.style[t]=r,r=kr(e,t)||r,h?e.style[t]=h:Lr(e,t)),u=[n,r],Ut(u),n=u[0],r=u[1],f=n.match(N)||[],x=r.match(N)||[],x.length){for(;d=N.exec(r);)g=d[0],v=r.substring(c,d.index),m?m=(m+1)%5:(v.substr(-5)===`rgba(`||v.substr(-5)===`hsla(`)&&(m=1),g!==(h=f[l++]||``)&&(p=parseFloat(h)||0,b=h.substr((p+``).length),g.charAt(1)===`=`&&(g=we(p,g)+b),_=parseFloat(g),y=g.substr((_+``).length),c=N.lastIndex-y.length,y||(y=y||o.units[t]||b,c===r.length&&(r+=y,s.e+=y)),b!==y&&(p=Vr(e,t,h,y)||0),s._pt={_next:s._pt,p:v||l===1?v:`,`,s:p,c:_-p,m:m&&m<4||t===`zIndex`?Math.round:0});s.c=c<r.length?r.substring(c,r.length):``}else s.r=t===`display`&&r===`none`?gr:hr;return F.test(r)&&(s.e=0),this._pt=s,s},Wr={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},Gr=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=Wr[n]||n,t[1]=Wr[r]||r,t.join(` `)},Kr=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],tr[o]&&(s=1,o=o===`transformOrigin`?$:Q),Lr(n,o);s&&(Lr(n,Q),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,ei(n,1),a.uncache=1,wr(r)))}},qr={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new X(e._pt,t,n,0,0,Kr);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Jr=[1,0,0,1,0,0],Yr={},Xr=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Zr=function(e){var t=kr(e,Q);return Xr(t)?Jr:t.substr(7).match(M).map(H)},Qr=function(e,t){var n=e._gsap||Se(e),r=e.style,i=Zr(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?Jr:i):(i===Jr&&!e.offsetParent&&e!==Yn&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,Yn.appendChild(e)),i=Zr(e),s?r.display=s:Lr(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):Yn.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},$r=function(e,t,n,r,i,a){var o=e._gsap,s=i||Qr(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==Jr&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Fr(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[$]=`0px 0px`,a&&(Rr(a,o,`xOrigin`,c,y),Rr(a,o,`yOrigin`,l,b),Rr(a,o,`xOffset`,u,o.xOffset),Rr(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},ei=function(e,t){var n=e._gsap||new on(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,s=`deg`,c=getComputedStyle(e),l=kr(e,$)||`0`,u=d=f=h=g=_=v=y=b=0,d,f,p=m=1,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,ee;return n.svg=!!(e.getCTM&&Ir(e)),c.translate&&((c.translate!==`none`||c.scale!==`none`||c.rotate!==`none`)&&(r[Q]=(c.translate===`none`?``:`translate3d(`+(c.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(c.rotate===`none`?``:`rotate(`+c.rotate+`) `)+(c.scale===`none`?``:`scale(`+c.scale.split(` `).join(`,`)+`) `)+(c[Q]===`none`?``:c[Q])),r.scale=r.rotate=r.translate=`none`),C=Qr(e,n.svg),n.svg&&(n.uncache?(P=e.getBBox(),l=n.xOrigin-P.x+`px `+(n.yOrigin-P.y)+`px`,N=``):N=!t&&e.getAttribute(`data-svg-origin`),$r(e,N||l,!!N||n.originIsAbsolute,n.smooth!==!1,C)),x=n.xOrigin||0,S=n.yOrigin||0,C!==Jr&&(D=C[0],O=C[1],k=C[2],A=C[3],u=j=C[4],d=M=C[5],C.length===6?(p=Math.sqrt(D*D+O*O),m=Math.sqrt(A*A+k*k),h=D||O?ir(O,D)*nr:0,v=k||A?ir(k,A)*nr+h:0,v&&(m*=Math.abs(Math.cos(v*rr))),n.svg&&(u-=x-(x*D+S*k),d-=S-(x*O+S*A))):(ee=C[6],z=C[7],I=C[8],L=C[9],R=C[10],B=C[11],u=C[12],d=C[13],f=C[14],w=ir(ee,R),g=w*nr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=j*T+I*E,P=M*T+L*E,F=ee*T+R*E,I=j*-E+I*T,L=M*-E+L*T,R=ee*-E+R*T,B=z*-E+B*T,j=N,M=P,ee=F),w=ir(-k,R),_=w*nr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=D*T-I*E,P=O*T-L*E,F=k*T-R*E,B=A*E+B*T,D=N,O=P,k=F),w=ir(O,D),h=w*nr,w&&(T=Math.cos(w),E=Math.sin(w),N=D*T+O*E,P=j*T+M*E,O=O*T-D*E,M=M*T-j*E,D=N,j=P),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,_=180-_),p=H(Math.sqrt(D*D+O*O+k*k)),m=H(Math.sqrt(M*M+ee*ee)),w=ir(j,M),v=Math.abs(w)>2e-4?w*nr:0,b=B?1/(B<0?-B:B):0),n.svg&&(N=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!Xr(kr(e,Q)),N&&e.setAttribute(`transform`,N))),Math.abs(v)>90&&Math.abs(v)<270&&(i?(p*=-1,v+=h<=0?180:-180,h+=h<=0?180:-180):(m*=-1,v+=v<=0?180:-180)),t||=n.uncache,n.x=u-((n.xPercent=u&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=d-((n.yPercent=d&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=f+a,n.scaleX=H(p),n.scaleY=H(m),n.rotation=H(h)+s,n.rotationX=H(g)+s,n.rotationY=H(_)+s,n.skewX=v+s,n.skewY=y+s,n.transformPerspective=b+a,(n.zOrigin=parseFloat(l.split(` `)[2])||!t&&n.zOrigin||0)&&(r[$]=ti(l)),n.xOffset=n.yOffset=0,n.force3D=o.force3D,n.renderTransform=n.svg?ci:Dr?si:ri,n.uncache=0,n},ti=function(e){return(e=e.split(` `))[0]+` `+e[1]},ni=function(e,t,n){var r=G(t);return H(parseFloat(t)+parseFloat(Vr(e,`x`,n+`px`,r)))+r},ri=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,si(e,t)},ii=`0deg`,ai=`0px`,oi=`) `,si=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==ii||l!==ii)){var x=parseFloat(l)*rr,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*rr,w=Math.cos(x),a=ni(_,a,S*w*-v),o=ni(_,o,-Math.sin(x)*-v),s=ni(_,s,C*w*-v+v)}h!==ai&&(y+=`perspective(`+h+oi),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==ai||o!==ai||s!==ai)&&(y+=s!==ai||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+oi),c!==ii&&(y+=`rotate(`+c+oi),l!==ii&&(y+=`rotateY(`+l+oi),u!==ii&&(y+=`rotateX(`+u+oi),(d!==ii||f!==ii)&&(y+=`skew(`+d+`, `+f+oi),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+oi),_.style[Q]=y||`translate(0, 0)`},ci=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=rr,c*=rr,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=rr,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=H(b),x=H(x),S=H(S),C=H(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=Vr(f,`x`,a,`px`),y=Vr(f,`y`,o,`px`)),(p||m||h||g)&&(v=H(v+p-(p*b+m*S)+h),y=H(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=H(v+r/100*w.width),y=H(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[Q]=w)},li=function(e,t,n,r,i){var a=360,o=y(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?nr:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*ar)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*ar)%a-~~(s/a)*a)),e._pt=u=new X(e._pt,t,n,r,s,dr),u.e=c,u.u=`deg`,e._props.push(n),u},ui=function(e,t){for(var n in t)e[n]=t[n];return e},di=function(e,t,n){var r=ui({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[Q]=t,o=ei(n,1),Lr(n,Q),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[Q],a[Q]=t,o=ei(n,1),a[Q]=c),tr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=G(c),p=G(l),u=f===p?parseFloat(c):Vr(n,s,c,p),d=parseFloat(l),e._pt=new X(e._pt,o,s,u,d-u,ur),e._pt.u=p||0,e._props.push(s));ui(o,r)};V(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});qr[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return Hr(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var fi={name:`css`,register:Mr,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,s=e.style,c=n.vars.startAt,l,u,d,f,p,m,h,g,_,v,b,x,S,C,w,T,E;for(h in Xn||Mr(),this.styles=this.styles||Er(e),T=this.styles.props,this.tween=n,t)if(h!==`autoRound`&&(u=t[h],!(ge[h]&&dn(h,t,n,r,e,i)))){if(p=typeof u,m=qr[h],p===`function`&&(u=u.call(n,r,e,i),p=typeof u),p===`string`&&~u.indexOf(`random(`)&&(u=Dt(u)),m)m(this,e,h,u,n)&&(w=1);else if(h.substr(0,2)===`--`)l=(getComputedStyle(e).getPropertyValue(h)+``).trim(),u+=``,Vt.lastIndex=0,Vt.test(l)||(g=G(l),_=G(u),_?g!==_&&(l=Vr(e,h,l,_)+_):g&&(u+=g)),this.add(s,`setProperty`,l,u,r,i,0,0,h),a.push(h),T.push(h,0,s[h]);else if(p!==`undefined`){if(c&&h in c?(l=typeof c[h]==`function`?c[h].call(n,r,e,i):c[h],y(l)&&~l.indexOf(`random(`)&&(l=Dt(l)),G(l+``)||l===`auto`||(l+=o.units[h]||G(Hr(e,h))||``),(l+``).charAt(1)===`=`&&(l=Hr(e,h))):l=Hr(e,h),f=parseFloat(l),v=p===`string`&&u.charAt(1)===`=`&&u.substr(0,2),v&&(u=u.substr(2)),d=parseFloat(u),h in lr&&(h===`autoAlpha`&&(f===1&&Hr(e,`visibility`)===`hidden`&&d&&(f=0),T.push(`visibility`,0,s.visibility),Rr(this,s,`visibility`,f?`inherit`:`hidden`,d?`inherit`:`hidden`,!d)),h!==`scale`&&h!==`transform`&&(h=lr[h],~h.indexOf(`,`)&&(h=h.split(`,`)[0]))),b=h in tr,b){if(this.styles.save(h),E=u,p===`string`&&u.substring(0,6)===`var(--`){if(u=kr(e,u.substring(4,u.indexOf(`)`))),u.substring(0,5)===`calc(`){var D=e.style.perspective;e.style.perspective=u,u=kr(e,`perspective`),D?e.style.perspective=D:Lr(e,`perspective`)}d=parseFloat(u)}if(x||(S=e._gsap,S.renderTransform&&!t.parseTransform||ei(e,t.parseTransform),C=t.smoothOrigin!==!1&&S.smooth,x=this._pt=new X(this._pt,s,Q,0,1,S.renderTransform,S,0,-1),x.dep=1),h===`scale`)this._pt=new X(this._pt,S,`scaleY`,S.scaleY,(v?we(S.scaleY,v+d):d)-S.scaleY||0,ur),this._pt.u=0,a.push(`scaleY`,h),h+=`X`;else if(h===`transformOrigin`){T.push($,0,s[$]),u=Gr(u),S.svg?$r(e,u,0,C,0,this):(_=parseFloat(u.split(` `)[2])||0,_!==S.zOrigin&&Rr(this,S,`zOrigin`,S.zOrigin,_),Rr(this,s,h,ti(l),ti(u)));continue}else if(h===`svgOrigin`){$r(e,u,1,C,0,this);continue}else if(h in Yr){li(this,S,h,f,v?we(f,v+u):u);continue}else if(h===`smoothOrigin`){Rr(this,S,`smooth`,S.smooth,u);continue}else if(h===`force3D`){S[h]=u;continue}else if(h===`transform`){di(this,u,e);continue}}else h in s||(h=jr(h)||h);if(b||(d||d===0)&&(f||f===0)&&!cr.test(u)&&h in s)g=(l+``).substr((f+``).length),d||=0,_=G(u)||(h in o.units?o.units[h]:g),g!==_&&(f=Vr(e,h,l,_)),this._pt=new X(this._pt,b?S:s,h,f,(v?we(f,v+d):d)-f,!b&&(_===`px`||h===`zIndex`)&&t.autoRound!==!1?mr:ur),this._pt.u=_||0,b&&E!==u?(this._pt.b=l,this._pt.e=E,this._pt.r=pr):g!==_&&_!==`%`&&(this._pt.b=l,this._pt.r=fr);else if(h in s)Ur.call(this,e,h,l,v?v+u:u);else if(h in e)this.add(e,h,l||e[h],v?v+u:u,r,i);else if(h!==`parseTransform`){ae(h,u);continue}b||(h in s?T.push(h,0,s[h]):typeof e[h]==`function`?T.push(h,2,e[h]()):T.push(h,1,l||e[h])),a.push(h)}}w&&Nn(this)},render:function(e,t){if(t.tween._time||!$n())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Hr,aliases:lr,getSetter:function(e,t,n){var r=lr[t];return r&&r.indexOf(`,`)<0&&(t=r),t in tr&&t!==$&&(e._gsap.x||Hr(e,`x`))?n&&Qn===n?t===`scale`?br:yr:(Qn=n||{})&&(t===`scale`?xr:Sr):e.style&&!S(e.style[t])?_r:~t.indexOf(`-`)?vr:Tn(e,t)},core:{_removeProperty:Lr,_getMatrix:Qr}};Z.utils.checkPrefix=jr,Z.core.getStyleSaver=Er,(function(e,t,n,r){var i=V(e+`,`+t+`,`+n,function(e){tr[e]=1});V(t,function(e){o.units[e]=`deg`,Yr[e]=1}),lr[i[13]]=e+`,`+t,V(r,function(e){var t=e.split(`:`);lr[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),V(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){o.units[e]=`px`}),Z.registerPlugin(fi);var pi=Z.registerPlugin(fi)||Z;pi.core.Tween;var mi,hi,gi=typeof Symbol==`function`?Symbol():`_split`,_i,vi=()=>_i||Li.register(window.gsap),yi=typeof Intl<`u`&&`Segmenter`in Intl?new Intl.Segmenter:0,bi=e=>typeof e==`string`?bi(document.querySelectorAll(e)):`length`in e?Array.from(e).reduce((e,t)=>(typeof t==`string`?e.push(...bi(t)):e.push(t),e),[]):[e],xi=e=>bi(e).filter(e=>e instanceof HTMLElement),Si=[],Ci=function(){},wi={add:e=>e()},Ti=/\s+/g,Ei=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`),Di={left:0,top:0,width:0,height:0},Oi=(e,t)=>{for(;++t<e.length&&e[t]===Di;);return e[t]||Di},ki=({element:e,html:t,ariaL:n,ariaH:r})=>{e.innerHTML=t,n?e.setAttribute(`aria-label`,n):e.removeAttribute(`aria-label`),r?e.setAttribute(`aria-hidden`,r):e.removeAttribute(`aria-hidden`)},Ai=(e,t)=>{if(t){let n=new Set(e.join(``).match(t)||Si),r=e.length,i,a,o,s;if(n.size)for(;--r>-1;){a=e[r];for(o of n)if(o.startsWith(a)&&o.length>a.length){for(i=0,s=a;o.startsWith(s+=e[r+ ++i])&&s.length<o.length;);if(i&&s.length===o.length){e[r]=o,e.splice(r+1,i);break}}}}return e},ji=e=>window.getComputedStyle(e).display===`inline`&&(e.style.display=`inline-block`),Mi=(e,t,n)=>t.insertBefore(typeof e==`string`?document.createTextNode(e):e,n),Ni=(e,t,n)=>{let r=t[e+`sClass`]||``,{tag:i=`div`,aria:a=`auto`,propIndex:o=!1}=t,s=e===`line`?`block`:`inline-block`,c=r.indexOf(`++`)>-1,l=t=>{let l=document.createElement(i),u=n.length+1;return r&&(l.className=r+(c?` `+r+u:``)),o&&l.style.setProperty(`--`+e,u+``),a!==`none`&&l.setAttribute(`aria-hidden`,`true`),i!==`span`&&(l.style.position=`relative`,l.style.display=s),l.textContent=t,n.push(l),l};return c&&(r=r.replace(`++`,``)),l.collection=n,l},Pi=(e,t,n,r)=>{let i=Ni(`line`,n,r),a=window.getComputedStyle(e).textAlign||`left`;return(n,r)=>{let o=i(``);for(o.style.textAlign=a,e.insertBefore(o,t[n]);n<r;n++)o.appendChild(t[n]);o.normalize()}},Fi=(e,t,n,r,i,a,o,s,c,l)=>{var u;let d=Array.from(e.childNodes),f=0,{wordDelimiter:p,reduceWhiteSpace:m=!0,prepareText:h}=t,g=e.getBoundingClientRect(),_=g,v=!m&&window.getComputedStyle(e).whiteSpace.substring(0,3)===`pre`,y=0,b=n.collection,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R;for(typeof p==`object`?(C=p.delimiter||p,S=p.replaceWith||``):S=p===``?``:p||` `,x=S!==` `;f<d.length;f++)if(w=d[f],w.nodeType===3){for(F=w.textContent||``,m?F=F.replace(Ti,` `):v&&(F=F.replace(/\n/g,S+`
2
2
  `)),h&&(F=h(F,e)),w.textContent=F,T=S||C?F.split(C||S):F.match(s)||Si,L=T[T.length-1],O=x?L.slice(-1)===` `:!L,L||T.pop(),_=g,D=x?T[0].charAt(0)===` `:!T[0],D&&Mi(` `,e,w),T[0]||T.shift(),Ai(T,c),a&&l||(w.textContent=``),k=1;k<=T.length;k++)if(I=T[k-1],!m&&v&&I.charAt(0)===`
3
- `&&((u=w.previousSibling)==null||u.remove(),Mi(document.createElement(`br`),e,w),I=I.slice(1)),!m&&I===``)Mi(S,e,w);else if(I===` `)e.insertBefore(document.createTextNode(` `),w);else{if(x&&I.charAt(0)===` `&&Mi(` `,e,w),y&&k===1&&!D&&b.indexOf(y.parentNode)>-1?(E=b[b.length-1],E.appendChild(document.createTextNode(r?``:I))):(E=n(r?``:I),Mi(E,e,w),y&&k===1&&!D&&E.insertBefore(y,E.firstChild)),r)for(j=yi?Ai([...yi.segment(I)].map(e=>e.segment),c):I.match(s)||Si,R=0;R<j.length;R++)E.appendChild(j[R]===` `?document.createTextNode(` `):r(j[R]));if(a&&l){if(F=w.textContent=F.substring(I.length+1,F.length),A=E.getBoundingClientRect(),A.top>_.top&&A.left<=_.left){for(M=e.cloneNode(),N=e.childNodes[0];N&&N!==E;)P=N,N=N.nextSibling,M.appendChild(P);e.parentNode.insertBefore(M,e),i&&ji(M)}_=A}(k<T.length||O)&&Mi(k>=T.length?` `:x&&I.slice(-1)===` `?` `+S:S,e,w)}e.removeChild(w),y=0}else w.nodeType===1&&(o&&o.indexOf(w)>-1?(b.indexOf(w.previousSibling)>-1&&b[b.length-1].appendChild(w),y=w):(Fi(w,t,n,r,i,a,o,s,c,!0),y=0),i&&ji(w))},Ii=class e{constructor(e,t){this.isSplit=!1,vi(),this.elements=xi(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=t,this.elements.forEach(e=>{var n;t.overwrite!==!1&&((n=e[gi])==null||n._data.orig.filter(({element:t})=>t===e).forEach(ki)),e[gi]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let n=[],r,i=()=>{let e=n.length,t;for(;e--;){t=n[e];let r=t.element.offsetWidth;if(r!==t.width){t.width=r,this._split();return}}};this._data={orig:n,obs:typeof ResizeObserver<`u`&&new ResizeObserver(()=>{clearTimeout(r),r=setTimeout(i,200)})},Ci(this),this.split(t)}split(e){return(this._ctx||wi).add(()=>{this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:t=`chars,words,lines`,aria:n=`auto`,deepSlice:r=!0,smartWrap:i,onSplit:a,autoSplit:o=!1,specialChars:s,mask:c}=this.vars,l=t.indexOf(`lines`)>-1,u=t.indexOf(`chars`)>-1,d=t.indexOf(`words`)>-1,f=u&&!d&&!l,p=s&&(`push`in s?RegExp(`(?:`+s.join(`|`)+`)`,`gu`):s),m=p?RegExp(p.source+`|`+Ei.source,`gu`):Ei,h=!!e.ignore&&xi(e.ignore),{orig:g,animTime:_,obs:v}=this._data,y;(u||d||l)&&(this.elements.forEach((t,a)=>{g[a]={element:t,html:t.innerHTML,ariaL:t.getAttribute(`aria-label`),ariaH:t.getAttribute(`aria-hidden`)},n===`auto`?t.setAttribute(`aria-label`,(t.textContent||``).trim()):n===`hidden`&&t.setAttribute(`aria-hidden`,`true`);let o=[],s=[],c=[],_=u?Ni(`char`,e,o):null,v=Ni(`word`,e,s),y,b,x,S;if(Fi(t,e,v,_,f,r&&(l||f),h,m,p,!1),l){let n=bi(t.childNodes),r=Pi(t,n,e,c),i,a=[],o=0,s=n.map(e=>e.nodeType===1?e.getBoundingClientRect():Di),l=Di,u;for(y=0;y<n.length;y++)i=n[y],i.nodeType===1&&(i.nodeName===`BR`?((!y||n[y-1].nodeName!==`BR`)&&(a.push(i),r(o,y+1)),o=y+1,l=Oi(s,y)):(u=s[y],y&&u.top>l.top&&u.left<l.left+l.width-1&&(r(o,y),o=y),l=u));o<y&&r(o,y),a.forEach(e=>e.parentNode?.removeChild(e))}if(!d){for(y=0;y<s.length;y++)if(b=s[y],u||!b.nextSibling||b.nextSibling.nodeType!==3)if(i&&!l){for(x=document.createElement(`span`),x.style.whiteSpace=`nowrap`;b.firstChild;)x.appendChild(b.firstChild);b.replaceWith(x)}else b.replaceWith(...b.childNodes);else S=b.nextSibling,S&&S.nodeType===3&&(S.textContent=(b.textContent||``)+(S.textContent||``),b.remove());s.length=0,t.normalize()}this.lines.push(...c),this.words.push(...s),this.chars.push(...o)}),c&&this[c]&&this.masks.push(...this[c].map(e=>{let t=e.cloneNode();return e.replaceWith(t),t.appendChild(e),e.className&&(t.className=e.className.trim()+`-mask`),t.style.overflow=`clip`,t}))),this.isSplit=!0,hi&&l&&(o?hi.addEventListener(`loadingdone`,this._split):hi.status===`loading`&&console.warn(`SplitText called before fonts loaded`)),(y=a&&a(this))&&y.totalTime&&(this._data.anim=_?y.totalTime(_):y),l&&o&&this.elements.forEach((e,t)=>{g[t].width=e.offsetWidth,v&&v.observe(e)})}),this}kill(){let{obs:e}=this._data;e&&e.disconnect(),hi?.removeEventListener(`loadingdone`,this._split)}revert(){var e,t;if(this.isSplit){let{orig:n,anim:r}=this._data;this.kill(),n.forEach(ki),this.chars.length=this.words.length=this.lines.length=n.length=this.masks.length=0,this.isSplit=!1,r&&(this._data.animTime=r.totalTime(),r.revert()),(t=(e=this.vars).onRevert)==null||t.call(e,this)}return this}static create(t,n){return new e(t,n)}static register(e){mi=mi||e||window.gsap,mi&&(bi=mi.utils.toArray,Ci=mi.core.context||Ci),!_i&&window.innerWidth>0&&(hi=document.fonts,_i=!0)}};Ii.version=`3.14.2`;var Li=Ii;pi.registerPlugin(Li),t({onComplete(e,t,n){n.forEach(e=>e.remove());let r=new Set,i=new Set,a=e.replace(/([^,{]+?)::?nth-letter\s*\(([^)]*)\)/gi,(e,t,n)=>(t=t.trim(),r.add(t),i.add(n),`${t}::part(nth-child\\(${CSS.escape(n)}\\))`));document.head.insertAdjacentHTML(`beforeend`,`<style>${a}</style>`),r.forEach(e=>{document.querySelectorAll(e).forEach(e=>{if(e.shadowRoot)return;let t=e.attachShadow({mode:`closed`}),n=document.createElement(`span`);n.innerHTML=e.innerHTML,t.appendChild(n),new Li(n,{type:`chars`,charsClass:`char`}),i.forEach((e,t)=>{n.querySelectorAll(`.char:nth-child(${e})`).forEach(t=>t.part=`nth-child(${e})`)})})})}})});
3
+ `&&((u=w.previousSibling)==null||u.remove(),Mi(document.createElement(`br`),e,w),I=I.slice(1)),!m&&I===``)Mi(S,e,w);else if(I===` `)e.insertBefore(document.createTextNode(` `),w);else{if(x&&I.charAt(0)===` `&&Mi(` `,e,w),y&&k===1&&!D&&b.indexOf(y.parentNode)>-1?(E=b[b.length-1],E.appendChild(document.createTextNode(r?``:I))):(E=n(r?``:I),Mi(E,e,w),y&&k===1&&!D&&E.insertBefore(y,E.firstChild)),r)for(j=yi?Ai([...yi.segment(I)].map(e=>e.segment),c):I.match(s)||Si,R=0;R<j.length;R++)E.appendChild(j[R]===` `?document.createTextNode(` `):r(j[R]));if(a&&l){if(F=w.textContent=F.substring(I.length+1,F.length),A=E.getBoundingClientRect(),A.top>_.top&&A.left<=_.left){for(M=e.cloneNode(),N=e.childNodes[0];N&&N!==E;)P=N,N=N.nextSibling,M.appendChild(P);e.parentNode.insertBefore(M,e),i&&ji(M)}_=A}(k<T.length||O)&&Mi(k>=T.length?` `:x&&I.slice(-1)===` `?` `+S:S,e,w)}e.removeChild(w),y=0}else w.nodeType===1&&(o&&o.indexOf(w)>-1?(b.indexOf(w.previousSibling)>-1&&b[b.length-1].appendChild(w),y=w):(Fi(w,t,n,r,i,a,o,s,c,!0),y=0),i&&ji(w))},Ii=class e{constructor(e,t){this.isSplit=!1,vi(),this.elements=xi(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=t,this.elements.forEach(e=>{var n;t.overwrite!==!1&&((n=e[gi])==null||n._data.orig.filter(({element:t})=>t===e).forEach(ki)),e[gi]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let n=[],r,i=()=>{let e=n.length,t;for(;e--;){t=n[e];let r=t.element.offsetWidth;if(r!==t.width){t.width=r,this._split();return}}};this._data={orig:n,obs:typeof ResizeObserver<`u`&&new ResizeObserver(()=>{clearTimeout(r),r=setTimeout(i,200)})},Ci(this),this.split(t)}split(e){return(this._ctx||wi).add(()=>{this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:t=`chars,words,lines`,aria:n=`auto`,deepSlice:r=!0,smartWrap:i,onSplit:a,autoSplit:o=!1,specialChars:s,mask:c}=this.vars,l=t.indexOf(`lines`)>-1,u=t.indexOf(`chars`)>-1,d=t.indexOf(`words`)>-1,f=u&&!d&&!l,p=s&&(`push`in s?RegExp(`(?:`+s.join(`|`)+`)`,`gu`):s),m=p?RegExp(p.source+`|`+Ei.source,`gu`):Ei,h=!!e.ignore&&xi(e.ignore),{orig:g,animTime:_,obs:v}=this._data,y;(u||d||l)&&(this.elements.forEach((t,a)=>{g[a]={element:t,html:t.innerHTML,ariaL:t.getAttribute(`aria-label`),ariaH:t.getAttribute(`aria-hidden`)},n===`auto`?t.setAttribute(`aria-label`,(t.textContent||``).trim()):n===`hidden`&&t.setAttribute(`aria-hidden`,`true`);let o=[],s=[],c=[],_=u?Ni(`char`,e,o):null,v=Ni(`word`,e,s),y,b,x,S;if(Fi(t,e,v,_,f,r&&(l||f),h,m,p,!1),l){let n=bi(t.childNodes),r=Pi(t,n,e,c),i,a=[],o=0,s=n.map(e=>e.nodeType===1?e.getBoundingClientRect():Di),l=Di,u;for(y=0;y<n.length;y++)i=n[y],i.nodeType===1&&(i.nodeName===`BR`?((!y||n[y-1].nodeName!==`BR`)&&(a.push(i),r(o,y+1)),o=y+1,l=Oi(s,y)):(u=s[y],y&&u.top>l.top&&u.left<l.left+l.width-1&&(r(o,y),o=y),l=u));o<y&&r(o,y),a.forEach(e=>e.parentNode?.removeChild(e))}if(!d){for(y=0;y<s.length;y++)if(b=s[y],u||!b.nextSibling||b.nextSibling.nodeType!==3)if(i&&!l){for(x=document.createElement(`span`),x.style.whiteSpace=`nowrap`;b.firstChild;)x.appendChild(b.firstChild);b.replaceWith(x)}else b.replaceWith(...b.childNodes);else S=b.nextSibling,S&&S.nodeType===3&&(S.textContent=(b.textContent||``)+(S.textContent||``),b.remove());s.length=0,t.normalize()}this.lines.push(...c),this.words.push(...s),this.chars.push(...o)}),c&&this[c]&&this.masks.push(...this[c].map(e=>{let t=e.cloneNode();return e.replaceWith(t),t.appendChild(e),e.className&&(t.className=e.className.trim()+`-mask`),t.style.overflow=`clip`,t}))),this.isSplit=!0,hi&&l&&(o?hi.addEventListener(`loadingdone`,this._split):hi.status===`loading`&&console.warn(`SplitText called before fonts loaded`)),(y=a&&a(this))&&y.totalTime&&(this._data.anim=_?y.totalTime(_):y),l&&o&&this.elements.forEach((e,t)=>{g[t].width=e.offsetWidth,v&&v.observe(e)})}),this}kill(){let{obs:e}=this._data;e&&e.disconnect(),hi?.removeEventListener(`loadingdone`,this._split)}revert(){var e,t;if(this.isSplit){let{orig:n,anim:r}=this._data;this.kill(),n.forEach(ki),this.chars.length=this.words.length=this.lines.length=n.length=this.masks.length=0,this.isSplit=!1,r&&(this._data.animTime=r.totalTime(),r.revert()),(t=(e=this.vars).onRevert)==null||t.call(e,this)}return this}static create(t,n){return new e(t,n)}static register(e){mi=mi||e||window.gsap,mi&&(bi=mi.utils.toArray,Ci=mi.core.context||Ci),!_i&&window.innerWidth>0&&(hi=document.fonts,_i=!0)}};Ii.version=`3.14.2`;var Li=Ii;pi.registerPlugin(Li),t({onComplete(e,t,n){n.forEach(e=>e.remove());let r=new Set,i=new Set;e=e.replace(/\/\*[\s\S]*?\*\//g,``);let a=e.replace(/([^,{]+?)::?nth-letter\s*\(([^)]*)\)/gi,(e,t,n)=>(t=t.trim(),r.add(t),i.add(n),`${t}::part(nth-child\\(${CSS.escape(n)}\\))`));document.head.insertAdjacentHTML(`beforeend`,`<style>${a}</style>`),r.forEach(e=>{document.querySelectorAll(e).forEach(e=>{if(e.shadowRoot)return;let t=e.attachShadow({mode:`closed`}),n=document.createElement(`span`);n.innerHTML=e.innerHTML,t.appendChild(n),new Li(n,{type:`chars`,charsClass:`char`}),i.forEach((e,t)=>{n.querySelectorAll(`.char:nth-child(${e})`).forEach(t=>t.part=`nth-child(${e})`)})})})}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leemeyer/nth-letter",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Simulate the long requested nth-letter CSS selector",
5
5
  "license": "ISC",
6
6
  "author": "",