gsap-trial
Advanced tools
Comparing version 3.12.4 to 3.12.5
/*! | ||
* CSSPlugin 3.12.4 | ||
* CSSPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* Copyright 2008-2023, GreenSock. All rights reserved. | ||
* Copyright 2008-2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for | ||
@@ -7,0 +7,0 @@ * Club GSAP members, the agreement issued with that membership. |
/*! | ||
* CSSRulePlugin 3.12.4 | ||
* CSSRulePlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let e,t,s,l,r=()=>"undefined"!=typeof window,n=()=>e||r()&&(e=window.gsap)&&e.registerPlugin&&e,i=()=>(t||(o(),l||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),t),o=i=>{e=i||n(),r()&&(s=document),e&&(l=e.plugins.css,l&&(t=1))};const u={version:"3.12.4",name:"cssRule",init(e,t,r,n,o){if(!i()||void 0===e.cssText)return!1;let u=e._gsProxy=e._gsProxy||s.createElement("div");this.ss=e,this.style=u.style,u.style.cssText=e.cssText,l.prototype.init.call(this,u,t,r,n,o)},render(e,t){let s,l=t._pt,r=t.style,n=t.ss;for(;l;)l.r(e,l.d),l=l._next;for(s=r.length;--s>-1;)n[r[s]]=r[r[s]]},getRule(e){i();let t,l,r,n,o=s.all?"rules":"cssRules",u=s.styleSheets,c=u.length,g=":"===e.charAt(0);for(e=(g?"":",")+e.split("::").join(":").toLowerCase()+",",g&&(n=[]);c--;){try{if(l=u[c][o],!l)continue;t=l.length}catch(e){console.warn(e);continue}for(;--t>-1;)if(r=l[t],r.selectorText&&-1!==(","+r.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!g)return r.style;n.push(r.style)}}return n},register:o};n()&&e.registerPlugin(u);export default u;export{u as CSSRulePlugin}; | ||
let e,t,s,l,r=()=>"undefined"!=typeof window,n=()=>e||r()&&(e=window.gsap)&&e.registerPlugin&&e,i=()=>(t||(o(),l||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),t),o=i=>{e=i||n(),r()&&(s=document),e&&(l=e.plugins.css,l&&(t=1))};const u={version:"3.12.5",name:"cssRule",init(e,t,r,n,o){if(!i()||void 0===e.cssText)return!1;let u=e._gsProxy=e._gsProxy||s.createElement("div");this.ss=e,this.style=u.style,u.style.cssText=e.cssText,l.prototype.init.call(this,u,t,r,n,o)},render(e,t){let s,l=t._pt,r=t.style,n=t.ss;for(;l;)l.r(e,l.d),l=l._next;for(s=r.length;--s>-1;)n[r[s]]=r[r[s]]},getRule(e){i();let t,l,r,n,o=s.all?"rules":"cssRules",u=s.styleSheets,c=u.length,g=":"===e.charAt(0);for(e=(g?"":",")+e.split("::").join(":").toLowerCase()+",",g&&(n=[]);c--;){try{if(l=u[c][o],!l)continue;t=l.length}catch(e){console.warn(e);continue}for(;--t>-1;)if(r=l[t],r.selectorText&&-1!==(","+r.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!g)return r.style;n.push(r.style)}}return n},register:o};n()&&e.registerPlugin(u);export default u;export{u as CSSRulePlugin}; |
/*! | ||
* CustomBounce 3.12.4 | ||
* CustomBounce 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
let e,t,n,o=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,i=i=>{e=o(),n=e&&e.parseEase("_CE"),n?(t=1,e.parseEase("bounce").config=e=>"object"==typeof e?f("",e):f("bounce("+e+")",{strength:+e})):i&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")},s=e=>{let t,n=e.length,o=1/e[n-2];for(t=2;t<n;t+=2)e[t]=~~(e[t]*o*1e3)/1e3;e[n-2]=1},r=function(){return String.fromCharCode.apply(null,arguments)},a=r(103,114,101,101,110,115,111,99,107,46,99,111,109),u=r(103,115,97,112,46,99,111,109),d=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,c=function(t){var n="undefined"!=typeof window,o=0===(n?window.location.href:"").indexOf(r(102,105,108,101,58,47,47))||-1!==t.indexOf(r(108,111,99,97,108,104,111,115,116))||d.test(t)||(n?window.location.hostname:"").split(".").pop()===r(108,111,99,97,108),i=[a,u,r(99,111,100,101,112,101,110,46,105,111),r(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),r(99,111,100,101,112,101,110,46,100,101,118),r(99,111,100,101,112,101,110,46,97,112,112),r(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),r(112,101,110,115,46,99,108,111,117,100),r(99,115,115,45,116,114,105,99,107,115,46,99,111,109),r(99,100,112,110,46,105,111),r(112,101,110,115,46,105,111),r(103,97,110,110,111,110,46,116,118),r(99,111,100,101,99,97,110,121,111,110,46,110,101,116),r(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),r(99,101,114,101,98,114,97,120,46,99,111,46,117,107),r(116,121,109,112,97,110,117,115,46,110,101,116),r(116,119,101,101,110,109,97,120,46,99,111,109),r(112,108,110,107,114,46,99,111),r(104,111,116,106,97,114,46,99,111,109),r(119,101,98,112,97,99,107,98,105,110,46,99,111,109),r(97,114,99,104,105,118,101,46,111,114,103),r(99,111,100,101,115,97,110,100,98,111,120,46,105,111),r(99,115,98,46,97,112,112),r(115,116,97,99,107,98,108,105,116,122,46,99,111,109),r(115,116,97,99,107,98,108,105,116,122,46,105,111),r(99,111,100,105,101,114,46,105,111),r(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),r(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),r(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),r(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),r(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),r(106,115,102,105,100,100,108,101,46,110,101,116)],s=function(){if(n)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",s);else{document.removeEventListener("readystatechange",s);var t="object"==typeof e?e:n&&window.gsap;n&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(r(37,99,87,97,114,110,105,110,103),r(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(r(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomBounce"+r(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(r(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),r(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},c=i.length;for(setTimeout(s,50);--c>-1;)if(-1!==t.indexOf(i[c]))return!0;return o||!setTimeout((function(){n&&(window.location.href=r(104,116,116,112,115,58,47,47)+a+r(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomBounce&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),f=(e,o)=>{if(t||i(1),o=o||{},c){let t,i,r,a,u,d,c,f=.999,l=Math.min(f,o.strength||.7),g=l,p=(o.squash||0)/100,w=p,h=1/.03,m=.2,y=1,C=.1,v=[0,0,.07,0,.1,1,.1,1],E=[0,0,0,0,.1,0,.1,0];for(u=0;u<200&&(m*=g*((g+1)/2),y*=l*l,d=C+m,r=C+.49*m,a=1-y,t=C+y/h,i=r+.8*(r-t),p&&(C+=p,t+=p,r+=p,i+=p,d+=p,c=p/w,E.push(C-p,0,C-p,c,C-p/2,c,C,c,C,0,C,0,C,-.6*c,C+(d-C)/6,0,d,0),v.push(C-p,1,C,1,C,1),p*=l*l),v.push(C,1,t,a,r,a,i,a,d,1,d,1),l*=.95,h=y/(d-i),C=d,!(a>f));u++);if(o.endAtStart&&"false"!==o.endAtStart){if(r=-.1,v.unshift(r,1,r,1,-.07,0),w)for(p=2.5*w,r-=p,v.unshift(r,1,r,1,r,1),E.splice(0,6),E.unshift(r,0,r,0,r,1,r+p/2,1,r+p,1,r+p,0,r+p,0,r+p,-.6,r+p+.033,0),u=0;u<E.length;u+=2)E[u]-=r;for(u=0;u<v.length;u+=2)v[u]-=r,v[u+1]=1-v[u+1]}return p&&(s(E),E[2]="C"+E[2],n(o.squashID||e+"-squash","M"+E.join(","))),s(v),v[2]="C"+v[2],n(e,"M"+v.join(","))}};class l{constructor(e,t){this.ease=f(e,t)}static create(e,t){return f(e,t)}static register(t){e=t,i()}}o()&&e.registerPlugin(l),l.version="3.12.4";export default l;export{l as CustomBounce}; | ||
let e,t,n,o=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,i=i=>{e=o(),n=e&&e.parseEase("_CE"),n?(t=1,e.parseEase("bounce").config=e=>"object"==typeof e?f("",e):f("bounce("+e+")",{strength:+e})):i&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")},s=e=>{let t,n=e.length,o=1/e[n-2];for(t=2;t<n;t+=2)e[t]=~~(e[t]*o*1e3)/1e3;e[n-2]=1},r=function(){return String.fromCharCode.apply(null,arguments)},a=r(103,114,101,101,110,115,111,99,107,46,99,111,109),u=r(103,115,97,112,46,99,111,109),d=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,c=function(t){var n="undefined"!=typeof window,o=0===(n?window.location.href:"").indexOf(r(102,105,108,101,58,47,47))||-1!==t.indexOf(r(108,111,99,97,108,104,111,115,116))||d.test(t)||(n?window.location.hostname:"").split(".").pop()===r(108,111,99,97,108),i=[a,u,r(99,111,100,101,112,101,110,46,105,111),r(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),r(99,111,100,101,112,101,110,46,100,101,118),r(99,111,100,101,112,101,110,46,97,112,112),r(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),r(112,101,110,115,46,99,108,111,117,100),r(99,115,115,45,116,114,105,99,107,115,46,99,111,109),r(99,100,112,110,46,105,111),r(112,101,110,115,46,105,111),r(103,97,110,110,111,110,46,116,118),r(99,111,100,101,99,97,110,121,111,110,46,110,101,116),r(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),r(99,101,114,101,98,114,97,120,46,99,111,46,117,107),r(116,121,109,112,97,110,117,115,46,110,101,116),r(116,119,101,101,110,109,97,120,46,99,111,109),r(112,108,110,107,114,46,99,111),r(104,111,116,106,97,114,46,99,111,109),r(119,101,98,112,97,99,107,98,105,110,46,99,111,109),r(97,114,99,104,105,118,101,46,111,114,103),r(99,111,100,101,115,97,110,100,98,111,120,46,105,111),r(99,115,98,46,97,112,112),r(115,116,97,99,107,98,108,105,116,122,46,99,111,109),r(115,116,97,99,107,98,108,105,116,122,46,105,111),r(99,111,100,105,101,114,46,105,111),r(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),r(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),r(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),r(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),r(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),r(106,115,102,105,100,100,108,101,46,110,101,116)],s=function(){if(n)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",s);else{document.removeEventListener("readystatechange",s);var t="object"==typeof e?e:n&&window.gsap;n&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(r(37,99,87,97,114,110,105,110,103),r(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(r(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomBounce"+r(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(r(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),r(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},c=i.length;for(setTimeout(s,50);--c>-1;)if(-1!==t.indexOf(i[c]))return!0;return o||!setTimeout((function(){n&&(window.location.href=r(104,116,116,112,115,58,47,47)+a+r(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomBounce&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),f=(e,o)=>{if(t||i(1),o=o||{},c){let t,i,r,a,u,d,c,f=.999,l=Math.min(f,o.strength||.7),g=l,p=(o.squash||0)/100,w=p,h=1/.03,m=.2,y=1,C=.1,v=[0,0,.07,0,.1,1,.1,1],E=[0,0,0,0,.1,0,.1,0];for(u=0;u<200&&(m*=g*((g+1)/2),y*=l*l,d=C+m,r=C+.49*m,a=1-y,t=C+y/h,i=r+.8*(r-t),p&&(C+=p,t+=p,r+=p,i+=p,d+=p,c=p/w,E.push(C-p,0,C-p,c,C-p/2,c,C,c,C,0,C,0,C,-.6*c,C+(d-C)/6,0,d,0),v.push(C-p,1,C,1,C,1),p*=l*l),v.push(C,1,t,a,r,a,i,a,d,1,d,1),l*=.95,h=y/(d-i),C=d,!(a>f));u++);if(o.endAtStart&&"false"!==o.endAtStart){if(r=-.1,v.unshift(r,1,r,1,-.07,0),w)for(p=2.5*w,r-=p,v.unshift(r,1,r,1,r,1),E.splice(0,6),E.unshift(r,0,r,0,r,1,r+p/2,1,r+p,1,r+p,0,r+p,0,r+p,-.6,r+p+.033,0),u=0;u<E.length;u+=2)E[u]-=r;for(u=0;u<v.length;u+=2)v[u]-=r,v[u+1]=1-v[u+1]}return p&&(s(E),E[2]="C"+E[2],n(o.squashID||e+"-squash","M"+E.join(","))),s(v),v[2]="C"+v[2],n(e,"M"+v.join(","))}};class l{constructor(e,t){this.ease=f(e,t)}static create(e,t){return f(e,t)}static register(t){e=t,i()}}o()&&e.registerPlugin(l),l.version="3.12.5";export default l;export{l as CustomBounce}; |
/*! | ||
* CustomEase 3.12.4 | ||
* CustomEase 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,t=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,n=Math.PI/180,s=Math.sin,i=Math.cos,o=Math.abs,a=Math.sqrt,r=e=>Math.round(1e5*e)/1e5||0;function l(e,t,r,l,h,c,g,u,f){if(e===u&&t===f)return;r=o(r),l=o(l);let d=h%360*n,p=i(d),x=s(d),y=Math.PI,w=2*y,m=(e-u)/2,M=(t-f)/2,C=p*m+x*M,E=-x*m+p*M,b=C*C,v=E*E,S=b/(r*r)+v/(l*l);S>1&&(r=a(S)*r,l=a(S)*l);let N=r*r,L=l*l,P=(N*L-N*v-L*b)/(N*v+L*b);P<0&&(P=0);let A=(c===g?-1:1)*a(P),O=A*(r*E/l),D=A*(-l*C/r),V=(e+u)/2+(p*O-x*D),T=(t+f)/2+(x*O+p*D),_=(C-O)/r,j=(E-D)/l,q=(-C-O)/r,G=(-E-D)/l,I=_*_+j*j,R=(j<0?-1:1)*Math.acos(_/a(I)),W=(_*G-j*q<0?-1:1)*Math.acos((_*q+j*G)/a(I*(q*q+G*G)));isNaN(W)&&(W=y),!g&&W>0?W-=w:g&&W<0&&(W+=w),R%=w,W%=w;let z,H=Math.ceil(o(W)/(w/4)),Q=[],Z=W/H,U=4/3*s(Z/2)/(1+i(Z/2)),Y=p*r,$=x*r,k=x*-l,B=p*l;for(z=0;z<H;z++)C=i(h=R+z*Z),E=s(h),_=i(h+=Z),j=s(h),Q.push(C-U*E,E+U*C,_+U*j,j-U*_,_,j);for(z=0;z<Q.length;z+=2)C=Q[z],E=Q[z+1],Q[z]=C*Y+E*k+V,Q[z+1]=C*$+E*B+T;return Q[z-2]=u,Q[z-1]=f,Q}let h,c,g=()=>h||"undefined"!=typeof window&&(h=window.gsap)&&h.registerPlugin&&h,u=()=>{h=g(),h?(h.registerEase("_CE",E.create),c=1):console.warn("Please gsap.registerPlugin(CustomEase)")},f=e=>~~(1e3*e+(e<0?-.5:.5))/1e3,d=function(){return String.fromCharCode.apply(null,arguments)},p=d(103,114,101,101,110,115,111,99,107,46,99,111,109),x=d(103,115,97,112,46,99,111,109),y=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,w=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(d(102,105,108,101,58,47,47))||-1!==e.indexOf(d(108,111,99,97,108,104,111,115,116))||y.test(e)||(t?window.location.hostname:"").split(".").pop()===d(108,111,99,97,108),s=[p,x,d(99,111,100,101,112,101,110,46,105,111),d(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),d(99,111,100,101,112,101,110,46,100,101,118),d(99,111,100,101,112,101,110,46,97,112,112),d(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),d(112,101,110,115,46,99,108,111,117,100),d(99,115,115,45,116,114,105,99,107,115,46,99,111,109),d(99,100,112,110,46,105,111),d(112,101,110,115,46,105,111),d(103,97,110,110,111,110,46,116,118),d(99,111,100,101,99,97,110,121,111,110,46,110,101,116),d(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),d(99,101,114,101,98,114,97,120,46,99,111,46,117,107),d(116,121,109,112,97,110,117,115,46,110,101,116),d(116,119,101,101,110,109,97,120,46,99,111,109),d(112,108,110,107,114,46,99,111),d(104,111,116,106,97,114,46,99,111,109),d(119,101,98,112,97,99,107,98,105,110,46,99,111,109),d(97,114,99,104,105,118,101,46,111,114,103),d(99,111,100,101,115,97,110,100,98,111,120,46,105,111),d(99,115,98,46,97,112,112),d(115,116,97,99,107,98,108,105,116,122,46,99,111,109),d(115,116,97,99,107,98,108,105,116,122,46,105,111),d(99,111,100,105,101,114,46,105,111),d(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),d(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),d(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),d(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),d(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),d(106,115,102,105,100,100,108,101,46,110,101,116)],i=function(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",i);else{document.removeEventListener("readystatechange",i);var e="object"==typeof h?h:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(d(37,99,87,97,114,110,105,110,103),d(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(d(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomEase"+d(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(d(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),d(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},o=s.length;for(setTimeout(i,50);--o>-1;)if(-1!==e.indexOf(s[o]))return!0;return n||!setTimeout((function(){t&&(window.location.href=d(104,116,116,112,115,58,47,47)+p+d(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomEase&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),m=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,M=/[cLlsSaAhHvVtTqQ]/g,C=function(e,t,n,s,i,o,a,r,l,h,c){let g,u=(e+n)/2,f=(t+s)/2,d=(n+i)/2,p=(s+o)/2,x=(i+a)/2,y=(o+r)/2,w=(u+d)/2,m=(f+p)/2,M=(d+x)/2,E=(p+y)/2,b=(w+M)/2,v=(m+E)/2,S=a-e,N=r-t,L=Math.abs((n-a)*N-(s-r)*S),P=Math.abs((i-a)*N-(o-r)*S);return h||(h=[{x:e,y:t},{x:a,y:r}],c=1),h.splice(c||h.length-1,0,{x:b,y:v}),(L+P)*(L+P)>l*(S*S+N*N)&&(g=h.length,C(e,t,u,f,w,m,b,v,l,h,c),C(b,v,M,E,x,y,a,r,l,h,c+1+(h.length-g))),h};class E{constructor(e,t,n){c||u(),this.id=e,w&&this.setData(t,n)}setData(n,s){s=s||{};let i,a,r,c,g,u,f,d,p,x=(n=n||"0,0,1,1").match(m),y=1,w=[],E=[],b=s.precision||1,v=b<=1;if(this.data=n,(M.test(n)||~n.indexOf("M")&&n.indexOf("C")<0)&&(x=function(n){let s,i,a,r,h,c,g,u,f,d,p,x,y,w,m,M=(n+"").replace(t,e=>{let t=+e;return t<1e-4&&t>-1e-4?0:t}).match(e)||[],C=[],E=0,b=0,v=M.length,S=0,N="ERROR: malformed path: "+n,L=function(e,t,n,s){d=(n-e)/3,p=(s-t)/3,g.push(e+d,t+p,n-d,s-p,n,s)};if(!n||!isNaN(M[0])||isNaN(M[1]))return console.log(N),C;for(s=0;s<v;s++)if(y=h,isNaN(M[s])?(h=M[s].toUpperCase(),c=h!==M[s]):s--,a=+M[s+1],r=+M[s+2],c&&(a+=E,r+=b),s||(u=a,f=r),"M"===h)g&&(g.length<8?C.length-=1:S+=g.length),E=u=a,b=f=r,g=[a,r],C.push(g),s+=2,h="L";else if("C"===h)g||(g=[0,0]),c||(E=b=0),g.push(a,r,E+1*M[s+3],b+1*M[s+4],E+=1*M[s+5],b+=1*M[s+6]),s+=6;else if("S"===h)d=E,p=b,"C"!==y&&"S"!==y||(d+=E-g[g.length-4],p+=b-g[g.length-3]),c||(E=b=0),g.push(d,p,a,r,E+=1*M[s+3],b+=1*M[s+4]),s+=4;else if("Q"===h)d=E+2/3*(a-E),p=b+2/3*(r-b),c||(E=b=0),E+=1*M[s+3],b+=1*M[s+4],g.push(d,p,E+2/3*(a-E),b+2/3*(r-b),E,b),s+=4;else if("T"===h)d=E-g[g.length-4],p=b-g[g.length-3],g.push(E+d,b+p,a+2/3*(E+1.5*d-a),r+2/3*(b+1.5*p-r),E=a,b=r),s+=2;else if("H"===h)L(E,b,E=a,b),s+=1;else if("V"===h)L(E,b,E,b=a+(c?b-E:0)),s+=1;else if("L"===h||"Z"===h)"Z"===h&&(a=u,r=f,g.closed=!0),("L"===h||o(E-a)>.5||o(b-r)>.5)&&(L(E,b,a,r),"L"===h&&(s+=2)),E=a,b=r;else if("A"===h){if(w=M[s+4],m=M[s+5],d=M[s+6],p=M[s+7],i=7,w.length>1&&(w.length<3?(p=d,d=m,i--):(p=m,d=w.substr(2),i-=2),m=w.charAt(1),w=w.charAt(0)),x=l(E,b,+M[s+1],+M[s+2],+M[s+3],+w,+m,(c?E:0)+1*d,(c?b:0)+1*p),s+=i,x)for(i=0;i<x.length;i++)g.push(x[i]);E=g[g.length-2],b=g[g.length-1]}else console.log(N);return s=g.length,s<6?(C.pop(),s=0):g[0]===g[s-2]&&g[1]===g[s-1]&&(g.closed=!0),C.totalPoints=S+s,C}(n)[0]),i=x.length,4===i)x.unshift(0,0),x.push(1,1),i=8;else if((i-2)%6)throw"Invalid CustomEase";for(0==+x[0]&&1==+x[i-2]||((e,t,n)=>{n||0===n||(n=Math.max(+e[e.length-1],+e[1]));let s,i=-1*+e[0],o=-n,a=e.length,r=1/(+e[a-2]+i),l=-t||(Math.abs(+e[a-1]-+e[1])<.01*(+e[a-2]-+e[0])?(e=>{let t,n=e.length,s=1e20;for(t=1;t<n;t+=6)+e[t]<s&&(s=+e[t]);return s})(e)+o:+e[a-1]+o);for(l=l?1/l:-r,s=0;s<a;s+=2)e[s]=(+e[s]+i)*r,e[s+1]=(+e[s+1]+o)*l})(x,s.height,s.originY),this.segment=x,c=2;c<i;c+=6)a={x:+x[c-2],y:+x[c-1]},r={x:+x[c+4],y:+x[c+5]},w.push(a,r),C(a.x,a.y,+x[c],+x[c+1],+x[c+2],+x[c+3],r.x,r.y,1/(2e5*b),w,w.length-1);for(i=w.length,c=0;c<i;c++)f=w[c],d=w[c-1]||f,(f.x>d.x||d.y!==f.y&&d.x===f.x||f===d)&&f.x<=1?(d.cx=f.x-d.x,d.cy=f.y-d.y,d.n=f,d.nx=f.x,v&&c>1&&Math.abs(d.cy/d.cx-w[c-2].cy/w[c-2].cx)>2&&(v=0),d.cx<y&&(d.cx?y=d.cx:(d.cx=.001,c===i-1&&(d.x-=.001,y=Math.min(y,.001),v=0)))):(w.splice(c--,1),i--);if(i=1/y+1|0,g=1/i,u=0,f=w[0],v){for(c=0;c<i;c++)p=c*g,f.nx<p&&(f=w[++u]),a=f.y+(p-f.x)/f.cx*f.cy,E[c]={x:p,cx:g,y:a,cy:0,nx:9},c&&(E[c-1].cy=a-E[c-1].y);E[i-1].cy=w[w.length-1].y-a}else{for(c=0;c<i;c++)f.nx<c*g&&(f=w[++u]),E[c]=f;u<w.length-1&&(E[c-1]=w[w.length-2])}return this.ease=e=>{let t=E[e*i|0]||E[i-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&h&&h.registerEase(this.id,this.ease),this}getSVGData(e){return E.getSVGData(this,e)}static create(e,t,n){return new E(e,t,n).ease}static register(e){h=e,u()}static get(e){return h.parseEase(e)}static getSVGData(e,t){let n,s,i,o,a,l,c,g,u,d,p=(t=t||{}).width||100,x=t.height||100,y=t.x||0,w=(t.y||0)+x,m=h.utils.toArray(t.path)[0];if(t.invert&&(x=-x,w=0),"string"==typeof e&&(e=h.parseEase(e)),e.custom&&(e=e.custom),e instanceof E)n=function(e){"number"==typeof e[0]&&(e=[e]);let t,n,s,i,o="",a=e.length;for(n=0;n<a;n++){for(i=e[n],o+="M"+r(i[0])+","+r(i[1])+" C",t=i.length,s=2;s<t;s++)o+=r(i[s++])+","+r(i[s++])+" "+r(i[s++])+","+r(i[s++])+" "+r(i[s++])+","+r(i[s])+" ";i.closed&&(o+="z")}return o}(function(e,t,n,s,i,o,a){let r,l,h,c,g,u=e.length;for(;--u>-1;)for(r=e[u],l=r.length,h=0;h<l;h+=2)c=r[h],g=r[h+1],r[h]=c*t+g*s+o,r[h+1]=c*n+g*i+a;return e._dirty=1,e}([e.segment],p,0,0,-x,y,w));else{for(n=[y,w],c=Math.max(5,200*(t.precision||1)),o=1/c,c+=2,g=5/c,u=f(y+o*p),d=f(w+e(o)*-x),s=(d-w)/(u-y),i=2;i<c;i++)a=f(y+i*o*p),l=f(w+e(i*o)*-x),(Math.abs((l-d)/(a-u)-s)>g||i===c-1)&&(n.push(u,d),s=(l-d)/(a-u)),u=a,d=l;n="M"+n.join(",")}return m&&m.setAttribute("d",n),n}}g()&&h.registerPlugin(E),E.version="3.12.4";export default E;export{E as CustomEase}; | ||
let e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,t=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,n=Math.PI/180,s=Math.sin,i=Math.cos,o=Math.abs,a=Math.sqrt,r=e=>Math.round(1e5*e)/1e5||0;function l(e,t,r,l,h,c,g,u,f){if(e===u&&t===f)return;r=o(r),l=o(l);let d=h%360*n,p=i(d),x=s(d),y=Math.PI,w=2*y,m=(e-u)/2,M=(t-f)/2,C=p*m+x*M,E=-x*m+p*M,b=C*C,v=E*E,S=b/(r*r)+v/(l*l);S>1&&(r=a(S)*r,l=a(S)*l);let N=r*r,L=l*l,P=(N*L-N*v-L*b)/(N*v+L*b);P<0&&(P=0);let A=(c===g?-1:1)*a(P),O=A*(r*E/l),D=A*(-l*C/r),V=(e+u)/2+(p*O-x*D),T=(t+f)/2+(x*O+p*D),_=(C-O)/r,j=(E-D)/l,q=(-C-O)/r,G=(-E-D)/l,I=_*_+j*j,R=(j<0?-1:1)*Math.acos(_/a(I)),W=(_*G-j*q<0?-1:1)*Math.acos((_*q+j*G)/a(I*(q*q+G*G)));isNaN(W)&&(W=y),!g&&W>0?W-=w:g&&W<0&&(W+=w),R%=w,W%=w;let z,H=Math.ceil(o(W)/(w/4)),Q=[],Z=W/H,U=4/3*s(Z/2)/(1+i(Z/2)),Y=p*r,$=x*r,k=x*-l,B=p*l;for(z=0;z<H;z++)C=i(h=R+z*Z),E=s(h),_=i(h+=Z),j=s(h),Q.push(C-U*E,E+U*C,_+U*j,j-U*_,_,j);for(z=0;z<Q.length;z+=2)C=Q[z],E=Q[z+1],Q[z]=C*Y+E*k+V,Q[z+1]=C*$+E*B+T;return Q[z-2]=u,Q[z-1]=f,Q}let h,c,g=()=>h||"undefined"!=typeof window&&(h=window.gsap)&&h.registerPlugin&&h,u=()=>{h=g(),h?(h.registerEase("_CE",E.create),c=1):console.warn("Please gsap.registerPlugin(CustomEase)")},f=e=>~~(1e3*e+(e<0?-.5:.5))/1e3,d=function(){return String.fromCharCode.apply(null,arguments)},p=d(103,114,101,101,110,115,111,99,107,46,99,111,109),x=d(103,115,97,112,46,99,111,109),y=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,w=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(d(102,105,108,101,58,47,47))||-1!==e.indexOf(d(108,111,99,97,108,104,111,115,116))||y.test(e)||(t?window.location.hostname:"").split(".").pop()===d(108,111,99,97,108),s=[p,x,d(99,111,100,101,112,101,110,46,105,111),d(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),d(99,111,100,101,112,101,110,46,100,101,118),d(99,111,100,101,112,101,110,46,97,112,112),d(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),d(112,101,110,115,46,99,108,111,117,100),d(99,115,115,45,116,114,105,99,107,115,46,99,111,109),d(99,100,112,110,46,105,111),d(112,101,110,115,46,105,111),d(103,97,110,110,111,110,46,116,118),d(99,111,100,101,99,97,110,121,111,110,46,110,101,116),d(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),d(99,101,114,101,98,114,97,120,46,99,111,46,117,107),d(116,121,109,112,97,110,117,115,46,110,101,116),d(116,119,101,101,110,109,97,120,46,99,111,109),d(112,108,110,107,114,46,99,111),d(104,111,116,106,97,114,46,99,111,109),d(119,101,98,112,97,99,107,98,105,110,46,99,111,109),d(97,114,99,104,105,118,101,46,111,114,103),d(99,111,100,101,115,97,110,100,98,111,120,46,105,111),d(99,115,98,46,97,112,112),d(115,116,97,99,107,98,108,105,116,122,46,99,111,109),d(115,116,97,99,107,98,108,105,116,122,46,105,111),d(99,111,100,105,101,114,46,105,111),d(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),d(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),d(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),d(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),d(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),d(106,115,102,105,100,100,108,101,46,110,101,116)],i=function(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",i);else{document.removeEventListener("readystatechange",i);var e="object"==typeof h?h:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(d(37,99,87,97,114,110,105,110,103),d(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(d(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomEase"+d(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(d(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),d(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},o=s.length;for(setTimeout(i,50);--o>-1;)if(-1!==e.indexOf(s[o]))return!0;return n||!setTimeout((function(){t&&(window.location.href=d(104,116,116,112,115,58,47,47)+p+d(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomEase&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),m=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,M=/[cLlsSaAhHvVtTqQ]/g,C=function(e,t,n,s,i,o,a,r,l,h,c){let g,u=(e+n)/2,f=(t+s)/2,d=(n+i)/2,p=(s+o)/2,x=(i+a)/2,y=(o+r)/2,w=(u+d)/2,m=(f+p)/2,M=(d+x)/2,E=(p+y)/2,b=(w+M)/2,v=(m+E)/2,S=a-e,N=r-t,L=Math.abs((n-a)*N-(s-r)*S),P=Math.abs((i-a)*N-(o-r)*S);return h||(h=[{x:e,y:t},{x:a,y:r}],c=1),h.splice(c||h.length-1,0,{x:b,y:v}),(L+P)*(L+P)>l*(S*S+N*N)&&(g=h.length,C(e,t,u,f,w,m,b,v,l,h,c),C(b,v,M,E,x,y,a,r,l,h,c+1+(h.length-g))),h};class E{constructor(e,t,n){c||u(),this.id=e,w&&this.setData(t,n)}setData(n,s){s=s||{};let i,a,r,c,g,u,f,d,p,x=(n=n||"0,0,1,1").match(m),y=1,w=[],E=[],b=s.precision||1,v=b<=1;if(this.data=n,(M.test(n)||~n.indexOf("M")&&n.indexOf("C")<0)&&(x=function(n){let s,i,a,r,h,c,g,u,f,d,p,x,y,w,m,M=(n+"").replace(t,e=>{let t=+e;return t<1e-4&&t>-1e-4?0:t}).match(e)||[],C=[],E=0,b=0,v=M.length,S=0,N="ERROR: malformed path: "+n,L=function(e,t,n,s){d=(n-e)/3,p=(s-t)/3,g.push(e+d,t+p,n-d,s-p,n,s)};if(!n||!isNaN(M[0])||isNaN(M[1]))return console.log(N),C;for(s=0;s<v;s++)if(y=h,isNaN(M[s])?(h=M[s].toUpperCase(),c=h!==M[s]):s--,a=+M[s+1],r=+M[s+2],c&&(a+=E,r+=b),s||(u=a,f=r),"M"===h)g&&(g.length<8?C.length-=1:S+=g.length),E=u=a,b=f=r,g=[a,r],C.push(g),s+=2,h="L";else if("C"===h)g||(g=[0,0]),c||(E=b=0),g.push(a,r,E+1*M[s+3],b+1*M[s+4],E+=1*M[s+5],b+=1*M[s+6]),s+=6;else if("S"===h)d=E,p=b,"C"!==y&&"S"!==y||(d+=E-g[g.length-4],p+=b-g[g.length-3]),c||(E=b=0),g.push(d,p,a,r,E+=1*M[s+3],b+=1*M[s+4]),s+=4;else if("Q"===h)d=E+2/3*(a-E),p=b+2/3*(r-b),c||(E=b=0),E+=1*M[s+3],b+=1*M[s+4],g.push(d,p,E+2/3*(a-E),b+2/3*(r-b),E,b),s+=4;else if("T"===h)d=E-g[g.length-4],p=b-g[g.length-3],g.push(E+d,b+p,a+2/3*(E+1.5*d-a),r+2/3*(b+1.5*p-r),E=a,b=r),s+=2;else if("H"===h)L(E,b,E=a,b),s+=1;else if("V"===h)L(E,b,E,b=a+(c?b-E:0)),s+=1;else if("L"===h||"Z"===h)"Z"===h&&(a=u,r=f,g.closed=!0),("L"===h||o(E-a)>.5||o(b-r)>.5)&&(L(E,b,a,r),"L"===h&&(s+=2)),E=a,b=r;else if("A"===h){if(w=M[s+4],m=M[s+5],d=M[s+6],p=M[s+7],i=7,w.length>1&&(w.length<3?(p=d,d=m,i--):(p=m,d=w.substr(2),i-=2),m=w.charAt(1),w=w.charAt(0)),x=l(E,b,+M[s+1],+M[s+2],+M[s+3],+w,+m,(c?E:0)+1*d,(c?b:0)+1*p),s+=i,x)for(i=0;i<x.length;i++)g.push(x[i]);E=g[g.length-2],b=g[g.length-1]}else console.log(N);return s=g.length,s<6?(C.pop(),s=0):g[0]===g[s-2]&&g[1]===g[s-1]&&(g.closed=!0),C.totalPoints=S+s,C}(n)[0]),i=x.length,4===i)x.unshift(0,0),x.push(1,1),i=8;else if((i-2)%6)throw"Invalid CustomEase";for(0==+x[0]&&1==+x[i-2]||((e,t,n)=>{n||0===n||(n=Math.max(+e[e.length-1],+e[1]));let s,i=-1*+e[0],o=-n,a=e.length,r=1/(+e[a-2]+i),l=-t||(Math.abs(+e[a-1]-+e[1])<.01*(+e[a-2]-+e[0])?(e=>{let t,n=e.length,s=1e20;for(t=1;t<n;t+=6)+e[t]<s&&(s=+e[t]);return s})(e)+o:+e[a-1]+o);for(l=l?1/l:-r,s=0;s<a;s+=2)e[s]=(+e[s]+i)*r,e[s+1]=(+e[s+1]+o)*l})(x,s.height,s.originY),this.segment=x,c=2;c<i;c+=6)a={x:+x[c-2],y:+x[c-1]},r={x:+x[c+4],y:+x[c+5]},w.push(a,r),C(a.x,a.y,+x[c],+x[c+1],+x[c+2],+x[c+3],r.x,r.y,1/(2e5*b),w,w.length-1);for(i=w.length,c=0;c<i;c++)f=w[c],d=w[c-1]||f,(f.x>d.x||d.y!==f.y&&d.x===f.x||f===d)&&f.x<=1?(d.cx=f.x-d.x,d.cy=f.y-d.y,d.n=f,d.nx=f.x,v&&c>1&&Math.abs(d.cy/d.cx-w[c-2].cy/w[c-2].cx)>2&&(v=0),d.cx<y&&(d.cx?y=d.cx:(d.cx=.001,c===i-1&&(d.x-=.001,y=Math.min(y,.001),v=0)))):(w.splice(c--,1),i--);if(i=1/y+1|0,g=1/i,u=0,f=w[0],v){for(c=0;c<i;c++)p=c*g,f.nx<p&&(f=w[++u]),a=f.y+(p-f.x)/f.cx*f.cy,E[c]={x:p,cx:g,y:a,cy:0,nx:9},c&&(E[c-1].cy=a-E[c-1].y);E[i-1].cy=w[w.length-1].y-a}else{for(c=0;c<i;c++)f.nx<c*g&&(f=w[++u]),E[c]=f;u<w.length-1&&(E[c-1]=w[w.length-2])}return this.ease=e=>{let t=E[e*i|0]||E[i-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&h&&h.registerEase(this.id,this.ease),this}getSVGData(e){return E.getSVGData(this,e)}static create(e,t,n){return new E(e,t,n).ease}static register(e){h=e,u()}static get(e){return h.parseEase(e)}static getSVGData(e,t){let n,s,i,o,a,l,c,g,u,d,p=(t=t||{}).width||100,x=t.height||100,y=t.x||0,w=(t.y||0)+x,m=h.utils.toArray(t.path)[0];if(t.invert&&(x=-x,w=0),"string"==typeof e&&(e=h.parseEase(e)),e.custom&&(e=e.custom),e instanceof E)n=function(e){"number"==typeof e[0]&&(e=[e]);let t,n,s,i,o="",a=e.length;for(n=0;n<a;n++){for(i=e[n],o+="M"+r(i[0])+","+r(i[1])+" C",t=i.length,s=2;s<t;s++)o+=r(i[s++])+","+r(i[s++])+" "+r(i[s++])+","+r(i[s++])+" "+r(i[s++])+","+r(i[s])+" ";i.closed&&(o+="z")}return o}(function(e,t,n,s,i,o,a){let r,l,h,c,g,u=e.length;for(;--u>-1;)for(r=e[u],l=r.length,h=0;h<l;h+=2)c=r[h],g=r[h+1],r[h]=c*t+g*s+o,r[h+1]=c*n+g*i+a;return e._dirty=1,e}([e.segment],p,0,0,-x,y,w));else{for(n=[y,w],c=Math.max(5,200*(t.precision||1)),o=1/c,c+=2,g=5/c,u=f(y+o*p),d=f(w+e(o)*-x),s=(d-w)/(u-y),i=2;i<c;i++)a=f(y+i*o*p),l=f(w+e(i*o)*-x),(Math.abs((l-d)/(a-u)-s)>g||i===c-1)&&(n.push(u,d),s=(l-d)/(a-u)),u=a,d=l;n="M"+n.join(",")}return m&&m.setAttribute("d",n),n}}g()&&h.registerPlugin(E),E.version="3.12.5";export default E;export{E as CustomEase}; |
/*! | ||
* CustomWiggle 3.12.4 | ||
* CustomWiggle 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
let e,t,n,o=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,i={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},a=e=>e,s=a=>{if(!t)if(e=o(),n=e&&e.parseEase("_CE"),n){for(let e in i)i[e]=n("",i[e]);t=1,f("wiggle").config=e=>"object"==typeof e?f("",e):f("wiggle("+e+")",{wiggles:+e})}else a&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")},r=(t,o)=>("function"!=typeof t&&(t=e.parseEase(t)||n("",t)),t.custom||!o?t:e=>1-t(e)),l=function(){return String.fromCharCode.apply(null,arguments)},u=l(103,114,101,101,110,115,111,99,107,46,99,111,109),g=l(103,115,97,112,46,99,111,109),d=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,c=function(t){var n="undefined"!=typeof window,o=0===(n?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==t.indexOf(l(108,111,99,97,108,104,111,115,116))||d.test(t)||(n?window.location.hostname:"").split(".").pop()===l(108,111,99,97,108),i=[u,g,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),l(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),l(106,115,102,105,100,100,108,101,46,110,101,116)],a=function(){if(n)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",a);else{document.removeEventListener("readystatechange",a);var t="object"==typeof e?e:n&&window.gsap;n&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomWiggle"+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},s=i.length;for(setTimeout(a,50);--s>-1;)if(-1!==t.indexOf(i[s]))return!0;return o||!setTimeout((function(){n&&(window.location.href=l(104,116,116,112,115,58,47,47)+u+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomWiggle&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),f=(e,o)=>{t||s(1);let l,u,g,d,f,p,w,h,m,y=0|((o=o||{}).wiggles||10),C=1/y,E=C/2,M="anticipate"===o.type,v=i[o.type]||i.easeOut,O=a;if(c){if(M&&(O=v,v=i.easeOut),o.timingEase&&(O=r(o.timingEase)),o.amplitudeEase&&(v=r(o.amplitudeEase,!0)),p=O(E),w=M?-v(E):v(E),h=[0,0,p/4,0,p/2,w,p,w],"random"===o.type){for(h.length=4,l=O(C),u=2*Math.random()-1,m=2;m<y;m++)E=l,w=u,l=O(C*m),u=2*Math.random()-1,g=Math.atan2(u-h[h.length-3],l-h[h.length-4]),d=Math.cos(g)*C,f=Math.sin(g)*C,h.push(E-d,w-f,E,w,E+d,w+f);h.push(l,0,1,0)}else{for(m=1;m<y;m++)h.push(O(E+C/2),w),E+=C,w=(w>0?-1:1)*v(m*C),p=O(E),h.push(O(E-C/2),w,p,w);h.push(O(E+C/4),w,O(E+C/4),0,1,0)}for(m=h.length;--m>-1;)h[m]=~~(1e3*h[m])/1e3;return h[2]="C"+h[2],n(e,"M"+h.join(","))}};class p{constructor(e,t){this.ease=f(e,t)}static create(e,t){return f(e,t)}static register(t){e=t,s()}}o()&&e.registerPlugin(p),p.version="3.12.4";export default p;export{p as CustomWiggle}; | ||
let e,t,n,o=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,i={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},a=e=>e,s=a=>{if(!t)if(e=o(),n=e&&e.parseEase("_CE"),n){for(let e in i)i[e]=n("",i[e]);t=1,f("wiggle").config=e=>"object"==typeof e?f("",e):f("wiggle("+e+")",{wiggles:+e})}else a&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")},r=(t,o)=>("function"!=typeof t&&(t=e.parseEase(t)||n("",t)),t.custom||!o?t:e=>1-t(e)),l=function(){return String.fromCharCode.apply(null,arguments)},u=l(103,114,101,101,110,115,111,99,107,46,99,111,109),g=l(103,115,97,112,46,99,111,109),d=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,c=function(t){var n="undefined"!=typeof window,o=0===(n?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==t.indexOf(l(108,111,99,97,108,104,111,115,116))||d.test(t)||(n?window.location.hostname:"").split(".").pop()===l(108,111,99,97,108),i=[u,g,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),l(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),l(106,115,102,105,100,100,108,101,46,110,101,116)],a=function(){if(n)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",a);else{document.removeEventListener("readystatechange",a);var t="object"==typeof e?e:n&&window.gsap;n&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomWiggle"+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},s=i.length;for(setTimeout(a,50);--s>-1;)if(-1!==t.indexOf(i[s]))return!0;return o||!setTimeout((function(){n&&(window.location.href=l(104,116,116,112,115,58,47,47)+u+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomWiggle&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),f=(e,o)=>{t||s(1);let l,u,g,d,f,p,w,h,m,y=0|((o=o||{}).wiggles||10),C=1/y,E=C/2,M="anticipate"===o.type,v=i[o.type]||i.easeOut,O=a;if(c){if(M&&(O=v,v=i.easeOut),o.timingEase&&(O=r(o.timingEase)),o.amplitudeEase&&(v=r(o.amplitudeEase,!0)),p=O(E),w=M?-v(E):v(E),h=[0,0,p/4,0,p/2,w,p,w],"random"===o.type){for(h.length=4,l=O(C),u=2*Math.random()-1,m=2;m<y;m++)E=l,w=u,l=O(C*m),u=2*Math.random()-1,g=Math.atan2(u-h[h.length-3],l-h[h.length-4]),d=Math.cos(g)*C,f=Math.sin(g)*C,h.push(E-d,w-f,E,w,E+d,w+f);h.push(l,0,1,0)}else{for(m=1;m<y;m++)h.push(O(E+C/2),w),E+=C,w=(w>0?-1:1)*v(m*C),p=O(E),h.push(O(E-C/2),w,p,w);h.push(O(E+C/4),w,O(E+C/4),0,1,0)}for(m=h.length;--m>-1;)h[m]=~~(1e3*h[m])/1e3;return h[2]="C"+h[2],n(e,"M"+h.join(","))}};class p{constructor(e,t){this.ease=f(e,t)}static create(e,t){return f(e,t)}static register(t){e=t,s()}}o()&&e.registerPlugin(p),p.version="3.12.5";export default p;export{p as CustomWiggle}; |
/*! | ||
* CSSRulePlugin 3.12.4 | ||
* CSSRulePlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function h(){return"undefined"!=typeof window}function i(){return t||h()&&(t=window.gsap)&&t.registerPlugin&&t}function j(){return n||(s(),o||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),n}var t,n,c,o,s=function _initCore(e){t=e||i(),h()&&(c=document),t&&(o=t.plugins.css)&&(n=1)},r={version:"3.12.4",name:"cssRule",init:function init(e,t,n,i,s){if(!j()||void 0===e.cssText)return!1;var r=e._gsProxy=e._gsProxy||c.createElement("div");this.ss=e,this.style=r.style,r.style.cssText=e.cssText,o.prototype.init.call(this,r,t,n,i,s)},render:function render(e,t){for(var n,i=t._pt,s=t.style,r=t.ss;i;)i.r(e,i.d),i=i._next;for(n=s.length;-1<--n;)r[s[n]]=s[s[n]]},getRule:function getRule(e){j();var t,n,i,s,r=c.all?"rules":"cssRules",o=c.styleSheets,l=o.length,u=":"===e.charAt(0);for(e=(u?"":",")+e.split("::").join(":").toLowerCase()+",",u&&(s=[]);l--;){try{if(!(n=o[l][r]))continue;t=n.length}catch(e){console.warn(e);continue}for(;-1<--t;)if((i=n[t]).selectorText&&-1!==(","+i.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!u)return i.style;s.push(i.style)}}return s},register:s};i()&&t.registerPlugin(r),e.CSSRulePlugin=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function h(){return"undefined"!=typeof window}function i(){return t||h()&&(t=window.gsap)&&t.registerPlugin&&t}function j(){return n||(s(),o||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),n}var t,n,c,o,s=function _initCore(e){t=e||i(),h()&&(c=document),t&&(o=t.plugins.css)&&(n=1)},r={version:"3.12.5",name:"cssRule",init:function init(e,t,n,i,s){if(!j()||void 0===e.cssText)return!1;var r=e._gsProxy=e._gsProxy||c.createElement("div");this.ss=e,this.style=r.style,r.style.cssText=e.cssText,o.prototype.init.call(this,r,t,n,i,s)},render:function render(e,t){for(var n,i=t._pt,s=t.style,r=t.ss;i;)i.r(e,i.d),i=i._next;for(n=s.length;-1<--n;)r[s[n]]=s[s[n]]},getRule:function getRule(e){j();var t,n,i,s,r=c.all?"rules":"cssRules",o=c.styleSheets,l=o.length,u=":"===e.charAt(0);for(e=(u?"":",")+e.split("::").join(":").toLowerCase()+",",u&&(s=[]);l--;){try{if(!(n=o[l][r]))continue;t=n.length}catch(e){console.warn(e);continue}for(;-1<--t;)if((i=n[t]).selectorText&&-1!==(","+i.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!u)return i.style;s.push(i.style)}}return s},register:s};i()&&t.registerPlugin(r),e.CSSRulePlugin=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* CustomBounce 3.12.4 | ||
* CustomBounce 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function g(){return r||"undefined"!=typeof window&&(r=window.gsap)&&r.registerPlugin&&r}function h(e){r=g(),(j=r&&r.parseEase("_CE"))?(b=1,r.parseEase("bounce").config=function(e){return"object"==typeof e?t("",e):t("bounce("+e+")",{strength:+e})}):e&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")}function i(e){var n,t=e.length,o=1/e[t-2];for(n=2;n<t;n+=2)e[n]=~~(e[n]*o*1e3)/1e3;e[t-2]=1}function l(){return String.fromCharCode.apply(null,arguments)}var r,b,j,u="CustomBounce",s=l(103,114,101,101,110,115,111,99,107,46,99,111,109),a=l(103,115,97,112,46,99,111,109),c=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,B=function(e){var n="undefined"!=typeof window,t=0===(n?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==e.indexOf(l(108,111,99,97,108,104,111,115,116))||c.test(e)||(n?window.location.hostname:"").split(".").pop()===l(108,111,99,97,108),o=[s,a,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),l(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),l(106,115,102,105,100,100,108,101,46,110,101,116)],i=o.length;for(setTimeout(function checkWarn(){if(n)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof r?r:n&&window.gsap;n&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+u+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--i;)if(-1!==e.indexOf(o[i]))return!0;return t||!setTimeout(function(){n&&(window.location.href=l(104,116,116,112,115,58,47,47)+s+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+u+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),t=function _create(e,n){if(b||h(1),n=n||{},B){var t,o,l,r,u,s,a,c=Math.min(.999,n.strength||.7),f=c,d=(n.squash||0)/100,g=d,p=1/.03,w=.2,m=1,y=.1,C=[0,0,.07,0,.1,1,.1,1],v=[0,0,0,0,.1,0,.1,0];for(u=0;u<200&&(s=y+(w*=f*((f+1)/2)),r=1-(m*=c*c),o=(l=y+.49*w)+.8*(l-(t=y+m/p)),d&&(y+=d,t+=d,l+=d,o+=d,s+=d,a=d/g,v.push(y-d,0,y-d,a,y-d/2,a,y,a,y,0,y,0,y,-.6*a,y+(s-y)/6,0,s,0),C.push(y-d,1,y,1,y,1),d*=c*c),C.push(y,1,t,r,l,r,o,r,s,1,s,1),c*=.95,p=m/(s-o),y=s,!(.999<r));u++);if(n.endAtStart&&"false"!==n.endAtStart){if(l=-.1,C.unshift(l,1,l,1,-.07,0),g)for(l-=d=2.5*g,C.unshift(l,1,l,1,l,1),v.splice(0,6),v.unshift(l,0,l,0,l,1,l+d/2,1,l+d,1,l+d,0,l+d,0,l+d,-.6,l+d+.033,0),u=0;u<v.length;u+=2)v[u]-=l;for(u=0;u<C.length;u+=2)C[u]-=l,C[u+1]=1-C[u+1]}return d&&(i(v),v[2]="C"+v[2],j(n.squashID||e+"-squash","M"+v.join(","))),i(C),C[2]="C"+C[2],j(e,"M"+C.join(","))}},n=(CustomBounce.create=function create(e,n){return t(e,n)},CustomBounce.register=function register(e){r=e,h()},CustomBounce);function CustomBounce(e,n){this.ease=t(e,n)}g()&&r.registerPlugin(n),n.version="3.12.4",e.CustomBounce=n,e.default=n;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function g(){return r||"undefined"!=typeof window&&(r=window.gsap)&&r.registerPlugin&&r}function h(e){r=g(),(j=r&&r.parseEase("_CE"))?(b=1,r.parseEase("bounce").config=function(e){return"object"==typeof e?t("",e):t("bounce("+e+")",{strength:+e})}):e&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")}function i(e){var n,t=e.length,o=1/e[t-2];for(n=2;n<t;n+=2)e[n]=~~(e[n]*o*1e3)/1e3;e[t-2]=1}function l(){return String.fromCharCode.apply(null,arguments)}var r,b,j,u="CustomBounce",s=l(103,114,101,101,110,115,111,99,107,46,99,111,109),a=l(103,115,97,112,46,99,111,109),c=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,B=function(e){var n="undefined"!=typeof window,t=0===(n?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==e.indexOf(l(108,111,99,97,108,104,111,115,116))||c.test(e)||(n?window.location.hostname:"").split(".").pop()===l(108,111,99,97,108),o=[s,a,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),l(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),l(106,115,102,105,100,100,108,101,46,110,101,116)],i=o.length;for(setTimeout(function checkWarn(){if(n)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof r?r:n&&window.gsap;n&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+u+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--i;)if(-1!==e.indexOf(o[i]))return!0;return t||!setTimeout(function(){n&&(window.location.href=l(104,116,116,112,115,58,47,47)+s+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+u+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),t=function _create(e,n){if(b||h(1),n=n||{},B){var t,o,l,r,u,s,a,c=Math.min(.999,n.strength||.7),f=c,d=(n.squash||0)/100,g=d,p=1/.03,w=.2,m=1,y=.1,C=[0,0,.07,0,.1,1,.1,1],v=[0,0,0,0,.1,0,.1,0];for(u=0;u<200&&(s=y+(w*=f*((f+1)/2)),r=1-(m*=c*c),o=(l=y+.49*w)+.8*(l-(t=y+m/p)),d&&(y+=d,t+=d,l+=d,o+=d,s+=d,a=d/g,v.push(y-d,0,y-d,a,y-d/2,a,y,a,y,0,y,0,y,-.6*a,y+(s-y)/6,0,s,0),C.push(y-d,1,y,1,y,1),d*=c*c),C.push(y,1,t,r,l,r,o,r,s,1,s,1),c*=.95,p=m/(s-o),y=s,!(.999<r));u++);if(n.endAtStart&&"false"!==n.endAtStart){if(l=-.1,C.unshift(l,1,l,1,-.07,0),g)for(l-=d=2.5*g,C.unshift(l,1,l,1,l,1),v.splice(0,6),v.unshift(l,0,l,0,l,1,l+d/2,1,l+d,1,l+d,0,l+d,0,l+d,-.6,l+d+.033,0),u=0;u<v.length;u+=2)v[u]-=l;for(u=0;u<C.length;u+=2)C[u]-=l,C[u+1]=1-C[u+1]}return d&&(i(v),v[2]="C"+v[2],j(n.squashID||e+"-squash","M"+v.join(","))),i(C),C[2]="C"+C[2],j(e,"M"+C.join(","))}},n=(CustomBounce.create=function create(e,n){return t(e,n)},CustomBounce.register=function register(e){r=e,h()},CustomBounce);function CustomBounce(e,n){this.ease=t(e,n)}g()&&r.registerPlugin(n),n.version="3.12.5",e.CustomBounce=n,e.default=n;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* CustomEase 3.12.4 | ||
* CustomEase 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function m(e){return Math.round(1e5*e)/1e5||0}var b=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,w=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Y=Math.PI/180,k=Math.sin,B=Math.cos,F=Math.abs,J=Math.sqrt;function arcToSegment(e,t,n,s,a,r,i,o,h){if(e!==o||t!==h){n=F(n),s=F(s);var u=a%360*Y,f=B(u),c=k(u),l=Math.PI,g=2*l,x=(e-o)/2,d=(t-h)/2,m=f*x+c*d,p=-c*x+f*d,y=m*m,M=p*p,v=y/(n*n)+M/(s*s);1<v&&(n=J(v)*n,s=J(v)*s);var C=n*n,E=s*s,b=(C*E-C*M-E*y)/(C*M+E*y);b<0&&(b=0);var w=(r===i?-1:1)*J(b),P=n*p/s*w,S=-s*m/n*w,N=f*P-c*S+(e+o)/2,D=c*P+f*S+(t+h)/2,T=(m-P)/n,V=(p-S)/s,_=(-m-P)/n,q=(-p-S)/s,A=T*T+V*V,R=(V<0?-1:1)*Math.acos(T/J(A)),G=(T*q-V*_<0?-1:1)*Math.acos((T*_+V*q)/J(A*(_*_+q*q)));isNaN(G)&&(G=l),!i&&0<G?G-=g:i&&G<0&&(G+=g),R%=g,G%=g;var L,O=Math.ceil(F(G)/(g/4)),j=[],z=G/O,I=4/3*k(z/2)/(1+B(z/2)),H=f*n,Q=c*n,Z=c*-s,U=f*s;for(L=0;L<O;L++)m=B(a=R+L*z),p=k(a),T=B(a+=z),V=k(a),j.push(m-I*p,p+I*m,T+I*V,V-I*T,T,V);for(L=0;L<j.length;L+=2)m=j[L],p=j[L+1],j[L]=m*H+p*Z+N,j[L+1]=m*Q+p*U+D;return j[L-2]=o,j[L-1]=h,j}}function stringToRawPath(e){function db(e,t,n,s){f=(n-e)/3,c=(s-t)/3,o.push(e+f,t+c,n-f,s-c,n,s)}var t,n,s,a,r,i,o,h,u,f,c,l,g,x,d,m=(e+"").replace(w,function(e){var t=+e;return t<1e-4&&-1e-4<t?0:t}).match(b)||[],p=[],y=0,M=0,v=m.length,C=0,E="ERROR: malformed path: "+e;if(!e||!isNaN(m[0])||isNaN(m[1]))return console.log(E),p;for(t=0;t<v;t++)if(g=r,isNaN(m[t])?i=(r=m[t].toUpperCase())!==m[t]:t--,s=+m[t+1],a=+m[t+2],i&&(s+=y,a+=M),t||(h=s,u=a),"M"===r)o&&(o.length<8?--p.length:C+=o.length),y=h=s,M=u=a,o=[s,a],p.push(o),t+=2,r="L";else if("C"===r)i||(y=M=0),(o=o||[0,0]).push(s,a,y+1*m[t+3],M+1*m[t+4],y+=1*m[t+5],M+=1*m[t+6]),t+=6;else if("S"===r)f=y,c=M,"C"!==g&&"S"!==g||(f+=y-o[o.length-4],c+=M-o[o.length-3]),i||(y=M=0),o.push(f,c,s,a,y+=1*m[t+3],M+=1*m[t+4]),t+=4;else if("Q"===r)f=y+2/3*(s-y),c=M+2/3*(a-M),i||(y=M=0),y+=1*m[t+3],M+=1*m[t+4],o.push(f,c,y+2/3*(s-y),M+2/3*(a-M),y,M),t+=4;else if("T"===r)f=y-o[o.length-4],c=M-o[o.length-3],o.push(y+f,M+c,s+2/3*(y+1.5*f-s),a+2/3*(M+1.5*c-a),y=s,M=a),t+=2;else if("H"===r)db(y,M,y=s,M),t+=1;else if("V"===r)db(y,M,y,M=s+(i?M-y:0)),t+=1;else if("L"===r||"Z"===r)"Z"===r&&(s=h,a=u,o.closed=!0),("L"===r||.5<F(y-s)||.5<F(M-a))&&(db(y,M,s,a),"L"===r&&(t+=2)),y=s,M=a;else if("A"===r){if(x=m[t+4],d=m[t+5],f=m[t+6],c=m[t+7],n=7,1<x.length&&(x.length<3?(c=f,f=d,n--):(c=d,f=x.substr(2),n-=2),d=x.charAt(1),x=x.charAt(0)),l=arcToSegment(y,M,+m[t+1],+m[t+2],+m[t+3],+x,+d,(i?y:0)+1*f,(i?M:0)+1*c),t+=n,l)for(n=0;n<l.length;n++)o.push(l[n]);y=o[o.length-2],M=o[o.length-1]}else console.log(E);return(t=o.length)<6?(p.pop(),t=0):o[0]===o[t-2]&&o[1]===o[t-1]&&(o.closed=!0),p.totalPoints=C+t,p}function p(){return M||"undefined"!=typeof window&&(M=window.gsap)&&M.registerPlugin&&M}function q(){(M=p())?(M.registerEase("_CE",n.create),a=1):console.warn("Please gsap.registerPlugin(CustomEase)")}function s(e){return~~(1e3*e+(e<0?-.5:.5))/1e3}function x(e,t,n,s,a,r,i,o,h,u,f){var c,l=(e+n)/2,g=(t+s)/2,d=(n+a)/2,m=(s+r)/2,p=(a+i)/2,y=(r+o)/2,M=(l+d)/2,v=(g+m)/2,C=(d+p)/2,E=(m+y)/2,b=(M+C)/2,w=(v+E)/2,P=i-e,S=o-t,N=Math.abs((n-i)*S-(s-o)*P),D=Math.abs((a-i)*S-(r-o)*P);return u||(u=[{x:e,y:t},{x:i,y:o}],f=1),u.splice(f||u.length-1,0,{x:b,y:w}),h*(P*P+S*S)<(N+D)*(N+D)&&(c=u.length,x(e,t,l,g,M,v,b,w,h,u,f),x(b,w,C,E,p,y,i,o,h,u,f+1+(u.length-c))),u}var M,a,t,y=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,v=/[cLlsSaAhHvVtTqQ]/g,n=((t=CustomEase.prototype).setData=function setData(e,t){t=t||{};var n,s,a,r,i,o,h,u,f,c=(e=e||"0,0,1,1").match(y),l=1,g=[],d=[],m=t.precision||1,p=m<=1;if(this.data=e,(v.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(c=stringToRawPath(e)[0]),4===(n=c.length))c.unshift(0,0),c.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";for(0==+c[0]&&1==+c[n-2]||function _normalize(e,t,n){n||0===n||(n=Math.max(+e[e.length-1],+e[1]));var s,a=-1*e[0],r=-n,i=e.length,o=1/(+e[i-2]+a),h=-t||(Math.abs(e[i-1]-e[1])<.01*(e[i-2]-e[0])?function _findMinimum(e){var t,n=e.length,s=1e20;for(t=1;t<n;t+=6)+e[t]<s&&(s=+e[t]);return s}(e)+r:+e[i-1]+r);for(h=h?1/h:-o,s=0;s<i;s+=2)e[s]=(+e[s]+a)*o,e[s+1]=(+e[s+1]+r)*h}(c,t.height,t.originY),this.segment=c,r=2;r<n;r+=6)s={x:+c[r-2],y:+c[r-1]},a={x:+c[r+4],y:+c[r+5]},g.push(s,a),x(s.x,s.y,+c[r],+c[r+1],+c[r+2],+c[r+3],a.x,a.y,1/(2e5*m),g,g.length-1);for(n=g.length,r=0;r<n;r++)h=g[r],u=g[r-1]||h,(h.x>u.x||u.y!==h.y&&u.x===h.x||h===u)&&h.x<=1?(u.cx=h.x-u.x,u.cy=h.y-u.y,u.n=h,u.nx=h.x,p&&1<r&&2<Math.abs(u.cy/u.cx-g[r-2].cy/g[r-2].cx)&&(p=0),u.cx<l&&(u.cx?l=u.cx:(u.cx=.001,r===n-1&&(u.x-=.001,l=Math.min(l,.001),p=0)))):(g.splice(r--,1),n--);if(i=1/(n=1/l+1|0),h=g[o=0],p){for(r=0;r<n;r++)f=r*i,h.nx<f&&(h=g[++o]),s=h.y+(f-h.x)/h.cx*h.cy,d[r]={x:f,cx:i,y:s,cy:0,nx:9},r&&(d[r-1].cy=s-d[r-1].y);d[n-1].cy=g[g.length-1].y-s}else{for(r=0;r<n;r++)h.nx<r*i&&(h=g[++o]),d[r]=h;o<g.length-1&&(d[r-1]=g[g.length-2])}return this.ease=function(e){var t=d[e*n|0]||d[n-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},(this.ease.custom=this).id&&M&&M.registerEase(this.id,this.ease),this},t.getSVGData=function getSVGData(e){return CustomEase.getSVGData(this,e)},CustomEase.create=function create(e,t,n){return new CustomEase(e,t,n).ease},CustomEase.register=function register(e){M=e,q()},CustomEase.get=function get(e){return M.parseEase(e)},CustomEase.getSVGData=function getSVGData(e,t){var n,a,r,i,o,h,u,f,c,l,g=(t=t||{}).width||100,x=t.height||100,d=t.x||0,p=(t.y||0)+x,y=M.utils.toArray(t.path)[0];if(t.invert&&(x=-x,p=0),"string"==typeof e&&(e=M.parseEase(e)),e.custom&&(e=e.custom),e instanceof CustomEase)n=function rawPathToString(e){!function _isNumber(e){return"number"==typeof e}(e[0])||(e=[e]);var t,n,s,a,r="",i=e.length;for(n=0;n<i;n++){for(a=e[n],r+="M"+m(a[0])+","+m(a[1])+" C",t=a.length,s=2;s<t;s++)r+=m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s])+" ";a.closed&&(r+="z")}return r}(function transformRawPath(e,t,n,s,a,r,i){for(var o,h,u,f,c,l=e.length;-1<--l;)for(h=(o=e[l]).length,u=0;u<h;u+=2)f=o[u],c=o[u+1],o[u]=f*t+c*s+r,o[u+1]=f*n+c*a+i;return e._dirty=1,e}([e.segment],g,0,0,-x,d,p));else{for(n=[d,p],i=1/(u=Math.max(5,200*(t.precision||1))),f=5/(u+=2),c=s(d+i*g),a=((l=s(p+e(i)*-x))-p)/(c-d),r=2;r<u;r++)o=s(d+r*i*g),h=s(p+e(r*i)*-x),(Math.abs((h-l)/(o-c)-a)>f||r===u-1)&&(n.push(c,l),a=(h-l)/(o-c)),c=o,l=h;n="M"+n.join(",")}return y&&y.setAttribute("d",n),n},CustomEase);function CustomEase(e,t,n){a||q(),this.id=e,this.setData(t,n)}p()&&M.registerPlugin(n),n.version="3.12.4",e.CustomEase=n,e.default=n;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function m(e){return Math.round(1e5*e)/1e5||0}var b=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,w=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Y=Math.PI/180,k=Math.sin,B=Math.cos,F=Math.abs,J=Math.sqrt;function arcToSegment(e,t,n,s,a,r,i,o,h){if(e!==o||t!==h){n=F(n),s=F(s);var u=a%360*Y,f=B(u),c=k(u),l=Math.PI,g=2*l,x=(e-o)/2,d=(t-h)/2,m=f*x+c*d,p=-c*x+f*d,y=m*m,M=p*p,v=y/(n*n)+M/(s*s);1<v&&(n=J(v)*n,s=J(v)*s);var C=n*n,E=s*s,b=(C*E-C*M-E*y)/(C*M+E*y);b<0&&(b=0);var w=(r===i?-1:1)*J(b),P=n*p/s*w,S=-s*m/n*w,N=f*P-c*S+(e+o)/2,D=c*P+f*S+(t+h)/2,T=(m-P)/n,V=(p-S)/s,_=(-m-P)/n,q=(-p-S)/s,A=T*T+V*V,R=(V<0?-1:1)*Math.acos(T/J(A)),G=(T*q-V*_<0?-1:1)*Math.acos((T*_+V*q)/J(A*(_*_+q*q)));isNaN(G)&&(G=l),!i&&0<G?G-=g:i&&G<0&&(G+=g),R%=g,G%=g;var L,O=Math.ceil(F(G)/(g/4)),j=[],z=G/O,I=4/3*k(z/2)/(1+B(z/2)),H=f*n,Q=c*n,Z=c*-s,U=f*s;for(L=0;L<O;L++)m=B(a=R+L*z),p=k(a),T=B(a+=z),V=k(a),j.push(m-I*p,p+I*m,T+I*V,V-I*T,T,V);for(L=0;L<j.length;L+=2)m=j[L],p=j[L+1],j[L]=m*H+p*Z+N,j[L+1]=m*Q+p*U+D;return j[L-2]=o,j[L-1]=h,j}}function stringToRawPath(e){function db(e,t,n,s){f=(n-e)/3,c=(s-t)/3,o.push(e+f,t+c,n-f,s-c,n,s)}var t,n,s,a,r,i,o,h,u,f,c,l,g,x,d,m=(e+"").replace(w,function(e){var t=+e;return t<1e-4&&-1e-4<t?0:t}).match(b)||[],p=[],y=0,M=0,v=m.length,C=0,E="ERROR: malformed path: "+e;if(!e||!isNaN(m[0])||isNaN(m[1]))return console.log(E),p;for(t=0;t<v;t++)if(g=r,isNaN(m[t])?i=(r=m[t].toUpperCase())!==m[t]:t--,s=+m[t+1],a=+m[t+2],i&&(s+=y,a+=M),t||(h=s,u=a),"M"===r)o&&(o.length<8?--p.length:C+=o.length),y=h=s,M=u=a,o=[s,a],p.push(o),t+=2,r="L";else if("C"===r)i||(y=M=0),(o=o||[0,0]).push(s,a,y+1*m[t+3],M+1*m[t+4],y+=1*m[t+5],M+=1*m[t+6]),t+=6;else if("S"===r)f=y,c=M,"C"!==g&&"S"!==g||(f+=y-o[o.length-4],c+=M-o[o.length-3]),i||(y=M=0),o.push(f,c,s,a,y+=1*m[t+3],M+=1*m[t+4]),t+=4;else if("Q"===r)f=y+2/3*(s-y),c=M+2/3*(a-M),i||(y=M=0),y+=1*m[t+3],M+=1*m[t+4],o.push(f,c,y+2/3*(s-y),M+2/3*(a-M),y,M),t+=4;else if("T"===r)f=y-o[o.length-4],c=M-o[o.length-3],o.push(y+f,M+c,s+2/3*(y+1.5*f-s),a+2/3*(M+1.5*c-a),y=s,M=a),t+=2;else if("H"===r)db(y,M,y=s,M),t+=1;else if("V"===r)db(y,M,y,M=s+(i?M-y:0)),t+=1;else if("L"===r||"Z"===r)"Z"===r&&(s=h,a=u,o.closed=!0),("L"===r||.5<F(y-s)||.5<F(M-a))&&(db(y,M,s,a),"L"===r&&(t+=2)),y=s,M=a;else if("A"===r){if(x=m[t+4],d=m[t+5],f=m[t+6],c=m[t+7],n=7,1<x.length&&(x.length<3?(c=f,f=d,n--):(c=d,f=x.substr(2),n-=2),d=x.charAt(1),x=x.charAt(0)),l=arcToSegment(y,M,+m[t+1],+m[t+2],+m[t+3],+x,+d,(i?y:0)+1*f,(i?M:0)+1*c),t+=n,l)for(n=0;n<l.length;n++)o.push(l[n]);y=o[o.length-2],M=o[o.length-1]}else console.log(E);return(t=o.length)<6?(p.pop(),t=0):o[0]===o[t-2]&&o[1]===o[t-1]&&(o.closed=!0),p.totalPoints=C+t,p}function p(){return M||"undefined"!=typeof window&&(M=window.gsap)&&M.registerPlugin&&M}function q(){(M=p())?(M.registerEase("_CE",n.create),a=1):console.warn("Please gsap.registerPlugin(CustomEase)")}function s(e){return~~(1e3*e+(e<0?-.5:.5))/1e3}function x(e,t,n,s,a,r,i,o,h,u,f){var c,l=(e+n)/2,g=(t+s)/2,d=(n+a)/2,m=(s+r)/2,p=(a+i)/2,y=(r+o)/2,M=(l+d)/2,v=(g+m)/2,C=(d+p)/2,E=(m+y)/2,b=(M+C)/2,w=(v+E)/2,P=i-e,S=o-t,N=Math.abs((n-i)*S-(s-o)*P),D=Math.abs((a-i)*S-(r-o)*P);return u||(u=[{x:e,y:t},{x:i,y:o}],f=1),u.splice(f||u.length-1,0,{x:b,y:w}),h*(P*P+S*S)<(N+D)*(N+D)&&(c=u.length,x(e,t,l,g,M,v,b,w,h,u,f),x(b,w,C,E,p,y,i,o,h,u,f+1+(u.length-c))),u}var M,a,t,y=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,v=/[cLlsSaAhHvVtTqQ]/g,n=((t=CustomEase.prototype).setData=function setData(e,t){t=t||{};var n,s,a,r,i,o,h,u,f,c=(e=e||"0,0,1,1").match(y),l=1,g=[],d=[],m=t.precision||1,p=m<=1;if(this.data=e,(v.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(c=stringToRawPath(e)[0]),4===(n=c.length))c.unshift(0,0),c.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";for(0==+c[0]&&1==+c[n-2]||function _normalize(e,t,n){n||0===n||(n=Math.max(+e[e.length-1],+e[1]));var s,a=-1*e[0],r=-n,i=e.length,o=1/(+e[i-2]+a),h=-t||(Math.abs(e[i-1]-e[1])<.01*(e[i-2]-e[0])?function _findMinimum(e){var t,n=e.length,s=1e20;for(t=1;t<n;t+=6)+e[t]<s&&(s=+e[t]);return s}(e)+r:+e[i-1]+r);for(h=h?1/h:-o,s=0;s<i;s+=2)e[s]=(+e[s]+a)*o,e[s+1]=(+e[s+1]+r)*h}(c,t.height,t.originY),this.segment=c,r=2;r<n;r+=6)s={x:+c[r-2],y:+c[r-1]},a={x:+c[r+4],y:+c[r+5]},g.push(s,a),x(s.x,s.y,+c[r],+c[r+1],+c[r+2],+c[r+3],a.x,a.y,1/(2e5*m),g,g.length-1);for(n=g.length,r=0;r<n;r++)h=g[r],u=g[r-1]||h,(h.x>u.x||u.y!==h.y&&u.x===h.x||h===u)&&h.x<=1?(u.cx=h.x-u.x,u.cy=h.y-u.y,u.n=h,u.nx=h.x,p&&1<r&&2<Math.abs(u.cy/u.cx-g[r-2].cy/g[r-2].cx)&&(p=0),u.cx<l&&(u.cx?l=u.cx:(u.cx=.001,r===n-1&&(u.x-=.001,l=Math.min(l,.001),p=0)))):(g.splice(r--,1),n--);if(i=1/(n=1/l+1|0),h=g[o=0],p){for(r=0;r<n;r++)f=r*i,h.nx<f&&(h=g[++o]),s=h.y+(f-h.x)/h.cx*h.cy,d[r]={x:f,cx:i,y:s,cy:0,nx:9},r&&(d[r-1].cy=s-d[r-1].y);d[n-1].cy=g[g.length-1].y-s}else{for(r=0;r<n;r++)h.nx<r*i&&(h=g[++o]),d[r]=h;o<g.length-1&&(d[r-1]=g[g.length-2])}return this.ease=function(e){var t=d[e*n|0]||d[n-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},(this.ease.custom=this).id&&M&&M.registerEase(this.id,this.ease),this},t.getSVGData=function getSVGData(e){return CustomEase.getSVGData(this,e)},CustomEase.create=function create(e,t,n){return new CustomEase(e,t,n).ease},CustomEase.register=function register(e){M=e,q()},CustomEase.get=function get(e){return M.parseEase(e)},CustomEase.getSVGData=function getSVGData(e,t){var n,a,r,i,o,h,u,f,c,l,g=(t=t||{}).width||100,x=t.height||100,d=t.x||0,p=(t.y||0)+x,y=M.utils.toArray(t.path)[0];if(t.invert&&(x=-x,p=0),"string"==typeof e&&(e=M.parseEase(e)),e.custom&&(e=e.custom),e instanceof CustomEase)n=function rawPathToString(e){!function _isNumber(e){return"number"==typeof e}(e[0])||(e=[e]);var t,n,s,a,r="",i=e.length;for(n=0;n<i;n++){for(a=e[n],r+="M"+m(a[0])+","+m(a[1])+" C",t=a.length,s=2;s<t;s++)r+=m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s])+" ";a.closed&&(r+="z")}return r}(function transformRawPath(e,t,n,s,a,r,i){for(var o,h,u,f,c,l=e.length;-1<--l;)for(h=(o=e[l]).length,u=0;u<h;u+=2)f=o[u],c=o[u+1],o[u]=f*t+c*s+r,o[u+1]=f*n+c*a+i;return e._dirty=1,e}([e.segment],g,0,0,-x,d,p));else{for(n=[d,p],i=1/(u=Math.max(5,200*(t.precision||1))),f=5/(u+=2),c=s(d+i*g),a=((l=s(p+e(i)*-x))-p)/(c-d),r=2;r<u;r++)o=s(d+r*i*g),h=s(p+e(r*i)*-x),(Math.abs((h-l)/(o-c)-a)>f||r===u-1)&&(n.push(c,l),a=(h-l)/(o-c)),c=o,l=h;n="M"+n.join(",")}return y&&y.setAttribute("d",n),n},CustomEase);function CustomEase(e,t,n){a||q(),this.id=e,this.setData(t,n)}p()&&M.registerPlugin(n),n.version="3.12.5",e.CustomEase=n,e.default=n;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* CustomWiggle 3.12.4 | ||
* CustomWiggle 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n=n||self).window=n.window||{})}(this,function(e){"use strict";function g(){return a||"undefined"!=typeof window&&(a=window.gsap)&&a.registerPlugin&&a}function i(n){return n}function j(n){if(!y)if(a=g(),C=a&&a.parseEase("_CE")){for(var e in W)W[e]=C("",W[e]);y=1,t("wiggle").config=function(n){return"object"==typeof n?t("",n):t("wiggle("+n+")",{wiggles:+n})}}else n&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")}function k(e,n){return"function"!=typeof e&&(e=a.parseEase(e)||C("",e)),e.custom||!n?e:function(n){return 1-e(n)}}function n(){return String.fromCharCode.apply(null,arguments)}var a,y,C,W={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},s="CustomWiggle",u=n(103,114,101,101,110,115,111,99,107,46,99,111,109),f=n(103,115,97,112,46,99,111,109),c=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,v=function(e){var t="undefined"!=typeof window,o=0===(t?window.location.href:"").indexOf(n(102,105,108,101,58,47,47))||-1!==e.indexOf(n(108,111,99,97,108,104,111,115,116))||c.test(e)||(t?window.location.hostname:"").split(".").pop()===n(108,111,99,97,108),i=[u,f,n(99,111,100,101,112,101,110,46,105,111),n(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),n(99,111,100,101,112,101,110,46,100,101,118),n(99,111,100,101,112,101,110,46,97,112,112),n(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),n(112,101,110,115,46,99,108,111,117,100),n(99,115,115,45,116,114,105,99,107,115,46,99,111,109),n(99,100,112,110,46,105,111),n(112,101,110,115,46,105,111),n(103,97,110,110,111,110,46,116,118),n(99,111,100,101,99,97,110,121,111,110,46,110,101,116),n(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),n(99,101,114,101,98,114,97,120,46,99,111,46,117,107),n(116,121,109,112,97,110,117,115,46,110,101,116),n(116,119,101,101,110,109,97,120,46,99,111,109),n(112,108,110,107,114,46,99,111),n(104,111,116,106,97,114,46,99,111,109),n(119,101,98,112,97,99,107,98,105,110,46,99,111,109),n(97,114,99,104,105,118,101,46,111,114,103),n(99,111,100,101,115,97,110,100,98,111,120,46,105,111),n(99,115,98,46,97,112,112),n(115,116,97,99,107,98,108,105,116,122,46,99,111,109),n(115,116,97,99,107,98,108,105,116,122,46,105,111),n(99,111,100,105,101,114,46,105,111),n(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),n(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),n(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),n(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),n(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),n(106,115,102,105,100,100,108,101,46,110,101,116)],r=i.length;for(setTimeout(function checkWarn(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof a?a:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(n(37,99,87,97,114,110,105,110,103),n(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(n(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+s+n(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(n(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),n(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--r;)if(-1!==e.indexOf(i[r]))return!0;return o||!setTimeout(function(){t&&(window.location.href=n(104,116,116,112,115,58,47,47)+u+n(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+s+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),t=function _create(n,e){y||j(1);var t,o,r,a,s,u,f,c,g,d=0|((e=e||{}).wiggles||10),l=1/d,p=l/2,w="anticipate"===e.type,m=W[e.type]||W.easeOut,h=i;if(v){if(w&&(h=m,m=W.easeOut),e.timingEase&&(h=k(e.timingEase)),e.amplitudeEase&&(m=k(e.amplitudeEase,!0)),c=[0,0,(u=h(p))/4,0,u/2,f=w?-m(p):m(p),u,f],"random"===e.type){for(c.length=4,t=h(l),o=2*Math.random()-1,g=2;g<d;g++)p=t,f=o,t=h(l*g),o=2*Math.random()-1,r=Math.atan2(o-c[c.length-3],t-c[c.length-4]),a=Math.cos(r)*l,s=Math.sin(r)*l,c.push(p-a,f-s,p,f,p+a,f+s);c.push(t,0,1,0)}else{for(g=1;g<d;g++)c.push(h(p+l/2),f),p+=l,f=(0<f?-1:1)*m(g*l),u=h(p),c.push(h(p-l/2),f,u,f);c.push(h(p+l/4),f,h(p+l/4),0,1,0)}for(g=c.length;-1<--g;)c[g]=~~(1e3*c[g])/1e3;return c[2]="C"+c[2],C(n,"M"+c.join(","))}},o=(CustomWiggle.create=function create(n,e){return t(n,e)},CustomWiggle.register=function register(n){a=n,j()},CustomWiggle);function CustomWiggle(n,e){this.ease=t(n,e)}g()&&a.registerPlugin(o),o.version="3.12.4",e.CustomWiggle=o,e.default=o;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n=n||self).window=n.window||{})}(this,function(e){"use strict";function g(){return a||"undefined"!=typeof window&&(a=window.gsap)&&a.registerPlugin&&a}function i(n){return n}function j(n){if(!y)if(a=g(),C=a&&a.parseEase("_CE")){for(var e in W)W[e]=C("",W[e]);y=1,t("wiggle").config=function(n){return"object"==typeof n?t("",n):t("wiggle("+n+")",{wiggles:+n})}}else n&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")}function k(e,n){return"function"!=typeof e&&(e=a.parseEase(e)||C("",e)),e.custom||!n?e:function(n){return 1-e(n)}}function n(){return String.fromCharCode.apply(null,arguments)}var a,y,C,W={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},s="CustomWiggle",u=n(103,114,101,101,110,115,111,99,107,46,99,111,109),f=n(103,115,97,112,46,99,111,109),c=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,v=function(e){var t="undefined"!=typeof window,o=0===(t?window.location.href:"").indexOf(n(102,105,108,101,58,47,47))||-1!==e.indexOf(n(108,111,99,97,108,104,111,115,116))||c.test(e)||(t?window.location.hostname:"").split(".").pop()===n(108,111,99,97,108),i=[u,f,n(99,111,100,101,112,101,110,46,105,111),n(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),n(99,111,100,101,112,101,110,46,100,101,118),n(99,111,100,101,112,101,110,46,97,112,112),n(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),n(112,101,110,115,46,99,108,111,117,100),n(99,115,115,45,116,114,105,99,107,115,46,99,111,109),n(99,100,112,110,46,105,111),n(112,101,110,115,46,105,111),n(103,97,110,110,111,110,46,116,118),n(99,111,100,101,99,97,110,121,111,110,46,110,101,116),n(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),n(99,101,114,101,98,114,97,120,46,99,111,46,117,107),n(116,121,109,112,97,110,117,115,46,110,101,116),n(116,119,101,101,110,109,97,120,46,99,111,109),n(112,108,110,107,114,46,99,111),n(104,111,116,106,97,114,46,99,111,109),n(119,101,98,112,97,99,107,98,105,110,46,99,111,109),n(97,114,99,104,105,118,101,46,111,114,103),n(99,111,100,101,115,97,110,100,98,111,120,46,105,111),n(99,115,98,46,97,112,112),n(115,116,97,99,107,98,108,105,116,122,46,99,111,109),n(115,116,97,99,107,98,108,105,116,122,46,105,111),n(99,111,100,105,101,114,46,105,111),n(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),n(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),n(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),n(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),n(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),n(106,115,102,105,100,100,108,101,46,110,101,116)],r=i.length;for(setTimeout(function checkWarn(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof a?a:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(n(37,99,87,97,114,110,105,110,103),n(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(n(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+s+n(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(n(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),n(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--r;)if(-1!==e.indexOf(i[r]))return!0;return o||!setTimeout(function(){t&&(window.location.href=n(104,116,116,112,115,58,47,47)+u+n(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+s+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),t=function _create(n,e){y||j(1);var t,o,r,a,s,u,f,c,g,d=0|((e=e||{}).wiggles||10),l=1/d,p=l/2,w="anticipate"===e.type,m=W[e.type]||W.easeOut,h=i;if(v){if(w&&(h=m,m=W.easeOut),e.timingEase&&(h=k(e.timingEase)),e.amplitudeEase&&(m=k(e.amplitudeEase,!0)),c=[0,0,(u=h(p))/4,0,u/2,f=w?-m(p):m(p),u,f],"random"===e.type){for(c.length=4,t=h(l),o=2*Math.random()-1,g=2;g<d;g++)p=t,f=o,t=h(l*g),o=2*Math.random()-1,r=Math.atan2(o-c[c.length-3],t-c[c.length-4]),a=Math.cos(r)*l,s=Math.sin(r)*l,c.push(p-a,f-s,p,f,p+a,f+s);c.push(t,0,1,0)}else{for(g=1;g<d;g++)c.push(h(p+l/2),f),p+=l,f=(0<f?-1:1)*m(g*l),u=h(p),c.push(h(p-l/2),f,u,f);c.push(h(p+l/4),f,h(p+l/4),0,1,0)}for(g=c.length;-1<--g;)c[g]=~~(1e3*c[g])/1e3;return c[2]="C"+c[2],C(n,"M"+c.join(","))}},o=(CustomWiggle.create=function create(n,e){return t(n,e)},CustomWiggle.register=function register(n){a=n,j()},CustomWiggle);function CustomWiggle(n,e){this.ease=t(n,e)}g()&&a.registerPlugin(o),o.version="3.12.5",e.CustomWiggle=o,e.default=o;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* Draggable 3.12.4 | ||
* Draggable 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){if(e.parentNode&&(h||T(e))){var n=P(e),o=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=n?t?"rect":"g":"div",i=2!==t?0:100,a=3===t?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",s=h.createElementNS?h.createElementNS(o.replace(/^https/,"http"),r):h.createElement(r);return t&&(n?(g=g||w(e),s.setAttribute("width",.01),s.setAttribute("height",.01),s.setAttribute("transform","translate("+i+","+a+")"),g.appendChild(s)):(f||((f=w(e)).style.cssText=l),s.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+i+"px",f.appendChild(s))),s}throw"Need document and parent."}function A(e,t,n,o,r,i,a){return e.a=t,e.b=n,e.c=o,e.d=r,e.e=i,e.f=a,e}var h,u,i,a,f,g,x,m,y,t,v="transform",b=v+"Origin",T=function _setDoc(e){var t=e.ownerDocument||e;!(v in e.style)&&"msTransform"in e.style&&(b=(v="msTransform")+"Origin");for(;t.parentNode&&(t=t.parentNode););if(u=window,x=new ge,t){i=(h=t).documentElement,a=t.body,(m=h.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),o=t.createElement("div"),r=t&&(t.body||t.firstElementChild);r&&r.appendChild&&(r.appendChild(n),n.appendChild(o),n.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),y=o.offsetParent!==n,r.removeChild(n))}return t},D=function _forceNonZeroScale(e){for(var t,n;e&&e!==a;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},M=[],E=[],L=function _getDocScrollTop(){return u.pageYOffset||h.scrollTop||i.scrollTop||a.scrollTop||0},S=function _getDocScrollLeft(){return u.pageXOffset||h.scrollLeft||i.scrollLeft||a.scrollLeft||0},P=function _svgOwner(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},C=function _isFixed(e){return"fixed"===u.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)},N=function _placeSiblings(e,t){var n,o,r,i,a,l,s=P(e),c=e===s,d=s?M:E,p=e.parentNode;if(e===u)return e;if(d.length||d.push(w(e,1),w(e,2),w(e,3)),n=s?g:f,s)c?(i=-(r=function _getCTM(e){var t,n=e.getCTM();return n||(t=e.style[v],e.style[v]="none",e.appendChild(m),n=m.getCTM(),e.removeChild(m),t?e.style[v]=t:e.style.removeProperty(v.replace(/([A-Z])/g,"-$1").toLowerCase())),n||x.clone()}(e)).e/r.a,a=-r.f/r.d,o=x):e.getBBox?(r=e.getBBox(),i=(o=(o=e.transform?e.transform.baseVal:{}).numberOfItems?1<o.numberOfItems?function _consolidate(e){for(var t=new ge,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t}(o):o.getItem(0).matrix:x).a*r.x+o.c*r.y,a=o.b*r.x+o.d*r.y):(o=new ge,i=a=0),t&&"g"===e.tagName.toLowerCase()&&(i=a=0),(c?s:p).appendChild(n),n.setAttribute("transform","matrix("+o.a+","+o.b+","+o.c+","+o.d+","+(o.e+i)+","+(o.f+a)+")");else{if(i=a=0,y)for(o=e.offsetParent,r=e;(r=r&&r.parentNode)&&r!==o&&r.parentNode;)4<(u.getComputedStyle(r)[v]+"").length&&(i=r.offsetLeft,a=r.offsetTop,r=0);if("absolute"!==(l=u.getComputedStyle(e)).position&&"fixed"!==l.position)for(o=e.offsetParent;p&&p!==o;)i+=p.scrollLeft||0,a+=p.scrollTop||0,p=p.parentNode;(r=n.style).top=e.offsetTop-a+"px",r.left=e.offsetLeft-i+"px",r[v]=l[v],r[b]=l[b],r.position="fixed"===l.position?"fixed":"absolute",e.parentNode.appendChild(n)}return n},ge=((t=Matrix2D.prototype).inverse=function inverse(){var e=this.a,t=this.b,n=this.c,o=this.d,r=this.e,i=this.f,a=e*o-t*n||1e-10;return A(this,o/a,-t/a,-n/a,e/a,(n*i-o*r)/a,-(e*i-t*r)/a)},t.multiply=function multiply(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f,l=e.a,s=e.c,c=e.b,d=e.d,p=e.e,u=e.f;return A(this,l*t+c*o,l*n+c*r,s*t+d*o,s*n+d*r,i+p*t+u*o,a+p*n+u*r)},t.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function equals(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f;return t===e.a&&n===e.b&&o===e.c&&r===e.d&&i===e.e&&a===e.f},t.apply=function apply(e,t){void 0===t&&(t={});var n=e.x,o=e.y,r=this.a,i=this.b,a=this.c,l=this.d,s=this.e,c=this.f;return t.x=n*r+o*a+s||0,t.y=n*i+o*l+c||0,t},Matrix2D);function Matrix2D(e,t,n,o,r,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=0),A(this,e,t,n,o,r,i)}function getGlobalMatrix(e,t,n,o){if(!e||!e.parentNode||(h||T(e)).documentElement===e)return new ge;var r=D(e),i=P(e)?M:E,a=N(e,n),l=i[0].getBoundingClientRect(),s=i[1].getBoundingClientRect(),c=i[2].getBoundingClientRect(),d=a.parentNode,p=!o&&C(e),u=new ge((s.left-l.left)/100,(s.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(p?0:S()),l.top+(p?0:L()));if(d.removeChild(a),r)for(l=r.length;l--;)(s=r[l]).scaleX=s.scaleY=0,s.renderTransform(1,s);return t?u.inverse():u}function X(){return"undefined"!=typeof window}function Y(){return xe||X()&&(xe=window.gsap)&&xe.registerPlugin&&xe}function Z(e){return"function"==typeof e}function $(e){return"object"==typeof e}function _(e){return void 0===e}function aa(){return!1}function da(e){return Math.round(1e4*e)/1e4}function fa(e,t){var n=ye.createElementNS?ye.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):ye.createElement(e);return n.style?n:ye.createElement(e)}function ra(e,t){var n,o={};for(n in e)o[n]=t?e[n]*t:e[n];return o}function ta(e,t){for(var n,o=e.length;o--;)t?e[o].style.touchAction=t:e[o].style.removeProperty("touch-action"),(n=e[o].children)&&n.length&&ta(n,t)}function ua(){return Oe.forEach(function(e){return e()})}function wa(){return!Oe.length&&xe.ticker.remove(ua)}function xa(e){for(var t=Oe.length;t--;)Oe[t]===e&&Oe.splice(t,1);xe.to(wa,{overwrite:!0,delay:15,duration:0,onComplete:wa,data:"_draggable"})}function za(e,t,n,o){if(e.addEventListener){var r=Me[t];o=o||(d?{passive:!1}:null),e.addEventListener(r||t,n,o),r&&t!==r&&e.addEventListener(t,n,o)}}function Aa(e,t,n,o){if(e.removeEventListener){var r=Me[t];e.removeEventListener(r||t,n,o),r&&t!==r&&e.removeEventListener(t,n,o)}}function Ba(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()}function Da(e){Ee=e.touches&&Ae<e.touches.length,Aa(e.target,"touchend",Da)}function Ea(e){Ee=e.touches&&Ae<e.touches.length,za(e.target,"touchend",Da)}function Fa(e){return me.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0}function Ga(e){return me.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0}function Ha(e,t){za(e,"scroll",t),Qe(e.parentNode)||Ha(e.parentNode,t)}function Ia(e,t){Aa(e,"scroll",t),Qe(e.parentNode)||Ia(e.parentNode,t)}function Ka(e,t){var n="x"===t?"Width":"Height",o="scroll"+n,r="client"+n;return Math.max(0,Qe(e)?Math.max(ve[o],l[o])-(me["inner"+n]||ve[r]||l[r]):e[o]-e[r])}function La(e,t){var n=Ka(e,"x"),o=Ka(e,"y");Qe(e)?e=We:La(e.parentNode,t),e._gsMaxScrollX=n,e._gsMaxScrollY=o,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)}function Ma(e,t,n){var o=e.style;o&&(_(o[t])&&(t=c(t,e)||t),null==n?o.removeProperty&&o.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):o[t]=n)}function Na(e){return me.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)}function Pa(e){if(e===me)return p.left=p.top=0,p.width=p.right=ve.clientWidth||e.innerWidth||l.clientWidth||0,p.height=p.bottom=(e.innerHeight||0)-20<ve.clientHeight?ve.clientHeight:e.innerHeight||l.clientHeight||0,p;var t=e.ownerDocument||ye,n=_(e.pageX)?e.nodeType||_(e.left)||_(e.top)?Te(e)[0].getBoundingClientRect():e:{left:e.pageX-Ga(t),top:e.pageY-Fa(t),right:e.pageX-Ga(t)+1,bottom:e.pageY-Fa(t)+1};return _(n.right)&&!_(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):_(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n}function Qa(e,t,n){var o,r=e.vars,i=r[n],a=e._listeners[t];return Z(i)&&(o=i.apply(r.callbackScope||e,r[n+"Params"]||[e.pointerEvent])),a&&!1===e.dispatchEvent(t)&&(o=!1),o}function Ra(e,t){var n,o,r,i=Te(e)[0];return i.nodeType||i===me?O(i,t):_(e.left)?{left:o=e.min||e.minX||e.minRotation||0,top:n=e.min||e.minY||0,width:(e.max||e.maxX||e.maxRotation||0)-o,height:(e.max||e.maxY||0)-n}:(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})}function Ua(r,i,e,t,a,n){var o,l,s,c={};if(i)if(1!==a&&i instanceof Array){if(c.end=o=[],s=i.length,$(i[0]))for(l=0;l<s;l++)o[l]=ra(i[l],a);else for(l=0;l<s;l++)o[l]=i[l]*a;e+=1.1,t-=1.1}else Z(i)?c.end=function(e){var t,n,o=i.call(r,e);if(1!==a)if($(o)){for(n in t={},o)t[n]=o[n]*a;o=t}else o*=a;return o}:c.end=i;return!e&&0!==e||(c.max=e),!t&&0!==t||(c.min=t),n&&(c.velocity=0),c}function Va(e){var t;return!(!e||!e.getAttribute||e===l)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!o.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||Va(e.parentNode))}function Wa(e,t){for(var n,o=e.length;o--;)(n=e[o]).ondragstart=n.onselectstart=t?null:aa,xe.set(n,{lazy:!0,userSelect:t?"text":"none"})}function $a(i,r){i=xe.utils.toArray(i)[0],r=r||{};var a,l,s,e,c,d,p=document.createElement("div"),u=p.style,t=i.firstChild,h=0,f=0,g=i.scrollTop,x=i.scrollLeft,m=i.scrollWidth,y=i.scrollHeight,v=0,w=0,b=0;k&&!1!==r.force3D?(c="translate3d(",d="px,0px)"):B&&(c="translate(",d="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(e,t){if(!arguments.length)return-(i.scrollLeft+f);var n=i.scrollLeft-x,o=f;if((2<n||n<-2)&&!t)return x=i.scrollLeft,xe.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-x),void(r.onKill&&r.onKill());(e=-e)<0?(f=e-.5|0,e=0):w<e?(f=e-w|0,e=w):f=0,(f||o)&&(this._skip||(u[B]=c+-f+"px,"+-h+d),0<=f+v&&(u.paddingRight=f+v+"px")),i.scrollLeft=0|e,x=i.scrollLeft},this.top=function(e,t){if(!arguments.length)return-(i.scrollTop+h);var n=i.scrollTop-g,o=h;if((2<n||n<-2)&&!t)return g=i.scrollTop,xe.killTweensOf(this,{top:1,scrollTop:1}),this.top(-g),void(r.onKill&&r.onKill());(e=-e)<0?(h=e-.5|0,e=0):b<e?(h=e-b|0,e=b):h=0,(h||o)&&(this._skip||(u[B]=c+-f+"px,"+-h+d)),i.scrollTop=0|e,g=i.scrollTop},this.maxScrollTop=function(){return b},this.maxScrollLeft=function(){return w},this.disable=function(){for(t=p.firstChild;t;)e=t.nextSibling,i.appendChild(t),t=e;i===p.parentNode&&i.removeChild(p)},this.enable=function(){if((t=i.firstChild)!==p){for(;t;)e=t.nextSibling,p.appendChild(t),t=e;i.appendChild(p),this.calibrate()}},this.calibrate=function(e){var t,n,o,r=i.clientWidth===a;g=i.scrollTop,x=i.scrollLeft,r&&i.clientHeight===l&&p.offsetHeight===s&&m===i.scrollWidth&&y===i.scrollHeight&&!e||((h||f)&&(n=this.left(),o=this.top(),this.left(-i.scrollLeft),this.top(-i.scrollTop)),t=Na(i),r&&!e||(u.display="block",u.width="auto",u.paddingRight="0px",(v=Math.max(0,i.scrollWidth-i.clientWidth))&&(v+=parseFloat(t.paddingLeft)+(R?parseFloat(t.paddingRight):0))),u.display="inline-block",u.position="relative",u.overflow="visible",u.verticalAlign="top",u.boxSizing="content-box",u.width="100%",u.paddingRight=v+"px",R&&(u.paddingBottom=t.paddingBottom),a=i.clientWidth,l=i.clientHeight,m=i.scrollWidth,y=i.scrollHeight,w=i.scrollWidth-a,b=i.scrollHeight-l,s=p.offsetHeight,u.display="block",(n||o)&&(this.left(n),this.top(o)))},this.content=p,this.element=i,this._skip=!1,this.enable()}function _a(e){if(X()&&document.body){var t=window&&window.navigator;me=window,ye=document,ve=ye.documentElement,l=ye.body,s=fa("div"),Pe=!!window.PointerEvent,(we=fa("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Se="grab"===we.style.cursor?"grab":"move",_e=t&&-1!==t.userAgent.toLowerCase().indexOf("android"),De="ontouchstart"in ve&&"orientation"in me||t&&(0<t.MaxTouchPoints||0<t.msMaxTouchPoints),o=fa("div"),r=fa("div"),i=r.style,a=l,i.display="inline-block",i.position="relative",o.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",o.appendChild(r),a.appendChild(o),n=r.offsetHeight+18>o.scrollHeight,a.removeChild(o),R=n,Me=function(e){for(var t=e.split(","),n=(("onpointerdown"in s?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in s?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(",")),o={},r=4;-1<--r;)o[t[r]]=n[r],o[n[r]]=t[r];try{ve.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){d=1}}))}catch(e){}return o}("touchstart,touchmove,touchend,touchcancel"),za(ye,"touchcancel",aa),za(me,"touchmove",aa),l&&l.addEventListener("touchstart",aa),za(ye,"contextmenu",function(){for(var e in ze)ze[e].isPressed&&ze[e].endDrag()}),xe=be=Y()}var n,o,r,i,a;xe?(Le=xe.plugins.inertia,Xe=xe.core.context||function(){},c=xe.utils.checkPrefix,B=c(B),Ce=c(Ce),Te=xe.utils.toArray,Ye=xe.core.getStyleSaver,k=!!c("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")}var xe,me,ye,ve,l,s,we,be,c,Te,d,De,Me,Ee,_e,Le,Se,Pe,Xe,Ye,k,R,n,Ae=0,B="transform",Ce="transformOrigin",Ne=Array.isArray,ke=180/Math.PI,Re=1e20,r=new ge,Be=Date.now||function(){return(new Date).getTime()},Oe=[],ze={},Ie=0,o=/^(?:a|input|textarea|button|select)$/i,Fe=0,He={},We={},Qe=function _isRoot(e){return!(e&&e!==ve&&9!==e.nodeType&&e!==ye.body&&e!==me&&e.nodeType&&e.parentNode)},p={},Ge={},O=function _getElementBounds(e,t){t=Te(t)[0];var n,o,r,i,a,l,s,c,d,p,u,h,f,g=e.getBBox&&e.ownerSVGElement,x=e.ownerDocument||ye;if(e===me)r=Fa(x),o=(n=Ga(x))+(x.documentElement.clientWidth||e.innerWidth||x.body.clientWidth||0),i=r+((e.innerHeight||0)-20<x.documentElement.clientHeight?x.documentElement.clientHeight:e.innerHeight||x.body.clientHeight||0);else{if(t===me||_(t))return e.getBoundingClientRect();n=r=0,g?(u=(p=e.getBBox()).width,h=p.height):(e.viewBox&&(p=e.viewBox.baseVal)&&(n=p.x||0,r=p.y||0,u=p.width,h=p.height),u||(p="border-box"===(f=Na(e)).boxSizing,u=(parseFloat(f.width)||e.clientWidth||0)+(p?0:parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)),h=(parseFloat(f.height)||e.clientHeight||0)+(p?0:parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)))),o=u,i=h}return e===t?{left:n,top:r,width:o-n,height:i-r}:(l=(a=getGlobalMatrix(t,!0).multiply(getGlobalMatrix(e))).apply({x:n,y:r}),s=a.apply({x:o,y:r}),c=a.apply({x:o,y:i}),d=a.apply({x:n,y:i}),{left:n=Math.min(l.x,s.x,c.x,d.x),top:r=Math.min(l.y,s.y,c.y,d.y),width:Math.max(l.x,s.x,c.x,d.x)-n,height:Math.max(l.y,s.y,c.y,d.y)-r})},z=((n=EventDispatcher.prototype).addEventListener=function addEventListener(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);~n.indexOf(t)||n.push(t)},n.removeEventListener=function removeEventListener(e,t){var n=this._listeners[e],o=n&&n.indexOf(t);0<=o&&n.splice(o,1)},n.dispatchEvent=function dispatchEvent(t){var n,o=this;return(this._listeners[t]||[]).forEach(function(e){return!1===e.call(o,{type:t,target:o.target})&&(n=!1)}),n},EventDispatcher);function EventDispatcher(e){this._listeners={},this.target=e||this}var Ke,I=(function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Draggable,Ke=z),Draggable.register=function register(e){xe=e,_a()},Draggable.create=function create(e,t){return be||_a(!0),Te(e).map(function(e){return new Draggable(e,t)})},Draggable.get=function get(e){return ze[(Te(e)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(Be()-Fe)/1e3},Draggable.hitTest=function hitTest(e,t,n){if(e===t)return!1;var o,r,i,a=Pa(e),l=Pa(t),s=a.top,c=a.left,d=a.right,p=a.bottom,u=a.width,h=a.height,f=l.left>d||l.right<c||l.top>p||l.bottom<s;return f||!n?!f:(i=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(o={left:Math.max(c,l.left),top:Math.max(s,l.top)}).width=Math.min(d,l.right)-o.left,o.height=Math.min(p,l.bottom)-o.top,!(o.width<0||o.height<0)&&(i?u*h*(n*=.01)<=(r=o.width*o.height)||r>=l.width*l.height*n:o.width>n&&o.height>n))},Draggable);function Draggable(h,p){var e;e=Ke.call(this)||this,be||_a(1),h=Te(h)[0],e.styles=Ye&&Ye(h,"transform,left,top"),Le=Le||xe.plugins.inertia,e.vars=p=ra(p||{}),e.target=h,e.x=e.y=e.rotation=0,e.dragResistance=parseFloat(p.dragResistance)||0,e.edgeResistance=isNaN(p.edgeResistance)?1:parseFloat(p.edgeResistance)||0,e.lockAxis=p.lockAxis,e.autoScroll=p.autoScroll||0,e.lockedAxis=null,e.allowEventDefault=!!p.allowEventDefault,xe.getProperty(h,"x");function Rg(e,t){return parseFloat(se.get(h,e,t))}function yh(e){return Ba(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1}function zh(e){if(q.autoScroll&&q.isDragging&&(te||Y)){var t,n,o,r,i,a,l,s,c=h,d=15*q.autoScroll;for(te=!1,We.scrollTop=null!=me.pageYOffset?me.pageYOffset:null!=de.documentElement.scrollTop?de.documentElement.scrollTop:de.body.scrollTop,We.scrollLeft=null!=me.pageXOffset?me.pageXOffset:null!=de.documentElement.scrollLeft?de.documentElement.scrollLeft:de.body.scrollLeft,r=q.pointerX-We.scrollLeft,i=q.pointerY-We.scrollTop;c&&!n;)t=(n=Qe(c.parentNode))?We:c.parentNode,o=n?{bottom:Math.max(ve.clientHeight,me.innerHeight||0),right:Math.max(ve.clientWidth,me.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),a=l=0,U&&((s=t._gsMaxScrollY-t.scrollTop)<0?l=s:i>o.bottom-re&&s?(te=!0,l=Math.min(s,d*(1-Math.max(0,o.bottom-i)/re)|0)):i<o.top+ne&&t.scrollTop&&(te=!0,l=-Math.min(t.scrollTop,d*(1-Math.max(0,i-o.top)/ne)|0)),l&&(t.scrollTop+=l)),V&&((s=t._gsMaxScrollX-t.scrollLeft)<0?a=s:r>o.right-oe&&s?(te=!0,a=Math.min(s,d*(1-Math.max(0,o.right-r)/oe)|0)):r<o.left+ie&&t.scrollLeft&&(te=!0,a=-Math.min(t.scrollLeft,d*(1-Math.max(0,r-o.left)/ie)|0)),a&&(t.scrollLeft+=a)),n&&(a||l)&&(me.scrollTo(t.scrollLeft,t.scrollTop),he(q.pointerX+a,q.pointerY+l)),c=t}if(Y){var p=q.x,u=q.y;Q?(q.deltaX=p-parseFloat(se.rotation),q.rotation=p,se.rotation=p+"deg",se.renderTransform(1,se)):f?(U&&(q.deltaY=u-f.top(),f.top(u)),V&&(q.deltaX=p-f.left(),f.left(p))):W?(U&&(q.deltaY=u-parseFloat(se.y),se.y=u+"px"),V&&(q.deltaX=p-parseFloat(se.x),se.x=p+"px"),se.renderTransform(1,se)):(U&&(q.deltaY=u-parseFloat(h.style.top||0),h.style.top=u+"px"),V&&(q.deltaX=p-parseFloat(h.style.left||0),h.style.left=p+"px")),!g||e||z||(!(z=!0)===Qa(q,"drag","onDrag")&&(V&&(q.x-=q.deltaX),U&&(q.y-=q.deltaY),zh(!0)),z=!1)}Y=!1}function Ah(e,t){var n,o,r=q.x,i=q.y;h._gsap||(se=xe.core.getCache(h)),se.uncache&&xe.getProperty(h,"x"),W?(q.x=parseFloat(se.x),q.y=parseFloat(se.y)):Q?q.x=q.rotation=parseFloat(se.rotation):f?(q.y=f.top(),q.x=f.left()):(q.y=parseFloat(h.style.top||(o=Na(h))&&o.top)||0,q.x=parseFloat(h.style.left||(o||{}).left)||0),(A||C||N)&&!t&&(q.isDragging||q.isThrowing)&&(N&&(He.x=q.x,He.y=q.y,(n=N(He)).x!==q.x&&(q.x=n.x,Y=!0),n.y!==q.y&&(q.y=n.y,Y=!0)),A&&(n=A(q.x))!==q.x&&(q.x=n,Q&&(q.rotation=n),Y=!0),C&&((n=C(q.y))!==q.y&&(q.y=n),Y=!0)),Y&&zh(!0),e||(q.deltaX=q.x-r,q.deltaY=q.y-i,Qa(q,"throwupdate","onThrowUpdate"))}function Bh(a,l,s,n){return null==l&&(l=-Re),null==s&&(s=Re),Z(a)?function(e){var t=q.isPressed?1-q.edgeResistance:1;return a.call(q,(s<e?s+(e-s)*t:e<l?l+(e-l)*t:e)*n)*n}:Ne(a)?function(e){for(var t,n,o=a.length,r=0,i=Re;-1<--o;)(n=(t=a[o])-e)<0&&(n=-n),n<i&&l<=t&&t<=s&&(r=o,i=n);return a[r]}:isNaN(a)?function(e){return e}:function(){return a*n}}function Dh(){var e,t,n,o;M=!1,f?(f.calibrate(),q.minX=L=-f.maxScrollLeft(),q.minY=P=-f.maxScrollTop(),q.maxX=E=q.maxY=S=0,M=!0):p.bounds&&(e=Ra(p.bounds,h.parentNode),Q?(q.minX=L=e.left,q.maxX=E=e.left+e.width,q.minY=P=q.maxY=S=0):_(p.bounds.maxX)&&_(p.bounds.maxY)?(t=Ra(h,h.parentNode),q.minX=L=Math.round(Rg(G,"px")+e.left-t.left),q.minY=P=Math.round(Rg(K,"px")+e.top-t.top),q.maxX=E=Math.round(L+(e.width-t.width)),q.maxY=S=Math.round(P+(e.height-t.height))):(e=p.bounds,q.minX=L=e.minX,q.minY=P=e.minY,q.maxX=E=e.maxX,q.maxY=S=e.maxY),E<L&&(q.minX=E,q.maxX=E=L,L=q.minX),S<P&&(q.minY=S,q.maxY=S=P,P=q.minY),Q&&(q.minRotation=L,q.maxRotation=E),M=!0),p.liveSnap&&(n=!0===p.liveSnap?p.snap||{}:p.liveSnap,o=Ne(n)||Z(n),Q?(A=Bh(o?n:n.rotation,L,E,1),C=null):n.points?N=function buildPointSnapFunc(s,l,c,d,p,u,h){return u=u&&u<Re?u*u:Re,Z(s)?function(e){var t,n,o,r=q.isPressed?1-q.edgeResistance:1,i=e.x,a=e.y;return e.x=i=c<i?c+(i-c)*r:i<l?l+(i-l)*r:i,e.y=a=p<a?p+(a-p)*r:a<d?d+(a-d)*r:a,(t=s.call(q,e))!==e&&(e.x=t.x,e.y=t.y),1!==h&&(e.x*=h,e.y*=h),u<Re&&(n=e.x-i,o=e.y-a,u<n*n+o*o&&(e.x=i,e.y=a)),e}:Ne(s)?function(e){for(var t,n,o,r,i=s.length,a=0,l=Re;-1<--i;)(r=(t=(o=s[i]).x-e.x)*t+(n=o.y-e.y)*n)<l&&(a=i,l=r);return l<=u?s[a]:e}:function(e){return e}}(o?n:n.points,L,E,P,S,n.radius,f?-1:1):(V&&(A=Bh(o?n:n.x||n.left||n.scrollLeft,L,E,f?-1:1)),U&&(C=Bh(o?n:n.y||n.top||n.scrollTop,P,S,f?-1:1))))}function Eh(){q.isThrowing=!1,Qa(q,"throwcomplete","onThrowComplete")}function Fh(){q.isThrowing=!1}function Gh(e,t){var n,o,r,i;e&&Le?(!0===e&&(n=p.snap||p.liveSnap||{},o=Ne(n)||Z(n),e={resistance:(p.throwResistance||p.resistance||1e3)/(Q?10:1)},Q?e.rotation=Ua(q,o?n:n.rotation,E,L,1,t):(V&&(e[G]=Ua(q,o?n:n.points||n.x||n.left,E,L,f?-1:1,t||"x"===q.lockedAxis)),U&&(e[K]=Ua(q,o?n:n.points||n.y||n.top,S,P,f?-1:1,t||"y"===q.lockedAxis)),(n.points||Ne(n)&&$(n[0]))&&(e.linkedProps=G+","+K,e.radius=n.radius))),q.isThrowing=!0,i=isNaN(p.overshootTolerance)?1===p.edgeResistance?0:1-q.edgeResistance+.2:p.overshootTolerance,e.duration||(e.duration={max:Math.max(p.minDuration||0,"maxDuration"in p?p.maxDuration:2),min:isNaN(p.minDuration)?0===i||$(e)&&1e3<e.resistance?0:.5:p.minDuration,overshoot:i}),q.tween=r=xe.to(f||h,{inertia:e,data:"_draggable",onComplete:Eh,onInterrupt:Fh,onUpdate:p.fastMode?Qa:Ah,onUpdateParams:p.fastMode?[q,"onthrowupdate","onThrowUpdate"]:n&&n.radius?[!1,!0]:[]}),p.fastMode||(f&&(f._skip=!0),r.render(1e9,!0,!0),Ah(!0,!0),q.endX=q.x,q.endY=q.y,Q&&(q.endRotation=q.x),r.play(0),Ah(!0,!0),f&&(f._skip=!1))):M&&q.applyBounds()}function Hh(e){var t,n=k;k=getGlobalMatrix(h.parentNode,!0),e&&q.isPressed&&!k.equals(n||new ge)&&(t=n.inverse().apply({x:w,y:b}),k.apply(t,t),w=t.x,b=t.y),k.equals(r)&&(k=null)}function Ih(){var e,t,n,o=1-q.edgeResistance,r=ce?Ga(de):0,i=ce?Fa(de):0;W&&(se.x=Rg(G,"px")+"px",se.y=Rg(K,"px")+"px",se.renderTransform()),Hh(!1),Ge.x=q.pointerX-r,Ge.y=q.pointerY-i,k&&k.apply(Ge,Ge),w=Ge.x,b=Ge.y,Y&&(he(q.pointerX,q.pointerY),zh(!0)),d=getGlobalMatrix(h),f?(Dh(),D=f.top(),T=f.left()):(pe()?(Ah(!0,!0),Dh()):q.applyBounds(),Q?(e=h.ownerSVGElement?[se.xOrigin-h.getBBox().x,se.yOrigin-h.getBBox().y]:(Na(h)[Ce]||"0 0").split(" "),X=q.rotationOrigin=getGlobalMatrix(h).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),Ah(!0,!0),t=q.pointerX-X.x-r,n=X.y-q.pointerY+i,T=q.x,D=q.y=Math.atan2(n,t)*ke):(D=Rg(K,"px"),T=Rg(G,"px"))),M&&o&&(E<T?T=E+(T-E)/o:T<L&&(T=L-(L-T)/o),Q||(S<D?D=S+(D-S)/o:D<P&&(D=P-(P-D)/o))),q.startX=T=da(T),q.startY=D=da(D)}function Kh(){!we.parentNode||pe()||q.isDragging||we.parentNode.removeChild(we)}function Lh(e,t){var n;if(!u||q.isPressed||!e||!("mousedown"!==e.type&&"pointerdown"!==e.type||t)&&Be()-le<30&&Me[q.pointerEvent.type])F&&e&&u&&Ba(e);else{if(R=pe(),H=!1,q.pointerEvent=e,Me[e.type]?(v=~e.type.indexOf("touch")?e.currentTarget||e.target:de,za(v,"touchend",fe),za(v,"touchmove",ue),za(v,"touchcancel",fe),za(de,"touchstart",Ea)):(v=null,za(de,"mousemove",ue)),O=null,Pe&&v||(za(de,"mouseup",fe),e&&e.target&&za(e.target,"mouseup",fe)),y=ae.call(q,e.target)&&!1===p.dragClickables&&!t)return za(e.target,"change",fe),Qa(q,"pressInit","onPressInit"),Qa(q,"press","onPress"),Wa(J,!0),void(F=!1);if(B=!(!v||V==U||!1===q.vars.allowNativeTouchScrolling||q.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(V?"y":"x"),(F=!B&&!q.allowEventDefault)&&(Ba(e),za(me,"touchforcechange",Ba)),e.changedTouches?(e=x=e.changedTouches[0],m=e.identifier):e.pointerId?m=e.pointerId:x=m=null,Ae++,function _addToRenderQueue(e){Oe.push(e),1===Oe.length&&xe.ticker.add(ua)}(zh),b=q.pointerY=e.pageY,w=q.pointerX=e.pageX,Qa(q,"pressInit","onPressInit"),(B||q.autoScroll)&&La(h.parentNode),!h.parentNode||!q.autoScroll||f||Q||!h.parentNode._gsMaxScrollX||we.parentNode||h.getBBox||(we.style.width=h.parentNode.scrollWidth+"px",h.parentNode.appendChild(we)),Ih(),q.tween&&q.tween.kill(),q.isThrowing=!1,xe.killTweensOf(f||h,o,!0),f&&xe.killTweensOf(h,{scrollTo:1},!0),q.tween=q.lockedAxis=null,!p.zIndexBoost&&(Q||f||!1===p.zIndexBoost)||(h.style.zIndex=Draggable.zIndex++),q.isPressed=!0,g=!(!p.onDrag&&!q._listeners.drag),s=!(!p.onMove&&!q._listeners.move),!1!==p.cursor||p.activeCursor)for(n=J.length;-1<--n;)xe.set(J[n],{cursor:p.activeCursor||p.cursor||("grab"===Se?"grabbing":Se)});Qa(q,"press","onPress")}}function Ph(e){if(e&&q.isDragging&&!f){var t=e.target||h.parentNode,n=t.scrollLeft-t._gsScrollX,o=t.scrollTop-t._gsScrollY;(n||o)&&(k?(w-=n*k.a+o*k.c,b-=o*k.d+n*k.b):(w-=n,b-=o),t._gsScrollX+=n,t._gsScrollY+=o,he(q.pointerX,q.pointerY))}}function Qh(e){var t=Be(),n=t-le<100,o=t-ee<50,r=n&&I===le,i=q.pointerEvent&&q.pointerEvent.defaultPrevented,a=n&&c===le,l=e.isTrusted||null==e.isTrusted&&n&&r;if((r||o&&!1!==q.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),n&&(!q.pointerEvent||!q.pointerEvent.defaultPrevented)&&(!r||l&&!a))return l&&r&&(c=le),void(I=le);(q.isPressed||o||n)&&(l&&e.detail&&n&&!i||Ba(e)),n||o||H||(e&&e.target&&(q.pointerEvent=e),Qa(q,"click","onClick"))}function Rh(e){return k?{x:e.x*k.a+e.y*k.c+k.e,y:e.x*k.b+e.y*k.d+k.f}:{x:e.x,y:e.y}}var u,f,w,b,T,D,M,g,s,E,L,S,P,x,m,X,Y,t,A,C,N,y,v,k,R,B,O,z,I,c,F,d,H,n=(p.type||"x,y").toLowerCase(),W=~n.indexOf("x")||~n.indexOf("y"),Q=-1!==n.indexOf("rotation"),G=Q?"rotation":W?"x":"left",K=W?"y":"top",V=!(!~n.indexOf("x")&&!~n.indexOf("left")&&"scroll"!==n),U=!(!~n.indexOf("y")&&!~n.indexOf("top")&&"scroll"!==n),j=p.minimumMovement||2,q=_assertThisInitialized(e),J=Te(p.trigger||p.handle||h),o={},ee=0,te=!1,ne=p.autoScrollMarginTop||40,oe=p.autoScrollMarginRight||40,re=p.autoScrollMarginBottom||40,ie=p.autoScrollMarginLeft||40,ae=p.clickableTest||Va,le=0,se=h._gsap||xe.core.getCache(h),ce=function _isFixed(e){return"fixed"===Na(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)}(h),de=h.ownerDocument||ye,pe=function isTweening(){return q.tween&&q.tween.isActive()},ue=function onMove(e){var t,n,o,r,i,a,l=e;if(u&&!Ee&&q.isPressed&&e){if(t=(q.pointerEvent=e).changedTouches){if((e=t[0])!==x&&e.identifier!==m){for(r=t.length;-1<--r&&(e=t[r]).identifier!==m&&e.target!==h;);if(r<0)return}}else if(e.pointerId&&m&&e.pointerId!==m)return;v&&B&&!O&&(Ge.x=e.pageX-(ce?Ga(de):0),Ge.y=e.pageY-(ce?Fa(de):0),k&&k.apply(Ge,Ge),n=Ge.x,o=Ge.y,((i=Math.abs(n-w))!==(a=Math.abs(o-b))&&(j<i||j<a)||_e&&B===O)&&(O=a<i&&V?"x":"y",B&&O!==B&&za(me,"touchforcechange",Ba),!1!==q.vars.lockAxisOnTouchScroll&&V&&U&&(q.lockedAxis="x"===O?"y":"x",Z(q.vars.onLockAxis)&&q.vars.onLockAxis.call(q,l)),_e&&B===O))?fe(l):(F=q.allowEventDefault||B&&(!O||B===O)||!1===l.cancelable?F&&!1:(Ba(l),!0),q.autoScroll&&(te=!0),he(e.pageX,e.pageY,s))}else F&&e&&u&&Ba(e)},he=function setPointerPosition(e,t,n){var o,r,i,a,l,s,c=1-q.dragResistance,d=1-q.edgeResistance,p=q.pointerX,u=q.pointerY,h=D,f=q.x,g=q.y,x=q.endX,m=q.endY,y=q.endRotation,v=Y;q.pointerX=e,q.pointerY=t,ce&&(e-=Ga(de),t-=Fa(de)),Q?(a=Math.atan2(X.y-t,e-X.x)*ke,180<(l=q.y-a)?(D-=360,q.y=a):l<-180&&(D+=360,q.y=a),i=q.x!==T||Math.abs(D-a)>j?(q.y=a,T+(D-a)*c):T):(k&&(s=e*k.a+t*k.c+k.e,t=e*k.b+t*k.d+k.f,e=s),(r=t-b)<j&&-j<r&&(r=0),(o=e-w)<j&&-j<o&&(o=0),(q.lockAxis||q.lockedAxis)&&(o||r)&&((s=q.lockedAxis)||(q.lockedAxis=s=V&&Math.abs(o)>Math.abs(r)?"y":U?"x":null,s&&Z(q.vars.onLockAxis)&&q.vars.onLockAxis.call(q,q.pointerEvent)),"y"===s?r=0:"x"===s&&(o=0)),i=da(T+o*c),a=da(D+r*c)),(A||C||N)&&(q.x!==i||q.y!==a&&!Q)&&(N&&(He.x=i,He.y=a,s=N(He),i=da(s.x),a=da(s.y)),A&&(i=da(A(i))),C&&(a=da(C(a)))),M&&(E<i?i=E+Math.round((i-E)*d):i<L&&(i=L+Math.round((i-L)*d)),Q||(S<a?a=Math.round(S+(a-S)*d):a<P&&(a=Math.round(P+(a-P)*d)))),q.x===i&&(q.y===a||Q)||(Q?(q.endRotation=q.x=q.endX=i,Y=!0):(U&&(q.y=q.endY=a,Y=!0),V&&(q.x=q.endX=i,Y=!0)),n&&!1===Qa(q,"move","onMove")?(q.pointerX=p,q.pointerY=u,D=h,q.x=f,q.y=g,q.endX=x,q.endY=m,q.endRotation=y,Y=v):!q.isDragging&&q.isPressed&&(q.isDragging=H=!0,Qa(q,"dragstart","onDragStart")))},fe=function onRelease(e,t){if(u&&q.isPressed&&(!e||null==m||t||!(e.pointerId&&e.pointerId!==m&&e.target!==h||e.changedTouches&&!function _hasTouchID(e,t){for(var n=e.length;n--;)if(e[n].identifier===t)return!0}(e.changedTouches,m)))){q.isPressed=!1;var n,o,r,i,a,l=e,s=q.isDragging,c=q.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),d=xe.delayedCall(.001,Kh);if(v?(Aa(v,"touchend",onRelease),Aa(v,"touchmove",ue),Aa(v,"touchcancel",onRelease),Aa(de,"touchstart",Ea)):Aa(de,"mousemove",ue),Aa(me,"touchforcechange",Ba),Pe&&v||(Aa(de,"mouseup",onRelease),e&&e.target&&Aa(e.target,"mouseup",onRelease)),Y=!1,s&&(ee=Fe=Be(),q.isDragging=!1),xa(zh),y&&!c)return e&&(Aa(e.target,"change",onRelease),q.pointerEvent=l),Wa(J,!1),Qa(q,"release","onRelease"),Qa(q,"click","onClick"),void(y=!1);for(o=J.length;-1<--o;)Ma(J[o],"cursor",p.cursor||(!1!==p.cursor?Se:null));if(Ae--,e){if((n=e.changedTouches)&&(e=n[0])!==x&&e.identifier!==m){for(o=n.length;-1<--o&&(e=n[o]).identifier!==m&&e.target!==h;);if(o<0&&!t)return}q.pointerEvent=l,q.pointerX=e.pageX,q.pointerY=e.pageY}return c&&l?(Ba(l),F=!0,Qa(q,"release","onRelease")):l&&!s?(F=!1,R&&(p.snap||p.bounds)&&Gh(p.inertia||p.throwProps),Qa(q,"release","onRelease"),_e&&"touchmove"===l.type||-1!==l.type.indexOf("cancel")||(Qa(q,"click","onClick"),Be()-le<300&&Qa(q,"doubleclick","onDoubleClick"),i=l.target||h,le=Be(),a=function syntheticClick(){le===I||!q.enabled()||q.isPressed||l.defaultPrevented||(i.click?i.click():de.createEvent&&((r=de.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,me,1,q.pointerEvent.screenX,q.pointerEvent.screenY,q.pointerX,q.pointerY,!1,!1,!1,!1,0,null),i.dispatchEvent(r)))},_e||l.defaultPrevented||xe.delayedCall(.05,a))):(Gh(p.inertia||p.throwProps),q.allowEventDefault||!l||!1===p.dragClickables&&ae.call(q,l.target)||!s||B&&(!O||B!==O)||!1===l.cancelable?F=!1:(F=!0,Ba(l)),Qa(q,"release","onRelease")),pe()&&d.duration(q.tween.duration()),s&&Qa(q,"dragend","onDragEnd"),!0}F&&e&&u&&Ba(e)};return(t=Draggable.get(h))&&t.kill(),e.startDrag=function(e,t){var n,o,r,i;Lh(e||q.pointerEvent,!0),t&&!q.hitTest(e||q.pointerEvent)&&(n=Pa(e||q.pointerEvent),o=Pa(h),r=Rh({x:n.left+n.width/2,y:n.top+n.height/2}),i=Rh({x:o.left+o.width/2,y:o.top+o.height/2}),w-=r.x-i.x,b-=r.y-i.y),q.isDragging||(q.isDragging=H=!0,Qa(q,"dragstart","onDragStart"))},e.drag=ue,e.endDrag=function(e){return fe(e||q.pointerEvent,!0)},e.timeSinceDrag=function(){return q.isDragging?0:(Be()-ee)/1e3},e.timeSinceClick=function(){return(Be()-le)/1e3},e.hitTest=function(e,t){return Draggable.hitTest(q.target,e,t)},e.getDirection=function(e,t){var n,o,r,i,a,l,s="velocity"===e&&Le?e:$(e)&&!Q?"element":"start";return"element"===s&&(a=Pa(q.target),l=Pa(e)),n="start"===s?q.x-T:"velocity"===s?Le.getVelocity(h,G):a.left+a.width/2-(l.left+l.width/2),Q?n<0?"counter-clockwise":"clockwise":(t=t||2,o="start"===s?q.y-D:"velocity"===s?Le.getVelocity(h,K):a.top+a.height/2-(l.top+l.height/2),i=(r=Math.abs(n/o))<1/t?"":n<0?"left":"right",r<t&&(""!==i&&(i+="-"),i+=o<0?"up":"down"),i)},e.applyBounds=function(e,t){var n,o,r,i,a,l;if(e&&p.bounds!==e)return p.bounds=e,q.update(!0,t);if(Ah(!0),Dh(),M&&!pe()){if(n=q.x,o=q.y,E<n?n=E:n<L&&(n=L),S<o?o=S:o<P&&(o=P),(q.x!==n||q.y!==o)&&(r=!0,q.x=q.endX=n,Q?q.endRotation=n:q.y=q.endY=o,zh(Y=!0),q.autoScroll&&!q.isDragging))for(La(h.parentNode),i=h,We.scrollTop=null!=me.pageYOffset?me.pageYOffset:null!=de.documentElement.scrollTop?de.documentElement.scrollTop:de.body.scrollTop,We.scrollLeft=null!=me.pageXOffset?me.pageXOffset:null!=de.documentElement.scrollLeft?de.documentElement.scrollLeft:de.body.scrollLeft;i&&!l;)a=(l=Qe(i.parentNode))?We:i.parentNode,U&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),V&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),i=a;q.isThrowing&&(r||q.endX>E||q.endX<L||q.endY>S||q.endY<P)&&Gh(p.inertia||p.throwProps,r)}return q},e.update=function(e,t,n){if(t&&q.isPressed){var o=getGlobalMatrix(h),r=d.apply({x:q.x-T,y:q.y-D}),i=getGlobalMatrix(h.parentNode,!0);i.apply({x:o.e-r.x,y:o.f-r.y},r),q.x-=r.x-i.e,q.y-=r.y-i.f,zh(!0),Ih()}var a=q.x,l=q.y;return Hh(!t),e?q.applyBounds():(Y&&n&&zh(!0),Ah(!0)),t&&(he(q.pointerX,q.pointerY),Y&&zh(!0)),q.isPressed&&!t&&(V&&.01<Math.abs(a-q.x)||U&&.01<Math.abs(l-q.y)&&!Q)&&Ih(),q.autoScroll&&(La(h.parentNode,q.isDragging),te=q.isDragging,zh(!0),Ia(h,Ph),Ha(h,Ph)),q},e.enable=function(e){var t,n,o,r={lazy:!0};if(!1!==p.cursor&&(r.cursor=p.cursor||Se),xe.utils.checkPrefix("touchCallout")&&(r.touchCallout="none"),"soft"!==e){for(ta(J,V==U?"none":p.allowNativeTouchScrolling&&h.scrollHeight===h.clientHeight==(h.scrollWidth===h.clientHeight)||p.allowEventDefault?"manipulation":V?"pan-y":"pan-x"),n=J.length;-1<--n;)o=J[n],Pe||za(o,"mousedown",Lh),za(o,"touchstart",Lh),za(o,"click",Qh,!0),xe.set(o,r),o.getBBox&&o.ownerSVGElement&&V!=U&&xe.set(o.ownerSVGElement,{touchAction:p.allowNativeTouchScrolling||p.allowEventDefault?"manipulation":V?"pan-y":"pan-x"}),p.allowContextMenu||za(o,"contextmenu",yh);Wa(J,!1)}return Ha(h,Ph),u=!0,Le&&"soft"!==e&&Le.track(f||h,W?"x,y":Q?"rotation":"top,left"),h._gsDragID=t="d"+Ie++,ze[t]=q,f&&(f.enable(),f.element._gsDragID=t),(p.bounds||Q)&&Ih(),p.bounds&&q.applyBounds(),q},e.disable=function(e){for(var t,n=q.isDragging,o=J.length;-1<--o;)Ma(J[o],"cursor",null);if("soft"!==e){for(ta(J,null),o=J.length;-1<--o;)t=J[o],Ma(t,"touchCallout",null),Aa(t,"mousedown",Lh),Aa(t,"touchstart",Lh),Aa(t,"click",Qh,!0),Aa(t,"contextmenu",yh);Wa(J,!0),v&&(Aa(v,"touchcancel",fe),Aa(v,"touchend",fe),Aa(v,"touchmove",ue)),Aa(de,"mouseup",fe),Aa(de,"mousemove",ue)}return Ia(h,Ph),u=!1,Le&&"soft"!==e&&(Le.untrack(f||h,W?"x,y":Q?"rotation":"top,left"),q.tween&&q.tween.kill()),f&&f.disable(),xa(zh),q.isDragging=q.isPressed=y=!1,n&&Qa(q,"dragend","onDragEnd"),q},e.enabled=function(e,t){return arguments.length?e?q.enable(t):q.disable(t):u},e.kill=function(){return q.isThrowing=!1,q.tween&&q.tween.kill(),q.disable(),xe.set(J,{clearProps:"userSelect"}),delete ze[h._gsDragID],q},e.revert=function(){this.kill(),this.styles&&this.styles.revert()},~n.indexOf("scroll")&&(f=e.scrollProxy=new $a(h,function _extend(e,t){for(var n in t)n in e||(e[n]=t[n]);return e}({onKill:function onKill(){q.isPressed&&fe(null)}},p)),h.style.overflowY=U&&!De?"auto":"hidden",h.style.overflowX=V&&!De?"auto":"hidden",h=f.content),Q?o.rotation=1:(V&&(o[G]=1),U&&(o[K]=1)),se.force3D=!("force3D"in p)||p.force3D,Xe(_assertThisInitialized(e)),e.enable(),e}!function _setDefaults(e,t){for(var n in t)n in e||(e[n]=t[n])}(I.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),I.zIndex=1e3,I.version="3.12.4",Y()&&xe.registerPlugin(I),e.Draggable=I,e.default=I;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){if(e.parentNode&&(h||T(e))){var n=P(e),o=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=n?t?"rect":"g":"div",i=2!==t?0:100,a=3===t?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",s=h.createElementNS?h.createElementNS(o.replace(/^https/,"http"),r):h.createElement(r);return t&&(n?(g=g||w(e),s.setAttribute("width",.01),s.setAttribute("height",.01),s.setAttribute("transform","translate("+i+","+a+")"),g.appendChild(s)):(f||((f=w(e)).style.cssText=l),s.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+i+"px",f.appendChild(s))),s}throw"Need document and parent."}function A(e,t,n,o,r,i,a){return e.a=t,e.b=n,e.c=o,e.d=r,e.e=i,e.f=a,e}var h,u,i,a,f,g,x,m,y,t,v="transform",b=v+"Origin",T=function _setDoc(e){var t=e.ownerDocument||e;!(v in e.style)&&"msTransform"in e.style&&(b=(v="msTransform")+"Origin");for(;t.parentNode&&(t=t.parentNode););if(u=window,x=new ge,t){i=(h=t).documentElement,a=t.body,(m=h.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),o=t.createElement("div"),r=t&&(t.body||t.firstElementChild);r&&r.appendChild&&(r.appendChild(n),n.appendChild(o),n.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),y=o.offsetParent!==n,r.removeChild(n))}return t},D=function _forceNonZeroScale(e){for(var t,n;e&&e!==a;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},M=[],E=[],L=function _getDocScrollTop(){return u.pageYOffset||h.scrollTop||i.scrollTop||a.scrollTop||0},S=function _getDocScrollLeft(){return u.pageXOffset||h.scrollLeft||i.scrollLeft||a.scrollLeft||0},P=function _svgOwner(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},C=function _isFixed(e){return"fixed"===u.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)},N=function _placeSiblings(e,t){var n,o,r,i,a,l,s=P(e),c=e===s,d=s?M:E,p=e.parentNode;if(e===u)return e;if(d.length||d.push(w(e,1),w(e,2),w(e,3)),n=s?g:f,s)c?(i=-(r=function _getCTM(e){var t,n=e.getCTM();return n||(t=e.style[v],e.style[v]="none",e.appendChild(m),n=m.getCTM(),e.removeChild(m),t?e.style[v]=t:e.style.removeProperty(v.replace(/([A-Z])/g,"-$1").toLowerCase())),n||x.clone()}(e)).e/r.a,a=-r.f/r.d,o=x):e.getBBox?(r=e.getBBox(),i=(o=(o=e.transform?e.transform.baseVal:{}).numberOfItems?1<o.numberOfItems?function _consolidate(e){for(var t=new ge,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t}(o):o.getItem(0).matrix:x).a*r.x+o.c*r.y,a=o.b*r.x+o.d*r.y):(o=new ge,i=a=0),t&&"g"===e.tagName.toLowerCase()&&(i=a=0),(c?s:p).appendChild(n),n.setAttribute("transform","matrix("+o.a+","+o.b+","+o.c+","+o.d+","+(o.e+i)+","+(o.f+a)+")");else{if(i=a=0,y)for(o=e.offsetParent,r=e;(r=r&&r.parentNode)&&r!==o&&r.parentNode;)4<(u.getComputedStyle(r)[v]+"").length&&(i=r.offsetLeft,a=r.offsetTop,r=0);if("absolute"!==(l=u.getComputedStyle(e)).position&&"fixed"!==l.position)for(o=e.offsetParent;p&&p!==o;)i+=p.scrollLeft||0,a+=p.scrollTop||0,p=p.parentNode;(r=n.style).top=e.offsetTop-a+"px",r.left=e.offsetLeft-i+"px",r[v]=l[v],r[b]=l[b],r.position="fixed"===l.position?"fixed":"absolute",e.parentNode.appendChild(n)}return n},ge=((t=Matrix2D.prototype).inverse=function inverse(){var e=this.a,t=this.b,n=this.c,o=this.d,r=this.e,i=this.f,a=e*o-t*n||1e-10;return A(this,o/a,-t/a,-n/a,e/a,(n*i-o*r)/a,-(e*i-t*r)/a)},t.multiply=function multiply(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f,l=e.a,s=e.c,c=e.b,d=e.d,p=e.e,u=e.f;return A(this,l*t+c*o,l*n+c*r,s*t+d*o,s*n+d*r,i+p*t+u*o,a+p*n+u*r)},t.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function equals(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f;return t===e.a&&n===e.b&&o===e.c&&r===e.d&&i===e.e&&a===e.f},t.apply=function apply(e,t){void 0===t&&(t={});var n=e.x,o=e.y,r=this.a,i=this.b,a=this.c,l=this.d,s=this.e,c=this.f;return t.x=n*r+o*a+s||0,t.y=n*i+o*l+c||0,t},Matrix2D);function Matrix2D(e,t,n,o,r,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=0),A(this,e,t,n,o,r,i)}function getGlobalMatrix(e,t,n,o){if(!e||!e.parentNode||(h||T(e)).documentElement===e)return new ge;var r=D(e),i=P(e)?M:E,a=N(e,n),l=i[0].getBoundingClientRect(),s=i[1].getBoundingClientRect(),c=i[2].getBoundingClientRect(),d=a.parentNode,p=!o&&C(e),u=new ge((s.left-l.left)/100,(s.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(p?0:S()),l.top+(p?0:L()));if(d.removeChild(a),r)for(l=r.length;l--;)(s=r[l]).scaleX=s.scaleY=0,s.renderTransform(1,s);return t?u.inverse():u}function X(){return"undefined"!=typeof window}function Y(){return xe||X()&&(xe=window.gsap)&&xe.registerPlugin&&xe}function Z(e){return"function"==typeof e}function $(e){return"object"==typeof e}function _(e){return void 0===e}function aa(){return!1}function da(e){return Math.round(1e4*e)/1e4}function fa(e,t){var n=ye.createElementNS?ye.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):ye.createElement(e);return n.style?n:ye.createElement(e)}function ra(e,t){var n,o={};for(n in e)o[n]=t?e[n]*t:e[n];return o}function ta(e,t){for(var n,o=e.length;o--;)t?e[o].style.touchAction=t:e[o].style.removeProperty("touch-action"),(n=e[o].children)&&n.length&&ta(n,t)}function ua(){return Oe.forEach(function(e){return e()})}function wa(){return!Oe.length&&xe.ticker.remove(ua)}function xa(e){for(var t=Oe.length;t--;)Oe[t]===e&&Oe.splice(t,1);xe.to(wa,{overwrite:!0,delay:15,duration:0,onComplete:wa,data:"_draggable"})}function za(e,t,n,o){if(e.addEventListener){var r=Me[t];o=o||(d?{passive:!1}:null),e.addEventListener(r||t,n,o),r&&t!==r&&e.addEventListener(t,n,o)}}function Aa(e,t,n,o){if(e.removeEventListener){var r=Me[t];e.removeEventListener(r||t,n,o),r&&t!==r&&e.removeEventListener(t,n,o)}}function Ba(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()}function Da(e){Ee=e.touches&&Ae<e.touches.length,Aa(e.target,"touchend",Da)}function Ea(e){Ee=e.touches&&Ae<e.touches.length,za(e.target,"touchend",Da)}function Fa(e){return me.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0}function Ga(e){return me.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0}function Ha(e,t){za(e,"scroll",t),Qe(e.parentNode)||Ha(e.parentNode,t)}function Ia(e,t){Aa(e,"scroll",t),Qe(e.parentNode)||Ia(e.parentNode,t)}function Ka(e,t){var n="x"===t?"Width":"Height",o="scroll"+n,r="client"+n;return Math.max(0,Qe(e)?Math.max(ve[o],l[o])-(me["inner"+n]||ve[r]||l[r]):e[o]-e[r])}function La(e,t){var n=Ka(e,"x"),o=Ka(e,"y");Qe(e)?e=We:La(e.parentNode,t),e._gsMaxScrollX=n,e._gsMaxScrollY=o,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)}function Ma(e,t,n){var o=e.style;o&&(_(o[t])&&(t=c(t,e)||t),null==n?o.removeProperty&&o.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):o[t]=n)}function Na(e){return me.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)}function Pa(e){if(e===me)return p.left=p.top=0,p.width=p.right=ve.clientWidth||e.innerWidth||l.clientWidth||0,p.height=p.bottom=(e.innerHeight||0)-20<ve.clientHeight?ve.clientHeight:e.innerHeight||l.clientHeight||0,p;var t=e.ownerDocument||ye,n=_(e.pageX)?e.nodeType||_(e.left)||_(e.top)?Te(e)[0].getBoundingClientRect():e:{left:e.pageX-Ga(t),top:e.pageY-Fa(t),right:e.pageX-Ga(t)+1,bottom:e.pageY-Fa(t)+1};return _(n.right)&&!_(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):_(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n}function Qa(e,t,n){var o,r=e.vars,i=r[n],a=e._listeners[t];return Z(i)&&(o=i.apply(r.callbackScope||e,r[n+"Params"]||[e.pointerEvent])),a&&!1===e.dispatchEvent(t)&&(o=!1),o}function Ra(e,t){var n,o,r,i=Te(e)[0];return i.nodeType||i===me?O(i,t):_(e.left)?{left:o=e.min||e.minX||e.minRotation||0,top:n=e.min||e.minY||0,width:(e.max||e.maxX||e.maxRotation||0)-o,height:(e.max||e.maxY||0)-n}:(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})}function Ua(r,i,e,t,a,n){var o,l,s,c={};if(i)if(1!==a&&i instanceof Array){if(c.end=o=[],s=i.length,$(i[0]))for(l=0;l<s;l++)o[l]=ra(i[l],a);else for(l=0;l<s;l++)o[l]=i[l]*a;e+=1.1,t-=1.1}else Z(i)?c.end=function(e){var t,n,o=i.call(r,e);if(1!==a)if($(o)){for(n in t={},o)t[n]=o[n]*a;o=t}else o*=a;return o}:c.end=i;return!e&&0!==e||(c.max=e),!t&&0!==t||(c.min=t),n&&(c.velocity=0),c}function Va(e){var t;return!(!e||!e.getAttribute||e===l)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!o.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||Va(e.parentNode))}function Wa(e,t){for(var n,o=e.length;o--;)(n=e[o]).ondragstart=n.onselectstart=t?null:aa,xe.set(n,{lazy:!0,userSelect:t?"text":"none"})}function $a(i,r){i=xe.utils.toArray(i)[0],r=r||{};var a,l,s,e,c,d,p=document.createElement("div"),u=p.style,t=i.firstChild,h=0,f=0,g=i.scrollTop,x=i.scrollLeft,m=i.scrollWidth,y=i.scrollHeight,v=0,w=0,b=0;k&&!1!==r.force3D?(c="translate3d(",d="px,0px)"):B&&(c="translate(",d="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(e,t){if(!arguments.length)return-(i.scrollLeft+f);var n=i.scrollLeft-x,o=f;if((2<n||n<-2)&&!t)return x=i.scrollLeft,xe.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-x),void(r.onKill&&r.onKill());(e=-e)<0?(f=e-.5|0,e=0):w<e?(f=e-w|0,e=w):f=0,(f||o)&&(this._skip||(u[B]=c+-f+"px,"+-h+d),0<=f+v&&(u.paddingRight=f+v+"px")),i.scrollLeft=0|e,x=i.scrollLeft},this.top=function(e,t){if(!arguments.length)return-(i.scrollTop+h);var n=i.scrollTop-g,o=h;if((2<n||n<-2)&&!t)return g=i.scrollTop,xe.killTweensOf(this,{top:1,scrollTop:1}),this.top(-g),void(r.onKill&&r.onKill());(e=-e)<0?(h=e-.5|0,e=0):b<e?(h=e-b|0,e=b):h=0,(h||o)&&(this._skip||(u[B]=c+-f+"px,"+-h+d)),i.scrollTop=0|e,g=i.scrollTop},this.maxScrollTop=function(){return b},this.maxScrollLeft=function(){return w},this.disable=function(){for(t=p.firstChild;t;)e=t.nextSibling,i.appendChild(t),t=e;i===p.parentNode&&i.removeChild(p)},this.enable=function(){if((t=i.firstChild)!==p){for(;t;)e=t.nextSibling,p.appendChild(t),t=e;i.appendChild(p),this.calibrate()}},this.calibrate=function(e){var t,n,o,r=i.clientWidth===a;g=i.scrollTop,x=i.scrollLeft,r&&i.clientHeight===l&&p.offsetHeight===s&&m===i.scrollWidth&&y===i.scrollHeight&&!e||((h||f)&&(n=this.left(),o=this.top(),this.left(-i.scrollLeft),this.top(-i.scrollTop)),t=Na(i),r&&!e||(u.display="block",u.width="auto",u.paddingRight="0px",(v=Math.max(0,i.scrollWidth-i.clientWidth))&&(v+=parseFloat(t.paddingLeft)+(R?parseFloat(t.paddingRight):0))),u.display="inline-block",u.position="relative",u.overflow="visible",u.verticalAlign="top",u.boxSizing="content-box",u.width="100%",u.paddingRight=v+"px",R&&(u.paddingBottom=t.paddingBottom),a=i.clientWidth,l=i.clientHeight,m=i.scrollWidth,y=i.scrollHeight,w=i.scrollWidth-a,b=i.scrollHeight-l,s=p.offsetHeight,u.display="block",(n||o)&&(this.left(n),this.top(o)))},this.content=p,this.element=i,this._skip=!1,this.enable()}function _a(e){if(X()&&document.body){var t=window&&window.navigator;me=window,ye=document,ve=ye.documentElement,l=ye.body,s=fa("div"),Pe=!!window.PointerEvent,(we=fa("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Se="grab"===we.style.cursor?"grab":"move",_e=t&&-1!==t.userAgent.toLowerCase().indexOf("android"),De="ontouchstart"in ve&&"orientation"in me||t&&(0<t.MaxTouchPoints||0<t.msMaxTouchPoints),o=fa("div"),r=fa("div"),i=r.style,a=l,i.display="inline-block",i.position="relative",o.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",o.appendChild(r),a.appendChild(o),n=r.offsetHeight+18>o.scrollHeight,a.removeChild(o),R=n,Me=function(e){for(var t=e.split(","),n=(("onpointerdown"in s?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in s?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(",")),o={},r=4;-1<--r;)o[t[r]]=n[r],o[n[r]]=t[r];try{ve.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){d=1}}))}catch(e){}return o}("touchstart,touchmove,touchend,touchcancel"),za(ye,"touchcancel",aa),za(me,"touchmove",aa),l&&l.addEventListener("touchstart",aa),za(ye,"contextmenu",function(){for(var e in ze)ze[e].isPressed&&ze[e].endDrag()}),xe=be=Y()}var n,o,r,i,a;xe?(Le=xe.plugins.inertia,Xe=xe.core.context||function(){},c=xe.utils.checkPrefix,B=c(B),Ce=c(Ce),Te=xe.utils.toArray,Ye=xe.core.getStyleSaver,k=!!c("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")}var xe,me,ye,ve,l,s,we,be,c,Te,d,De,Me,Ee,_e,Le,Se,Pe,Xe,Ye,k,R,n,Ae=0,B="transform",Ce="transformOrigin",Ne=Array.isArray,ke=180/Math.PI,Re=1e20,r=new ge,Be=Date.now||function(){return(new Date).getTime()},Oe=[],ze={},Ie=0,o=/^(?:a|input|textarea|button|select)$/i,Fe=0,He={},We={},Qe=function _isRoot(e){return!(e&&e!==ve&&9!==e.nodeType&&e!==ye.body&&e!==me&&e.nodeType&&e.parentNode)},p={},Ge={},O=function _getElementBounds(e,t){t=Te(t)[0];var n,o,r,i,a,l,s,c,d,p,u,h,f,g=e.getBBox&&e.ownerSVGElement,x=e.ownerDocument||ye;if(e===me)r=Fa(x),o=(n=Ga(x))+(x.documentElement.clientWidth||e.innerWidth||x.body.clientWidth||0),i=r+((e.innerHeight||0)-20<x.documentElement.clientHeight?x.documentElement.clientHeight:e.innerHeight||x.body.clientHeight||0);else{if(t===me||_(t))return e.getBoundingClientRect();n=r=0,g?(u=(p=e.getBBox()).width,h=p.height):(e.viewBox&&(p=e.viewBox.baseVal)&&(n=p.x||0,r=p.y||0,u=p.width,h=p.height),u||(p="border-box"===(f=Na(e)).boxSizing,u=(parseFloat(f.width)||e.clientWidth||0)+(p?0:parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)),h=(parseFloat(f.height)||e.clientHeight||0)+(p?0:parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)))),o=u,i=h}return e===t?{left:n,top:r,width:o-n,height:i-r}:(l=(a=getGlobalMatrix(t,!0).multiply(getGlobalMatrix(e))).apply({x:n,y:r}),s=a.apply({x:o,y:r}),c=a.apply({x:o,y:i}),d=a.apply({x:n,y:i}),{left:n=Math.min(l.x,s.x,c.x,d.x),top:r=Math.min(l.y,s.y,c.y,d.y),width:Math.max(l.x,s.x,c.x,d.x)-n,height:Math.max(l.y,s.y,c.y,d.y)-r})},z=((n=EventDispatcher.prototype).addEventListener=function addEventListener(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);~n.indexOf(t)||n.push(t)},n.removeEventListener=function removeEventListener(e,t){var n=this._listeners[e],o=n&&n.indexOf(t);0<=o&&n.splice(o,1)},n.dispatchEvent=function dispatchEvent(t){var n,o=this;return(this._listeners[t]||[]).forEach(function(e){return!1===e.call(o,{type:t,target:o.target})&&(n=!1)}),n},EventDispatcher);function EventDispatcher(e){this._listeners={},this.target=e||this}var Ke,I=(function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Draggable,Ke=z),Draggable.register=function register(e){xe=e,_a()},Draggable.create=function create(e,t){return be||_a(!0),Te(e).map(function(e){return new Draggable(e,t)})},Draggable.get=function get(e){return ze[(Te(e)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(Be()-Fe)/1e3},Draggable.hitTest=function hitTest(e,t,n){if(e===t)return!1;var o,r,i,a=Pa(e),l=Pa(t),s=a.top,c=a.left,d=a.right,p=a.bottom,u=a.width,h=a.height,f=l.left>d||l.right<c||l.top>p||l.bottom<s;return f||!n?!f:(i=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(o={left:Math.max(c,l.left),top:Math.max(s,l.top)}).width=Math.min(d,l.right)-o.left,o.height=Math.min(p,l.bottom)-o.top,!(o.width<0||o.height<0)&&(i?u*h*(n*=.01)<=(r=o.width*o.height)||r>=l.width*l.height*n:o.width>n&&o.height>n))},Draggable);function Draggable(h,p){var e;e=Ke.call(this)||this,be||_a(1),h=Te(h)[0],e.styles=Ye&&Ye(h,"transform,left,top"),Le=Le||xe.plugins.inertia,e.vars=p=ra(p||{}),e.target=h,e.x=e.y=e.rotation=0,e.dragResistance=parseFloat(p.dragResistance)||0,e.edgeResistance=isNaN(p.edgeResistance)?1:parseFloat(p.edgeResistance)||0,e.lockAxis=p.lockAxis,e.autoScroll=p.autoScroll||0,e.lockedAxis=null,e.allowEventDefault=!!p.allowEventDefault,xe.getProperty(h,"x");function Rg(e,t){return parseFloat(se.get(h,e,t))}function yh(e){return Ba(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1}function zh(e){if(q.autoScroll&&q.isDragging&&(te||Y)){var t,n,o,r,i,a,l,s,c=h,d=15*q.autoScroll;for(te=!1,We.scrollTop=null!=me.pageYOffset?me.pageYOffset:null!=de.documentElement.scrollTop?de.documentElement.scrollTop:de.body.scrollTop,We.scrollLeft=null!=me.pageXOffset?me.pageXOffset:null!=de.documentElement.scrollLeft?de.documentElement.scrollLeft:de.body.scrollLeft,r=q.pointerX-We.scrollLeft,i=q.pointerY-We.scrollTop;c&&!n;)t=(n=Qe(c.parentNode))?We:c.parentNode,o=n?{bottom:Math.max(ve.clientHeight,me.innerHeight||0),right:Math.max(ve.clientWidth,me.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),a=l=0,U&&((s=t._gsMaxScrollY-t.scrollTop)<0?l=s:i>o.bottom-re&&s?(te=!0,l=Math.min(s,d*(1-Math.max(0,o.bottom-i)/re)|0)):i<o.top+ne&&t.scrollTop&&(te=!0,l=-Math.min(t.scrollTop,d*(1-Math.max(0,i-o.top)/ne)|0)),l&&(t.scrollTop+=l)),V&&((s=t._gsMaxScrollX-t.scrollLeft)<0?a=s:r>o.right-oe&&s?(te=!0,a=Math.min(s,d*(1-Math.max(0,o.right-r)/oe)|0)):r<o.left+ie&&t.scrollLeft&&(te=!0,a=-Math.min(t.scrollLeft,d*(1-Math.max(0,r-o.left)/ie)|0)),a&&(t.scrollLeft+=a)),n&&(a||l)&&(me.scrollTo(t.scrollLeft,t.scrollTop),he(q.pointerX+a,q.pointerY+l)),c=t}if(Y){var p=q.x,u=q.y;Q?(q.deltaX=p-parseFloat(se.rotation),q.rotation=p,se.rotation=p+"deg",se.renderTransform(1,se)):f?(U&&(q.deltaY=u-f.top(),f.top(u)),V&&(q.deltaX=p-f.left(),f.left(p))):W?(U&&(q.deltaY=u-parseFloat(se.y),se.y=u+"px"),V&&(q.deltaX=p-parseFloat(se.x),se.x=p+"px"),se.renderTransform(1,se)):(U&&(q.deltaY=u-parseFloat(h.style.top||0),h.style.top=u+"px"),V&&(q.deltaX=p-parseFloat(h.style.left||0),h.style.left=p+"px")),!g||e||z||(!(z=!0)===Qa(q,"drag","onDrag")&&(V&&(q.x-=q.deltaX),U&&(q.y-=q.deltaY),zh(!0)),z=!1)}Y=!1}function Ah(e,t){var n,o,r=q.x,i=q.y;h._gsap||(se=xe.core.getCache(h)),se.uncache&&xe.getProperty(h,"x"),W?(q.x=parseFloat(se.x),q.y=parseFloat(se.y)):Q?q.x=q.rotation=parseFloat(se.rotation):f?(q.y=f.top(),q.x=f.left()):(q.y=parseFloat(h.style.top||(o=Na(h))&&o.top)||0,q.x=parseFloat(h.style.left||(o||{}).left)||0),(A||C||N)&&!t&&(q.isDragging||q.isThrowing)&&(N&&(He.x=q.x,He.y=q.y,(n=N(He)).x!==q.x&&(q.x=n.x,Y=!0),n.y!==q.y&&(q.y=n.y,Y=!0)),A&&(n=A(q.x))!==q.x&&(q.x=n,Q&&(q.rotation=n),Y=!0),C&&((n=C(q.y))!==q.y&&(q.y=n),Y=!0)),Y&&zh(!0),e||(q.deltaX=q.x-r,q.deltaY=q.y-i,Qa(q,"throwupdate","onThrowUpdate"))}function Bh(a,l,s,n){return null==l&&(l=-Re),null==s&&(s=Re),Z(a)?function(e){var t=q.isPressed?1-q.edgeResistance:1;return a.call(q,(s<e?s+(e-s)*t:e<l?l+(e-l)*t:e)*n)*n}:Ne(a)?function(e){for(var t,n,o=a.length,r=0,i=Re;-1<--o;)(n=(t=a[o])-e)<0&&(n=-n),n<i&&l<=t&&t<=s&&(r=o,i=n);return a[r]}:isNaN(a)?function(e){return e}:function(){return a*n}}function Dh(){var e,t,n,o;M=!1,f?(f.calibrate(),q.minX=L=-f.maxScrollLeft(),q.minY=P=-f.maxScrollTop(),q.maxX=E=q.maxY=S=0,M=!0):p.bounds&&(e=Ra(p.bounds,h.parentNode),Q?(q.minX=L=e.left,q.maxX=E=e.left+e.width,q.minY=P=q.maxY=S=0):_(p.bounds.maxX)&&_(p.bounds.maxY)?(t=Ra(h,h.parentNode),q.minX=L=Math.round(Rg(G,"px")+e.left-t.left),q.minY=P=Math.round(Rg(K,"px")+e.top-t.top),q.maxX=E=Math.round(L+(e.width-t.width)),q.maxY=S=Math.round(P+(e.height-t.height))):(e=p.bounds,q.minX=L=e.minX,q.minY=P=e.minY,q.maxX=E=e.maxX,q.maxY=S=e.maxY),E<L&&(q.minX=E,q.maxX=E=L,L=q.minX),S<P&&(q.minY=S,q.maxY=S=P,P=q.minY),Q&&(q.minRotation=L,q.maxRotation=E),M=!0),p.liveSnap&&(n=!0===p.liveSnap?p.snap||{}:p.liveSnap,o=Ne(n)||Z(n),Q?(A=Bh(o?n:n.rotation,L,E,1),C=null):n.points?N=function buildPointSnapFunc(s,l,c,d,p,u,h){return u=u&&u<Re?u*u:Re,Z(s)?function(e){var t,n,o,r=q.isPressed?1-q.edgeResistance:1,i=e.x,a=e.y;return e.x=i=c<i?c+(i-c)*r:i<l?l+(i-l)*r:i,e.y=a=p<a?p+(a-p)*r:a<d?d+(a-d)*r:a,(t=s.call(q,e))!==e&&(e.x=t.x,e.y=t.y),1!==h&&(e.x*=h,e.y*=h),u<Re&&(n=e.x-i,o=e.y-a,u<n*n+o*o&&(e.x=i,e.y=a)),e}:Ne(s)?function(e){for(var t,n,o,r,i=s.length,a=0,l=Re;-1<--i;)(r=(t=(o=s[i]).x-e.x)*t+(n=o.y-e.y)*n)<l&&(a=i,l=r);return l<=u?s[a]:e}:function(e){return e}}(o?n:n.points,L,E,P,S,n.radius,f?-1:1):(V&&(A=Bh(o?n:n.x||n.left||n.scrollLeft,L,E,f?-1:1)),U&&(C=Bh(o?n:n.y||n.top||n.scrollTop,P,S,f?-1:1))))}function Eh(){q.isThrowing=!1,Qa(q,"throwcomplete","onThrowComplete")}function Fh(){q.isThrowing=!1}function Gh(e,t){var n,o,r,i;e&&Le?(!0===e&&(n=p.snap||p.liveSnap||{},o=Ne(n)||Z(n),e={resistance:(p.throwResistance||p.resistance||1e3)/(Q?10:1)},Q?e.rotation=Ua(q,o?n:n.rotation,E,L,1,t):(V&&(e[G]=Ua(q,o?n:n.points||n.x||n.left,E,L,f?-1:1,t||"x"===q.lockedAxis)),U&&(e[K]=Ua(q,o?n:n.points||n.y||n.top,S,P,f?-1:1,t||"y"===q.lockedAxis)),(n.points||Ne(n)&&$(n[0]))&&(e.linkedProps=G+","+K,e.radius=n.radius))),q.isThrowing=!0,i=isNaN(p.overshootTolerance)?1===p.edgeResistance?0:1-q.edgeResistance+.2:p.overshootTolerance,e.duration||(e.duration={max:Math.max(p.minDuration||0,"maxDuration"in p?p.maxDuration:2),min:isNaN(p.minDuration)?0===i||$(e)&&1e3<e.resistance?0:.5:p.minDuration,overshoot:i}),q.tween=r=xe.to(f||h,{inertia:e,data:"_draggable",inherit:!1,onComplete:Eh,onInterrupt:Fh,onUpdate:p.fastMode?Qa:Ah,onUpdateParams:p.fastMode?[q,"onthrowupdate","onThrowUpdate"]:n&&n.radius?[!1,!0]:[]}),p.fastMode||(f&&(f._skip=!0),r.render(1e9,!0,!0),Ah(!0,!0),q.endX=q.x,q.endY=q.y,Q&&(q.endRotation=q.x),r.play(0),Ah(!0,!0),f&&(f._skip=!1))):M&&q.applyBounds()}function Hh(e){var t,n=k;k=getGlobalMatrix(h.parentNode,!0),e&&q.isPressed&&!k.equals(n||new ge)&&(t=n.inverse().apply({x:w,y:b}),k.apply(t,t),w=t.x,b=t.y),k.equals(r)&&(k=null)}function Ih(){var e,t,n,o=1-q.edgeResistance,r=ce?Ga(de):0,i=ce?Fa(de):0;W&&(se.x=Rg(G,"px")+"px",se.y=Rg(K,"px")+"px",se.renderTransform()),Hh(!1),Ge.x=q.pointerX-r,Ge.y=q.pointerY-i,k&&k.apply(Ge,Ge),w=Ge.x,b=Ge.y,Y&&(he(q.pointerX,q.pointerY),zh(!0)),d=getGlobalMatrix(h),f?(Dh(),D=f.top(),T=f.left()):(pe()?(Ah(!0,!0),Dh()):q.applyBounds(),Q?(e=h.ownerSVGElement?[se.xOrigin-h.getBBox().x,se.yOrigin-h.getBBox().y]:(Na(h)[Ce]||"0 0").split(" "),X=q.rotationOrigin=getGlobalMatrix(h).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),Ah(!0,!0),t=q.pointerX-X.x-r,n=X.y-q.pointerY+i,T=q.x,D=q.y=Math.atan2(n,t)*ke):(D=Rg(K,"px"),T=Rg(G,"px"))),M&&o&&(E<T?T=E+(T-E)/o:T<L&&(T=L-(L-T)/o),Q||(S<D?D=S+(D-S)/o:D<P&&(D=P-(P-D)/o))),q.startX=T=da(T),q.startY=D=da(D)}function Kh(){!we.parentNode||pe()||q.isDragging||we.parentNode.removeChild(we)}function Lh(e,t){var n;if(!u||q.isPressed||!e||!("mousedown"!==e.type&&"pointerdown"!==e.type||t)&&Be()-le<30&&Me[q.pointerEvent.type])F&&e&&u&&Ba(e);else{if(R=pe(),H=!1,q.pointerEvent=e,Me[e.type]?(v=~e.type.indexOf("touch")?e.currentTarget||e.target:de,za(v,"touchend",fe),za(v,"touchmove",ue),za(v,"touchcancel",fe),za(de,"touchstart",Ea)):(v=null,za(de,"mousemove",ue)),O=null,Pe&&v||(za(de,"mouseup",fe),e&&e.target&&za(e.target,"mouseup",fe)),y=ae.call(q,e.target)&&!1===p.dragClickables&&!t)return za(e.target,"change",fe),Qa(q,"pressInit","onPressInit"),Qa(q,"press","onPress"),Wa(J,!0),void(F=!1);if(B=!(!v||V==U||!1===q.vars.allowNativeTouchScrolling||q.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(V?"y":"x"),(F=!B&&!q.allowEventDefault)&&(Ba(e),za(me,"touchforcechange",Ba)),e.changedTouches?(e=x=e.changedTouches[0],m=e.identifier):e.pointerId?m=e.pointerId:x=m=null,Ae++,function _addToRenderQueue(e){Oe.push(e),1===Oe.length&&xe.ticker.add(ua)}(zh),b=q.pointerY=e.pageY,w=q.pointerX=e.pageX,Qa(q,"pressInit","onPressInit"),(B||q.autoScroll)&&La(h.parentNode),!h.parentNode||!q.autoScroll||f||Q||!h.parentNode._gsMaxScrollX||we.parentNode||h.getBBox||(we.style.width=h.parentNode.scrollWidth+"px",h.parentNode.appendChild(we)),Ih(),q.tween&&q.tween.kill(),q.isThrowing=!1,xe.killTweensOf(f||h,o,!0),f&&xe.killTweensOf(h,{scrollTo:1},!0),q.tween=q.lockedAxis=null,!p.zIndexBoost&&(Q||f||!1===p.zIndexBoost)||(h.style.zIndex=Draggable.zIndex++),q.isPressed=!0,g=!(!p.onDrag&&!q._listeners.drag),s=!(!p.onMove&&!q._listeners.move),!1!==p.cursor||p.activeCursor)for(n=J.length;-1<--n;)xe.set(J[n],{cursor:p.activeCursor||p.cursor||("grab"===Se?"grabbing":Se)});Qa(q,"press","onPress")}}function Ph(e){if(e&&q.isDragging&&!f){var t=e.target||h.parentNode,n=t.scrollLeft-t._gsScrollX,o=t.scrollTop-t._gsScrollY;(n||o)&&(k?(w-=n*k.a+o*k.c,b-=o*k.d+n*k.b):(w-=n,b-=o),t._gsScrollX+=n,t._gsScrollY+=o,he(q.pointerX,q.pointerY))}}function Qh(e){var t=Be(),n=t-le<100,o=t-ee<50,r=n&&I===le,i=q.pointerEvent&&q.pointerEvent.defaultPrevented,a=n&&c===le,l=e.isTrusted||null==e.isTrusted&&n&&r;if((r||o&&!1!==q.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),n&&(!q.pointerEvent||!q.pointerEvent.defaultPrevented)&&(!r||l&&!a))return l&&r&&(c=le),void(I=le);(q.isPressed||o||n)&&(l&&e.detail&&n&&!i||Ba(e)),n||o||H||(e&&e.target&&(q.pointerEvent=e),Qa(q,"click","onClick"))}function Rh(e){return k?{x:e.x*k.a+e.y*k.c+k.e,y:e.x*k.b+e.y*k.d+k.f}:{x:e.x,y:e.y}}var u,f,w,b,T,D,M,g,s,E,L,S,P,x,m,X,Y,t,A,C,N,y,v,k,R,B,O,z,I,c,F,d,H,n=(p.type||"x,y").toLowerCase(),W=~n.indexOf("x")||~n.indexOf("y"),Q=-1!==n.indexOf("rotation"),G=Q?"rotation":W?"x":"left",K=W?"y":"top",V=!(!~n.indexOf("x")&&!~n.indexOf("left")&&"scroll"!==n),U=!(!~n.indexOf("y")&&!~n.indexOf("top")&&"scroll"!==n),j=p.minimumMovement||2,q=_assertThisInitialized(e),J=Te(p.trigger||p.handle||h),o={},ee=0,te=!1,ne=p.autoScrollMarginTop||40,oe=p.autoScrollMarginRight||40,re=p.autoScrollMarginBottom||40,ie=p.autoScrollMarginLeft||40,ae=p.clickableTest||Va,le=0,se=h._gsap||xe.core.getCache(h),ce=function _isFixed(e){return"fixed"===Na(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)}(h),de=h.ownerDocument||ye,pe=function isTweening(){return q.tween&&q.tween.isActive()},ue=function onMove(e){var t,n,o,r,i,a,l=e;if(u&&!Ee&&q.isPressed&&e){if(t=(q.pointerEvent=e).changedTouches){if((e=t[0])!==x&&e.identifier!==m){for(r=t.length;-1<--r&&(e=t[r]).identifier!==m&&e.target!==h;);if(r<0)return}}else if(e.pointerId&&m&&e.pointerId!==m)return;v&&B&&!O&&(Ge.x=e.pageX-(ce?Ga(de):0),Ge.y=e.pageY-(ce?Fa(de):0),k&&k.apply(Ge,Ge),n=Ge.x,o=Ge.y,((i=Math.abs(n-w))!==(a=Math.abs(o-b))&&(j<i||j<a)||_e&&B===O)&&(O=a<i&&V?"x":"y",B&&O!==B&&za(me,"touchforcechange",Ba),!1!==q.vars.lockAxisOnTouchScroll&&V&&U&&(q.lockedAxis="x"===O?"y":"x",Z(q.vars.onLockAxis)&&q.vars.onLockAxis.call(q,l)),_e&&B===O))?fe(l):(F=q.allowEventDefault||B&&(!O||B===O)||!1===l.cancelable?F&&!1:(Ba(l),!0),q.autoScroll&&(te=!0),he(e.pageX,e.pageY,s))}else F&&e&&u&&Ba(e)},he=function setPointerPosition(e,t,n){var o,r,i,a,l,s,c=1-q.dragResistance,d=1-q.edgeResistance,p=q.pointerX,u=q.pointerY,h=D,f=q.x,g=q.y,x=q.endX,m=q.endY,y=q.endRotation,v=Y;q.pointerX=e,q.pointerY=t,ce&&(e-=Ga(de),t-=Fa(de)),Q?(a=Math.atan2(X.y-t,e-X.x)*ke,180<(l=q.y-a)?(D-=360,q.y=a):l<-180&&(D+=360,q.y=a),i=q.x!==T||Math.abs(D-a)>j?(q.y=a,T+(D-a)*c):T):(k&&(s=e*k.a+t*k.c+k.e,t=e*k.b+t*k.d+k.f,e=s),(r=t-b)<j&&-j<r&&(r=0),(o=e-w)<j&&-j<o&&(o=0),(q.lockAxis||q.lockedAxis)&&(o||r)&&((s=q.lockedAxis)||(q.lockedAxis=s=V&&Math.abs(o)>Math.abs(r)?"y":U?"x":null,s&&Z(q.vars.onLockAxis)&&q.vars.onLockAxis.call(q,q.pointerEvent)),"y"===s?r=0:"x"===s&&(o=0)),i=da(T+o*c),a=da(D+r*c)),(A||C||N)&&(q.x!==i||q.y!==a&&!Q)&&(N&&(He.x=i,He.y=a,s=N(He),i=da(s.x),a=da(s.y)),A&&(i=da(A(i))),C&&(a=da(C(a)))),M&&(E<i?i=E+Math.round((i-E)*d):i<L&&(i=L+Math.round((i-L)*d)),Q||(S<a?a=Math.round(S+(a-S)*d):a<P&&(a=Math.round(P+(a-P)*d)))),q.x===i&&(q.y===a||Q)||(Q?(q.endRotation=q.x=q.endX=i,Y=!0):(U&&(q.y=q.endY=a,Y=!0),V&&(q.x=q.endX=i,Y=!0)),n&&!1===Qa(q,"move","onMove")?(q.pointerX=p,q.pointerY=u,D=h,q.x=f,q.y=g,q.endX=x,q.endY=m,q.endRotation=y,Y=v):!q.isDragging&&q.isPressed&&(q.isDragging=H=!0,Qa(q,"dragstart","onDragStart")))},fe=function onRelease(e,t){if(u&&q.isPressed&&(!e||null==m||t||!(e.pointerId&&e.pointerId!==m&&e.target!==h||e.changedTouches&&!function _hasTouchID(e,t){for(var n=e.length;n--;)if(e[n].identifier===t)return!0}(e.changedTouches,m)))){q.isPressed=!1;var n,o,r,i,a,l=e,s=q.isDragging,c=q.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),d=xe.delayedCall(.001,Kh);if(v?(Aa(v,"touchend",onRelease),Aa(v,"touchmove",ue),Aa(v,"touchcancel",onRelease),Aa(de,"touchstart",Ea)):Aa(de,"mousemove",ue),Aa(me,"touchforcechange",Ba),Pe&&v||(Aa(de,"mouseup",onRelease),e&&e.target&&Aa(e.target,"mouseup",onRelease)),Y=!1,s&&(ee=Fe=Be(),q.isDragging=!1),xa(zh),y&&!c)return e&&(Aa(e.target,"change",onRelease),q.pointerEvent=l),Wa(J,!1),Qa(q,"release","onRelease"),Qa(q,"click","onClick"),void(y=!1);for(o=J.length;-1<--o;)Ma(J[o],"cursor",p.cursor||(!1!==p.cursor?Se:null));if(Ae--,e){if((n=e.changedTouches)&&(e=n[0])!==x&&e.identifier!==m){for(o=n.length;-1<--o&&(e=n[o]).identifier!==m&&e.target!==h;);if(o<0&&!t)return}q.pointerEvent=l,q.pointerX=e.pageX,q.pointerY=e.pageY}return c&&l?(Ba(l),F=!0,Qa(q,"release","onRelease")):l&&!s?(F=!1,R&&(p.snap||p.bounds)&&Gh(p.inertia||p.throwProps),Qa(q,"release","onRelease"),_e&&"touchmove"===l.type||-1!==l.type.indexOf("cancel")||(Qa(q,"click","onClick"),Be()-le<300&&Qa(q,"doubleclick","onDoubleClick"),i=l.target||h,le=Be(),a=function syntheticClick(){le===I||!q.enabled()||q.isPressed||l.defaultPrevented||(i.click?i.click():de.createEvent&&((r=de.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,me,1,q.pointerEvent.screenX,q.pointerEvent.screenY,q.pointerX,q.pointerY,!1,!1,!1,!1,0,null),i.dispatchEvent(r)))},_e||l.defaultPrevented||xe.delayedCall(.05,a))):(Gh(p.inertia||p.throwProps),q.allowEventDefault||!l||!1===p.dragClickables&&ae.call(q,l.target)||!s||B&&(!O||B!==O)||!1===l.cancelable?F=!1:(F=!0,Ba(l)),Qa(q,"release","onRelease")),pe()&&d.duration(q.tween.duration()),s&&Qa(q,"dragend","onDragEnd"),!0}F&&e&&u&&Ba(e)};return(t=Draggable.get(h))&&t.kill(),e.startDrag=function(e,t){var n,o,r,i;Lh(e||q.pointerEvent,!0),t&&!q.hitTest(e||q.pointerEvent)&&(n=Pa(e||q.pointerEvent),o=Pa(h),r=Rh({x:n.left+n.width/2,y:n.top+n.height/2}),i=Rh({x:o.left+o.width/2,y:o.top+o.height/2}),w-=r.x-i.x,b-=r.y-i.y),q.isDragging||(q.isDragging=H=!0,Qa(q,"dragstart","onDragStart"))},e.drag=ue,e.endDrag=function(e){return fe(e||q.pointerEvent,!0)},e.timeSinceDrag=function(){return q.isDragging?0:(Be()-ee)/1e3},e.timeSinceClick=function(){return(Be()-le)/1e3},e.hitTest=function(e,t){return Draggable.hitTest(q.target,e,t)},e.getDirection=function(e,t){var n,o,r,i,a,l,s="velocity"===e&&Le?e:$(e)&&!Q?"element":"start";return"element"===s&&(a=Pa(q.target),l=Pa(e)),n="start"===s?q.x-T:"velocity"===s?Le.getVelocity(h,G):a.left+a.width/2-(l.left+l.width/2),Q?n<0?"counter-clockwise":"clockwise":(t=t||2,o="start"===s?q.y-D:"velocity"===s?Le.getVelocity(h,K):a.top+a.height/2-(l.top+l.height/2),i=(r=Math.abs(n/o))<1/t?"":n<0?"left":"right",r<t&&(""!==i&&(i+="-"),i+=o<0?"up":"down"),i)},e.applyBounds=function(e,t){var n,o,r,i,a,l;if(e&&p.bounds!==e)return p.bounds=e,q.update(!0,t);if(Ah(!0),Dh(),M&&!pe()){if(n=q.x,o=q.y,E<n?n=E:n<L&&(n=L),S<o?o=S:o<P&&(o=P),(q.x!==n||q.y!==o)&&(r=!0,q.x=q.endX=n,Q?q.endRotation=n:q.y=q.endY=o,zh(Y=!0),q.autoScroll&&!q.isDragging))for(La(h.parentNode),i=h,We.scrollTop=null!=me.pageYOffset?me.pageYOffset:null!=de.documentElement.scrollTop?de.documentElement.scrollTop:de.body.scrollTop,We.scrollLeft=null!=me.pageXOffset?me.pageXOffset:null!=de.documentElement.scrollLeft?de.documentElement.scrollLeft:de.body.scrollLeft;i&&!l;)a=(l=Qe(i.parentNode))?We:i.parentNode,U&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),V&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),i=a;q.isThrowing&&(r||q.endX>E||q.endX<L||q.endY>S||q.endY<P)&&Gh(p.inertia||p.throwProps,r)}return q},e.update=function(e,t,n){if(t&&q.isPressed){var o=getGlobalMatrix(h),r=d.apply({x:q.x-T,y:q.y-D}),i=getGlobalMatrix(h.parentNode,!0);i.apply({x:o.e-r.x,y:o.f-r.y},r),q.x-=r.x-i.e,q.y-=r.y-i.f,zh(!0),Ih()}var a=q.x,l=q.y;return Hh(!t),e?q.applyBounds():(Y&&n&&zh(!0),Ah(!0)),t&&(he(q.pointerX,q.pointerY),Y&&zh(!0)),q.isPressed&&!t&&(V&&.01<Math.abs(a-q.x)||U&&.01<Math.abs(l-q.y)&&!Q)&&Ih(),q.autoScroll&&(La(h.parentNode,q.isDragging),te=q.isDragging,zh(!0),Ia(h,Ph),Ha(h,Ph)),q},e.enable=function(e){var t,n,o,r={lazy:!0};if(!1!==p.cursor&&(r.cursor=p.cursor||Se),xe.utils.checkPrefix("touchCallout")&&(r.touchCallout="none"),"soft"!==e){for(ta(J,V==U?"none":p.allowNativeTouchScrolling&&h.scrollHeight===h.clientHeight==(h.scrollWidth===h.clientHeight)||p.allowEventDefault?"manipulation":V?"pan-y":"pan-x"),n=J.length;-1<--n;)o=J[n],Pe||za(o,"mousedown",Lh),za(o,"touchstart",Lh),za(o,"click",Qh,!0),xe.set(o,r),o.getBBox&&o.ownerSVGElement&&V!=U&&xe.set(o.ownerSVGElement,{touchAction:p.allowNativeTouchScrolling||p.allowEventDefault?"manipulation":V?"pan-y":"pan-x"}),p.allowContextMenu||za(o,"contextmenu",yh);Wa(J,!1)}return Ha(h,Ph),u=!0,Le&&"soft"!==e&&Le.track(f||h,W?"x,y":Q?"rotation":"top,left"),h._gsDragID=t="d"+Ie++,ze[t]=q,f&&(f.enable(),f.element._gsDragID=t),(p.bounds||Q)&&Ih(),p.bounds&&q.applyBounds(),q},e.disable=function(e){for(var t,n=q.isDragging,o=J.length;-1<--o;)Ma(J[o],"cursor",null);if("soft"!==e){for(ta(J,null),o=J.length;-1<--o;)t=J[o],Ma(t,"touchCallout",null),Aa(t,"mousedown",Lh),Aa(t,"touchstart",Lh),Aa(t,"click",Qh,!0),Aa(t,"contextmenu",yh);Wa(J,!0),v&&(Aa(v,"touchcancel",fe),Aa(v,"touchend",fe),Aa(v,"touchmove",ue)),Aa(de,"mouseup",fe),Aa(de,"mousemove",ue)}return Ia(h,Ph),u=!1,Le&&"soft"!==e&&(Le.untrack(f||h,W?"x,y":Q?"rotation":"top,left"),q.tween&&q.tween.kill()),f&&f.disable(),xa(zh),q.isDragging=q.isPressed=y=!1,n&&Qa(q,"dragend","onDragEnd"),q},e.enabled=function(e,t){return arguments.length?e?q.enable(t):q.disable(t):u},e.kill=function(){return q.isThrowing=!1,q.tween&&q.tween.kill(),q.disable(),xe.set(J,{clearProps:"userSelect"}),delete ze[h._gsDragID],q},e.revert=function(){this.kill(),this.styles&&this.styles.revert()},~n.indexOf("scroll")&&(f=e.scrollProxy=new $a(h,function _extend(e,t){for(var n in t)n in e||(e[n]=t[n]);return e}({onKill:function onKill(){q.isPressed&&fe(null)}},p)),h.style.overflowY=U&&!De?"auto":"hidden",h.style.overflowX=V&&!De?"auto":"hidden",h=f.content),Q?o.rotation=1:(V&&(o[G]=1),U&&(o[K]=1)),se.force3D=!("force3D"in p)||p.force3D,Xe(_assertThisInitialized(e)),e.enable(),e}!function _setDefaults(e,t){for(var n in t)n in e||(e[n]=t[n])}(I.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),I.zIndex=1e3,I.version="3.12.5",Y()&&xe.registerPlugin(I),e.Draggable=I,e.default=I;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* DrawSVGPlugin 3.12.4 | ||
* DrawSVGPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function l(){return"undefined"!=typeof window}function m(){return o||l()&&(o=window.gsap)&&o.registerPlugin&&o}function p(e){return Math.round(1e4*e)/1e4}function q(e){return parseFloat(e)||0}function r(e,t){var n=q(e);return~e.indexOf("%")?n/100*t:n}function s(e,t){return q(e.getAttribute(t))}function u(e,t,n,r,i,o){return M(Math.pow((q(n)-q(e))*i,2)+Math.pow((q(r)-q(t))*o,2))}function v(e){return console.warn(e)}function w(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function z(){return String.fromCharCode.apply(null,arguments)}function F(e){if(!(e=x(e)[0]))return 0;var t,n,r,i,o,a,f,d=e.tagName.toLowerCase(),l=e.style,h=1,c=1;w(e)&&(c=e.getScreenCTM(),h=M(c.a*c.a+c.b*c.b),c=M(c.d*c.d+c.c*c.c));try{n=e.getBBox()}catch(e){v("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var g=n||{x:0,y:0,width:0,height:0},z=g.x,y=g.y,_=g.width,m=g.height;if(n&&(_||m)||!P[d]||(_=s(e,P[d][0]),m=s(e,P[d][1]),"rect"!==d&&"line"!==d&&(_*=2,m*=2),"line"===d&&(z=s(e,"x1"),y=s(e,"y1"),_=Math.abs(_-z),m=Math.abs(m-y))),"path"===d)i=l.strokeDasharray,l.strokeDasharray="none",t=e.getTotalLength()||0,p(h)!==p(c)&&!k&&(k=1)&&v("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),t*=(h+c)/2,l.strokeDasharray=i;else if("rect"===d)t=2*_*h+2*m*c;else if("line"===d)t=u(z,y,z+_,y+m,h,c);else if("polyline"===d||"polygon"===d)for(r=e.getAttribute("points").match(b)||[],"polygon"===d&&r.push(r[0],r[1]),t=0,o=2;o<r.length;o+=2)t+=u(r[o-2],r[o-1],r[o],r[o+1],h,c)||0;else"circle"!==d&&"ellipse"!==d||(a=_/2*h,f=m/2*c,t=Math.PI*(3*(a+f)-M((3*a+f)*(a+3*f))));return t||0}function G(e,t){if(!(e=x(e)[0]))return[0,0];t=t||F(e)+1;var n=f.getComputedStyle(e),r=n.strokeDasharray||"",i=q(n.strokeDashoffset),o=r.indexOf(",");return o<0&&(o=r.indexOf(" ")),t<(r=o<0?t:q(r.substr(0,o)))&&(r=t),[-i||0,r-i||0]}function H(){l()&&(f=window,h=o=m(),x=o.utils.toArray,c=o.core.getStyleSaver,g=o.core.reverting||function(){},d=-1!==((f.navigator||{}).userAgent||"").indexOf("Edge"))}var o,x,f,d,h,k,c,g,b=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,P={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},M=Math.sqrt,a="DrawSVGPlugin",y=z(103,114,101,101,110,115,111,99,107,46,99,111,109),_=z(103,115,97,112,46,99,111,109),S=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,O=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(z(102,105,108,101,58,47,47))||-1!==e.indexOf(z(108,111,99,97,108,104,111,115,116))||S.test(e)||(t?window.location.hostname:"").split(".").pop()===z(108,111,99,97,108),r=[y,_,z(99,111,100,101,112,101,110,46,105,111),z(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),z(99,111,100,101,112,101,110,46,100,101,118),z(99,111,100,101,112,101,110,46,97,112,112),z(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),z(112,101,110,115,46,99,108,111,117,100),z(99,115,115,45,116,114,105,99,107,115,46,99,111,109),z(99,100,112,110,46,105,111),z(112,101,110,115,46,105,111),z(103,97,110,110,111,110,46,116,118),z(99,111,100,101,99,97,110,121,111,110,46,110,101,116),z(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),z(99,101,114,101,98,114,97,120,46,99,111,46,117,107),z(116,121,109,112,97,110,117,115,46,110,101,116),z(116,119,101,101,110,109,97,120,46,99,111,109),z(112,108,110,107,114,46,99,111),z(104,111,116,106,97,114,46,99,111,109),z(119,101,98,112,97,99,107,98,105,110,46,99,111,109),z(97,114,99,104,105,118,101,46,111,114,103),z(99,111,100,101,115,97,110,100,98,111,120,46,105,111),z(99,115,98,46,97,112,112),z(115,116,97,99,107,98,108,105,116,122,46,99,111,109),z(115,116,97,99,107,98,108,105,116,122,46,105,111),z(99,111,100,105,101,114,46,105,111),z(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),z(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),z(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),z(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),z(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),z(106,115,102,105,100,100,108,101,46,110,101,116)],i=r.length;for(setTimeout(function checkWarn(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof o?o:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(z(37,99,87,97,114,110,105,110,103),z(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(z(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+a+z(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(z(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),z(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--i;)if(-1!==e.indexOf(r[i]))return!0;return n||!setTimeout(function(){t&&(window.location.href=z(104,116,116,112,115,58,47,47)+y+z(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+a+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),t={version:"3.12.4",name:"drawSVG",register:function register(e){o=e,H()},init:function init(e,t,n){if(!e.getBBox)return!1;h||H();var i,o,s,a=F(e);return this.styles=c&&c(e,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=n,this._style=e.style,this._target=e,t+""=="true"?t="0 100%":t?-1===(t+"").indexOf(" ")&&(t="0 "+t):t="0 0",o=function _parse(e,t,n){var i,o,s=e.indexOf(" ");return o=s<0?(i=void 0!==n?n+"":e,e):(i=e.substr(0,s),e.substr(s+1)),i=r(i,t),(o=r(o,t))<i?[o,i]:[i,o]}(t,a,(i=G(e,a))[0]),this._length=p(a),this._dash=p(i[1]-i[0]),this._offset=p(-i[0]),this._dashPT=this.add(this,"_dash",this._dash,p(o[1]-o[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,p(-o[0]),0,0,0,0,0,1),d&&(s=f.getComputedStyle(e)).strokeLinecap!==s.strokeLinejoin&&(o=q(s.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",o,o+.01)),this._live=w(e)||~(t+"").indexOf("live"),this._nowrap=~(t+"").indexOf("nowrap"),this._props.push("drawSVG"),O},render:function render(e,t){if(t.tween._time||!g()){var n,r,i,o,s=t._pt,a=t._style;if(s){for(t._live&&(n=F(t._target))!==t._length&&(r=n/t._length,t._length=n,t._offsetPT&&(t._offsetPT.s*=r,t._offsetPT.c*=r),t._dashPT?(t._dashPT.s*=r,t._dashPT.c*=r):t._dash*=r);s;)s.r(e,s.d),s=s._next;i=t._dash||e&&1!==e&&1e-4||0,n=t._length-i+.1,o=t._offset,i&&o&&i+Math.abs(o%t._length)>t._length-.2&&(o+=o<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=i?o:o+.001,a.strokeDasharray=n<.2?"none":i?i+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}}else t.styles.revert()},getLength:F,getPosition:G};m()&&o.registerPlugin(t),e.DrawSVGPlugin=t,e.default=t;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function l(){return"undefined"!=typeof window}function m(){return o||l()&&(o=window.gsap)&&o.registerPlugin&&o}function p(e){return Math.round(1e4*e)/1e4}function q(e){return parseFloat(e)||0}function r(e,t){var n=q(e);return~e.indexOf("%")?n/100*t:n}function s(e,t){return q(e.getAttribute(t))}function u(e,t,n,r,i,o){return M(Math.pow((q(n)-q(e))*i,2)+Math.pow((q(r)-q(t))*o,2))}function v(e){return console.warn(e)}function w(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function z(){return String.fromCharCode.apply(null,arguments)}function F(e){if(!(e=x(e)[0]))return 0;var t,n,r,i,o,a,f,d=e.tagName.toLowerCase(),l=e.style,h=1,c=1;w(e)&&(c=e.getScreenCTM(),h=M(c.a*c.a+c.b*c.b),c=M(c.d*c.d+c.c*c.c));try{n=e.getBBox()}catch(e){v("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var g=n||{x:0,y:0,width:0,height:0},z=g.x,y=g.y,_=g.width,m=g.height;if(n&&(_||m)||!P[d]||(_=s(e,P[d][0]),m=s(e,P[d][1]),"rect"!==d&&"line"!==d&&(_*=2,m*=2),"line"===d&&(z=s(e,"x1"),y=s(e,"y1"),_=Math.abs(_-z),m=Math.abs(m-y))),"path"===d)i=l.strokeDasharray,l.strokeDasharray="none",t=e.getTotalLength()||0,p(h)!==p(c)&&!k&&(k=1)&&v("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),t*=(h+c)/2,l.strokeDasharray=i;else if("rect"===d)t=2*_*h+2*m*c;else if("line"===d)t=u(z,y,z+_,y+m,h,c);else if("polyline"===d||"polygon"===d)for(r=e.getAttribute("points").match(b)||[],"polygon"===d&&r.push(r[0],r[1]),t=0,o=2;o<r.length;o+=2)t+=u(r[o-2],r[o-1],r[o],r[o+1],h,c)||0;else"circle"!==d&&"ellipse"!==d||(a=_/2*h,f=m/2*c,t=Math.PI*(3*(a+f)-M((3*a+f)*(a+3*f))));return t||0}function G(e,t){if(!(e=x(e)[0]))return[0,0];t=t||F(e)+1;var n=f.getComputedStyle(e),r=n.strokeDasharray||"",i=q(n.strokeDashoffset),o=r.indexOf(",");return o<0&&(o=r.indexOf(" ")),t<(r=o<0?t:q(r.substr(0,o)))&&(r=t),[-i||0,r-i||0]}function H(){l()&&(f=window,h=o=m(),x=o.utils.toArray,c=o.core.getStyleSaver,g=o.core.reverting||function(){},d=-1!==((f.navigator||{}).userAgent||"").indexOf("Edge"))}var o,x,f,d,h,k,c,g,b=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,P={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},M=Math.sqrt,a="DrawSVGPlugin",y=z(103,114,101,101,110,115,111,99,107,46,99,111,109),_=z(103,115,97,112,46,99,111,109),S=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,O=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(z(102,105,108,101,58,47,47))||-1!==e.indexOf(z(108,111,99,97,108,104,111,115,116))||S.test(e)||(t?window.location.hostname:"").split(".").pop()===z(108,111,99,97,108),r=[y,_,z(99,111,100,101,112,101,110,46,105,111),z(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),z(99,111,100,101,112,101,110,46,100,101,118),z(99,111,100,101,112,101,110,46,97,112,112),z(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),z(112,101,110,115,46,99,108,111,117,100),z(99,115,115,45,116,114,105,99,107,115,46,99,111,109),z(99,100,112,110,46,105,111),z(112,101,110,115,46,105,111),z(103,97,110,110,111,110,46,116,118),z(99,111,100,101,99,97,110,121,111,110,46,110,101,116),z(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),z(99,101,114,101,98,114,97,120,46,99,111,46,117,107),z(116,121,109,112,97,110,117,115,46,110,101,116),z(116,119,101,101,110,109,97,120,46,99,111,109),z(112,108,110,107,114,46,99,111),z(104,111,116,106,97,114,46,99,111,109),z(119,101,98,112,97,99,107,98,105,110,46,99,111,109),z(97,114,99,104,105,118,101,46,111,114,103),z(99,111,100,101,115,97,110,100,98,111,120,46,105,111),z(99,115,98,46,97,112,112),z(115,116,97,99,107,98,108,105,116,122,46,99,111,109),z(115,116,97,99,107,98,108,105,116,122,46,105,111),z(99,111,100,105,101,114,46,105,111),z(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),z(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),z(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),z(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),z(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),z(106,115,102,105,100,100,108,101,46,110,101,116)],i=r.length;for(setTimeout(function checkWarn(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof o?o:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(z(37,99,87,97,114,110,105,110,103),z(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(z(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+a+z(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(z(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),z(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--i;)if(-1!==e.indexOf(r[i]))return!0;return n||!setTimeout(function(){t&&(window.location.href=z(104,116,116,112,115,58,47,47)+y+z(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+a+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),t={version:"3.12.5",name:"drawSVG",register:function register(e){o=e,H()},init:function init(e,t,n){if(!e.getBBox)return!1;h||H();var i,o,s,a=F(e);return this.styles=c&&c(e,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=n,this._style=e.style,this._target=e,t+""=="true"?t="0 100%":t?-1===(t+"").indexOf(" ")&&(t="0 "+t):t="0 0",o=function _parse(e,t,n){var i,o,s=e.indexOf(" ");return o=s<0?(i=void 0!==n?n+"":e,e):(i=e.substr(0,s),e.substr(s+1)),i=r(i,t),(o=r(o,t))<i?[o,i]:[i,o]}(t,a,(i=G(e,a))[0]),this._length=p(a),this._dash=p(i[1]-i[0]),this._offset=p(-i[0]),this._dashPT=this.add(this,"_dash",this._dash,p(o[1]-o[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,p(-o[0]),0,0,0,0,0,1),d&&(s=f.getComputedStyle(e)).strokeLinecap!==s.strokeLinejoin&&(o=q(s.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",o,o+.01)),this._live=w(e)||~(t+"").indexOf("live"),this._nowrap=~(t+"").indexOf("nowrap"),this._props.push("drawSVG"),O},render:function render(e,t){if(t.tween._time||!g()){var n,r,i,o,s=t._pt,a=t._style;if(s){for(t._live&&(n=F(t._target))!==t._length&&(r=n/t._length,t._length=n,t._offsetPT&&(t._offsetPT.s*=r,t._offsetPT.c*=r),t._dashPT?(t._dashPT.s*=r,t._dashPT.c*=r):t._dash*=r);s;)s.r(e,s.d),s=s._next;i=t._dash||e&&1!==e&&1e-4||0,n=t._length-i+.1,o=t._offset,i&&o&&i+Math.abs(o%t._length)>t._length-.2&&(o+=o<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=i?o:o+.001,a.strokeDasharray=n<.2?"none":i?i+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}}else t.styles.revert()},getLength:F,getPosition:G};m()&&o.registerPlugin(t),e.DrawSVGPlugin=t,e.default=t;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* EaselPlugin 3.12.4 | ||
* EaselPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return h||k()&&(h=window.gsap)&&h.registerPlugin&&h}function m(){return r||t&&t.createjs||t||{}}function n(e){return console.warn(e)}function o(e){var t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),n("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)}function p(e,t,r){(b=b||m().ColorFilter)||n("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.");for(var i,l,s,u,a,f,c=e.filters||[],d=c.length;d--;)if(c[d]instanceof b){l=c[d];break}if(l||(l=new b,c.push(l),e.filters=c),s=l.clone(),null!=t.tint)i=h.utils.splitColor(t.tint),u=null!=t.tintAmount?+t.tintAmount:1,s.redOffset=i[0]*u,s.greenOffset=i[1]*u,s.blueOffset=i[2]*u,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-u;else for(a in t)"exposure"!==a&&"brightness"!==a&&(s[a]=+t[a]);for(null!=t.exposure?(s.redOffset=s.greenOffset=s.blueOffset=255*(t.exposure-1),s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1):null!=t.brightness&&(u=t.brightness-1,s.redOffset=s.greenOffset=s.blueOffset=0<u?255*u:0,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-Math.abs(u)),d=8;d--;)l[a=M[d]]!==s[a]&&(f=r.add(l,a,l[a],s[a],0,0,0,0,0,1))&&(f.op="easel_colorFilter");r._props.push("easel_colorFilter"),e.cacheID||o(e)}function u(e,t){if(!(e instanceof Array&&t instanceof Array))return t;var r,i,n=[],l=0,o=0;for(r=0;r<4;r++){for(i=0;i<5;i++)o=4===i?e[l+4]:0,n[l+i]=e[l]*t[i]+e[l+1]*t[i+5]+e[l+2]*t[i+10]+e[l+3]*t[i+15]+o;l+=5}return n}function z(e,t,r){(d=d||m().ColorMatrixFilter)||n("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.");for(var i,l,s,a,f=e.filters||[],c=f.length;-1<--c;)if(f[c]instanceof d){s=f[c];break}for(s||(s=new d(w.slice()),f.push(s),e.filters=f),l=s.matrix,i=w.slice(),null!=t.colorize&&(i=function _colorize(e,t,r){isNaN(r)&&(r=1);var i=h.utils.splitColor(t),n=i[0]/255,l=i[1]/255,o=i[2]/255,s=1-r;return u([s+r*n*x,r*n*y,r*n*_,0,0,r*l*x,s+r*l*y,r*l*_,0,0,r*o*x,r*o*y,s+r*o*_,0,0,0,0,0,1,0],e)}(i,t.colorize,Number(t.colorizeAmount))),null!=t.contrast&&(i=function _setContrast(e,t){return isNaN(t)?e:u([t+=.01,0,0,0,128*(1-t),0,t,0,0,128*(1-t),0,0,t,0,128*(1-t),0,0,0,1,0],e)}(i,Number(t.contrast))),null!=t.hue&&(i=function _setHue(e,t){if(isNaN(t))return e;t*=Math.PI/180;var r=Math.cos(t),i=Math.sin(t);return u([x+r*(1-x)+i*-x,y+r*-y+i*-y,_+r*-_+i*(1-_),0,0,x+r*-x+.143*i,y+r*(1-y)+.14*i,_+r*-_+-.283*i,0,0,x+r*-x+i*-(1-x),y+r*-y+i*y,_+r*(1-_)+i*_,0,0,0,0,0,1,0,0,0,0,0,1],e)}(i,Number(t.hue))),null!=t.saturation&&(i=function _setSaturation(e,t){if(isNaN(t))return e;var r=1-t,i=r*x,n=r*y,l=r*_;return u([i+t,n,l,0,0,i,n+t,l,0,0,i,n,l+t,0,0,0,0,0,1,0],e)}(i,Number(t.saturation))),c=i.length;-1<--c;)i[c]!==l[c]&&(a=r.add(l,c,l[c],i[c],0,0,0,0,0,1))&&(a.op="easel_colorMatrixFilter");r._props.push("easel_colorMatrixFilter"),e.cacheID||o(),r._matrix=l}function A(e){h=e||l(),k()&&(t=window),h&&(g=1)}var h,g,t,r,b,d,M="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),w=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],x=.212671,y=.71516,_=.072169,i={version:"3.12.4",name:"easel",init:function init(e,t,r,i,l){var o,s,u,a,f,c,d;for(o in g||(A(),h||n("Please gsap.registerPlugin(EaselPlugin)")),this.target=e,t)if(f=t[o],"colorFilter"===o||"tint"===o||"tintAmount"===o||"exposure"===o||"brightness"===o)u||(p(e,t.colorFilter||t,this),u=!0);else if("saturation"===o||"contrast"===o||"hue"===o||"colorize"===o||"colorizeAmount"===o)a||(z(e,t.colorMatrixFilter||t,this),a=!0);else if("frame"===o){if("string"==typeof f&&"="!==f.charAt(1)&&(c=e.labels))for(d=0;d<c.length;d++)c[d].label===f&&(f=c[d].position);(s=this.add(e,"gotoAndStop",e.currentFrame,f,i,l,Math.round,0,0,1))&&(s.op=o)}else null!=e[o]&&this.add(e,o,"get",f)},render:function render(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:A,registerCreateJS:function(e){r=e}};l()&&h.registerPlugin(i),e.EaselPlugin=i,e.default=i;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return h||k()&&(h=window.gsap)&&h.registerPlugin&&h}function m(){return r||t&&t.createjs||t||{}}function n(e){return console.warn(e)}function o(e){var t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),n("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)}function p(e,t,r){(b=b||m().ColorFilter)||n("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.");for(var i,l,s,u,a,f,c=e.filters||[],d=c.length;d--;)if(c[d]instanceof b){l=c[d];break}if(l||(l=new b,c.push(l),e.filters=c),s=l.clone(),null!=t.tint)i=h.utils.splitColor(t.tint),u=null!=t.tintAmount?+t.tintAmount:1,s.redOffset=i[0]*u,s.greenOffset=i[1]*u,s.blueOffset=i[2]*u,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-u;else for(a in t)"exposure"!==a&&"brightness"!==a&&(s[a]=+t[a]);for(null!=t.exposure?(s.redOffset=s.greenOffset=s.blueOffset=255*(t.exposure-1),s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1):null!=t.brightness&&(u=t.brightness-1,s.redOffset=s.greenOffset=s.blueOffset=0<u?255*u:0,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-Math.abs(u)),d=8;d--;)l[a=M[d]]!==s[a]&&(f=r.add(l,a,l[a],s[a],0,0,0,0,0,1))&&(f.op="easel_colorFilter");r._props.push("easel_colorFilter"),e.cacheID||o(e)}function u(e,t){if(!(e instanceof Array&&t instanceof Array))return t;var r,i,n=[],l=0,o=0;for(r=0;r<4;r++){for(i=0;i<5;i++)o=4===i?e[l+4]:0,n[l+i]=e[l]*t[i]+e[l+1]*t[i+5]+e[l+2]*t[i+10]+e[l+3]*t[i+15]+o;l+=5}return n}function z(e,t,r){(d=d||m().ColorMatrixFilter)||n("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.");for(var i,l,s,a,f=e.filters||[],c=f.length;-1<--c;)if(f[c]instanceof d){s=f[c];break}for(s||(s=new d(w.slice()),f.push(s),e.filters=f),l=s.matrix,i=w.slice(),null!=t.colorize&&(i=function _colorize(e,t,r){isNaN(r)&&(r=1);var i=h.utils.splitColor(t),n=i[0]/255,l=i[1]/255,o=i[2]/255,s=1-r;return u([s+r*n*x,r*n*y,r*n*_,0,0,r*l*x,s+r*l*y,r*l*_,0,0,r*o*x,r*o*y,s+r*o*_,0,0,0,0,0,1,0],e)}(i,t.colorize,Number(t.colorizeAmount))),null!=t.contrast&&(i=function _setContrast(e,t){return isNaN(t)?e:u([t+=.01,0,0,0,128*(1-t),0,t,0,0,128*(1-t),0,0,t,0,128*(1-t),0,0,0,1,0],e)}(i,Number(t.contrast))),null!=t.hue&&(i=function _setHue(e,t){if(isNaN(t))return e;t*=Math.PI/180;var r=Math.cos(t),i=Math.sin(t);return u([x+r*(1-x)+i*-x,y+r*-y+i*-y,_+r*-_+i*(1-_),0,0,x+r*-x+.143*i,y+r*(1-y)+.14*i,_+r*-_+-.283*i,0,0,x+r*-x+i*-(1-x),y+r*-y+i*y,_+r*(1-_)+i*_,0,0,0,0,0,1,0,0,0,0,0,1],e)}(i,Number(t.hue))),null!=t.saturation&&(i=function _setSaturation(e,t){if(isNaN(t))return e;var r=1-t,i=r*x,n=r*y,l=r*_;return u([i+t,n,l,0,0,i,n+t,l,0,0,i,n,l+t,0,0,0,0,0,1,0],e)}(i,Number(t.saturation))),c=i.length;-1<--c;)i[c]!==l[c]&&(a=r.add(l,c,l[c],i[c],0,0,0,0,0,1))&&(a.op="easel_colorMatrixFilter");r._props.push("easel_colorMatrixFilter"),e.cacheID||o(),r._matrix=l}function A(e){h=e||l(),k()&&(t=window),h&&(g=1)}var h,g,t,r,b,d,M="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),w=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],x=.212671,y=.71516,_=.072169,i={version:"3.12.5",name:"easel",init:function init(e,t,r,i,l){var o,s,u,a,f,c,d;for(o in g||(A(),h||n("Please gsap.registerPlugin(EaselPlugin)")),this.target=e,t)if(f=t[o],"colorFilter"===o||"tint"===o||"tintAmount"===o||"exposure"===o||"brightness"===o)u||(p(e,t.colorFilter||t,this),u=!0);else if("saturation"===o||"contrast"===o||"hue"===o||"colorize"===o||"colorizeAmount"===o)a||(z(e,t.colorMatrixFilter||t,this),a=!0);else if("frame"===o){if("string"==typeof f&&"="!==f.charAt(1)&&(c=e.labels))for(d=0;d<c.length;d++)c[d].label===f&&(f=c[d].position);(s=this.add(e,"gotoAndStop",e.currentFrame,f,i,l,Math.round,0,0,1))&&(s.op=o)}else null!=e[o]&&this.add(e,o,"get",f)},render:function render(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:A,registerCreateJS:function(e){r=e}};l()&&h.registerPlugin(i),e.EaselPlugin=i,e.default=i;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* EasePack 3.12.4 | ||
* EasePack 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function f(){return w||"undefined"!=typeof window&&(w=window.gsap)&&w.registerPlugin&&w}function g(e,n){return!!(void 0===e?n:e&&!~(e+"").indexOf("false"))}function h(e){if(w=e||f()){r=w.registerEase;var n,t=w.parseEase(),o=function createConfig(t){return function(e){var n=.5+e/2;t.config=function(e){return t(2*(1-e)*e*n+e*e)}}};for(n in t)t[n].config||o(t[n]);for(n in r("slow",a),r("expoScale",s),r("rough",u),c)"version"!==n&&w.core.globals(n,c[n])}}function i(e,n,t){var o=(e=Math.min(1,e||.7))<1?n||0===n?n:.7:0,r=(1-e)/2,i=r+e,a=g(t);return function(e){var n=e+(.5-e)*o;return e<r?a?1-(e=1-e/r)*e:n-(e=1-e/r)*e*e*e*n:i<e?a?1===e?0:1-(e=(e-i)/r)*e:n+(e-n)*(e=(e-i)/r)*e*e*e:a?1:n}}function j(n,e,t){var o=Math.log(e/n),r=e-n;return t=t&&w.parseEase(t),function(e){return(n*Math.exp(o*(t?t(e):e))-n)/r}}function k(e,n,t){this.t=e,this.v=n,t&&(((this.next=t).prev=this).c=t.v-n,this.gap=t.t-e)}function l(e){"object"!=typeof e&&(e={points:+e||20});for(var n,t,o,r,i,a,f,s=e.taper||"none",u=[],c=0,p=0|(+e.points||20),l=p,v=g(e.randomize,!0),d=g(e.clamp),h=w?w.parseEase(e.template):0,x=.4*(+e.strength||1);-1<--l;)n=v?Math.random():1/p*l,t=h?h(n):n,o="none"===s?x:"out"===s?(r=1-n)*r*x:"in"===s?n*n*x:n<.5?(r=2*n)*r*.5*x:(r=2*(1-n))*r*.5*x,v?t+=Math.random()*o-.5*o:l%2?t+=.5*o:t-=.5*o,d&&(1<t?t=1:t<0&&(t=0)),u[c++]={x:n,y:t};for(u.sort(function(e,n){return e.x-n.x}),a=new k(1,1,null),l=p;l--;)i=u[l],a=new k(i.x,i.y,a);return f=new k(0,0,a.t?a:a.next),function(e){var n=f;if(e>n.t){for(;n.next&&e>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&e<=n.t;)n=n.prev;return(f=n).v+(e-n.t)/n.gap*n.c}}var w,r,a=i(.7);(a.ease=a).config=i;var s=j(1,2);s.config=j;var u=l();(u.ease=u).config=l;var c={SlowMo:a,RoughEase:u,ExpoScaleEase:s};for(var n in c)c[n].register=h,c[n].version="3.12.4";f()&&w.registerPlugin(a),e.EasePack=c,e.ExpoScaleEase=s,e.RoughEase=u,e.SlowMo=a,e.default=c;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function f(){return w||"undefined"!=typeof window&&(w=window.gsap)&&w.registerPlugin&&w}function g(e,n){return!!(void 0===e?n:e&&!~(e+"").indexOf("false"))}function h(e){if(w=e||f()){r=w.registerEase;var n,t=w.parseEase(),o=function createConfig(t){return function(e){var n=.5+e/2;t.config=function(e){return t(2*(1-e)*e*n+e*e)}}};for(n in t)t[n].config||o(t[n]);for(n in r("slow",a),r("expoScale",s),r("rough",u),c)"version"!==n&&w.core.globals(n,c[n])}}function i(e,n,t){var o=(e=Math.min(1,e||.7))<1?n||0===n?n:.7:0,r=(1-e)/2,i=r+e,a=g(t);return function(e){var n=e+(.5-e)*o;return e<r?a?1-(e=1-e/r)*e:n-(e=1-e/r)*e*e*e*n:i<e?a?1===e?0:1-(e=(e-i)/r)*e:n+(e-n)*(e=(e-i)/r)*e*e*e:a?1:n}}function j(n,e,t){var o=Math.log(e/n),r=e-n;return t=t&&w.parseEase(t),function(e){return(n*Math.exp(o*(t?t(e):e))-n)/r}}function k(e,n,t){this.t=e,this.v=n,t&&(((this.next=t).prev=this).c=t.v-n,this.gap=t.t-e)}function l(e){"object"!=typeof e&&(e={points:+e||20});for(var n,t,o,r,i,a,f,s=e.taper||"none",u=[],c=0,p=0|(+e.points||20),l=p,v=g(e.randomize,!0),d=g(e.clamp),h=w?w.parseEase(e.template):0,x=.4*(+e.strength||1);-1<--l;)n=v?Math.random():1/p*l,t=h?h(n):n,o="none"===s?x:"out"===s?(r=1-n)*r*x:"in"===s?n*n*x:n<.5?(r=2*n)*r*.5*x:(r=2*(1-n))*r*.5*x,v?t+=Math.random()*o-.5*o:l%2?t+=.5*o:t-=.5*o,d&&(1<t?t=1:t<0&&(t=0)),u[c++]={x:n,y:t};for(u.sort(function(e,n){return e.x-n.x}),a=new k(1,1,null),l=p;l--;)i=u[l],a=new k(i.x,i.y,a);return f=new k(0,0,a.t?a:a.next),function(e){var n=f;if(e>n.t){for(;n.next&&e>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&e<=n.t;)n=n.prev;return(f=n).v+(e-n.t)/n.gap*n.c}}var w,r,a=i(.7);(a.ease=a).config=i;var s=j(1,2);s.config=j;var u=l();(u.ease=u).config=l;var c={SlowMo:a,RoughEase:u,ExpoScaleEase:s};for(var n in c)c[n].register=h,c[n].version="3.12.5";f()&&w.registerPlugin(a),e.EasePack=c,e.ExpoScaleEase=s,e.RoughEase=u,e.SlowMo=a,e.default=c;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* Flip 3.12.4 | ||
* Flip 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function p(t){var e=t.ownerDocument||t;!(w in t.style)&&"msTransform"in t.style&&(k=(w="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(y=window,d=new M,e){a=(g=e).documentElement,b=e.body,(s=g.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var i=e.createElement("div"),n=e.createElement("div"),r=e&&(e.body||e.firstElementChild);r&&r.appendChild&&(r.appendChild(i),i.appendChild(n),i.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),m=n.offsetParent!==i,r.removeChild(i))}return e}function t(){return y.pageYOffset||g.scrollTop||a.scrollTop||b.scrollTop||0}function u(){return y.pageXOffset||g.scrollLeft||a.scrollLeft||b.scrollLeft||0}function v(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function x(t,e){if(t.parentNode&&(g||p(t))){var i=v(t),n=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=i?e?"rect":"g":"div",a=2!==e?0:100,s=3===e?100:0,o="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=g.createElementNS?g.createElementNS(n.replace(/^https/,"http"),r):g.createElement(r);return e&&(i?(f=f||x(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+a+","+s+")"),f.appendChild(l)):(c||((c=x(t)).style.cssText=o),l.style.cssText=o+"width:0.1px;height:0.1px;top:"+s+"px;left:"+a+"px",c.appendChild(l))),l}throw"Need document and parent."}function z(t){var e,i=t.getCTM();return i||(e=t.style[w],t.style[w]="none",t.appendChild(s),i=s.getCTM(),t.removeChild(s),e?t.style[w]=e:t.style.removeProperty(w.replace(/([A-Z])/g,"-$1").toLowerCase())),i||d.clone()}function A(t,e){var i,n,r,a,s,o,l=v(t),u=t===l,p=l?C:E,h=t.parentNode;if(t===y)return t;if(p.length||p.push(x(t,1),x(t,2),x(t,3)),i=l?f:c,l)u?(a=-(r=z(t)).e/r.a,s=-r.f/r.d,n=d):t.getBBox?(r=t.getBBox(),a=(n=(n=t.transform?t.transform.baseVal:{}).numberOfItems?1<n.numberOfItems?function _consolidate(t){for(var e=new M,i=0;i<t.numberOfItems;i++)e.multiply(t.getItem(i).matrix);return e}(n):n.getItem(0).matrix:d).a*r.x+n.c*r.y,s=n.b*r.x+n.d*r.y):(n=new M,a=s=0),e&&"g"===t.tagName.toLowerCase()&&(a=s=0),(u?l:h).appendChild(i),i.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+s)+")");else{if(a=s=0,m)for(n=t.offsetParent,r=t;(r=r&&r.parentNode)&&r!==n&&r.parentNode;)4<(y.getComputedStyle(r)[w]+"").length&&(a=r.offsetLeft,s=r.offsetTop,r=0);if("absolute"!==(o=y.getComputedStyle(t)).position&&"fixed"!==o.position)for(n=t.offsetParent;h&&h!==n;)a+=h.scrollLeft||0,s+=h.scrollTop||0,h=h.parentNode;(r=i.style).top=t.offsetTop-s+"px",r.left=t.offsetLeft-a+"px",r[w]=o[w],r[k]=o[k],r.position="fixed"===o.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i}function B(t,e,i,n,r,a,s){return t.a=e,t.b=i,t.c=n,t.d=r,t.e=a,t.f=s,t}var g,y,a,b,c,f,d,s,m,i,w="transform",k=w+"Origin",C=[],E=[],M=((i=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,a=this.f,s=t*n-e*i||1e-10;return B(this,n/s,-e/s,-i/s,t/s,(i*a-n*r)/s,-(t*a-e*r)/s)},i.multiply=function multiply(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f,o=t.a,l=t.c,u=t.b,p=t.d,h=t.e,c=t.f;return B(this,o*e+u*n,o*i+u*r,l*e+p*n,l*i+p*r,a+h*e+c*n,s+h*i+c*r)},i.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},i.equals=function equals(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f;return e===t.a&&i===t.b&&n===t.c&&r===t.d&&a===t.e&&s===t.f},i.apply=function apply(t,e){void 0===e&&(e={});var i=t.x,n=t.y,r=this.a,a=this.b,s=this.c,o=this.d,l=this.e,u=this.f;return e.x=i*r+n*s+l||0,e.y=i*a+n*o+u||0,e},Matrix2D);function Matrix2D(t,e,i,n,r,a){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=0),B(this,t,e,i,n,r,a)}function getGlobalMatrix(e,i,n,r){if(!e||!e.parentNode||(g||p(e)).documentElement===e)return new M;var a=function _forceNonZeroScale(t){for(var e,i;t&&t!==b;)(i=t._gsap)&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e}(e),s=v(e)?C:E,o=A(e,n),l=s[0].getBoundingClientRect(),h=s[1].getBoundingClientRect(),c=s[2].getBoundingClientRect(),f=o.parentNode,d=!r&&function _isFixed(t){return"fixed"===y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(e),m=new M((h.left-l.left)/100,(h.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(d?0:u()),l.top+(d?0:t()));if(f.removeChild(o),a)for(l=a.length;l--;)(h=a[l]).scaleX=h.scaleY=0,h.renderTransform(1,h);return i?m.inverse():m}function L(t,e){return t.actions.forEach(function(t){return t.vars[e]&&t.vars[e](t)})}function S(t){return"string"==typeof t?t.split(" ").join("").split(","):t}function V(t){return I(t)[0]||console.warn("Element not found:",t)}function W(t){return Math.round(1e4*t)/1e4||0}function X(t,e,i){return t.forEach(function(t){return t.classList[i](e)})}function $(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function _(t,e){var i,n={};for(i in t)e[i]||(n[i]=t[i]);return n}function ba(t){var e=st[t]=S(t);return et[t]=e.concat(nt),e}function ea(t,e,i){return t.forEach(function(t){return t.d=function _getDOMDepth(t,e,i){void 0===i&&(i=0);for(var n=t.parentNode,r=1e3*Math.pow(10,i)*(e?-1:1),a=e?900*-r:0;t;)a+=r,t=t.previousSibling;return n?a+_getDOMDepth(n,e,i+1):a}(i?t.element:t.t,e)}),t.sort(function(t,e){return t.d-e.d}),t}function fa(t,e){for(var i,n,r=t.element.style,a=t.css=t.css||[],s=e.length;s--;)n=r[i=e[s]]||r.getPropertyValue(i),a.push(n?i:Y[i]||(Y[i]=$(i)),n);return r}function ga(t){var e=t.css,i=t.element.style,n=0;for(t.cache.uncache=1;n<e.length;n+=2)e[n+1]?i[e[n]]=e[n+1]:i.removeProperty(e[n]);!e[e.indexOf("transform")+1]&&i.translate&&(i.removeProperty("translate"),i.removeProperty("scale"),i.removeProperty("rotate"))}function ha(t,e){t.forEach(function(t){return t.a.cache.uncache=1}),e||t.finalStates.forEach(ga)}function ja(e,i,n){var r,a,s,o=e.element,l=e.width,p=e.height,h=e.uncache,c=e.getProp,f=o.style,d=4;if("object"!=typeof i&&(i=e),tt&&1!==n)return tt._abs.push({t:o,b:e,a:e,sd:0}),tt._final.push(function(){return(e.cache.uncache=1)&&ga(e)}),o;for(a="none"===c("display"),e.isVisible&&!a||(a&&(fa(e,["display"]).display=i.display),e.matrix=i.matrix,e.width=l=e.width||i.width,e.height=p=e.height||i.height),fa(e,R),s=window.getComputedStyle(o);d--;)f[R[d]]=s[R[d]];if(f.gridArea="1 / 1 / 1 / 1",f.transition="none",f.position="absolute",f.width=l+"px",f.height=p+"px",f.top||(f.top="0px"),f.left||(f.left="0px"),h)r=new pt(o);else if((r=_(e,D)).position="absolute",e.simple){var m=o.getBoundingClientRect();r.matrix=new M(1,0,0,1,m.left+u(),m.top+t())}else r.matrix=getGlobalMatrix(o,!1,!1,!0);return r=ot(r,e,!0),e.x=P(r.x,.01),e.y=P(r.y,.01),o}function ka(t,e){return!0!==e&&(e=I(e),t=t.filter(function(t){if(-1!==e.indexOf((t.sd<0?t.b:t.a).element))return!0;t.t._gsap.renderTransform(1),t.b.isVisible&&(t.t.style.width=t.b.width+"px",t.t.style.height=t.b.height+"px")})),t}function la(t){return ea(t,!0).forEach(function(t){return(t.a.isVisible||t.b.isVisible)&&ja(t.sd<0?t.b:t.a,t.b,1)})}function pa(t,e){var i,n=t.style||t;for(i in e)n[i]=e[i]}function ra(t){return t.map(function(t){return t.element})}function sa(t,e,i){return t&&e.length&&i.add(t(ra(e),i,new ut(e,0,!0)),0)}function ua(t,e){return t instanceof ut?t:new ut(t,e)}function va(t,e,i){var n=t.idLookup[i],r=t.alt[i];return!r.isVisible||(e.getElementState(r.element)||r).isVisible&&n.isVisible?n:r}function za(t){if(t!==l){var e=o.style,i=o.clientWidth===window.outerWidth,n=o.clientHeight===window.outerHeight,r=4;if(t&&(i||n)){for(;r--;)j[r]=e[H[r]];i&&(e.width=o.clientWidth+"px",e.overflowY="hidden"),n&&(e.height=o.clientHeight+"px",e.overflowX="hidden"),l=t}else if(l){for(;r--;)j[r]?e[H[r]]=j[r]:e.removeProperty($(H[r]));l=t}}}function Aa(t,e,r,i){t instanceof ut&&e instanceof ut||console.warn("Not a valid state object.");var a,s,o,l,u,p,h,c,f,n,d,m,g,v,y,x=(r=r||{}).clearProps,b=r.onEnter,w=r.onLeave,S=r.absolute,k=r.absoluteOnLeave,C=r.custom,V=r.delay,E=r.paused,M=r.repeat,B=r.repeatDelay,F=r.yoyo,L=r.toggleClass,I=r.nested,P=r.zIndex,A=r.scale,T=r.fade,O=r.stagger,N=r.spin,D=r.prune,Y=("props"in r?r:t).props,z=_(r,rt),R=Q.timeline({delay:V,paused:E,repeat:M,repeatDelay:B,yoyo:F,data:"isFlip"}),W=z,G=[],j=[],H=[],q=[],$=!0===N?1:N||0,Z="function"==typeof N?N:function(){return $},J=t.interrupted||e.interrupted,U=R[1!==i?"to":"from"];for(s in e.idLookup)d=e.alt[s]?va(e,t,s):e.idLookup[s],u=d.element,n=t.idLookup[s],!t.alt[s]||u!==n.element||!t.alt[s].isVisible&&d.isVisible||(n=t.alt[s]),n?(p={t:u,b:n,a:d,sd:n.element===u?0:d.isVisible?1:-1},H.push(p),p.sd&&(p.sd<0&&(p.b=d,p.a=n),J&&fa(p.b,Y?et[Y]:nt),T&&H.push(p.swap={t:n.element,b:p.b,a:p.a,sd:-p.sd,swap:p})),u._flip=n.element._flip=tt?tt.timeline:R):d.isVisible&&(H.push({t:u,b:_(d,{isVisible:1}),a:d,sd:0,entering:1}),u._flip=tt?tt.timeline:R);Y&&(st[Y]||ba(Y)).forEach(function(e){return z[e]=function(t){return H[t].a.props[e]}}),H.finalStates=f=[],m=function run(){for(ea(H),za(!0),l=0;l<H.length;l++)p=H[l],g=p.a,v=p.b,!D||g.isDifferent(v)||p.entering?(u=p.t,!I||p.sd<0||!l||(g.matrix=getGlobalMatrix(u,!1,!1,!0)),v.isVisible&&g.isVisible?(p.sd<0?(h=new pt(u,Y,t.simple),ot(h,g,A,0,0,h),h.matrix=getGlobalMatrix(u,!1,!1,!0),h.css=p.b.css,p.a=g=h,T&&(u.style.opacity=J?v.opacity:g.opacity),O&&q.push(u)):0<p.sd&&T&&(u.style.opacity=J?g.opacity-v.opacity:"0"),ot(g,v,A,Y)):v.isVisible!==g.isVisible&&(v.isVisible?g.isVisible||(v.css=g.css,j.push(v),H.splice(l--,1),S&&I&&ot(g,v,A,Y)):(g.isVisible&&G.push(g),H.splice(l--,1))),A||(u.style.maxWidth=Math.max(g.width,v.width)+"px",u.style.maxHeight=Math.max(g.height,v.height)+"px",u.style.minWidth=Math.min(g.width,v.width)+"px",u.style.minHeight=Math.min(g.height,v.height)+"px"),I&&L&&u.classList.add(L)):H.splice(l--,1),f.push(g);var e;if(L&&(e=f.map(function(t){return t.element}),I&&e.forEach(function(t){return t.classList.remove(L)})),za(!1),A?(z.scaleX=function(t){return H[t].a.scaleX},z.scaleY=function(t){return H[t].a.scaleY}):(z.width=function(t){return H[t].a.width+"px"},z.height=function(t){return H[t].a.height+"px"},z.autoRound=r.autoRound||!1),z.x=function(t){return H[t].a.x+"px"},z.y=function(t){return H[t].a.y+"px"},z.rotation=function(t){return H[t].a.rotation+(N?360*Z(t,c[t],c):0)},z.skewX=function(t){return H[t].a.skewX},c=H.map(function(t){return t.t}),!P&&0!==P||(z.modifiers={zIndex:function zIndex(){return P}},z.zIndex=P,z.immediateRender=!1!==r.immediateRender),T&&(z.opacity=function(t){return H[t].sd<0?0:0<H[t].sd?H[t].a.opacity:"+=0"}),q.length){O=Q.utils.distribute(O);var i=c.slice(q.length);z.stagger=function(t,e){return O(~q.indexOf(e)?c.indexOf(H[t].swap.t):t,e,i)}}if(it.forEach(function(t){return r[t]&&R.eventCallback(t,r[t],r[t+"Params"])}),C&&c.length)for(s in W=_(z,rt),"scale"in C&&(C.scaleX=C.scaleY=C.scale,delete C.scale),C)(a=_(C[s],at))[s]=z[s],!("duration"in a)&&"duration"in z&&(a.duration=z.duration),a.stagger=z.stagger,U.call(R,c,a,0),delete W[s];(c.length||j.length||G.length)&&(L&&R.add(function(){return X(e,L,R._zTime<0?"remove":"add")},0)&&!E&&X(e,L,"add"),c.length&&U.call(R,c,W,0)),sa(b,G,R),sa(w,j,R);var n=tt&&tt.timeline;n&&(n.add(R,0),tt._final.push(function(){return ha(H,!x)})),o=R.duration(),R.call(function(){var t=R.time()>=o;t&&!n&&ha(H,!x),L&&X(e,L,t?"remove":"add")})},k&&(S=H.filter(function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible}).map(function(t){return t.a.element})),tt?(S&&(y=tt._abs).push.apply(y,ka(H,S)),tt._run.push(m)):(S&&la(ka(H,S)),m());var K=tt?tt.timeline:R;return K.revert=function(){return lt(K,1,1)},K}function Da(t){for(var e,i=t.idLookup={},n=t.alt={},r=t.elementStates,a=r.length;a--;)i[(e=r[a]).id]?n[e.id]=e:i[e.id]=e}var I,Q,tt,r,o,P,T,l,n,h=1,F={},O=180/Math.PI,N=Math.PI/180,D={},Y={},et={},it=S("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),nt=S("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),rt={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},at={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},st={},R="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),G=function _parseElementState(t,e,i,n){return t instanceof pt?t:t instanceof ut?function _findElStateInState(t,e){return e&&t.idLookup[G(e).id]||t.elementStates[0]}(t,n):new pt("string"==typeof t?V(t)||console.warn(t+" not found"):t,e,i)},ot=function _fit(t,e,i,n,r,a){var s,o,l,u,p,h,c,f=t.element,d=t.cache,m=t.parent,g=t.x,v=t.y,y=e.width,x=e.height,b=e.scaleX,w=e.scaleY,S=e.rotation,k=e.bounds,_=a&&T&&T(f,"transform"),C=t,V=e.matrix,E=V.e,M=V.f,B=t.bounds.width!==k.width||t.bounds.height!==k.height||t.scaleX!==b||t.scaleY!==w||t.rotation!==S,F=!B&&t.simple&&e.simple&&!r;return F||!m?(b=w=1,S=s=0):(h=(p=function _getInverseGlobalMatrix(t){var e=t._gsap||Q.core.getCache(t);return e.gmCache===Q.ticker.frame?e.gMatrix:(e.gmCache=Q.ticker.frame,e.gMatrix=getGlobalMatrix(t,!0,!1,!0))}(m)).clone().multiply(e.ctm?e.matrix.clone().multiply(e.ctm):e.matrix),S=W(Math.atan2(h.b,h.a)*O),s=W(Math.atan2(h.c,h.d)*O+S)%360,b=Math.sqrt(Math.pow(h.a,2)+Math.pow(h.b,2)),w=Math.sqrt(Math.pow(h.c,2)+Math.pow(h.d,2))*Math.cos(s*N),r&&(r=I(r)[0],u=Q.getProperty(r),c=r.getBBox&&"function"==typeof r.getBBox&&r.getBBox(),C={scaleX:u("scaleX"),scaleY:u("scaleY"),width:c?c.width:Math.ceil(parseFloat(u("width","px"))),height:c?c.height:parseFloat(u("height","px"))}),d.rotation=S+"deg",d.skewX=s+"deg"),i?(b*=y!==C.width&&C.width?y/C.width:1,w*=x!==C.height&&C.height?x/C.height:1,d.scaleX=b,d.scaleY=w):(y=P(y*b/C.scaleX,0),x=P(x*w/C.scaleY,0),f.style.width=y+"px",f.style.height=x+"px"),n&&pa(f,e.props),F||!m?(g+=E-t.matrix.e,v+=M-t.matrix.f):B||m!==e.parent?(d.renderTransform(1,d),h=getGlobalMatrix(r||f,!1,!1,!0),o=p.apply({x:h.e,y:h.f}),g+=(l=p.apply({x:E,y:M})).x-o.x,v+=l.y-o.y):(p.e=p.f=0,g+=(l=p.apply({x:E-t.matrix.e,y:M-t.matrix.f})).x,v+=l.y),g=P(g,.02),v=P(v,.02),!a||a instanceof pt?(d.x=g+"px",d.y=v+"px",d.renderTransform(1,d)):_&&_.revert(),a&&(a.x=g,a.y=v,a.rotation=S,a.skewX=s,i?(a.scaleX=b,a.scaleY=w):(a.width=y,a.height=x)),a||d},j=[],H="width,height,overflowX,overflowY".split(","),lt=function _killFlip(t,e,i){if(t&&t.progress()<1&&(!t.paused()||i))return e&&(function _interrupt(t){t.vars.onInterrupt&&t.vars.onInterrupt.apply(t,t.vars.onInterruptParams||[]),t.getChildren(!0,!1,!0).forEach(_interrupt)}(t),e<2&&t.progress(1),t.kill()),!0},ut=((n=FlipState.prototype).update=function update(t){var e=this;return this.elementStates=this.targets.map(function(t){return new pt(t,e.props,e.simple)}),Da(this),this.interrupt(t),this.recordInlineStyles(),this},n.clear=function clear(){return this.targets.length=this.elementStates.length=0,Da(this),this},n.fit=function fit(t,e,i){for(var n,r,a=ea(this.elementStates.slice(0),!1,!0),s=(t||this).idLookup,o=0;o<a.length;o++)n=a[o],i&&(n.matrix=getGlobalMatrix(n.element,!1,!1,!0)),(r=s[n.id])&&ot(n,r,e,!0,0,n),n.matrix=getGlobalMatrix(n.element,!1,!1,!0);return this},n.getProperty=function getProperty(t,e){var i=this.getElementState(t)||D;return(e in i?i:i.props||D)[e]},n.add=function add(t){for(var e,i,n,r=t.targets.length,a=this.idLookup,s=this.alt;r--;)(n=a[(i=t.elementStates[r]).id])&&(i.element===n.element||s[i.id]&&s[i.id].element===i.element)?(e=this.elementStates.indexOf(i.element===n.element?n:s[i.id]),this.targets.splice(e,1,t.targets[r]),this.elementStates.splice(e,1,i)):(this.targets.push(t.targets[r]),this.elementStates.push(i));return t.interrupted&&(this.interrupted=!0),t.simple||(this.simple=!1),Da(this),this},n.compare=function compare(t){function kh(t,e,i){return(t.isVisible!==e.isVisible?t.isVisible?f:d:t.isVisible?c:h).push(i)&&m.push(i)}function lh(t,e,i){return m.indexOf(i)<0&&kh(t,e,i)}var e,i,n,r,a,s,o,l,u=t.idLookup,p=this.idLookup,h=[],c=[],f=[],d=[],m=[],g=t.alt,v=this.alt;for(n in u)a=g[n],s=v[n],r=(e=a?va(t,this,n):u[n]).element,i=p[n],s?(l=i.isVisible||!s.isVisible&&r===i.element?i:s,(o=!a||e.isVisible||a.isVisible||l.element!==a.element?e:a).isVisible&&l.isVisible&&o.element!==l.element?((o.isDifferent(l)?c:h).push(o.element,l.element),m.push(o.element,l.element)):kh(o,l,o.element),a&&o.element===a.element&&(a=u[n]),lh(o.element!==i.element&&a?a:o,i,i.element),lh(a&&a.element===s.element?a:o,s,s.element),a&&lh(a,s.element===a.element?s:i,a.element)):(i?i.isDifferent(e)?kh(e,i,r):h.push(r):f.push(r),a&&lh(a,i,a.element));for(n in p)u[n]||(d.push(p[n].element),v[n]&&d.push(v[n].element));return{changed:c,unchanged:h,enter:f,leave:d}},n.recordInlineStyles=function recordInlineStyles(){for(var t=et[this.props]||nt,e=this.elementStates.length;e--;)fa(this.elementStates[e],t)},n.interrupt=function interrupt(n){var r=this,a=[];this.targets.forEach(function(t){var e=t._flip,i=lt(e,n?0:1);n&&i&&a.indexOf(e)<0&&e.add(function(){return r.updateVisibility()}),i&&a.push(e)}),!n&&a.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!a.length)},n.updateVisibility=function updateVisibility(){this.elementStates.forEach(function(t){var e=t.element.getBoundingClientRect();t.isVisible=!!(e.width||e.height||e.top||e.left),t.uncache=1})},n.getElementState=function getElementState(t){return this.elementStates[this.targets.indexOf(V(t))]},n.makeAbsolute=function makeAbsolute(){return ea(this.elementStates.slice(0),!0,!0).map(ja)},FlipState);function FlipState(t,e,i){if(this.props=e&&e.props,this.simple=!(!e||!e.simple),i)this.targets=ra(t),this.elementStates=t,Da(this);else{this.targets=I(t);var n=e&&(!1===e.kill||e.batch&&!e.kill);tt&&!n&&tt._kill.push(this),this.update(n||!!tt)}}var q,pt=((q=ElementState.prototype).isDifferent=function isDifferent(t){var e=this.bounds,i=t.bounds;return e.top!==i.top||e.left!==i.left||e.width!==i.width||e.height!==i.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},q.update=function update(e,i){var n=this,r=n.element,a=Q.getProperty(r),s=Q.core.getCache(r),o=r.getBoundingClientRect(),l=r.getBBox&&"function"==typeof r.getBBox&&"svg"!==r.nodeName.toLowerCase()&&r.getBBox(),p=i?new M(1,0,0,1,o.left+u(),o.top+t()):getGlobalMatrix(r,!1,!1,!0);n.getProp=a,n.element=r,n.id=function _getID(t){var e=t.getAttribute("data-flip-id");return e||t.setAttribute("data-flip-id",e="auto-"+h++),e}(r),n.matrix=p,n.cache=s,n.bounds=o,n.isVisible=!!(o.width||o.height||o.left||o.top),n.display=a("display"),n.position=a("position"),n.parent=r.parentNode,n.x=a("x"),n.y=a("y"),n.scaleX=s.scaleX,n.scaleY=s.scaleY,n.rotation=a("rotation"),n.skewX=a("skewX"),n.opacity=a("opacity"),n.width=l?l.width:P(a("width","px"),.04),n.height=l?l.height:P(a("height","px"),.04),e&&function _recordProps(t,e){for(var i=Q.getProperty(t.element,null,"native"),n=t.props={},r=e.length;r--;)n[e[r]]=(i(e[r])+"").trim();n.zIndex&&(n.zIndex=parseFloat(n.zIndex)||0)}(n,st[e]||ba(e)),n.ctm=r.getCTM&&"svg"===r.nodeName.toLowerCase()&&z(r).inverse(),n.simple=i||1===W(p.a)&&!W(p.b)&&!W(p.c)&&1===W(p.d),n.uncache=0},ElementState);function ElementState(t,e,i){this.element=t,this.update(e,i)}var Z,J=((Z=FlipAction.prototype).getStateById=function getStateById(t){for(var e=this.states.length;e--;)if(this.states[e].idLookup[t])return this.states[e]},Z.kill=function kill(){this.batch.remove(this)},FlipAction);function FlipAction(t,e){this.vars=t,this.batch=e,this.states=[],this.timeline=e.timeline}var U,K=((U=FlipBatch.prototype).add=function add(e){var t=this.actions.filter(function(t){return t.vars===e});return t.length?t[0]:(t=new J("function"==typeof e?{animate:e}:e,this),this.actions.push(t),t)},U.remove=function remove(t){var e=this.actions.indexOf(t);return 0<=e&&this.actions.splice(e,1),this},U.getState=function getState(e){var i=this,t=tt,n=r;return(tt=this).state.clear(),this._kill.length=0,this.actions.forEach(function(t){t.vars.getState&&(t.states.length=0,(r=t).state=t.vars.getState(t)),e&&t.states.forEach(function(t){return i.state.add(t)})}),r=n,tt=t,this.killConflicts(),this},U.animate=function animate(){var t,e,i=this,n=tt,r=this.timeline,a=this.actions.length;for(tt=this,r.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(t){t.vars.animate&&t.vars.animate(t);var e,i,n=t.vars.onEnter,r=t.vars.onLeave,a=t.targets;a&&a.length&&(n||r)&&(e=new ut,t.states.forEach(function(t){return e.add(t)}),(i=e.compare(ht.getState(a))).enter.length&&n&&n(i.enter),i.leave.length&&r&&r(i.leave))}),la(this._abs),this._run.forEach(function(t){return t()}),e=r.duration(),t=this._final.slice(0),r.add(function(){e<=r.time()&&(t.forEach(function(t){return t()}),L(i,"onComplete"))}),tt=n;a--;)this.actions[a].vars.once&&this.actions[a].kill();return L(this,"onStart"),r.restart(),this},U.loadState=function loadState(n){n=n||function done(){return 0};var r=[];return this.actions.forEach(function(e){if(e.vars.loadState){var i,t=function f(t){t&&(e.targets=t),~(i=r.indexOf(f))&&(r.splice(i,1),r.length||n())};r.push(t),e.vars.loadState(t)}}),r.length||n(),this},U.setState=function setState(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},U.killConflicts=function killConflicts(e){return this.state.interrupt(e),this._kill.forEach(function(t){return t.interrupt(e)}),this},U.run=function run(t,e){var i=this;return this!==tt&&(t||this.getState(e),this.loadState(function(){i._killed||(i.setState(),i.animate())})),this},U.clear=function clear(t){this.state.clear(),t||(this.actions.length=0)},U.getStateById=function getStateById(t){for(var e,i=this.actions.length;i--;)if(e=this.actions[i].getStateById(t))return e;return this.state.idLookup[t]&&this.state},U.kill=function kill(){this._killed=1,this.clear(),delete F[this.id]},FlipBatch);function FlipBatch(t){this.id=t,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new ut,this.timeline=Q.timeline()}var ht=(Flip.getState=function getState(t,e){var i=ua(t,e);return r&&r.states.push(i),e&&e.batch&&Flip.batch(e.batch).state.add(i),i},Flip.from=function from(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),Aa(t,ua(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},Flip.to=function to(t,e){return Aa(t,ua(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},Flip.fromTo=function fromTo(t,e,i){return Aa(t,e,i)},Flip.fit=function fit(t,e,i){var n=i?_(i,at):{},r=i||n,a=r.absolute,s=r.scale,o=r.getVars,l=r.props,u=r.runBackwards,p=r.onComplete,h=r.simple,c=i&&i.fitChild&&V(i.fitChild),f=G(e,l,h,t),d=G(t,0,h,f),m=l?et[l]:nt,g=Q.context();return l&&pa(n,f.props),fa(d,m),u&&("immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){ga(d),p&&p.apply(this,arguments)}),a&&ja(d,f),n=ot(d,f,s||c,l,c,n.duration||o?n:0),g&&!o&&g.add(function(){return function(){return ga(d)}}),o?n:n.duration?Q.to(d.element,n):null},Flip.makeAbsolute=function makeAbsolute(t,e){return(t instanceof ut?t:new ut(t,e)).makeAbsolute()},Flip.batch=function batch(t){return F[t=t||"default"]||(F[t]=new K(t))},Flip.killFlipsOf=function killFlipsOf(t,e){(t instanceof ut?t.targets:I(t)).forEach(function(t){return t&<(t._flip,!1!==e?1:2)})},Flip.isFlipping=function isFlipping(t){var e=Flip.getByTarget(t);return!!e&&e.isActive()},Flip.getByTarget=function getByTarget(t){return(V(t)||D)._flip},Flip.getElementState=function getElementState(t,e){return new pt(V(t),e)},Flip.convertCoordinates=function convertCoordinates(t,e,i){var n=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return i?n.apply(i):n},Flip.register=function register(t){if(o="undefined"!=typeof document&&document.body){Q=t,p(o),I=Q.utils.toArray,T=Q.core.getStyleSaver;var i=Q.utils.snap(.1);P=function _closestTenth(t,e){return i(parseFloat(t)+e)}}},Flip);function Flip(){}ht.version="3.12.4","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(ht),e.Flip=ht,e.default=ht;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function p(t){var e=t.ownerDocument||t;!(w in t.style)&&"msTransform"in t.style&&(k=(w="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(y=window,d=new M,e){a=(g=e).documentElement,b=e.body,(s=g.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var i=e.createElement("div"),n=e.createElement("div"),r=e&&(e.body||e.firstElementChild);r&&r.appendChild&&(r.appendChild(i),i.appendChild(n),i.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),m=n.offsetParent!==i,r.removeChild(i))}return e}function t(){return y.pageYOffset||g.scrollTop||a.scrollTop||b.scrollTop||0}function u(){return y.pageXOffset||g.scrollLeft||a.scrollLeft||b.scrollLeft||0}function v(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function x(t,e){if(t.parentNode&&(g||p(t))){var i=v(t),n=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=i?e?"rect":"g":"div",a=2!==e?0:100,s=3===e?100:0,o="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=g.createElementNS?g.createElementNS(n.replace(/^https/,"http"),r):g.createElement(r);return e&&(i?(f=f||x(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+a+","+s+")"),f.appendChild(l)):(c||((c=x(t)).style.cssText=o),l.style.cssText=o+"width:0.1px;height:0.1px;top:"+s+"px;left:"+a+"px",c.appendChild(l))),l}throw"Need document and parent."}function z(t){var e,i=t.getCTM();return i||(e=t.style[w],t.style[w]="none",t.appendChild(s),i=s.getCTM(),t.removeChild(s),e?t.style[w]=e:t.style.removeProperty(w.replace(/([A-Z])/g,"-$1").toLowerCase())),i||d.clone()}function A(t,e){var i,n,r,a,s,o,l=v(t),u=t===l,p=l?C:E,h=t.parentNode;if(t===y)return t;if(p.length||p.push(x(t,1),x(t,2),x(t,3)),i=l?f:c,l)u?(a=-(r=z(t)).e/r.a,s=-r.f/r.d,n=d):t.getBBox?(r=t.getBBox(),a=(n=(n=t.transform?t.transform.baseVal:{}).numberOfItems?1<n.numberOfItems?function _consolidate(t){for(var e=new M,i=0;i<t.numberOfItems;i++)e.multiply(t.getItem(i).matrix);return e}(n):n.getItem(0).matrix:d).a*r.x+n.c*r.y,s=n.b*r.x+n.d*r.y):(n=new M,a=s=0),e&&"g"===t.tagName.toLowerCase()&&(a=s=0),(u?l:h).appendChild(i),i.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+s)+")");else{if(a=s=0,m)for(n=t.offsetParent,r=t;(r=r&&r.parentNode)&&r!==n&&r.parentNode;)4<(y.getComputedStyle(r)[w]+"").length&&(a=r.offsetLeft,s=r.offsetTop,r=0);if("absolute"!==(o=y.getComputedStyle(t)).position&&"fixed"!==o.position)for(n=t.offsetParent;h&&h!==n;)a+=h.scrollLeft||0,s+=h.scrollTop||0,h=h.parentNode;(r=i.style).top=t.offsetTop-s+"px",r.left=t.offsetLeft-a+"px",r[w]=o[w],r[k]=o[k],r.position="fixed"===o.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i}function B(t,e,i,n,r,a,s){return t.a=e,t.b=i,t.c=n,t.d=r,t.e=a,t.f=s,t}var g,y,a,b,c,f,d,s,m,i,w="transform",k=w+"Origin",C=[],E=[],M=((i=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,a=this.f,s=t*n-e*i||1e-10;return B(this,n/s,-e/s,-i/s,t/s,(i*a-n*r)/s,-(t*a-e*r)/s)},i.multiply=function multiply(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f,o=t.a,l=t.c,u=t.b,p=t.d,h=t.e,c=t.f;return B(this,o*e+u*n,o*i+u*r,l*e+p*n,l*i+p*r,a+h*e+c*n,s+h*i+c*r)},i.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},i.equals=function equals(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f;return e===t.a&&i===t.b&&n===t.c&&r===t.d&&a===t.e&&s===t.f},i.apply=function apply(t,e){void 0===e&&(e={});var i=t.x,n=t.y,r=this.a,a=this.b,s=this.c,o=this.d,l=this.e,u=this.f;return e.x=i*r+n*s+l||0,e.y=i*a+n*o+u||0,e},Matrix2D);function Matrix2D(t,e,i,n,r,a){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=0),B(this,t,e,i,n,r,a)}function getGlobalMatrix(e,i,n,r){if(!e||!e.parentNode||(g||p(e)).documentElement===e)return new M;var a=function _forceNonZeroScale(t){for(var e,i;t&&t!==b;)(i=t._gsap)&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e}(e),s=v(e)?C:E,o=A(e,n),l=s[0].getBoundingClientRect(),h=s[1].getBoundingClientRect(),c=s[2].getBoundingClientRect(),f=o.parentNode,d=!r&&function _isFixed(t){return"fixed"===y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(e),m=new M((h.left-l.left)/100,(h.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(d?0:u()),l.top+(d?0:t()));if(f.removeChild(o),a)for(l=a.length;l--;)(h=a[l]).scaleX=h.scaleY=0,h.renderTransform(1,h);return i?m.inverse():m}function L(t,e){return t.actions.forEach(function(t){return t.vars[e]&&t.vars[e](t)})}function S(t){return"string"==typeof t?t.split(" ").join("").split(","):t}function V(t){return I(t)[0]||console.warn("Element not found:",t)}function W(t){return Math.round(1e4*t)/1e4||0}function X(t,e,i){return t.forEach(function(t){return t.classList[i](e)})}function $(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function _(t,e){var i,n={};for(i in t)e[i]||(n[i]=t[i]);return n}function ba(t){var e=st[t]=S(t);return et[t]=e.concat(nt),e}function ea(t,e,i){return t.forEach(function(t){return t.d=function _getDOMDepth(t,e,i){void 0===i&&(i=0);for(var n=t.parentNode,r=1e3*Math.pow(10,i)*(e?-1:1),a=e?900*-r:0;t;)a+=r,t=t.previousSibling;return n?a+_getDOMDepth(n,e,i+1):a}(i?t.element:t.t,e)}),t.sort(function(t,e){return t.d-e.d}),t}function fa(t,e){for(var i,n,r=t.element.style,a=t.css=t.css||[],s=e.length;s--;)n=r[i=e[s]]||r.getPropertyValue(i),a.push(n?i:Y[i]||(Y[i]=$(i)),n);return r}function ga(t){var e=t.css,i=t.element.style,n=0;for(t.cache.uncache=1;n<e.length;n+=2)e[n+1]?i[e[n]]=e[n+1]:i.removeProperty(e[n]);!e[e.indexOf("transform")+1]&&i.translate&&(i.removeProperty("translate"),i.removeProperty("scale"),i.removeProperty("rotate"))}function ha(t,e){t.forEach(function(t){return t.a.cache.uncache=1}),e||t.finalStates.forEach(ga)}function ja(e,i,n){var r,a,s,o=e.element,l=e.width,p=e.height,h=e.uncache,c=e.getProp,f=o.style,d=4;if("object"!=typeof i&&(i=e),tt&&1!==n)return tt._abs.push({t:o,b:e,a:e,sd:0}),tt._final.push(function(){return(e.cache.uncache=1)&&ga(e)}),o;for(a="none"===c("display"),e.isVisible&&!a||(a&&(fa(e,["display"]).display=i.display),e.matrix=i.matrix,e.width=l=e.width||i.width,e.height=p=e.height||i.height),fa(e,R),s=window.getComputedStyle(o);d--;)f[R[d]]=s[R[d]];if(f.gridArea="1 / 1 / 1 / 1",f.transition="none",f.position="absolute",f.width=l+"px",f.height=p+"px",f.top||(f.top="0px"),f.left||(f.left="0px"),h)r=new pt(o);else if((r=_(e,D)).position="absolute",e.simple){var m=o.getBoundingClientRect();r.matrix=new M(1,0,0,1,m.left+u(),m.top+t())}else r.matrix=getGlobalMatrix(o,!1,!1,!0);return r=ot(r,e,!0),e.x=P(r.x,.01),e.y=P(r.y,.01),o}function ka(t,e){return!0!==e&&(e=I(e),t=t.filter(function(t){if(-1!==e.indexOf((t.sd<0?t.b:t.a).element))return!0;t.t._gsap.renderTransform(1),t.b.isVisible&&(t.t.style.width=t.b.width+"px",t.t.style.height=t.b.height+"px")})),t}function la(t){return ea(t,!0).forEach(function(t){return(t.a.isVisible||t.b.isVisible)&&ja(t.sd<0?t.b:t.a,t.b,1)})}function pa(t,e){var i,n=t.style||t;for(i in e)n[i]=e[i]}function ra(t){return t.map(function(t){return t.element})}function sa(t,e,i){return t&&e.length&&i.add(t(ra(e),i,new ut(e,0,!0)),0)}function ua(t,e){return t instanceof ut?t:new ut(t,e)}function va(t,e,i){var n=t.idLookup[i],r=t.alt[i];return!r.isVisible||(e.getElementState(r.element)||r).isVisible&&n.isVisible?n:r}function za(t){if(t!==l){var e=o.style,i=o.clientWidth===window.outerWidth,n=o.clientHeight===window.outerHeight,r=4;if(t&&(i||n)){for(;r--;)j[r]=e[H[r]];i&&(e.width=o.clientWidth+"px",e.overflowY="hidden"),n&&(e.height=o.clientHeight+"px",e.overflowX="hidden"),l=t}else if(l){for(;r--;)j[r]?e[H[r]]=j[r]:e.removeProperty($(H[r]));l=t}}}function Aa(t,e,r,i){t instanceof ut&&e instanceof ut||console.warn("Not a valid state object.");var a,s,o,l,u,p,h,c,f,n,d,m,g,v,y,x=(r=r||{}).clearProps,b=r.onEnter,w=r.onLeave,S=r.absolute,k=r.absoluteOnLeave,C=r.custom,V=r.delay,E=r.paused,M=r.repeat,B=r.repeatDelay,F=r.yoyo,L=r.toggleClass,I=r.nested,P=r.zIndex,A=r.scale,T=r.fade,O=r.stagger,N=r.spin,D=r.prune,Y=("props"in r?r:t).props,z=_(r,rt),R=Q.timeline({delay:V,paused:E,repeat:M,repeatDelay:B,yoyo:F,data:"isFlip"}),W=z,G=[],j=[],H=[],q=[],$=!0===N?1:N||0,Z="function"==typeof N?N:function(){return $},J=t.interrupted||e.interrupted,U=R[1!==i?"to":"from"];for(s in e.idLookup)d=e.alt[s]?va(e,t,s):e.idLookup[s],u=d.element,n=t.idLookup[s],!t.alt[s]||u!==n.element||!t.alt[s].isVisible&&d.isVisible||(n=t.alt[s]),n?(p={t:u,b:n,a:d,sd:n.element===u?0:d.isVisible?1:-1},H.push(p),p.sd&&(p.sd<0&&(p.b=d,p.a=n),J&&fa(p.b,Y?et[Y]:nt),T&&H.push(p.swap={t:n.element,b:p.b,a:p.a,sd:-p.sd,swap:p})),u._flip=n.element._flip=tt?tt.timeline:R):d.isVisible&&(H.push({t:u,b:_(d,{isVisible:1}),a:d,sd:0,entering:1}),u._flip=tt?tt.timeline:R);Y&&(st[Y]||ba(Y)).forEach(function(e){return z[e]=function(t){return H[t].a.props[e]}}),H.finalStates=f=[],m=function run(){for(ea(H),za(!0),l=0;l<H.length;l++)p=H[l],g=p.a,v=p.b,!D||g.isDifferent(v)||p.entering?(u=p.t,!I||p.sd<0||!l||(g.matrix=getGlobalMatrix(u,!1,!1,!0)),v.isVisible&&g.isVisible?(p.sd<0?(h=new pt(u,Y,t.simple),ot(h,g,A,0,0,h),h.matrix=getGlobalMatrix(u,!1,!1,!0),h.css=p.b.css,p.a=g=h,T&&(u.style.opacity=J?v.opacity:g.opacity),O&&q.push(u)):0<p.sd&&T&&(u.style.opacity=J?g.opacity-v.opacity:"0"),ot(g,v,A,Y)):v.isVisible!==g.isVisible&&(v.isVisible?g.isVisible||(v.css=g.css,j.push(v),H.splice(l--,1),S&&I&&ot(g,v,A,Y)):(g.isVisible&&G.push(g),H.splice(l--,1))),A||(u.style.maxWidth=Math.max(g.width,v.width)+"px",u.style.maxHeight=Math.max(g.height,v.height)+"px",u.style.minWidth=Math.min(g.width,v.width)+"px",u.style.minHeight=Math.min(g.height,v.height)+"px"),I&&L&&u.classList.add(L)):H.splice(l--,1),f.push(g);var e;if(L&&(e=f.map(function(t){return t.element}),I&&e.forEach(function(t){return t.classList.remove(L)})),za(!1),A?(z.scaleX=function(t){return H[t].a.scaleX},z.scaleY=function(t){return H[t].a.scaleY}):(z.width=function(t){return H[t].a.width+"px"},z.height=function(t){return H[t].a.height+"px"},z.autoRound=r.autoRound||!1),z.x=function(t){return H[t].a.x+"px"},z.y=function(t){return H[t].a.y+"px"},z.rotation=function(t){return H[t].a.rotation+(N?360*Z(t,c[t],c):0)},z.skewX=function(t){return H[t].a.skewX},c=H.map(function(t){return t.t}),!P&&0!==P||(z.modifiers={zIndex:function zIndex(){return P}},z.zIndex=P,z.immediateRender=!1!==r.immediateRender),T&&(z.opacity=function(t){return H[t].sd<0?0:0<H[t].sd?H[t].a.opacity:"+=0"}),q.length){O=Q.utils.distribute(O);var i=c.slice(q.length);z.stagger=function(t,e){return O(~q.indexOf(e)?c.indexOf(H[t].swap.t):t,e,i)}}if(it.forEach(function(t){return r[t]&&R.eventCallback(t,r[t],r[t+"Params"])}),C&&c.length)for(s in W=_(z,rt),"scale"in C&&(C.scaleX=C.scaleY=C.scale,delete C.scale),C)(a=_(C[s],at))[s]=z[s],!("duration"in a)&&"duration"in z&&(a.duration=z.duration),a.stagger=z.stagger,U.call(R,c,a,0),delete W[s];(c.length||j.length||G.length)&&(L&&R.add(function(){return X(e,L,R._zTime<0?"remove":"add")},0)&&!E&&X(e,L,"add"),c.length&&U.call(R,c,W,0)),sa(b,G,R),sa(w,j,R);var n=tt&&tt.timeline;n&&(n.add(R,0),tt._final.push(function(){return ha(H,!x)})),o=R.duration(),R.call(function(){var t=R.time()>=o;t&&!n&&ha(H,!x),L&&X(e,L,t?"remove":"add")})},k&&(S=H.filter(function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible}).map(function(t){return t.a.element})),tt?(S&&(y=tt._abs).push.apply(y,ka(H,S)),tt._run.push(m)):(S&&la(ka(H,S)),m());var K=tt?tt.timeline:R;return K.revert=function(){return lt(K,1,1)},K}function Da(t){for(var e,i=t.idLookup={},n=t.alt={},r=t.elementStates,a=r.length;a--;)i[(e=r[a]).id]?n[e.id]=e:i[e.id]=e}var I,Q,tt,r,o,P,T,l,n,h=1,F={},O=180/Math.PI,N=Math.PI/180,D={},Y={},et={},it=S("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),nt=S("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),rt={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},at={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},st={},R="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),G=function _parseElementState(t,e,i,n){return t instanceof pt?t:t instanceof ut?function _findElStateInState(t,e){return e&&t.idLookup[G(e).id]||t.elementStates[0]}(t,n):new pt("string"==typeof t?V(t)||console.warn(t+" not found"):t,e,i)},ot=function _fit(t,e,i,n,r,a){var s,o,l,u,p,h,c,f=t.element,d=t.cache,m=t.parent,g=t.x,v=t.y,y=e.width,x=e.height,b=e.scaleX,w=e.scaleY,S=e.rotation,k=e.bounds,_=a&&T&&T(f,"transform"),C=t,V=e.matrix,E=V.e,M=V.f,B=t.bounds.width!==k.width||t.bounds.height!==k.height||t.scaleX!==b||t.scaleY!==w||t.rotation!==S,F=!B&&t.simple&&e.simple&&!r;return F||!m?(b=w=1,S=s=0):(h=(p=function _getInverseGlobalMatrix(t){var e=t._gsap||Q.core.getCache(t);return e.gmCache===Q.ticker.frame?e.gMatrix:(e.gmCache=Q.ticker.frame,e.gMatrix=getGlobalMatrix(t,!0,!1,!0))}(m)).clone().multiply(e.ctm?e.matrix.clone().multiply(e.ctm):e.matrix),S=W(Math.atan2(h.b,h.a)*O),s=W(Math.atan2(h.c,h.d)*O+S)%360,b=Math.sqrt(Math.pow(h.a,2)+Math.pow(h.b,2)),w=Math.sqrt(Math.pow(h.c,2)+Math.pow(h.d,2))*Math.cos(s*N),r&&(r=I(r)[0],u=Q.getProperty(r),c=r.getBBox&&"function"==typeof r.getBBox&&r.getBBox(),C={scaleX:u("scaleX"),scaleY:u("scaleY"),width:c?c.width:Math.ceil(parseFloat(u("width","px"))),height:c?c.height:parseFloat(u("height","px"))}),d.rotation=S+"deg",d.skewX=s+"deg"),i?(b*=y!==C.width&&C.width?y/C.width:1,w*=x!==C.height&&C.height?x/C.height:1,d.scaleX=b,d.scaleY=w):(y=P(y*b/C.scaleX,0),x=P(x*w/C.scaleY,0),f.style.width=y+"px",f.style.height=x+"px"),n&&pa(f,e.props),F||!m?(g+=E-t.matrix.e,v+=M-t.matrix.f):B||m!==e.parent?(d.renderTransform(1,d),h=getGlobalMatrix(r||f,!1,!1,!0),o=p.apply({x:h.e,y:h.f}),g+=(l=p.apply({x:E,y:M})).x-o.x,v+=l.y-o.y):(p.e=p.f=0,g+=(l=p.apply({x:E-t.matrix.e,y:M-t.matrix.f})).x,v+=l.y),g=P(g,.02),v=P(v,.02),!a||a instanceof pt?(d.x=g+"px",d.y=v+"px",d.renderTransform(1,d)):_&&_.revert(),a&&(a.x=g,a.y=v,a.rotation=S,a.skewX=s,i?(a.scaleX=b,a.scaleY=w):(a.width=y,a.height=x)),a||d},j=[],H="width,height,overflowX,overflowY".split(","),lt=function _killFlip(t,e,i){if(t&&t.progress()<1&&(!t.paused()||i))return e&&(function _interrupt(t){t.vars.onInterrupt&&t.vars.onInterrupt.apply(t,t.vars.onInterruptParams||[]),t.getChildren(!0,!1,!0).forEach(_interrupt)}(t),e<2&&t.progress(1),t.kill()),!0},ut=((n=FlipState.prototype).update=function update(t){var e=this;return this.elementStates=this.targets.map(function(t){return new pt(t,e.props,e.simple)}),Da(this),this.interrupt(t),this.recordInlineStyles(),this},n.clear=function clear(){return this.targets.length=this.elementStates.length=0,Da(this),this},n.fit=function fit(t,e,i){for(var n,r,a=ea(this.elementStates.slice(0),!1,!0),s=(t||this).idLookup,o=0;o<a.length;o++)n=a[o],i&&(n.matrix=getGlobalMatrix(n.element,!1,!1,!0)),(r=s[n.id])&&ot(n,r,e,!0,0,n),n.matrix=getGlobalMatrix(n.element,!1,!1,!0);return this},n.getProperty=function getProperty(t,e){var i=this.getElementState(t)||D;return(e in i?i:i.props||D)[e]},n.add=function add(t){for(var e,i,n,r=t.targets.length,a=this.idLookup,s=this.alt;r--;)(n=a[(i=t.elementStates[r]).id])&&(i.element===n.element||s[i.id]&&s[i.id].element===i.element)?(e=this.elementStates.indexOf(i.element===n.element?n:s[i.id]),this.targets.splice(e,1,t.targets[r]),this.elementStates.splice(e,1,i)):(this.targets.push(t.targets[r]),this.elementStates.push(i));return t.interrupted&&(this.interrupted=!0),t.simple||(this.simple=!1),Da(this),this},n.compare=function compare(t){function kh(t,e,i){return(t.isVisible!==e.isVisible?t.isVisible?f:d:t.isVisible?c:h).push(i)&&m.push(i)}function lh(t,e,i){return m.indexOf(i)<0&&kh(t,e,i)}var e,i,n,r,a,s,o,l,u=t.idLookup,p=this.idLookup,h=[],c=[],f=[],d=[],m=[],g=t.alt,v=this.alt;for(n in u)a=g[n],s=v[n],r=(e=a?va(t,this,n):u[n]).element,i=p[n],s?(l=i.isVisible||!s.isVisible&&r===i.element?i:s,(o=!a||e.isVisible||a.isVisible||l.element!==a.element?e:a).isVisible&&l.isVisible&&o.element!==l.element?((o.isDifferent(l)?c:h).push(o.element,l.element),m.push(o.element,l.element)):kh(o,l,o.element),a&&o.element===a.element&&(a=u[n]),lh(o.element!==i.element&&a?a:o,i,i.element),lh(a&&a.element===s.element?a:o,s,s.element),a&&lh(a,s.element===a.element?s:i,a.element)):(i?i.isDifferent(e)?kh(e,i,r):h.push(r):f.push(r),a&&lh(a,i,a.element));for(n in p)u[n]||(d.push(p[n].element),v[n]&&d.push(v[n].element));return{changed:c,unchanged:h,enter:f,leave:d}},n.recordInlineStyles=function recordInlineStyles(){for(var t=et[this.props]||nt,e=this.elementStates.length;e--;)fa(this.elementStates[e],t)},n.interrupt=function interrupt(n){var r=this,a=[];this.targets.forEach(function(t){var e=t._flip,i=lt(e,n?0:1);n&&i&&a.indexOf(e)<0&&e.add(function(){return r.updateVisibility()}),i&&a.push(e)}),!n&&a.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!a.length)},n.updateVisibility=function updateVisibility(){this.elementStates.forEach(function(t){var e=t.element.getBoundingClientRect();t.isVisible=!!(e.width||e.height||e.top||e.left),t.uncache=1})},n.getElementState=function getElementState(t){return this.elementStates[this.targets.indexOf(V(t))]},n.makeAbsolute=function makeAbsolute(){return ea(this.elementStates.slice(0),!0,!0).map(ja)},FlipState);function FlipState(t,e,i){if(this.props=e&&e.props,this.simple=!(!e||!e.simple),i)this.targets=ra(t),this.elementStates=t,Da(this);else{this.targets=I(t);var n=e&&(!1===e.kill||e.batch&&!e.kill);tt&&!n&&tt._kill.push(this),this.update(n||!!tt)}}var q,pt=((q=ElementState.prototype).isDifferent=function isDifferent(t){var e=this.bounds,i=t.bounds;return e.top!==i.top||e.left!==i.left||e.width!==i.width||e.height!==i.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},q.update=function update(e,i){var n=this,r=n.element,a=Q.getProperty(r),s=Q.core.getCache(r),o=r.getBoundingClientRect(),l=r.getBBox&&"function"==typeof r.getBBox&&"svg"!==r.nodeName.toLowerCase()&&r.getBBox(),p=i?new M(1,0,0,1,o.left+u(),o.top+t()):getGlobalMatrix(r,!1,!1,!0);n.getProp=a,n.element=r,n.id=function _getID(t){var e=t.getAttribute("data-flip-id");return e||t.setAttribute("data-flip-id",e="auto-"+h++),e}(r),n.matrix=p,n.cache=s,n.bounds=o,n.isVisible=!!(o.width||o.height||o.left||o.top),n.display=a("display"),n.position=a("position"),n.parent=r.parentNode,n.x=a("x"),n.y=a("y"),n.scaleX=s.scaleX,n.scaleY=s.scaleY,n.rotation=a("rotation"),n.skewX=a("skewX"),n.opacity=a("opacity"),n.width=l?l.width:P(a("width","px"),.04),n.height=l?l.height:P(a("height","px"),.04),e&&function _recordProps(t,e){for(var i=Q.getProperty(t.element,null,"native"),n=t.props={},r=e.length;r--;)n[e[r]]=(i(e[r])+"").trim();n.zIndex&&(n.zIndex=parseFloat(n.zIndex)||0)}(n,st[e]||ba(e)),n.ctm=r.getCTM&&"svg"===r.nodeName.toLowerCase()&&z(r).inverse(),n.simple=i||1===W(p.a)&&!W(p.b)&&!W(p.c)&&1===W(p.d),n.uncache=0},ElementState);function ElementState(t,e,i){this.element=t,this.update(e,i)}var Z,J=((Z=FlipAction.prototype).getStateById=function getStateById(t){for(var e=this.states.length;e--;)if(this.states[e].idLookup[t])return this.states[e]},Z.kill=function kill(){this.batch.remove(this)},FlipAction);function FlipAction(t,e){this.vars=t,this.batch=e,this.states=[],this.timeline=e.timeline}var U,K=((U=FlipBatch.prototype).add=function add(e){var t=this.actions.filter(function(t){return t.vars===e});return t.length?t[0]:(t=new J("function"==typeof e?{animate:e}:e,this),this.actions.push(t),t)},U.remove=function remove(t){var e=this.actions.indexOf(t);return 0<=e&&this.actions.splice(e,1),this},U.getState=function getState(e){var i=this,t=tt,n=r;return(tt=this).state.clear(),this._kill.length=0,this.actions.forEach(function(t){t.vars.getState&&(t.states.length=0,(r=t).state=t.vars.getState(t)),e&&t.states.forEach(function(t){return i.state.add(t)})}),r=n,tt=t,this.killConflicts(),this},U.animate=function animate(){var t,e,i=this,n=tt,r=this.timeline,a=this.actions.length;for(tt=this,r.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(t){t.vars.animate&&t.vars.animate(t);var e,i,n=t.vars.onEnter,r=t.vars.onLeave,a=t.targets;a&&a.length&&(n||r)&&(e=new ut,t.states.forEach(function(t){return e.add(t)}),(i=e.compare(ht.getState(a))).enter.length&&n&&n(i.enter),i.leave.length&&r&&r(i.leave))}),la(this._abs),this._run.forEach(function(t){return t()}),e=r.duration(),t=this._final.slice(0),r.add(function(){e<=r.time()&&(t.forEach(function(t){return t()}),L(i,"onComplete"))}),tt=n;a--;)this.actions[a].vars.once&&this.actions[a].kill();return L(this,"onStart"),r.restart(),this},U.loadState=function loadState(n){n=n||function done(){return 0};var r=[];return this.actions.forEach(function(e){if(e.vars.loadState){var i,t=function f(t){t&&(e.targets=t),~(i=r.indexOf(f))&&(r.splice(i,1),r.length||n())};r.push(t),e.vars.loadState(t)}}),r.length||n(),this},U.setState=function setState(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},U.killConflicts=function killConflicts(e){return this.state.interrupt(e),this._kill.forEach(function(t){return t.interrupt(e)}),this},U.run=function run(t,e){var i=this;return this!==tt&&(t||this.getState(e),this.loadState(function(){i._killed||(i.setState(),i.animate())})),this},U.clear=function clear(t){this.state.clear(),t||(this.actions.length=0)},U.getStateById=function getStateById(t){for(var e,i=this.actions.length;i--;)if(e=this.actions[i].getStateById(t))return e;return this.state.idLookup[t]&&this.state},U.kill=function kill(){this._killed=1,this.clear(),delete F[this.id]},FlipBatch);function FlipBatch(t){this.id=t,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new ut,this.timeline=Q.timeline()}var ht=(Flip.getState=function getState(t,e){var i=ua(t,e);return r&&r.states.push(i),e&&e.batch&&Flip.batch(e.batch).state.add(i),i},Flip.from=function from(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),Aa(t,ua(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},Flip.to=function to(t,e){return Aa(t,ua(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},Flip.fromTo=function fromTo(t,e,i){return Aa(t,e,i)},Flip.fit=function fit(t,e,i){var n=i?_(i,at):{},r=i||n,a=r.absolute,s=r.scale,o=r.getVars,l=r.props,u=r.runBackwards,p=r.onComplete,h=r.simple,c=i&&i.fitChild&&V(i.fitChild),f=G(e,l,h,t),d=G(t,0,h,f),m=l?et[l]:nt,g=Q.context();return l&&pa(n,f.props),fa(d,m),u&&("immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){ga(d),p&&p.apply(this,arguments)}),a&&ja(d,f),n=ot(d,f,s||c,l,c,n.duration||o?n:0),g&&!o&&g.add(function(){return function(){return ga(d)}}),o?n:n.duration?Q.to(d.element,n):null},Flip.makeAbsolute=function makeAbsolute(t,e){return(t instanceof ut?t:new ut(t,e)).makeAbsolute()},Flip.batch=function batch(t){return F[t=t||"default"]||(F[t]=new K(t))},Flip.killFlipsOf=function killFlipsOf(t,e){(t instanceof ut?t.targets:I(t)).forEach(function(t){return t&<(t._flip,!1!==e?1:2)})},Flip.isFlipping=function isFlipping(t){var e=Flip.getByTarget(t);return!!e&&e.isActive()},Flip.getByTarget=function getByTarget(t){return(V(t)||D)._flip},Flip.getElementState=function getElementState(t,e){return new pt(V(t),e)},Flip.convertCoordinates=function convertCoordinates(t,e,i){var n=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return i?n.apply(i):n},Flip.register=function register(t){if(o="undefined"!=typeof document&&document.body){Q=t,p(o),I=Q.utils.toArray,T=Q.core.getStyleSaver;var i=Q.utils.snap(.1);P=function _closestTenth(t,e){return i(parseFloat(t)+e)}}},Flip);function Flip(){}ht.version="3.12.5","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(ht),e.Flip=ht,e.default=ht;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* InertiaPlugin 3.12.4 | ||
* InertiaPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function m(){return n||"undefined"!=typeof window&&(n=window.gsap)}function p(t){return c(t).id}function q(t){return f[p("string"==typeof t?g(t)[0]:t)]}function r(t){var e,n=a;if(.05<=t-i)for(i=t;n;)((e=n.g(n.t,n.p))!==n.v1||.2<t-n.t1)&&(n.v2=n.v1,n.v1=e,n.t2=n.t1,n.t1=t),n=n._next}function t(){(n=m())&&(g=n.utils.toArray,o=n.utils.getUnit,c=n.core.getCache,s=n.ticker,l=1)}function u(t,e,n,i){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=d[n||o(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=s.time,i&&((this._next=i)._prev=this)}var n,l,g,o,a,s,i,c,f={},d={deg:360,rad:2*Math.PI},h=function(){function VelocityTracker(e,n){l||t(),this.target=g(e)[0],(f[p(this.target)]=this)._props={},n&&this.add(n)}VelocityTracker.register=function register(e){n=e,t()};var e=VelocityTracker.prototype;return e.get=function get(t,e){var n,i,r=this._props[t]||console.warn("Not tracking "+t+" velocity.");return n=parseFloat(e?r.v1:r.g(r.t,r.p))-parseFloat(r.v2),(i=r.rCap)&&(n%=i)!==n%(i/2)&&(n=n<0?n+i:n-i),function _round(t){return Math.round(1e4*t)/1e4}(n/((e?r.t1:s.time)-r.t2))},e.getAll=function getAll(){var t,e={},n=this._props;for(t in n)e[t]=this.get(t);return e},e.isTracking=function isTracking(t){return t in this._props},e.add=function add(t,e){t in this._props||(a||(s.add(r),i=s.time),a=this._props[t]=new u(this.target,t,e,a))},e.remove=function remove(t){var e,n,i=this._props[t];i&&(e=i._prev,n=i._next,e&&(e._next=n),n?n._prev=e:a===i&&(s.remove(r),a=0),delete this._props[t])},e.kill=function kill(t){for(var e in this._props)this.remove(e);t||delete f[p(this.target)]},VelocityTracker.track=function track(e,n,i){l||t();for(var r,o,a=[],s=g(e),c=n.split(","),u=(i||"").split(","),f=s.length;f--;){for(r=q(s[f])||new VelocityTracker(s[f]),o=c.length;o--;)r.add(c[o],u[o]||u[0]);a.push(r)}return a},VelocityTracker.untrack=function untrack(t,e){var n=(e||"").split(",");g(t).forEach(function(t){var e=q(t);e&&(n.length?n.forEach(function(t){return e.remove(t)}):e.kill(1))})},VelocityTracker.isTracking=function isTracking(t,e){var n=q(t);return n&&n.isTracking(e)},VelocityTracker.getVelocity=function getVelocity(t,e){var n=q(t);return n&&n.isTracking(e)?n.get(e):console.warn("Not tracking velocity of "+e)},VelocityTracker}();h.getByTarget=q,m()&&n.registerPlugin(h);function L(){return v||"undefined"!=typeof window&&(v=window.gsap)&&v.registerPlugin&&v}function N(t){return"number"==typeof t}function O(t){return"object"==typeof t}function P(t){return"function"==typeof t}function S(){return String.fromCharCode.apply(null,arguments)}function Y(t){return t}function aa(t){return Math.round(1e4*t)/1e4}function ba(t,e,n){for(var i in e)i in t||i===n||(t[i]=e[i]);return t}function ca(t){var e,n,i={};for(e in t)i[e]=O(n=t[e])&&!D(n)?ca(n):n;return i}function da(t,e,n,i,r){var o,a,s,c,u=e.length,f=0,l=$;if(O(t)){for(;u--;){for(s in o=e[u],a=0,t)a+=(c=o[s]-t[s])*c;a<l&&(f=u,l=a)}if((r||$)<$&&r<Math.sqrt(l))return t}else for(;u--;)(a=(o=e[u])-t)<0&&(a=-a),a<l&&i<=o&&o<=n&&(f=u,l=a);return e[f]}function ea(t,e,n,i,r,o,a){if("auto"===t.end)return t;var s,c,u=t.end;if(n=isNaN(n)?$:n,i=isNaN(i)?-$:i,O(e)){if(s=e.calculated?e:(P(u)?u(e,a):da(e,u,n,i,o))||e,!e.calculated){for(c in s)e[c]=s[c];e.calculated=!0}s=s[r]}else s=P(u)?u(e,a):D(u)?da(e,u,n,i,o):parseFloat(u);return n<s?s=n:s<i&&(s=i),{max:s,min:s,unitFactor:t.unitFactor}}function fa(t,e,n){return isNaN(t[e])?n:+t[e]}function ga(t,e){return.05*e*t/k}function ha(t,e,n){return Math.abs((e-t)*k/n/.05)}function ja(t,e,n,i){if(e.linkedProps){var r,o,a,s,c,u,f=e.linkedProps.split(","),l={};for(r=0;r<f.length;r++)(a=e[o=f[r]])&&(s=N(a.velocity)?a.velocity:(c=c||C(t))&&c.isTracking(o)?c.get(o):0,u=Math.abs(s/fa(a,"resistance",i)),l[o]=parseFloat(n(t,o))+ga(s,u));return l}}function la(){(v=L())&&(y=v.parseEase,T=v.utils.toArray,b=v.utils.getUnit,V=v.core.getCache,j=v.utils.clamp,A=v.core.getStyleSaver,E=v.core.reverting||function(){},w=y("power3"),k=w(.05),F=v.core.PropTween,v.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),x=v.config(),v.registerPlugin(h),_=1)}var v,_,y,T,w,x,b,F,V,k,j,M,A,E,C=h.getByTarget,W="InertiaPlugin",I=S(103,114,101,101,110,115,111,99,107,46,99,111,109),B=S(103,115,97,112,46,99,111,109),R=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,U=function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(S(102,105,108,101,58,47,47))||-1!==t.indexOf(S(108,111,99,97,108,104,111,115,116))||R.test(t)||(e?window.location.hostname:"").split(".").pop()===S(108,111,99,97,108),i=[I,B,S(99,111,100,101,112,101,110,46,105,111),S(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),S(99,111,100,101,112,101,110,46,100,101,118),S(99,111,100,101,112,101,110,46,97,112,112),S(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),S(112,101,110,115,46,99,108,111,117,100),S(99,115,115,45,116,114,105,99,107,115,46,99,111,109),S(99,100,112,110,46,105,111),S(112,101,110,115,46,105,111),S(103,97,110,110,111,110,46,116,118),S(99,111,100,101,99,97,110,121,111,110,46,110,101,116),S(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),S(99,101,114,101,98,114,97,120,46,99,111,46,117,107),S(116,121,109,112,97,110,117,115,46,110,101,116),S(116,119,101,101,110,109,97,120,46,99,111,109),S(112,108,110,107,114,46,99,111),S(104,111,116,106,97,114,46,99,111,109),S(119,101,98,112,97,99,107,98,105,110,46,99,111,109),S(97,114,99,104,105,118,101,46,111,114,103),S(99,111,100,101,115,97,110,100,98,111,120,46,105,111),S(99,115,98,46,97,112,112),S(115,116,97,99,107,98,108,105,116,122,46,99,111,109),S(115,116,97,99,107,98,108,105,116,122,46,105,111),S(99,111,100,105,101,114,46,105,111),S(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),S(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),S(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),S(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),S(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),S(106,115,102,105,100,100,108,101,46,110,101,116)],r=i.length;for(setTimeout(function checkWarn(){if(e)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var t="object"==typeof v?v:e&&window.gsap;e&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(S(37,99,87,97,114,110,105,110,103),S(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(S(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+W+S(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(S(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),S(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--r;)if(-1!==t.indexOf(i[r]))return!0;return n||!setTimeout(function(){e&&(window.location.href=S(104,116,116,112,115,58,47,47)+I+S(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+W+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),D=Array.isArray,$=1e10,z={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},G={version:"3.12.4",name:"inertia",register:function register(t){v=t,la()},init:function init(t,e,n,i,r){_||la();var o=C(t);if("auto"===e){if(!o)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=o.getAll()}this.styles=A&&"object"==typeof t.style&&A(t),this.target=t,this.tween=n,M=e;var a,s,c,u,f,l,g,d,p,h=t._gsap,v=h.get,y=e.duration,m=O(y),S=e.preventOvershoot||m&&0===y.overshoot,w=fa(e,"resistance",x.resistance),k=N(y)?y:function _calculateTweenDuration(t,e,n,i,r,o){if(void 0===n&&(n=10),void 0===i&&(i=.2),void 0===r&&(r=1),void 0===o&&(o=0),function _isString(t){return"string"==typeof t}(t)&&(t=T(t)[0]),!t)return 0;var a,s,c,u,f,l,g,d,p,h,v=0,y=$,m=e.inertia||e,S=V(t).get,w=fa(m,"resistance",x.resistance);for(a in h=ja(t,m,S,w),m)z[a]||(s=m[a],O(s)||((d=d||C(t))&&d.isTracking(a)?s=N(s)?{velocity:s}:{velocity:d.get(a)}:(u=+s||0,c=Math.abs(u/w))),O(s)&&(u=N(s.velocity)?s.velocity:(d=d||C(t))&&d.isTracking(a)?d.get(a):0,c=j(i,n,Math.abs(u/fa(s,"resistance",w))),l=(f=parseFloat(S(t,a))||0)+ga(u,c),"end"in s&&(s=ea(s,h&&a in h?h:l,s.max,s.min,a,m.radius,u),o&&(M===e&&(M=m=ca(e)),m[a]=ba(s,m[a],"end"))),"max"in s&&l>+s.max+1e-10?(p=s.unitFactor||x.unitFactors[a]||1,(g=f>s.max&&s.min!==s.max||-15<u*p&&u*p<45?i+.1*(n-i):ha(f,s.max,u))+r<y&&(y=g+r)):"min"in s&&l<s.min-1e-10&&(p=s.unitFactor||x.unitFactors[a]||1,(g=f<s.min&&s.min!==s.max||-45<u*p&&u*p<15?i+.1*(n-i):ha(f,s.min,u))+r<y&&(y=g+r)),v<g&&(v=g)),v<c&&(v=c));return y<v&&(v=y),n<v?n:v<i?i:v}(t,e,m&&y.max||10,m&&y.min||.2,m&&"overshoot"in y?+y.overshoot:S?0:1,!0);for(a in e=M,M=0,p=ja(t,e,v,w),e)z[a]||(s=e[a],P(s)&&(s=s(i,t,r)),N(s)?f=s:O(s)&&!isNaN(s.velocity)?f=+s.velocity:o&&o.isTracking(a)?f=o.get(a):console.warn("ERROR: No velocity was defined for "+t+" property: "+a),l=ga(f,k),d=0,c=v(t,a),u=b(c),c=parseFloat(c),O(s)&&(g=c+l,"end"in s&&(s=ea(s,p&&a in p?p:g,s.max,s.min,a,e.radius,f)),"max"in s&&+s.max<g?S||s.preventOvershoot?l=s.max-c:d=s.max-c-l:"min"in s&&+s.min>g&&(S||s.preventOvershoot?l=s.min-c:d=s.min-c-l)),this._props.push(a),this.styles&&this.styles.save(a),this._pt=new F(this._pt,t,a,c,0,Y,0,h.set(t,a,this)),this._pt.u=u||0,this._pt.c1=l,this._pt.c2=d);return n.duration(k),U},render:function render(t,e){var n=e._pt;if((t=w(e.tween._time/e.tween._dur))||!E())for(;n;)n.set(n.t,n.p,aa(n.s+n.c1*t+n.c2*t*t)+n.u,n.d,t),n=n._next;else e.styles.revert()}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(function(t){return G[t]=h[t]}),L()&&v.registerPlugin(G),e.InertiaPlugin=G,e.VelocityTracker=h,e.default=G;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function m(){return n||"undefined"!=typeof window&&(n=window.gsap)}function p(t){return c(t).id}function q(t){return f[p("string"==typeof t?g(t)[0]:t)]}function r(t){var e,n=a;if(.05<=t-i)for(i=t;n;)((e=n.g(n.t,n.p))!==n.v1||.2<t-n.t1)&&(n.v2=n.v1,n.v1=e,n.t2=n.t1,n.t1=t),n=n._next}function t(){(n=m())&&(g=n.utils.toArray,o=n.utils.getUnit,c=n.core.getCache,s=n.ticker,l=1)}function u(t,e,n,i){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=d[n||o(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=s.time,i&&((this._next=i)._prev=this)}var n,l,g,o,a,s,i,c,f={},d={deg:360,rad:2*Math.PI},h=function(){function VelocityTracker(e,n){l||t(),this.target=g(e)[0],(f[p(this.target)]=this)._props={},n&&this.add(n)}VelocityTracker.register=function register(e){n=e,t()};var e=VelocityTracker.prototype;return e.get=function get(t,e){var n,i,r=this._props[t]||console.warn("Not tracking "+t+" velocity.");return n=parseFloat(e?r.v1:r.g(r.t,r.p))-parseFloat(r.v2),(i=r.rCap)&&(n%=i)!==n%(i/2)&&(n=n<0?n+i:n-i),function _round(t){return Math.round(1e4*t)/1e4}(n/((e?r.t1:s.time)-r.t2))},e.getAll=function getAll(){var t,e={},n=this._props;for(t in n)e[t]=this.get(t);return e},e.isTracking=function isTracking(t){return t in this._props},e.add=function add(t,e){t in this._props||(a||(s.add(r),i=s.time),a=this._props[t]=new u(this.target,t,e,a))},e.remove=function remove(t){var e,n,i=this._props[t];i&&(e=i._prev,n=i._next,e&&(e._next=n),n?n._prev=e:a===i&&(s.remove(r),a=0),delete this._props[t])},e.kill=function kill(t){for(var e in this._props)this.remove(e);t||delete f[p(this.target)]},VelocityTracker.track=function track(e,n,i){l||t();for(var r,o,a=[],s=g(e),c=n.split(","),u=(i||"").split(","),f=s.length;f--;){for(r=q(s[f])||new VelocityTracker(s[f]),o=c.length;o--;)r.add(c[o],u[o]||u[0]);a.push(r)}return a},VelocityTracker.untrack=function untrack(t,e){var n=(e||"").split(",");g(t).forEach(function(t){var e=q(t);e&&(n.length?n.forEach(function(t){return e.remove(t)}):e.kill(1))})},VelocityTracker.isTracking=function isTracking(t,e){var n=q(t);return n&&n.isTracking(e)},VelocityTracker.getVelocity=function getVelocity(t,e){var n=q(t);return n&&n.isTracking(e)?n.get(e):console.warn("Not tracking velocity of "+e)},VelocityTracker}();h.getByTarget=q,m()&&n.registerPlugin(h);function L(){return v||"undefined"!=typeof window&&(v=window.gsap)&&v.registerPlugin&&v}function N(t){return"number"==typeof t}function O(t){return"object"==typeof t}function P(t){return"function"==typeof t}function S(){return String.fromCharCode.apply(null,arguments)}function Y(t){return t}function aa(t){return Math.round(1e4*t)/1e4}function ba(t,e,n){for(var i in e)i in t||i===n||(t[i]=e[i]);return t}function ca(t){var e,n,i={};for(e in t)i[e]=O(n=t[e])&&!D(n)?ca(n):n;return i}function da(t,e,n,i,r){var o,a,s,c,u=e.length,f=0,l=$;if(O(t)){for(;u--;){for(s in o=e[u],a=0,t)a+=(c=o[s]-t[s])*c;a<l&&(f=u,l=a)}if((r||$)<$&&r<Math.sqrt(l))return t}else for(;u--;)(a=(o=e[u])-t)<0&&(a=-a),a<l&&i<=o&&o<=n&&(f=u,l=a);return e[f]}function ea(t,e,n,i,r,o,a){if("auto"===t.end)return t;var s,c,u=t.end;if(n=isNaN(n)?$:n,i=isNaN(i)?-$:i,O(e)){if(s=e.calculated?e:(P(u)?u(e,a):da(e,u,n,i,o))||e,!e.calculated){for(c in s)e[c]=s[c];e.calculated=!0}s=s[r]}else s=P(u)?u(e,a):D(u)?da(e,u,n,i,o):parseFloat(u);return n<s?s=n:s<i&&(s=i),{max:s,min:s,unitFactor:t.unitFactor}}function fa(t,e,n){return isNaN(t[e])?n:+t[e]}function ga(t,e){return.05*e*t/k}function ha(t,e,n){return Math.abs((e-t)*k/n/.05)}function ja(t,e,n,i){if(e.linkedProps){var r,o,a,s,c,u,f=e.linkedProps.split(","),l={};for(r=0;r<f.length;r++)(a=e[o=f[r]])&&(s=N(a.velocity)?a.velocity:(c=c||C(t))&&c.isTracking(o)?c.get(o):0,u=Math.abs(s/fa(a,"resistance",i)),l[o]=parseFloat(n(t,o))+ga(s,u));return l}}function la(){(v=L())&&(y=v.parseEase,T=v.utils.toArray,b=v.utils.getUnit,V=v.core.getCache,j=v.utils.clamp,A=v.core.getStyleSaver,E=v.core.reverting||function(){},w=y("power3"),k=w(.05),F=v.core.PropTween,v.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),x=v.config(),v.registerPlugin(h),_=1)}var v,_,y,T,w,x,b,F,V,k,j,M,A,E,C=h.getByTarget,W="InertiaPlugin",I=S(103,114,101,101,110,115,111,99,107,46,99,111,109),B=S(103,115,97,112,46,99,111,109),R=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,U=function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(S(102,105,108,101,58,47,47))||-1!==t.indexOf(S(108,111,99,97,108,104,111,115,116))||R.test(t)||(e?window.location.hostname:"").split(".").pop()===S(108,111,99,97,108),i=[I,B,S(99,111,100,101,112,101,110,46,105,111),S(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),S(99,111,100,101,112,101,110,46,100,101,118),S(99,111,100,101,112,101,110,46,97,112,112),S(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),S(112,101,110,115,46,99,108,111,117,100),S(99,115,115,45,116,114,105,99,107,115,46,99,111,109),S(99,100,112,110,46,105,111),S(112,101,110,115,46,105,111),S(103,97,110,110,111,110,46,116,118),S(99,111,100,101,99,97,110,121,111,110,46,110,101,116),S(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),S(99,101,114,101,98,114,97,120,46,99,111,46,117,107),S(116,121,109,112,97,110,117,115,46,110,101,116),S(116,119,101,101,110,109,97,120,46,99,111,109),S(112,108,110,107,114,46,99,111),S(104,111,116,106,97,114,46,99,111,109),S(119,101,98,112,97,99,107,98,105,110,46,99,111,109),S(97,114,99,104,105,118,101,46,111,114,103),S(99,111,100,101,115,97,110,100,98,111,120,46,105,111),S(99,115,98,46,97,112,112),S(115,116,97,99,107,98,108,105,116,122,46,99,111,109),S(115,116,97,99,107,98,108,105,116,122,46,105,111),S(99,111,100,105,101,114,46,105,111),S(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),S(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),S(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),S(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),S(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),S(106,115,102,105,100,100,108,101,46,110,101,116)],r=i.length;for(setTimeout(function checkWarn(){if(e)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var t="object"==typeof v?v:e&&window.gsap;e&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(S(37,99,87,97,114,110,105,110,103),S(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(S(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+W+S(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(S(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),S(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--r;)if(-1!==t.indexOf(i[r]))return!0;return n||!setTimeout(function(){e&&(window.location.href=S(104,116,116,112,115,58,47,47)+I+S(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+W+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),D=Array.isArray,$=1e10,z={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},G={version:"3.12.5",name:"inertia",register:function register(t){v=t,la()},init:function init(t,e,n,i,r){_||la();var o=C(t);if("auto"===e){if(!o)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=o.getAll()}this.styles=A&&"object"==typeof t.style&&A(t),this.target=t,this.tween=n,M=e;var a,s,c,u,f,l,g,d,p,h=t._gsap,v=h.get,y=e.duration,m=O(y),S=e.preventOvershoot||m&&0===y.overshoot,w=fa(e,"resistance",x.resistance),k=N(y)?y:function _calculateTweenDuration(t,e,n,i,r,o){if(void 0===n&&(n=10),void 0===i&&(i=.2),void 0===r&&(r=1),void 0===o&&(o=0),function _isString(t){return"string"==typeof t}(t)&&(t=T(t)[0]),!t)return 0;var a,s,c,u,f,l,g,d,p,h,v=0,y=$,m=e.inertia||e,S=V(t).get,w=fa(m,"resistance",x.resistance);for(a in h=ja(t,m,S,w),m)z[a]||(s=m[a],O(s)||((d=d||C(t))&&d.isTracking(a)?s=N(s)?{velocity:s}:{velocity:d.get(a)}:(u=+s||0,c=Math.abs(u/w))),O(s)&&(u=N(s.velocity)?s.velocity:(d=d||C(t))&&d.isTracking(a)?d.get(a):0,c=j(i,n,Math.abs(u/fa(s,"resistance",w))),l=(f=parseFloat(S(t,a))||0)+ga(u,c),"end"in s&&(s=ea(s,h&&a in h?h:l,s.max,s.min,a,m.radius,u),o&&(M===e&&(M=m=ca(e)),m[a]=ba(s,m[a],"end"))),"max"in s&&l>+s.max+1e-10?(p=s.unitFactor||x.unitFactors[a]||1,(g=f>s.max&&s.min!==s.max||-15<u*p&&u*p<45?i+.1*(n-i):ha(f,s.max,u))+r<y&&(y=g+r)):"min"in s&&l<s.min-1e-10&&(p=s.unitFactor||x.unitFactors[a]||1,(g=f<s.min&&s.min!==s.max||-45<u*p&&u*p<15?i+.1*(n-i):ha(f,s.min,u))+r<y&&(y=g+r)),v<g&&(v=g)),v<c&&(v=c));return y<v&&(v=y),n<v?n:v<i?i:v}(t,e,m&&y.max||10,m&&y.min||.2,m&&"overshoot"in y?+y.overshoot:S?0:1,!0);for(a in e=M,M=0,p=ja(t,e,v,w),e)z[a]||(s=e[a],P(s)&&(s=s(i,t,r)),N(s)?f=s:O(s)&&!isNaN(s.velocity)?f=+s.velocity:o&&o.isTracking(a)?f=o.get(a):console.warn("ERROR: No velocity was defined for "+t+" property: "+a),l=ga(f,k),d=0,c=v(t,a),u=b(c),c=parseFloat(c),O(s)&&(g=c+l,"end"in s&&(s=ea(s,p&&a in p?p:g,s.max,s.min,a,e.radius,f)),"max"in s&&+s.max<g?S||s.preventOvershoot?l=s.max-c:d=s.max-c-l:"min"in s&&+s.min>g&&(S||s.preventOvershoot?l=s.min-c:d=s.min-c-l)),this._props.push(a),this.styles&&this.styles.save(a),this._pt=new F(this._pt,t,a,c,0,Y,0,h.set(t,a,this)),this._pt.u=u||0,this._pt.c1=l,this._pt.c2=d);return n.duration(k),U},render:function render(t,e){var n=e._pt;if((t=w(e.tween._time/e.tween._dur))||!E())for(;n;)n.set(n.t,n.p,aa(n.s+n.c1*t+n.c2*t*t)+n.u,n.d,t),n=n._next;else e.styles.revert()}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(function(t){return G[t]=h[t]}),L()&&v.registerPlugin(G),e.InertiaPlugin=G,e.VelocityTracker=h,e.default=G;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* MorphSVGPlugin 3.12.4 | ||
* MorphSVGPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function m(t){return"string"==typeof t}var T=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,S=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,b=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,E=Math.PI/180,H=Math.sin,B=Math.cos,D=Math.abs,Q=Math.sqrt,s=function _isNumber(t){return"number"==typeof t},h=function _round(t){return Math.round(1e5*t)/1e5||0};function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var N={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,o,a,i,s,h,l,c,g,p,f,u,d,P,m,w,_,v,y,x,M,T=t.tagName.toLowerCase(),b=.552284749831;return"path"!==T&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),o=[].slice.call(t.attributes),a=o.length;for(e=","+e+",";-1<--a;)n=o[a].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,o[a].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},o=n.length;-1<--o;)r[n[o]]=+t.getAttribute(n[o])||0;return r}(t,N[T]),"rect"===T?(a=M.rx,i=M.ry||a,r=M.x,o=M.y,g=M.width-2*a,p=M.height-2*i,n=a||i?"M"+(m=(d=(u=r+a)+g)+a)+","+(_=o+i)+" V"+(v=_+p)+" C"+[m,y=v+i*b,P=d+a*b,x=v+i,d,x,d-(d-u)/3,x,u+(d-u)/3,x,u,x,f=r+a*(1-b),x,r,y,r,v,r,v-(v-_)/3,r,_+(v-_)/3,r,_,r,w=o+i*(1-b),f,o,u,o,u+(d-u)/3,o,d-(d-u)/3,o,d,o,P,o,m,w,m,_].join(",")+"z":"M"+(r+g)+","+o+" v"+p+" h"+-g+" v"+-p+" h"+g+"z"):"circle"===T||"ellipse"===T?(l="circle"===T?(a=i=M.r)*b:(a=M.rx,(i=M.ry)*b),n="M"+((r=M.cx)+a)+","+(o=M.cy)+" C"+[r+a,o+l,r+(h=a*b),o+i,r,o+i,r-h,o+i,r-a,o+l,r-a,o,r-a,o-l,r-h,o-i,r,o-i,r+h,o-i,r+a,o-l,r+a,o].join(",")+"z"):"line"===T?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==T&&"polygon"!==T||(n="M"+(r=(c=(t.getAttribute("points")+"").match(S)||[]).shift())+","+(o=c.shift())+" L"+c.join(","),"polygon"===T&&(n+=","+r+","+o+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function arcToSegment(t,e,n,r,o,a,i,s,h){if(t!==s||e!==h){n=D(n),r=D(r);var l=o%360*E,c=B(l),g=H(l),p=Math.PI,f=2*p,u=(t-s)/2,d=(e-h)/2,P=c*u+g*d,m=-g*u+c*d,w=P*P,_=m*m,v=w/(n*n)+_/(r*r);1<v&&(n=Q(v)*n,r=Q(v)*r);var y=n*n,x=r*r,M=(y*x-y*_-x*w)/(y*_+x*w);M<0&&(M=0);var T=(a===i?-1:1)*Q(M),b=n*m/r*T,S=-r*P/n*T,N=c*b-g*S+(t+s)/2,z=g*b+c*S+(e+h)/2,A=(P-b)/n,R=(m-S)/r,V=(-P-b)/n,O=(-m-S)/r,C=A*A+R*R,j=(R<0?-1:1)*Math.acos(A/Q(C)),Y=(A*O-R*V<0?-1:1)*Math.acos((A*V+R*O)/Q(C*(V*V+O*O)));isNaN(Y)&&(Y=p),!i&&0<Y?Y-=f:i&&Y<0&&(Y+=f),j%=f,Y%=f;var I,L=Math.ceil(D(Y)/(f/4)),W=[],F=Y/L,X=4/3*H(F/2)/(1+B(F/2)),G=c*n,U=g*n,k=g*-r,q=c*r;for(I=0;I<L;I++)P=B(o=j+I*F),m=H(o),A=B(o+=F),R=H(o),W.push(P-X*m,m+X*P,A+X*R,R-X*A,A,R);for(I=0;I<W.length;I+=2)P=W[I],m=W[I+1],W[I]=P*G+m*k+N,W[I+1]=P*U+m*q+z;return W[I-2]=s,W[I-1]=h,W}}function stringToRawPath(t){function Ac(t,e,n,r){c=(n-t)/3,g=(r-e)/3,s.push(t+c,e+g,n-c,r-g,n,r)}var e,n,r,o,a,i,s,h,l,c,g,p,f,u,d,P=(t+"").replace(b,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(T)||[],m=[],w=0,_=0,v=P.length,y=0,x="ERROR: malformed path: "+t;if(!t||!isNaN(P[0])||isNaN(P[1]))return console.log(x),m;for(e=0;e<v;e++)if(f=a,isNaN(P[e])?i=(a=P[e].toUpperCase())!==P[e]:e--,r=+P[e+1],o=+P[e+2],i&&(r+=w,o+=_),e||(h=r,l=o),"M"===a)s&&(s.length<8?--m.length:y+=s.length),w=h=r,_=l=o,s=[r,o],m.push(s),e+=2,a="L";else if("C"===a)i||(w=_=0),(s=s||[0,0]).push(r,o,w+1*P[e+3],_+1*P[e+4],w+=1*P[e+5],_+=1*P[e+6]),e+=6;else if("S"===a)c=w,g=_,"C"!==f&&"S"!==f||(c+=w-s[s.length-4],g+=_-s[s.length-3]),i||(w=_=0),s.push(c,g,r,o,w+=1*P[e+3],_+=1*P[e+4]),e+=4;else if("Q"===a)c=w+2/3*(r-w),g=_+2/3*(o-_),i||(w=_=0),w+=1*P[e+3],_+=1*P[e+4],s.push(c,g,w+2/3*(r-w),_+2/3*(o-_),w,_),e+=4;else if("T"===a)c=w-s[s.length-4],g=_-s[s.length-3],s.push(w+c,_+g,r+2/3*(w+1.5*c-r),o+2/3*(_+1.5*g-o),w=r,_=o),e+=2;else if("H"===a)Ac(w,_,w=r,_),e+=1;else if("V"===a)Ac(w,_,w,_=r+(i?_-w:0)),e+=1;else if("L"===a||"Z"===a)"Z"===a&&(r=h,o=l,s.closed=!0),("L"===a||.5<D(w-r)||.5<D(_-o))&&(Ac(w,_,r,o),"L"===a&&(e+=2)),w=r,_=o;else if("A"===a){if(u=P[e+4],d=P[e+5],c=P[e+6],g=P[e+7],n=7,1<u.length&&(u.length<3?(g=c,c=d,n--):(g=d,c=u.substr(2),n-=2),d=u.charAt(1),u=u.charAt(0)),p=arcToSegment(w,_,+P[e+1],+P[e+2],+P[e+3],+u,+d,(i?w:0)+1*c,(i?_:0)+1*g),e+=n,p)for(n=0;n<p.length;n++)s.push(p[n]);w=s[s.length-2],_=s[s.length-1]}else console.log(x);return(e=s.length)<6?(m.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),m.totalPoints=y+e,m}function rawPathToString(t){s(t[0])&&(t=[t]);var e,n,r,o,a="",i=t.length;for(n=0;n<i;n++){for(o=t[n],a+="M"+h(o[0])+","+h(o[1])+" C",e=o.length,r=2;r<e;r++)a+=h(o[r++])+","+h(o[r++])+" "+h(o[r++])+","+h(o[r++])+" "+h(o[r++])+","+h(o[r])+" ";o.closed&&(a+="z")}return a}function y(){return a||"undefined"!=typeof window&&(a=window.gsap)&&a.registerPlugin&&a}function z(t){return"function"==typeof t}function M(t){return console&&console.warn(t)}function P(){return String.fromCharCode.apply(null,arguments)}function U(t){var e,n=t.length,r=0,o=0;for(e=0;e<n;e++)r+=t[e++],o+=t[e];return[r/(n/2),o/(n/2)]}function V(t){var e,n,r,o=t.length,a=t[0],i=a,s=t[1],h=s;for(r=6;r<o;r+=6)a<(e=t[r])?a=e:e<i&&(i=e),s<(n=t[r+1])?s=n:n<h&&(h=n);return t.centerX=(a+i)/2,t.centerY=(s+h)/2,t.size=(a-i)*(s-h)}function W(t,e){void 0===e&&(e=3);for(var n,r,o,a,i,s,h,l,c,g,p,f,u,d,P,m,w=t.length,_=t[0][0],v=_,y=t[0][1],x=y,M=1/e;-1<--w;)for(n=(i=t[w]).length,a=6;a<n;a+=6)for(c=i[a],g=i[a+1],p=i[a+2]-c,d=i[a+3]-g,f=i[a+4]-c,P=i[a+5]-g,u=i[a+6]-c,m=i[a+7]-g,s=e;-1<--s;)_<(r=((h=M*s)*h*u+3*(l=1-h)*(h*f+l*p))*h+c)?_=r:r<v&&(v=r),y<(o=(h*h*m+3*l*(h*P+l*d))*h+g)?y=o:o<x&&(x=o);return t.centerX=(_+v)/2,t.centerY=(y+x)/2,t.left=v,t.width=_-v,t.top=x,t.height=y-x,t.size=(_-v)*(y-x)}function X(t,e){return e.length-t.length}function Y(t,e){var n=t.size||V(t),r=e.size||V(e);return Math.abs(r-n)<(n+r)/20?e.centerX-t.centerX||e.centerY-t.centerY:r-n}function Z(t,e){var n,r,o=t.slice(0),a=t.length,i=a-2;for(e|=0,n=0;n<a;n++)r=(n+e)%i,t[n++]=o[r],t[n]=o[1+r]}function $(t,e,n,r,o){var a,i,s,h,l=t.length,c=0,g=l-2;for(n*=6,i=0;i<l;i+=6)h=t[a=(i+n)%g]-(e[i]-r),s=t[1+a]-(e[i+1]-o),c+=w(s*s+h*h);return c}function _(t,e,n){var r,o,a,i=t.length,s=U(t),h=U(e),l=h[0]-s[0],c=h[1]-s[1],g=$(t,e,0,l,c),p=0;for(a=6;a<i;a+=6)(o=$(t,e,a/6,l,c))<g&&(g=o,p=a);if(n)for(reverseSegment(r=t.slice(0)),a=6;a<i;a+=6)(o=$(r,e,a/6,l,c))<g&&(g=o,p=-a);return p/6}function aa(t,e,n){for(var r,o,a,i,s,h,l=t.length,c=1e20,g=0,p=0;-1<--l;)for(h=(r=t[l]).length,s=0;s<h;s+=6)o=r[s]-e,a=r[s+1]-n,(i=w(o*o+a*a))<c&&(c=i,g=r[s],p=r[s+1]);return[g,p]}function ba(t,e,n,r,o,a){var i,s,h,l,c=e.length,g=0,p=Math.min(t.size||V(t),e[n].size||V(e[n]))*r,f=1e20,u=t.centerX+o,d=t.centerY+a;for(i=n;i<c&&!((e[i].size||V(e[i]))<p);i++)s=e[i].centerX-u,h=e[i].centerY-d,(l=w(s*s+h*h))<f&&(g=i,f=l);return l=e[g],e.splice(g,1),l}function ca(t,e){var n,r,o,a,i,s,h,l,c,g,p,f,u,d,P=0,m=t.length,w=e/((m-2)/6);for(u=2;u<m;u+=6)for(P+=w;.999999<P;)n=t[u-2],r=t[u-1],o=t[u],a=t[u+1],i=t[u+2],s=t[u+3],h=t[u+4],l=t[u+5],c=n+(o-n)*(d=1/((Math.floor(P)||1)+1)),c+=((p=o+(i-o)*d)-c)*d,p+=(i+(h-i)*d-p)*d,g=r+(a-r)*d,g+=((f=a+(s-a)*d)-g)*d,f+=(s+(l-s)*d-f)*d,t.splice(u,4,n+(o-n)*d,r+(a-r)*d,c,g,c+(p-c)*d,g+(f-g)*d,p,f,i+(h-i)*d,s+(l-s)*d),u+=6,m+=6,P--;return t}function da(t,e,n,r,o){var a,i,s,h,l,c,g,p=e.length-t.length,f=0<p?e:t,u=0<p?t:e,d=0,P="complexity"===r?X:Y,m="position"===r?0:"number"==typeof r?r:.8,w=u.length,v="object"==typeof n&&n.push?n.slice(0):[n],y="reverse"===v[0]||v[0]<0,x="log"===n;if(u[0]){if(1<f.length&&(t.sort(P),e.sort(P),f.size||W(f),u.size||W(u),c=f.centerX-u.centerX,g=f.centerY-u.centerY,P===Y))for(w=0;w<u.length;w++)f.splice(w,0,ba(u[w],f,w,m,c,g));if(p)for(p<0&&(p=-p),f[0].length>u[0].length&&ca(u[0],(f[0].length-u[0].length)/6|0),w=u.length;d<p;)f[w].size||V(f[w]),h=(s=aa(u,f[w].centerX,f[w].centerY))[0],l=s[1],u[w++]=[h,l,h,l,h,l,h,l],u.totalPoints+=8,d++;for(w=0;w<t.length;w++)a=e[w],i=t[w],(p=a.length-i.length)<0?ca(a,-p/6|0):0<p&&ca(i,p/6|0),y&&!1!==o&&!i.reversed&&reverseSegment(i),(n=v[w]||0===v[w]?v[w]:"auto")&&(i.closed||Math.abs(i[0]-i[i.length-2])<.5&&Math.abs(i[1]-i[i.length-1])<.5?"auto"===n||"log"===n?(v[w]=n=_(i,a,!w||!1===o),n<0&&(y=!0,reverseSegment(i),n=-n),Z(i,6*n)):"reverse"!==n&&(w&&n<0&&reverseSegment(i),Z(i,6*(n<0?-n:n))):!y&&("auto"===n&&Math.abs(a[0]-i[0])+Math.abs(a[1]-i[1])+Math.abs(a[a.length-2]-i[i.length-2])+Math.abs(a[a.length-1]-i[i.length-1])>Math.abs(a[0]-i[i.length-2])+Math.abs(a[1]-i[i.length-1])+Math.abs(a[a.length-2]-i[0])+Math.abs(a[a.length-1]-i[1])||n%2)?(reverseSegment(i),v[w]=-1,y=!0):"auto"===n?v[w]=0:"reverse"===n&&(v[w]=-1),i.closed!==a.closed&&(i.closed=a.closed=!1));return x&&M("shapeIndex:["+v.join(",")+"]"),t.shapeIndex=v}}function ea(t,e,n,r,o){var a=stringToRawPath(t[0]),i=stringToRawPath(t[1]);da(a,i,e||0===e?e:"auto",n,o)&&(t[0]=rawPathToString(a),t[1]=rawPathToString(i),"log"!==r&&!0!==r||M('precompile:["'+t[0]+'","'+t[1]+'"]'))}function ga(t,e){var n,r,o,a,i,s,h,l=0,c=parseFloat(t[0]),g=parseFloat(t[1]),p=c+","+g+" ";for(n=.5*e/(.5*(o=t.length)-1),r=0;r<o-2;r+=2){if(l+=n,s=parseFloat(t[r+2]),h=parseFloat(t[r+3]),.999999<l)for(i=1/(Math.floor(l)+1),a=1;.999999<l;)p+=(c+(s-c)*i*a).toFixed(2)+","+(g+(h-g)*i*a).toFixed(2)+" ",l--,a++;p+=s+","+h+" ",c=s,g=h}return p}function ha(t){var e=t[0].match(L)||[],n=t[1].match(L)||[],r=n.length-e.length;0<r?t[0]=ga(e,r):t[1]=ga(n,-r)}function ia(e){return isNaN(e)?ha:function(t){ha(t),t[1]=function _offsetPoints(t,e){if(!e)return t;var n,r,o,a=t.match(L)||[],i=a.length,s="";for(n="reverse"===e?(r=i-1,-2):(r=(2*(parseInt(e,10)||0)+1+100*i)%i,2),o=0;o<i;o+=2)s+=a[r-1]+","+a[r]+" ",r=(r+n)%i;return s}(t[1],parseInt(e,10))}}function ka(t,e){for(var n,r,o,a,i,s,h,l,c,g,p,f,u=t.length,d=.2*(e||1);-1<--u;){for(p=(r=t[u]).isSmooth=r.isSmooth||[0,0,0,0],f=r.smoothData=r.smoothData||[0,0,0,0],p.length=4,l=r.length-2,h=6;h<l;h+=6)o=r[h]-r[h-2],a=r[h+1]-r[h-1],i=r[h+2]-r[h],s=r[h+3]-r[h+1],c=v(a,o),g=v(s,i),(n=Math.abs(c-g)<d)&&(f[h-2]=c,f[h+2]=g,f[h-1]=w(o*o+a*a),f[h+3]=w(i*i+s*s)),p.push(n,n,0,0,n,n);r[l]===r[0]&&r[1+l]===r[1]&&(o=r[0]-r[l-2],a=r[1]-r[l-1],i=r[2]-r[0],s=r[3]-r[1],c=v(a,o),g=v(s,i),Math.abs(c-g)<d&&(f[l-2]=c,f[2]=g,f[l-1]=w(o*o+a*a),f[3]=w(i*i+s*s),p[l-2]=p[l-1]=!0))}return t}function la(t){var e=t.trim().split(" ");return{x:(~t.indexOf("left")?0:~t.indexOf("right")?100:isNaN(parseFloat(e[0]))?50:parseFloat(e[0]))/100,y:(~t.indexOf("top")?0:~t.indexOf("bottom")?100:isNaN(parseFloat(e[1]))?50:parseFloat(e[1]))/100}}function oa(t,e,n,r){var o,a,i=this._origin,s=this._eOrigin,h=t[n]-i.x,l=t[n+1]-i.y,c=w(h*h+l*l),g=v(l,h);return h=e[n]-s.x,l=e[n+1]-s.y,a=function _shortAngle(t){return t!==t%p?t+(t<0?f:-f):t}(o=v(l,h)-g),!r&&j&&Math.abs(a+j.ca)<u&&(r=j),this._anchorPT=j={_next:this._anchorPT,t:t,sa:g,ca:r&&a*r.ca<0&&Math.abs(a)>d?o:a,sl:c,cl:w(h*h+l*l)-c,i:n}}function pa(t){a=y(),n=n||a&&a.plugins.morphSVG,a&&n?(C=a.utils.toArray,n.prototype._tweenRotation=oa,I=1):t&&M("Please gsap.registerPlugin(MorphSVGPlugin)")}var a,C,j,I,n,v=Math.atan2,x=Math.cos,A=Math.sin,w=Math.sqrt,p=Math.PI,f=2*p,u=.3*p,d=.7*p,L=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,F=/(^[#\.][a-z]|[a-y][a-z])/i,G=/[achlmqstvz]/i,i="MorphSVGPlugin",l=P(103,114,101,101,110,115,111,99,107,46,99,111,109),c=P(103,115,97,112,46,99,111,109),g=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,k=function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(P(102,105,108,101,58,47,47))||-1!==t.indexOf(P(108,111,99,97,108,104,111,115,116))||g.test(t)||(e?window.location.hostname:"").split(".").pop()===P(108,111,99,97,108),r=[l,c,P(99,111,100,101,112,101,110,46,105,111),P(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),P(99,111,100,101,112,101,110,46,100,101,118),P(99,111,100,101,112,101,110,46,97,112,112),P(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),P(112,101,110,115,46,99,108,111,117,100),P(99,115,115,45,116,114,105,99,107,115,46,99,111,109),P(99,100,112,110,46,105,111),P(112,101,110,115,46,105,111),P(103,97,110,110,111,110,46,116,118),P(99,111,100,101,99,97,110,121,111,110,46,110,101,116),P(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),P(99,101,114,101,98,114,97,120,46,99,111,46,117,107),P(116,121,109,112,97,110,117,115,46,110,101,116),P(116,119,101,101,110,109,97,120,46,99,111,109),P(112,108,110,107,114,46,99,111),P(104,111,116,106,97,114,46,99,111,109),P(119,101,98,112,97,99,107,98,105,110,46,99,111,109),P(97,114,99,104,105,118,101,46,111,114,103),P(99,111,100,101,115,97,110,100,98,111,120,46,105,111),P(99,115,98,46,97,112,112),P(115,116,97,99,107,98,108,105,116,122,46,99,111,109),P(115,116,97,99,107,98,108,105,116,122,46,105,111),P(99,111,100,105,101,114,46,105,111),P(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),P(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),P(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),P(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),P(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),P(106,115,102,105,100,100,108,101,46,110,101,116)],o=r.length;for(setTimeout(function checkWarn(){if(e)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var t="object"==typeof a?a:e&&window.gsap;e&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(P(37,99,87,97,114,110,105,110,103),P(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(P(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+i+P(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(P(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),P(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--o;)if(-1!==t.indexOf(r[o]))return!0;return n||!setTimeout(function(){e&&(window.location.href=P(104,116,116,112,115,58,47,47)+l+P(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+i+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),q="Use MorphSVGPlugin.convertToPath() to convert to a path before morphing.",J={version:"3.12.4",name:"morphSVG",rawVars:1,register:function register(t,e){a=t,n=e,pa()},init:function init(t,e,n,r,o){if(I||pa(1),!e)return M("invalid shape"),!1;var a,i,s,h,l,c,g,p,f,u,d,P,m,w,_,v,y,x,T,b,S,N;if(z(e)&&(e=e.call(n,r,t,o)),"string"==typeof e||e.getBBox||e[0])e={shape:e};else if("object"==typeof e){for(i in a={},e)a[i]=z(e[i])&&"render"!==i?e[i].call(n,r,t,o):e[i];e=a}var A=t.nodeType?window.getComputedStyle(t):{},R=A.fill+"",V=!("none"===R||"0"===(R.match(L)||[])[3]||"evenodd"===A.fillRule),O=(e.origin||"50 50").split(",");if(l="POLYLINE"===(a=(t.nodeName+"").toUpperCase())||"POLYGON"===a,"PATH"!==a&&!l&&!e.prop)return M("Cannot morph a <"+a+"> element. "+q),!1;if(i="PATH"===a?"d":"points",!e.prop&&!z(t.setAttribute))return!1;if(h=function _parseShape(t,e,n){var r,o;return(!("string"==typeof t)||F.test(t)||(t.match(L)||[]).length<3)&&((r=C(t)[0])?(o=(r.nodeName+"").toUpperCase(),e&&"PATH"!==o&&(r=convertToPath(r,!1),o="PATH"),t=r.getAttribute("PATH"===o?"d":"points")||"",r===n&&(t=r.getAttributeNS(null,"data-original")||t)):(M("WARNING: invalid morph to: "+t),t=!1)),t}(e.shape||e.d||e.points||"","d"===i,t),l&&G.test(h))return M("A <"+a+"> cannot accept path data. "+q),!1;if(c=e.shapeIndex||0===e.shapeIndex?e.shapeIndex:"auto",g=e.map||J.defaultMap,this._prop=e.prop,this._render=e.render||J.defaultRender,this._apply="updateTarget"in e?e.updateTarget:J.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(e.precision)?2:+e.precision),this._tween=n,h){if(this._target=t,y="object"==typeof e.precompile,u=this._prop?t[this._prop]:t.getAttribute(i),this._prop||t.getAttributeNS(null,"data-original")||t.setAttributeNS(null,"data-original",u),"d"===i||this._prop){if(u=stringToRawPath(y?e.precompile[0]:u),d=stringToRawPath(y?e.precompile[1]:h),!y&&!da(u,d,c,g,V))return!1;for("log"!==e.precompile&&!0!==e.precompile||M('precompile:["'+rawPathToString(u)+'","'+rawPathToString(d)+'"]'),(S="linear"!==(e.type||J.defaultType))&&(u=ka(u,e.smoothTolerance),d=ka(d,e.smoothTolerance),u.size||W(u),d.size||W(d),b=la(O[0]),this._origin=u.origin={x:u.left+b.x*u.width,y:u.top+b.y*u.height},O[1]&&(b=la(O[1])),this._eOrigin={x:d.left+b.x*d.width,y:d.top+b.y*d.height}),this._rawPath=t._gsRawPath=u,m=u.length;-1<--m;)for(_=u[m],v=d[m],p=_.isSmooth||[],f=v.isSmooth||[],w=_.length,P=j=0;P<w;P+=2)v[P]===_[P]&&v[P+1]===_[P+1]||(S?p[P]&&f[P]?(x=_.smoothData,T=v.smoothData,N=P+(P===w-4?7-w:5),this._controlPT={_next:this._controlPT,i:P,j:m,l1s:x[P+1],l1c:T[P+1]-x[P+1],l2s:x[N],l2c:T[N]-x[N]},s=this._tweenRotation(_,v,P+2),this._tweenRotation(_,v,P,s),this._tweenRotation(_,v,N-1,s),P+=4):this._tweenRotation(_,v,P):(s=this.add(_,P,_[P],v[P],0,0,0,0,0,1),s=this.add(_,P+1,_[P+1],v[P+1],0,0,0,0,0,1)||s))}else s=this.add(t,"setAttribute",t.getAttribute(i)+"",h+"",r,o,0,ia(c),i);S&&(this.add(this._origin,"x",this._origin.x,this._eOrigin.x,0,0,0,0,0,1),s=this.add(this._origin,"y",this._origin.y,this._eOrigin.y,0,0,0,0,0,1)),s&&(this._props.push("morphSVG"),s.end=h,s.endProp=i)}return k},render:function render(t,e){for(var n,r,o,a,i,s,h,l,c,g,p,f,u=e._rawPath,d=e._controlPT,P=e._anchorPT,m=e._rnd,w=e._target,_=e._pt;_;)_.r(t,_.d),_=_._next;if(1===t&&e._apply)for(_=e._pt;_;)_.end&&(e._prop?w[e._prop]=_.end:w.setAttribute(_.endProp,_.end)),_=_._next;else if(u){for(;P;)i=P.sa+t*P.ca,a=P.sl+t*P.cl,P.t[P.i]=e._origin.x+x(i)*a,P.t[P.i+1]=e._origin.y+A(i)*a,P=P._next;for(r=t<.5?2*t*t:(4-2*t)*t-1;d;)f=(s=d.i)+(s===(o=u[d.j]).length-4?7-o.length:5),i=v(o[f]-o[s+1],o[f-1]-o[s]),g=A(i),p=x(i),l=o[s+2],c=o[s+3],a=d.l1s+r*d.l1c,o[s]=l-p*a,o[s+1]=c-g*a,a=d.l2s+r*d.l2c,o[f-1]=l+p*a,o[f]=c+g*a,d=d._next;if(w._gsRawPath=u,e._apply){for(n="",h=0;h<u.length;h++)for(a=(o=u[h]).length,n+="M"+(o[0]*m|0)/m+" "+(o[1]*m|0)/m+" C",s=2;s<a;s++)n+=(o[s]*m|0)/m+" ";e._prop?w[e._prop]=n:w.setAttribute("d",n)}}e._render&&u&&e._render.call(e._tween,u,w)},kill:function kill(){this._pt=this._rawPath=0},getRawPath:function getRawPath(t){var e,n=(t=m(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?m(t)?stringToRawPath(t):s(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")},stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,normalizeStrings:function normalizeStrings(t,e,n){var r=n.shapeIndex,o=n.map,a=[t,e];return ea(a,r,o),a},pathFilter:ea,pointsFilter:ha,getTotalSize:W,equalizeSegmentQuantity:da,convertToPath:function convertToPath$1(t,e){return C(t).map(function(t){return convertToPath(t,!1!==e)})},defaultType:"linear",defaultUpdateTarget:!0,defaultMap:"size"};y()&&a.registerPlugin(J),t.MorphSVGPlugin=J,t.default=J;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function m(t){return"string"==typeof t}var T=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,S=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,b=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,E=Math.PI/180,H=Math.sin,B=Math.cos,D=Math.abs,Q=Math.sqrt,s=function _isNumber(t){return"number"==typeof t},h=function _round(t){return Math.round(1e5*t)/1e5||0};function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var N={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,o,a,i,s,h,l,c,g,p,f,u,d,P,m,w,_,v,y,x,M,T=t.tagName.toLowerCase(),b=.552284749831;return"path"!==T&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),o=[].slice.call(t.attributes),a=o.length;for(e=","+e+",";-1<--a;)n=o[a].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,o[a].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},o=n.length;-1<--o;)r[n[o]]=+t.getAttribute(n[o])||0;return r}(t,N[T]),"rect"===T?(a=M.rx,i=M.ry||a,r=M.x,o=M.y,g=M.width-2*a,p=M.height-2*i,n=a||i?"M"+(m=(d=(u=r+a)+g)+a)+","+(_=o+i)+" V"+(v=_+p)+" C"+[m,y=v+i*b,P=d+a*b,x=v+i,d,x,d-(d-u)/3,x,u+(d-u)/3,x,u,x,f=r+a*(1-b),x,r,y,r,v,r,v-(v-_)/3,r,_+(v-_)/3,r,_,r,w=o+i*(1-b),f,o,u,o,u+(d-u)/3,o,d-(d-u)/3,o,d,o,P,o,m,w,m,_].join(",")+"z":"M"+(r+g)+","+o+" v"+p+" h"+-g+" v"+-p+" h"+g+"z"):"circle"===T||"ellipse"===T?(l="circle"===T?(a=i=M.r)*b:(a=M.rx,(i=M.ry)*b),n="M"+((r=M.cx)+a)+","+(o=M.cy)+" C"+[r+a,o+l,r+(h=a*b),o+i,r,o+i,r-h,o+i,r-a,o+l,r-a,o,r-a,o-l,r-h,o-i,r,o-i,r+h,o-i,r+a,o-l,r+a,o].join(",")+"z"):"line"===T?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==T&&"polygon"!==T||(n="M"+(r=(c=(t.getAttribute("points")+"").match(S)||[]).shift())+","+(o=c.shift())+" L"+c.join(","),"polygon"===T&&(n+=","+r+","+o+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function arcToSegment(t,e,n,r,o,a,i,s,h){if(t!==s||e!==h){n=D(n),r=D(r);var l=o%360*E,c=B(l),g=H(l),p=Math.PI,f=2*p,u=(t-s)/2,d=(e-h)/2,P=c*u+g*d,m=-g*u+c*d,w=P*P,_=m*m,v=w/(n*n)+_/(r*r);1<v&&(n=Q(v)*n,r=Q(v)*r);var y=n*n,x=r*r,M=(y*x-y*_-x*w)/(y*_+x*w);M<0&&(M=0);var T=(a===i?-1:1)*Q(M),b=n*m/r*T,S=-r*P/n*T,N=c*b-g*S+(t+s)/2,z=g*b+c*S+(e+h)/2,A=(P-b)/n,R=(m-S)/r,V=(-P-b)/n,O=(-m-S)/r,C=A*A+R*R,j=(R<0?-1:1)*Math.acos(A/Q(C)),Y=(A*O-R*V<0?-1:1)*Math.acos((A*V+R*O)/Q(C*(V*V+O*O)));isNaN(Y)&&(Y=p),!i&&0<Y?Y-=f:i&&Y<0&&(Y+=f),j%=f,Y%=f;var I,L=Math.ceil(D(Y)/(f/4)),W=[],F=Y/L,X=4/3*H(F/2)/(1+B(F/2)),G=c*n,U=g*n,k=g*-r,q=c*r;for(I=0;I<L;I++)P=B(o=j+I*F),m=H(o),A=B(o+=F),R=H(o),W.push(P-X*m,m+X*P,A+X*R,R-X*A,A,R);for(I=0;I<W.length;I+=2)P=W[I],m=W[I+1],W[I]=P*G+m*k+N,W[I+1]=P*U+m*q+z;return W[I-2]=s,W[I-1]=h,W}}function stringToRawPath(t){function Ac(t,e,n,r){c=(n-t)/3,g=(r-e)/3,s.push(t+c,e+g,n-c,r-g,n,r)}var e,n,r,o,a,i,s,h,l,c,g,p,f,u,d,P=(t+"").replace(b,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(T)||[],m=[],w=0,_=0,v=P.length,y=0,x="ERROR: malformed path: "+t;if(!t||!isNaN(P[0])||isNaN(P[1]))return console.log(x),m;for(e=0;e<v;e++)if(f=a,isNaN(P[e])?i=(a=P[e].toUpperCase())!==P[e]:e--,r=+P[e+1],o=+P[e+2],i&&(r+=w,o+=_),e||(h=r,l=o),"M"===a)s&&(s.length<8?--m.length:y+=s.length),w=h=r,_=l=o,s=[r,o],m.push(s),e+=2,a="L";else if("C"===a)i||(w=_=0),(s=s||[0,0]).push(r,o,w+1*P[e+3],_+1*P[e+4],w+=1*P[e+5],_+=1*P[e+6]),e+=6;else if("S"===a)c=w,g=_,"C"!==f&&"S"!==f||(c+=w-s[s.length-4],g+=_-s[s.length-3]),i||(w=_=0),s.push(c,g,r,o,w+=1*P[e+3],_+=1*P[e+4]),e+=4;else if("Q"===a)c=w+2/3*(r-w),g=_+2/3*(o-_),i||(w=_=0),w+=1*P[e+3],_+=1*P[e+4],s.push(c,g,w+2/3*(r-w),_+2/3*(o-_),w,_),e+=4;else if("T"===a)c=w-s[s.length-4],g=_-s[s.length-3],s.push(w+c,_+g,r+2/3*(w+1.5*c-r),o+2/3*(_+1.5*g-o),w=r,_=o),e+=2;else if("H"===a)Ac(w,_,w=r,_),e+=1;else if("V"===a)Ac(w,_,w,_=r+(i?_-w:0)),e+=1;else if("L"===a||"Z"===a)"Z"===a&&(r=h,o=l,s.closed=!0),("L"===a||.5<D(w-r)||.5<D(_-o))&&(Ac(w,_,r,o),"L"===a&&(e+=2)),w=r,_=o;else if("A"===a){if(u=P[e+4],d=P[e+5],c=P[e+6],g=P[e+7],n=7,1<u.length&&(u.length<3?(g=c,c=d,n--):(g=d,c=u.substr(2),n-=2),d=u.charAt(1),u=u.charAt(0)),p=arcToSegment(w,_,+P[e+1],+P[e+2],+P[e+3],+u,+d,(i?w:0)+1*c,(i?_:0)+1*g),e+=n,p)for(n=0;n<p.length;n++)s.push(p[n]);w=s[s.length-2],_=s[s.length-1]}else console.log(x);return(e=s.length)<6?(m.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),m.totalPoints=y+e,m}function rawPathToString(t){s(t[0])&&(t=[t]);var e,n,r,o,a="",i=t.length;for(n=0;n<i;n++){for(o=t[n],a+="M"+h(o[0])+","+h(o[1])+" C",e=o.length,r=2;r<e;r++)a+=h(o[r++])+","+h(o[r++])+" "+h(o[r++])+","+h(o[r++])+" "+h(o[r++])+","+h(o[r])+" ";o.closed&&(a+="z")}return a}function y(){return a||"undefined"!=typeof window&&(a=window.gsap)&&a.registerPlugin&&a}function z(t){return"function"==typeof t}function M(t){return console&&console.warn(t)}function P(){return String.fromCharCode.apply(null,arguments)}function U(t){var e,n=t.length,r=0,o=0;for(e=0;e<n;e++)r+=t[e++],o+=t[e];return[r/(n/2),o/(n/2)]}function V(t){var e,n,r,o=t.length,a=t[0],i=a,s=t[1],h=s;for(r=6;r<o;r+=6)a<(e=t[r])?a=e:e<i&&(i=e),s<(n=t[r+1])?s=n:n<h&&(h=n);return t.centerX=(a+i)/2,t.centerY=(s+h)/2,t.size=(a-i)*(s-h)}function W(t,e){void 0===e&&(e=3);for(var n,r,o,a,i,s,h,l,c,g,p,f,u,d,P,m,w=t.length,_=t[0][0],v=_,y=t[0][1],x=y,M=1/e;-1<--w;)for(n=(i=t[w]).length,a=6;a<n;a+=6)for(c=i[a],g=i[a+1],p=i[a+2]-c,d=i[a+3]-g,f=i[a+4]-c,P=i[a+5]-g,u=i[a+6]-c,m=i[a+7]-g,s=e;-1<--s;)_<(r=((h=M*s)*h*u+3*(l=1-h)*(h*f+l*p))*h+c)?_=r:r<v&&(v=r),y<(o=(h*h*m+3*l*(h*P+l*d))*h+g)?y=o:o<x&&(x=o);return t.centerX=(_+v)/2,t.centerY=(y+x)/2,t.left=v,t.width=_-v,t.top=x,t.height=y-x,t.size=(_-v)*(y-x)}function X(t,e){return e.length-t.length}function Y(t,e){var n=t.size||V(t),r=e.size||V(e);return Math.abs(r-n)<(n+r)/20?e.centerX-t.centerX||e.centerY-t.centerY:r-n}function Z(t,e){var n,r,o=t.slice(0),a=t.length,i=a-2;for(e|=0,n=0;n<a;n++)r=(n+e)%i,t[n++]=o[r],t[n]=o[1+r]}function $(t,e,n,r,o){var a,i,s,h,l=t.length,c=0,g=l-2;for(n*=6,i=0;i<l;i+=6)h=t[a=(i+n)%g]-(e[i]-r),s=t[1+a]-(e[i+1]-o),c+=w(s*s+h*h);return c}function _(t,e,n){var r,o,a,i=t.length,s=U(t),h=U(e),l=h[0]-s[0],c=h[1]-s[1],g=$(t,e,0,l,c),p=0;for(a=6;a<i;a+=6)(o=$(t,e,a/6,l,c))<g&&(g=o,p=a);if(n)for(reverseSegment(r=t.slice(0)),a=6;a<i;a+=6)(o=$(r,e,a/6,l,c))<g&&(g=o,p=-a);return p/6}function aa(t,e,n){for(var r,o,a,i,s,h,l=t.length,c=1e20,g=0,p=0;-1<--l;)for(h=(r=t[l]).length,s=0;s<h;s+=6)o=r[s]-e,a=r[s+1]-n,(i=w(o*o+a*a))<c&&(c=i,g=r[s],p=r[s+1]);return[g,p]}function ba(t,e,n,r,o,a){var i,s,h,l,c=e.length,g=0,p=Math.min(t.size||V(t),e[n].size||V(e[n]))*r,f=1e20,u=t.centerX+o,d=t.centerY+a;for(i=n;i<c&&!((e[i].size||V(e[i]))<p);i++)s=e[i].centerX-u,h=e[i].centerY-d,(l=w(s*s+h*h))<f&&(g=i,f=l);return l=e[g],e.splice(g,1),l}function ca(t,e){var n,r,o,a,i,s,h,l,c,g,p,f,u,d,P=0,m=t.length,w=e/((m-2)/6);for(u=2;u<m;u+=6)for(P+=w;.999999<P;)n=t[u-2],r=t[u-1],o=t[u],a=t[u+1],i=t[u+2],s=t[u+3],h=t[u+4],l=t[u+5],c=n+(o-n)*(d=1/((Math.floor(P)||1)+1)),c+=((p=o+(i-o)*d)-c)*d,p+=(i+(h-i)*d-p)*d,g=r+(a-r)*d,g+=((f=a+(s-a)*d)-g)*d,f+=(s+(l-s)*d-f)*d,t.splice(u,4,n+(o-n)*d,r+(a-r)*d,c,g,c+(p-c)*d,g+(f-g)*d,p,f,i+(h-i)*d,s+(l-s)*d),u+=6,m+=6,P--;return t}function da(t,e,n,r,o){var a,i,s,h,l,c,g,p=e.length-t.length,f=0<p?e:t,u=0<p?t:e,d=0,P="complexity"===r?X:Y,m="position"===r?0:"number"==typeof r?r:.8,w=u.length,v="object"==typeof n&&n.push?n.slice(0):[n],y="reverse"===v[0]||v[0]<0,x="log"===n;if(u[0]){if(1<f.length&&(t.sort(P),e.sort(P),f.size||W(f),u.size||W(u),c=f.centerX-u.centerX,g=f.centerY-u.centerY,P===Y))for(w=0;w<u.length;w++)f.splice(w,0,ba(u[w],f,w,m,c,g));if(p)for(p<0&&(p=-p),f[0].length>u[0].length&&ca(u[0],(f[0].length-u[0].length)/6|0),w=u.length;d<p;)f[w].size||V(f[w]),h=(s=aa(u,f[w].centerX,f[w].centerY))[0],l=s[1],u[w++]=[h,l,h,l,h,l,h,l],u.totalPoints+=8,d++;for(w=0;w<t.length;w++)a=e[w],i=t[w],(p=a.length-i.length)<0?ca(a,-p/6|0):0<p&&ca(i,p/6|0),y&&!1!==o&&!i.reversed&&reverseSegment(i),(n=v[w]||0===v[w]?v[w]:"auto")&&(i.closed||Math.abs(i[0]-i[i.length-2])<.5&&Math.abs(i[1]-i[i.length-1])<.5?"auto"===n||"log"===n?(v[w]=n=_(i,a,!w||!1===o),n<0&&(y=!0,reverseSegment(i),n=-n),Z(i,6*n)):"reverse"!==n&&(w&&n<0&&reverseSegment(i),Z(i,6*(n<0?-n:n))):!y&&("auto"===n&&Math.abs(a[0]-i[0])+Math.abs(a[1]-i[1])+Math.abs(a[a.length-2]-i[i.length-2])+Math.abs(a[a.length-1]-i[i.length-1])>Math.abs(a[0]-i[i.length-2])+Math.abs(a[1]-i[i.length-1])+Math.abs(a[a.length-2]-i[0])+Math.abs(a[a.length-1]-i[1])||n%2)?(reverseSegment(i),v[w]=-1,y=!0):"auto"===n?v[w]=0:"reverse"===n&&(v[w]=-1),i.closed!==a.closed&&(i.closed=a.closed=!1));return x&&M("shapeIndex:["+v.join(",")+"]"),t.shapeIndex=v}}function ea(t,e,n,r,o){var a=stringToRawPath(t[0]),i=stringToRawPath(t[1]);da(a,i,e||0===e?e:"auto",n,o)&&(t[0]=rawPathToString(a),t[1]=rawPathToString(i),"log"!==r&&!0!==r||M('precompile:["'+t[0]+'","'+t[1]+'"]'))}function ga(t,e){var n,r,o,a,i,s,h,l=0,c=parseFloat(t[0]),g=parseFloat(t[1]),p=c+","+g+" ";for(n=.5*e/(.5*(o=t.length)-1),r=0;r<o-2;r+=2){if(l+=n,s=parseFloat(t[r+2]),h=parseFloat(t[r+3]),.999999<l)for(i=1/(Math.floor(l)+1),a=1;.999999<l;)p+=(c+(s-c)*i*a).toFixed(2)+","+(g+(h-g)*i*a).toFixed(2)+" ",l--,a++;p+=s+","+h+" ",c=s,g=h}return p}function ha(t){var e=t[0].match(L)||[],n=t[1].match(L)||[],r=n.length-e.length;0<r?t[0]=ga(e,r):t[1]=ga(n,-r)}function ia(e){return isNaN(e)?ha:function(t){ha(t),t[1]=function _offsetPoints(t,e){if(!e)return t;var n,r,o,a=t.match(L)||[],i=a.length,s="";for(n="reverse"===e?(r=i-1,-2):(r=(2*(parseInt(e,10)||0)+1+100*i)%i,2),o=0;o<i;o+=2)s+=a[r-1]+","+a[r]+" ",r=(r+n)%i;return s}(t[1],parseInt(e,10))}}function ka(t,e){for(var n,r,o,a,i,s,h,l,c,g,p,f,u=t.length,d=.2*(e||1);-1<--u;){for(p=(r=t[u]).isSmooth=r.isSmooth||[0,0,0,0],f=r.smoothData=r.smoothData||[0,0,0,0],p.length=4,l=r.length-2,h=6;h<l;h+=6)o=r[h]-r[h-2],a=r[h+1]-r[h-1],i=r[h+2]-r[h],s=r[h+3]-r[h+1],c=v(a,o),g=v(s,i),(n=Math.abs(c-g)<d)&&(f[h-2]=c,f[h+2]=g,f[h-1]=w(o*o+a*a),f[h+3]=w(i*i+s*s)),p.push(n,n,0,0,n,n);r[l]===r[0]&&r[1+l]===r[1]&&(o=r[0]-r[l-2],a=r[1]-r[l-1],i=r[2]-r[0],s=r[3]-r[1],c=v(a,o),g=v(s,i),Math.abs(c-g)<d&&(f[l-2]=c,f[2]=g,f[l-1]=w(o*o+a*a),f[3]=w(i*i+s*s),p[l-2]=p[l-1]=!0))}return t}function la(t){var e=t.trim().split(" ");return{x:(~t.indexOf("left")?0:~t.indexOf("right")?100:isNaN(parseFloat(e[0]))?50:parseFloat(e[0]))/100,y:(~t.indexOf("top")?0:~t.indexOf("bottom")?100:isNaN(parseFloat(e[1]))?50:parseFloat(e[1]))/100}}function oa(t,e,n,r){var o,a,i=this._origin,s=this._eOrigin,h=t[n]-i.x,l=t[n+1]-i.y,c=w(h*h+l*l),g=v(l,h);return h=e[n]-s.x,l=e[n+1]-s.y,a=function _shortAngle(t){return t!==t%p?t+(t<0?f:-f):t}(o=v(l,h)-g),!r&&j&&Math.abs(a+j.ca)<u&&(r=j),this._anchorPT=j={_next:this._anchorPT,t:t,sa:g,ca:r&&a*r.ca<0&&Math.abs(a)>d?o:a,sl:c,cl:w(h*h+l*l)-c,i:n}}function pa(t){a=y(),n=n||a&&a.plugins.morphSVG,a&&n?(C=a.utils.toArray,n.prototype._tweenRotation=oa,I=1):t&&M("Please gsap.registerPlugin(MorphSVGPlugin)")}var a,C,j,I,n,v=Math.atan2,x=Math.cos,A=Math.sin,w=Math.sqrt,p=Math.PI,f=2*p,u=.3*p,d=.7*p,L=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,F=/(^[#\.][a-z]|[a-y][a-z])/i,G=/[achlmqstvz]/i,i="MorphSVGPlugin",l=P(103,114,101,101,110,115,111,99,107,46,99,111,109),c=P(103,115,97,112,46,99,111,109),g=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,k=function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(P(102,105,108,101,58,47,47))||-1!==t.indexOf(P(108,111,99,97,108,104,111,115,116))||g.test(t)||(e?window.location.hostname:"").split(".").pop()===P(108,111,99,97,108),r=[l,c,P(99,111,100,101,112,101,110,46,105,111),P(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),P(99,111,100,101,112,101,110,46,100,101,118),P(99,111,100,101,112,101,110,46,97,112,112),P(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),P(112,101,110,115,46,99,108,111,117,100),P(99,115,115,45,116,114,105,99,107,115,46,99,111,109),P(99,100,112,110,46,105,111),P(112,101,110,115,46,105,111),P(103,97,110,110,111,110,46,116,118),P(99,111,100,101,99,97,110,121,111,110,46,110,101,116),P(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),P(99,101,114,101,98,114,97,120,46,99,111,46,117,107),P(116,121,109,112,97,110,117,115,46,110,101,116),P(116,119,101,101,110,109,97,120,46,99,111,109),P(112,108,110,107,114,46,99,111),P(104,111,116,106,97,114,46,99,111,109),P(119,101,98,112,97,99,107,98,105,110,46,99,111,109),P(97,114,99,104,105,118,101,46,111,114,103),P(99,111,100,101,115,97,110,100,98,111,120,46,105,111),P(99,115,98,46,97,112,112),P(115,116,97,99,107,98,108,105,116,122,46,99,111,109),P(115,116,97,99,107,98,108,105,116,122,46,105,111),P(99,111,100,105,101,114,46,105,111),P(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),P(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),P(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),P(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),P(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),P(106,115,102,105,100,100,108,101,46,110,101,116)],o=r.length;for(setTimeout(function checkWarn(){if(e)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var t="object"==typeof a?a:e&&window.gsap;e&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(P(37,99,87,97,114,110,105,110,103),P(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(P(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+i+P(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(P(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),P(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--o;)if(-1!==t.indexOf(r[o]))return!0;return n||!setTimeout(function(){e&&(window.location.href=P(104,116,116,112,115,58,47,47)+l+P(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+i+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),q="Use MorphSVGPlugin.convertToPath() to convert to a path before morphing.",J={version:"3.12.5",name:"morphSVG",rawVars:1,register:function register(t,e){a=t,n=e,pa()},init:function init(t,e,n,r,o){if(I||pa(1),!e)return M("invalid shape"),!1;var a,i,s,h,l,c,g,p,f,u,d,P,m,w,_,v,y,x,T,b,S,N;if(z(e)&&(e=e.call(n,r,t,o)),"string"==typeof e||e.getBBox||e[0])e={shape:e};else if("object"==typeof e){for(i in a={},e)a[i]=z(e[i])&&"render"!==i?e[i].call(n,r,t,o):e[i];e=a}var A=t.nodeType?window.getComputedStyle(t):{},R=A.fill+"",V=!("none"===R||"0"===(R.match(L)||[])[3]||"evenodd"===A.fillRule),O=(e.origin||"50 50").split(",");if(l="POLYLINE"===(a=(t.nodeName+"").toUpperCase())||"POLYGON"===a,"PATH"!==a&&!l&&!e.prop)return M("Cannot morph a <"+a+"> element. "+q),!1;if(i="PATH"===a?"d":"points",!e.prop&&!z(t.setAttribute))return!1;if(h=function _parseShape(t,e,n){var r,o;return(!("string"==typeof t)||F.test(t)||(t.match(L)||[]).length<3)&&((r=C(t)[0])?(o=(r.nodeName+"").toUpperCase(),e&&"PATH"!==o&&(r=convertToPath(r,!1),o="PATH"),t=r.getAttribute("PATH"===o?"d":"points")||"",r===n&&(t=r.getAttributeNS(null,"data-original")||t)):(M("WARNING: invalid morph to: "+t),t=!1)),t}(e.shape||e.d||e.points||"","d"===i,t),l&&G.test(h))return M("A <"+a+"> cannot accept path data. "+q),!1;if(c=e.shapeIndex||0===e.shapeIndex?e.shapeIndex:"auto",g=e.map||J.defaultMap,this._prop=e.prop,this._render=e.render||J.defaultRender,this._apply="updateTarget"in e?e.updateTarget:J.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(e.precision)?2:+e.precision),this._tween=n,h){if(this._target=t,y="object"==typeof e.precompile,u=this._prop?t[this._prop]:t.getAttribute(i),this._prop||t.getAttributeNS(null,"data-original")||t.setAttributeNS(null,"data-original",u),"d"===i||this._prop){if(u=stringToRawPath(y?e.precompile[0]:u),d=stringToRawPath(y?e.precompile[1]:h),!y&&!da(u,d,c,g,V))return!1;for("log"!==e.precompile&&!0!==e.precompile||M('precompile:["'+rawPathToString(u)+'","'+rawPathToString(d)+'"]'),(S="linear"!==(e.type||J.defaultType))&&(u=ka(u,e.smoothTolerance),d=ka(d,e.smoothTolerance),u.size||W(u),d.size||W(d),b=la(O[0]),this._origin=u.origin={x:u.left+b.x*u.width,y:u.top+b.y*u.height},O[1]&&(b=la(O[1])),this._eOrigin={x:d.left+b.x*d.width,y:d.top+b.y*d.height}),this._rawPath=t._gsRawPath=u,m=u.length;-1<--m;)for(_=u[m],v=d[m],p=_.isSmooth||[],f=v.isSmooth||[],w=_.length,P=j=0;P<w;P+=2)v[P]===_[P]&&v[P+1]===_[P+1]||(S?p[P]&&f[P]?(x=_.smoothData,T=v.smoothData,N=P+(P===w-4?7-w:5),this._controlPT={_next:this._controlPT,i:P,j:m,l1s:x[P+1],l1c:T[P+1]-x[P+1],l2s:x[N],l2c:T[N]-x[N]},s=this._tweenRotation(_,v,P+2),this._tweenRotation(_,v,P,s),this._tweenRotation(_,v,N-1,s),P+=4):this._tweenRotation(_,v,P):(s=this.add(_,P,_[P],v[P],0,0,0,0,0,1),s=this.add(_,P+1,_[P+1],v[P+1],0,0,0,0,0,1)||s))}else s=this.add(t,"setAttribute",t.getAttribute(i)+"",h+"",r,o,0,ia(c),i);S&&(this.add(this._origin,"x",this._origin.x,this._eOrigin.x,0,0,0,0,0,1),s=this.add(this._origin,"y",this._origin.y,this._eOrigin.y,0,0,0,0,0,1)),s&&(this._props.push("morphSVG"),s.end=h,s.endProp=i)}return k},render:function render(t,e){for(var n,r,o,a,i,s,h,l,c,g,p,f,u=e._rawPath,d=e._controlPT,P=e._anchorPT,m=e._rnd,w=e._target,_=e._pt;_;)_.r(t,_.d),_=_._next;if(1===t&&e._apply)for(_=e._pt;_;)_.end&&(e._prop?w[e._prop]=_.end:w.setAttribute(_.endProp,_.end)),_=_._next;else if(u){for(;P;)i=P.sa+t*P.ca,a=P.sl+t*P.cl,P.t[P.i]=e._origin.x+x(i)*a,P.t[P.i+1]=e._origin.y+A(i)*a,P=P._next;for(r=t<.5?2*t*t:(4-2*t)*t-1;d;)f=(s=d.i)+(s===(o=u[d.j]).length-4?7-o.length:5),i=v(o[f]-o[s+1],o[f-1]-o[s]),g=A(i),p=x(i),l=o[s+2],c=o[s+3],a=d.l1s+r*d.l1c,o[s]=l-p*a,o[s+1]=c-g*a,a=d.l2s+r*d.l2c,o[f-1]=l+p*a,o[f]=c+g*a,d=d._next;if(w._gsRawPath=u,e._apply){for(n="",h=0;h<u.length;h++)for(a=(o=u[h]).length,n+="M"+(o[0]*m|0)/m+" "+(o[1]*m|0)/m+" C",s=2;s<a;s++)n+=(o[s]*m|0)/m+" ";e._prop?w[e._prop]=n:w.setAttribute("d",n)}}e._render&&u&&e._render.call(e._tween,u,w)},kill:function kill(){this._pt=this._rawPath=0},getRawPath:function getRawPath(t){var e,n=(t=m(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?m(t)?stringToRawPath(t):s(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")},stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,normalizeStrings:function normalizeStrings(t,e,n){var r=n.shapeIndex,o=n.map,a=[t,e];return ea(a,r,o),a},pathFilter:ea,pointsFilter:ha,getTotalSize:W,equalizeSegmentQuantity:da,convertToPath:function convertToPath$1(t,e){return C(t).map(function(t){return convertToPath(t,!1!==e)})},defaultType:"linear",defaultUpdateTarget:!0,defaultMap:"size"};y()&&a.registerPlugin(J),t.MorphSVGPlugin=J,t.default=J;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); |
/*! | ||
* MotionPathHelper 3.12.4 | ||
* MotionPathHelper 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function n(t){return Math.round(1e5*t)/1e5||0}function o(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e}var P,w=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,C=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,j=Math.PI/180,W=Math.sin,F=Math.cos,Q=Math.abs,U=Math.sqrt,A=1e8;function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=o(t[n],t[n].slice(0));return o(t,e)}function transformRawPath(t,e,n,i,s,a,o){for(var r,h,l,c,d,u=t.length;-1<--u;)for(h=(r=t[u]).length,l=0;l<h;l+=2)c=r[l],d=r[l+1],r[l]=c*e+d*i+a,r[l+1]=c*n+d*s+o;return t._dirty=1,t}function arcToSegment(t,e,n,i,s,a,o,r,h){if(t!==r||e!==h){n=Q(n),i=Q(i);var l=s%360*j,c=F(l),d=W(l),u=Math.PI,p=2*u,g=(t-r)/2,f=(e-h)/2,_=c*g+d*f,m=-d*g+c*f,v=_*_,b=m*m,y=v/(n*n)+b/(i*i);1<y&&(n=U(y)*n,i=U(y)*i);var P=n*n,A=i*i,w=(P*A-P*b-A*v)/(P*b+A*v);w<0&&(w=0);var C=(a===o?-1:1)*U(w),S=n*m/i*C,x=-i*_/n*C,k=c*S-d*x+(t+r)/2,E=d*S+c*x+(e+h)/2,M=(_-S)/n,D=(m-x)/i,H=(-_-S)/n,T=(-m-x)/i,N=M*M+D*D,R=(D<0?-1:1)*Math.acos(M/U(N)),L=(M*T-D*H<0?-1:1)*Math.acos((M*H+D*T)/U(N*(H*H+T*T)));isNaN(L)&&(L=u),!o&&0<L?L-=p:o&&L<0&&(L+=p),R%=p,L%=p;var B,O=Math.ceil(Q(L)/(p/4)),X=[],I=L/O,G=4/3*W(I/2)/(1+F(I/2)),q=c*n,z=d*n,V=d*-i,Y=c*i;for(B=0;B<O;B++)_=F(s=R+B*I),m=W(s),M=F(s+=I),D=W(s),X.push(_-G*m,m+G*_,M+G*D,D-G*M,M,D);for(B=0;B<X.length;B+=2)_=X[B],m=X[B+1],X[B]=_*q+m*V+k,X[B+1]=_*z+m*Y+E;return X[B-2]=r,X[B-1]=h,X}}function stringToRawPath(t){function zd(t,e,n,i){c=(n-t)/3,d=(i-e)/3,r.push(t+c,e+d,n-c,i-d,n,i)}var e,n,i,s,a,o,r,h,l,c,d,u,p,g,f,_=(t+"").replace(C,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(w)||[],m=[],v=0,b=0,y=_.length,P=0,A="ERROR: malformed path: "+t;if(!t||!isNaN(_[0])||isNaN(_[1]))return console.log(A),m;for(e=0;e<y;e++)if(p=a,isNaN(_[e])?o=(a=_[e].toUpperCase())!==_[e]:e--,i=+_[e+1],s=+_[e+2],o&&(i+=v,s+=b),e||(h=i,l=s),"M"===a)r&&(r.length<8?--m.length:P+=r.length),v=h=i,b=l=s,r=[i,s],m.push(r),e+=2,a="L";else if("C"===a)o||(v=b=0),(r=r||[0,0]).push(i,s,v+1*_[e+3],b+1*_[e+4],v+=1*_[e+5],b+=1*_[e+6]),e+=6;else if("S"===a)c=v,d=b,"C"!==p&&"S"!==p||(c+=v-r[r.length-4],d+=b-r[r.length-3]),o||(v=b=0),r.push(c,d,i,s,v+=1*_[e+3],b+=1*_[e+4]),e+=4;else if("Q"===a)c=v+2/3*(i-v),d=b+2/3*(s-b),o||(v=b=0),v+=1*_[e+3],b+=1*_[e+4],r.push(c,d,v+2/3*(i-v),b+2/3*(s-b),v,b),e+=4;else if("T"===a)c=v-r[r.length-4],d=b-r[r.length-3],r.push(v+c,b+d,i+2/3*(v+1.5*c-i),s+2/3*(b+1.5*d-s),v=i,b=s),e+=2;else if("H"===a)zd(v,b,v=i,b),e+=1;else if("V"===a)zd(v,b,v,b=i+(o?b-v:0)),e+=1;else if("L"===a||"Z"===a)"Z"===a&&(i=h,s=l,r.closed=!0),("L"===a||.5<Q(v-i)||.5<Q(b-s))&&(zd(v,b,i,s),"L"===a&&(e+=2)),v=i,b=s;else if("A"===a){if(g=_[e+4],f=_[e+5],c=_[e+6],d=_[e+7],n=7,1<g.length&&(g.length<3?(d=c,c=f,n--):(d=f,c=g.substr(2),n-=2),f=g.charAt(1),g=g.charAt(0)),u=arcToSegment(v,b,+_[e+1],+_[e+2],+_[e+3],+g,+f,(o?v:0)+1*c,(o?b:0)+1*d),e+=n,u)for(n=0;n<u.length;n++)r.push(u[n]);v=r[r.length-2],b=r[r.length-1]}else console.log(A);return(e=r.length)<6?(m.pop(),e=0):r[0]===r[e-2]&&r[1]===r[e-1]&&(r.closed=!0),m.totalPoints=P+e,m}function bezierToPoints(t,e,n,i,s,a,o,r,h,l,c){var d,u=(t+n)/2,p=(e+i)/2,g=(n+s)/2,f=(i+a)/2,_=(s+o)/2,m=(a+r)/2,v=(u+g)/2,b=(p+f)/2,y=(g+_)/2,P=(f+m)/2,A=(v+y)/2,w=(b+P)/2,C=o-t,S=r-e,x=Q((n-o)*S-(i-r)*C),k=Q((s-o)*S-(a-r)*C);return l||(l=[t,e,o,r],c=2),l.splice(c||l.length-2,0,A,w),h*(C*C+S*S)<(x+k)*(x+k)&&(d=l.length,bezierToPoints(t,e,u,p,v,b,A,w,h,l,c),bezierToPoints(A,w,y,P,_,m,o,r,h,l,c+2+(l.length-d))),l}function pointsToSegment(t,e){Q(t[0]-t[2])<1e-4&&Q(t[1]-t[3])<1e-4&&(t=t.slice(2));var i,s,a,o,r,h,l,c,d,u,p,g,f,_,m=t.length-2,v=+t[0],b=+t[1],y=+t[2],P=+t[3],A=[v,b,v,b],w=y-v,C=P-b,S=Math.abs(t[m]-v)<.001&&Math.abs(t[m+1]-b)<.001;for(S&&(t.push(y,P),y=v,P=b,v=t[m-2],b=t[m-1],t.unshift(v,b),m+=4),e=e||0===e?+e:1,a=2;a<m;a+=2)i=v,s=b,v=y,b=P,y=+t[a+2],P=+t[a+3],v===y&&b===P||(o=w,r=C,w=y-v,C=P-b,c=((h=U(o*o+r*r))+(l=U(w*w+C*C)))*e*.25/U(Math.pow(w/l+o/h,2)+Math.pow(C/l+r/h,2)),p=v-((d=v-(v-i)*(h?c/h:0))+(((u=v+(y-v)*(l?c/l:0))-d)*(3*h/(h+l)+.5)/4||0)),_=b-((g=b-(b-s)*(h?c/h:0))+(((f=b+(P-b)*(l?c/l:0))-g)*(3*h/(h+l)+.5)/4||0)),v===i&&b===s||A.push(n(d+p),n(g+_),n(v),n(b),n(u+p),n(f+_)));return v!==y||b!==P||A.length<4?A.push(n(y),n(P),n(y),n(P)):A.length-=2,2===A.length?A.push(v,b,v,b,v,b):S&&(A.splice(0,6),A.length=A.length-6),A}function simplifyPoints(t,e){var n,i,s,a,o,r,h,l=parseFloat(t[0]),c=parseFloat(t[1]),d=[l,c],u=t.length-2;for(e=Math.pow(e||1,2),n=2;n<u;n+=2)e<(a=l-(i=parseFloat(t[n])))*a+(o=c-(s=parseFloat(t[n+1])))*o&&(d.push(i,s),l=i,c=s);return d.push(parseFloat(t[u]),parseFloat(t[1+u])),function simplifyStep(t,e,n,i,s){var a,o,r,h,l,c,d,u,p,g,f,_,m=i,v=t[e],b=t[e+1],y=t[n],P=t[n+1];for(o=e+2;o<n;o+=2)h=t[o],l=t[o+1],g=void 0,_=(p=P)-(d=b),((f=(u=y)-(c=v))||_)&&(1<(g=((h-c)*f+(l-d)*_)/(f*f+_*_))?(c=u,d=p):0<g&&(c+=f*g,d+=_*g)),m<(r=Math.pow(h-c,2)+Math.pow(l-d,2))&&(a=o,m=r);i<m&&(2<a-e&&simplifyStep(t,e,a,i,s),s.push(t[a],t[a+1]),2<n-a&&simplifyStep(t,a,n,i,s))}(d,0,h=d.length-2,e,r=[d[0],d[1]]),r.push(d[h],d[1+h]),r}function getClosestProgressOnBezier(t,e,n,i,s,a,o,r,h,l,c,d,u,p){var g,f,_,m,v=(s-i)/a,b=0,y=i;for(P=A;y<=s;)(g=(f=(m=1-y)*m*m*o+3*m*m*y*h+3*m*y*y*c+y*y*y*u-e)*f+(_=m*m*m*r+3*m*m*y*l+3*m*y*y*d+y*y*y*p-n)*_)<P&&(P=g,b=y),y+=v;return 1<t?getClosestProgressOnBezier(t-1,e,n,Math.max(b-v,0),Math.min(b+v,1),a,o,r,h,l,c,d,u,p):b}function B(t){var e=t.ownerDocument||t;!(S in t.style)&&"msTransform"in t.style&&(x=(S="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(g=window,v=new D,e){f=(p=e).documentElement,_=e.body,(b=p.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),i=e.createElement("div"),s=e&&(e.body||e.firstElementChild);s&&s.appendChild&&(s.appendChild(n),n.appendChild(i),n.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),y=i.offsetParent!==n,s.removeChild(n))}return e}function H(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function J(t,e){if(t.parentNode&&(p||B(t))){var n=H(t),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=n?e?"rect":"g":"div",a=2!==e?0:100,o=3===e?100:0,r="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",h=p.createElementNS?p.createElementNS(i.replace(/^https/,"http"),s):p.createElement(s);return e&&(n?(m=m||J(t),h.setAttribute("width",.01),h.setAttribute("height",.01),h.setAttribute("transform","translate("+a+","+o+")"),m.appendChild(h)):(u||((u=J(t)).style.cssText=r),h.style.cssText=r+"width:0.1px;height:0.1px;top:"+o+"px;left:"+a+"px",u.appendChild(h))),h}throw"Need document and parent."}function M(t,e){var n,i,s,a,o,r,h=H(t),l=t===h,c=h?k:E,d=t.parentNode;if(t===g)return t;if(c.length||c.push(J(t,1),J(t,2),J(t,3)),n=h?m:u,h)l?(a=-(s=function _getCTM(t){var e,n=t.getCTM();return n||(e=t.style[S],t.style[S]="none",t.appendChild(b),n=b.getCTM(),t.removeChild(b),e?t.style[S]=e:t.style.removeProperty(S.replace(/([A-Z])/g,"-$1").toLowerCase())),n||v.clone()}(t)).e/s.a,o=-s.f/s.d,i=v):t.getBBox?(s=t.getBBox(),a=(i=(i=t.transform?t.transform.baseVal:{}).numberOfItems?1<i.numberOfItems?function _consolidate(t){for(var e=new D,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(i):i.getItem(0).matrix:v).a*s.x+i.c*s.y,o=i.b*s.x+i.d*s.y):(i=new D,a=o=0),e&&"g"===t.tagName.toLowerCase()&&(a=o=0),(l?h:d).appendChild(n),n.setAttribute("transform","matrix("+i.a+","+i.b+","+i.c+","+i.d+","+(i.e+a)+","+(i.f+o)+")");else{if(a=o=0,y)for(i=t.offsetParent,s=t;(s=s&&s.parentNode)&&s!==i&&s.parentNode;)4<(g.getComputedStyle(s)[S]+"").length&&(a=s.offsetLeft,o=s.offsetTop,s=0);if("absolute"!==(r=g.getComputedStyle(t)).position&&"fixed"!==r.position)for(i=t.offsetParent;d&&d!==i;)a+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(s=n.style).top=t.offsetTop-o+"px",s.left=t.offsetLeft-a+"px",s[S]=r[S],s[x]=r[x],s.position="fixed"===r.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function N(t,e,n,i,s,a,o){return t.a=e,t.b=n,t.c=i,t.d=s,t.e=a,t.f=o,t}var p,g,f,_,u,m,v,b,y,e,S="transform",x=S+"Origin",k=[],E=[],D=((e=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,i=this.d,s=this.e,a=this.f,o=t*i-e*n||1e-10;return N(this,i/o,-e/o,-n/o,t/o,(n*a-i*s)/o,-(t*a-e*s)/o)},e.multiply=function multiply(t){var e=this.a,n=this.b,i=this.c,s=this.d,a=this.e,o=this.f,r=t.a,h=t.c,l=t.b,c=t.d,d=t.e,u=t.f;return N(this,r*e+l*i,r*n+l*s,h*e+c*i,h*n+c*s,a+d*e+u*i,o+d*n+u*s)},e.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function equals(t){var e=this.a,n=this.b,i=this.c,s=this.d,a=this.e,o=this.f;return e===t.a&&n===t.b&&i===t.c&&s===t.d&&a===t.e&&o===t.f},e.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,i=t.y,s=this.a,a=this.b,o=this.c,r=this.d,h=this.e,l=this.f;return e.x=n*s+i*o+h||0,e.y=n*a+i*r+l||0,e},Matrix2D);function Matrix2D(t,e,n,i,s,a){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=1),void 0===s&&(s=0),void 0===a&&(a=0),N(this,t,e,n,i,s,a)}function getGlobalMatrix(t,e,n,i){if(!t||!t.parentNode||(p||B(t)).documentElement===t)return new D;var s=function _forceNonZeroScale(t){for(var e,n;t&&t!==_;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),a=H(t)?k:E,o=M(t,n),r=a[0].getBoundingClientRect(),h=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),c=o.parentNode,d=!i&&function _isFixed(t){return"fixed"===g.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),u=new D((h.left-r.left)/100,(h.top-r.top)/100,(l.left-r.left)/100,(l.top-r.top)/100,r.left+(d?0:function _getDocScrollLeft(){return g.pageXOffset||p.scrollLeft||f.scrollLeft||_.scrollLeft||0}()),r.top+(d?0:function _getDocScrollTop(){return g.pageYOffset||p.scrollTop||f.scrollTop||_.scrollTop||0}()));if(c.removeChild(o),s)for(r=s.length;r--;)(h=s[r]).scaleX=h.scaleY=0,h.renderTransform(1,h);return e?u.inverse():u}function aa(){return!1}function na(t){t.preventDefault&&(t.preventDefault(),t.preventManipulation&&t.preventManipulation())}function oa(t){return T.createElementNS?T.createElementNS("http://www.w3.org/1999/xhtml",t):T.createElement(t)}function pa(t,e,n){var i,s=T.createElementNS("http://www.w3.org/2000/svg",t),a=/([a-z])([A-Z])/g;for(i in(n=n||{}).class=n.class||"path-editor",n)void 0!==s.style[i]?s.style[i]=n[i]:s.setAttributeNS(null,i.replace(a,"$1-$2").toLowerCase(),n[i]);return e.appendChild(s),s}function ra(t){return(t.transform&&t.transform.baseVal.consolidate()||at).matrix}function ua(t){return~~(1e3*t+(t<0?-.5:.5))/1e3}function xa(t){if(!t.target._gsSelection&&!$&&100<Y()-Z){for(var e=st.length;-1<--e;)st[e].deselect();st.length=0}}function Ba(t,e,n,i){if(t.addEventListener){var s=X[e];i=i||{passive:!1},t.addEventListener(s||e,n,i),s&&e!==s&&"pointer"!==s.substr(0,7)&&t.addEventListener(e,n,i)}else t.attachEvent&&t.attachEvent("on"+e,n)}function Ca(t,e,n){if(t.removeEventListener){var i=X[e];t.removeEventListener(i||e,n),i&&e!==i&&"pointer"!==i.substr(0,7)&&t.removeEventListener(e,n)}else t.detachEvent&&t.detachEvent("on"+e,n)}function Ea(t){ot=t.touches&&_dragCount<t.touches.length,Ca(t.target,"touchend",Ea)}function Fa(t){ot=t.touches&&_dragCount<t.touches.length,Ba(t.target,"touchend",Ea)}function Ga(e,n){return function(t){return e.call(n,t)}}function Ha(t,e,n){var i=e.vars[t];return i&&i.call(e.vars.callbackScope||e,n||e),e}function Ja(){I.style.display="block",I.select(),I.style.display="none"}function La(t){T=document,c=window,i=T.body,s=s||t||c.gsap||console.warn("Please gsap.registerPlugin(PathEditor)"),r=s&&s.core.context||function(){},a=oa("div"),(I=oa("textarea")).style.display="none",i&&i.appendChild(I),X=function(t){for(var e=t.split(","),n=(void 0!==a.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==a.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),i={},s=4;-1<--s;)i[e[s]]=n[s],i[n[s]]=e[s];return i}("touchstart,touchmove,touchend,touchcancel"),SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())},T.addEventListener("keydown",function(t){var e,n,i,s,a=t.keyCode||t.which,o=t.key||a;if("Shift"===o||16===a)L=!0;else if("Control"===o||17===a)l=!0;else if("Meta"===o||91===a)d=!0;else if("Alt"===o||18===a)for(R=!0,e=st.length;-1<--e;)st[e]._onPressAlt();else if(("z"===o||90===a)&&(l||d)&&1<tt.length){if(tt.shift(),n=tt[0]){for((s=n.path).path.setAttribute("d",n.d),s.path.setAttribute("transform",n.transform),s.init(),i=s._anchors,e=0;e<i.length;e++)-1!==n.selectedIndexes.indexOf(i[e].i)&&s._selectedAnchors.push(i[e]);s._updateAnchors(),s.update(),s.vars.onUndo&&s.vars.onUndo.call(s)}}else if("Delete"===o||"Backspace"===o||8===a||46===a||63272===a||"d"===a&&(l||d))for(e=st.length;-1<--e;)st[e]._deleteSelectedAnchors();else if(("a"===o||65===a)&&(d||l))for(e=st.length;-1<--e;)st[e].select(!0)},!0),T.addEventListener("keyup",function(t){var e=t.key||t.keyCode||t.which;if("Shift"===e||16===e)L=!1;else if("Control"===e||17===e)l=!1;else if("Meta"===e||91===e)d=!1;else if("Alt"===e||18===e){R=!1;for(var n=st.length;-1<--n;)st[n]._onReleaseAlt()}},!0),h=!!c.PointerEvent,Ba(T,"mouseup",xa),Ba(T,"touchend",xa),Ba(T,"touchcancel",aa),Ba(c,"touchmove",aa),i&&i.addEventListener("touchstart",aa),G=1}function Ma(t){var e,n,i=this,s=getGlobalMatrix(i.target.parentNode,!0);this._matrix=this.target.transform.baseVal.getItem(0).matrix,this._ctm=s,X[t.type]?(e=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:T,Ba(e,"touchend",i._onRelease),Ba(e,"touchmove",i._onMove),Ba(e,"touchcancel",i._onRelease),Ba(T,"touchstart",Fa),Ba(c,"touchforcechange",na)):(e=null,Ba(T,"mousemove",i._onMove)),h||Ba(T,"mouseup",i._onRelease),na(t),Ja(),t.changedTouches?(t=i.touch=t.changedTouches[0],i.touchID=t.identifier):t.pointerId?i.touchID=t.pointerId:i.touch=i.touchID=null,i._startPointerY=i.pointerY=t.pageY,i._startPointerX=i.pointerX=t.pageX,i._startElementX=i._matrix.e,i._startElementY=i._matrix.f,1===this._ctm.a&&0===this._ctm.b&&0===this._ctm.c&&1===this._ctm.d?this._ctm=null:(n=i._startPointerX*this._ctm.a+i._startPointerY*this._ctm.c+this._ctm.e,i._startPointerY=i._startPointerX*this._ctm.b+i._startPointerY*this._ctm.d+this._ctm.f,i._startPointerX=n),i.isPressed=$=!0,i.touchEventTarget=e,i.vars.onPress&&i.vars.onPress.call(i.vars.callbackScope||i,i.pointerEvent)}function Na(t){var e,n,i=this,s=t;if(i._enabled&&!ot&&i.isPressed&&t){if(e=(i.pointerEvent=t).changedTouches){if((t=e[0])!==i.touch&&t.identifier!==i.touchID){for(n=e.length;-1<--n&&(t=e[n]).identifier!==i.touchID;);if(n<0)return}}else if(t.pointerId&&i.touchID&&t.pointerId!==i.touchID)return;na(s),i.setPointerPosition(t.pageX,t.pageY),i.vars.onDrag&&i.vars.onDrag.call(i.vars.callbackScope||i,i.pointerEvent)}}function Oa(t,e){var n=this;if(n._enabled&&n.isPressed&&(!t||null==n.touchID||e||!(t.pointerId&&t.pointerId!==n.touchID||t.changedTouches&&!function _hasTouchID(t,e){for(var n=t.length;-1<--n;)if(t[n].identifier===e)return!0;return!1}(t.changedTouches,n.touchID)))){!function _interacted(){Z=Y()}(),n.isPressed=$=!1;var i,s,a=t,o=n.isDragging,r=n.touchEventTarget;if(r?(Ca(r,"touchend",n._onRelease),Ca(r,"touchmove",n._onMove),Ca(r,"touchcancel",n._onRelease),Ca(T,"touchstart",Fa)):Ca(T,"mousemove",n._onMove),h||(Ca(T,"mouseup",n._onRelease),t&&t.target&&Ca(t.target,"mouseup",n._onRelease)),o?n.isDragging=!1:n.vars.onClick&&n.vars.onClick.call(n.vars.callbackScope||n,a),t){if((i=t.changedTouches)&&(t=i[0])!==n.touch&&t.identifier!==n.touchID){for(s=i.length;-1<--s&&(t=i[s]).identifier!==n.touchID;);if(s<0)return}n.pointerEvent=a,n.pointerX=t.pageX,n.pointerY=t.pageY}return a&&!o&&n.vars.onDragRelease?n.vars.onDragRelease.call(n,n.pointerEvent):(a&&na(a),n.vars.onRelease&&n.vars.onRelease.call(n.vars.callbackScope||n,n.pointerEvent)),o&&n.vars.onDragEnd&&n.vars.onDragEnd.call(n.vars.callbackScope||n,n.pointerEvent),!0}}function Pa(t,e,n,i){var s,a=t[e],o=a.length-(a.closed?6:0),r=[];for(s=0;s<o;s+=6)r.push(new lt(n,t,e,s,i));return a.closed&&(r[0].isClosedStart=!0),r}function Qa(t,e,n){var i=t[n]-t[e],s=t[n+1]-t[e+1];return Math.sqrt(i*i+s*s)}var T,h,c,i,s,r,l,R,L,d,O,a,X,I,G,q,z=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,V="#4e7fff",Y=(Math.PI,Date.now||function(){return(new Date).getTime()}),Z=0,$=0,K={},tt=[],et={},nt=[],it=",",st=[],at={matrix:new D},ot=0,rt=((q=DraggableSVG.prototype).setPointerPosition=function setPointerPosition(t,e){var n,i,s,a,o;this.pointerX=t,this.pointerY=e,this._ctm&&(o=t*this._ctm.a+e*this._ctm.c+this._ctm.e,e=t*this._ctm.b+e*this._ctm.d+this._ctm.f,t=o),(i=e-this._startPointerY)<1&&-1<i&&(i=0),(n=t-this._startPointerX)<1&&-1<n&&(n=0),s=(1e3*(this._startElementX+n)|0)/1e3,a=(1e3*(this._startElementY+i)|0)/1e3,this.snap&&!L&&(et.x=s,et.y=a,this.snap.call(this,et),s=et.x,a=et.y),this.x===s&&this.y===a||(this._matrix.f=this.y=a,this._matrix.e=this.x=s,!this.isDragging&&this.isPressed&&(this.isDragging=!0,Ha("onDragStart",this,this.pointerEvent)))},q.enabled=function enabled(t){return arguments.length?((this._enabled=t)?(h||Ba(this.target,"mousedown",this._onPress),Ba(this.target,"touchstart",this._onPress),Ba(this.target,"click",this._onClick,!0)):(e=this.isDragging,Ca(this.target,"mousedown",this._onPress),Ca(this.target,"touchstart",this._onPress),Ca(c,"touchforcechange",na),Ca(this.target,"click",this._onClick),this.touchEventTarget&&(Ca(this.touchEventTarget,"touchcancel",this._onRelease),Ca(this.touchEventTarget,"touchend",this._onRelease),Ca(this.touchEventTarget,"touchmove",this._onMove)),Ca(T,"mouseup",this._onRelease),Ca(T,"mousemove",this._onMove),this.isDragging=this.isPressed=!1,e&&Ha("onDragEnd",this,this.pointerEvent)),this):this._enabled;var e},q.endDrag=function endDrag(t){this._onRelease(t)},DraggableSVG);function DraggableSVG(t,e){this.target="string"==typeof t?T.querySelectorAll(t)[0]:t,this.vars=e||{},this._onPress=Ga(Ma,this),this._onMove=Ga(Na,this),this._onRelease=Ga(Oa,this),this.target.setAttribute("transform",(this.target.getAttribute("transform")||"")+" translate(0,0)"),this._matrix=ra(this.target),this.x=this._matrix.e,this.y=this._matrix.f,this.snap=e.snap,isNaN(e.maxX)&&isNaN(e.minX)?this._bounds=0:(this._bounds=1,this.maxX=+e.maxX,this.minX=+e.minX),this.enabled(!0)}var ht,lt=((ht=Anchor.prototype).onPress=function onPress(){Ha("onPress",this)},ht.onClick=function onClick(){Ha("onClick",this)},ht.onDrag=function onDrag(){var t=this.segment;this.vars.onDrag.call(this.vars.callbackScope||this,this,this._draggable.x-t[this.i],this._draggable.y-t[this.i+1])},ht.onDragEnd=function onDragEnd(){Ha("onDragEnd",this)},ht.onRelease=function onRelease(){Ha("onRelease",this)},ht.update=function update(t,e,n){t&&(this.rawPath=t),arguments.length<=1?(e=this.j,n=this.i):(this.j=e,this.i=n);var i=this.smooth,s=this.rawPath[e],a=0===n&&s.closed?s.length-4:n-2;this.segment=s,this.smooth=0<n&&n<s.length-2&&Math.abs(Math.atan2(s[n+1]-s[1+a],s[n]-s[a])-Math.atan2(s[n+3]-s[n+1],s[n+2]-s[n]))<.09?2:0,this.smooth!==i&&this.element.setAttribute("d",this.smooth?this.editor._circleHandle:this.editor._squareHandle),this.element.setAttribute("transform","translate("+s[n]+","+s[n+1]+")")},Anchor);function Anchor(t,e,n,i,s){this.editor=t,this.element=pa("path",t._selection,{fill:V,stroke:V,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this.update(e,n,i),this.element._gsSelection=!0,this.vars=s||{},this._draggable=new rt(this.element,{callbackScope:this,onDrag:this.onDrag,snap:this.vars.snap,onPress:this.onPress,onRelease:this.onRelease,onClick:this.onClick,onDragEnd:this.onDragEnd})}var ct,dt=((ct=PathEditor.prototype)._onRelease=function _onRelease(t){var e=this._editingAnchor;e&&(K.x=e.segment[e.i],K.y=e.segment[e.i+1]),Ca(c,"touchforcechange",na),Ha("onRelease",this,t)},ct.init=function init(){var t,e,n=this.path.getAttribute("d"),i=stringToRawPath(n),s=this.path.getAttribute("transform")||"translate(0,0)",a=!this._rawPath||i.totalPoints!==this._rawPath.totalPoints||i.length!==this._rawPath.length,o={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX};if(a&&this._anchors&&this._anchors.length){for(e=0;e<this._anchors.length;e++)this._anchors[e].element.parentNode.removeChild(this._anchors[e].element),this._anchors[e]._draggable.enabled(!1);this._selectedAnchors.length=0}if(this._rawPath=i,a){if(this._anchors=Pa(i,0,this,o),1<(t=i.length))for(e=1;e<t;e++)this._anchors=this._anchors.concat(Pa(i,e,this,o))}else for(e=this._anchors.length;-1<--e;)this._anchors[e].update(i);return this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),this._selectionPath.setAttribute("d",n),this._selectionHittest.setAttribute("d",n),this._g.setAttribute("transform",function _getConcatenatedTransforms(t){for(var e=ra(t),n=t.ownerSVGElement;(t=t.parentNode)&&t.ownerSVGElement===n;)e.multiply(ra(t));return"matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")"}(this.path.parentNode)||"translate(0,0)"),this._selection.setAttribute("transform",s),this._selectionHittest.setAttribute("transform",s),this._updateAnchors(),this},ct._saveState=function _saveState(){!function _addHistory(t){var e,n=[],i=t._selectedAnchors;for(e=0;e<i.length;e++)n[e]=i[e].i;tt.unshift({path:t,d:t.path.getAttribute("d"),transform:t.path.getAttribute("transform")||"",selectedIndexes:n}),30<tt.length&&(tt.length=30)}(this)},ct._onClickSelectionPath=function _onClickSelectionPath(t){if("hidden"===this._selection.style.visibility)this.select();else if(R||t&&t.altKey){var e,i,s,a,o,r,h={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX},l=this._selection.getScreenCTM().inverse();for(this._draggable&&this._draggable._onRelease(t),l&&(a=t.clientX*l.a+t.clientY*l.c+l.e,o=t.clientX*l.b+t.clientY*l.d+l.f),r=function getClosestData(t,e,n,i){var s,a,o,r,h={j:0,i:0,t:0},l=A;for(a=0;a<t.length;a++)for(r=t[a],s=0;s<r.length;s+=6)o=getClosestProgressOnBezier(1,e,n,0,1,i||20,r[s],r[s+1],r[s+2],r[s+3],r[s+4],r[s+5],r[s+6],r[s+7]),P<l&&(l=P,h.j=a,h.i=s,h.t=o);return h}(this._rawPath,a,o),function subdivideSegment(t,e,i){if(i<=0||1<=i)return 0;var s=t[e],a=t[e+1],o=t[e+2],r=t[e+3],h=t[e+4],l=t[e+5],c=s+(o-s)*i,d=o+(h-o)*i,u=a+(r-a)*i,p=r+(l-r)*i,g=c+(d-c)*i,f=u+(p-u)*i,_=h+(t[e+6]-h)*i,m=l+(t[e+7]-l)*i;return d+=(_-d)*i,p+=(m-p)*i,t.splice(e+2,4,n(c),n(u),n(g),n(f),n(g+(d-g)*i),n(f+(p-f)*i),n(d),n(p),n(_),n(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}(this._rawPath[r.j],r.i,r.t),e=r.i+6,i=0;i<this._anchors.length;i++)this._anchors[i].i>=e&&(this._anchors[i].i+=6);s=new lt(this,this._rawPath,r.j,e,h),this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),s._draggable._onPress(t),O=s,this._anchors.push(s),this._selectedAnchors.length=0,this._selectedAnchors.push(s),this._updateAnchors(),this.update(),this._saveState()}Ja(),Ba(c,"touchforcechange",na),Ha("onPress",this)},ct._onClickHandle1=function _onClickHandle1(){var t=this._editingAnchor,e=t.i,n=t.segment,i=t.isClosedStart?n.length-4:e-2;R&&Math.abs(n[e]-n[i])<5&&Math.abs(n[e+1]-n[1+i])<5&&this._onClickAnchor(t)},ct._onClickHandle2=function _onClickHandle2(){var t=this._editingAnchor,e=t.i,n=t.segment;R&&Math.abs(n[e]-n[e+2])<5&&Math.abs(n[e+1]-n[e+3])<5&&this._onClickAnchor(t)},ct._onDragEndAnchor=function _onDragEndAnchor(){O=null,this._saveState()},ct.isSelected=function isSelected(){return 0<this._selectedAnchors.length||"visible"===this._selection.style.visibility},ct.select=function select(t){if(this._selection.style.visibility="visible",this._editingAnchor=null,(this.path._gsSelection=!0)===t)for(var e=this._anchors.length;-1<--e;)this._selectedAnchors[e]=this._anchors[e];return-1===st.indexOf(this)&&st.push(this),this._updateAnchors(),this},ct.deselect=function deselect(){return this._selection.style.visibility="hidden",this._selectedAnchors.length=0,this._editingAnchor=null,this.path._gsSelection=!1,st.splice(st.indexOf(this),1),this._updateAnchors(),this},ct._onDragPath=function _onDragPath(){var t=this._selectionHittest.getAttribute("transform")||"translate(0,0)";this._selection.setAttribute("transform",t),this.path.setAttribute("transform",t)},ct._onPressAnchor=function _onPressAnchor(t){-1===this._selectedAnchors.indexOf(t)?(L||(this._selectedAnchors.length=0),this._selectedAnchors.push(t)):L&&(this._selectedAnchors.splice(this._selectedAnchors.indexOf(t),1),t._draggable.endDrag()),K.x=t.segment[t.i],K.y=t.segment[t.i+1],this._updateAnchors(),Ha("onPress",this)},ct._deleteSelectedAnchors=function _deleteSelectedAnchors(){for(var t,e,n,i=this._selectedAnchors,s=i.length;-1<--s;)for((t=i[s]).element.parentNode.removeChild(t.element),t._draggable.enabled(!1),(e=t.i)?e<t.segment.length-2?t.segment.splice(e-2,6):t.segment.splice(e-4,6):t.segment.splice(e,6),i.splice(s,1),this._anchors.splice(this._anchors.indexOf(t),1),n=0;n<this._anchors.length;n++)this._anchors[n].i>=e&&(this._anchors[n].i-=6);this._updateAnchors(),this.update(),this._saveState(),this.vars.onDeleteAnchor&&this.vars.onDeleteAnchor.call(this.vars.callbackScope||this)},ct._onClickAnchor=function _onClickAnchor(t){var e,n,i,s,a,o,r=t.i,h=t.segment,l=t.isClosedStart?h.length-4:r-2,c=1e3,d=!r||r>=h.length-2;R&&O!==t&&this._editingAnchor?(t.smooth=!t.smooth,d&&!t.isClosedStart&&(t.smooth=!1),t.element.setAttribute("d",t.smooth?this._circleHandle:this._squareHandle),!t.smooth||d&&!t.isClosedStart?t.smooth||d&&!t.isClosedStart||((r||t.isClosedStart)&&(h[l]=h[r],h[1+l]=h[r+1]),r<h.length-2&&(h[r+2]=h[r],h[r+3]=h[r+1]),this._updateAnchors(),this.update(),this._saveState()):(e=((e=Math.atan2(h[r+1]-h[1+l],h[r]-h[l]))+(n=Math.atan2(h[r+3]-h[r+1],h[r+2]-h[r])))/2,i=Qa(h,l,r),s=Qa(h,r,r+2),i<.2&&(i=Qa(h,r,l-4)/4,e=n||Math.atan2(h[r+7]-h[l-3],h[r+6]-h[l-4])),s<.2&&(s=Qa(h,r,r+6)/4,n=e||Math.atan2(h[r+7]-h[l-3],h[r+6]-h[l-4])),a=Math.sin(e),o=Math.cos(e),Math.abs(n-e)<Math.PI/2&&(a=-a,o=-o),h[l]=((h[r]+o*i)*c|0)/c,h[1+l]=((h[r+1]+a*i)*c|0)/c,h[r+2]=((h[r]-o*s)*c|0)/c,h[r+3]=((h[r+1]-a*s)*c|0)/c,this._updateAnchors(),this.update(),this._saveState())):L||(this._selectedAnchors.length=0,this._selectedAnchors.push(t)),O=null,this._updateAnchors()},ct._updateAnchors=function _updateAnchors(){var t,e,n,i=1===this._selectedAnchors.length?this._selectedAnchors[0]:null,s=i?i.segment:null;for(this._editingAnchor=i,t=0;t<this._anchors.length;t++)this._anchors[t].element.style.fill=-1!==this._selectedAnchors.indexOf(this._anchors[t])?V:"white";i&&(this._handle1.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle),this._handle2.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle)),t=i?i.i:0,i&&(t||i.isClosedStart)?(e=i.isClosedStart?s[s.length-4]:s[t-2],n=i.isClosedStart?s[s.length-3]:s[t-1],this._handle1.style.visibility=this._line1.style.visibility=R||e!==s[t]||n!==s[t+1]?"visible":"hidden",this._handle1.setAttribute("transform","translate("+e+it+n+")"),this._line1.setAttribute("points",e+it+n+it+s[t]+it+s[t+1])):this._handle1.style.visibility=this._line1.style.visibility="hidden",i&&t<s.length-2?(e=s[t+2],n=s[t+3],this._handle2.style.visibility=this._line2.style.visibility=R||e!==s[t]||n!==s[t+1]?"visible":"hidden",this._handle2.setAttribute("transform","translate("+e+it+n+")"),this._line2.setAttribute("points",s[t]+it+s[t+1]+it+e+it+n)):this._handle2.style.visibility=this._line2.style.visibility="hidden"},ct._onPressAlt=function _onPressAlt(){var t=this._editingAnchor;t&&((t.i||t.isClosedStart)&&(this._handle1.style.visibility=this._line1.style.visibility="visible"),t.i<t.segment.length-2&&(this._handle2.style.visibility=this._line2.style.visibility="visible"))},ct._onReleaseAlt=function _onReleaseAlt(){var t,e,n,i=this._editingAnchor;i&&(t=i.segment,e=i.i,n=i.isClosedStart?t.length-4:e-2,t[e]===t[n]&&t[e+1]===t[1+n]&&(this._handle1.style.visibility=this._line1.style.visibility="hidden"),t[e]===t[e+2]&&t[e+1]===t[e+3]&&(this._handle2.style.visibility=this._line2.style.visibility="hidden"))},ct._onPressHandle1=function _onPressHandle1(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Qa(this._editingAnchor.segment,this._editingAnchor.i,this._editingAnchor.i+2)),Ha("onPress",this)},ct._onPressHandle2=function _onPressHandle2(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Qa(this._editingAnchor.segment,this._editingAnchor.isClosedStart?this._editingAnchor.segment.length-4:this._editingAnchor.i-2,this._editingAnchor.i)),Ha("onPress",this)},ct._onReleaseHandle=function _onReleaseHandle(t){this._onRelease(t),this._saveState()},ct._onDragHandle1=function _onDragHandle1(){var t,e=this._editingAnchor,n=e.segment,i=e.i,s=e.isClosedStart?n.length-4:i-2,a=1e3,o=this._handle1._draggable.x,r=this._handle1._draggable.y;n[s]=o=(o*a|0)/a,n[1+s]=r=(r*a|0)/a,e.smooth&&(R?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(n[i+1]-r,n[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),n[i+2]=((n[i]+o)*a|0)/a,n[i+3]=((n[i+1]+r)*a|0)/a)),this.update()},ct._onDragHandle2=function _onDragHandle2(){var t,e=this._editingAnchor,n=e.segment,i=e.i,s=e.isClosedStart?n.length-4:i-2,a=1e3,o=this._handle2._draggable.x,r=this._handle2._draggable.y;n[i+2]=o=(o*a|0)/a,n[i+3]=r=(r*a|0)/a,e.smooth&&(R?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(n[i+1]-r,n[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),n[s]=((n[i]+o)*a|0)/a,n[1+s]=((n[i+1]+r)*a|0)/a)),this.update()},ct._onDragAnchor=function _onDragAnchor(t,e,n){var i,s,a,o,r,h=this._selectedAnchors,l=h.length,c=1e3;for(s=0;s<l;s++)i=(o=h[s]).i,a=o.segment,i?(a[i-2]=((a[i-2]+e)*c|0)/c,a[i-1]=((a[i-1]+n)*c|0)/c):o.isClosedStart&&(a[r=a.length-2]=ua(a[r]+e),a[1+r]=ua(a[1+r]+n),a[r-2]=ua(a[r-2]+e),a[r-1]=ua(a[r-1]+n)),a[i]=((a[i]+e)*c|0)/c,a[i+1]=((a[i+1]+n)*c|0)/c,i<a.length-2&&(a[i+2]=((a[i+2]+e)*c|0)/c,a[i+3]=((a[i+3]+n)*c|0)/c),o!==t&&o.element.setAttribute("transform","translate("+a[i]+it+a[i+1]+")");this.update()},ct.enabled=function enabled(t){if(!arguments.length)return this._enabled;for(var e=this._anchors.length;-1<--e;)this._anchors[e]._draggable.enabled(t);return this._enabled=t,this._handle1._draggable.enabled(t),this._handle2._draggable.enabled(t),this._draggable&&this._draggable.enabled(t),t?this._selection.parentNode||(this.path.ownerSVGElement.appendChild(this._selectionHittest),this.path.ownerSVGElement.appendChild(this._selection),this.init(),this._saveState()):(this.deselect(),this._selectionHittest.parentNode&&this._selectionHittest.parentNode.removeChild(this._selectionHittest),this._selection.parentNode&&this._selection.parentNode.removeChild(this._selection)),this._updateAnchors(),this.update()},ct.update=function update(t){var e,n,i,s,a,o="",r=this._editingAnchor;if(t&&this.init(),r&&(e=r.i,n=r.segment,(e||r.isClosedStart)&&(i=n[a=r.isClosedStart?n.length-4:e-2],s=n[1+a],this._handle1.setAttribute("transform","translate("+i+it+s+")"),this._line1.setAttribute("points",i+it+s+it+n[e]+it+n[e+1])),e<n.length-2&&(i=n[e+2],s=n[e+3],this._handle2.setAttribute("transform","translate("+i+it+s+")"),this._line2.setAttribute("points",n[e]+it+n[e+1]+it+i+it+s))),t)o=this.path.getAttribute("d");else{for(e=0;e<this._rawPath.length;e++)7<(n=this._rawPath[e]).length&&(o+="M"+n[0]+it+n[1]+"C"+n.slice(2).join(it));this.path.setAttribute("d",o),this._selectionPath.setAttribute("d",o),this._selectionHittest.setAttribute("d",o)}return this.vars.onUpdate&&this._enabled&&Ha("onUpdate",this,o),this},ct.getRawPath=function getRawPath(t,e,n){if(t){var i=ra(this.path);return transformRawPath(copyRawPath(this._rawPath),1,0,0,1,i.e+(e||0),i.f+(n||0))}return this._rawPath},ct.getString=function getString(t,e,i){if(t){var s=ra(this.path);return function rawPathToString(t){!function _isNumber(t){return"number"==typeof t}(t[0])||(t=[t]);var e,i,s,a,o="",r=t.length;for(i=0;i<r;i++){for(a=t[i],o+="M"+n(a[0])+","+n(a[1])+" C",e=a.length,s=2;s<e;s++)o+=n(a[s++])+","+n(a[s++])+" "+n(a[s++])+","+n(a[s++])+" "+n(a[s++])+","+n(a[s])+" ";a.closed&&(o+="z")}return o}(transformRawPath(copyRawPath(this._rawPath),1,0,0,1,s.e+(e||0),s.f+(i||0)))}return this.path.getAttribute("d")},ct.getNormalizedSVG=function getNormalizedSVG(t,e,n,i){var s,a,o,r,h,l,c=this._rawPath[0],d=-1*c[0],u=0===e?0:-(e||c[1]),p=c.length,g=1/(c[p-2]+d),f=-t||c[p-1]+u;for(f=f?1/f:-g,g*=1e3,f*=1e3,a=nt.length=0;a<p;a+=2)nt[a]=((c[a]+d)*g|0)/1e3,nt[a+1]=((c[a+1]+u)*f|0)/1e3;if(i){for(s=[],p=nt.length,a=2;a<p;a+=6)o=nt[a-2],r=nt[a-1],h=nt[a+4],l=nt[a+5],s.push(o,r,h,l),bezierToPoints(o,r,nt[a],nt[a+1],nt[a+2],nt[a+3],h,l,.001,s,s.length-2);for(o=s[0],p=s.length,a=2;a<p;a+=2){if((h=s[a])<o||1<h||h<0){i();break}o=h}}return n&&8===p&&0===nt[0]&&0===nt[1]&&1===nt[p-2]&&1===nt[p-1]?nt.slice(2,6).join(","):(nt[2]="C"+nt[2],"M"+nt.join(","))},ct.kill=function kill(){this.enabled(!1),this._g.parentNode&&this._g.parentNode.removeChild(this._g)},ct.revert=function revert(){this.kill()},PathEditor);function PathEditor(t,e){e=e||{},G||La(),this.vars=e,this.path="string"==typeof t?T.querySelectorAll(t)[0]:t,this._g=pa("g",this.path.ownerSVGElement,{class:"path-editor-g path-editor"}),this._selectionHittest=pa("path",this._g,{stroke:"transparent",strokeWidth:16,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selection=e._selection||pa("g",this._g,{class:"path-editor-selection path-editor"}),this._selectionPath=pa("path",this._selection,{stroke:V,strokeWidth:2,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selectedAnchors=[],this._line1=pa("polyline",this._selection,{stroke:V,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line2=pa("polyline",this._selection,{stroke:V,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line1.style.pointerEvents=this._line2.style.pointerEvents=this._selectionPath.style.pointerEvents="none",this._enabled=!0;var n=this.path.parentNode.getScreenCTM().inverse(),i=(n.a+n.d)/2*(e.handleSize||5);this._squareHandle=function _getSquarePathData(t){return["M-"+(t=ua(t)),-t,t,-t,t,t,-t,t+"z"].join(it)}(i),this._circleHandle=function _getCirclePathData(t){var e=ua(.552284749831*t);return"M"+(t=ua(t))+",0C"+[t,e,e,t,0,t,-e,t,-t,e,-t,0,-t,-e,-e,-t,0,-t,e,-t,t,-e,t,0].join(it)+"z"}(1.15*i),this._handle1=pa("path",this._selection,{d:this._squareHandle,fill:V,stroke:"transparent",strokeWidth:6}),this._handle2=pa("path",this._selection,{d:this._squareHandle,fill:V,stroke:"transparent",strokeWidth:6}),this._handle1._draggable=new rt(this._handle1,{onDrag:this._onDragHandle1,callbackScope:this,onPress:this._onPressHandle1,onRelease:this._onReleaseHandle,onClick:this._onClickHandle1,snap:e.handleSnap}),this._handle2._draggable=new rt(this._handle2,{onDrag:this._onDragHandle2,callbackScope:this,onPress:this._onPressHandle2,onRelease:this._onReleaseHandle,onClick:this._onClickHandle2,snap:e.handleSnap}),this._handle1.style.visibility=this._handle2.style.visibility="hidden";for(var s=[this._handle1,this._handle2,this._line1,this._line2,this._selection,this._selectionPath,this._selectionHittest],a=s.length;-1<--a;)s[a]._gsSelection=!0;!1!==e.draggable&&(this._draggable=new rt(this._selectionHittest,{callbackScope:this,onPress:this.select,onRelease:this._onRelease,onDrag:this._onDragPath,onDragEnd:this._saveState,maxX:this.vars.maxX,minX:this.vars.minX})),this.init(),this._selection.style.visibility=!1===e.selected?"hidden":"visible",!1!==e.selected&&(this.path._gsSelection=!0,st.push(this)),this._saveState(),h||(Ba(this._selectionHittest,"mousedown",Ga(this._onClickSelectionPath,this)),Ba(this._selectionHittest,"mouseup",Ga(this._onRelease,this))),Ba(this._selectionHittest,"touchstart",Ga(this._onClickSelectionPath,this)),Ba(this._selectionHittest,"touchend",Ga(this._onRelease,this)),r(this)}dt.simplifyPoints=simplifyPoints,dt.pointsToSegment=pointsToSegment,dt.simplifySVG=function(t,e){var n,i,s,a,o,r,h,l,c,d,u;if(d=(e=e||{}).tolerance||1,c=e.precision||1/d,void 0===e.cornerThreshold||e.cornerThreshold,"string"!=typeof t&&(t=(n=t).getAttribute("d")),"#"!==t.charAt(0)&&"."!==t.charAt(0)||(n=T.querySelector(t))&&(t=n.getAttribute("d")),i=!1!==e.curved||/[achqstvz]/gi.test(t)?stringToRawPath(t)[0]:t.match(z),!1!==e.curved){for(l=i,i=[],u=l.length,s=2;s<u;s+=6)a=+l[s-2],r=+l[s-1],o=+l[s+4],h=+l[s+5],i.push(ua(a),ua(r),ua(o),ua(h)),bezierToPoints(a,r,+l[s],+l[s+1],+l[s+2],+l[s+3],o,h,1/(2e5*c),i,i.length-2);(i=pointsToSegment(simplifyPoints(i,d),e.curviness))[2]="C"+i[2]}else i=simplifyPoints(i,d);return t="M"+i.join(","),n&&n.setAttribute("d",t),t},dt.create=function(t,e){return new dt(t,e)},dt.editingAxis=K,dt.getSnapFunction=function(t){var r=t.radius||2,e=1e20,h=t.x||0===t.x?t.x:t.width?0:-e,l=t.y||0===t.y?t.y:t.height?0:-e,c=h+(t.width||1e40),d=l+(t.height||1e40),u=!1!==t.containX,p=!1!==t.containY,g=t.axis,f=t.gridSize;return r*=r,function(t){var e,n,i,s,a=t.x,o=t.y;u&&a<h||(i=a-h)*i<r?a=h:(u&&c<a||(i=c-a)*i<r)&&(a=c),p&&o<l||(s=o-l)*s<r?o=l:(p&&d<o||(s=d-o)*s<r)&&(o=d),g&&(i=a-g.x,s=o-g.y,i*i<r&&(a=g.x),s*s<r&&(o=g.y)),f&&(i=(e=h+Math.round((a-h)/f)*f)-a)*i+(s=(n=l+Math.round((o-l)/f)*f)-o)*s<r&&(a=e,o=n),t.x=a,t.y=o}},dt.version="3.12.4",dt.register=La;function db(){return String.fromCharCode.apply(null,arguments)}function jb(t){return"string"==typeof t}function kb(t,e){var n=gt.createElementNS?gt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):gt.createElement(t);return n.style?n:gt.createElement(t)}function qb(t,e,n){return jb(t)&&xt.test(t)?gt.querySelector(t):Array.isArray(t)?bt(vt([{x:ut.getProperty(e,"x"),y:ut.getProperty(e,"y")}].concat(t),n)):jb(t)||t&&"path"===(t.tagName+"").toLowerCase()?t:0}function vb(t,e){var n="Please gsap.registerPlugin(MotionPathPlugin)";pt=window,(ut=ut||t||pt.gsap||console.warn(n))&&dt.register(ut),gt=document,_t=gt.body,ft=gt.documentElement,ut&&(mt=ut.plugins.motionPath,Et.PathEditor=dt,yt=ut.core.context||function(){}),mt?(function _initCopyToClipboard(){(Pt=kb("textarea")).style.display="none",_t.appendChild(Pt)}(),vt=mt.arrayToRawPath,bt=mt.rawPathToString):!0===e&&console.warn(n)}var ut,pt,gt,ft,_t,mt,vt,bt,yt,Pt,At="MotionPathHelper",wt=db(103,114,101,101,110,115,111,99,107,46,99,111,109),Ct=db(103,115,97,112,46,99,111,109),St=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,xt=(function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(db(102,105,108,101,58,47,47))||-1!==t.indexOf(db(108,111,99,97,108,104,111,115,116))||St.test(t)||(e?window.location.hostname:"").split(".").pop()===db(108,111,99,97,108),i=[wt,Ct,db(99,111,100,101,112,101,110,46,105,111),db(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),db(99,111,100,101,112,101,110,46,100,101,118),db(99,111,100,101,112,101,110,46,97,112,112),db(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),db(112,101,110,115,46,99,108,111,117,100),db(99,115,115,45,116,114,105,99,107,115,46,99,111,109),db(99,100,112,110,46,105,111),db(112,101,110,115,46,105,111),db(103,97,110,110,111,110,46,116,118),db(99,111,100,101,99,97,110,121,111,110,46,110,101,116),db(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),db(99,101,114,101,98,114,97,120,46,99,111,46,117,107),db(116,121,109,112,97,110,117,115,46,110,101,116),db(116,119,101,101,110,109,97,120,46,99,111,109),db(112,108,110,107,114,46,99,111),db(104,111,116,106,97,114,46,99,111,109),db(119,101,98,112,97,99,107,98,105,110,46,99,111,109),db(97,114,99,104,105,118,101,46,111,114,103),db(99,111,100,101,115,97,110,100,98,111,120,46,105,111),db(99,115,98,46,97,112,112),db(115,116,97,99,107,98,108,105,116,122,46,99,111,109),db(115,116,97,99,107,98,108,105,116,122,46,105,111),db(99,111,100,105,101,114,46,105,111),db(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),db(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),db(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),db(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),db(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),db(106,115,102,105,100,100,108,101,46,110,101,116)],s=i.length;for(setTimeout(function checkWarn(){if(e)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var t="object"==typeof ut?ut:e&&window.gsap;e&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(db(37,99,87,97,114,110,105,110,103),db(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(db(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+At+db(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(db(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),db(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--s;)if(-1!==t.indexOf(i[s]))return;n||setTimeout(function(){e&&(window.location.href=db(104,116,116,112,115,58,47,47)+wt+db(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+At+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),/(^[#\.][a-z]|[a-y][a-z])/i),kt={matrix:{a:1,b:0,c:0,d:1,e:0,f:0}},Et=(MotionPathHelper.prototype.getString=function getString(){return this.editor.getString(!0,-this.offset.x,-this.offset.y)},MotionPathHelper);function MotionPathHelper(t,e){var n=this;void 0===e&&(e={}),mt||vb(e.gsap,1);var i,s,a,o,r,h,l,c,d,u,p,g,f,_,m=kb("div"),v=this,b={x:0,y:0};t instanceof ut.core.Tween?i=(c=t).targets()[0]:(i=ut.utils.toArray(t)[0],c=function _findMotionPathTween(t){for(var e=ut.getTweensOf(t),n=0;n<e.length;n++){if(e[n].vars.motionPath)return e[n];e[n].timeline&&e.push.apply(e,e[n].timeline.getChildren())}}(i)),s=qb(e.path,i,e),this.offset=b,h=function _getPositionOnPage(t){var e=t.getBoundingClientRect(),n=ft.clientTop-(pt.pageYOffset||ft.scrollTop||_t.scrollTop||0),i=ft.clientLeft-(pt.pageXOffset||ft.scrollLeft||_t.scrollLeft||0);return{left:e.left+i,top:e.top+n,right:e.right+i,bottom:e.bottom+n}}(i),o=parseFloat(ut.getProperty(i,"x","px")),r=parseFloat(ut.getProperty(i,"y","px")),a=i.getCTM&&"svg"!==i.tagName.toLowerCase(),c&&!s&&(s=qb(c.vars.motionPath.path||c.vars.motionPath,i,c.vars.motionPath)),m.setAttribute("class","copy-motion-path"),m.style.cssText="border-radius:8px; background-color:rgba(85, 85, 85, 0.7); color:#fff; cursor:pointer; padding:6px 12px; font-family:Signika Negative, Arial, sans-serif; position:fixed; left:50%; transform:translate(-50%, 0); font-size:19px; bottom:10px",m.innerText="COPY MOTION PATH",m._gsHelper=v,(ut.utils.toArray(e.container)[0]||_t).appendChild(m),function _addCopyToClipboard(n,i,s){n.addEventListener("click",function(t){if(t.target._gsHelper){var e=i(t.target);if((Pt.value=e)&&Pt.select){console.log(e),Pt.style.display="block",Pt.select();try{gt.execCommand("copy"),Pt.blur(),s&&s(n)}catch(t){console.warn("Copy didn't work; this browser doesn't permit that.")}Pt.style.display="none"}}})}(m,function(){return v.getString()},function(){return ut.fromTo(m,{backgroundColor:"white"},{duration:.5,backgroundColor:"rgba(85, 85, 85, 0.6)"})}),(l=s&&s.ownerSVGElement)?(e.pathColor&&ut.set(s,{stroke:e.pathColor}),e.pathWidth&&ut.set(s,{strokeWidth:e.pathWidth}),e.pathOpacity&&ut.set(s,{opacity:e.pathOpacity})):(d=a&&i.ownerSVGElement&&i.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg",a?(l=i.ownerSVGElement,u=i.getBBox(),o=(p=function _getConsolidatedMatrix(t){return(t.transform.baseVal.consolidate()||kt).matrix}(i)).e,r=p.f,b.x=u.x,b.y=u.y):(l=kb("svg",d),_=!0,_t.appendChild(l),l.setAttribute("viewBox","0 0 100 100"),l.setAttribute("class","motion-path-helper"),l.style.cssText="overflow:visible; background-color: transparent; position:absolute; z-index:5000; width:100px; height:100px; top:"+(h.top-r)+"px; left:"+(h.left-o)+"px;"),u=jb(s)&&!xt.test(s)?s:function _getInitialPath(t,e){var n,i=[0,31,8,58,24,75,40,90,69,100,100,100];for(n=0;n<i.length;n+=2)i[n]+=t,i[n+1]+=e;return"M"+t+","+e+"C"+i.join(",")}(o,r),(s=kb("path",d)).setAttribute("d",u),s.setAttribute("vector-effect","non-scaling-stroke"),s.style.cssText="fill:transparent; stroke-width:"+(e.pathWidth||3)+"; stroke:"+(e.pathColor||"#555")+"; opacity:"+(e.pathOpacity||.6),l.appendChild(s)),(b.x||b.y)&&ut.set(s,{x:b.x,y:b.y}),"selected"in e||(e.selected=!0),"anchorSnap"in e||(e.anchorSnap=function(t){t.x*t.x+t.y*t.y<16&&(t.x=t.y=0)}),f=c&&c.parent&&"nested"===c.parent.data?c.parent.parent:c,e.onPress=function(){f.pause(0)},g=function refreshPath(){c.invalidate(),f.restart()},e.onRelease=e.onDeleteAnchor=g,this.editor=dt.create(s,e),e.center&&ut.set(i,{transformOrigin:"50% 50%",xPercent:-50,yPercent:-50}),c?(c.vars.motionPath.path?c.vars.motionPath.path=s:c.vars.motionPath={path:s},f.parent!==ut.globalTimeline&&ut.globalTimeline.add(f,function _getGlobalTime(t){for(var e=t.totalTime();t;)e=t.startTime()+e/(t.timeScale()||1),t=t.parent;return e}(f)-f.delay()),f.repeat(-1).repeatDelay(1)):c=f=ut.to(i,{motionPath:{path:s,start:e.start||0,end:"end"in e?e.end:1,autoRotate:"autoRotate"in e&&e.autoRotate,align:s,alignOrigin:e.alignOrigin},duration:e.duration||5,ease:e.ease||"power1.inOut",repeat:-1,repeatDelay:1,paused:!e.path}),this.animation=c,yt(this),this.kill=this.revert=function(){n.editor.kill(),m.parentNode&&m.parentNode.removeChild(m),_&&l.parentNode&&l.parentNode.removeChild(l),f&&f.revert()}}Et.register=vb,Et.create=function(t,e){return new Et(t,e)},Et.editPath=function(t,e){return dt.create(t,e)},Et.version="3.12.4",t.MotionPathHelper=Et,t.default=Et;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function n(t){return Math.round(1e5*t)/1e5||0}function o(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e}var P,w=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,C=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,j=Math.PI/180,W=Math.sin,F=Math.cos,Q=Math.abs,U=Math.sqrt,A=1e8;function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=o(t[n],t[n].slice(0));return o(t,e)}function transformRawPath(t,e,n,i,s,a,o){for(var r,h,l,c,d,u=t.length;-1<--u;)for(h=(r=t[u]).length,l=0;l<h;l+=2)c=r[l],d=r[l+1],r[l]=c*e+d*i+a,r[l+1]=c*n+d*s+o;return t._dirty=1,t}function arcToSegment(t,e,n,i,s,a,o,r,h){if(t!==r||e!==h){n=Q(n),i=Q(i);var l=s%360*j,c=F(l),d=W(l),u=Math.PI,p=2*u,g=(t-r)/2,f=(e-h)/2,_=c*g+d*f,m=-d*g+c*f,v=_*_,b=m*m,y=v/(n*n)+b/(i*i);1<y&&(n=U(y)*n,i=U(y)*i);var P=n*n,A=i*i,w=(P*A-P*b-A*v)/(P*b+A*v);w<0&&(w=0);var C=(a===o?-1:1)*U(w),S=n*m/i*C,x=-i*_/n*C,k=c*S-d*x+(t+r)/2,E=d*S+c*x+(e+h)/2,M=(_-S)/n,D=(m-x)/i,H=(-_-S)/n,T=(-m-x)/i,N=M*M+D*D,R=(D<0?-1:1)*Math.acos(M/U(N)),L=(M*T-D*H<0?-1:1)*Math.acos((M*H+D*T)/U(N*(H*H+T*T)));isNaN(L)&&(L=u),!o&&0<L?L-=p:o&&L<0&&(L+=p),R%=p,L%=p;var B,O=Math.ceil(Q(L)/(p/4)),X=[],I=L/O,G=4/3*W(I/2)/(1+F(I/2)),q=c*n,z=d*n,V=d*-i,Y=c*i;for(B=0;B<O;B++)_=F(s=R+B*I),m=W(s),M=F(s+=I),D=W(s),X.push(_-G*m,m+G*_,M+G*D,D-G*M,M,D);for(B=0;B<X.length;B+=2)_=X[B],m=X[B+1],X[B]=_*q+m*V+k,X[B+1]=_*z+m*Y+E;return X[B-2]=r,X[B-1]=h,X}}function stringToRawPath(t){function zd(t,e,n,i){c=(n-t)/3,d=(i-e)/3,r.push(t+c,e+d,n-c,i-d,n,i)}var e,n,i,s,a,o,r,h,l,c,d,u,p,g,f,_=(t+"").replace(C,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(w)||[],m=[],v=0,b=0,y=_.length,P=0,A="ERROR: malformed path: "+t;if(!t||!isNaN(_[0])||isNaN(_[1]))return console.log(A),m;for(e=0;e<y;e++)if(p=a,isNaN(_[e])?o=(a=_[e].toUpperCase())!==_[e]:e--,i=+_[e+1],s=+_[e+2],o&&(i+=v,s+=b),e||(h=i,l=s),"M"===a)r&&(r.length<8?--m.length:P+=r.length),v=h=i,b=l=s,r=[i,s],m.push(r),e+=2,a="L";else if("C"===a)o||(v=b=0),(r=r||[0,0]).push(i,s,v+1*_[e+3],b+1*_[e+4],v+=1*_[e+5],b+=1*_[e+6]),e+=6;else if("S"===a)c=v,d=b,"C"!==p&&"S"!==p||(c+=v-r[r.length-4],d+=b-r[r.length-3]),o||(v=b=0),r.push(c,d,i,s,v+=1*_[e+3],b+=1*_[e+4]),e+=4;else if("Q"===a)c=v+2/3*(i-v),d=b+2/3*(s-b),o||(v=b=0),v+=1*_[e+3],b+=1*_[e+4],r.push(c,d,v+2/3*(i-v),b+2/3*(s-b),v,b),e+=4;else if("T"===a)c=v-r[r.length-4],d=b-r[r.length-3],r.push(v+c,b+d,i+2/3*(v+1.5*c-i),s+2/3*(b+1.5*d-s),v=i,b=s),e+=2;else if("H"===a)zd(v,b,v=i,b),e+=1;else if("V"===a)zd(v,b,v,b=i+(o?b-v:0)),e+=1;else if("L"===a||"Z"===a)"Z"===a&&(i=h,s=l,r.closed=!0),("L"===a||.5<Q(v-i)||.5<Q(b-s))&&(zd(v,b,i,s),"L"===a&&(e+=2)),v=i,b=s;else if("A"===a){if(g=_[e+4],f=_[e+5],c=_[e+6],d=_[e+7],n=7,1<g.length&&(g.length<3?(d=c,c=f,n--):(d=f,c=g.substr(2),n-=2),f=g.charAt(1),g=g.charAt(0)),u=arcToSegment(v,b,+_[e+1],+_[e+2],+_[e+3],+g,+f,(o?v:0)+1*c,(o?b:0)+1*d),e+=n,u)for(n=0;n<u.length;n++)r.push(u[n]);v=r[r.length-2],b=r[r.length-1]}else console.log(A);return(e=r.length)<6?(m.pop(),e=0):r[0]===r[e-2]&&r[1]===r[e-1]&&(r.closed=!0),m.totalPoints=P+e,m}function bezierToPoints(t,e,n,i,s,a,o,r,h,l,c){var d,u=(t+n)/2,p=(e+i)/2,g=(n+s)/2,f=(i+a)/2,_=(s+o)/2,m=(a+r)/2,v=(u+g)/2,b=(p+f)/2,y=(g+_)/2,P=(f+m)/2,A=(v+y)/2,w=(b+P)/2,C=o-t,S=r-e,x=Q((n-o)*S-(i-r)*C),k=Q((s-o)*S-(a-r)*C);return l||(l=[t,e,o,r],c=2),l.splice(c||l.length-2,0,A,w),h*(C*C+S*S)<(x+k)*(x+k)&&(d=l.length,bezierToPoints(t,e,u,p,v,b,A,w,h,l,c),bezierToPoints(A,w,y,P,_,m,o,r,h,l,c+2+(l.length-d))),l}function pointsToSegment(t,e){Q(t[0]-t[2])<1e-4&&Q(t[1]-t[3])<1e-4&&(t=t.slice(2));var i,s,a,o,r,h,l,c,d,u,p,g,f,_,m=t.length-2,v=+t[0],b=+t[1],y=+t[2],P=+t[3],A=[v,b,v,b],w=y-v,C=P-b,S=Math.abs(t[m]-v)<.001&&Math.abs(t[m+1]-b)<.001;for(S&&(t.push(y,P),y=v,P=b,v=t[m-2],b=t[m-1],t.unshift(v,b),m+=4),e=e||0===e?+e:1,a=2;a<m;a+=2)i=v,s=b,v=y,b=P,y=+t[a+2],P=+t[a+3],v===y&&b===P||(o=w,r=C,w=y-v,C=P-b,c=((h=U(o*o+r*r))+(l=U(w*w+C*C)))*e*.25/U(Math.pow(w/l+o/h,2)+Math.pow(C/l+r/h,2)),p=v-((d=v-(v-i)*(h?c/h:0))+(((u=v+(y-v)*(l?c/l:0))-d)*(3*h/(h+l)+.5)/4||0)),_=b-((g=b-(b-s)*(h?c/h:0))+(((f=b+(P-b)*(l?c/l:0))-g)*(3*h/(h+l)+.5)/4||0)),v===i&&b===s||A.push(n(d+p),n(g+_),n(v),n(b),n(u+p),n(f+_)));return v!==y||b!==P||A.length<4?A.push(n(y),n(P),n(y),n(P)):A.length-=2,2===A.length?A.push(v,b,v,b,v,b):S&&(A.splice(0,6),A.length=A.length-6),A}function simplifyPoints(t,e){var n,i,s,a,o,r,h,l=parseFloat(t[0]),c=parseFloat(t[1]),d=[l,c],u=t.length-2;for(e=Math.pow(e||1,2),n=2;n<u;n+=2)e<(a=l-(i=parseFloat(t[n])))*a+(o=c-(s=parseFloat(t[n+1])))*o&&(d.push(i,s),l=i,c=s);return d.push(parseFloat(t[u]),parseFloat(t[1+u])),function simplifyStep(t,e,n,i,s){var a,o,r,h,l,c,d,u,p,g,f,_,m=i,v=t[e],b=t[e+1],y=t[n],P=t[n+1];for(o=e+2;o<n;o+=2)h=t[o],l=t[o+1],g=void 0,_=(p=P)-(d=b),((f=(u=y)-(c=v))||_)&&(1<(g=((h-c)*f+(l-d)*_)/(f*f+_*_))?(c=u,d=p):0<g&&(c+=f*g,d+=_*g)),m<(r=Math.pow(h-c,2)+Math.pow(l-d,2))&&(a=o,m=r);i<m&&(2<a-e&&simplifyStep(t,e,a,i,s),s.push(t[a],t[a+1]),2<n-a&&simplifyStep(t,a,n,i,s))}(d,0,h=d.length-2,e,r=[d[0],d[1]]),r.push(d[h],d[1+h]),r}function getClosestProgressOnBezier(t,e,n,i,s,a,o,r,h,l,c,d,u,p){var g,f,_,m,v=(s-i)/a,b=0,y=i;for(P=A;y<=s;)(g=(f=(m=1-y)*m*m*o+3*m*m*y*h+3*m*y*y*c+y*y*y*u-e)*f+(_=m*m*m*r+3*m*m*y*l+3*m*y*y*d+y*y*y*p-n)*_)<P&&(P=g,b=y),y+=v;return 1<t?getClosestProgressOnBezier(t-1,e,n,Math.max(b-v,0),Math.min(b+v,1),a,o,r,h,l,c,d,u,p):b}function B(t){var e=t.ownerDocument||t;!(S in t.style)&&"msTransform"in t.style&&(x=(S="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(g=window,v=new D,e){f=(p=e).documentElement,_=e.body,(b=p.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),i=e.createElement("div"),s=e&&(e.body||e.firstElementChild);s&&s.appendChild&&(s.appendChild(n),n.appendChild(i),n.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),y=i.offsetParent!==n,s.removeChild(n))}return e}function H(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function J(t,e){if(t.parentNode&&(p||B(t))){var n=H(t),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=n?e?"rect":"g":"div",a=2!==e?0:100,o=3===e?100:0,r="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",h=p.createElementNS?p.createElementNS(i.replace(/^https/,"http"),s):p.createElement(s);return e&&(n?(m=m||J(t),h.setAttribute("width",.01),h.setAttribute("height",.01),h.setAttribute("transform","translate("+a+","+o+")"),m.appendChild(h)):(u||((u=J(t)).style.cssText=r),h.style.cssText=r+"width:0.1px;height:0.1px;top:"+o+"px;left:"+a+"px",u.appendChild(h))),h}throw"Need document and parent."}function M(t,e){var n,i,s,a,o,r,h=H(t),l=t===h,c=h?k:E,d=t.parentNode;if(t===g)return t;if(c.length||c.push(J(t,1),J(t,2),J(t,3)),n=h?m:u,h)l?(a=-(s=function _getCTM(t){var e,n=t.getCTM();return n||(e=t.style[S],t.style[S]="none",t.appendChild(b),n=b.getCTM(),t.removeChild(b),e?t.style[S]=e:t.style.removeProperty(S.replace(/([A-Z])/g,"-$1").toLowerCase())),n||v.clone()}(t)).e/s.a,o=-s.f/s.d,i=v):t.getBBox?(s=t.getBBox(),a=(i=(i=t.transform?t.transform.baseVal:{}).numberOfItems?1<i.numberOfItems?function _consolidate(t){for(var e=new D,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(i):i.getItem(0).matrix:v).a*s.x+i.c*s.y,o=i.b*s.x+i.d*s.y):(i=new D,a=o=0),e&&"g"===t.tagName.toLowerCase()&&(a=o=0),(l?h:d).appendChild(n),n.setAttribute("transform","matrix("+i.a+","+i.b+","+i.c+","+i.d+","+(i.e+a)+","+(i.f+o)+")");else{if(a=o=0,y)for(i=t.offsetParent,s=t;(s=s&&s.parentNode)&&s!==i&&s.parentNode;)4<(g.getComputedStyle(s)[S]+"").length&&(a=s.offsetLeft,o=s.offsetTop,s=0);if("absolute"!==(r=g.getComputedStyle(t)).position&&"fixed"!==r.position)for(i=t.offsetParent;d&&d!==i;)a+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(s=n.style).top=t.offsetTop-o+"px",s.left=t.offsetLeft-a+"px",s[S]=r[S],s[x]=r[x],s.position="fixed"===r.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function N(t,e,n,i,s,a,o){return t.a=e,t.b=n,t.c=i,t.d=s,t.e=a,t.f=o,t}var p,g,f,_,u,m,v,b,y,e,S="transform",x=S+"Origin",k=[],E=[],D=((e=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,i=this.d,s=this.e,a=this.f,o=t*i-e*n||1e-10;return N(this,i/o,-e/o,-n/o,t/o,(n*a-i*s)/o,-(t*a-e*s)/o)},e.multiply=function multiply(t){var e=this.a,n=this.b,i=this.c,s=this.d,a=this.e,o=this.f,r=t.a,h=t.c,l=t.b,c=t.d,d=t.e,u=t.f;return N(this,r*e+l*i,r*n+l*s,h*e+c*i,h*n+c*s,a+d*e+u*i,o+d*n+u*s)},e.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function equals(t){var e=this.a,n=this.b,i=this.c,s=this.d,a=this.e,o=this.f;return e===t.a&&n===t.b&&i===t.c&&s===t.d&&a===t.e&&o===t.f},e.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,i=t.y,s=this.a,a=this.b,o=this.c,r=this.d,h=this.e,l=this.f;return e.x=n*s+i*o+h||0,e.y=n*a+i*r+l||0,e},Matrix2D);function Matrix2D(t,e,n,i,s,a){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=1),void 0===s&&(s=0),void 0===a&&(a=0),N(this,t,e,n,i,s,a)}function getGlobalMatrix(t,e,n,i){if(!t||!t.parentNode||(p||B(t)).documentElement===t)return new D;var s=function _forceNonZeroScale(t){for(var e,n;t&&t!==_;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),a=H(t)?k:E,o=M(t,n),r=a[0].getBoundingClientRect(),h=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),c=o.parentNode,d=!i&&function _isFixed(t){return"fixed"===g.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),u=new D((h.left-r.left)/100,(h.top-r.top)/100,(l.left-r.left)/100,(l.top-r.top)/100,r.left+(d?0:function _getDocScrollLeft(){return g.pageXOffset||p.scrollLeft||f.scrollLeft||_.scrollLeft||0}()),r.top+(d?0:function _getDocScrollTop(){return g.pageYOffset||p.scrollTop||f.scrollTop||_.scrollTop||0}()));if(c.removeChild(o),s)for(r=s.length;r--;)(h=s[r]).scaleX=h.scaleY=0,h.renderTransform(1,h);return e?u.inverse():u}function aa(){return!1}function na(t){t.preventDefault&&(t.preventDefault(),t.preventManipulation&&t.preventManipulation())}function oa(t){return T.createElementNS?T.createElementNS("http://www.w3.org/1999/xhtml",t):T.createElement(t)}function pa(t,e,n){var i,s=T.createElementNS("http://www.w3.org/2000/svg",t),a=/([a-z])([A-Z])/g;for(i in(n=n||{}).class=n.class||"path-editor",n)void 0!==s.style[i]?s.style[i]=n[i]:s.setAttributeNS(null,i.replace(a,"$1-$2").toLowerCase(),n[i]);return e.appendChild(s),s}function ra(t){return(t.transform&&t.transform.baseVal.consolidate()||at).matrix}function ua(t){return~~(1e3*t+(t<0?-.5:.5))/1e3}function xa(t){if(!t.target._gsSelection&&!$&&100<Y()-Z){for(var e=st.length;-1<--e;)st[e].deselect();st.length=0}}function Ba(t,e,n,i){if(t.addEventListener){var s=X[e];i=i||{passive:!1},t.addEventListener(s||e,n,i),s&&e!==s&&"pointer"!==s.substr(0,7)&&t.addEventListener(e,n,i)}else t.attachEvent&&t.attachEvent("on"+e,n)}function Ca(t,e,n){if(t.removeEventListener){var i=X[e];t.removeEventListener(i||e,n),i&&e!==i&&"pointer"!==i.substr(0,7)&&t.removeEventListener(e,n)}else t.detachEvent&&t.detachEvent("on"+e,n)}function Ea(t){ot=t.touches&&_dragCount<t.touches.length,Ca(t.target,"touchend",Ea)}function Fa(t){ot=t.touches&&_dragCount<t.touches.length,Ba(t.target,"touchend",Ea)}function Ga(e,n){return function(t){return e.call(n,t)}}function Ha(t,e,n){var i=e.vars[t];return i&&i.call(e.vars.callbackScope||e,n||e),e}function Ja(){I.style.display="block",I.select(),I.style.display="none"}function La(t){T=document,c=window,i=T.body,s=s||t||c.gsap||console.warn("Please gsap.registerPlugin(PathEditor)"),r=s&&s.core.context||function(){},a=oa("div"),(I=oa("textarea")).style.display="none",i&&i.appendChild(I),X=function(t){for(var e=t.split(","),n=(void 0!==a.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==a.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),i={},s=4;-1<--s;)i[e[s]]=n[s],i[n[s]]=e[s];return i}("touchstart,touchmove,touchend,touchcancel"),SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())},T.addEventListener("keydown",function(t){var e,n,i,s,a=t.keyCode||t.which,o=t.key||a;if("Shift"===o||16===a)L=!0;else if("Control"===o||17===a)l=!0;else if("Meta"===o||91===a)d=!0;else if("Alt"===o||18===a)for(R=!0,e=st.length;-1<--e;)st[e]._onPressAlt();else if(("z"===o||90===a)&&(l||d)&&1<tt.length){if(tt.shift(),n=tt[0]){for((s=n.path).path.setAttribute("d",n.d),s.path.setAttribute("transform",n.transform),s.init(),i=s._anchors,e=0;e<i.length;e++)-1!==n.selectedIndexes.indexOf(i[e].i)&&s._selectedAnchors.push(i[e]);s._updateAnchors(),s.update(),s.vars.onUndo&&s.vars.onUndo.call(s)}}else if("Delete"===o||"Backspace"===o||8===a||46===a||63272===a||"d"===a&&(l||d))for(e=st.length;-1<--e;)st[e]._deleteSelectedAnchors();else if(("a"===o||65===a)&&(d||l))for(e=st.length;-1<--e;)st[e].select(!0)},!0),T.addEventListener("keyup",function(t){var e=t.key||t.keyCode||t.which;if("Shift"===e||16===e)L=!1;else if("Control"===e||17===e)l=!1;else if("Meta"===e||91===e)d=!1;else if("Alt"===e||18===e){R=!1;for(var n=st.length;-1<--n;)st[n]._onReleaseAlt()}},!0),h=!!c.PointerEvent,Ba(T,"mouseup",xa),Ba(T,"touchend",xa),Ba(T,"touchcancel",aa),Ba(c,"touchmove",aa),i&&i.addEventListener("touchstart",aa),G=1}function Ma(t){var e,n,i=this,s=getGlobalMatrix(i.target.parentNode,!0);this._matrix=this.target.transform.baseVal.getItem(0).matrix,this._ctm=s,X[t.type]?(e=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:T,Ba(e,"touchend",i._onRelease),Ba(e,"touchmove",i._onMove),Ba(e,"touchcancel",i._onRelease),Ba(T,"touchstart",Fa),Ba(c,"touchforcechange",na)):(e=null,Ba(T,"mousemove",i._onMove)),h||Ba(T,"mouseup",i._onRelease),na(t),Ja(),t.changedTouches?(t=i.touch=t.changedTouches[0],i.touchID=t.identifier):t.pointerId?i.touchID=t.pointerId:i.touch=i.touchID=null,i._startPointerY=i.pointerY=t.pageY,i._startPointerX=i.pointerX=t.pageX,i._startElementX=i._matrix.e,i._startElementY=i._matrix.f,1===this._ctm.a&&0===this._ctm.b&&0===this._ctm.c&&1===this._ctm.d?this._ctm=null:(n=i._startPointerX*this._ctm.a+i._startPointerY*this._ctm.c+this._ctm.e,i._startPointerY=i._startPointerX*this._ctm.b+i._startPointerY*this._ctm.d+this._ctm.f,i._startPointerX=n),i.isPressed=$=!0,i.touchEventTarget=e,i.vars.onPress&&i.vars.onPress.call(i.vars.callbackScope||i,i.pointerEvent)}function Na(t){var e,n,i=this,s=t;if(i._enabled&&!ot&&i.isPressed&&t){if(e=(i.pointerEvent=t).changedTouches){if((t=e[0])!==i.touch&&t.identifier!==i.touchID){for(n=e.length;-1<--n&&(t=e[n]).identifier!==i.touchID;);if(n<0)return}}else if(t.pointerId&&i.touchID&&t.pointerId!==i.touchID)return;na(s),i.setPointerPosition(t.pageX,t.pageY),i.vars.onDrag&&i.vars.onDrag.call(i.vars.callbackScope||i,i.pointerEvent)}}function Oa(t,e){var n=this;if(n._enabled&&n.isPressed&&(!t||null==n.touchID||e||!(t.pointerId&&t.pointerId!==n.touchID||t.changedTouches&&!function _hasTouchID(t,e){for(var n=t.length;-1<--n;)if(t[n].identifier===e)return!0;return!1}(t.changedTouches,n.touchID)))){!function _interacted(){Z=Y()}(),n.isPressed=$=!1;var i,s,a=t,o=n.isDragging,r=n.touchEventTarget;if(r?(Ca(r,"touchend",n._onRelease),Ca(r,"touchmove",n._onMove),Ca(r,"touchcancel",n._onRelease),Ca(T,"touchstart",Fa)):Ca(T,"mousemove",n._onMove),h||(Ca(T,"mouseup",n._onRelease),t&&t.target&&Ca(t.target,"mouseup",n._onRelease)),o?n.isDragging=!1:n.vars.onClick&&n.vars.onClick.call(n.vars.callbackScope||n,a),t){if((i=t.changedTouches)&&(t=i[0])!==n.touch&&t.identifier!==n.touchID){for(s=i.length;-1<--s&&(t=i[s]).identifier!==n.touchID;);if(s<0)return}n.pointerEvent=a,n.pointerX=t.pageX,n.pointerY=t.pageY}return a&&!o&&n.vars.onDragRelease?n.vars.onDragRelease.call(n,n.pointerEvent):(a&&na(a),n.vars.onRelease&&n.vars.onRelease.call(n.vars.callbackScope||n,n.pointerEvent)),o&&n.vars.onDragEnd&&n.vars.onDragEnd.call(n.vars.callbackScope||n,n.pointerEvent),!0}}function Pa(t,e,n,i){var s,a=t[e],o=a.length-(a.closed?6:0),r=[];for(s=0;s<o;s+=6)r.push(new lt(n,t,e,s,i));return a.closed&&(r[0].isClosedStart=!0),r}function Qa(t,e,n){var i=t[n]-t[e],s=t[n+1]-t[e+1];return Math.sqrt(i*i+s*s)}var T,h,c,i,s,r,l,R,L,d,O,a,X,I,G,q,z=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,V="#4e7fff",Y=(Math.PI,Date.now||function(){return(new Date).getTime()}),Z=0,$=0,K={},tt=[],et={},nt=[],it=",",st=[],at={matrix:new D},ot=0,rt=((q=DraggableSVG.prototype).setPointerPosition=function setPointerPosition(t,e){var n,i,s,a,o;this.pointerX=t,this.pointerY=e,this._ctm&&(o=t*this._ctm.a+e*this._ctm.c+this._ctm.e,e=t*this._ctm.b+e*this._ctm.d+this._ctm.f,t=o),(i=e-this._startPointerY)<1&&-1<i&&(i=0),(n=t-this._startPointerX)<1&&-1<n&&(n=0),s=(1e3*(this._startElementX+n)|0)/1e3,a=(1e3*(this._startElementY+i)|0)/1e3,this.snap&&!L&&(et.x=s,et.y=a,this.snap.call(this,et),s=et.x,a=et.y),this.x===s&&this.y===a||(this._matrix.f=this.y=a,this._matrix.e=this.x=s,!this.isDragging&&this.isPressed&&(this.isDragging=!0,Ha("onDragStart",this,this.pointerEvent)))},q.enabled=function enabled(t){return arguments.length?((this._enabled=t)?(h||Ba(this.target,"mousedown",this._onPress),Ba(this.target,"touchstart",this._onPress),Ba(this.target,"click",this._onClick,!0)):(e=this.isDragging,Ca(this.target,"mousedown",this._onPress),Ca(this.target,"touchstart",this._onPress),Ca(c,"touchforcechange",na),Ca(this.target,"click",this._onClick),this.touchEventTarget&&(Ca(this.touchEventTarget,"touchcancel",this._onRelease),Ca(this.touchEventTarget,"touchend",this._onRelease),Ca(this.touchEventTarget,"touchmove",this._onMove)),Ca(T,"mouseup",this._onRelease),Ca(T,"mousemove",this._onMove),this.isDragging=this.isPressed=!1,e&&Ha("onDragEnd",this,this.pointerEvent)),this):this._enabled;var e},q.endDrag=function endDrag(t){this._onRelease(t)},DraggableSVG);function DraggableSVG(t,e){this.target="string"==typeof t?T.querySelectorAll(t)[0]:t,this.vars=e||{},this._onPress=Ga(Ma,this),this._onMove=Ga(Na,this),this._onRelease=Ga(Oa,this),this.target.setAttribute("transform",(this.target.getAttribute("transform")||"")+" translate(0,0)"),this._matrix=ra(this.target),this.x=this._matrix.e,this.y=this._matrix.f,this.snap=e.snap,isNaN(e.maxX)&&isNaN(e.minX)?this._bounds=0:(this._bounds=1,this.maxX=+e.maxX,this.minX=+e.minX),this.enabled(!0)}var ht,lt=((ht=Anchor.prototype).onPress=function onPress(){Ha("onPress",this)},ht.onClick=function onClick(){Ha("onClick",this)},ht.onDrag=function onDrag(){var t=this.segment;this.vars.onDrag.call(this.vars.callbackScope||this,this,this._draggable.x-t[this.i],this._draggable.y-t[this.i+1])},ht.onDragEnd=function onDragEnd(){Ha("onDragEnd",this)},ht.onRelease=function onRelease(){Ha("onRelease",this)},ht.update=function update(t,e,n){t&&(this.rawPath=t),arguments.length<=1?(e=this.j,n=this.i):(this.j=e,this.i=n);var i=this.smooth,s=this.rawPath[e],a=0===n&&s.closed?s.length-4:n-2;this.segment=s,this.smooth=0<n&&n<s.length-2&&Math.abs(Math.atan2(s[n+1]-s[1+a],s[n]-s[a])-Math.atan2(s[n+3]-s[n+1],s[n+2]-s[n]))<.09?2:0,this.smooth!==i&&this.element.setAttribute("d",this.smooth?this.editor._circleHandle:this.editor._squareHandle),this.element.setAttribute("transform","translate("+s[n]+","+s[n+1]+")")},Anchor);function Anchor(t,e,n,i,s){this.editor=t,this.element=pa("path",t._selection,{fill:V,stroke:V,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this.update(e,n,i),this.element._gsSelection=!0,this.vars=s||{},this._draggable=new rt(this.element,{callbackScope:this,onDrag:this.onDrag,snap:this.vars.snap,onPress:this.onPress,onRelease:this.onRelease,onClick:this.onClick,onDragEnd:this.onDragEnd})}var ct,dt=((ct=PathEditor.prototype)._onRelease=function _onRelease(t){var e=this._editingAnchor;e&&(K.x=e.segment[e.i],K.y=e.segment[e.i+1]),Ca(c,"touchforcechange",na),Ha("onRelease",this,t)},ct.init=function init(){var t,e,n=this.path.getAttribute("d"),i=stringToRawPath(n),s=this.path.getAttribute("transform")||"translate(0,0)",a=!this._rawPath||i.totalPoints!==this._rawPath.totalPoints||i.length!==this._rawPath.length,o={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX};if(a&&this._anchors&&this._anchors.length){for(e=0;e<this._anchors.length;e++)this._anchors[e].element.parentNode.removeChild(this._anchors[e].element),this._anchors[e]._draggable.enabled(!1);this._selectedAnchors.length=0}if(this._rawPath=i,a){if(this._anchors=Pa(i,0,this,o),1<(t=i.length))for(e=1;e<t;e++)this._anchors=this._anchors.concat(Pa(i,e,this,o))}else for(e=this._anchors.length;-1<--e;)this._anchors[e].update(i);return this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),this._selectionPath.setAttribute("d",n),this._selectionHittest.setAttribute("d",n),this._g.setAttribute("transform",function _getConcatenatedTransforms(t){for(var e=ra(t),n=t.ownerSVGElement;(t=t.parentNode)&&t.ownerSVGElement===n;)e.multiply(ra(t));return"matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")"}(this.path.parentNode)||"translate(0,0)"),this._selection.setAttribute("transform",s),this._selectionHittest.setAttribute("transform",s),this._updateAnchors(),this},ct._saveState=function _saveState(){!function _addHistory(t){var e,n=[],i=t._selectedAnchors;for(e=0;e<i.length;e++)n[e]=i[e].i;tt.unshift({path:t,d:t.path.getAttribute("d"),transform:t.path.getAttribute("transform")||"",selectedIndexes:n}),30<tt.length&&(tt.length=30)}(this)},ct._onClickSelectionPath=function _onClickSelectionPath(t){if("hidden"===this._selection.style.visibility)this.select();else if(R||t&&t.altKey){var e,i,s,a,o,r,h={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX},l=this._selection.getScreenCTM().inverse();for(this._draggable&&this._draggable._onRelease(t),l&&(a=t.clientX*l.a+t.clientY*l.c+l.e,o=t.clientX*l.b+t.clientY*l.d+l.f),r=function getClosestData(t,e,n,i){var s,a,o,r,h={j:0,i:0,t:0},l=A;for(a=0;a<t.length;a++)for(r=t[a],s=0;s<r.length;s+=6)o=getClosestProgressOnBezier(1,e,n,0,1,i||20,r[s],r[s+1],r[s+2],r[s+3],r[s+4],r[s+5],r[s+6],r[s+7]),P<l&&(l=P,h.j=a,h.i=s,h.t=o);return h}(this._rawPath,a,o),function subdivideSegment(t,e,i){if(i<=0||1<=i)return 0;var s=t[e],a=t[e+1],o=t[e+2],r=t[e+3],h=t[e+4],l=t[e+5],c=s+(o-s)*i,d=o+(h-o)*i,u=a+(r-a)*i,p=r+(l-r)*i,g=c+(d-c)*i,f=u+(p-u)*i,_=h+(t[e+6]-h)*i,m=l+(t[e+7]-l)*i;return d+=(_-d)*i,p+=(m-p)*i,t.splice(e+2,4,n(c),n(u),n(g),n(f),n(g+(d-g)*i),n(f+(p-f)*i),n(d),n(p),n(_),n(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}(this._rawPath[r.j],r.i,r.t),e=r.i+6,i=0;i<this._anchors.length;i++)this._anchors[i].i>=e&&(this._anchors[i].i+=6);s=new lt(this,this._rawPath,r.j,e,h),this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),s._draggable._onPress(t),O=s,this._anchors.push(s),this._selectedAnchors.length=0,this._selectedAnchors.push(s),this._updateAnchors(),this.update(),this._saveState()}Ja(),Ba(c,"touchforcechange",na),Ha("onPress",this)},ct._onClickHandle1=function _onClickHandle1(){var t=this._editingAnchor,e=t.i,n=t.segment,i=t.isClosedStart?n.length-4:e-2;R&&Math.abs(n[e]-n[i])<5&&Math.abs(n[e+1]-n[1+i])<5&&this._onClickAnchor(t)},ct._onClickHandle2=function _onClickHandle2(){var t=this._editingAnchor,e=t.i,n=t.segment;R&&Math.abs(n[e]-n[e+2])<5&&Math.abs(n[e+1]-n[e+3])<5&&this._onClickAnchor(t)},ct._onDragEndAnchor=function _onDragEndAnchor(){O=null,this._saveState()},ct.isSelected=function isSelected(){return 0<this._selectedAnchors.length||"visible"===this._selection.style.visibility},ct.select=function select(t){if(this._selection.style.visibility="visible",this._editingAnchor=null,(this.path._gsSelection=!0)===t)for(var e=this._anchors.length;-1<--e;)this._selectedAnchors[e]=this._anchors[e];return-1===st.indexOf(this)&&st.push(this),this._updateAnchors(),this},ct.deselect=function deselect(){return this._selection.style.visibility="hidden",this._selectedAnchors.length=0,this._editingAnchor=null,this.path._gsSelection=!1,st.splice(st.indexOf(this),1),this._updateAnchors(),this},ct._onDragPath=function _onDragPath(){var t=this._selectionHittest.getAttribute("transform")||"translate(0,0)";this._selection.setAttribute("transform",t),this.path.setAttribute("transform",t)},ct._onPressAnchor=function _onPressAnchor(t){-1===this._selectedAnchors.indexOf(t)?(L||(this._selectedAnchors.length=0),this._selectedAnchors.push(t)):L&&(this._selectedAnchors.splice(this._selectedAnchors.indexOf(t),1),t._draggable.endDrag()),K.x=t.segment[t.i],K.y=t.segment[t.i+1],this._updateAnchors(),Ha("onPress",this)},ct._deleteSelectedAnchors=function _deleteSelectedAnchors(){for(var t,e,n,i=this._selectedAnchors,s=i.length;-1<--s;)for((t=i[s]).element.parentNode.removeChild(t.element),t._draggable.enabled(!1),(e=t.i)?e<t.segment.length-2?t.segment.splice(e-2,6):t.segment.splice(e-4,6):t.segment.splice(e,6),i.splice(s,1),this._anchors.splice(this._anchors.indexOf(t),1),n=0;n<this._anchors.length;n++)this._anchors[n].i>=e&&(this._anchors[n].i-=6);this._updateAnchors(),this.update(),this._saveState(),this.vars.onDeleteAnchor&&this.vars.onDeleteAnchor.call(this.vars.callbackScope||this)},ct._onClickAnchor=function _onClickAnchor(t){var e,n,i,s,a,o,r=t.i,h=t.segment,l=t.isClosedStart?h.length-4:r-2,c=1e3,d=!r||r>=h.length-2;R&&O!==t&&this._editingAnchor?(t.smooth=!t.smooth,d&&!t.isClosedStart&&(t.smooth=!1),t.element.setAttribute("d",t.smooth?this._circleHandle:this._squareHandle),!t.smooth||d&&!t.isClosedStart?t.smooth||d&&!t.isClosedStart||((r||t.isClosedStart)&&(h[l]=h[r],h[1+l]=h[r+1]),r<h.length-2&&(h[r+2]=h[r],h[r+3]=h[r+1]),this._updateAnchors(),this.update(),this._saveState()):(e=((e=Math.atan2(h[r+1]-h[1+l],h[r]-h[l]))+(n=Math.atan2(h[r+3]-h[r+1],h[r+2]-h[r])))/2,i=Qa(h,l,r),s=Qa(h,r,r+2),i<.2&&(i=Qa(h,r,l-4)/4,e=n||Math.atan2(h[r+7]-h[l-3],h[r+6]-h[l-4])),s<.2&&(s=Qa(h,r,r+6)/4,n=e||Math.atan2(h[r+7]-h[l-3],h[r+6]-h[l-4])),a=Math.sin(e),o=Math.cos(e),Math.abs(n-e)<Math.PI/2&&(a=-a,o=-o),h[l]=((h[r]+o*i)*c|0)/c,h[1+l]=((h[r+1]+a*i)*c|0)/c,h[r+2]=((h[r]-o*s)*c|0)/c,h[r+3]=((h[r+1]-a*s)*c|0)/c,this._updateAnchors(),this.update(),this._saveState())):L||(this._selectedAnchors.length=0,this._selectedAnchors.push(t)),O=null,this._updateAnchors()},ct._updateAnchors=function _updateAnchors(){var t,e,n,i=1===this._selectedAnchors.length?this._selectedAnchors[0]:null,s=i?i.segment:null;for(this._editingAnchor=i,t=0;t<this._anchors.length;t++)this._anchors[t].element.style.fill=-1!==this._selectedAnchors.indexOf(this._anchors[t])?V:"white";i&&(this._handle1.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle),this._handle2.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle)),t=i?i.i:0,i&&(t||i.isClosedStart)?(e=i.isClosedStart?s[s.length-4]:s[t-2],n=i.isClosedStart?s[s.length-3]:s[t-1],this._handle1.style.visibility=this._line1.style.visibility=R||e!==s[t]||n!==s[t+1]?"visible":"hidden",this._handle1.setAttribute("transform","translate("+e+it+n+")"),this._line1.setAttribute("points",e+it+n+it+s[t]+it+s[t+1])):this._handle1.style.visibility=this._line1.style.visibility="hidden",i&&t<s.length-2?(e=s[t+2],n=s[t+3],this._handle2.style.visibility=this._line2.style.visibility=R||e!==s[t]||n!==s[t+1]?"visible":"hidden",this._handle2.setAttribute("transform","translate("+e+it+n+")"),this._line2.setAttribute("points",s[t]+it+s[t+1]+it+e+it+n)):this._handle2.style.visibility=this._line2.style.visibility="hidden"},ct._onPressAlt=function _onPressAlt(){var t=this._editingAnchor;t&&((t.i||t.isClosedStart)&&(this._handle1.style.visibility=this._line1.style.visibility="visible"),t.i<t.segment.length-2&&(this._handle2.style.visibility=this._line2.style.visibility="visible"))},ct._onReleaseAlt=function _onReleaseAlt(){var t,e,n,i=this._editingAnchor;i&&(t=i.segment,e=i.i,n=i.isClosedStart?t.length-4:e-2,t[e]===t[n]&&t[e+1]===t[1+n]&&(this._handle1.style.visibility=this._line1.style.visibility="hidden"),t[e]===t[e+2]&&t[e+1]===t[e+3]&&(this._handle2.style.visibility=this._line2.style.visibility="hidden"))},ct._onPressHandle1=function _onPressHandle1(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Qa(this._editingAnchor.segment,this._editingAnchor.i,this._editingAnchor.i+2)),Ha("onPress",this)},ct._onPressHandle2=function _onPressHandle2(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Qa(this._editingAnchor.segment,this._editingAnchor.isClosedStart?this._editingAnchor.segment.length-4:this._editingAnchor.i-2,this._editingAnchor.i)),Ha("onPress",this)},ct._onReleaseHandle=function _onReleaseHandle(t){this._onRelease(t),this._saveState()},ct._onDragHandle1=function _onDragHandle1(){var t,e=this._editingAnchor,n=e.segment,i=e.i,s=e.isClosedStart?n.length-4:i-2,a=1e3,o=this._handle1._draggable.x,r=this._handle1._draggable.y;n[s]=o=(o*a|0)/a,n[1+s]=r=(r*a|0)/a,e.smooth&&(R?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(n[i+1]-r,n[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),n[i+2]=((n[i]+o)*a|0)/a,n[i+3]=((n[i+1]+r)*a|0)/a)),this.update()},ct._onDragHandle2=function _onDragHandle2(){var t,e=this._editingAnchor,n=e.segment,i=e.i,s=e.isClosedStart?n.length-4:i-2,a=1e3,o=this._handle2._draggable.x,r=this._handle2._draggable.y;n[i+2]=o=(o*a|0)/a,n[i+3]=r=(r*a|0)/a,e.smooth&&(R?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(n[i+1]-r,n[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),n[s]=((n[i]+o)*a|0)/a,n[1+s]=((n[i+1]+r)*a|0)/a)),this.update()},ct._onDragAnchor=function _onDragAnchor(t,e,n){var i,s,a,o,r,h=this._selectedAnchors,l=h.length,c=1e3;for(s=0;s<l;s++)i=(o=h[s]).i,a=o.segment,i?(a[i-2]=((a[i-2]+e)*c|0)/c,a[i-1]=((a[i-1]+n)*c|0)/c):o.isClosedStart&&(a[r=a.length-2]=ua(a[r]+e),a[1+r]=ua(a[1+r]+n),a[r-2]=ua(a[r-2]+e),a[r-1]=ua(a[r-1]+n)),a[i]=((a[i]+e)*c|0)/c,a[i+1]=((a[i+1]+n)*c|0)/c,i<a.length-2&&(a[i+2]=((a[i+2]+e)*c|0)/c,a[i+3]=((a[i+3]+n)*c|0)/c),o!==t&&o.element.setAttribute("transform","translate("+a[i]+it+a[i+1]+")");this.update()},ct.enabled=function enabled(t){if(!arguments.length)return this._enabled;for(var e=this._anchors.length;-1<--e;)this._anchors[e]._draggable.enabled(t);return this._enabled=t,this._handle1._draggable.enabled(t),this._handle2._draggable.enabled(t),this._draggable&&this._draggable.enabled(t),t?this._selection.parentNode||(this.path.ownerSVGElement.appendChild(this._selectionHittest),this.path.ownerSVGElement.appendChild(this._selection),this.init(),this._saveState()):(this.deselect(),this._selectionHittest.parentNode&&this._selectionHittest.parentNode.removeChild(this._selectionHittest),this._selection.parentNode&&this._selection.parentNode.removeChild(this._selection)),this._updateAnchors(),this.update()},ct.update=function update(t){var e,n,i,s,a,o="",r=this._editingAnchor;if(t&&this.init(),r&&(e=r.i,n=r.segment,(e||r.isClosedStart)&&(i=n[a=r.isClosedStart?n.length-4:e-2],s=n[1+a],this._handle1.setAttribute("transform","translate("+i+it+s+")"),this._line1.setAttribute("points",i+it+s+it+n[e]+it+n[e+1])),e<n.length-2&&(i=n[e+2],s=n[e+3],this._handle2.setAttribute("transform","translate("+i+it+s+")"),this._line2.setAttribute("points",n[e]+it+n[e+1]+it+i+it+s))),t)o=this.path.getAttribute("d");else{for(e=0;e<this._rawPath.length;e++)7<(n=this._rawPath[e]).length&&(o+="M"+n[0]+it+n[1]+"C"+n.slice(2).join(it));this.path.setAttribute("d",o),this._selectionPath.setAttribute("d",o),this._selectionHittest.setAttribute("d",o)}return this.vars.onUpdate&&this._enabled&&Ha("onUpdate",this,o),this},ct.getRawPath=function getRawPath(t,e,n){if(t){var i=ra(this.path);return transformRawPath(copyRawPath(this._rawPath),1,0,0,1,i.e+(e||0),i.f+(n||0))}return this._rawPath},ct.getString=function getString(t,e,i){if(t){var s=ra(this.path);return function rawPathToString(t){!function _isNumber(t){return"number"==typeof t}(t[0])||(t=[t]);var e,i,s,a,o="",r=t.length;for(i=0;i<r;i++){for(a=t[i],o+="M"+n(a[0])+","+n(a[1])+" C",e=a.length,s=2;s<e;s++)o+=n(a[s++])+","+n(a[s++])+" "+n(a[s++])+","+n(a[s++])+" "+n(a[s++])+","+n(a[s])+" ";a.closed&&(o+="z")}return o}(transformRawPath(copyRawPath(this._rawPath),1,0,0,1,s.e+(e||0),s.f+(i||0)))}return this.path.getAttribute("d")},ct.getNormalizedSVG=function getNormalizedSVG(t,e,n,i){var s,a,o,r,h,l,c=this._rawPath[0],d=-1*c[0],u=0===e?0:-(e||c[1]),p=c.length,g=1/(c[p-2]+d),f=-t||c[p-1]+u;for(f=f?1/f:-g,g*=1e3,f*=1e3,a=nt.length=0;a<p;a+=2)nt[a]=((c[a]+d)*g|0)/1e3,nt[a+1]=((c[a+1]+u)*f|0)/1e3;if(i){for(s=[],p=nt.length,a=2;a<p;a+=6)o=nt[a-2],r=nt[a-1],h=nt[a+4],l=nt[a+5],s.push(o,r,h,l),bezierToPoints(o,r,nt[a],nt[a+1],nt[a+2],nt[a+3],h,l,.001,s,s.length-2);for(o=s[0],p=s.length,a=2;a<p;a+=2){if((h=s[a])<o||1<h||h<0){i();break}o=h}}return n&&8===p&&0===nt[0]&&0===nt[1]&&1===nt[p-2]&&1===nt[p-1]?nt.slice(2,6).join(","):(nt[2]="C"+nt[2],"M"+nt.join(","))},ct.kill=function kill(){this.enabled(!1),this._g.parentNode&&this._g.parentNode.removeChild(this._g)},ct.revert=function revert(){this.kill()},PathEditor);function PathEditor(t,e){e=e||{},G||La(),this.vars=e,this.path="string"==typeof t?T.querySelectorAll(t)[0]:t,this._g=pa("g",this.path.ownerSVGElement,{class:"path-editor-g path-editor"}),this._selectionHittest=pa("path",this._g,{stroke:"transparent",strokeWidth:16,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selection=e._selection||pa("g",this._g,{class:"path-editor-selection path-editor"}),this._selectionPath=pa("path",this._selection,{stroke:V,strokeWidth:2,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selectedAnchors=[],this._line1=pa("polyline",this._selection,{stroke:V,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line2=pa("polyline",this._selection,{stroke:V,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line1.style.pointerEvents=this._line2.style.pointerEvents=this._selectionPath.style.pointerEvents="none",this._enabled=!0;var n=this.path.parentNode.getScreenCTM().inverse(),i=(n.a+n.d)/2*(e.handleSize||5);this._squareHandle=function _getSquarePathData(t){return["M-"+(t=ua(t)),-t,t,-t,t,t,-t,t+"z"].join(it)}(i),this._circleHandle=function _getCirclePathData(t){var e=ua(.552284749831*t);return"M"+(t=ua(t))+",0C"+[t,e,e,t,0,t,-e,t,-t,e,-t,0,-t,-e,-e,-t,0,-t,e,-t,t,-e,t,0].join(it)+"z"}(1.15*i),this._handle1=pa("path",this._selection,{d:this._squareHandle,fill:V,stroke:"transparent",strokeWidth:6}),this._handle2=pa("path",this._selection,{d:this._squareHandle,fill:V,stroke:"transparent",strokeWidth:6}),this._handle1._draggable=new rt(this._handle1,{onDrag:this._onDragHandle1,callbackScope:this,onPress:this._onPressHandle1,onRelease:this._onReleaseHandle,onClick:this._onClickHandle1,snap:e.handleSnap}),this._handle2._draggable=new rt(this._handle2,{onDrag:this._onDragHandle2,callbackScope:this,onPress:this._onPressHandle2,onRelease:this._onReleaseHandle,onClick:this._onClickHandle2,snap:e.handleSnap}),this._handle1.style.visibility=this._handle2.style.visibility="hidden";for(var s=[this._handle1,this._handle2,this._line1,this._line2,this._selection,this._selectionPath,this._selectionHittest],a=s.length;-1<--a;)s[a]._gsSelection=!0;!1!==e.draggable&&(this._draggable=new rt(this._selectionHittest,{callbackScope:this,onPress:this.select,onRelease:this._onRelease,onDrag:this._onDragPath,onDragEnd:this._saveState,maxX:this.vars.maxX,minX:this.vars.minX})),this.init(),this._selection.style.visibility=!1===e.selected?"hidden":"visible",!1!==e.selected&&(this.path._gsSelection=!0,st.push(this)),this._saveState(),h||(Ba(this._selectionHittest,"mousedown",Ga(this._onClickSelectionPath,this)),Ba(this._selectionHittest,"mouseup",Ga(this._onRelease,this))),Ba(this._selectionHittest,"touchstart",Ga(this._onClickSelectionPath,this)),Ba(this._selectionHittest,"touchend",Ga(this._onRelease,this)),r(this)}dt.simplifyPoints=simplifyPoints,dt.pointsToSegment=pointsToSegment,dt.simplifySVG=function(t,e){var n,i,s,a,o,r,h,l,c,d,u;if(d=(e=e||{}).tolerance||1,c=e.precision||1/d,void 0===e.cornerThreshold||e.cornerThreshold,"string"!=typeof t&&(t=(n=t).getAttribute("d")),"#"!==t.charAt(0)&&"."!==t.charAt(0)||(n=T.querySelector(t))&&(t=n.getAttribute("d")),i=!1!==e.curved||/[achqstvz]/gi.test(t)?stringToRawPath(t)[0]:t.match(z),!1!==e.curved){for(l=i,i=[],u=l.length,s=2;s<u;s+=6)a=+l[s-2],r=+l[s-1],o=+l[s+4],h=+l[s+5],i.push(ua(a),ua(r),ua(o),ua(h)),bezierToPoints(a,r,+l[s],+l[s+1],+l[s+2],+l[s+3],o,h,1/(2e5*c),i,i.length-2);(i=pointsToSegment(simplifyPoints(i,d),e.curviness))[2]="C"+i[2]}else i=simplifyPoints(i,d);return t="M"+i.join(","),n&&n.setAttribute("d",t),t},dt.create=function(t,e){return new dt(t,e)},dt.editingAxis=K,dt.getSnapFunction=function(t){var r=t.radius||2,e=1e20,h=t.x||0===t.x?t.x:t.width?0:-e,l=t.y||0===t.y?t.y:t.height?0:-e,c=h+(t.width||1e40),d=l+(t.height||1e40),u=!1!==t.containX,p=!1!==t.containY,g=t.axis,f=t.gridSize;return r*=r,function(t){var e,n,i,s,a=t.x,o=t.y;u&&a<h||(i=a-h)*i<r?a=h:(u&&c<a||(i=c-a)*i<r)&&(a=c),p&&o<l||(s=o-l)*s<r?o=l:(p&&d<o||(s=d-o)*s<r)&&(o=d),g&&(i=a-g.x,s=o-g.y,i*i<r&&(a=g.x),s*s<r&&(o=g.y)),f&&(i=(e=h+Math.round((a-h)/f)*f)-a)*i+(s=(n=l+Math.round((o-l)/f)*f)-o)*s<r&&(a=e,o=n),t.x=a,t.y=o}},dt.version="3.12.5",dt.register=La;function db(){return String.fromCharCode.apply(null,arguments)}function jb(t){return"string"==typeof t}function kb(t,e){var n=gt.createElementNS?gt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):gt.createElement(t);return n.style?n:gt.createElement(t)}function qb(t,e,n){return jb(t)&&xt.test(t)?gt.querySelector(t):Array.isArray(t)?bt(vt([{x:ut.getProperty(e,"x"),y:ut.getProperty(e,"y")}].concat(t),n)):jb(t)||t&&"path"===(t.tagName+"").toLowerCase()?t:0}function vb(t,e){var n="Please gsap.registerPlugin(MotionPathPlugin)";pt=window,(ut=ut||t||pt.gsap||console.warn(n))&&dt.register(ut),gt=document,_t=gt.body,ft=gt.documentElement,ut&&(mt=ut.plugins.motionPath,Et.PathEditor=dt,yt=ut.core.context||function(){}),mt?(function _initCopyToClipboard(){(Pt=kb("textarea")).style.display="none",_t.appendChild(Pt)}(),vt=mt.arrayToRawPath,bt=mt.rawPathToString):!0===e&&console.warn(n)}var ut,pt,gt,ft,_t,mt,vt,bt,yt,Pt,At="MotionPathHelper",wt=db(103,114,101,101,110,115,111,99,107,46,99,111,109),Ct=db(103,115,97,112,46,99,111,109),St=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,xt=(function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(db(102,105,108,101,58,47,47))||-1!==t.indexOf(db(108,111,99,97,108,104,111,115,116))||St.test(t)||(e?window.location.hostname:"").split(".").pop()===db(108,111,99,97,108),i=[wt,Ct,db(99,111,100,101,112,101,110,46,105,111),db(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),db(99,111,100,101,112,101,110,46,100,101,118),db(99,111,100,101,112,101,110,46,97,112,112),db(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),db(112,101,110,115,46,99,108,111,117,100),db(99,115,115,45,116,114,105,99,107,115,46,99,111,109),db(99,100,112,110,46,105,111),db(112,101,110,115,46,105,111),db(103,97,110,110,111,110,46,116,118),db(99,111,100,101,99,97,110,121,111,110,46,110,101,116),db(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),db(99,101,114,101,98,114,97,120,46,99,111,46,117,107),db(116,121,109,112,97,110,117,115,46,110,101,116),db(116,119,101,101,110,109,97,120,46,99,111,109),db(112,108,110,107,114,46,99,111),db(104,111,116,106,97,114,46,99,111,109),db(119,101,98,112,97,99,107,98,105,110,46,99,111,109),db(97,114,99,104,105,118,101,46,111,114,103),db(99,111,100,101,115,97,110,100,98,111,120,46,105,111),db(99,115,98,46,97,112,112),db(115,116,97,99,107,98,108,105,116,122,46,99,111,109),db(115,116,97,99,107,98,108,105,116,122,46,105,111),db(99,111,100,105,101,114,46,105,111),db(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),db(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),db(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),db(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),db(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),db(106,115,102,105,100,100,108,101,46,110,101,116)],s=i.length;for(setTimeout(function checkWarn(){if(e)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var t="object"==typeof ut?ut:e&&window.gsap;e&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(db(37,99,87,97,114,110,105,110,103),db(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(db(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+At+db(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(db(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),db(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--s;)if(-1!==t.indexOf(i[s]))return;n||setTimeout(function(){e&&(window.location.href=db(104,116,116,112,115,58,47,47)+wt+db(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+At+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),/(^[#\.][a-z]|[a-y][a-z])/i),kt={matrix:{a:1,b:0,c:0,d:1,e:0,f:0}},Et=(MotionPathHelper.prototype.getString=function getString(){return this.editor.getString(!0,-this.offset.x,-this.offset.y)},MotionPathHelper);function MotionPathHelper(t,e){var n=this;void 0===e&&(e={}),mt||vb(e.gsap,1);var i,s,a,o,r,h,l,c,d,u,p,g,f,_,m=kb("div"),v=this,b={x:0,y:0};t instanceof ut.core.Tween?i=(c=t).targets()[0]:(i=ut.utils.toArray(t)[0],c=function _findMotionPathTween(t){for(var e=ut.getTweensOf(t),n=0;n<e.length;n++){if(e[n].vars.motionPath)return e[n];e[n].timeline&&e.push.apply(e,e[n].timeline.getChildren())}}(i)),s=qb(e.path,i,e),this.offset=b,h=function _getPositionOnPage(t){var e=t.getBoundingClientRect(),n=ft.clientTop-(pt.pageYOffset||ft.scrollTop||_t.scrollTop||0),i=ft.clientLeft-(pt.pageXOffset||ft.scrollLeft||_t.scrollLeft||0);return{left:e.left+i,top:e.top+n,right:e.right+i,bottom:e.bottom+n}}(i),o=parseFloat(ut.getProperty(i,"x","px")),r=parseFloat(ut.getProperty(i,"y","px")),a=i.getCTM&&"svg"!==i.tagName.toLowerCase(),c&&!s&&(s=qb(c.vars.motionPath.path||c.vars.motionPath,i,c.vars.motionPath)),m.setAttribute("class","copy-motion-path"),m.style.cssText="border-radius:8px; background-color:rgba(85, 85, 85, 0.7); color:#fff; cursor:pointer; padding:6px 12px; font-family:Signika Negative, Arial, sans-serif; position:fixed; left:50%; transform:translate(-50%, 0); font-size:19px; bottom:10px",m.innerText="COPY MOTION PATH",m._gsHelper=v,(ut.utils.toArray(e.container)[0]||_t).appendChild(m),function _addCopyToClipboard(n,i,s){n.addEventListener("click",function(t){if(t.target._gsHelper){var e=i(t.target);if((Pt.value=e)&&Pt.select){console.log(e),Pt.style.display="block",Pt.select();try{gt.execCommand("copy"),Pt.blur(),s&&s(n)}catch(t){console.warn("Copy didn't work; this browser doesn't permit that.")}Pt.style.display="none"}}})}(m,function(){return v.getString()},function(){return ut.fromTo(m,{backgroundColor:"white"},{duration:.5,backgroundColor:"rgba(85, 85, 85, 0.6)"})}),(l=s&&s.ownerSVGElement)?(e.pathColor&&ut.set(s,{stroke:e.pathColor}),e.pathWidth&&ut.set(s,{strokeWidth:e.pathWidth}),e.pathOpacity&&ut.set(s,{opacity:e.pathOpacity})):(d=a&&i.ownerSVGElement&&i.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg",a?(l=i.ownerSVGElement,u=i.getBBox(),o=(p=function _getConsolidatedMatrix(t){return(t.transform.baseVal.consolidate()||kt).matrix}(i)).e,r=p.f,b.x=u.x,b.y=u.y):(l=kb("svg",d),_=!0,_t.appendChild(l),l.setAttribute("viewBox","0 0 100 100"),l.setAttribute("class","motion-path-helper"),l.style.cssText="overflow:visible; background-color: transparent; position:absolute; z-index:5000; width:100px; height:100px; top:"+(h.top-r)+"px; left:"+(h.left-o)+"px;"),u=jb(s)&&!xt.test(s)?s:function _getInitialPath(t,e){var n,i=[0,31,8,58,24,75,40,90,69,100,100,100];for(n=0;n<i.length;n+=2)i[n]+=t,i[n+1]+=e;return"M"+t+","+e+"C"+i.join(",")}(o,r),(s=kb("path",d)).setAttribute("d",u),s.setAttribute("vector-effect","non-scaling-stroke"),s.style.cssText="fill:transparent; stroke-width:"+(e.pathWidth||3)+"; stroke:"+(e.pathColor||"#555")+"; opacity:"+(e.pathOpacity||.6),l.appendChild(s)),(b.x||b.y)&&ut.set(s,{x:b.x,y:b.y}),"selected"in e||(e.selected=!0),"anchorSnap"in e||(e.anchorSnap=function(t){t.x*t.x+t.y*t.y<16&&(t.x=t.y=0)}),f=c&&c.parent&&"nested"===c.parent.data?c.parent.parent:c,e.onPress=function(){f.pause(0)},g=function refreshPath(){c.invalidate(),f.restart()},e.onRelease=e.onDeleteAnchor=g,this.editor=dt.create(s,e),e.center&&ut.set(i,{transformOrigin:"50% 50%",xPercent:-50,yPercent:-50}),c?(c.vars.motionPath.path?c.vars.motionPath.path=s:c.vars.motionPath={path:s},f.parent!==ut.globalTimeline&&ut.globalTimeline.add(f,function _getGlobalTime(t){for(var e=t.totalTime();t;)e=t.startTime()+e/(t.timeScale()||1),t=t.parent;return e}(f)-f.delay()),f.repeat(-1).repeatDelay(1)):c=f=ut.to(i,{motionPath:{path:s,start:e.start||0,end:"end"in e?e.end:1,autoRotate:"autoRotate"in e&&e.autoRotate,align:s,alignOrigin:e.alignOrigin},duration:e.duration||5,ease:e.ease||"power1.inOut",repeat:-1,repeatDelay:1,paused:!e.path}),this.animation=c,yt(this),this.kill=this.revert=function(){n.editor.kill(),m.parentNode&&m.parentNode.removeChild(m),_&&l.parentNode&&l.parentNode.removeChild(l),f&&f.revert()}}Et.register=vb,Et.create=function(t,e){return new Et(t,e)},Et.editPath=function(t,e){return dt.create(t,e)},Et.version="3.12.5",t.MotionPathHelper=Et,t.default=Et;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); |
/*! | ||
* MotionPathPlugin 3.12.4 | ||
* MotionPathPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function p(t){return"string"==typeof t}function x(t){return Math.round(1e10*t)/1e10||0}function y(t,e,n,r){var a=t[e],o=1===r?6:subdivideSegment(a,n,r);if(o&&o+n+2<a.length)return t.splice(e,0,a.slice(0,n+o+2)),a.splice(0,n+o),1}function C(t,e){var n=t.length,r=t[n-1]||[],a=r.length;n&&e[0]===r[a-2]&&e[1]===r[a-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e}var M=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,T=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,L=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,V=Math.PI/180,s=180/Math.PI,F=Math.sin,U=Math.cos,H=Math.abs,$=Math.sqrt,l=Math.atan2,A=1e8,h=function _isNumber(t){return"number"==typeof t},S={},_={},e=1e5,d=function _wrapProgress(t){return Math.round((t+A)%1*e)/e||(t<0?0:1)},N=function _round(t){return Math.round(t*e)/e||0},m=function _getSampleIndex(t,e,n){var r=t.length,a=~~(n*r);if(t[a]>e){for(;--a&&t[a]>e;);a<0&&(a=0)}else for(;t[++a]<e&&a<r;);return a<r?a:r-1},O=function _copyMetaData(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e};function getRawPath(t){var e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?p(t)?stringToRawPath(t):h(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var B={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,a,o,i,s,l,h,u,f,g,c,p,d,m,v,y,x,w,P,b,M,R=t.tagName.toLowerCase(),L=.552284749831;return"path"!==R&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(t.attributes),o=a.length;for(e=","+e+",";-1<--o;)n=a[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,a[o].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},a=n.length;-1<--a;)r[n[a]]=+t.getAttribute(n[a])||0;return r}(t,B[R]),"rect"===R?(o=M.rx,i=M.ry||o,r=M.x,a=M.y,f=M.width-2*o,g=M.height-2*i,n=o||i?"M"+(v=(d=(p=r+o)+f)+o)+","+(x=a+i)+" V"+(w=x+g)+" C"+[v,P=w+i*L,m=d+o*L,b=w+i,d,b,d-(d-p)/3,b,p+(d-p)/3,b,p,b,c=r+o*(1-L),b,r,P,r,w,r,w-(w-x)/3,r,x+(w-x)/3,r,x,r,y=a+i*(1-L),c,a,p,a,p+(d-p)/3,a,d-(d-p)/3,a,d,a,m,a,v,y,v,x].join(",")+"z":"M"+(r+f)+","+a+" v"+g+" h"+-f+" v"+-g+" h"+f+"z"):"circle"===R||"ellipse"===R?(h="circle"===R?(o=i=M.r)*L:(o=M.rx,(i=M.ry)*L),n="M"+((r=M.cx)+o)+","+(a=M.cy)+" C"+[r+o,a+h,r+(l=o*L),a+i,r,a+i,r-l,a+i,r-o,a+h,r-o,a,r-o,a-h,r-l,a-i,r,a-i,r+l,a-i,r+o,a-h,r+o,a].join(",")+"z"):"line"===R?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==R&&"polygon"!==R||(n="M"+(r=(u=(t.getAttribute("points")+"").match(T)||[]).shift())+","+(a=u.shift())+" L"+u.join(","),"polygon"===R&&(n+=","+r+","+a+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function getRotationAtBezierT(t,e,n){var r,a=t[e],o=t[e+2],i=t[e+4];return a+=(o-a)*n,a+=((o+=(i-o)*n)-a)*n,r=o+(i+(t[e+6]-i)*n-o)*n-a,a=t[e+1],a+=((o=t[e+3])-a)*n,a+=((o+=((i=t[e+5])-o)*n)-a)*n,N(l(o+(i+(t[e+7]-i)*n-o)*n-a,r)*s)}function sliceRawPath(t,e,n){n=function _isUndefined(t){return void 0===t}(n)?1:x(n)||0,e=x(e)||0;var r=Math.max(0,~~(H(n-e)-1e-8)),a=function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=O(t[n],t[n].slice(0));return O(t,e)}(t);if(n<e&&(e=1-e,n=1-n,function _reverseRawPath(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||reverseSegment(t[n])}(a),a.totalLength=0),e<0||n<0){var o=Math.abs(~~Math.min(e,n))+1;e+=o,n+=o}a.totalLength||cacheRawPathMeasurements(a);var i,s,l,h,u,f,g,c,p=1<n,d=getProgressData(a,e,S,!0),m=getProgressData(a,n,_),v=m.segment,w=d.segment,P=m.segIndex,b=d.segIndex,M=m.i,R=d.i,L=b===P,T=M===R&&L;if(p||r){for(i=P<b||L&&M<R||T&&m.t<d.t,y(a,b,R,d.t)&&(b++,i||(P++,T?(m.t=(m.t-d.t)/(1-d.t),M=0):L&&(M-=R))),Math.abs(1-(n-e))<1e-5?P=b-1:!m.t&&P?P--:y(a,P,M,m.t)&&i&&b++,1===d.t&&(b=(b+1)%a.length),u=[],g=1+(f=a.length)*r,g+=(f-(c=b)+P)%f,h=0;h<g;h++)C(u,a[c++%f]);a=u}else if(l=1===m.t?6:subdivideSegment(v,M,m.t),e!==n)for(s=subdivideSegment(w,R,T?d.t/m.t:d.t),L&&(l+=s),v.splice(M+l+2),(s||R)&&w.splice(0,R+s),h=a.length;h--;)(h<b||P<h)&&a.splice(h,1);else v.angle=getRotationAtBezierT(v,M+l,0),d=v[M+=l],m=v[M+1],v.length=v.totalLength=0,v.totalPoints=a.totalPoints=8,v.push(d,m,d,m,d,m,d,m);return a.totalLength=0,a}function measureSegment(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,a,o,i,s,l,h,u,f,g,c,p,d,m,v,y,x,w=~~t.resolution||12,P=1/w,b=n?e+6*n+1:t.length,M=t[e],R=t[e+1],L=e?e/6*w:0,T=t.samples,C=t.lookup,S=(e?t.minLength:A)||A,_=T[L+n*w-1],N=e?T[L-1]:0;for(T.length=C.length=0,a=e+2;a<b;a+=6){if(o=t[a+4]-M,i=t[a+2]-M,s=t[a]-M,u=t[a+5]-R,f=t[a+3]-R,g=t[a+1]-R,l=h=c=p=0,H(o)<.01&&H(u)<.01&&H(s)+H(g)<.01)8<t.length&&(t.splice(a,6),a-=6,b-=6);else for(r=1;r<=w;r++)l=h-(h=((m=P*r)*m*o+3*(d=1-m)*(m*i+d*s))*m),c=p-(p=(m*m*u+3*d*(m*f+d*g))*m),(y=$(c*c+l*l))<S&&(S=y),N+=y,T[L++]=N;M+=o,R+=u}if(_)for(_-=N;L<T.length;L++)T[L]+=_;if(T.length&&S){if(t.totalLength=x=T[T.length-1]||0,x/(t.minLength=S)<9999)for(y=v=0,r=0;r<x;r+=S)C[y++]=T[v]<r?++v:v}else t.totalLength=T[0]=0;return e?N-T[e/2-1]:N}function cacheRawPathMeasurements(t,e){var n,r,a;for(a=n=r=0;a<t.length;a++)t[a].resolution=~~e||12,r+=t[a].length,n+=measureSegment(t[a]);return t.totalPoints=r,t.totalLength=n,t}function subdivideSegment(t,e,n){if(n<=0||1<=n)return 0;var r=t[e],a=t[e+1],o=t[e+2],i=t[e+3],s=t[e+4],l=t[e+5],h=r+(o-r)*n,u=o+(s-o)*n,f=a+(i-a)*n,g=i+(l-i)*n,c=h+(u-h)*n,p=f+(g-f)*n,d=s+(t[e+6]-s)*n,m=l+(t[e+7]-l)*n;return u+=(d-u)*n,g+=(m-g)*n,t.splice(e+2,4,N(h),N(f),N(c),N(p),N(c+(u-c)*n),N(p+(g-p)*n),N(u),N(g),N(d),N(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function getProgressData(t,e,n,r){n=n||{},t.totalLength||cacheRawPathMeasurements(t),(e<0||1<e)&&(e=d(e));var a,o,i,s,l,h,u,f=0,g=t[0];if(e)if(1===e)u=1,h=(g=t[f=t.length-1]).length-8;else{if(1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)f=h;e=(i-(s=l-(g=t[f]).totalLength))/(l-s)||0}a=g.samples,o=g.resolution,i=g.totalLength*e,s=(h=g.lookup.length?g.lookup[~~(i/g.minLength)]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),u=1/o*((i-s)/(l-s)+h%o),h=6*~~(h/o),r&&1===u&&(h+6<g.length?(h+=6,u=0):f+1<t.length&&(h=u=0,g=t[++f]))}else u=h=f=0,g=t[0];return n.t=u,n.i=h,n.path=t,n.segment=g,n.segIndex=f,n}function getPositionOnPath(t,e,n,r){var a,o,i,s,l,h,u,f,g,c=t[0],p=r||{};if((e<0||1<e)&&(e=d(e)),c.lookup||cacheRawPathMeasurements(t),1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)c=t[h];e=(i-(s=l-c.totalLength))/(l-s)||0}return a=c.samples,o=c.resolution,i=c.totalLength*e,s=(h=c.lookup.length?c.lookup[e<1?~~(i/c.minLength):c.lookup.length-1]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),g=1-(u=1/o*((i-s)/(l-s)+h%o)||0),f=c[h=6*~~(h/o)],p.x=N((u*u*(c[h+6]-f)+3*g*(u*(c[h+4]-f)+g*(c[h+2]-f)))*u+f),p.y=N((u*u*(c[h+7]-(f=c[h+1]))+3*g*(u*(c[h+5]-f)+g*(c[h+3]-f)))*u+f),n&&(p.angle=c.totalLength?getRotationAtBezierT(c,h,1<=u?1-1e-9:u||1e-9):c.angle||0),p}function transformRawPath(t,e,n,r,a,o,i){for(var s,l,h,u,f,g=t.length;-1<--g;)for(l=(s=t[g]).length,h=0;h<l;h+=2)u=s[h],f=s[h+1],s[h]=u*e+f*r+o,s[h+1]=u*n+f*a+i;return t._dirty=1,t}function arcToSegment(t,e,n,r,a,o,i,s,l){if(t!==s||e!==l){n=H(n),r=H(r);var h=a%360*V,u=U(h),f=F(h),g=Math.PI,c=2*g,p=(t-s)/2,d=(e-l)/2,m=u*p+f*d,v=-f*p+u*d,y=m*m,x=v*v,w=y/(n*n)+x/(r*r);1<w&&(n=$(w)*n,r=$(w)*r);var P=n*n,b=r*r,M=(P*b-P*x-b*y)/(P*x+b*y);M<0&&(M=0);var R=(o===i?-1:1)*$(M),L=n*v/r*R,T=-r*m/n*R,C=u*L-f*T+(t+s)/2,S=f*L+u*T+(e+l)/2,_=(m-L)/n,N=(v-T)/r,A=(-m-L)/n,O=(-v-T)/r,B=_*_+N*N,E=(N<0?-1:1)*Math.acos(_/$(B)),I=(_*O-N*A<0?-1:1)*Math.acos((_*A+N*O)/$(B*(A*A+O*O)));isNaN(I)&&(I=g),!i&&0<I?I-=c:i&&I<0&&(I+=c),E%=c,I%=c;var D,X=Math.ceil(H(I)/(c/4)),k=[],z=I/X,G=4/3*F(z/2)/(1+U(z/2)),Z=u*n,q=f*n,Y=f*-r,j=u*r;for(D=0;D<X;D++)m=U(a=E+D*z),v=F(a),_=U(a+=z),N=F(a),k.push(m-G*v,v+G*m,_+G*N,N-G*_,_,N);for(D=0;D<k.length;D+=2)m=k[D],v=k[D+1],k[D]=m*Z+v*Y+C,k[D+1]=m*q+v*j+S;return k[D-2]=s,k[D-1]=l,k}}function stringToRawPath(t){function Cf(t,e,n,r){u=(n-t)/3,f=(r-e)/3,s.push(t+u,e+f,n-u,r-f,n,r)}var e,n,r,a,o,i,s,l,h,u,f,g,c,p,d,m=(t+"").replace(L,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(M)||[],v=[],y=0,x=0,w=m.length,P=0,b="ERROR: malformed path: "+t;if(!t||!isNaN(m[0])||isNaN(m[1]))return console.log(b),v;for(e=0;e<w;e++)if(c=o,isNaN(m[e])?i=(o=m[e].toUpperCase())!==m[e]:e--,r=+m[e+1],a=+m[e+2],i&&(r+=y,a+=x),e||(l=r,h=a),"M"===o)s&&(s.length<8?--v.length:P+=s.length),y=l=r,x=h=a,s=[r,a],v.push(s),e+=2,o="L";else if("C"===o)i||(y=x=0),(s=s||[0,0]).push(r,a,y+1*m[e+3],x+1*m[e+4],y+=1*m[e+5],x+=1*m[e+6]),e+=6;else if("S"===o)u=y,f=x,"C"!==c&&"S"!==c||(u+=y-s[s.length-4],f+=x-s[s.length-3]),i||(y=x=0),s.push(u,f,r,a,y+=1*m[e+3],x+=1*m[e+4]),e+=4;else if("Q"===o)u=y+2/3*(r-y),f=x+2/3*(a-x),i||(y=x=0),y+=1*m[e+3],x+=1*m[e+4],s.push(u,f,y+2/3*(r-y),x+2/3*(a-x),y,x),e+=4;else if("T"===o)u=y-s[s.length-4],f=x-s[s.length-3],s.push(y+u,x+f,r+2/3*(y+1.5*u-r),a+2/3*(x+1.5*f-a),y=r,x=a),e+=2;else if("H"===o)Cf(y,x,y=r,x),e+=1;else if("V"===o)Cf(y,x,y,x=r+(i?x-y:0)),e+=1;else if("L"===o||"Z"===o)"Z"===o&&(r=l,a=h,s.closed=!0),("L"===o||.5<H(y-r)||.5<H(x-a))&&(Cf(y,x,r,a),"L"===o&&(e+=2)),y=r,x=a;else if("A"===o){if(p=m[e+4],d=m[e+5],u=m[e+6],f=m[e+7],n=7,1<p.length&&(p.length<3?(f=u,u=d,n--):(f=d,u=p.substr(2),n-=2),d=p.charAt(1),p=p.charAt(0)),g=arcToSegment(y,x,+m[e+1],+m[e+2],+m[e+3],+p,+d,(i?y:0)+1*u,(i?x:0)+1*f),e+=n,g)for(n=0;n<g.length;n++)s.push(g[n]);y=s[s.length-2],x=s[s.length-1]}else console.log(b);return(e=s.length)<6?(v.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),v.totalPoints=P+e,v}function flatPointsToSegment(t,e){void 0===e&&(e=1);for(var n=t[0],r=0,a=[n,r],o=2;o<t.length;o+=2)a.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return a}function pointsToSegment(t,e){H(t[0]-t[2])<1e-4&&H(t[1]-t[3])<1e-4&&(t=t.slice(2));var n,r,a,o,i,s,l,h,u,f,g,c,p,d,m=t.length-2,v=+t[0],y=+t[1],x=+t[2],w=+t[3],P=[v,y,v,y],b=x-v,M=w-y,R=Math.abs(t[m]-v)<.001&&Math.abs(t[m+1]-y)<.001;for(R&&(t.push(x,w),x=v,w=y,v=t[m-2],y=t[m-1],t.unshift(v,y),m+=4),e=e||0===e?+e:1,a=2;a<m;a+=2)n=v,r=y,v=x,y=w,x=+t[a+2],w=+t[a+3],v===x&&y===w||(o=b,i=M,b=x-v,M=w-y,h=((s=$(o*o+i*i))+(l=$(b*b+M*M)))*e*.25/$(Math.pow(b/l+o/s,2)+Math.pow(M/l+i/s,2)),g=v-((u=v-(v-n)*(s?h/s:0))+(((f=v+(x-v)*(l?h/l:0))-u)*(3*s/(s+l)+.5)/4||0)),d=y-((c=y-(y-r)*(s?h/s:0))+(((p=y+(w-y)*(l?h/l:0))-c)*(3*s/(s+l)+.5)/4||0)),v===n&&y===r||P.push(N(u+g),N(c+d),N(v),N(y),N(f+g),N(p+d)));return v!==x||y!==w||P.length<4?P.push(N(x),N(w),N(x),N(w)):P.length-=2,2===P.length?P.push(v,y,v,y,v,y):R&&(P.splice(0,6),P.length=P.length-6),P}function rawPathToString(t){h(t[0])&&(t=[t]);var e,n,r,a,o="",i=t.length;for(n=0;n<i;n++){for(a=t[n],o+="M"+N(a[0])+","+N(a[1])+" C",e=a.length,r=2;r<e;r++)o+=N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r])+" ";a.closed&&(o+="z")}return o}function R(t){var e=t.ownerDocument||t;!(k in t.style)&&"msTransform"in t.style&&(z=(k="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(v=window,E=new Y,e){w=(c=e).documentElement,P=e.body,(I=c.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),r=e.createElement("div"),a=e&&(e.body||e.firstElementChild);a&&a.appendChild&&(a.appendChild(n),n.appendChild(r),n.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),D=r.offsetParent!==n,a.removeChild(n))}return e}function X(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function Z(t,e){if(t.parentNode&&(c||R(t))){var n=X(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?e?"rect":"g":"div",o=2!==e?0:100,i=3===e?100:0,s="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=c.createElementNS?c.createElementNS(r.replace(/^https/,"http"),a):c.createElement(a);return e&&(n?(b=b||Z(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+i+")"),b.appendChild(l)):(g||((g=Z(t)).style.cssText=s),l.style.cssText=s+"width:0.1px;height:0.1px;top:"+i+"px;left:"+o+"px",g.appendChild(l))),l}throw"Need document and parent."}function aa(t,e){var n,r,a,o,i,s,l=X(t),h=t===l,u=l?G:q,f=t.parentNode;if(t===v)return t;if(u.length||u.push(Z(t,1),Z(t,2),Z(t,3)),n=l?b:g,l)h?(o=-(a=function _getCTM(t){var e,n=t.getCTM();return n||(e=t.style[k],t.style[k]="none",t.appendChild(I),n=I.getCTM(),t.removeChild(I),e?t.style[k]=e:t.style.removeProperty(k.replace(/([A-Z])/g,"-$1").toLowerCase())),n||E.clone()}(t)).e/a.a,i=-a.f/a.d,r=E):t.getBBox?(a=t.getBBox(),o=(r=(r=t.transform?t.transform.baseVal:{}).numberOfItems?1<r.numberOfItems?function _consolidate(t){for(var e=new Y,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(r):r.getItem(0).matrix:E).a*a.x+r.c*a.y,i=r.b*a.x+r.d*a.y):(r=new Y,o=i=0),e&&"g"===t.tagName.toLowerCase()&&(o=i=0),(h?l:f).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+i)+")");else{if(o=i=0,D)for(r=t.offsetParent,a=t;(a=a&&a.parentNode)&&a!==r&&a.parentNode;)4<(v.getComputedStyle(a)[k]+"").length&&(o=a.offsetLeft,i=a.offsetTop,a=0);if("absolute"!==(s=v.getComputedStyle(t)).position&&"fixed"!==s.position)for(r=t.offsetParent;f&&f!==r;)o+=f.scrollLeft||0,i+=f.scrollTop||0,f=f.parentNode;(a=n.style).top=t.offsetTop-i+"px",a.left=t.offsetLeft-o+"px",a[k]=s[k],a[z]=s[z],a.position="fixed"===s.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function ba(t,e,n,r,a,o,i){return t.a=e,t.b=n,t.c=r,t.d=a,t.e=o,t.f=i,t}var c,v,w,P,g,b,E,I,D,n,k="transform",z=k+"Origin",G=[],q=[],Y=((n=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,r=this.d,a=this.e,o=this.f,i=t*r-e*n||1e-10;return ba(this,r/i,-e/i,-n/i,t/i,(n*o-r*a)/i,-(t*o-e*a)/i)},n.multiply=function multiply(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f,s=t.a,l=t.c,h=t.b,u=t.d,f=t.e,g=t.f;return ba(this,s*e+h*r,s*n+h*a,l*e+u*r,l*n+u*a,o+f*e+g*r,i+f*n+g*a)},n.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},n.equals=function equals(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f;return e===t.a&&n===t.b&&r===t.c&&a===t.d&&o===t.e&&i===t.f},n.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,r=t.y,a=this.a,o=this.b,i=this.c,s=this.d,l=this.e,h=this.f;return e.x=n*a+r*i+l||0,e.y=n*o+r*s+h||0,e},Matrix2D);function Matrix2D(t,e,n,r,a,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===o&&(o=0),ba(this,t,e,n,r,a,o)}function getGlobalMatrix(t,e,n,r){if(!t||!t.parentNode||(c||R(t)).documentElement===t)return new Y;var a=function _forceNonZeroScale(t){for(var e,n;t&&t!==P;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),o=X(t)?G:q,i=aa(t,n),s=o[0].getBoundingClientRect(),l=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),u=i.parentNode,f=!r&&function _isFixed(t){return"fixed"===v.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),g=new Y((l.left-s.left)/100,(l.top-s.top)/100,(h.left-s.left)/100,(h.top-s.top)/100,s.left+(f?0:function _getDocScrollLeft(){return v.pageXOffset||c.scrollLeft||w.scrollLeft||P.scrollLeft||0}()),s.top+(f?0:function _getDocScrollTop(){return v.pageYOffset||c.scrollTop||w.scrollTop||P.scrollTop||0}()));if(u.removeChild(i),a)for(s=a.length;s--;)(l=a[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return e?g.inverse():g}function na(t,e,n,r){for(var a=e.length,o=2===r?0:r,i=0;i<a;i++)t[o]=parseFloat(e[i][n]),2===r&&(t[o+1]=0),o+=2;return t}function oa(t,e,n){return parseFloat(t._gsap.get(t,e,n||"px"))||0}function pa(t){var e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r}function qa(t,e,n,r,a,o,i,s,l){return e="cubic"===i.type?[e]:(!1!==i.fromCurrent&&e.unshift(oa(n,r,s),a?oa(n,a,l):0),i.relative&&pa(e),[(a?pointsToSegment:flatPointsToSegment)(e,i.curviness)]),e=o(nt(e,n,i)),rt(t,n,r,e,"x",s),a&&rt(t,n,a,e,"y",l),cacheRawPathMeasurements(e,i.resolution||(0===i.curviness?20:12))}function ra(t){return t}function ta(t,e,n){var r,a=getGlobalMatrix(t),o=0,i=0;return"svg"===(t.tagName+"").toLowerCase()?(r=t.viewBox.baseVal).width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")}):r=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(o=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,i=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(o||i?a.apply({x:o,y:i}):{x:a.e,y:a.f})}function ua(t,e,n,r){var a,o=getGlobalMatrix(t.parentNode,!0,!0),i=o.clone().multiply(getGlobalMatrix(e)),s=ta(t,n,o),l=ta(e,r,o),h=l.x,u=l.y;return i.e=i.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(a=e.getAttribute("d").match(et)||[],h+=(a=i.apply({x:+a[0],y:+a[1]})).x,u+=a.y),a&&(h-=(a=i.apply(e.getBBox())).x,u-=a.y),i.e=h-s.x,i.f=u-s.y,i}var j,f,Q,W,J,o,K="x,translateX,left,marginLeft,xPercent".split(","),tt="y,translateY,top,marginTop,yPercent".split(","),i=Math.PI/180,et=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,nt=function _align(t,e,n){var r,a,o,i=n.align,s=n.matrix,l=n.offsetX,h=n.offsetY,u=n.alignOrigin,f=t[0][0],g=t[0][1],c=oa(e,"x"),p=oa(e,"y");return t&&t.length?(i&&("self"===i||(r=W(i)[0]||e)===e?transformRawPath(t,1,0,0,1,c-f,p-g):(u&&!1!==u[2]?j.set(e,{transformOrigin:100*u[0]+"% "+100*u[1]+"%"}):u=[oa(e,"xPercent")/-100,oa(e,"yPercent")/-100],o=(a=ua(e,r,u,"auto")).apply({x:f,y:g}),transformRawPath(t,a.a,a.b,a.c,a.d,c+a.e-(o.x-a.e),p+a.f-(o.y-a.f)))),s?transformRawPath(t,s.a,s.b,s.c,s.d,s.e,s.f):(l||h)&&transformRawPath(t,1,0,0,1,l||0,h||0),t):getRawPath("M0,0L0,0")},rt=function _addDimensionalPropTween(t,e,n,r,a,o){var i=e._gsap,s=i.harness,l=s&&s.aliases&&s.aliases[n],h=l&&l.indexOf(",")<0?l:n,u=t._pt=new f(t._pt,e,h,0,0,ra,0,i.set(e,h,t));u.u=Q(i.get(e,h,o))||0,u.path=r,u.pp=a,t._props.push(h)},a={version:"3.12.4",name:"motionPath",register:function register(t,e,n){Q=(j=t).utils.getUnit,W=j.utils.toArray,J=j.core.getStyleSaver,o=j.core.reverting||function(){},f=n},init:function init(t,e,n){if(!j)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var r,a,o=[],i=e.path,s=e.autoRotate,l=e.unitX,h=e.unitY,u=e.x,f=e.y,g=i[0],c=function _sliceModifier(e,n){return function(t){return e||1!==n?sliceRawPath(t,e,n):t}}(e.start,"end"in e?e.end:1);if(this.rawPaths=o,this.target=t,this.tween=n,this.styles=J&&J(t,"transform"),(this.rotate=s||0===s)&&(this.rOffset=parseFloat(s)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=Q(t._gsap.get(t,this.rProp))||0),!Array.isArray(i)||"closed"in i||"number"==typeof g)cacheRawPathMeasurements(r=c(nt(getRawPath(e.path),t,e)),e.resolution),o.push(r),rt(this,t,e.x||"x",r,"x",e.unitX||"px"),rt(this,t,e.y||"y",r,"y",e.unitY||"px");else{for(a in g)!u&&~K.indexOf(a)?u=a:!f&&~tt.indexOf(a)&&(f=a);for(a in u&&f?o.push(qa(this,na(na([],i,u,0),i,f,1),t,u,f,c,e,l||Q(i[0][u]),h||Q(i[0][f]))):u=f=0,g)a!==u&&a!==f&&o.push(qa(this,na([],i,a,2),t,a,0,c,e,Q(i[0][a])))}},render:function render(t,e){var n=e.rawPaths,r=n.length,a=e._pt;if(e.tween._time||!o()){for(1<t?t=1:t<0&&(t=0);r--;)getPositionOnPath(n[r],t,!r&&e.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,t),a=a._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?i:1)+e.rOffset+e.ru,e,t)}else e.styles.revert()},getLength:function getLength(t){return cacheRawPathMeasurements(getRawPath(t)).totalLength},sliceRawPath:sliceRawPath,getRawPath:getRawPath,pointsToSegment:pointsToSegment,stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,transformRawPath:transformRawPath,getGlobalMatrix:getGlobalMatrix,getPositionOnPath:getPositionOnPath,cacheRawPathMeasurements:cacheRawPathMeasurements,convertToPath:function convertToPath$1(t,e){return W(t).map(function(t){return convertToPath(t,!1!==e)})},convertCoordinates:function convertCoordinates(t,e,n){var r=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return n?r.apply(n):r},getAlignMatrix:ua,getRelativePosition:function getRelativePosition(t,e,n,r){var a=ua(t,e,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function arrayToRawPath(t,e){var n=na(na([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&pa(n),["cubic"===e.type?n:pointsToSegment(n,e.curviness)]}};!function _getGSAP(){return j||"undefined"!=typeof window&&(j=window.gsap)&&j.registerPlugin&&j}()||j.registerPlugin(a),t.MotionPathPlugin=a,t.default=a;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function p(t){return"string"==typeof t}function x(t){return Math.round(1e10*t)/1e10||0}function y(t,e,n,r){var a=t[e],o=1===r?6:subdivideSegment(a,n,r);if((o||!r)&&o+n+2<a.length)return t.splice(e,0,a.slice(0,n+o+2)),a.splice(0,n+o),1}function C(t,e){var n=t.length,r=t[n-1]||[],a=r.length;n&&e[0]===r[a-2]&&e[1]===r[a-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e}var M=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,T=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,L=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,V=Math.PI/180,s=180/Math.PI,F=Math.sin,U=Math.cos,H=Math.abs,$=Math.sqrt,l=Math.atan2,A=1e8,h=function _isNumber(t){return"number"==typeof t},S={},_={},e=1e5,d=function _wrapProgress(t){return Math.round((t+A)%1*e)/e||(t<0?0:1)},N=function _round(t){return Math.round(t*e)/e||0},m=function _getSampleIndex(t,e,n){var r=t.length,a=~~(n*r);if(t[a]>e){for(;--a&&t[a]>e;);a<0&&(a=0)}else for(;t[++a]<e&&a<r;);return a<r?a:r-1},O=function _copyMetaData(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e};function getRawPath(t){var e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?p(t)?stringToRawPath(t):h(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var B={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,a,o,i,s,l,h,u,f,g,c,p,d,m,v,y,x,w,P,b,M,R=t.tagName.toLowerCase(),L=.552284749831;return"path"!==R&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(t.attributes),o=a.length;for(e=","+e+",";-1<--o;)n=a[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,a[o].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},a=n.length;-1<--a;)r[n[a]]=+t.getAttribute(n[a])||0;return r}(t,B[R]),"rect"===R?(o=M.rx,i=M.ry||o,r=M.x,a=M.y,f=M.width-2*o,g=M.height-2*i,n=o||i?"M"+(v=(d=(p=r+o)+f)+o)+","+(x=a+i)+" V"+(w=x+g)+" C"+[v,P=w+i*L,m=d+o*L,b=w+i,d,b,d-(d-p)/3,b,p+(d-p)/3,b,p,b,c=r+o*(1-L),b,r,P,r,w,r,w-(w-x)/3,r,x+(w-x)/3,r,x,r,y=a+i*(1-L),c,a,p,a,p+(d-p)/3,a,d-(d-p)/3,a,d,a,m,a,v,y,v,x].join(",")+"z":"M"+(r+f)+","+a+" v"+g+" h"+-f+" v"+-g+" h"+f+"z"):"circle"===R||"ellipse"===R?(h="circle"===R?(o=i=M.r)*L:(o=M.rx,(i=M.ry)*L),n="M"+((r=M.cx)+o)+","+(a=M.cy)+" C"+[r+o,a+h,r+(l=o*L),a+i,r,a+i,r-l,a+i,r-o,a+h,r-o,a,r-o,a-h,r-l,a-i,r,a-i,r+l,a-i,r+o,a-h,r+o,a].join(",")+"z"):"line"===R?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==R&&"polygon"!==R||(n="M"+(r=(u=(t.getAttribute("points")+"").match(T)||[]).shift())+","+(a=u.shift())+" L"+u.join(","),"polygon"===R&&(n+=","+r+","+a+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function getRotationAtBezierT(t,e,n){var r,a=t[e],o=t[e+2],i=t[e+4];return a+=(o-a)*n,a+=((o+=(i-o)*n)-a)*n,r=o+(i+(t[e+6]-i)*n-o)*n-a,a=t[e+1],a+=((o=t[e+3])-a)*n,a+=((o+=((i=t[e+5])-o)*n)-a)*n,N(l(o+(i+(t[e+7]-i)*n-o)*n-a,r)*s)}function sliceRawPath(t,e,n){n=function _isUndefined(t){return void 0===t}(n)?1:x(n)||0,e=x(e)||0;var r=Math.max(0,~~(H(n-e)-1e-8)),a=function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=O(t[n],t[n].slice(0));return O(t,e)}(t);if(n<e&&(e=1-e,n=1-n,function _reverseRawPath(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||reverseSegment(t[n])}(a),a.totalLength=0),e<0||n<0){var o=Math.abs(~~Math.min(e,n))+1;e+=o,n+=o}a.totalLength||cacheRawPathMeasurements(a);var i,s,l,h,u,f,g,c,p=1<n,d=getProgressData(a,e,S,!0),m=getProgressData(a,n,_),v=m.segment,w=d.segment,P=m.segIndex,b=d.segIndex,M=m.i,R=d.i,L=b===P,T=M===R&&L;if(p||r){for(i=P<b||L&&M<R||T&&m.t<d.t,y(a,b,R,d.t)&&(b++,i||(P++,T?(m.t=(m.t-d.t)/(1-d.t),M=0):L&&(M-=R))),Math.abs(1-(n-e))<1e-5?P=b-1:!m.t&&P?P--:y(a,P,M,m.t)&&i&&b++,1===d.t&&(b=(b+1)%a.length),u=[],g=1+(f=a.length)*r,g+=(f-(c=b)+P)%f,h=0;h<g;h++)C(u,a[c++%f]);a=u}else if(l=1===m.t?6:subdivideSegment(v,M,m.t),e!==n)for(s=subdivideSegment(w,R,T?d.t/m.t:d.t),L&&(l+=s),v.splice(M+l+2),(s||R)&&w.splice(0,R+s),h=a.length;h--;)(h<b||P<h)&&a.splice(h,1);else v.angle=getRotationAtBezierT(v,M+l,0),d=v[M+=l],m=v[M+1],v.length=v.totalLength=0,v.totalPoints=a.totalPoints=8,v.push(d,m,d,m,d,m,d,m);return a.totalLength=0,a}function measureSegment(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,a,o,i,s,l,h,u,f,g,c,p,d,m,v,y,x,w=~~t.resolution||12,P=1/w,b=n?e+6*n+1:t.length,M=t[e],R=t[e+1],L=e?e/6*w:0,T=t.samples,C=t.lookup,S=(e?t.minLength:A)||A,_=T[L+n*w-1],N=e?T[L-1]:0;for(T.length=C.length=0,a=e+2;a<b;a+=6){if(o=t[a+4]-M,i=t[a+2]-M,s=t[a]-M,u=t[a+5]-R,f=t[a+3]-R,g=t[a+1]-R,l=h=c=p=0,H(o)<.01&&H(u)<.01&&H(s)+H(g)<.01)8<t.length&&(t.splice(a,6),a-=6,b-=6);else for(r=1;r<=w;r++)l=h-(h=((m=P*r)*m*o+3*(d=1-m)*(m*i+d*s))*m),c=p-(p=(m*m*u+3*d*(m*f+d*g))*m),(y=$(c*c+l*l))<S&&(S=y),N+=y,T[L++]=N;M+=o,R+=u}if(_)for(_-=N;L<T.length;L++)T[L]+=_;if(T.length&&S){if(t.totalLength=x=T[T.length-1]||0,x/(t.minLength=S)<9999)for(y=v=0,r=0;r<x;r+=S)C[y++]=T[v]<r?++v:v}else t.totalLength=T[0]=0;return e?N-T[e/2-1]:N}function cacheRawPathMeasurements(t,e){var n,r,a;for(a=n=r=0;a<t.length;a++)t[a].resolution=~~e||12,r+=t[a].length,n+=measureSegment(t[a]);return t.totalPoints=r,t.totalLength=n,t}function subdivideSegment(t,e,n){if(n<=0||1<=n)return 0;var r=t[e],a=t[e+1],o=t[e+2],i=t[e+3],s=t[e+4],l=t[e+5],h=r+(o-r)*n,u=o+(s-o)*n,f=a+(i-a)*n,g=i+(l-i)*n,c=h+(u-h)*n,p=f+(g-f)*n,d=s+(t[e+6]-s)*n,m=l+(t[e+7]-l)*n;return u+=(d-u)*n,g+=(m-g)*n,t.splice(e+2,4,N(h),N(f),N(c),N(p),N(c+(u-c)*n),N(p+(g-p)*n),N(u),N(g),N(d),N(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function getProgressData(t,e,n,r){n=n||{},t.totalLength||cacheRawPathMeasurements(t),(e<0||1<e)&&(e=d(e));var a,o,i,s,l,h,u,f=0,g=t[0];if(e)if(1===e)u=1,h=(g=t[f=t.length-1]).length-8;else{if(1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)f=h;e=(i-(s=l-(g=t[f]).totalLength))/(l-s)||0}a=g.samples,o=g.resolution,i=g.totalLength*e,s=(h=g.lookup.length?g.lookup[~~(i/g.minLength)]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),u=1/o*((i-s)/(l-s)+h%o),h=6*~~(h/o),r&&1===u&&(h+6<g.length?(h+=6,u=0):f+1<t.length&&(h=u=0,g=t[++f]))}else u=h=f=0,g=t[0];return n.t=u,n.i=h,n.path=t,n.segment=g,n.segIndex=f,n}function getPositionOnPath(t,e,n,r){var a,o,i,s,l,h,u,f,g,c=t[0],p=r||{};if((e<0||1<e)&&(e=d(e)),c.lookup||cacheRawPathMeasurements(t),1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)c=t[h];e=(i-(s=l-c.totalLength))/(l-s)||0}return a=c.samples,o=c.resolution,i=c.totalLength*e,s=(h=c.lookup.length?c.lookup[e<1?~~(i/c.minLength):c.lookup.length-1]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),g=1-(u=1/o*((i-s)/(l-s)+h%o)||0),f=c[h=6*~~(h/o)],p.x=N((u*u*(c[h+6]-f)+3*g*(u*(c[h+4]-f)+g*(c[h+2]-f)))*u+f),p.y=N((u*u*(c[h+7]-(f=c[h+1]))+3*g*(u*(c[h+5]-f)+g*(c[h+3]-f)))*u+f),n&&(p.angle=c.totalLength?getRotationAtBezierT(c,h,1<=u?1-1e-9:u||1e-9):c.angle||0),p}function transformRawPath(t,e,n,r,a,o,i){for(var s,l,h,u,f,g=t.length;-1<--g;)for(l=(s=t[g]).length,h=0;h<l;h+=2)u=s[h],f=s[h+1],s[h]=u*e+f*r+o,s[h+1]=u*n+f*a+i;return t._dirty=1,t}function arcToSegment(t,e,n,r,a,o,i,s,l){if(t!==s||e!==l){n=H(n),r=H(r);var h=a%360*V,u=U(h),f=F(h),g=Math.PI,c=2*g,p=(t-s)/2,d=(e-l)/2,m=u*p+f*d,v=-f*p+u*d,y=m*m,x=v*v,w=y/(n*n)+x/(r*r);1<w&&(n=$(w)*n,r=$(w)*r);var P=n*n,b=r*r,M=(P*b-P*x-b*y)/(P*x+b*y);M<0&&(M=0);var R=(o===i?-1:1)*$(M),L=n*v/r*R,T=-r*m/n*R,C=u*L-f*T+(t+s)/2,S=f*L+u*T+(e+l)/2,_=(m-L)/n,N=(v-T)/r,A=(-m-L)/n,O=(-v-T)/r,B=_*_+N*N,E=(N<0?-1:1)*Math.acos(_/$(B)),I=(_*O-N*A<0?-1:1)*Math.acos((_*A+N*O)/$(B*(A*A+O*O)));isNaN(I)&&(I=g),!i&&0<I?I-=c:i&&I<0&&(I+=c),E%=c,I%=c;var D,X=Math.ceil(H(I)/(c/4)),k=[],z=I/X,G=4/3*F(z/2)/(1+U(z/2)),Z=u*n,q=f*n,Y=f*-r,j=u*r;for(D=0;D<X;D++)m=U(a=E+D*z),v=F(a),_=U(a+=z),N=F(a),k.push(m-G*v,v+G*m,_+G*N,N-G*_,_,N);for(D=0;D<k.length;D+=2)m=k[D],v=k[D+1],k[D]=m*Z+v*Y+C,k[D+1]=m*q+v*j+S;return k[D-2]=s,k[D-1]=l,k}}function stringToRawPath(t){function Cf(t,e,n,r){u=(n-t)/3,f=(r-e)/3,s.push(t+u,e+f,n-u,r-f,n,r)}var e,n,r,a,o,i,s,l,h,u,f,g,c,p,d,m=(t+"").replace(L,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(M)||[],v=[],y=0,x=0,w=m.length,P=0,b="ERROR: malformed path: "+t;if(!t||!isNaN(m[0])||isNaN(m[1]))return console.log(b),v;for(e=0;e<w;e++)if(c=o,isNaN(m[e])?i=(o=m[e].toUpperCase())!==m[e]:e--,r=+m[e+1],a=+m[e+2],i&&(r+=y,a+=x),e||(l=r,h=a),"M"===o)s&&(s.length<8?--v.length:P+=s.length),y=l=r,x=h=a,s=[r,a],v.push(s),e+=2,o="L";else if("C"===o)i||(y=x=0),(s=s||[0,0]).push(r,a,y+1*m[e+3],x+1*m[e+4],y+=1*m[e+5],x+=1*m[e+6]),e+=6;else if("S"===o)u=y,f=x,"C"!==c&&"S"!==c||(u+=y-s[s.length-4],f+=x-s[s.length-3]),i||(y=x=0),s.push(u,f,r,a,y+=1*m[e+3],x+=1*m[e+4]),e+=4;else if("Q"===o)u=y+2/3*(r-y),f=x+2/3*(a-x),i||(y=x=0),y+=1*m[e+3],x+=1*m[e+4],s.push(u,f,y+2/3*(r-y),x+2/3*(a-x),y,x),e+=4;else if("T"===o)u=y-s[s.length-4],f=x-s[s.length-3],s.push(y+u,x+f,r+2/3*(y+1.5*u-r),a+2/3*(x+1.5*f-a),y=r,x=a),e+=2;else if("H"===o)Cf(y,x,y=r,x),e+=1;else if("V"===o)Cf(y,x,y,x=r+(i?x-y:0)),e+=1;else if("L"===o||"Z"===o)"Z"===o&&(r=l,a=h,s.closed=!0),("L"===o||.5<H(y-r)||.5<H(x-a))&&(Cf(y,x,r,a),"L"===o&&(e+=2)),y=r,x=a;else if("A"===o){if(p=m[e+4],d=m[e+5],u=m[e+6],f=m[e+7],n=7,1<p.length&&(p.length<3?(f=u,u=d,n--):(f=d,u=p.substr(2),n-=2),d=p.charAt(1),p=p.charAt(0)),g=arcToSegment(y,x,+m[e+1],+m[e+2],+m[e+3],+p,+d,(i?y:0)+1*u,(i?x:0)+1*f),e+=n,g)for(n=0;n<g.length;n++)s.push(g[n]);y=s[s.length-2],x=s[s.length-1]}else console.log(b);return(e=s.length)<6?(v.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),v.totalPoints=P+e,v}function flatPointsToSegment(t,e){void 0===e&&(e=1);for(var n=t[0],r=0,a=[n,r],o=2;o<t.length;o+=2)a.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return a}function pointsToSegment(t,e){H(t[0]-t[2])<1e-4&&H(t[1]-t[3])<1e-4&&(t=t.slice(2));var n,r,a,o,i,s,l,h,u,f,g,c,p,d,m=t.length-2,v=+t[0],y=+t[1],x=+t[2],w=+t[3],P=[v,y,v,y],b=x-v,M=w-y,R=Math.abs(t[m]-v)<.001&&Math.abs(t[m+1]-y)<.001;for(R&&(t.push(x,w),x=v,w=y,v=t[m-2],y=t[m-1],t.unshift(v,y),m+=4),e=e||0===e?+e:1,a=2;a<m;a+=2)n=v,r=y,v=x,y=w,x=+t[a+2],w=+t[a+3],v===x&&y===w||(o=b,i=M,b=x-v,M=w-y,h=((s=$(o*o+i*i))+(l=$(b*b+M*M)))*e*.25/$(Math.pow(b/l+o/s,2)+Math.pow(M/l+i/s,2)),g=v-((u=v-(v-n)*(s?h/s:0))+(((f=v+(x-v)*(l?h/l:0))-u)*(3*s/(s+l)+.5)/4||0)),d=y-((c=y-(y-r)*(s?h/s:0))+(((p=y+(w-y)*(l?h/l:0))-c)*(3*s/(s+l)+.5)/4||0)),v===n&&y===r||P.push(N(u+g),N(c+d),N(v),N(y),N(f+g),N(p+d)));return v!==x||y!==w||P.length<4?P.push(N(x),N(w),N(x),N(w)):P.length-=2,2===P.length?P.push(v,y,v,y,v,y):R&&(P.splice(0,6),P.length=P.length-6),P}function rawPathToString(t){h(t[0])&&(t=[t]);var e,n,r,a,o="",i=t.length;for(n=0;n<i;n++){for(a=t[n],o+="M"+N(a[0])+","+N(a[1])+" C",e=a.length,r=2;r<e;r++)o+=N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r])+" ";a.closed&&(o+="z")}return o}function R(t){var e=t.ownerDocument||t;!(k in t.style)&&"msTransform"in t.style&&(z=(k="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(v=window,E=new Y,e){w=(c=e).documentElement,P=e.body,(I=c.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),r=e.createElement("div"),a=e&&(e.body||e.firstElementChild);a&&a.appendChild&&(a.appendChild(n),n.appendChild(r),n.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),D=r.offsetParent!==n,a.removeChild(n))}return e}function X(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function Z(t,e){if(t.parentNode&&(c||R(t))){var n=X(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?e?"rect":"g":"div",o=2!==e?0:100,i=3===e?100:0,s="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=c.createElementNS?c.createElementNS(r.replace(/^https/,"http"),a):c.createElement(a);return e&&(n?(b=b||Z(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+i+")"),b.appendChild(l)):(g||((g=Z(t)).style.cssText=s),l.style.cssText=s+"width:0.1px;height:0.1px;top:"+i+"px;left:"+o+"px",g.appendChild(l))),l}throw"Need document and parent."}function aa(t,e){var n,r,a,o,i,s,l=X(t),h=t===l,u=l?G:q,f=t.parentNode;if(t===v)return t;if(u.length||u.push(Z(t,1),Z(t,2),Z(t,3)),n=l?b:g,l)h?(o=-(a=function _getCTM(t){var e,n=t.getCTM();return n||(e=t.style[k],t.style[k]="none",t.appendChild(I),n=I.getCTM(),t.removeChild(I),e?t.style[k]=e:t.style.removeProperty(k.replace(/([A-Z])/g,"-$1").toLowerCase())),n||E.clone()}(t)).e/a.a,i=-a.f/a.d,r=E):t.getBBox?(a=t.getBBox(),o=(r=(r=t.transform?t.transform.baseVal:{}).numberOfItems?1<r.numberOfItems?function _consolidate(t){for(var e=new Y,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(r):r.getItem(0).matrix:E).a*a.x+r.c*a.y,i=r.b*a.x+r.d*a.y):(r=new Y,o=i=0),e&&"g"===t.tagName.toLowerCase()&&(o=i=0),(h?l:f).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+i)+")");else{if(o=i=0,D)for(r=t.offsetParent,a=t;(a=a&&a.parentNode)&&a!==r&&a.parentNode;)4<(v.getComputedStyle(a)[k]+"").length&&(o=a.offsetLeft,i=a.offsetTop,a=0);if("absolute"!==(s=v.getComputedStyle(t)).position&&"fixed"!==s.position)for(r=t.offsetParent;f&&f!==r;)o+=f.scrollLeft||0,i+=f.scrollTop||0,f=f.parentNode;(a=n.style).top=t.offsetTop-i+"px",a.left=t.offsetLeft-o+"px",a[k]=s[k],a[z]=s[z],a.position="fixed"===s.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function ba(t,e,n,r,a,o,i){return t.a=e,t.b=n,t.c=r,t.d=a,t.e=o,t.f=i,t}var c,v,w,P,g,b,E,I,D,n,k="transform",z=k+"Origin",G=[],q=[],Y=((n=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,r=this.d,a=this.e,o=this.f,i=t*r-e*n||1e-10;return ba(this,r/i,-e/i,-n/i,t/i,(n*o-r*a)/i,-(t*o-e*a)/i)},n.multiply=function multiply(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f,s=t.a,l=t.c,h=t.b,u=t.d,f=t.e,g=t.f;return ba(this,s*e+h*r,s*n+h*a,l*e+u*r,l*n+u*a,o+f*e+g*r,i+f*n+g*a)},n.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},n.equals=function equals(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f;return e===t.a&&n===t.b&&r===t.c&&a===t.d&&o===t.e&&i===t.f},n.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,r=t.y,a=this.a,o=this.b,i=this.c,s=this.d,l=this.e,h=this.f;return e.x=n*a+r*i+l||0,e.y=n*o+r*s+h||0,e},Matrix2D);function Matrix2D(t,e,n,r,a,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===o&&(o=0),ba(this,t,e,n,r,a,o)}function getGlobalMatrix(t,e,n,r){if(!t||!t.parentNode||(c||R(t)).documentElement===t)return new Y;var a=function _forceNonZeroScale(t){for(var e,n;t&&t!==P;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),o=X(t)?G:q,i=aa(t,n),s=o[0].getBoundingClientRect(),l=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),u=i.parentNode,f=!r&&function _isFixed(t){return"fixed"===v.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),g=new Y((l.left-s.left)/100,(l.top-s.top)/100,(h.left-s.left)/100,(h.top-s.top)/100,s.left+(f?0:function _getDocScrollLeft(){return v.pageXOffset||c.scrollLeft||w.scrollLeft||P.scrollLeft||0}()),s.top+(f?0:function _getDocScrollTop(){return v.pageYOffset||c.scrollTop||w.scrollTop||P.scrollTop||0}()));if(u.removeChild(i),a)for(s=a.length;s--;)(l=a[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return e?g.inverse():g}function na(t,e,n,r){for(var a=e.length,o=2===r?0:r,i=0;i<a;i++)t[o]=parseFloat(e[i][n]),2===r&&(t[o+1]=0),o+=2;return t}function oa(t,e,n){return parseFloat(t._gsap.get(t,e,n||"px"))||0}function pa(t){var e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r}function qa(t,e,n,r,a,o,i,s,l){return e="cubic"===i.type?[e]:(!1!==i.fromCurrent&&e.unshift(oa(n,r,s),a?oa(n,a,l):0),i.relative&&pa(e),[(a?pointsToSegment:flatPointsToSegment)(e,i.curviness)]),e=o(nt(e,n,i)),rt(t,n,r,e,"x",s),a&&rt(t,n,a,e,"y",l),cacheRawPathMeasurements(e,i.resolution||(0===i.curviness?20:12))}function ra(t){return t}function ta(t,e,n){var r,a=getGlobalMatrix(t),o=0,i=0;return"svg"===(t.tagName+"").toLowerCase()?(r=t.viewBox.baseVal).width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")}):r=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(o=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,i=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(o||i?a.apply({x:o,y:i}):{x:a.e,y:a.f})}function ua(t,e,n,r){var a,o=getGlobalMatrix(t.parentNode,!0,!0),i=o.clone().multiply(getGlobalMatrix(e)),s=ta(t,n,o),l=ta(e,r,o),h=l.x,u=l.y;return i.e=i.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(a=e.getAttribute("d").match(et)||[],h+=(a=i.apply({x:+a[0],y:+a[1]})).x,u+=a.y),a&&(h-=(a=i.apply(e.getBBox())).x,u-=a.y),i.e=h-s.x,i.f=u-s.y,i}var j,f,Q,W,J,o,K="x,translateX,left,marginLeft,xPercent".split(","),tt="y,translateY,top,marginTop,yPercent".split(","),i=Math.PI/180,et=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,nt=function _align(t,e,n){var r,a,o,i=n.align,s=n.matrix,l=n.offsetX,h=n.offsetY,u=n.alignOrigin,f=t[0][0],g=t[0][1],c=oa(e,"x"),p=oa(e,"y");return t&&t.length?(i&&("self"===i||(r=W(i)[0]||e)===e?transformRawPath(t,1,0,0,1,c-f,p-g):(u&&!1!==u[2]?j.set(e,{transformOrigin:100*u[0]+"% "+100*u[1]+"%"}):u=[oa(e,"xPercent")/-100,oa(e,"yPercent")/-100],o=(a=ua(e,r,u,"auto")).apply({x:f,y:g}),transformRawPath(t,a.a,a.b,a.c,a.d,c+a.e-(o.x-a.e),p+a.f-(o.y-a.f)))),s?transformRawPath(t,s.a,s.b,s.c,s.d,s.e,s.f):(l||h)&&transformRawPath(t,1,0,0,1,l||0,h||0),t):getRawPath("M0,0L0,0")},rt=function _addDimensionalPropTween(t,e,n,r,a,o){var i=e._gsap,s=i.harness,l=s&&s.aliases&&s.aliases[n],h=l&&l.indexOf(",")<0?l:n,u=t._pt=new f(t._pt,e,h,0,0,ra,0,i.set(e,h,t));u.u=Q(i.get(e,h,o))||0,u.path=r,u.pp=a,t._props.push(h)},a={version:"3.12.5",name:"motionPath",register:function register(t,e,n){Q=(j=t).utils.getUnit,W=j.utils.toArray,J=j.core.getStyleSaver,o=j.core.reverting||function(){},f=n},init:function init(t,e,n){if(!j)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var r,a,o=[],i=e.path,s=e.autoRotate,l=e.unitX,h=e.unitY,u=e.x,f=e.y,g=i[0],c=function _sliceModifier(e,n){return function(t){return e||1!==n?sliceRawPath(t,e,n):t}}(e.start,"end"in e?e.end:1);if(this.rawPaths=o,this.target=t,this.tween=n,this.styles=J&&J(t,"transform"),(this.rotate=s||0===s)&&(this.rOffset=parseFloat(s)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=Q(t._gsap.get(t,this.rProp))||0),!Array.isArray(i)||"closed"in i||"number"==typeof g)cacheRawPathMeasurements(r=c(nt(getRawPath(e.path),t,e)),e.resolution),o.push(r),rt(this,t,e.x||"x",r,"x",e.unitX||"px"),rt(this,t,e.y||"y",r,"y",e.unitY||"px");else{for(a in g)!u&&~K.indexOf(a)?u=a:!f&&~tt.indexOf(a)&&(f=a);for(a in u&&f?o.push(qa(this,na(na([],i,u,0),i,f,1),t,u,f,c,e,l||Q(i[0][u]),h||Q(i[0][f]))):u=f=0,g)a!==u&&a!==f&&o.push(qa(this,na([],i,a,2),t,a,0,c,e,Q(i[0][a])))}},render:function render(t,e){var n=e.rawPaths,r=n.length,a=e._pt;if(e.tween._time||!o()){for(1<t?t=1:t<0&&(t=0);r--;)getPositionOnPath(n[r],t,!r&&e.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,t),a=a._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?i:1)+e.rOffset+e.ru,e,t)}else e.styles.revert()},getLength:function getLength(t){return cacheRawPathMeasurements(getRawPath(t)).totalLength},sliceRawPath:sliceRawPath,getRawPath:getRawPath,pointsToSegment:pointsToSegment,stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,transformRawPath:transformRawPath,getGlobalMatrix:getGlobalMatrix,getPositionOnPath:getPositionOnPath,cacheRawPathMeasurements:cacheRawPathMeasurements,convertToPath:function convertToPath$1(t,e){return W(t).map(function(t){return convertToPath(t,!1!==e)})},convertCoordinates:function convertCoordinates(t,e,n){var r=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return n?r.apply(n):r},getAlignMatrix:ua,getRelativePosition:function getRelativePosition(t,e,n,r){var a=ua(t,e,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function arrayToRawPath(t,e){var n=na(na([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&pa(n),["cubic"===e.type?n:pointsToSegment(n,e.curviness)]}};!function _getGSAP(){return j||"undefined"!=typeof window&&(j=window.gsap)&&j.registerPlugin&&j}()||j.registerPlugin(a),t.MotionPathPlugin=a,t.default=a;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); |
/*! | ||
* Observer 3.12.4 | ||
* Observer 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(a){"use strict";function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(){return we||"undefined"!=typeof window&&(we=window.gsap)&&we.registerPlugin&&we}var we,Me,Pe,Ae,De,Ee,Oe,Ye,ze,t,Xe,Te,ke,o=1,Ce=[];a._scrollers=[],a._proxies=[];function x(e,t){return~a._proxies.indexOf(e)&&a._proxies[a._proxies.indexOf(e)+1][t]}function y(e){return!!~t.indexOf(e)}function z(e,t,n,r,o){return e.addEventListener(t,n,{passive:!r,capture:!!o})}function A(e,t,n,r){return e.removeEventListener(t,n,!!r)}function D(){return Xe&&Xe.isPressed||a._scrollers.cache++}function E(n,r){function qa(e){if(e||0===e){o&&(Pe.history.scrollRestoration="manual");var t=Xe&&Xe.isPressed;e=qa.v=Math.round(e)||(Xe&&Xe.iOS?1:0),n(e),qa.cacheID=a._scrollers.cache,t&&i("ss",e)}else(r||a._scrollers.cache!==qa.cacheID||i("ref"))&&(qa.cacheID=a._scrollers.cache,qa.v=n());return qa.v+qa.offset}return qa.offset=0,n&&qa}function H(e,t){return(t&&t._ctx&&t._ctx.selector||we.utils.toArray)(e)[0]||("string"==typeof e&&!1!==we.config().nullTargetWarn?console.warn("Element not found:",e):null)}function I(t,e){var n=e.s,r=e.sc;y(t)&&(t=Ae.scrollingElement||De);var o=a._scrollers.indexOf(t),i=r===He.sc?1:2;~o||(o=a._scrollers.push(t)-1),a._scrollers[o+i]||z(t,"scroll",D);var c=a._scrollers[o+i],s=c||(a._scrollers[o+i]=E(x(t,n),!0)||(y(t)?r:E(function(e){return arguments.length?t[n]=e:t[n]})));return s.target=t,c||(s.smooth="smooth"===we.getProperty(t,"scrollBehavior")),s}function J(e,t,o){function Pa(e,t){var n=qe();t||r<n-s?(c=i,i=e,a=s,s=n):o?i+=e:i=c+(e-c)/(n-a)*(s-a)}var i=e,c=e,s=qe(),a=s,r=t||50,l=Math.max(500,3*r);return{update:Pa,reset:function reset(){c=i=o?0:i,a=s=0},getVelocity:function getVelocity(e){var t=a,n=c,r=qe();return!e&&0!==e||e===i||Pa(e),s===a||l<r-a?0:(i+(o?n:-n))/((o?r:s)-t)*1e3}}}function K(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function L(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n}function M(){(ze=we.core.globals().ScrollTrigger)&&ze.core&&function _integrate(){var e=ze.core,n=e.bridge||{},t=e._scrollers,r=e._proxies;t.push.apply(t,a._scrollers),r.push.apply(r,a._proxies),a._scrollers=t,a._proxies=r,i=function _bridge(e,t){return n[e](t)}}()}function N(e){return we=e||r(),!Me&&we&&"undefined"!=typeof document&&document.body&&(Pe=window,De=(Ae=document).documentElement,Ee=Ae.body,t=[Pe,Ae,De,Ee],we.utils.clamp,ke=we.core.context||function(){},Ye="onpointerenter"in Ee?"pointer":"mouse",Oe=s.isTouch=Pe.matchMedia&&Pe.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Pe||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,Te=s.eventTypes=("ontouchstart"in De?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in De?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return o=0},500),M(),Me=1),Me}var qe=Date.now,i=function _bridge(e,t){return t},n="scrollLeft",c="scrollTop",Se={s:n,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:E(function(e){return arguments.length?Pe.scrollTo(e,He.sc()):Pe.pageXOffset||Ae[n]||De[n]||Ee[n]||0})},He={s:c,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Se,sc:E(function(e){return arguments.length?Pe.scrollTo(Se.sc(),e):Pe.pageYOffset||Ae[c]||De[c]||Ee[c]||0})};Se.op=He,a._scrollers.cache=0;var s=(Observer.prototype.init=function init(e){Me||N(we)||console.warn("Please gsap.registerPlugin(Observer)"),ze||M();var o=e.tolerance,c=e.dragMinimum,t=e.type,i=e.target,n=e.lineHeight,r=e.debounce,s=e.preventDefault,a=e.onStop,l=e.onStopDelay,u=e.ignore,f=e.wheelSpeed,d=e.event,g=e.onDragStart,p=e.onDragEnd,h=e.onDrag,v=e.onPress,x=e.onRelease,_=e.onRight,m=e.onLeft,b=e.onUp,w=e.onDown,P=e.onChangeX,E=e.onChangeY,O=e.onChange,Y=e.onToggleX,X=e.onToggleY,T=e.onHover,k=e.onHoverEnd,C=e.onMove,q=e.ignoreCheck,S=e.isNormalizer,B=e.onGestureStart,G=e.onGestureEnd,V=e.onWheel,F=e.onEnable,R=e.onDisable,j=e.onClick,W=e.scrollSpeed,U=e.capture,Q=e.allowClicks,Z=e.lockAxis,$=e.onLockAxis;function oc(){return _e=qe()}function pc(e,t){return(se.event=e)&&u&&~u.indexOf(e.target)||t&&pe&&"touch"!==e.pointerType||q&&q(e,t)}function rc(){var e=se.deltaX=L(ye),t=se.deltaY=L(xe),n=Math.abs(e)>=o,r=Math.abs(t)>=o;O&&(n||r)&&O(se,e,t,ye,xe),n&&(_&&0<se.deltaX&&_(se),m&&se.deltaX<0&&m(se),P&&P(se),Y&&se.deltaX<0!=ae<0&&Y(se),ae=se.deltaX,ye[0]=ye[1]=ye[2]=0),r&&(w&&0<se.deltaY&&w(se),b&&se.deltaY<0&&b(se),E&&E(se),X&&se.deltaY<0!=le<0&&X(se),le=se.deltaY,xe[0]=xe[1]=xe[2]=0),(re||ne)&&(C&&C(se),ne&&(h(se),ne=!1),re=!1),ie&&!(ie=!1)&&$&&$(se),oe&&(V(se),oe=!1),ee=0}function sc(e,t,n){ye[n]+=e,xe[n]+=t,se._vx.update(e),se._vy.update(t),r?ee=ee||requestAnimationFrame(rc):rc()}function tc(e,t){Z&&!ce&&(se.axis=ce=Math.abs(e)>Math.abs(t)?"x":"y",ie=!0),"y"!==ce&&(ye[2]+=e,se._vx.update(e,!0)),"x"!==ce&&(xe[2]+=t,se._vy.update(t,!0)),r?ee=ee||requestAnimationFrame(rc):rc()}function uc(e){if(!pc(e,1)){var t=(e=K(e,s)).clientX,n=e.clientY,r=t-se.x,o=n-se.y,i=se.isDragging;se.x=t,se.y=n,(i||Math.abs(se.startX-t)>=c||Math.abs(se.startY-n)>=c)&&(h&&(ne=!0),i||(se.isDragging=!0),tc(r,o),i||g&&g(se))}}function xc(e){return e.touches&&1<e.touches.length&&(se.isGesturing=!0)&&B(e,se.isDragging)}function yc(){return(se.isGesturing=!1)||G(se)}function zc(e){if(!pc(e)){var t=ue(),n=fe();sc((t-de)*W,(n-ge)*W,1),de=t,ge=n,a&&te.restart(!0)}}function Ac(e){if(!pc(e)){e=K(e,s),V&&(oe=!0);var t=(1===e.deltaMode?n:2===e.deltaMode?Pe.innerHeight:1)*f;sc(e.deltaX*t,e.deltaY*t,0),a&&!S&&te.restart(!0)}}function Bc(e){if(!pc(e)){var t=e.clientX,n=e.clientY,r=t-se.x,o=n-se.y;se.x=t,se.y=n,re=!0,a&&te.restart(!0),(r||o)&&tc(r,o)}}function Cc(e){se.event=e,T(se)}function Dc(e){se.event=e,k(se)}function Ec(e){return pc(e)||K(e,s)&&j(se)}this.target=i=H(i)||De,this.vars=e,u=u&&we.utils.toArray(u),o=o||1e-9,c=c||0,f=f||1,W=W||1,t=t||"wheel,touch,pointer",r=!1!==r,n=n||parseFloat(Pe.getComputedStyle(Ee).lineHeight)||22;var ee,te,ne,re,oe,ie,ce,se=this,ae=0,le=0,ue=I(i,Se),fe=I(i,He),de=ue(),ge=fe(),pe=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===Te[0],he=y(i),ve=i.ownerDocument||Ae,ye=[0,0,0],xe=[0,0,0],_e=0,me=se.onPress=function(e){pc(e,1)||e&&e.button||(se.axis=ce=null,te.pause(),se.isPressed=!0,e=K(e),ae=le=0,se.startX=se.x=e.clientX,se.startY=se.y=e.clientY,se._vx.reset(),se._vy.reset(),z(S?i:ve,Te[1],uc,s,!0),se.deltaX=se.deltaY=0,v&&v(se))},be=se.onRelease=function(t){if(!pc(t,1)){A(S?i:ve,Te[1],uc,!0);var e=!isNaN(se.y-se.startY),n=se.isDragging,r=n&&(3<Math.abs(se.x-se.startX)||3<Math.abs(se.y-se.startY)),o=K(t);!r&&e&&(se._vx.reset(),se._vy.reset(),s&&Q&&we.delayedCall(.08,function(){if(300<qe()-_e&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(ve.createEvent){var e=ve.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Pe,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),se.isDragging=se.isGesturing=se.isPressed=!1,a&&n&&!S&&te.restart(!0),p&&n&&p(se),x&&x(se,r)}};te=se._dc=we.delayedCall(l||.25,function onStopFunc(){se._vx.reset(),se._vy.reset(),te.pause(),a&&a(se)}).pause(),se.deltaX=se.deltaY=0,se._vx=J(0,50,!0),se._vy=J(0,50,!0),se.scrollX=ue,se.scrollY=fe,se.isDragging=se.isGesturing=se.isPressed=!1,ke(this),se.enable=function(e){return se.isEnabled||(z(he?ve:i,"scroll",D),0<=t.indexOf("scroll")&&z(he?ve:i,"scroll",zc,s,U),0<=t.indexOf("wheel")&&z(i,"wheel",Ac,s,U),(0<=t.indexOf("touch")&&Oe||0<=t.indexOf("pointer"))&&(z(i,Te[0],me,s,U),z(ve,Te[2],be),z(ve,Te[3],be),Q&&z(i,"click",oc,!1,!0),j&&z(i,"click",Ec),B&&z(ve,"gesturestart",xc),G&&z(ve,"gestureend",yc),T&&z(i,Ye+"enter",Cc),k&&z(i,Ye+"leave",Dc),C&&z(i,Ye+"move",Bc)),se.isEnabled=!0,e&&e.type&&me(e),F&&F(se)),se},se.disable=function(){se.isEnabled&&(Ce.filter(function(e){return e!==se&&y(e.target)}).length||A(he?ve:i,"scroll",D),se.isPressed&&(se._vx.reset(),se._vy.reset(),A(S?i:ve,Te[1],uc,!0)),A(he?ve:i,"scroll",zc,U),A(i,"wheel",Ac,U),A(i,Te[0],me,U),A(ve,Te[2],be),A(ve,Te[3],be),A(i,"click",oc,!0),A(i,"click",Ec),A(ve,"gesturestart",xc),A(ve,"gestureend",yc),A(i,Ye+"enter",Cc),A(i,Ye+"leave",Dc),A(i,Ye+"move",Bc),se.isEnabled=se.isPressed=se.isDragging=!1,R&&R(se))},se.kill=se.revert=function(){se.disable();var e=Ce.indexOf(se);0<=e&&Ce.splice(e,1),Xe===se&&(Xe=0)},Ce.push(se),S&&y(i)&&(Xe=se),se.enable(d)},function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}s.version="3.12.4",s.create=function(e){return new s(e)},s.register=N,s.getAll=function(){return Ce.slice()},s.getById=function(t){return Ce.filter(function(e){return e.vars.id===t})[0]},r()&&we.registerPlugin(s),a.Observer=s,a._getProxyProp=x,a._getScrollFunc=I,a._getTarget=H,a._getVelocityProp=J,a._horizontal=Se,a._isViewport=y,a._vertical=He,a.default=s;if (typeof(window)==="undefined"||window!==a){Object.defineProperty(a,"__esModule",{value:!0})} else {delete a.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(a){"use strict";function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(){return Me||"undefined"!=typeof window&&(Me=window.gsap)&&Me.registerPlugin&&Me}var Me,Pe,Ae,De,Ee,Oe,Ye,ze,Xe,t,qe,Te,ke,o=1,Ce=[];a._scrollers=[],a._proxies=[];function x(e,t){return~a._proxies.indexOf(e)&&a._proxies[a._proxies.indexOf(e)+1][t]}function y(e){return!!~t.indexOf(e)}function z(e,t,n,r,o){return e.addEventListener(t,n,{passive:!1!==r,capture:!!o})}function A(e,t,n,r){return e.removeEventListener(t,n,!!r)}function D(){return qe&&qe.isPressed||a._scrollers.cache++}function E(n,r){function qa(e){if(e||0===e){o&&(Ae.history.scrollRestoration="manual");var t=qe&&qe.isPressed;e=qa.v=Math.round(e)||(qe&&qe.iOS?1:0),n(e),qa.cacheID=a._scrollers.cache,t&&i("ss",e)}else(r||a._scrollers.cache!==qa.cacheID||i("ref"))&&(qa.cacheID=a._scrollers.cache,qa.v=n());return qa.v+qa.offset}return qa.offset=0,n&&qa}function H(e,t){return(t&&t._ctx&&t._ctx.selector||Me.utils.toArray)(e)[0]||("string"==typeof e&&!1!==Me.config().nullTargetWarn?console.warn("Element not found:",e):null)}function I(t,e){var n=e.s,r=e.sc;y(t)&&(t=De.scrollingElement||Ee);var o=a._scrollers.indexOf(t),i=r===Le.sc?1:2;~o||(o=a._scrollers.push(t)-1),a._scrollers[o+i]||z(t,"scroll",D);var s=a._scrollers[o+i],c=s||(a._scrollers[o+i]=E(x(t,n),!0)||(y(t)?r:E(function(e){return arguments.length?t[n]=e:t[n]})));return c.target=t,s||(c.smooth="smooth"===Me.getProperty(t,"scrollBehavior")),c}function J(e,t,o){function Pa(e,t){var n=Se();t||r<n-c?(s=i,i=e,a=c,c=n):o?i+=e:i=s+(e-s)/(n-a)*(c-a)}var i=e,s=e,c=Se(),a=c,r=t||50,l=Math.max(500,3*r);return{update:Pa,reset:function reset(){s=i=o?0:i,a=c=0},getVelocity:function getVelocity(e){var t=a,n=s,r=Se();return!e&&0!==e||e===i||Pa(e),c===a||l<r-a?0:(i+(o?n:-n))/((o?r:c)-t)*1e3}}}function K(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function L(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n}function M(){(Xe=Me.core.globals().ScrollTrigger)&&Xe.core&&function _integrate(){var e=Xe.core,n=e.bridge||{},t=e._scrollers,r=e._proxies;t.push.apply(t,a._scrollers),r.push.apply(r,a._proxies),a._scrollers=t,a._proxies=r,i=function _bridge(e,t){return n[e](t)}}()}function N(e){return Me=e||r(),!Pe&&Me&&"undefined"!=typeof document&&document.body&&(Ae=window,Ee=(De=document).documentElement,Oe=De.body,t=[Ae,De,Ee,Oe],Me.utils.clamp,ke=Me.core.context||function(){},ze="onpointerenter"in Oe?"pointer":"mouse",Ye=c.isTouch=Ae.matchMedia&&Ae.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ae||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,Te=c.eventTypes=("ontouchstart"in Ee?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ee?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return o=0},500),M(),Pe=1),Pe}var Se=Date.now,i=function _bridge(e,t){return t},n="scrollLeft",s="scrollTop",He={s:n,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:E(function(e){return arguments.length?Ae.scrollTo(e,Le.sc()):Ae.pageXOffset||De[n]||Ee[n]||Oe[n]||0})},Le={s:s,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:He,sc:E(function(e){return arguments.length?Ae.scrollTo(He.sc(),e):Ae.pageYOffset||De[s]||Ee[s]||Oe[s]||0})};He.op=Le,a._scrollers.cache=0;var c=(Observer.prototype.init=function init(e){Pe||N(Me)||console.warn("Please gsap.registerPlugin(Observer)"),Xe||M();var o=e.tolerance,s=e.dragMinimum,t=e.type,i=e.target,n=e.lineHeight,r=e.debounce,c=e.preventDefault,a=e.onStop,l=e.onStopDelay,u=e.ignore,f=e.wheelSpeed,d=e.event,g=e.onDragStart,p=e.onDragEnd,v=e.onDrag,h=e.onPress,_=e.onRelease,x=e.onRight,m=e.onLeft,b=e.onUp,w=e.onDown,P=e.onChangeX,E=e.onChangeY,O=e.onChange,Y=e.onToggleX,X=e.onToggleY,q=e.onHover,T=e.onHoverEnd,k=e.onMove,C=e.ignoreCheck,S=e.isNormalizer,F=e.onGestureStart,B=e.onGestureEnd,G=e.onWheel,V=e.onEnable,R=e.onDisable,j=e.onClick,W=e.scrollSpeed,U=e.capture,Q=e.allowClicks,Z=e.lockAxis,$=e.onLockAxis;function pc(){return me=Se()}function qc(e,t){return(ce.event=e)&&u&&~u.indexOf(e.target)||t&&ve&&"touch"!==e.pointerType||C&&C(e,t)}function sc(){var e=ce.deltaX=L(_e),t=ce.deltaY=L(xe),n=Math.abs(e)>=o,r=Math.abs(t)>=o;O&&(n||r)&&O(ce,e,t,_e,xe),n&&(x&&0<ce.deltaX&&x(ce),m&&ce.deltaX<0&&m(ce),P&&P(ce),Y&&ce.deltaX<0!=ae<0&&Y(ce),ae=ce.deltaX,_e[0]=_e[1]=_e[2]=0),r&&(w&&0<ce.deltaY&&w(ce),b&&ce.deltaY<0&&b(ce),E&&E(ce),X&&ce.deltaY<0!=le<0&&X(ce),le=ce.deltaY,xe[0]=xe[1]=xe[2]=0),(re||ne)&&(k&&k(ce),ne&&(v(ce),ne=!1),re=!1),ie&&!(ie=!1)&&$&&$(ce),oe&&(G(ce),oe=!1),ee=0}function tc(e,t,n){_e[n]+=e,xe[n]+=t,ce._vx.update(e),ce._vy.update(t),r?ee=ee||requestAnimationFrame(sc):sc()}function uc(e,t){Z&&!se&&(ce.axis=se=Math.abs(e)>Math.abs(t)?"x":"y",ie=!0),"y"!==se&&(_e[2]+=e,ce._vx.update(e,!0)),"x"!==se&&(xe[2]+=t,ce._vy.update(t,!0)),r?ee=ee||requestAnimationFrame(sc):sc()}function vc(e){if(!qc(e,1)){var t=(e=K(e,c)).clientX,n=e.clientY,r=t-ce.x,o=n-ce.y,i=ce.isDragging;ce.x=t,ce.y=n,(i||Math.abs(ce.startX-t)>=s||Math.abs(ce.startY-n)>=s)&&(v&&(ne=!0),i||(ce.isDragging=!0),uc(r,o),i||g&&g(ce))}}function yc(e){return e.touches&&1<e.touches.length&&(ce.isGesturing=!0)&&F(e,ce.isDragging)}function zc(){return(ce.isGesturing=!1)||B(ce)}function Ac(e){if(!qc(e)){var t=fe(),n=de();tc((t-ge)*W,(n-pe)*W,1),ge=t,pe=n,a&&te.restart(!0)}}function Bc(e){if(!qc(e)){e=K(e,c),G&&(oe=!0);var t=(1===e.deltaMode?n:2===e.deltaMode?Ae.innerHeight:1)*f;tc(e.deltaX*t,e.deltaY*t,0),a&&!S&&te.restart(!0)}}function Cc(e){if(!qc(e)){var t=e.clientX,n=e.clientY,r=t-ce.x,o=n-ce.y;ce.x=t,ce.y=n,re=!0,a&&te.restart(!0),(r||o)&&uc(r,o)}}function Dc(e){ce.event=e,q(ce)}function Ec(e){ce.event=e,T(ce)}function Fc(e){return qc(e)||K(e,c)&&j(ce)}this.target=i=H(i)||Ee,this.vars=e,u=u&&Me.utils.toArray(u),o=o||1e-9,s=s||0,f=f||1,W=W||1,t=t||"wheel,touch,pointer",r=!1!==r,n=n||parseFloat(Ae.getComputedStyle(Oe).lineHeight)||22;var ee,te,ne,re,oe,ie,se,ce=this,ae=0,le=0,ue=e.passive||!c,fe=I(i,He),de=I(i,Le),ge=fe(),pe=de(),ve=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===Te[0],he=y(i),ye=i.ownerDocument||De,_e=[0,0,0],xe=[0,0,0],me=0,be=ce.onPress=function(e){qc(e,1)||e&&e.button||(ce.axis=se=null,te.pause(),ce.isPressed=!0,e=K(e),ae=le=0,ce.startX=ce.x=e.clientX,ce.startY=ce.y=e.clientY,ce._vx.reset(),ce._vy.reset(),z(S?i:ye,Te[1],vc,ue,!0),ce.deltaX=ce.deltaY=0,h&&h(ce))},we=ce.onRelease=function(t){if(!qc(t,1)){A(S?i:ye,Te[1],vc,!0);var e=!isNaN(ce.y-ce.startY),n=ce.isDragging,r=n&&(3<Math.abs(ce.x-ce.startX)||3<Math.abs(ce.y-ce.startY)),o=K(t);!r&&e&&(ce._vx.reset(),ce._vy.reset(),c&&Q&&Me.delayedCall(.08,function(){if(300<Se()-me&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(ye.createEvent){var e=ye.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Ae,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),ce.isDragging=ce.isGesturing=ce.isPressed=!1,a&&n&&!S&&te.restart(!0),p&&n&&p(ce),_&&_(ce,r)}};te=ce._dc=Me.delayedCall(l||.25,function onStopFunc(){ce._vx.reset(),ce._vy.reset(),te.pause(),a&&a(ce)}).pause(),ce.deltaX=ce.deltaY=0,ce._vx=J(0,50,!0),ce._vy=J(0,50,!0),ce.scrollX=fe,ce.scrollY=de,ce.isDragging=ce.isGesturing=ce.isPressed=!1,ke(this),ce.enable=function(e){return ce.isEnabled||(z(he?ye:i,"scroll",D),0<=t.indexOf("scroll")&&z(he?ye:i,"scroll",Ac,ue,U),0<=t.indexOf("wheel")&&z(i,"wheel",Bc,ue,U),(0<=t.indexOf("touch")&&Ye||0<=t.indexOf("pointer"))&&(z(i,Te[0],be,ue,U),z(ye,Te[2],we),z(ye,Te[3],we),Q&&z(i,"click",pc,!0,!0),j&&z(i,"click",Fc),F&&z(ye,"gesturestart",yc),B&&z(ye,"gestureend",zc),q&&z(i,ze+"enter",Dc),T&&z(i,ze+"leave",Ec),k&&z(i,ze+"move",Cc)),ce.isEnabled=!0,e&&e.type&&be(e),V&&V(ce)),ce},ce.disable=function(){ce.isEnabled&&(Ce.filter(function(e){return e!==ce&&y(e.target)}).length||A(he?ye:i,"scroll",D),ce.isPressed&&(ce._vx.reset(),ce._vy.reset(),A(S?i:ye,Te[1],vc,!0)),A(he?ye:i,"scroll",Ac,U),A(i,"wheel",Bc,U),A(i,Te[0],be,U),A(ye,Te[2],we),A(ye,Te[3],we),A(i,"click",pc,!0),A(i,"click",Fc),A(ye,"gesturestart",yc),A(ye,"gestureend",zc),A(i,ze+"enter",Dc),A(i,ze+"leave",Ec),A(i,ze+"move",Cc),ce.isEnabled=ce.isPressed=ce.isDragging=!1,R&&R(ce))},ce.kill=ce.revert=function(){ce.disable();var e=Ce.indexOf(ce);0<=e&&Ce.splice(e,1),qe===ce&&(qe=0)},Ce.push(ce),S&&y(i)&&(qe=ce),ce.enable(d)},function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}c.version="3.12.5",c.create=function(e){return new c(e)},c.register=N,c.getAll=function(){return Ce.slice()},c.getById=function(t){return Ce.filter(function(e){return e.vars.id===t})[0]},r()&&Me.registerPlugin(c),a.Observer=c,a._getProxyProp=x,a._getScrollFunc=I,a._getTarget=H,a._getVelocityProp=J,a._horizontal=He,a._isViewport=y,a._vertical=Le,a.default=c;if (typeof(window)==="undefined"||window!==a){Object.defineProperty(a,"__esModule",{value:!0})} else {delete a.default}}); |
/*! | ||
* Physics2DPlugin 3.12.4 | ||
* Physics2DPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n=n||self).window=n.window||{})}(this,function(e){"use strict";function j(){return r||"undefined"!=typeof window&&(r=window.gsap)&&r.registerPlugin&&r}function k(n){return Math.round(1e4*n)/1e4}function n(){return String.fromCharCode.apply(null,arguments)}function s(n){r=n||j(),f||(a=r.utils.getUnit,u=r.core.getStyleSaver,y=r.core.reverting||function(){},f=1)}function t(n,e,t,i,o){var s=n._gsap,r=s.get(n,e);this.p=e,this.set=s.set(n,e),this.s=this.val=parseFloat(r),this.u=a(r)||0,this.vel=t||0,this.v=this.vel/o,i||0===i?(this.acc=i,this.a=this.acc/(o*o)):this.acc=this.a=0}var r,f,a,u,y,v=Math.PI/180,c="Physics2DPlugin",l=n(103,114,101,101,110,115,111,99,107,46,99,111,109),p=n(103,115,97,112,46,99,111,109),d=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,i=(function(e){var t="undefined"!=typeof window,i=0===(t?window.location.href:"").indexOf(n(102,105,108,101,58,47,47))||-1!==e.indexOf(n(108,111,99,97,108,104,111,115,116))||d.test(e)||(t?window.location.hostname:"").split(".").pop()===n(108,111,99,97,108),o=[l,p,n(99,111,100,101,112,101,110,46,105,111),n(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),n(99,111,100,101,112,101,110,46,100,101,118),n(99,111,100,101,112,101,110,46,97,112,112),n(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),n(112,101,110,115,46,99,108,111,117,100),n(99,115,115,45,116,114,105,99,107,115,46,99,111,109),n(99,100,112,110,46,105,111),n(112,101,110,115,46,105,111),n(103,97,110,110,111,110,46,116,118),n(99,111,100,101,99,97,110,121,111,110,46,110,101,116),n(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),n(99,101,114,101,98,114,97,120,46,99,111,46,117,107),n(116,121,109,112,97,110,117,115,46,110,101,116),n(116,119,101,101,110,109,97,120,46,99,111,109),n(112,108,110,107,114,46,99,111),n(104,111,116,106,97,114,46,99,111,109),n(119,101,98,112,97,99,107,98,105,110,46,99,111,109),n(97,114,99,104,105,118,101,46,111,114,103),n(99,111,100,101,115,97,110,100,98,111,120,46,105,111),n(99,115,98,46,97,112,112),n(115,116,97,99,107,98,108,105,116,122,46,99,111,109),n(115,116,97,99,107,98,108,105,116,122,46,105,111),n(99,111,100,105,101,114,46,105,111),n(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),n(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),n(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),n(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),n(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),n(106,115,102,105,100,100,108,101,46,110,101,116)],s=o.length;for(setTimeout(function checkWarn(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof r?r:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(n(37,99,87,97,114,110,105,110,103),n(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(n(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+c+n(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(n(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),n(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--s;)if(-1!==e.indexOf(o[s]))return;i||setTimeout(function(){t&&(window.location.href=n(104,116,116,112,115,58,47,47)+l+n(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+c+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),{version:"3.12.4",name:"physics2D",register:s,init:function init(n,e,i){f||s();var o=this,r=+e.angle||0,a=+e.velocity||0,c=+e.acceleration||0,l=e.xProp||"x",p=e.yProp||"y",d=e.accelerationAngle||0===e.accelerationAngle?+e.accelerationAngle:r;o.styles=u&&u(n,e.xProp&&"x"!==e.xProp?e.xProp+","+e.yProp:"transform"),o.target=n,o.tween=i,o.step=0,o.sps=30,e.gravity&&(c=+e.gravity,d=90),r*=v,d*=v,o.fr=1-(+e.friction||0),o._props.push(l,p),o.xp=new t(n,l,Math.cos(r)*a,Math.cos(d)*c,o.sps),o.yp=new t(n,p,Math.sin(r)*a,Math.sin(d)*c,o.sps),o.skipX=o.skipY=0},render:function render(n,e){var t,i,o,s,r,a,c=e.xp,l=e.yp,p=e.tween,d=e.target,f=e.step,u=e.sps,v=e.fr,h=e.skipX,g=e.skipY,w=p._from?p._dur-p._time:p._time;if(p._time||!y()){if(1===v)o=w*w*.5,t=c.s+c.vel*w+c.acc*o,i=l.s+l.vel*w+l.acc*o;else{for(s=a=(0|(w*=u))-f,a<0&&(c.v=c.vel/u,l.v=l.vel/u,c.val=c.s,l.val=l.s,s=a=(e.step=0)|w),r=w%1*v;a--;)c.v+=c.a,l.v+=l.a,c.v*=v,l.v*=v,c.val+=c.v,l.val+=l.v;t=c.val+c.v*r,i=l.val+l.v*r,e.step+=s}h||c.set(d,c.p,k(t)+c.u),g||l.set(d,l.p,k(i)+l.u)}else e.styles.revert()},kill:function kill(n){this.xp.p===n&&(this.skipX=1),this.yp.p===n&&(this.skipY=1)}});j()&&r.registerPlugin(i),e.Physics2DPlugin=i,e.default=i;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n=n||self).window=n.window||{})}(this,function(e){"use strict";function j(){return r||"undefined"!=typeof window&&(r=window.gsap)&&r.registerPlugin&&r}function k(n){return Math.round(1e4*n)/1e4}function n(){return String.fromCharCode.apply(null,arguments)}function s(n){r=n||j(),f||(a=r.utils.getUnit,u=r.core.getStyleSaver,y=r.core.reverting||function(){},f=1)}function t(n,e,t,i,o){var s=n._gsap,r=s.get(n,e);this.p=e,this.set=s.set(n,e),this.s=this.val=parseFloat(r),this.u=a(r)||0,this.vel=t||0,this.v=this.vel/o,i||0===i?(this.acc=i,this.a=this.acc/(o*o)):this.acc=this.a=0}var r,f,a,u,y,v=Math.PI/180,c="Physics2DPlugin",l=n(103,114,101,101,110,115,111,99,107,46,99,111,109),p=n(103,115,97,112,46,99,111,109),d=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,i=(function(e){var t="undefined"!=typeof window,i=0===(t?window.location.href:"").indexOf(n(102,105,108,101,58,47,47))||-1!==e.indexOf(n(108,111,99,97,108,104,111,115,116))||d.test(e)||(t?window.location.hostname:"").split(".").pop()===n(108,111,99,97,108),o=[l,p,n(99,111,100,101,112,101,110,46,105,111),n(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),n(99,111,100,101,112,101,110,46,100,101,118),n(99,111,100,101,112,101,110,46,97,112,112),n(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),n(112,101,110,115,46,99,108,111,117,100),n(99,115,115,45,116,114,105,99,107,115,46,99,111,109),n(99,100,112,110,46,105,111),n(112,101,110,115,46,105,111),n(103,97,110,110,111,110,46,116,118),n(99,111,100,101,99,97,110,121,111,110,46,110,101,116),n(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),n(99,101,114,101,98,114,97,120,46,99,111,46,117,107),n(116,121,109,112,97,110,117,115,46,110,101,116),n(116,119,101,101,110,109,97,120,46,99,111,109),n(112,108,110,107,114,46,99,111),n(104,111,116,106,97,114,46,99,111,109),n(119,101,98,112,97,99,107,98,105,110,46,99,111,109),n(97,114,99,104,105,118,101,46,111,114,103),n(99,111,100,101,115,97,110,100,98,111,120,46,105,111),n(99,115,98,46,97,112,112),n(115,116,97,99,107,98,108,105,116,122,46,99,111,109),n(115,116,97,99,107,98,108,105,116,122,46,105,111),n(99,111,100,105,101,114,46,105,111),n(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),n(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),n(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),n(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),n(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),n(106,115,102,105,100,100,108,101,46,110,101,116)],s=o.length;for(setTimeout(function checkWarn(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof r?r:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(n(37,99,87,97,114,110,105,110,103),n(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(n(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+c+n(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(n(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),n(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--s;)if(-1!==e.indexOf(o[s]))return;i||setTimeout(function(){t&&(window.location.href=n(104,116,116,112,115,58,47,47)+l+n(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+c+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),{version:"3.12.5",name:"physics2D",register:s,init:function init(n,e,i){f||s();var o=this,r=+e.angle||0,a=+e.velocity||0,c=+e.acceleration||0,l=e.xProp||"x",p=e.yProp||"y",d=e.accelerationAngle||0===e.accelerationAngle?+e.accelerationAngle:r;o.styles=u&&u(n,e.xProp&&"x"!==e.xProp?e.xProp+","+e.yProp:"transform"),o.target=n,o.tween=i,o.step=0,o.sps=30,e.gravity&&(c=+e.gravity,d=90),r*=v,d*=v,o.fr=1-(+e.friction||0),o._props.push(l,p),o.xp=new t(n,l,Math.cos(r)*a,Math.cos(d)*c,o.sps),o.yp=new t(n,p,Math.sin(r)*a,Math.sin(d)*c,o.sps),o.skipX=o.skipY=0},render:function render(n,e){var t,i,o,s,r,a,c=e.xp,l=e.yp,p=e.tween,d=e.target,f=e.step,u=e.sps,v=e.fr,h=e.skipX,g=e.skipY,w=p._from?p._dur-p._time:p._time;if(p._time||!y()){if(1===v)o=w*w*.5,t=c.s+c.vel*w+c.acc*o,i=l.s+l.vel*w+l.acc*o;else{for(s=a=(0|(w*=u))-f,a<0&&(c.v=c.vel/u,l.v=l.vel/u,c.val=c.s,l.val=l.s,s=a=(e.step=0)|w),r=w%1*v;a--;)c.v+=c.a,l.v+=l.a,c.v*=v,l.v*=v,c.val+=c.v,l.val+=l.v;t=c.val+c.v*r,i=l.val+l.v*r,e.step+=s}h||c.set(d,c.p,k(t)+c.u),g||l.set(d,l.p,k(i)+l.u)}else e.styles.revert()},kill:function kill(n){this.xp.p===n&&(this.skipX=1),this.yp.p===n&&(this.skipY=1)}});j()&&r.registerPlugin(i),e.Physics2DPlugin=i,e.default=i;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* PhysicsPropsPlugin 3.12.4 | ||
* PhysicsPropsPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function i(){return a||"undefined"!=typeof window&&(a=window.gsap)&&a.registerPlugin&&a}function j(e){return Math.round(1e4*e)/1e4}function m(){return String.fromCharCode.apply(null,arguments)}function r(e){a=e||i(),l||(c=a.utils.getUnit,d=a.core.getStyleSaver,h=a.core.reverting||function(){},l=1)}function s(e,t,n,i,o,s){var r=e._gsap,a=r.get(e,t);this.p=t,this.set=r.set(e,t),this.s=this.val=parseFloat(a),this.u=c(a)||0,this.vel=n||0,this.v=this.vel/s,i||0===i?(this.acc=i,this.a=this.acc/(s*s)):this.acc=this.a=0,this.fr=1-(o||0)}var a,l,c,d,h,f="PhysicsPropsPlugin",u=m(103,114,101,101,110,115,111,99,107,46,99,111,109),p=m(103,115,97,112,46,99,111,109),v=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,t=(function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(m(102,105,108,101,58,47,47))||-1!==e.indexOf(m(108,111,99,97,108,104,111,115,116))||v.test(e)||(t?window.location.hostname:"").split(".").pop()===m(108,111,99,97,108),i=[u,p,m(99,111,100,101,112,101,110,46,105,111),m(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),m(99,111,100,101,112,101,110,46,100,101,118),m(99,111,100,101,112,101,110,46,97,112,112),m(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),m(112,101,110,115,46,99,108,111,117,100),m(99,115,115,45,116,114,105,99,107,115,46,99,111,109),m(99,100,112,110,46,105,111),m(112,101,110,115,46,105,111),m(103,97,110,110,111,110,46,116,118),m(99,111,100,101,99,97,110,121,111,110,46,110,101,116),m(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),m(99,101,114,101,98,114,97,120,46,99,111,46,117,107),m(116,121,109,112,97,110,117,115,46,110,101,116),m(116,119,101,101,110,109,97,120,46,99,111,109),m(112,108,110,107,114,46,99,111),m(104,111,116,106,97,114,46,99,111,109),m(119,101,98,112,97,99,107,98,105,110,46,99,111,109),m(97,114,99,104,105,118,101,46,111,114,103),m(99,111,100,101,115,97,110,100,98,111,120,46,105,111),m(99,115,98,46,97,112,112),m(115,116,97,99,107,98,108,105,116,122,46,99,111,109),m(115,116,97,99,107,98,108,105,116,122,46,105,111),m(99,111,100,105,101,114,46,105,111),m(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),m(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),m(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),m(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),m(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),m(106,115,102,105,100,100,108,101,46,110,101,116)],o=i.length;for(setTimeout(function checkWarn(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof a?a:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(m(37,99,87,97,114,110,105,110,103),m(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(m(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+f+m(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(m(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),m(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--o;)if(-1!==e.indexOf(i[o]))return;n||setTimeout(function(){t&&(window.location.href=m(104,116,116,112,115,58,47,47)+u+m(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+f+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),{version:"3.12.4",name:"physicsProps",register:r,init:function init(e,t,n){l||r();var i,o=this;for(i in o.styles=d&&d(e),o.target=e,o.tween=n,o.step=0,o.sps=30,o.vProps=[],t){var a=t[i],c=a.velocity,m=a.acceleration,f=a.friction;(c||m)&&(o.vProps.push(new s(e,i,c,m,f,o.sps)),o._props.push(i),d&&o.styles.save(i),f&&(o.hasFr=1))}},render:function render(e,t){var n,i,o,s,r,a=t.vProps,c=t.tween,m=t.target,f=t.step,l=t.hasFr,d=t.sps,u=a.length,p=c._from?c._dur-c._time:c._time;if(c._time||!h())if(l){if((i=(0|(p*=d))-f)<0){for(;u--;)(n=a[u]).v=n.vel/d,n.val=n.s;u=a.length,t.step=f=0,i=0|p}for(o=p%1;u--;){for(n=a[u],s=i;s--;)n.v+=n.a,n.v*=n.fr,n.val+=n.v;n.set(m,n.p,j(n.val+n.v*o*n.fr)+n.u)}t.step+=i}else for(r=p*p*.5;u--;)(n=a[u]).set(m,n.p,j(n.s+n.vel*p+n.acc*r)+n.u);else t.styles.revert()},kill:function kill(e){for(var t=this.vProps,n=t.length;n--;)t[n].p===e&&t.splice(n,1)}});i()&&a.registerPlugin(t),e.PhysicsPropsPlugin=t,e.default=t;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function i(){return a||"undefined"!=typeof window&&(a=window.gsap)&&a.registerPlugin&&a}function j(e){return Math.round(1e4*e)/1e4}function m(){return String.fromCharCode.apply(null,arguments)}function r(e){a=e||i(),l||(c=a.utils.getUnit,d=a.core.getStyleSaver,h=a.core.reverting||function(){},l=1)}function s(e,t,n,i,o,s){var r=e._gsap,a=r.get(e,t);this.p=t,this.set=r.set(e,t),this.s=this.val=parseFloat(a),this.u=c(a)||0,this.vel=n||0,this.v=this.vel/s,i||0===i?(this.acc=i,this.a=this.acc/(s*s)):this.acc=this.a=0,this.fr=1-(o||0)}var a,l,c,d,h,f="PhysicsPropsPlugin",u=m(103,114,101,101,110,115,111,99,107,46,99,111,109),p=m(103,115,97,112,46,99,111,109),v=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,t=(function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(m(102,105,108,101,58,47,47))||-1!==e.indexOf(m(108,111,99,97,108,104,111,115,116))||v.test(e)||(t?window.location.hostname:"").split(".").pop()===m(108,111,99,97,108),i=[u,p,m(99,111,100,101,112,101,110,46,105,111),m(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),m(99,111,100,101,112,101,110,46,100,101,118),m(99,111,100,101,112,101,110,46,97,112,112),m(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),m(112,101,110,115,46,99,108,111,117,100),m(99,115,115,45,116,114,105,99,107,115,46,99,111,109),m(99,100,112,110,46,105,111),m(112,101,110,115,46,105,111),m(103,97,110,110,111,110,46,116,118),m(99,111,100,101,99,97,110,121,111,110,46,110,101,116),m(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),m(99,101,114,101,98,114,97,120,46,99,111,46,117,107),m(116,121,109,112,97,110,117,115,46,110,101,116),m(116,119,101,101,110,109,97,120,46,99,111,109),m(112,108,110,107,114,46,99,111),m(104,111,116,106,97,114,46,99,111,109),m(119,101,98,112,97,99,107,98,105,110,46,99,111,109),m(97,114,99,104,105,118,101,46,111,114,103),m(99,111,100,101,115,97,110,100,98,111,120,46,105,111),m(99,115,98,46,97,112,112),m(115,116,97,99,107,98,108,105,116,122,46,99,111,109),m(115,116,97,99,107,98,108,105,116,122,46,105,111),m(99,111,100,105,101,114,46,105,111),m(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),m(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),m(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),m(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),m(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),m(106,115,102,105,100,100,108,101,46,110,101,116)],o=i.length;for(setTimeout(function checkWarn(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof a?a:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(m(37,99,87,97,114,110,105,110,103),m(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(m(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+f+m(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(m(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),m(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--o;)if(-1!==e.indexOf(i[o]))return;n||setTimeout(function(){t&&(window.location.href=m(104,116,116,112,115,58,47,47)+u+m(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+f+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),{version:"3.12.5",name:"physicsProps",register:r,init:function init(e,t,n){l||r();var i,o=this;for(i in o.styles=d&&d(e),o.target=e,o.tween=n,o.step=0,o.sps=30,o.vProps=[],t){var a=t[i],c=a.velocity,m=a.acceleration,f=a.friction;(c||m)&&(o.vProps.push(new s(e,i,c,m,f,o.sps)),o._props.push(i),d&&o.styles.save(i),f&&(o.hasFr=1))}},render:function render(e,t){var n,i,o,s,r,a=t.vProps,c=t.tween,m=t.target,f=t.step,l=t.hasFr,d=t.sps,u=a.length,p=c._from?c._dur-c._time:c._time;if(c._time||!h())if(l){if((i=(0|(p*=d))-f)<0){for(;u--;)(n=a[u]).v=n.vel/d,n.val=n.s;u=a.length,t.step=f=0,i=0|p}for(o=p%1;u--;){for(n=a[u],s=i;s--;)n.v+=n.a,n.v*=n.fr,n.val+=n.v;n.set(m,n.p,j(n.val+n.v*o*n.fr)+n.u)}t.step+=i}else for(r=p*p*.5;u--;)(n=a[u]).set(m,n.p,j(n.s+n.vel*p+n.acc*r)+n.u);else t.styles.revert()},kill:function kill(e){for(var t=this.vProps,n=t.length;n--;)t[n].p===e&&t.splice(n,1)}});i()&&a.registerPlugin(t),e.PhysicsPropsPlugin=t,e.default=t;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* PixiPlugin 3.12.4 | ||
* PixiPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t=t||self).window=t.window||{})}(this,function(r){"use strict";function l(){return"undefined"!=typeof window}function m(){return e||l()&&(e=window.gsap)&&e.registerPlugin&&e}function n(t){return"function"==typeof t}function o(t){return console.warn(t)}function t(t){return n(h[t])?h[t]:h.filters[t]}function u(t,r){var i,o,n=[],e=0,s=0;for(i=0;i<4;i++){for(o=0;o<5;o++)s=4===o?t[e+4]:0,n[e+o]=t[e]*r[o]+t[e+1]*r[o+5]+t[e+2]*r[o+10]+t[e+3]*r[o+15]+s;e+=5}return n}function v(t,r){var i=1-r,o=i*b,n=i*M,e=i*_;return u([o+r,n,e,0,0,o,n+r,e,0,0,o,n,e+r,0,0,0,0,0,1,0],t)}function w(t,r,i){var o=a(r),n=o[0]/255,e=o[1]/255,s=o[2]/255,l=1-i;return u([l+i*n*b,i*n*M,i*n*_,0,0,i*e*b,l+i*e*M,i*e*_,0,0,i*s*b,i*s*M,l+i*s*_,0,0,0,0,0,1,0],t)}function x(t,r){r*=Math.PI/180;var i=Math.cos(r),o=Math.sin(r);return u([b+i*(1-b)+o*-b,M+i*-M+o*-M,_+i*-_+o*(1-_),0,0,b+i*-b+.143*o,M+i*(1-M)+.14*o,_+i*-_+-.283*o,0,0,b+i*-b+o*-(1-b),M+i*-M+o*M,_+i*(1-_)+o*_,0,0,0,0,0,1,0,0,0,0,0,1],t)}function y(t,r){return u([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],t)}function z(r,i){var n,e=t(i),s=r.filters||[],l=s.length;for(e||o(i+" not found. PixiPlugin.registerPIXI(PIXI)");-1<--l;)if(s[l]instanceof e)return s[l];return n=new e,"BlurFilter"===i&&(n.blur=0),s.push(n),r.filters=s,n}function A(t,r,i,o){r.add(i,t,i[t],o[t]),r._props.push(t)}function B(r,i){var o=new(t("ColorMatrixFilter"));return o.matrix=i,o.brightness(r,!0),o.matrix}function E(t,r,i){var o,n,e,s=z(t,"ColorMatrixFilter"),l=t._gsColorMatrixFilter=t._gsColorMatrixFilter||function _copy(t){var r,i={};for(r in t)i[r]=t[r];return i}(C),u=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter);e=s.matrix,r.resolution&&(s.resolution=r.resolution),r.matrix&&r.matrix.length===e.length?(n=r.matrix,1!==l.contrast&&A("contrast",i,l,C),l.hue&&A("hue",i,l,C),1!==l.brightness&&A("brightness",i,l,C),l.colorizeAmount&&(A("colorize",i,l,C),A("colorizeAmount",i,l,C)),1!==l.saturation&&A("saturation",i,l,C)):(n=g.slice(),null!=r.contrast?(n=y(n,+r.contrast),A("contrast",i,l,r)):1!==l.contrast&&(u?n=y(n,l.contrast):A("contrast",i,l,C)),null!=r.hue?(n=x(n,+r.hue),A("hue",i,l,r)):l.hue&&(u?n=x(n,l.hue):A("hue",i,l,C)),null!=r.brightness?(n=B(+r.brightness,n),A("brightness",i,l,r)):1!==l.brightness&&(u?n=B(l.brightness,n):A("brightness",i,l,C)),null!=r.colorize?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,n=w(n,r.colorize,r.colorizeAmount),A("colorize",i,l,r),A("colorizeAmount",i,l,r)):l.colorizeAmount&&(u?n=w(n,l.colorize,l.colorizeAmount):(A("colorize",i,l,C),A("colorizeAmount",i,l,C))),null!=r.saturation?(n=v(n,+r.saturation),A("saturation",i,l,r)):1!==l.saturation&&(u?n=v(n,l.saturation):A("saturation",i,l,C))),o=n.length;for(;-1<--o;)n[o]!==e[o]&&i.add(e,o,e[o],n[o],"colorMatrixFilter");i._props.push("colorMatrixFilter")}function F(t,r){var i=r.t,o=r.p,n=r.color;(0,r.set)(i,o,n[0]<<16|n[1]<<8|n[2])}function G(t,r){var i=r.g;i&&(i.dirty++,i.clearDirty++)}function H(t,r){r.t.visible=!!r.t.alpha}function I(t,r,i,o){var e=t[r],s=a(n(e)?t[r.indexOf("set")||!n(t["get"+r.substr(3)])?r:"get"+r.substr(3)]():e),l=a(i);o._pt=new d(o._pt,t,r,0,0,F,{t:t,p:r,color:s,set:c(t,r)}),o.add(s,0,s[0],l[0]),o.add(s,1,s[1],l[1]),o.add(s,2,s[2],l[2])}function O(t){return"string"==typeof t}function P(t){return O(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*k:t*k}function Q(t,r){return r.set(r.t,r.p,1===t?r.e:Math.round(1e5*(r.s+r.c*t))/1e5,r)}function R(t,r,i,o,n,e){var s,l,u=360*(e?k:1),a=O(n),c=a&&"="===n.charAt(1)?+(n.charAt(0)+"1"):0,f=parseFloat(c?n.substr(2):n)*(e?k:1),h=c?f*c:f-o,p=o+h;return a&&("short"===(s=n.split("_")[1])&&(h%=u)!==h%(u/2)&&(h+=h<0?u:-u),"cw"===s&&h<0?h=(h+1e10*u)%u-~~(h/u)*u:"ccw"===s&&0<h&&(h=(h-1e10*u)%u-~~(h/u)*u)),t._pt=l=new d(t._pt,r,i,o,h,Q),l.e=p,l}function S(){l()&&(i=window,e=m(),h=h||i.PIXI,p=h&&h.VERSION&&"4"===h.VERSION.charAt(0),a=function _splitColor(t){return e.utils.splitColor("0x"===(t+"").substr(0,2)?"#"+t.substr(2):t)})}var e,i,a,h,d,c,p,s,f,g=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],b=.212671,M=.71516,_=.072169,C={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},X={tint:1,lineColor:1,fillColor:1},j="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),D={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},Y={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},k=Math.PI/180;for(s=0;s<j.length;s++)f=j[s],D[f+"X"]=f,D[f+"Y"]=f;var N={version:"3.12.4",name:"pixi",register:function register(t,r,i){e=t,d=i,c=r.getSetter,S()},registerPIXI:function registerPIXI(t){h=t},init:function init(t,r){if(h||S(),!(h&&t instanceof h.DisplayObject))return o(t),!1;var i,n,e,s,l,u,a,c,f;for(u in r){if(i=D[u],e=r[u],i)n=~u.charAt(u.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[i],n,t[i][n],"skew"===i?P(e):e,0,0,0,0,0,1);else if("scale"===u||"anchor"===u||"pivot"===u||"tileScale"===u)this.add(t[u],"x",t[u].x,e),this.add(t[u],"y",t[u].y,e);else if("rotation"===u||"angle"===u)R(this,t,u,t[u],e,"rotation"===u);else if(Y[u])s||(E(t,r.colorMatrixFilter||r,this),s=!0);else if("blur"===u||"blurX"===u||"blurY"===u||"blurPadding"===u){if(l=z(t,"BlurFilter"),this.add(l,u,l[u],e),0!==r.blurPadding)for(a=r.blurPadding||2*Math.max(l[u],e),c=t.filters.length;-1<--c;)t.filters[c].padding=Math.max(t.filters[c].padding,a)}else if(X[u])if(("lineColor"===u||"fillColor"===u)&&t instanceof h.Graphics)for(f=(t.geometry||t).graphicsData,this._pt=new d(this._pt,t,u,0,0,G,{g:t.geometry||t}),c=f.length;-1<--c;)I(p?f[c]:f[c][u.substr(0,4)+"Style"],p?u:"color",e,this);else I(t,u,e,this);else"autoAlpha"===u?(this._pt=new d(this._pt,t,"visible",0,0,H),this.add(t,"alpha",t.alpha,e),this._props.push("alpha","visible")):"resolution"!==u&&this.add(t,u,"get",e);this._props.push(u)}}};m()&&e.registerPlugin(N),r.PixiPlugin=N,r.default=N;if (typeof(window)==="undefined"||window!==r){Object.defineProperty(r,"__esModule",{value:!0})} else {delete r.default}}); | ||
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t=t||self).window=t.window||{})}(this,function(r){"use strict";function k(){return"undefined"!=typeof window}function l(){return o||k()&&(o=window.gsap)&&o.registerPlugin&&o}function m(t){return"function"==typeof t}function n(t){return console.warn(t)}function s(t){return m(h[t])?h[t]:h.filters[t]}function t(t,r){var i,o,e=[],n=0,s=0;for(i=0;i<4;i++){for(o=0;o<5;o++)s=4===o?t[n+4]:0,e[n+o]=t[n]*r[o]+t[n+1]*r[o+5]+t[n+2]*r[o+10]+t[n+3]*r[o+15]+s;n+=5}return e}function u(r,i){var o=1-i,e=o*b,n=o*I,s=o*M;return t([e+i,n,s,0,0,e,n+i,s,0,0,e,n,s+i,0,0,0,0,0,1,0],r)}function v(r,i,o){var e=a(i),n=e[0]/255,s=e[1]/255,l=e[2]/255,u=1-o;return t([u+o*n*b,o*n*I,o*n*M,0,0,o*s*b,u+o*s*I,o*s*M,0,0,o*l*b,o*l*I,u+o*l*M,0,0,0,0,0,1,0],r)}function w(r,i){i*=Math.PI/180;var o=Math.cos(i),e=Math.sin(i);return t([b+o*(1-b)+e*-b,I+o*-I+e*-I,M+o*-M+e*(1-M),0,0,b+o*-b+.143*e,I+o*(1-I)+.14*e,M+o*-M+-.283*e,0,0,b+o*-b+e*-(1-b),I+o*-I+e*I,M+o*(1-M)+e*M,0,0,0,0,0,1,0,0,0,0,0,1],r)}function x(r,i){return t([i,0,0,0,.5*(1-i),0,i,0,0,.5*(1-i),0,0,i,0,.5*(1-i),0,0,0,1,0],r)}function y(t,r){var i,o=s(r),e=t.filters||[],l=e.length;for(o||n(r+" not found. PixiPlugin.registerPIXI(PIXI)");-1<--l;)if(e[l]instanceof o)return e[l];return i=new o,"BlurFilter"===r&&(i.blur=0),e.push(i),t.filters=e,i}function z(t,r,i,o){r.add(i,t,i[t],o[t]),r._props.push(t)}function A(t,r){var i=new(s("ColorMatrixFilter"));return i.matrix=r,i.brightness(t,!0),i.matrix}function D(t,r,i){var o,e,n,s=y(t,"ColorMatrixFilter"),l=t._gsColorMatrixFilter=t._gsColorMatrixFilter||function _copy(t){var r,i={};for(r in t)i[r]=t[r];return i}(_),a=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter);n=s.matrix,r.resolution&&(s.resolution=r.resolution),r.matrix&&r.matrix.length===n.length?(e=r.matrix,1!==l.contrast&&z("contrast",i,l,_),l.hue&&z("hue",i,l,_),1!==l.brightness&&z("brightness",i,l,_),l.colorizeAmount&&(z("colorize",i,l,_),z("colorizeAmount",i,l,_)),1!==l.saturation&&z("saturation",i,l,_)):(e=g.slice(),null!=r.contrast?(e=x(e,+r.contrast),z("contrast",i,l,r)):1!==l.contrast&&(a?e=x(e,l.contrast):z("contrast",i,l,_)),null!=r.hue?(e=w(e,+r.hue),z("hue",i,l,r)):l.hue&&(a?e=w(e,l.hue):z("hue",i,l,_)),null!=r.brightness?(e=A(+r.brightness,e),z("brightness",i,l,r)):1!==l.brightness&&(a?e=A(l.brightness,e):z("brightness",i,l,_)),null!=r.colorize?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,e=v(e,r.colorize,r.colorizeAmount),z("colorize",i,l,r),z("colorizeAmount",i,l,r)):l.colorizeAmount&&(a?e=v(e,l.colorize,l.colorizeAmount):(z("colorize",i,l,_),z("colorizeAmount",i,l,_))),null!=r.saturation?(e=u(e,+r.saturation),z("saturation",i,l,r)):1!==l.saturation&&(a?e=u(e,l.saturation):z("saturation",i,l,_))),o=e.length;for(;-1<--o;)e[o]!==n[o]&&i.add(n,o,n[o],e[o],"colorMatrixFilter");i._props.push("colorMatrixFilter")}function E(t,r){var i=r.t,o=r.p,e=r.color;(0,r.set)(i,o,e[0]<<16|e[1]<<8|e[2])}function F(t,r){var i=r.g;i&&(i.dirty++,i.clearDirty++)}function G(t,r){r.t.visible=!!r.t.alpha}function H(t,r,i,o){var e=t[r],n=a(m(e)?t[r.indexOf("set")||!m(t["get"+r.substr(3)])?r:"get"+r.substr(3)]():e),s=a(i);o._pt=new d(o._pt,t,r,0,0,E,{t:t,p:r,color:n,set:c(t,r)}),o.add(n,0,n[0],s[0]),o.add(n,1,n[1],s[1]),o.add(n,2,n[2],s[2])}function N(t){return"string"==typeof t}function O(t){return N(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*j:t*j}function P(t,r){return r.set(r.t,r.p,1===t?r.e:Math.round(1e5*(r.s+r.c*t))/1e5,r)}function Q(t,r,i,o,e,n){var s,l,u=360*(n?j:1),a=N(e),c=a&&"="===e.charAt(1)?+(e.charAt(0)+"1"):0,f=parseFloat(c?e.substr(2):e)*(n?j:1),h=c?f*c:f-o,p=o+h;return a&&("short"===(s=e.split("_")[1])&&(h%=u)!==h%(u/2)&&(h+=h<0?u:-u),"cw"===s&&h<0?h=(h+1e10*u)%u-~~(h/u)*u:"ccw"===s&&0<h&&(h=(h-1e10*u)%u-~~(h/u)*u)),t._pt=l=new d(t._pt,r,i,o,h,P),l.e=p,l}function R(){i||(o=l(),h=i=h||k()&&window.PIXI,p=h&&h.VERSION&&"4"===h.VERSION.charAt(0),a=function _splitColor(t){return o.utils.splitColor("0x"===(t+"").substr(0,2)?"#"+t.substr(2):t)})}var o,a,i,h,d,c,p,e,f,g=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],b=.212671,I=.71516,M=.072169,_={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},C={tint:1,lineColor:1,fillColor:1},X="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),S={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},Y={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},j=Math.PI/180;for(e=0;e<X.length;e++)f=X[e],S[f+"X"]=f,S[f+"Y"]=f;var B={version:"3.12.5",name:"pixi",register:function register(t,r,i){o=t,d=i,c=r.getSetter,R()},headless:!0,registerPIXI:function registerPIXI(t){h=t},init:function init(t,r){if(h||R(),!h)return n("PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var i,o,e,s,l,u,a,c,f;for(u in r){if(i=S[u],e=r[u],i)o=~u.charAt(u.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[i],o,t[i][o],"skew"===i?O(e):e,0,0,0,0,0,1);else if("scale"===u||"anchor"===u||"pivot"===u||"tileScale"===u)this.add(t[u],"x",t[u].x,e),this.add(t[u],"y",t[u].y,e);else if("rotation"===u||"angle"===u)Q(this,t,u,t[u],e,"rotation"===u);else if(Y[u])s||(D(t,r.colorMatrixFilter||r,this),s=!0);else if("blur"===u||"blurX"===u||"blurY"===u||"blurPadding"===u){if(l=y(t,"BlurFilter"),this.add(l,u,l[u],e),0!==r.blurPadding)for(a=r.blurPadding||2*Math.max(l[u],e),c=t.filters.length;-1<--c;)t.filters[c].padding=Math.max(t.filters[c].padding,a)}else if(C[u])if(("lineColor"===u||"fillColor"===u)&&t instanceof h.Graphics)for(f=(t.geometry||t).graphicsData,this._pt=new d(this._pt,t,u,0,0,F,{g:t.geometry||t}),c=f.length;-1<--c;)H(p?f[c]:f[c][u.substr(0,4)+"Style"],p?u:"color",e,this);else H(t,u,e,this);else"autoAlpha"===u?(this._pt=new d(this._pt,t,"visible",0,0,G),this.add(t,"alpha",t.alpha,e),this._props.push("alpha","visible")):"resolution"!==u&&this.add(t,u,"get",e);this._props.push(u)}}};l()&&o.registerPlugin(B),r.PixiPlugin=B,r.default=B;if (typeof(window)==="undefined"||window!==r){Object.defineProperty(r,"__esModule",{value:!0})} else {delete r.default}}); |
/*! | ||
* ScrambleTextPlugin 3.12.4 | ||
* ScrambleTextPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var r=/(?:^\s+|\s+$)/g,o=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F}function emojiSafeSplit(D,u,F,C){if(D+="",F&&(D=D.trim?D.trim():D.replace(r,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var e,E,t=[],n=D.length,i=0;i<n;i++)(55296<=(E=D.charAt(i)).charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=D.charCodeAt(i+1)&&D.charCodeAt(i+1)<=65039)&&(e=((D.substr(i,12).split(o)||[])[1]||"").length||2,E=D.substr(i,e),i+=e-(t.emoji=1)),t.push(">"===E?">":"<"===E?"<":!C||" "!==E||" "!==D.charAt(i-1)&&" "!==D.charAt(i+1)?E:" ");return t}var a=(CharSet.prototype.grow=function grow(D){for(var u=0;u<20;u++)this.sets[u]+=F(D-this.length,this.chars);this.length=D},CharSet);function CharSet(D){this.chars=emojiSafeSplit(D),this.sets=[],this.length=50;for(var u=0;u<20;u++)this.sets[u]=F(80,this.chars)}function i(){return E||"undefined"!=typeof window&&(E=window.gsap)&&E.registerPlugin&&E}function l(){return String.fromCharCode.apply(null,arguments)}function v(){s=E=i()}var E,s,t="ScrambleTextPlugin",n=l(103,114,101,101,110,115,111,99,107,46,99,111,109),B=l(103,115,97,112,46,99,111,109),A=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,h=function(D){var u="undefined"!=typeof window,F=0===(u?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==D.indexOf(l(108,111,99,97,108,104,111,115,116))||A.test(D)||(u?window.location.hostname:"").split(".").pop()===l(108,111,99,97,108),C=[n,B,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),l(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),l(106,115,102,105,100,100,108,101,46,110,101,116)],e=C.length;for(setTimeout(function checkWarn(){if(u)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var D="object"==typeof E?E:u&&window.gsap;u&&window.console&&!window._gsapWarned&&"object"==typeof D&&!1!==D.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+t+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--e;)if(-1!==D.indexOf(C[e]))return!0;return F||!setTimeout(function(){u&&(window.location.href=l(104,116,116,112,115,58,47,47)+n+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+t+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),c=/\s+/g,F=function _scrambleText(D,u){for(var F=u.length,C="";-1<--D;)C+=u[~~(Math.random()*F)];return C},u="ABCDEFGHIJKLMNOPQRSTUVWXYZ",C=u.toLowerCase(),f={upperCase:new a(u),lowerCase:new a(C),upperAndLowerCase:new a(u+C)},e={version:"3.12.4",name:"scrambleText",register:function register(D){E=D,v()},init:function init(D,u,F){if(s||v(),this.prop="innerHTML"in D?"innerHTML":"textContent"in D?"textContent":0,this.prop){this.target=D,"object"!=typeof u&&(u={text:u});var C,e,E,t,n=u.text||u.value||"",i=!1!==u.trim,r=this;return r.delimiter=C=u.delimiter||"",r.original=emojiSafeSplit(getText(D).replace(c," ").split(" ").join(""),C,i),"{original}"!==n&&!0!==n&&null!=n||(n=r.original.join(C)),r.text=emojiSafeSplit((n||"").replace(c," "),C,i),r.hasClass=!(!u.newClass&&!u.oldClass),r.newClass=u.newClass,r.oldClass=u.oldClass,t=""===C,r.textHasEmoji=t&&!!r.text.emoji,r.charsHaveEmoji=!!u.chars&&!!emojiSafeSplit(u.chars).emoji,r.length=t?r.original.length:r.original.join(C).length,r.lengthDif=(t?r.text.length:r.text.join(C).length)-r.length,r.fillChar=u.fillChar||u.chars&&~u.chars.indexOf(" ")?" ":"",r.charSet=E=f[u.chars||"upperCase"]||new a(u.chars),r.speed=.05/(u.speed||1),r.prevScrambleTime=0,r.setIndex=20*Math.random()|0,(e=r.length+Math.max(r.lengthDif,0))>E.length&&E.grow(e),r.chars=E.sets[r.setIndex],r.revealDelay=u.revealDelay||0,r.tweenLength=!1!==u.tweenLength,r.tween=F,r.rightToLeft=!!u.rightToLeft,r._props.push("scrambleText","text"),h}},render:function render(D,u){var F,C,e,E,t,n,i,r,l,o,a,s=u.target,B=u.prop,A=u.text,h=u.delimiter,c=u.tween,f=u.prevScrambleTime,d=u.revealDelay,p=u.setIndex,g=u.chars,m=u.charSet,w=u.length,x=u.textHasEmoji,S=u.charsHaveEmoji,j=u.lengthDif,v=u.tweenLength,b=u.oldClass,T=u.newClass,y=u.rightToLeft,_=u.fillChar,L=u.speed,M=u.original,H=u.hasClass,O=A.length,W=c._time,P=W-f;d&&(c._from&&(W=c._dur-W),D=0===W?0:W<d?1e-6:W===c._dur?1:c._ease((W-d)/(c._dur-d))),D<0?D=0:1<D&&(D=1),y&&(D=1-D),F=~~(D*O+.5),E=D?((L<P||P<-L)&&(u.setIndex=p=(p+(19*Math.random()|0))%20,u.chars=m.sets[p],u.prevScrambleTime+=P),g):M.join(h),a=c._from?D:1-D,o=w+(v?c._from?a*a*a:1-a*a*a:1)*j,E=y?1!==D||!c._from&&"isFromStart"!==c.data?(i=A.slice(F).join(h),e=S?emojiSafeSplit(E).slice(0,o-(x?emojiSafeSplit(i):i).length+.5|0).join(""):E.substr(0,o-(x?emojiSafeSplit(i):i).length+.5|0),i):(e="",M.join(h)):(e=A.slice(0,F).join(h),C=(x?emojiSafeSplit(e):e).length,S?emojiSafeSplit(E).slice(C,o+.5|0).join(""):E.substr(C,o-C+.5|0)),i=H?((t=(r=y?b:T)&&0!=F)?"<span class='"+r+"'>":"")+e+(t?"</span>":"")+((n=(l=y?T:b)&&F!==O)?"<span class='"+l+"'>":"")+h+E+(n?"</span>":""):e+h+E,s[B]=" "===_&&~i.indexOf(" ")?i.split(" ").join(" "):i}};e.emojiSafeSplit=emojiSafeSplit,e.getText=getText,i()&&E.registerPlugin(e),D.ScrambleTextPlugin=e,D.default=e;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}}); | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var r=/(?:^\s+|\s+$)/g,o=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F}function emojiSafeSplit(D,u,F,C){if(D+="",F&&(D=D.trim?D.trim():D.replace(r,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var e,E,t=[],n=D.length,i=0;i<n;i++)(55296<=(E=D.charAt(i)).charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=D.charCodeAt(i+1)&&D.charCodeAt(i+1)<=65039)&&(e=((D.substr(i,12).split(o)||[])[1]||"").length||2,E=D.substr(i,e),i+=e-(t.emoji=1)),t.push(">"===E?">":"<"===E?"<":!C||" "!==E||" "!==D.charAt(i-1)&&" "!==D.charAt(i+1)?E:" ");return t}var a=(CharSet.prototype.grow=function grow(D){for(var u=0;u<20;u++)this.sets[u]+=F(D-this.length,this.chars);this.length=D},CharSet);function CharSet(D){this.chars=emojiSafeSplit(D),this.sets=[],this.length=50;for(var u=0;u<20;u++)this.sets[u]=F(80,this.chars)}function i(){return E||"undefined"!=typeof window&&(E=window.gsap)&&E.registerPlugin&&E}function l(){return String.fromCharCode.apply(null,arguments)}function v(){s=E=i()}var E,s,t="ScrambleTextPlugin",n=l(103,114,101,101,110,115,111,99,107,46,99,111,109),B=l(103,115,97,112,46,99,111,109),A=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,h=function(D){var u="undefined"!=typeof window,F=0===(u?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==D.indexOf(l(108,111,99,97,108,104,111,115,116))||A.test(D)||(u?window.location.hostname:"").split(".").pop()===l(108,111,99,97,108),C=[n,B,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),l(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),l(106,115,102,105,100,100,108,101,46,110,101,116)],e=C.length;for(setTimeout(function checkWarn(){if(u)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var D="object"==typeof E?E:u&&window.gsap;u&&window.console&&!window._gsapWarned&&"object"==typeof D&&!1!==D.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+t+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--e;)if(-1!==D.indexOf(C[e]))return!0;return F||!setTimeout(function(){u&&(window.location.href=l(104,116,116,112,115,58,47,47)+n+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+t+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),c=/\s+/g,F=function _scrambleText(D,u){for(var F=u.length,C="";-1<--D;)C+=u[~~(Math.random()*F)];return C},u="ABCDEFGHIJKLMNOPQRSTUVWXYZ",C=u.toLowerCase(),f={upperCase:new a(u),lowerCase:new a(C),upperAndLowerCase:new a(u+C)},e={version:"3.12.5",name:"scrambleText",register:function register(D){E=D,v()},init:function init(D,u,F){if(s||v(),this.prop="innerHTML"in D?"innerHTML":"textContent"in D?"textContent":0,this.prop){this.target=D,"object"!=typeof u&&(u={text:u});var C,e,E,t,n=u.text||u.value||"",i=!1!==u.trim,r=this;return r.delimiter=C=u.delimiter||"",r.original=emojiSafeSplit(getText(D).replace(c," ").split(" ").join(""),C,i),"{original}"!==n&&!0!==n&&null!=n||(n=r.original.join(C)),r.text=emojiSafeSplit((n||"").replace(c," "),C,i),r.hasClass=!(!u.newClass&&!u.oldClass),r.newClass=u.newClass,r.oldClass=u.oldClass,t=""===C,r.textHasEmoji=t&&!!r.text.emoji,r.charsHaveEmoji=!!u.chars&&!!emojiSafeSplit(u.chars).emoji,r.length=t?r.original.length:r.original.join(C).length,r.lengthDif=(t?r.text.length:r.text.join(C).length)-r.length,r.fillChar=u.fillChar||u.chars&&~u.chars.indexOf(" ")?" ":"",r.charSet=E=f[u.chars||"upperCase"]||new a(u.chars),r.speed=.05/(u.speed||1),r.prevScrambleTime=0,r.setIndex=20*Math.random()|0,(e=r.length+Math.max(r.lengthDif,0))>E.length&&E.grow(e),r.chars=E.sets[r.setIndex],r.revealDelay=u.revealDelay||0,r.tweenLength=!1!==u.tweenLength,r.tween=F,r.rightToLeft=!!u.rightToLeft,r._props.push("scrambleText","text"),h}},render:function render(D,u){var F,C,e,E,t,n,i,r,l,o,a,s=u.target,B=u.prop,A=u.text,h=u.delimiter,c=u.tween,f=u.prevScrambleTime,d=u.revealDelay,p=u.setIndex,g=u.chars,m=u.charSet,w=u.length,x=u.textHasEmoji,S=u.charsHaveEmoji,j=u.lengthDif,v=u.tweenLength,b=u.oldClass,T=u.newClass,y=u.rightToLeft,_=u.fillChar,L=u.speed,M=u.original,H=u.hasClass,O=A.length,W=c._time,P=W-f;d&&(c._from&&(W=c._dur-W),D=0===W?0:W<d?1e-6:W===c._dur?1:c._ease((W-d)/(c._dur-d))),D<0?D=0:1<D&&(D=1),y&&(D=1-D),F=~~(D*O+.5),E=D?((L<P||P<-L)&&(u.setIndex=p=(p+(19*Math.random()|0))%20,u.chars=m.sets[p],u.prevScrambleTime+=P),g):M.join(h),a=c._from?D:1-D,o=w+(v?c._from?a*a*a:1-a*a*a:1)*j,E=y?1!==D||!c._from&&"isFromStart"!==c.data?(i=A.slice(F).join(h),e=S?emojiSafeSplit(E).slice(0,o-(x?emojiSafeSplit(i):i).length+.5|0).join(""):E.substr(0,o-(x?emojiSafeSplit(i):i).length+.5|0),i):(e="",M.join(h)):(e=A.slice(0,F).join(h),C=(x?emojiSafeSplit(e):e).length,S?emojiSafeSplit(E).slice(C,o+.5|0).join(""):E.substr(C,o-C+.5|0)),i=H?((t=(r=y?b:T)&&0!=F)?"<span class='"+r+"'>":"")+e+(t?"</span>":"")+((n=(l=y?T:b)&&F!==O)?"<span class='"+l+"'>":"")+h+E+(n?"</span>":""):e+h+E,s[B]=" "===_&&~i.indexOf(" ")?i.split(" ").join(" "):i}};e.emojiSafeSplit=emojiSafeSplit,e.getText=getText,i()&&E.registerPlugin(e),D.ScrambleTextPlugin=e,D.default=e;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}}); |
/*! | ||
* ScrollSmoother 3.12.4 | ||
* ScrollSmoother 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(){return"undefined"!=typeof window}function t(){return B||s()&&(B=window.gsap)&&B.registerPlugin&&B}function w(){return String.fromCharCode.apply(null,arguments)}function D(e){return Z.maxScroll(e||L)}var B,F,L,I,j,q,W,Y,Z,K,$,G,J,Q,X,i="ScrollSmoother",a=w(103,114,101,101,110,115,111,99,107,46,99,111,109),l=w(103,115,97,112,46,99,111,109),c=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,r=(function(e){var t="undefined"!=typeof window,r=0===(t?window.location.href:"").indexOf(w(102,105,108,101,58,47,47))||-1!==e.indexOf(w(108,111,99,97,108,104,111,115,116))||c.test(e)||(t?window.location.hostname:"").split(".").pop()===w(108,111,99,97,108),n=[a,l,w(99,111,100,101,112,101,110,46,105,111),w(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),w(99,111,100,101,112,101,110,46,100,101,118),w(99,111,100,101,112,101,110,46,97,112,112),w(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),w(112,101,110,115,46,99,108,111,117,100),w(99,115,115,45,116,114,105,99,107,115,46,99,111,109),w(99,100,112,110,46,105,111),w(112,101,110,115,46,105,111),w(103,97,110,110,111,110,46,116,118),w(99,111,100,101,99,97,110,121,111,110,46,110,101,116),w(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),w(99,101,114,101,98,114,97,120,46,99,111,46,117,107),w(116,121,109,112,97,110,117,115,46,110,101,116),w(116,119,101,101,110,109,97,120,46,99,111,109),w(112,108,110,107,114,46,99,111),w(104,111,116,106,97,114,46,99,111,109),w(119,101,98,112,97,99,107,98,105,110,46,99,111,109),w(97,114,99,104,105,118,101,46,111,114,103),w(99,111,100,101,115,97,110,100,98,111,120,46,105,111),w(99,115,98,46,97,112,112),w(115,116,97,99,107,98,108,105,116,122,46,99,111,109),w(115,116,97,99,107,98,108,105,116,122,46,105,111),w(99,111,100,105,101,114,46,105,111),w(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),w(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),w(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),w(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),w(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),w(106,115,102,105,100,100,108,101,46,110,101,116)],o=n.length;for(setTimeout(function checkWarn(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof B?B:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(w(37,99,87,97,114,110,105,110,103),w(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(w(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+i+w(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(w(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),w(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--o;)if(-1!==e.indexOf(n[o]))return;r||setTimeout(function(){t&&(window.location.href=w(104,116,116,112,115,58,47,47)+a+w(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+i+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),ScrollSmoother.register=function register(e){return F||(B=e||t(),s()&&window.document&&(L=window,I=document,j=I.documentElement,q=I.body),B&&(W=B.utils.toArray,Y=B.utils.clamp,$=B.parseEase("expo"),Q=B.core.context||function(){},Z=B.core.globals().ScrollTrigger,B.core.globals("ScrollSmoother",ScrollSmoother),q&&Z&&(X=B.delayedCall(.2,function(){return Z.isRefreshing||K&&K.refresh()}).pause(),G=Z.core._getVelocityProp,J=Z.core._inputObserver,ScrollSmoother.refresh=Z.refresh,F=1))),F},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(ScrollSmoother,[{key:"progress",get:function get(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),ScrollSmoother);function ScrollSmoother(t){var o=this;F||ScrollSmoother.register(B)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),t=this.vars=t||{},K&&K.kill(),Q(K=this);function Pa(){return U.update(-H)}function Ra(){return n.style.overflow="visible"}function Ta(e){e.update();var t=e.getTween();t&&(t.pause(),t._time=t._dur,t._tTime=t._tDur),g=!1,e.animation.progress(e.progress,!0)}function Ua(e,t){(e!==H&&!f||t)&&(x&&(e=Math.round(e)),k&&(n.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+e+", 0, 1)",n._gsap.y=e+"px"),M=e-H,H=e,Z.isUpdating||ScrollSmoother.isRefreshing||Z.update())}function Va(e){return arguments.length?(e<0&&(e=0),z.y=-e,g=!0,f?H=-e:Ua(-e),Z.isRefreshing?i.update():E(e/A),this):-H}function Ya(e){w.scrollTop=0,e.target.contains&&e.target.contains(w)||_&&!1===_(o,e)||(Z.isInViewport(e.target)||e.target===p||o.scrollTo(e.target,!1,"center center"),p=e.target)}function Za(t,e){if(t<e.start)return t;var r=isNaN(e.ratio)?1:e.ratio,n=e.end-e.start,o=t-e.start,i=e.offset||0,s=e.pins||[],a=s.offset||0,l=e._startClamp&&e.start<=0||e.pins&&e.pins.offset?0:e._endClamp&&e.end===D()?1:.5;return s.forEach(function(e){n-=e.distance,e.nativeStart<=t&&(o-=e.distance)}),a&&(o*=(n-a/r)/n),t+(o-i*l)/r-o}function _a(t,r){b.forEach(function(e){return function adjustEffectRelatedTriggers(e,t,r){r||(e.pins.length=e.pins.offset=0);var n,o,i,s,a,l,c,f,u=e.pins,d=e.markers;for(c=0;c<t.length;c++)if(f=t[c],e.trigger&&f.trigger&&e!==f&&(f.trigger===e.trigger||f.pinnedContainer===e.trigger||e.trigger.contains(f.trigger))&&(a=f._startNative||f._startClamp||f.start,l=f._endNative||f._endClamp||f.end,i=Za(a,e),s=f.pin&&0<l?i+(l-a):Za(l,e),f.setPositions(i,s,!0,(f._startClamp?Math.max(0,i):i)-a),f.markerStart&&d.push(B.quickSetter([f.markerStart,f.markerEnd],"y","px")),f.pin&&0<f.end&&!r)){if(n=f.end-f.start,o=e._startClamp&&f.start<0){if(0<e.start)return e.setPositions(0,e.end+(e._startNative-e.start),!0),void adjustEffectRelatedTriggers(e,t);n+=f.start,u.offset=-f.start}u.push({start:f.start,nativeStart:a,end:f.end,distance:n,trig:f}),e.setPositions(e.start,e.end+(o?-f.start:n),!0)}}(e,t,r)})}function ab(){Ra(),requestAnimationFrame(Ra),b&&(Z.getAll().forEach(function(e){e._startNative=e.start,e._endNative=e.end}),b.forEach(function(e){var t=e._startClamp||e.start,r=e.autoSpeed?Math.min(D(),e.end):t+Math.abs((e.end-t)/e.ratio),n=r-e.end;if((r-=n/2)<(t-=n/2)){var o=t;t=r,r=o}e._startClamp&&t<0?(n=(r=e.ratio<0?D():e.end/e.ratio)-e.end,t=0):(e.ratio<0||e._endClamp&&r>=D())&&(n=((r=D())-(t=e.ratio<0||1<e.ratio?0:r-(r-e.start)/e.ratio))*e.ratio-(e.end-e.start)),e.offset=n||1e-4,e.pins.length=e.pins.offset=0,e.setPositions(t,r,!0)}),_a(Z.sort())),U.reset()}function bb(){return Z.addEventListener("refresh",ab)}function cb(){return b&&b.forEach(function(e){return e.vars.onRefresh(e)})}function db(){return b&&b.forEach(function(e){return e.vars.onRefreshInit(e)}),cb}function eb(r,n,o,i){return function(){var e="function"==typeof n?n(o,i):n;e||0===e||(e=i.getAttribute("data-"+R+r)||("speed"===r?1:0)),i.setAttribute("data-"+R+r,e);var t="clamp("===(e+"").substr(0,6);return{clamp:t,value:t?e.substr(6,e.length-7):e}}}function fb(r,e,t,n,o){function qc(){e=u(),t=parseFloat(d().value),i=parseFloat(e.value)||1,a="auto"===e.value,c=a||s&&s._startClamp&&s.start<=0||p.offset?0:s&&s._endClamp&&s.end===D()?1:.5,l&&l.kill(),l=t&&B.to(r,{ease:$,overwrite:!1,y:"+=0",duration:t}),s&&(s.ratio=i,s.autoSpeed=a)}function rc(){g.y=h+"px",g.renderTransform(1),qc()}function uc(e){if(a){rc();var t=function _autoDistance(e,t){var r,n,o=e.parentNode||j,i=e.getBoundingClientRect(),s=o.getBoundingClientRect(),a=s.top-i.top,l=s.bottom-i.bottom,c=(Math.abs(a)>Math.abs(l)?a:l)/(1-t),f=-c*t;return 0<c&&(n=.5==(r=s.height/(L.innerHeight+s.height))?2*s.height:2*Math.min(s.height,Math.abs(-c*r/(2*r-1)))*(t||1),f+=t?-n*t:-n/2,c+=n),{change:c,offset:f}}(r,Y(0,1,-e.start/(e.end-e.start)));v=t.change,f=t.offset}else f=p.offset||0,v=(e.end-e.start-f)*(1-i);p.forEach(function(e){return v-=e.distance*(1-i)}),e.offset=v||.001,e.vars.onUpdate(e),l&&l.progress(1)}o=("function"==typeof o?o(n,r):o)||0;var i,s,a,l,c,f,u=eb("speed",e,n,r),d=eb("lag",t,n,r),h=B.getProperty(r,"y"),g=r._gsap,p=[],m=[],v=0;return qc(),(1!==i||a||l)&&(uc(s=Z.create({trigger:a?r.parentNode:r,start:function start(){return e.clamp?"clamp(top bottom+="+o+")":"top bottom+="+o},end:function end(){return e.value<0?"max":e.clamp?"clamp(bottom top-="+o+")":"bottom top-="+o},scroller:w,scrub:!0,refreshPriority:-999,onRefreshInit:rc,onRefresh:uc,onKill:function onKill(e){var t=b.indexOf(e);0<=t&&b.splice(t,1),rc()},onUpdate:function onUpdate(e){var t,r,n,o=h+v*(e.progress-c),i=p.length,s=0;if(e.offset){if(i){for(r=-H,n=e.end;i--;){if((t=p[i]).trig.isActive||r>=t.start&&r<=t.end)return void(l&&(t.trig.progress+=t.trig.direction<0?.001:-.001,t.trig.update(0,0,1),l.resetTo("y",parseFloat(g.y),-M,!0),N&&l.progress(1)));r>t.end&&(s+=t.distance),n-=t.distance}o=h+s+v*((B.utils.clamp(e.start,e.end,r)-e.start-s)/(n-e.start)-c)}m.length&&!a&&m.forEach(function(e){return e(o-s)}),o=function _round(e){return Math.round(1e5*e)/1e5||0}(o+f),l?(l.resetTo("y",o,-M,!0),N&&l.progress(1)):(g.y=o+"px",g.renderTransform(1))}}})),B.core.getCache(s.trigger).stRevert=db,s.startY=h,s.pins=p,s.markers=m,s.ratio=i,s.autoSpeed=a,r.style.willChange="transform"),s}var n,w,e,i,b,s,a,l,c,f,r,u,d,h,g,p,m=t.smoothTouch,v=t.onUpdate,S=t.onStop,T=t.smooth,_=t.onFocusIn,C=t.normalizeScroll,x=t.wholePixels,P=this,R=t.effectsPrefix||"",E=Z.getScrollFunc(L),k=1===Z.isTouch?!0===m?.8:parseFloat(m)||0:0===T||!1===T?0:parseFloat(T)||.8,A=k&&+t.speed||1,H=0,M=0,N=1,U=G(0),z={y:0},O="undefined"!=typeof ResizeObserver&&!1!==t.autoResize&&new ResizeObserver(function(){if(!Z.isRefreshing){var e=D(w)*A;e<-H&&Va(e),X.restart(!0)}});function refreshHeight(){return e=n.clientHeight,n.style.overflow="visible",q.style.height=L.innerHeight+(e-L.innerHeight)/A+"px",e-L.innerHeight}bb(),Z.addEventListener("killAll",bb),B.delayedCall(.5,function(){return N=0}),this.scrollTop=Va,this.scrollTo=function(e,t,r){var n=B.utils.clamp(0,D(),isNaN(e)?o.offset(e,r,!!t&&!f):+e);t?f?B.to(o,{duration:k,scrollTop:n,overwrite:"auto",ease:$}):E(n):Va(n)},this.offset=function(e,t,r){var n,o=(e=W(e)[0]).style.cssText,i=Z.create({trigger:e,start:t||"top top"});return b&&(N?Z.refresh():_a([i],!0)),n=i.start/(r?A:1),i.kill(!1),e.style.cssText=o,B.core.getCache(e).uncache=1,n},this.content=function(e){if(arguments.length){var t=W(e||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||q.children[0];return t!==n&&(c=(n=t).getAttribute("style")||"",O&&O.observe(n),B.set(n,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),k||B.set(n,{clearProps:"transform"})),this}return n},this.wrapper=function(e){return arguments.length?(w=W(e||"#smooth-wrapper")[0]||function _wrap(e){var t=I.querySelector(".ScrollSmoother-wrapper");return t||((t=I.createElement("div")).classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e)),t}(n),l=w.getAttribute("style")||"",refreshHeight(),B.set(w,k?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):w},this.effects=function(e,t){if(b=b||[],!e)return b.slice(0);(e=W(e)).forEach(function(e){for(var t=b.length;t--;)b[t].trigger===e&&b[t].kill()});t=t||{};var r,n,o=t.speed,i=t.lag,s=t.effectsPadding,a=[];for(r=0;r<e.length;r++)(n=fb(e[r],o,i,r,s))&&a.push(n);return b.push.apply(b,a),a},this.sections=function(e,t){if(s=s||[],!e)return s.slice(0);var r=W(e).map(function(t){return Z.create({trigger:t,start:"top 120%",end:"bottom -20%",onToggle:function onToggle(e){t.style.opacity=e.isActive?"1":"0",t.style.pointerEvents=e.isActive?"all":"none"}})});return t&&t.add?s.push.apply(s,r):s=r.slice(0),r},this.content(t.content),this.wrapper(t.wrapper),this.render=function(e){return Ua(e||0===e?e:H)},this.getVelocity=function(){return U.getVelocity(-H)},Z.scrollerProxy(w,{scrollTop:Va,scrollHeight:function scrollHeight(){return refreshHeight()&&q.scrollHeight},fixedMarkers:!1!==t.fixedMarkers&&!!k,content:n,getBoundingClientRect:function getBoundingClientRect(){return{top:0,left:0,width:L.innerWidth,height:L.innerHeight}}}),Z.defaults({scroller:w});var V=Z.getAll().filter(function(e){return e.scroller===L||e.scroller===w});V.forEach(function(e){return e.revert(!0,!0)}),i=Z.create({animation:B.fromTo(z,{y:function y(){return h=0}},{y:function y(){return h=1,-refreshHeight()},immediateRender:!1,ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function onUpdate(){if(h){var e=g;e&&(Ta(i),z.y=H),Ua(z.y,e),Pa(),v&&!f&&v(P)}}}),onRefreshInit:function onRefreshInit(e){if(!ScrollSmoother.isRefreshing){if(ScrollSmoother.isRefreshing=!0,b){var t=Z.getAll().filter(function(e){return!!e.pin});b.forEach(function(r){r.vars.pinnedContainer||t.forEach(function(e){if(e.pin.contains(r.trigger)){var t=r.vars;t.pinnedContainer=e.pin,r.vars=null,r.init(t,r.animation)}})})}var r=e.getTween();d=r&&r._end>r._dp._time,u=H,z.y=0,k&&(1===Z.isTouch&&(w.style.position="absolute"),w.scrollTop=0,1===Z.isTouch&&(w.style.position="fixed"))}},onRefresh:function onRefresh(e){e.animation.invalidate(),e.setPositions(e.start,refreshHeight()/A),d||Ta(e),z.y=-E()*A,Ua(z.y),N||(d&&(g=!1),e.animation.progress(B.utils.clamp(0,1,u/A/-e.end))),d&&(e.progress-=.001,e.update()),ScrollSmoother.isRefreshing=!1},id:"ScrollSmoother",scroller:L,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function end(){return refreshHeight()/A},onScrubComplete:function onScrubComplete(){U.reset(),S&&S(o)},scrub:k||!0}),this.smooth=function(e){return arguments.length&&(A=(k=e||0)&&+t.speed||1,i.scrubDuration(e)),i.getTween()?i.getTween().duration():0},i.getTween()&&(i.getTween().vars.ease=t.ease||$),this.scrollTrigger=i,t.effects&&this.effects(!0===t.effects?"[data-"+R+"speed], [data-"+R+"lag]":t.effects,{effectsPadding:t.effectsPadding}),t.sections&&this.sections(!0===t.sections?"[data-section]":t.sections),V.forEach(function(e){e.vars.scroller=w,e.revert(!1,!0),e.init(e.vars,e.animation)}),this.paused=function(e,t){return arguments.length?(!!f!==e&&(e?(i.getTween()&&i.getTween().pause(),E(-H/A),U.reset(),(r=Z.normalizeScroll())&&r.disable(),(f=Z.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function onChangeY(){return Va(-H)}})).nested=J(j,"wheel,touch,scroll",!0,!1!==t)):(f.nested.kill(),f.kill(),f=0,r&&r.enable(),i.progress=(-H/A-i.start)/(i.end-i.start),Ta(i))),this):!!f},this.kill=this.revert=function(){o.paused(!1),Ta(i),i.kill();for(var e=(b||[]).concat(s||[]),t=e.length;t--;)e[t].kill();Z.scrollerProxy(w),Z.removeEventListener("killAll",bb),Z.removeEventListener("refresh",ab),w.style.cssText=l,n.style.cssText=c;var r=Z.defaults({});r&&r.scroller===w&&Z.defaults({scroller:L}),o.normalizer&&Z.normalizeScroll(!1),clearInterval(a),K=null,O&&O.disconnect(),q.style.removeProperty("height"),L.removeEventListener("focusin",Ya)},this.refresh=function(e,t){return i.refresh(e,t)},C&&(this.normalizer=Z.normalizeScroll(!0===C?{debounce:!0,content:!k&&n}:C)),Z.config(t),"overscrollBehavior"in L.getComputedStyle(q)&&B.set([q,j],{overscrollBehavior:"none"}),"scrollBehavior"in L.getComputedStyle(q)&&B.set([q,j],{scrollBehavior:"auto"}),L.addEventListener("focusin",Ya),a=setInterval(Pa,250),"loading"===I.readyState||requestAnimationFrame(function(){return Z.refresh()})}r.version="3.12.4",r.create=function(e){return K&&e&&K.content()===W(e.content)[0]?K:new r(e)},r.get=function(){return K},t()&&B.registerPlugin(r),e.ScrollSmoother=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(){return"undefined"!=typeof window}function t(){return B||s()&&(B=window.gsap)&&B.registerPlugin&&B}function w(){return String.fromCharCode.apply(null,arguments)}function D(e){return Z.maxScroll(e||L)}var B,F,L,I,j,q,W,Y,Z,K,$,G,J,Q,X,i="ScrollSmoother",a=w(103,114,101,101,110,115,111,99,107,46,99,111,109),l=w(103,115,97,112,46,99,111,109),c=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,r=(function(e){var t="undefined"!=typeof window,r=0===(t?window.location.href:"").indexOf(w(102,105,108,101,58,47,47))||-1!==e.indexOf(w(108,111,99,97,108,104,111,115,116))||c.test(e)||(t?window.location.hostname:"").split(".").pop()===w(108,111,99,97,108),n=[a,l,w(99,111,100,101,112,101,110,46,105,111),w(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),w(99,111,100,101,112,101,110,46,100,101,118),w(99,111,100,101,112,101,110,46,97,112,112),w(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),w(112,101,110,115,46,99,108,111,117,100),w(99,115,115,45,116,114,105,99,107,115,46,99,111,109),w(99,100,112,110,46,105,111),w(112,101,110,115,46,105,111),w(103,97,110,110,111,110,46,116,118),w(99,111,100,101,99,97,110,121,111,110,46,110,101,116),w(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),w(99,101,114,101,98,114,97,120,46,99,111,46,117,107),w(116,121,109,112,97,110,117,115,46,110,101,116),w(116,119,101,101,110,109,97,120,46,99,111,109),w(112,108,110,107,114,46,99,111),w(104,111,116,106,97,114,46,99,111,109),w(119,101,98,112,97,99,107,98,105,110,46,99,111,109),w(97,114,99,104,105,118,101,46,111,114,103),w(99,111,100,101,115,97,110,100,98,111,120,46,105,111),w(99,115,98,46,97,112,112),w(115,116,97,99,107,98,108,105,116,122,46,99,111,109),w(115,116,97,99,107,98,108,105,116,122,46,105,111),w(99,111,100,105,101,114,46,105,111),w(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),w(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),w(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),w(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),w(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),w(106,115,102,105,100,100,108,101,46,110,101,116)],o=n.length;for(setTimeout(function checkWarn(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof B?B:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(w(37,99,87,97,114,110,105,110,103),w(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(w(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+i+w(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(w(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),w(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--o;)if(-1!==e.indexOf(n[o]))return;r||setTimeout(function(){t&&(window.location.href=w(104,116,116,112,115,58,47,47)+a+w(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+i+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),ScrollSmoother.register=function register(e){return F||(B=e||t(),s()&&window.document&&(L=window,I=document,j=I.documentElement,q=I.body),B&&(W=B.utils.toArray,Y=B.utils.clamp,$=B.parseEase("expo"),Q=B.core.context||function(){},Z=B.core.globals().ScrollTrigger,B.core.globals("ScrollSmoother",ScrollSmoother),q&&Z&&(X=B.delayedCall(.2,function(){return Z.isRefreshing||K&&K.refresh()}).pause(),G=Z.core._getVelocityProp,J=Z.core._inputObserver,ScrollSmoother.refresh=Z.refresh,F=1))),F},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(ScrollSmoother,[{key:"progress",get:function get(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),ScrollSmoother);function ScrollSmoother(t){var o=this;F||ScrollSmoother.register(B)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),t=this.vars=t||{},K&&K.kill(),Q(K=this);function Pa(){return U.update(-H)}function Ra(){return n.style.overflow="visible"}function Ta(e){e.update();var t=e.getTween();t&&(t.pause(),t._time=t._dur,t._tTime=t._tDur),g=!1,e.animation.progress(e.progress,!0)}function Ua(e,t){(e!==H&&!f||t)&&(x&&(e=Math.round(e)),k&&(n.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+e+", 0, 1)",n._gsap.y=e+"px"),M=e-H,H=e,Z.isUpdating||ScrollSmoother.isRefreshing||Z.update())}function Va(e){return arguments.length?(e<0&&(e=0),z.y=-e,g=!0,f?H=-e:Ua(-e),Z.isRefreshing?i.update():E(e/A),this):-H}function Ya(e){w.scrollTop=0,e.target.contains&&e.target.contains(w)||_&&!1===_(o,e)||(Z.isInViewport(e.target)||e.target===p||o.scrollTo(e.target,!1,"center center"),p=e.target)}function Za(t,e){if(t<e.start)return t;var r=isNaN(e.ratio)?1:e.ratio,n=e.end-e.start,o=t-e.start,i=e.offset||0,s=e.pins||[],a=s.offset||0,l=e._startClamp&&e.start<=0||e.pins&&e.pins.offset?0:e._endClamp&&e.end===D()?1:.5;return s.forEach(function(e){n-=e.distance,e.nativeStart<=t&&(o-=e.distance)}),a&&(o*=(n-a/r)/n),t+(o-i*l)/r-o}function _a(t,r){b.forEach(function(e){return function adjustEffectRelatedTriggers(e,t,r){r||(e.pins.length=e.pins.offset=0);var n,o,i,s,a,l,c,f,u=e.pins,d=e.markers;for(c=0;c<t.length;c++)if(f=t[c],e.trigger&&f.trigger&&e!==f&&(f.trigger===e.trigger||f.pinnedContainer===e.trigger||e.trigger.contains(f.trigger))&&(a=f._startNative||f._startClamp||f.start,l=f._endNative||f._endClamp||f.end,i=Za(a,e),s=f.pin&&0<l?i+(l-a):Za(l,e),f.setPositions(i,s,!0,(f._startClamp?Math.max(0,i):i)-a),f.markerStart&&d.push(B.quickSetter([f.markerStart,f.markerEnd],"y","px")),f.pin&&0<f.end&&!r)){if(n=f.end-f.start,o=e._startClamp&&f.start<0){if(0<e.start)return e.setPositions(0,e.end+(e._startNative-e.start),!0),void adjustEffectRelatedTriggers(e,t);n+=f.start,u.offset=-f.start}u.push({start:f.start,nativeStart:a,end:f.end,distance:n,trig:f}),e.setPositions(e.start,e.end+(o?-f.start:n),!0)}}(e,t,r)})}function ab(){Ra(),requestAnimationFrame(Ra),b&&(Z.getAll().forEach(function(e){e._startNative=e.start,e._endNative=e.end}),b.forEach(function(e){var t=e._startClamp||e.start,r=e.autoSpeed?Math.min(D(),e.end):t+Math.abs((e.end-t)/e.ratio),n=r-e.end;if((r-=n/2)<(t-=n/2)){var o=t;t=r,r=o}e._startClamp&&t<0?(n=(r=e.ratio<0?D():e.end/e.ratio)-e.end,t=0):(e.ratio<0||e._endClamp&&r>=D())&&(n=((r=D())-(t=e.ratio<0||1<e.ratio?0:r-(r-e.start)/e.ratio))*e.ratio-(e.end-e.start)),e.offset=n||1e-4,e.pins.length=e.pins.offset=0,e.setPositions(t,r,!0)}),_a(Z.sort())),U.reset()}function bb(){return Z.addEventListener("refresh",ab)}function cb(){return b&&b.forEach(function(e){return e.vars.onRefresh(e)})}function db(){return b&&b.forEach(function(e){return e.vars.onRefreshInit(e)}),cb}function eb(r,n,o,i){return function(){var e="function"==typeof n?n(o,i):n;e||0===e||(e=i.getAttribute("data-"+R+r)||("speed"===r?1:0)),i.setAttribute("data-"+R+r,e);var t="clamp("===(e+"").substr(0,6);return{clamp:t,value:t?e.substr(6,e.length-7):e}}}function fb(r,e,t,n,o){function qc(){e=u(),t=parseFloat(d().value),i=parseFloat(e.value)||1,a="auto"===e.value,c=a||s&&s._startClamp&&s.start<=0||p.offset?0:s&&s._endClamp&&s.end===D()?1:.5,l&&l.kill(),l=t&&B.to(r,{ease:$,overwrite:!1,y:"+=0",duration:t}),s&&(s.ratio=i,s.autoSpeed=a)}function rc(){g.y=h+"px",g.renderTransform(1),qc()}function uc(e){if(a){rc();var t=function _autoDistance(e,t){var r,n,o=e.parentNode||j,i=e.getBoundingClientRect(),s=o.getBoundingClientRect(),a=s.top-i.top,l=s.bottom-i.bottom,c=(Math.abs(a)>Math.abs(l)?a:l)/(1-t),f=-c*t;return 0<c&&(n=.5==(r=s.height/(L.innerHeight+s.height))?2*s.height:2*Math.min(s.height,Math.abs(-c*r/(2*r-1)))*(t||1),f+=t?-n*t:-n/2,c+=n),{change:c,offset:f}}(r,Y(0,1,-e.start/(e.end-e.start)));v=t.change,f=t.offset}else f=p.offset||0,v=(e.end-e.start-f)*(1-i);p.forEach(function(e){return v-=e.distance*(1-i)}),e.offset=v||.001,e.vars.onUpdate(e),l&&l.progress(1)}o=("function"==typeof o?o(n,r):o)||0;var i,s,a,l,c,f,u=eb("speed",e,n,r),d=eb("lag",t,n,r),h=B.getProperty(r,"y"),g=r._gsap,p=[],m=[],v=0;return qc(),(1!==i||a||l)&&(uc(s=Z.create({trigger:a?r.parentNode:r,start:function start(){return e.clamp?"clamp(top bottom+="+o+")":"top bottom+="+o},end:function end(){return e.value<0?"max":e.clamp?"clamp(bottom top-="+o+")":"bottom top-="+o},scroller:w,scrub:!0,refreshPriority:-999,onRefreshInit:rc,onRefresh:uc,onKill:function onKill(e){var t=b.indexOf(e);0<=t&&b.splice(t,1),rc()},onUpdate:function onUpdate(e){var t,r,n,o=h+v*(e.progress-c),i=p.length,s=0;if(e.offset){if(i){for(r=-H,n=e.end;i--;){if((t=p[i]).trig.isActive||r>=t.start&&r<=t.end)return void(l&&(t.trig.progress+=t.trig.direction<0?.001:-.001,t.trig.update(0,0,1),l.resetTo("y",parseFloat(g.y),-M,!0),N&&l.progress(1)));r>t.end&&(s+=t.distance),n-=t.distance}o=h+s+v*((B.utils.clamp(e.start,e.end,r)-e.start-s)/(n-e.start)-c)}m.length&&!a&&m.forEach(function(e){return e(o-s)}),o=function _round(e){return Math.round(1e5*e)/1e5||0}(o+f),l?(l.resetTo("y",o,-M,!0),N&&l.progress(1)):(g.y=o+"px",g.renderTransform(1))}}})),B.core.getCache(s.trigger).stRevert=db,s.startY=h,s.pins=p,s.markers=m,s.ratio=i,s.autoSpeed=a,r.style.willChange="transform"),s}var n,w,e,i,b,s,a,l,c,f,r,u,d,h,g,p,m=t.smoothTouch,v=t.onUpdate,S=t.onStop,T=t.smooth,_=t.onFocusIn,C=t.normalizeScroll,x=t.wholePixels,P=this,R=t.effectsPrefix||"",E=Z.getScrollFunc(L),k=1===Z.isTouch?!0===m?.8:parseFloat(m)||0:0===T||!1===T?0:parseFloat(T)||.8,A=k&&+t.speed||1,H=0,M=0,N=1,U=G(0),z={y:0},O="undefined"!=typeof ResizeObserver&&!1!==t.autoResize&&new ResizeObserver(function(){if(!Z.isRefreshing){var e=D(w)*A;e<-H&&Va(e),X.restart(!0)}});function refreshHeight(){return e=n.clientHeight,n.style.overflow="visible",q.style.height=L.innerHeight+(e-L.innerHeight)/A+"px",e-L.innerHeight}bb(),Z.addEventListener("killAll",bb),B.delayedCall(.5,function(){return N=0}),this.scrollTop=Va,this.scrollTo=function(e,t,r){var n=B.utils.clamp(0,D(),isNaN(e)?o.offset(e,r,!!t&&!f):+e);t?f?B.to(o,{duration:k,scrollTop:n,overwrite:"auto",ease:$}):E(n):Va(n)},this.offset=function(e,t,r){var n,o=(e=W(e)[0]).style.cssText,i=Z.create({trigger:e,start:t||"top top"});return b&&(N?Z.refresh():_a([i],!0)),n=i.start/(r?A:1),i.kill(!1),e.style.cssText=o,B.core.getCache(e).uncache=1,n},this.content=function(e){if(arguments.length){var t=W(e||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||q.children[0];return t!==n&&(c=(n=t).getAttribute("style")||"",O&&O.observe(n),B.set(n,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),k||B.set(n,{clearProps:"transform"})),this}return n},this.wrapper=function(e){return arguments.length?(w=W(e||"#smooth-wrapper")[0]||function _wrap(e){var t=I.querySelector(".ScrollSmoother-wrapper");return t||((t=I.createElement("div")).classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e)),t}(n),l=w.getAttribute("style")||"",refreshHeight(),B.set(w,k?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):w},this.effects=function(e,t){if(b=b||[],!e)return b.slice(0);(e=W(e)).forEach(function(e){for(var t=b.length;t--;)b[t].trigger===e&&b[t].kill()});t=t||{};var r,n,o=t.speed,i=t.lag,s=t.effectsPadding,a=[];for(r=0;r<e.length;r++)(n=fb(e[r],o,i,r,s))&&a.push(n);return b.push.apply(b,a),!1!==t.refresh&&Z.refresh(),a},this.sections=function(e,t){if(s=s||[],!e)return s.slice(0);var r=W(e).map(function(t){return Z.create({trigger:t,start:"top 120%",end:"bottom -20%",onToggle:function onToggle(e){t.style.opacity=e.isActive?"1":"0",t.style.pointerEvents=e.isActive?"all":"none"}})});return t&&t.add?s.push.apply(s,r):s=r.slice(0),r},this.content(t.content),this.wrapper(t.wrapper),this.render=function(e){return Ua(e||0===e?e:H)},this.getVelocity=function(){return U.getVelocity(-H)},Z.scrollerProxy(w,{scrollTop:Va,scrollHeight:function scrollHeight(){return refreshHeight()&&q.scrollHeight},fixedMarkers:!1!==t.fixedMarkers&&!!k,content:n,getBoundingClientRect:function getBoundingClientRect(){return{top:0,left:0,width:L.innerWidth,height:L.innerHeight}}}),Z.defaults({scroller:w});var V=Z.getAll().filter(function(e){return e.scroller===L||e.scroller===w});V.forEach(function(e){return e.revert(!0,!0)}),i=Z.create({animation:B.fromTo(z,{y:function y(){return h=0}},{y:function y(){return h=1,-refreshHeight()},immediateRender:!1,ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function onUpdate(){if(h){var e=g;e&&(Ta(i),z.y=H),Ua(z.y,e),Pa(),v&&!f&&v(P)}}}),onRefreshInit:function onRefreshInit(e){if(!ScrollSmoother.isRefreshing){if(ScrollSmoother.isRefreshing=!0,b){var t=Z.getAll().filter(function(e){return!!e.pin});b.forEach(function(r){r.vars.pinnedContainer||t.forEach(function(e){if(e.pin.contains(r.trigger)){var t=r.vars;t.pinnedContainer=e.pin,r.vars=null,r.init(t,r.animation)}})})}var r=e.getTween();d=r&&r._end>r._dp._time,u=H,z.y=0,k&&(1===Z.isTouch&&(w.style.position="absolute"),w.scrollTop=0,1===Z.isTouch&&(w.style.position="fixed"))}},onRefresh:function onRefresh(e){e.animation.invalidate(),e.setPositions(e.start,refreshHeight()/A),d||Ta(e),z.y=-E()*A,Ua(z.y),N||(d&&(g=!1),e.animation.progress(B.utils.clamp(0,1,u/A/-e.end))),d&&(e.progress-=.001,e.update()),ScrollSmoother.isRefreshing=!1},id:"ScrollSmoother",scroller:L,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function end(){return refreshHeight()/A},onScrubComplete:function onScrubComplete(){U.reset(),S&&S(o)},scrub:k||!0}),this.smooth=function(e){return arguments.length&&(A=(k=e||0)&&+t.speed||1,i.scrubDuration(e)),i.getTween()?i.getTween().duration():0},i.getTween()&&(i.getTween().vars.ease=t.ease||$),this.scrollTrigger=i,t.effects&&this.effects(!0===t.effects?"[data-"+R+"speed], [data-"+R+"lag]":t.effects,{effectsPadding:t.effectsPadding,refresh:!1}),t.sections&&this.sections(!0===t.sections?"[data-section]":t.sections),V.forEach(function(e){e.vars.scroller=w,e.revert(!1,!0),e.init(e.vars,e.animation)}),this.paused=function(e,t){return arguments.length?(!!f!==e&&(e?(i.getTween()&&i.getTween().pause(),E(-H/A),U.reset(),(r=Z.normalizeScroll())&&r.disable(),(f=Z.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function onChangeY(){return Va(-H)}})).nested=J(j,"wheel,touch,scroll",!0,!1!==t)):(f.nested.kill(),f.kill(),f=0,r&&r.enable(),i.progress=(-H/A-i.start)/(i.end-i.start),Ta(i))),this):!!f},this.kill=this.revert=function(){o.paused(!1),Ta(i),i.kill();for(var e=(b||[]).concat(s||[]),t=e.length;t--;)e[t].kill();Z.scrollerProxy(w),Z.removeEventListener("killAll",bb),Z.removeEventListener("refresh",ab),w.style.cssText=l,n.style.cssText=c;var r=Z.defaults({});r&&r.scroller===w&&Z.defaults({scroller:L}),o.normalizer&&Z.normalizeScroll(!1),clearInterval(a),K=null,O&&O.disconnect(),q.style.removeProperty("height"),L.removeEventListener("focusin",Ya)},this.refresh=function(e,t){return i.refresh(e,t)},C&&(this.normalizer=Z.normalizeScroll(!0===C?{debounce:!0,content:!k&&n}:C)),Z.config(t),"overscrollBehavior"in L.getComputedStyle(q)&&B.set([q,j],{overscrollBehavior:"none"}),"scrollBehavior"in L.getComputedStyle(q)&&B.set([q,j],{scrollBehavior:"auto"}),L.addEventListener("focusin",Ya),a=setInterval(Pa,250),"loading"===I.readyState||requestAnimationFrame(function(){return Z.refresh()})}r.version="3.12.5",r.create=function(e){return K&&e&&K.content()===W(e.content)[0]?K:new r(e)},r.get=function(){return K},t()&&B.registerPlugin(r),e.ScrollSmoother=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* ScrollToPlugin 3.12.4 | ||
* ScrollToPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function l(){return"undefined"!=typeof window}function m(){return f||l()&&(f=window.gsap)&&f.registerPlugin&&f}function n(e){return"string"==typeof e}function o(e){return"function"==typeof e}function p(e,t){var o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return e===T||e===i||e===c?Math.max(i[n],c[n])-(T["inner"+o]||i[r]||c[r]):e[n]-e["offset"+o]}function q(e,t){var o="scroll"+("x"===t?"Left":"Top");return e===T&&(null!=e.pageXOffset?o="page"+t.toUpperCase()+"Offset":e=null!=i[o]?i:c),function(){return e[o]}}function s(e,t){if(!(e=y(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var o=e.getBoundingClientRect(),n=!t||t===T||t===c,r=n?{top:i.clientTop-(T.pageYOffset||i.scrollTop||c.scrollTop||0),left:i.clientLeft-(T.pageXOffset||i.scrollLeft||c.scrollLeft||0)}:t.getBoundingClientRect(),l={x:o.left-r.left,y:o.top-r.top};return!n&&t&&(l.x+=q(t,"x")(),l.y+=q(t,"y")()),l}function t(e,t,o,r,l){return isNaN(e)||"object"==typeof e?n(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+r-l:"max"===e?p(t,o)-l:Math.min(p(t,o),s(e,t)[o]-l):parseFloat(e)-l}function u(){f=m(),l()&&f&&"undefined"!=typeof document&&document.body&&(T=window,c=document.body,i=document.documentElement,y=f.utils.toArray,f.config({autoKillThreshold:7}),h=f.config(),a=1)}var f,a,T,i,c,y,h,v,r={version:"3.12.4",name:"scrollTo",rawVars:1,register:function register(e){f=e,u()},init:function init(e,r,l,s,i){a||u();var p=this,c=f.getProperty(e,"scrollSnapType");p.isWin=e===T,p.target=e,p.tween=l,r=function _clean(e,t,r,l){if(o(e)&&(e=e(t,r,l)),"object"!=typeof e)return n(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var s,i={};for(s in e)i[s]="onAutoKill"!==s&&o(e[s])?e[s](t,r,l):e[s];return i}(r,s,e,i),p.vars=r,p.autoKill=!!r.autoKill,p.getX=q(e,"x"),p.getY=q(e,"y"),p.x=p.xPrev=p.getX(),p.y=p.yPrev=p.getY(),v=v||f.core.globals().ScrollTrigger,"smooth"===f.getProperty(e,"scrollBehavior")&&f.set(e,{scrollBehavior:"auto"}),c&&"none"!==c&&(p.snap=1,p.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=r.x?(p.add(p,"x",p.x,t(r.x,e,"x",p.x,r.offsetX||0),s,i),p._props.push("scrollTo_x")):p.skipX=1,null!=r.y?(p.add(p,"y",p.y,t(r.y,e,"y",p.y,r.offsetY||0),s,i),p._props.push("scrollTo_y")):p.skipY=1},render:function render(e,t){for(var o,n,r,l,s,i=t._pt,c=t.target,u=t.tween,f=t.autoKill,a=t.xPrev,y=t.yPrev,d=t.isWin,g=t.snap,x=t.snapInline;i;)i.r(e,i.d),i=i._next;o=d||!t.skipX?t.getX():a,r=(n=d||!t.skipY?t.getY():y)-y,l=o-a,s=h.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),f&&(!t.skipX&&(s<l||l<-s)&&o<p(c,"x")&&(t.skipX=1),!t.skipY&&(s<r||r<-s)&&n<p(c,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(u.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(u,t.vars.onAutoKillParams||[]))),d?T.scrollTo(t.skipX?o:t.x,t.skipY?n:t.y):(t.skipY||(c.scrollTop=t.y),t.skipX||(c.scrollLeft=t.x)),!g||1!==e&&0!==e||(n=c.scrollTop,o=c.scrollLeft,x?c.style.scrollSnapType=x:c.style.removeProperty("scroll-snap-type"),c.scrollTop=n+1,c.scrollLeft=o+1,c.scrollTop=n,c.scrollLeft=o),t.xPrev=t.x,t.yPrev=t.y,v&&v.update()},kill:function kill(e){var t="scrollTo"===e,o=this._props.indexOf(e);return!t&&"scrollTo_x"!==e||(this.skipX=1),!t&&"scrollTo_y"!==e||(this.skipY=1),-1<o&&this._props.splice(o,1),!this._props.length}};r.max=p,r.getOffset=s,r.buildGetter=q,m()&&f.registerPlugin(r),e.ScrollToPlugin=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function l(){return"undefined"!=typeof window}function m(){return f||l()&&(f=window.gsap)&&f.registerPlugin&&f}function n(e){return"string"==typeof e}function o(e){return"function"==typeof e}function p(e,t){var o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return e===T||e===i||e===c?Math.max(i[n],c[n])-(T["inner"+o]||i[r]||c[r]):e[n]-e["offset"+o]}function q(e,t){var o="scroll"+("x"===t?"Left":"Top");return e===T&&(null!=e.pageXOffset?o="page"+t.toUpperCase()+"Offset":e=null!=i[o]?i:c),function(){return e[o]}}function s(e,t){if(!(e=y(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var o=e.getBoundingClientRect(),n=!t||t===T||t===c,r=n?{top:i.clientTop-(T.pageYOffset||i.scrollTop||c.scrollTop||0),left:i.clientLeft-(T.pageXOffset||i.scrollLeft||c.scrollLeft||0)}:t.getBoundingClientRect(),l={x:o.left-r.left,y:o.top-r.top};return!n&&t&&(l.x+=q(t,"x")(),l.y+=q(t,"y")()),l}function t(e,t,o,r,l){return isNaN(e)||"object"==typeof e?n(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+r-l:"max"===e?p(t,o)-l:Math.min(p(t,o),s(e,t)[o]-l):parseFloat(e)-l}function u(){f=m(),l()&&f&&"undefined"!=typeof document&&document.body&&(T=window,c=document.body,i=document.documentElement,y=f.utils.toArray,f.config({autoKillThreshold:7}),h=f.config(),a=1)}var f,a,T,i,c,y,h,v,r={version:"3.12.5",name:"scrollTo",rawVars:1,register:function register(e){f=e,u()},init:function init(e,r,l,s,i){a||u();var p=this,c=f.getProperty(e,"scrollSnapType");p.isWin=e===T,p.target=e,p.tween=l,r=function _clean(e,t,r,l){if(o(e)&&(e=e(t,r,l)),"object"!=typeof e)return n(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var s,i={};for(s in e)i[s]="onAutoKill"!==s&&o(e[s])?e[s](t,r,l):e[s];return i}(r,s,e,i),p.vars=r,p.autoKill=!!r.autoKill,p.getX=q(e,"x"),p.getY=q(e,"y"),p.x=p.xPrev=p.getX(),p.y=p.yPrev=p.getY(),v=v||f.core.globals().ScrollTrigger,"smooth"===f.getProperty(e,"scrollBehavior")&&f.set(e,{scrollBehavior:"auto"}),c&&"none"!==c&&(p.snap=1,p.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=r.x?(p.add(p,"x",p.x,t(r.x,e,"x",p.x,r.offsetX||0),s,i),p._props.push("scrollTo_x")):p.skipX=1,null!=r.y?(p.add(p,"y",p.y,t(r.y,e,"y",p.y,r.offsetY||0),s,i),p._props.push("scrollTo_y")):p.skipY=1},render:function render(e,t){for(var o,n,r,l,s,i=t._pt,c=t.target,u=t.tween,f=t.autoKill,a=t.xPrev,y=t.yPrev,d=t.isWin,g=t.snap,x=t.snapInline;i;)i.r(e,i.d),i=i._next;o=d||!t.skipX?t.getX():a,r=(n=d||!t.skipY?t.getY():y)-y,l=o-a,s=h.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),f&&(!t.skipX&&(s<l||l<-s)&&o<p(c,"x")&&(t.skipX=1),!t.skipY&&(s<r||r<-s)&&n<p(c,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(u.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(u,t.vars.onAutoKillParams||[]))),d?T.scrollTo(t.skipX?o:t.x,t.skipY?n:t.y):(t.skipY||(c.scrollTop=t.y),t.skipX||(c.scrollLeft=t.x)),!g||1!==e&&0!==e||(n=c.scrollTop,o=c.scrollLeft,x?c.style.scrollSnapType=x:c.style.removeProperty("scroll-snap-type"),c.scrollTop=n+1,c.scrollLeft=o+1,c.scrollTop=n,c.scrollLeft=o),t.xPrev=t.x,t.yPrev=t.y,v&&v.update()},kill:function kill(e){var t="scrollTo"===e,o=this._props.indexOf(e);return!t&&"scrollTo_x"!==e||(this.skipX=1),!t&&"scrollTo_y"!==e||(this.skipY=1),-1<o&&this._props.splice(o,1),!this._props.length}};r.max=p,r.getOffset=s,r.buildGetter=q,m()&&f.registerPlugin(r),e.ScrollToPlugin=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* ScrollTrigger 3.12.4 | ||
* ScrollTrigger 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(){return _e||"undefined"!=typeof window&&(_e=window.gsap)&&_e.registerPlugin&&_e}function z(e,t){return~qe.indexOf(e)&&qe[qe.indexOf(e)+1][t]}function A(e){return!!~t.indexOf(e)}function B(e,t,r,n,o){return e.addEventListener(t,r,{passive:!n,capture:!!o})}function C(e,t,r,n){return e.removeEventListener(t,r,!!n)}function F(){return Be&&Be.isPressed||Ie.cache++}function G(r,n){function dd(e){if(e||0===e){o&&(Ce.history.scrollRestoration="manual");var t=Be&&Be.isPressed;e=dd.v=Math.round(e)||(Be&&Be.iOS?1:0),r(e),dd.cacheID=Ie.cache,t&&i("ss",e)}else(n||Ie.cache!==dd.cacheID||i("ref"))&&(dd.cacheID=Ie.cache,dd.v=r());return dd.v+dd.offset}return dd.offset=0,r&&dd}function J(e,t){return(t&&t._ctx&&t._ctx.selector||_e.utils.toArray)(e)[0]||("string"==typeof e&&!1!==_e.config().nullTargetWarn?console.warn("Element not found:",e):null)}function K(t,e){var r=e.s,n=e.sc;A(t)&&(t=Se.scrollingElement||ke);var o=Ie.indexOf(t),i=n===Ye.sc?1:2;~o||(o=Ie.push(t)-1),Ie[o+i]||B(t,"scroll",F);var a=Ie[o+i],s=a||(Ie[o+i]=G(z(t,r),!0)||(A(t)?n:G(function(e){return arguments.length?t[r]=e:t[r]})));return s.target=t,a||(s.smooth="smooth"===_e.getProperty(t,"scrollBehavior")),s}function L(e,t,o){function Cd(e,t){var r=Le();t||n<r-s?(a=i,i=e,l=s,s=r):o?i+=e:i=a+(e-a)/(r-l)*(s-l)}var i=e,a=e,s=Le(),l=s,n=t||50,c=Math.max(500,3*n);return{update:Cd,reset:function reset(){a=i=o?0:i,l=s=0},getVelocity:function getVelocity(e){var t=l,r=a,n=Le();return!e&&0!==e||e===i||Cd(e),s===l||c<n-l?0:(i+(o?r:-r))/((o?n:s)-t)*1e3}}}function M(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function N(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r}function O(){(Oe=_e.core.globals().ScrollTrigger)&&Oe.core&&function _integrate(){var e=Oe.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,Ie),n.push.apply(n,qe),Ie=t,qe=n,i=function _bridge(e,t){return r[e](t)}}()}function P(e){return _e=e||r(),!Te&&_e&&"undefined"!=typeof document&&document.body&&(Ce=window,ke=(Se=document).documentElement,Pe=Se.body,t=[Ce,Se,ke,Pe],_e.utils.clamp,De=_e.core.context||function(){},Ee="onpointerenter"in Pe?"pointer":"mouse",Me=k.isTouch=Ce.matchMedia&&Ce.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ce||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,Ae=k.eventTypes=("ontouchstart"in ke?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in ke?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return o=0},500),O(),Te=1),Te}var _e,Te,Ce,Se,ke,Pe,Me,Ee,Oe,t,Be,Ae,De,o=1,Re=[],Ie=[],qe=[],Le=Date.now,i=function _bridge(e,t){return t},n="scrollLeft",a="scrollTop",ze={s:n,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:G(function(e){return arguments.length?Ce.scrollTo(e,Ye.sc()):Ce.pageXOffset||Se[n]||ke[n]||Pe[n]||0})},Ye={s:a,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:ze,sc:G(function(e){return arguments.length?Ce.scrollTo(ze.sc(),e):Ce.pageYOffset||Se[a]||ke[a]||Pe[a]||0})};ze.op=Ye,Ie.cache=0;var k=(Observer.prototype.init=function init(e){Te||P(_e)||console.warn("Please gsap.registerPlugin(Observer)"),Oe||O();var o=e.tolerance,a=e.dragMinimum,t=e.type,i=e.target,r=e.lineHeight,n=e.debounce,s=e.preventDefault,l=e.onStop,c=e.onStopDelay,u=e.ignore,f=e.wheelSpeed,d=e.event,p=e.onDragStart,g=e.onDragEnd,h=e.onDrag,v=e.onPress,b=e.onRelease,m=e.onRight,y=e.onLeft,x=e.onUp,w=e.onDown,_=e.onChangeX,T=e.onChangeY,S=e.onChange,k=e.onToggleX,E=e.onToggleY,D=e.onHover,R=e.onHoverEnd,I=e.onMove,q=e.ignoreCheck,z=e.isNormalizer,Y=e.onGestureStart,H=e.onGestureEnd,X=e.onWheel,W=e.onEnable,V=e.onDisable,U=e.onClick,G=e.scrollSpeed,j=e.capture,Q=e.allowClicks,Z=e.lockAxis,$=e.onLockAxis;function bf(){return ye=Le()}function cf(e,t){return(se.event=e)&&u&&~u.indexOf(e.target)||t&&ge&&"touch"!==e.pointerType||q&&q(e,t)}function ef(){var e=se.deltaX=N(be),t=se.deltaY=N(me),r=Math.abs(e)>=o,n=Math.abs(t)>=o;S&&(r||n)&&S(se,e,t,be,me),r&&(m&&0<se.deltaX&&m(se),y&&se.deltaX<0&&y(se),_&&_(se),k&&se.deltaX<0!=le<0&&k(se),le=se.deltaX,be[0]=be[1]=be[2]=0),n&&(w&&0<se.deltaY&&w(se),x&&se.deltaY<0&&x(se),T&&T(se),E&&se.deltaY<0!=ce<0&&E(se),ce=se.deltaY,me[0]=me[1]=me[2]=0),(ne||re)&&(I&&I(se),re&&(h(se),re=!1),ne=!1),ie&&!(ie=!1)&&$&&$(se),oe&&(X(se),oe=!1),ee=0}function ff(e,t,r){be[r]+=e,me[r]+=t,se._vx.update(e),se._vy.update(t),n?ee=ee||requestAnimationFrame(ef):ef()}function gf(e,t){Z&&!ae&&(se.axis=ae=Math.abs(e)>Math.abs(t)?"x":"y",ie=!0),"y"!==ae&&(be[2]+=e,se._vx.update(e,!0)),"x"!==ae&&(me[2]+=t,se._vy.update(t,!0)),n?ee=ee||requestAnimationFrame(ef):ef()}function hf(e){if(!cf(e,1)){var t=(e=M(e,s)).clientX,r=e.clientY,n=t-se.x,o=r-se.y,i=se.isDragging;se.x=t,se.y=r,(i||Math.abs(se.startX-t)>=a||Math.abs(se.startY-r)>=a)&&(h&&(re=!0),i||(se.isDragging=!0),gf(n,o),i||p&&p(se))}}function lf(e){return e.touches&&1<e.touches.length&&(se.isGesturing=!0)&&Y(e,se.isDragging)}function mf(){return(se.isGesturing=!1)||H(se)}function nf(e){if(!cf(e)){var t=ue(),r=fe();ff((t-de)*G,(r-pe)*G,1),de=t,pe=r,l&&te.restart(!0)}}function of(e){if(!cf(e)){e=M(e,s),X&&(oe=!0);var t=(1===e.deltaMode?r:2===e.deltaMode?Ce.innerHeight:1)*f;ff(e.deltaX*t,e.deltaY*t,0),l&&!z&&te.restart(!0)}}function pf(e){if(!cf(e)){var t=e.clientX,r=e.clientY,n=t-se.x,o=r-se.y;se.x=t,se.y=r,ne=!0,l&&te.restart(!0),(n||o)&&gf(n,o)}}function qf(e){se.event=e,D(se)}function rf(e){se.event=e,R(se)}function sf(e){return cf(e)||M(e,s)&&U(se)}this.target=i=J(i)||ke,this.vars=e,u=u&&_e.utils.toArray(u),o=o||1e-9,a=a||0,f=f||1,G=G||1,t=t||"wheel,touch,pointer",n=!1!==n,r=r||parseFloat(Ce.getComputedStyle(Pe).lineHeight)||22;var ee,te,re,ne,oe,ie,ae,se=this,le=0,ce=0,ue=K(i,ze),fe=K(i,Ye),de=ue(),pe=fe(),ge=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===Ae[0],he=A(i),ve=i.ownerDocument||Se,be=[0,0,0],me=[0,0,0],ye=0,xe=se.onPress=function(e){cf(e,1)||e&&e.button||(se.axis=ae=null,te.pause(),se.isPressed=!0,e=M(e),le=ce=0,se.startX=se.x=e.clientX,se.startY=se.y=e.clientY,se._vx.reset(),se._vy.reset(),B(z?i:ve,Ae[1],hf,s,!0),se.deltaX=se.deltaY=0,v&&v(se))},we=se.onRelease=function(t){if(!cf(t,1)){C(z?i:ve,Ae[1],hf,!0);var e=!isNaN(se.y-se.startY),r=se.isDragging,n=r&&(3<Math.abs(se.x-se.startX)||3<Math.abs(se.y-se.startY)),o=M(t);!n&&e&&(se._vx.reset(),se._vy.reset(),s&&Q&&_e.delayedCall(.08,function(){if(300<Le()-ye&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(ve.createEvent){var e=ve.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Ce,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),se.isDragging=se.isGesturing=se.isPressed=!1,l&&r&&!z&&te.restart(!0),g&&r&&g(se),b&&b(se,n)}};te=se._dc=_e.delayedCall(c||.25,function onStopFunc(){se._vx.reset(),se._vy.reset(),te.pause(),l&&l(se)}).pause(),se.deltaX=se.deltaY=0,se._vx=L(0,50,!0),se._vy=L(0,50,!0),se.scrollX=ue,se.scrollY=fe,se.isDragging=se.isGesturing=se.isPressed=!1,De(this),se.enable=function(e){return se.isEnabled||(B(he?ve:i,"scroll",F),0<=t.indexOf("scroll")&&B(he?ve:i,"scroll",nf,s,j),0<=t.indexOf("wheel")&&B(i,"wheel",of,s,j),(0<=t.indexOf("touch")&&Me||0<=t.indexOf("pointer"))&&(B(i,Ae[0],xe,s,j),B(ve,Ae[2],we),B(ve,Ae[3],we),Q&&B(i,"click",bf,!1,!0),U&&B(i,"click",sf),Y&&B(ve,"gesturestart",lf),H&&B(ve,"gestureend",mf),D&&B(i,Ee+"enter",qf),R&&B(i,Ee+"leave",rf),I&&B(i,Ee+"move",pf)),se.isEnabled=!0,e&&e.type&&xe(e),W&&W(se)),se},se.disable=function(){se.isEnabled&&(Re.filter(function(e){return e!==se&&A(e.target)}).length||C(he?ve:i,"scroll",F),se.isPressed&&(se._vx.reset(),se._vy.reset(),C(z?i:ve,Ae[1],hf,!0)),C(he?ve:i,"scroll",nf,j),C(i,"wheel",of,j),C(i,Ae[0],xe,j),C(ve,Ae[2],we),C(ve,Ae[3],we),C(i,"click",bf,!0),C(i,"click",sf),C(ve,"gesturestart",lf),C(ve,"gestureend",mf),C(i,Ee+"enter",qf),C(i,Ee+"leave",rf),C(i,Ee+"move",pf),se.isEnabled=se.isPressed=se.isDragging=!1,V&&V(se))},se.kill=se.revert=function(){se.disable();var e=Re.indexOf(se);0<=e&&Re.splice(e,1),Be===se&&(Be=0)},Re.push(se),z&&A(i)&&(Be=se),se.enable(d)},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}k.version="3.12.4",k.create=function(e){return new k(e)},k.register=P,k.getAll=function(){return Re.slice()},k.getById=function(t){return Re.filter(function(e){return e.vars.id===t})[0]},r()&&_e.registerPlugin(k);function Ca(e,t,r){var n=lt(e)&&("clamp("===e.substr(0,6)||-1<e.indexOf("max"));return(r["_"+t+"Clamp"]=n)?e.substr(6,e.length-7):e}function Da(e,t){return!t||lt(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"}function Fa(){return Ge=1}function Ga(){return Ge=0}function Ha(e){return e}function Ia(e){return Math.round(1e5*e)/1e5||0}function Ja(){return"undefined"!=typeof window}function Ka(){return Fe||Ja()&&(Fe=window.gsap)&&Fe.registerPlugin&&Fe}function La(e){return!!~l.indexOf(e)}function Ma(e){return("Height"===e?T:He["inner"+e])||Xe["client"+e]||We["client"+e]}function Na(e){return z(e,"getBoundingClientRect")||(La(e)?function(){return Et.width=He.innerWidth,Et.height=T,Et}:function(){return xt(e)})}function Qa(e,t){var r=t.s,n=t.d2,o=t.d,i=t.a;return Math.max(0,(r="scroll"+n)&&(i=z(e,r))?i()-Na(e)()[o]:La(e)?(Xe[r]||We[r])-Ma(n):e[r]-e["offset"+n])}function Ra(e,t){for(var r=0;r<g.length;r+=3)t&&!~t.indexOf(g[r+1])||e(g[r],g[r+1],g[r+2])}function Ta(e){return"function"==typeof e}function Ua(e){return"number"==typeof e}function Va(e){return"object"==typeof e}function Wa(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()}function Xa(e,t){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return t(e)}):t(e);r&&r.totalTime&&(e.callbackAnimation=r)}}function mb(e){return He.getComputedStyle(e)}function ob(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function qb(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0}function rb(e){var t,r=[],n=e.labels,o=e.duration();for(t in n)r.push(n[t]/o);return r}function tb(o){var i=Fe.utils.snap(o),a=Array.isArray(o)&&o.slice(0).sort(function(e,t){return e-t});return a?function(e,t,r){var n;if(void 0===r&&(r=.001),!t)return i(e);if(0<t){for(e-=r,n=0;n<a.length;n++)if(a[n]>=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=i(e);return!t||Math.abs(n-e)<r||n-e<0==t<0?n:i(t<0?e-o:e+o)}}function vb(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function wb(e,t,r,n,o){return e.addEventListener(t,r,{passive:!n,capture:!!o})}function xb(e,t,r,n){return e.removeEventListener(t,r,!!n)}function yb(e,t,r){(r=r&&r.wheelHandler)&&(e(t,"wheel",r),e(t,"touchmove",r))}function Cb(e,t){if(lt(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in H?H[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function Db(e,t,r,n,o,i,a,s){var l=o.startColor,c=o.endColor,u=o.fontSize,f=o.indent,d=o.fontWeight,p=Ne.createElement("div"),g=La(r)||"fixed"===z(r,"pinType"),h=-1!==e.indexOf("scroller"),v=g?We:r,b=-1!==e.indexOf("start"),m=b?l:c,y="border-color:"+m+";font-size:"+u+";color:"+m+";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 y+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(y+=(n===Ye?I:q)+":"+(i+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=b,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=y,p.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+n.op.d2],X(p,0,n,b),p}function Ib(){return 34<it()-at&&(D=D||requestAnimationFrame(Z))}function Jb(){v&&v.isPressed&&!(v.startX>We.clientWidth)||(Ie.cache++,v?D=D||requestAnimationFrame(Z):Z(),at||U("scrollStart"),at=it())}function Kb(){y=He.innerWidth,m=He.innerHeight}function Lb(){Ie.cache++,Ke||h||Ne.fullscreenElement||Ne.webkitFullscreenElement||b&&y===He.innerWidth&&!(Math.abs(He.innerHeight-m)>.25*He.innerHeight)||c.restart(!0)}function Ob(){return xb(ne,"scrollEnd",Ob)||kt(!0)}function Rb(e){for(var t=0;t<j.length;t+=5)(!e||j[t+4]&&j[t+4].query===e)&&(j[t].style.cssText=j[t+1],j[t].getBBox&&j[t].setAttribute("transform",j[t+2]||""),j[t+3].uncache=1)}function Sb(e,t){var r;for(je=0;je<Tt.length;je++)!(r=Tt[je])||t&&r._ctx!==t||(e?r.kill(1):r.revert(!0,!0));S=!0,t&&Rb(t),t||U("revert")}function Tb(e,t){Ie.cache++,!t&&tt||Ie.forEach(function(e){return Ta(e)&&e.cacheID++&&(e.rec=0)}),lt(e)&&(He.history.scrollRestoration=w=e)}function Yb(){We.appendChild(_),T=!v&&_.offsetHeight||He.innerHeight,We.removeChild(_)}function Zb(t){return Je(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})}function gc(e,t,r,n){if(!e._gsap.swappedIn){for(var o,i=$.length,a=t.style,s=e.style;i--;)a[o=$[i]]=r[o];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[q]=s[I]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[ut]=qb(e,ze)+yt,a[ft]=qb(e,Ye)+yt,a[vt]=s[bt]=s.top=s.left="0",Mt(n),s[ut]=s.maxWidth=r[ut],s[ft]=s.maxHeight=r[ft],s[vt]=r[vt],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}}function jc(e){for(var t=ee.length,r=e.style,n=[],o=0;o<t;o++)n.push(ee[o],r[ee[o]]);return n.t=e,n}function mc(e,t,r,n,o,i,a,s,l,c,u,f,d,p){Ta(e)&&(e=e(s)),lt(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?Cb("0"+e.substr(3),r):0));var g,h,v,b=d?d.time():0;if(d&&d.seek(0),isNaN(e)||(e=+e),Ua(e))d&&(e=Fe.utils.mapRange(d.scrollTrigger.start,d.scrollTrigger.end,0,f,e)),a&&X(a,r,n,!0);else{Ta(t)&&(t=t(s));var m,y,x,w,_=(e||"0").split(" ");v=J(t,s)||We,(m=xt(v)||{})&&(m.left||m.top)||"none"!==mb(v).display||(w=v.style.display,v.style.display="block",m=xt(v),w?v.style.display=w:v.style.removeProperty("display")),y=Cb(_[0],m[n.d]),x=Cb(_[1]||"0",r),e=m[n.p]-l[n.p]-c+y+o-x,a&&X(a,x,n,r-x<20||a._isStart&&20<x),r-=r-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),i){var T=e+r,C=i._isStart;g="scroll"+n.d2,X(i,T,n,C&&20<T||!C&&(u?Math.max(We[g],Xe[g]):i.parentNode[g])<=T+1),u&&(l=xt(a),u&&(i.style[n.op.p]=l[n.op.p]-n.op.m-i._offset+yt))}return d&&v&&(g=xt(v),d.seek(f),h=xt(v),d._caScrollDist=g[n.p]-h[n.p],e=e/d._caScrollDist*f),d&&d.seek(b),d?e:Math.round(e)}function oc(e,t,r,n){if(e.parentNode!==t){var o,i,a=e.style;if(t===We){for(o in e._stOrig=a.cssText,i=mb(e))+o||re.test(o)||!i[o]||"string"!=typeof a[o]||"0"===o||(a[o]=i[o]);a.top=r,a.left=n}else a.cssText=e._stOrig;Fe.core.getCache(e).uncache=1,t.appendChild(e)}}function pc(r,e,n){var o=e,i=o;return function(e){var t=Math.round(r());return t!==o&&t!==i&&3<Math.abs(t-o)&&3<Math.abs(t-i)&&(e=t,n&&n()),i=o,o=e}}function qc(e,t,r){var n={};n[t.p]="+="+r,Fe.set(e,n)}function rc(c,e){function Bk(e,t,r,n,o){var i=Bk.tween,a=t.onComplete,s={};r=r||u();var l=pc(u,r,function(){i.kill(),Bk.tween=0});return o=n&&o||0,n=n||e-r,i&&i.kill(),t[f]=e,(t.modifiers=s)[f]=function(){return l(r+n*i.ratio+o*i.ratio*i.ratio)},t.onUpdate=function(){Ie.cache++,Bk.tween&&Z()},t.onComplete=function(){Bk.tween=0,a&&a.call(i)},i=Bk.tween=Fe.to(c,t)}var u=K(c,e),f="_scroll"+e.p2;return(c[f]=u).wheelHandler=function(){return Bk.tween&&Bk.tween.kill()&&(Bk.tween=0)},wb(c,"wheel",u.wheelHandler),ne.isTouch&&wb(c,"touchmove",u.wheelHandler),Bk}var Fe,s,He,Ne,Xe,We,l,c,Je,Ve,Ue,u,Ke,Ge,f,je,d,p,g,Qe,Ze,h,v,b,m,y,E,x,w,_,T,S,$e,et,D,tt,rt,nt,ot=1,it=Date.now,R=it(),at=0,st=0,lt=function _isString(e){return"string"==typeof e},ct=Math.abs,I="right",q="bottom",ut="width",ft="height",dt="Right",pt="Left",gt="Top",ht="Bottom",vt="padding",bt="margin",mt="Width",Y="Height",yt="px",xt=function _getBounds(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==mb(e)[f]&&Fe.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},wt={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},_t={toggleActions:"play",anticipatePin:0},H={top:0,left:0,center:.5,bottom:1,right:1},X=function _positionMarker(e,t,r,n){var o={display:"block"},i=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,o[r.a+"Percent"]=n?-100:0,o[r.a]=n?"1px":0,o["border"+i+mt]=1,o["border"+a+mt]=0,o[r.p]=t+"px",Fe.set(e,o)},Tt=[],Ct={},W={},V=[],U=function _dispatch(e){return W[e]&&W[e].map(function(e){return e()})||V},j=[],St=0,kt=function _refreshAll(e,t){if(!at||e||S){Yb(),tt=ne.isRefreshing=!0,Ie.forEach(function(e){return Ta(e)&&++e.cacheID&&(e.rec=e())});var r=U("refreshInit");Qe&&ne.sort(),t||Sb(),Ie.forEach(function(e){Ta(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),Tt.slice(0).forEach(function(e){return e.refresh()}),S=!1,Tt.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",r=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-r),e.refresh()}}),$e=1,Zb(!0),Tt.forEach(function(e){var t=Qa(e.scroller,e._dir),r="max"===e.vars.end||e._endClamp&&e.end>t,n=e._startClamp&&e.start>=t;(r||n)&&e.setPositions(n?t-1:e.start,r?Math.max(n?t:e.start+1,t):e.end,!0)}),Zb(!1),$e=0,r.forEach(function(e){return e&&e.render&&e.render(-1)}),Ie.forEach(function(e){Ta(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),Tb(w,1),c.pause(),St++,Z(tt=2),Tt.forEach(function(e){return Ta(e.vars.onRefresh)&&e.vars.onRefresh(e)}),tt=ne.isRefreshing=!1,U("refresh")}else wb(ne,"scrollEnd",Ob)},Q=0,Pt=1,Z=function _updateAll(e){if(2===e||!tt&&!S){ne.isUpdating=!0,nt&&nt.update(0);var t=Tt.length,r=it(),n=50<=r-R,o=t&&Tt[0].scroll();if(Pt=o<Q?-1:1,tt||(Q=o),n&&(at&&!Ge&&200<r-at&&(at=0,U("scrollEnd")),Ue=R,R=r),Pt<0){for(je=t;0<je--;)Tt[je]&&Tt[je].update(0,n);Pt=1}else for(je=0;je<t;je++)Tt[je]&&Tt[je].update(0,n);ne.isUpdating=!1}D=0},$=["left","top",q,I,bt+ht,bt+dt,bt+gt,bt+pt,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],ee=$.concat([ut,ft,"boxSizing","max"+mt,"max"+Y,"position",bt,vt,vt+gt,vt+dt,vt+ht,vt+pt]),te=/([A-Z])/g,Mt=function _setState(e){if(e){var t,r,n=e.t.style,o=e.length,i=0;for((e.t._gsap||Fe.core.getCache(e.t)).uncache=1;i<o;i+=2)r=e[i+1],t=e[i],r?n[t]=r:n[t]&&n.removeProperty(t.replace(te,"-$1").toLowerCase())}},Et={left:0,top:0},re=/(webkit|moz|length|cssText|inset)/i,ne=(ScrollTrigger.prototype.init=function init(E,O){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),st){var B,n,p,A,D,R,I,q,L,Y,F,e,H,N,X,W,V,U,t,G,b,j,Q,m,Z,y,$,x,r,w,_,ee,o,g,te,re,ne,T,i,C=(E=ob(lt(E)||Ua(E)||E.nodeType?{trigger:E}:E,_t)).onUpdate,S=E.toggleClass,a=E.id,k=E.onToggle,oe=E.onRefresh,P=E.scrub,ie=E.trigger,ae=E.pin,se=E.pinSpacing,le=E.invalidateOnRefresh,M=E.anticipatePin,s=E.onScrubComplete,h=E.onSnapComplete,ce=E.once,ue=E.snap,fe=E.pinReparent,l=E.pinSpacer,de=E.containerAnimation,pe=E.fastScrollEnd,ge=E.preventOverlaps,he=E.horizontal||E.containerAnimation&&!1!==E.horizontal?ze:Ye,ve=!P&&0!==P,be=J(E.scroller||He),c=Fe.core.getCache(be),me=La(be),ye="fixed"===("pinType"in E?E.pinType:z(be,"pinType")||me&&"fixed"),xe=[E.onEnter,E.onLeave,E.onEnterBack,E.onLeaveBack],we=ve&&E.toggleActions.split(" "),_e="markers"in E?E.markers:_t.markers,Te=me?0:parseFloat(mb(be)["border"+he.p2+mt])||0,Ce=this,Se=E.onRefreshInit&&function(){return E.onRefreshInit(Ce)},ke=function _getSizeFunc(e,t,r){var n=r.d,o=r.d2,i=r.a;return(i=z(e,"getBoundingClientRect"))?function(){return i()[n]}:function(){return(t?Ma(o):e["client"+o])||0}}(be,me,he),Pe=function _getOffsetsFunc(e,t){return!t||~qe.indexOf(e)?Na(e):function(){return Et}}(be,me),Me=0,Ee=0,Oe=0,Be=K(be,he);if(Ce._startClamp=Ce._endClamp=!1,Ce._dir=he,M*=45,Ce.scroller=be,Ce.scroll=de?de.time.bind(de):Be,A=Be(),Ce.vars=E,O=O||E.animation,"refreshPriority"in E&&(Qe=1,-9999===E.refreshPriority&&(nt=Ce)),c.tweenScroll=c.tweenScroll||{top:rc(be,Ye),left:rc(be,ze)},Ce.tweenTo=B=c.tweenScroll[he.p],Ce.scrubDuration=function(e){(o=Ua(e)&&e)?ee?ee.duration(e):ee=Fe.to(O,{ease:"expo",totalProgress:"+=0",duration:o,paused:!0,onComplete:function onComplete(){return s&&s(Ce)}}):(ee&&ee.progress(1).kill(),ee=0)},O&&(O.vars.lazy=!1,O._initted&&!Ce.isReverted||!1!==O.vars.immediateRender&&!1!==E.immediateRender&&O.duration()&&O.render(0,!0,!0),Ce.animation=O.pause(),(O.scrollTrigger=Ce).scrubDuration(P),w=0,a=a||O.vars.id),ue&&(Va(ue)&&!ue.push||(ue={snapTo:ue}),"scrollBehavior"in We.style&&Fe.set(me?[We,Xe]:be,{scrollBehavior:"auto"}),Ie.forEach(function(e){return Ta(e)&&e.target===(me?Ne.scrollingElement||Xe:be)&&(e.smooth=!1)}),p=Ta(ue.snapTo)?ue.snapTo:"labels"===ue.snapTo?function _getClosestLabel(t){return function(e){return Fe.utils.snap(rb(t),e)}}(O):"labelsDirectional"===ue.snapTo?function _getLabelAtDirection(r){return function(e,t){return tb(rb(r))(e,t.direction)}}(O):!1!==ue.directional?function(e,t){return tb(ue.snapTo)(e,it()-Ee<500?0:t.direction)}:Fe.utils.snap(ue.snapTo),g=ue.duration||{min:.1,max:2},g=Va(g)?Ve(g.min,g.max):Ve(g,g),te=Fe.delayedCall(ue.delay||o/2||.1,function(){var e=Be(),t=it()-Ee<500,r=B.tween;if(!(t||Math.abs(Ce.getVelocity())<10)||r||Ge||Me===e)Ce.isActive&&Me!==e&&te.restart(!0);else{var n=(e-R)/N,o=O&&!ve?O.totalProgress():n,i=t?0:(o-_)/(it()-Ue)*1e3||0,a=Fe.utils.clamp(-n,1-n,ct(i/2)*i/.185),s=n+(!1===ue.inertia?0:a),l=Ve(0,1,p(s,Ce)),c=Math.round(R+l*N),u=ue.onStart,f=ue.onInterrupt,d=ue.onComplete;if(e<=I&&R<=e&&c!==e){if(r&&!r._initted&&r.data<=ct(c-e))return;!1===ue.inertia&&(a=l-n),B(c,{duration:g(ct(.185*Math.max(ct(s-o),ct(l-o))/i/.05||0)),ease:ue.ease||"power3",data:ct(c-e),onInterrupt:function onInterrupt(){return te.restart(!0)&&f&&f(Ce)},onComplete:function onComplete(){Ce.update(),Me=Be(),ee&&O&&O.progress(l),w=_=O&&!ve?O.totalProgress():Ce.progress,h&&h(Ce),d&&d(Ce)}},e,a*N,c-e-a*N),u&&u(Ce,B.tween)}}}).pause()),a&&(Ct[a]=Ce),i=(i=(ie=Ce.trigger=J(ie||!0!==ae&&ae))&&ie._gsap&&ie._gsap.stRevert)&&i(Ce),ae=!0===ae?ie:J(ae),lt(S)&&(S={targets:ie,className:S}),ae&&(!1===se||se===bt||(se=!(!se&&ae.parentNode&&ae.parentNode.style&&"flex"===mb(ae.parentNode).display)&&vt),Ce.pin=ae,(n=Fe.core.getCache(ae)).spacer?X=n.pinState:(l&&((l=J(l))&&!l.nodeType&&(l=l.current||l.nativeElement),n.spacerIsNative=!!l,l&&(n.spacerState=jc(l))),n.spacer=U=l||Ne.createElement("div"),U.classList.add("pin-spacer"),a&&U.classList.add("pin-spacer-"+a),n.pinState=X=jc(ae)),!1!==E.force3D&&Fe.set(ae,{force3D:!0}),Ce.spacer=U=n.spacer,r=mb(ae),m=r[se+he.os2],G=Fe.getProperty(ae),b=Fe.quickSetter(ae,he.a,yt),gc(ae,U,r),V=jc(ae)),_e){e=Va(_e)?ob(_e,wt):wt,Y=Db("scroller-start",a,be,he,e,0),F=Db("scroller-end",a,be,he,e,0,Y),t=Y["offset"+he.op.d2];var u=J(z(be,"content")||be);q=this.markerStart=Db("start",a,u,he,e,t,0,de),L=this.markerEnd=Db("end",a,u,he,e,t,0,de),de&&(T=Fe.quickSetter([q,L],he.a,yt)),ye||qe.length&&!0===z(be,"fixedMarkers")||(function _makePositionable(e){var t=mb(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"}(me?We:be),Fe.set([Y,F],{force3D:!0}),y=Fe.quickSetter(Y,he.a,yt),x=Fe.quickSetter(F,he.a,yt))}if(de){var f=de.vars.onUpdate,d=de.vars.onUpdateParams;de.eventCallback("onUpdate",function(){Ce.update(0,0,1),f&&f.apply(de,d||[])})}if(Ce.previous=function(){return Tt[Tt.indexOf(Ce)-1]},Ce.next=function(){return Tt[Tt.indexOf(Ce)+1]},Ce.revert=function(e,t){if(!t)return Ce.kill(!0);var r=!1!==e||!Ce.enabled,n=Ke;r!==Ce.isReverted&&(r&&(re=Math.max(Be(),Ce.scroll.rec||0),Oe=Ce.progress,ne=O&&O.progress()),q&&[q,L,Y,F].forEach(function(e){return e.style.display=r?"none":"block"}),r&&(Ke=Ce).update(r),!ae||fe&&Ce.isActive||(r?function _swapPinOut(e,t,r){Mt(r);var n=e._gsap;if(n.spacerIsNative)Mt(n.spacerState);else if(e._gsap.swappedIn){var o=t.parentNode;o&&(o.insertBefore(e,t),o.removeChild(t))}e._gsap.swappedIn=!1}(ae,U,X):gc(ae,U,mb(ae),Z)),r||Ce.update(r),Ke=n,Ce.isReverted=r)},Ce.refresh=function(e,t,r,n){if(!Ke&&Ce.enabled||t)if(ae&&e&&at)wb(ScrollTrigger,"scrollEnd",Ob);else{!tt&&Se&&Se(Ce),Ke=Ce,B.tween&&!r&&(B.tween.kill(),B.tween=0),ee&&ee.pause(),le&&O&&O.revert({kill:!1}).invalidate(),Ce.isReverted||Ce.revert(!0,!0),Ce._subPinOffset=!1;var o,i,a,s,l,c,u,f,d,p,g,h,v,b=ke(),m=Pe(),y=de?de.duration():Qa(be,he),x=N<=.01,w=0,_=n||0,T=Va(r)?r.end:E.end,C=E.endTrigger||ie,S=Va(r)?r.start:E.start||(0!==E.start&&ie?ae?"0 0":"0 100%":0),k=Ce.pinnedContainer=E.pinnedContainer&&J(E.pinnedContainer,Ce),P=ie&&Math.max(0,Tt.indexOf(Ce))||0,M=P;for(_e&&Va(r)&&(h=Fe.getProperty(Y,he.p),v=Fe.getProperty(F,he.p));M--;)(c=Tt[M]).end||c.refresh(0,1)||(Ke=Ce),!(u=c.pin)||u!==ie&&u!==ae&&u!==k||c.isReverted||((p=p||[]).unshift(c),c.revert(!0,!0)),c!==Tt[M]&&(P--,M--);for(Ta(S)&&(S=S(Ce)),S=Ca(S,"start",Ce),R=mc(S,ie,b,he,Be(),q,Y,Ce,m,Te,ye,y,de,Ce._startClamp&&"_startClamp")||(ae?-.001:0),Ta(T)&&(T=T(Ce)),lt(T)&&!T.indexOf("+=")&&(~T.indexOf(" ")?T=(lt(S)?S.split(" ")[0]:"")+T:(w=Cb(T.substr(2),b),T=lt(S)?S:(de?Fe.utils.mapRange(0,de.duration(),de.scrollTrigger.start,de.scrollTrigger.end,R):R)+w,C=ie)),T=Ca(T,"end",Ce),I=Math.max(R,mc(T||(C?"100% 0":y),C,b,he,Be()+w,L,F,Ce,m,Te,ye,y,de,Ce._endClamp&&"_endClamp"))||-.001,w=0,M=P;M--;)(u=(c=Tt[M]).pin)&&c.start-c._pinPush<=R&&!de&&0<c.end&&(o=c.end-(Ce._startClamp?Math.max(0,c.start):c.start),(u===ie&&c.start-c._pinPush<R||u===k)&&isNaN(S)&&(w+=o*(1-c.progress)),u===ae&&(_+=o));if(R+=w,I+=w,Ce._startClamp&&(Ce._startClamp+=w),Ce._endClamp&&!tt&&(Ce._endClamp=I||-.001,I=Math.min(I,Qa(be,he))),N=I-R||(R-=.01)&&.001,x&&(Oe=Fe.utils.clamp(0,1,Fe.utils.normalize(R,I,re))),Ce._pinPush=_,q&&w&&((o={})[he.a]="+="+w,k&&(o[he.p]="-="+Be()),Fe.set([q,L],o)),!ae||$e&&Ce.end>=Qa(be,he)){if(ie&&Be()&&!de)for(i=ie.parentNode;i&&i!==We;)i._pinOffset&&(R-=i._pinOffset,I-=i._pinOffset),i=i.parentNode}else o=mb(ae),s=he===Ye,a=Be(),j=parseFloat(G(he.a))+_,!y&&1<I&&(g={style:g=(me?Ne.scrollingElement||Xe:be).style,value:g["overflow"+he.a.toUpperCase()]},me&&"scroll"!==mb(We)["overflow"+he.a.toUpperCase()]&&(g.style["overflow"+he.a.toUpperCase()]="scroll")),gc(ae,U,o),V=jc(ae),i=xt(ae,!0),f=ye&&K(be,s?ze:Ye)(),se&&((Z=[se+he.os2,N+_+yt]).t=U,(M=se===vt?qb(ae,he)+N+_:0)&&(Z.push(he.d,M+yt),"auto"!==U.style.flexBasis&&(U.style.flexBasis=M+yt)),Mt(Z),k&&Tt.forEach(function(e){e.pin===k&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),ye&&Be(re)),ye&&((l={top:i.top+(s?a-R:f)+yt,left:i.left+(s?f:a-R)+yt,boxSizing:"border-box",position:"fixed"})[ut]=l.maxWidth=Math.ceil(i.width)+yt,l[ft]=l.maxHeight=Math.ceil(i.height)+yt,l[bt]=l[bt+gt]=l[bt+dt]=l[bt+ht]=l[bt+pt]="0",l[vt]=o[vt],l[vt+gt]=o[vt+gt],l[vt+dt]=o[vt+dt],l[vt+ht]=o[vt+ht],l[vt+pt]=o[vt+pt],W=function _copyState(e,t,r){for(var n,o=[],i=e.length,a=r?8:0;a<i;a+=2)n=e[a],o.push(n,n in t?t[n]:e[a+1]);return o.t=e.t,o}(X,l,fe),tt&&Be(0)),O?(d=O._initted,Ze(1),O.render(O.duration(),!0,!0),Q=G(he.a)-j+N+_,$=1<Math.abs(N-Q),ye&&$&&W.splice(W.length-2,2),O.render(0,!0,!0),d||O.invalidate(!0),O.parent||O.totalTime(O.totalTime()),Ze(0)):Q=N,g&&(g.value?g.style["overflow"+he.a.toUpperCase()]=g.value:g.style.removeProperty("overflow-"+he.a));p&&p.forEach(function(e){return e.revert(!1,!0)}),Ce.start=R,Ce.end=I,A=D=tt?re:Be(),de||tt||(A<re&&Be(re),Ce.scroll.rec=0),Ce.revert(!1,!0),Ee=it(),te&&(Me=-1,te.restart(!0)),Ke=0,O&&ve&&(O._initted||ne)&&O.progress()!==ne&&O.progress(ne||0,!0).render(O.time(),!0,!0),(x||Oe!==Ce.progress||de)&&(O&&!ve&&O.totalProgress(de&&R<-.001&&!Oe?Fe.utils.normalize(R,I,0):Oe,!0),Ce.progress=x||(A-R)/N===Oe?0:Oe),ae&&se&&(U._pinOffset=Math.round(Ce.progress*Q)),ee&&ee.invalidate(),isNaN(h)||(h-=Fe.getProperty(Y,he.p),v-=Fe.getProperty(F,he.p),qc(Y,he,h),qc(q,he,h-(n||0)),qc(F,he,v),qc(L,he,v-(n||0))),x&&!tt&&Ce.update(),!oe||tt||H||(H=!0,oe(Ce),H=!1)}},Ce.getVelocity=function(){return(Be()-D)/(it()-Ue)*1e3||0},Ce.endAnimation=function(){Wa(Ce.callbackAnimation),O&&(ee?ee.progress(1):O.paused()?ve||Wa(O,Ce.direction<0,1):Wa(O,O.reversed()))},Ce.labelToScroll=function(e){return O&&O.labels&&(R||Ce.refresh()||R)+O.labels[e]/O.duration()*N||0},Ce.getTrailing=function(t){var e=Tt.indexOf(Ce),r=0<Ce.direction?Tt.slice(0,e).reverse():Tt.slice(e+1);return(lt(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(e){return 0<Ce.direction?e.end<=R:e.start>=I})},Ce.update=function(e,t,r){if(!de||r||e){var n,o,i,a,s,l,c,u=!0===tt?re:Ce.scroll(),f=e?0:(u-R)/N,d=f<0?0:1<f?1:f||0,p=Ce.progress;if(t&&(D=A,A=de?Be():u,ue&&(_=w,w=O&&!ve?O.totalProgress():d)),M&&!d&&ae&&!Ke&&!ot&&at&&R<u+(u-D)/(it()-Ue)*M&&(d=1e-4),d!==p&&Ce.enabled){if(a=(s=(n=Ce.isActive=!!d&&d<1)!=(!!p&&p<1))||!!d!=!!p,Ce.direction=p<d?1:-1,Ce.progress=d,a&&!Ke&&(o=d&&!p?0:1===d?1:1===p?2:3,ve&&(i=!s&&"none"!==we[o+1]&&we[o+1]||we[o],c=O&&("complete"===i||"reset"===i||i in O))),ge&&(s||c)&&(c||P||!O)&&(Ta(ge)?ge(Ce):Ce.getTrailing(ge).forEach(function(e){return e.endAnimation()})),ve||(!ee||Ke||ot?O&&O.totalProgress(d,!(!Ke||!Ee&&!e)):(ee._dp._time-ee._start!==ee._time&&ee.render(ee._dp._time-ee._start),ee.resetTo?ee.resetTo("totalProgress",d,O._tTime/O._tDur):(ee.vars.totalProgress=d,ee.invalidate().restart()))),ae)if(e&&se&&(U.style[se+he.os2]=m),ye){if(a){if(l=!e&&p<d&&u<I+1&&u+1>=Qa(be,he),fe)if(e||!n&&!l)oc(ae,U);else{var g=xt(ae,!0),h=u-R;oc(ae,We,g.top+(he===Ye?h:0)+yt,g.left+(he===Ye?0:h)+yt)}Mt(n||l?W:V),$&&d<1&&n||b(j+(1!==d||l?0:Q))}}else b(Ia(j+Q*d));!ue||B.tween||Ke||ot||te.restart(!0),S&&(s||ce&&d&&(d<1||!et))&&Je(S.targets).forEach(function(e){return e.classList[n||ce?"add":"remove"](S.className)}),!C||ve||e||C(Ce),a&&!Ke?(ve&&(c&&("complete"===i?O.pause().totalProgress(1):"reset"===i?O.restart(!0).pause():"restart"===i?O.restart(!0):O[i]()),C&&C(Ce)),!s&&et||(k&&s&&Xa(Ce,k),xe[o]&&Xa(Ce,xe[o]),ce&&(1===d?Ce.kill(!1,1):xe[o]=0),s||xe[o=1===d?1:3]&&Xa(Ce,xe[o])),pe&&!n&&Math.abs(Ce.getVelocity())>(Ua(pe)?pe:2500)&&(Wa(Ce.callbackAnimation),ee?ee.progress(1):Wa(O,"reverse"===i?1:!d,1))):ve&&C&&!Ke&&C(Ce)}if(x){var v=de?u/de.duration()*(de._caScrollDist||0):u;y(v+(Y._isFlipped?1:0)),x(v)}T&&T(-u/de.duration()*(de._caScrollDist||0))}},Ce.enable=function(e,t){Ce.enabled||(Ce.enabled=!0,wb(be,"resize",Lb),me||wb(be,"scroll",Jb),Se&&wb(ScrollTrigger,"refreshInit",Se),!1!==e&&(Ce.progress=Oe=0,A=D=Me=Be()),!1!==t&&Ce.refresh())},Ce.getTween=function(e){return e&&B?B.tween:ee},Ce.setPositions=function(e,t,r,n){if(de){var o=de.scrollTrigger,i=de.duration(),a=o.end-o.start;e=o.start+a*e/i,t=o.start+a*t/i}Ce.refresh(!1,!1,{start:Da(e,r&&!!Ce._startClamp),end:Da(t,r&&!!Ce._endClamp)},n),Ce.update()},Ce.adjustPinSpacing=function(e){if(Z&&e){var t=Z.indexOf(he.d)+1;Z[t]=parseFloat(Z[t])+e+yt,Z[1]=parseFloat(Z[1])+e+yt,Mt(Z)}},Ce.disable=function(e,t){if(Ce.enabled&&(!1!==e&&Ce.revert(!0,!0),Ce.enabled=Ce.isActive=!1,t||ee&&ee.pause(),re=0,n&&(n.uncache=1),Se&&xb(ScrollTrigger,"refreshInit",Se),te&&(te.pause(),B.tween&&B.tween.kill()&&(B.tween=0)),!me)){for(var r=Tt.length;r--;)if(Tt[r].scroller===be&&Tt[r]!==Ce)return;xb(be,"resize",Lb),me||xb(be,"scroll",Jb)}},Ce.kill=function(e,t){Ce.disable(e,t),ee&&!t&&ee.kill(),a&&delete Ct[a];var r=Tt.indexOf(Ce);0<=r&&Tt.splice(r,1),r===je&&0<Pt&&je--,r=0,Tt.forEach(function(e){return e.scroller===Ce.scroller&&(r=1)}),r||tt||(Ce.scroll.rec=0),O&&(O.scrollTrigger=null,e&&O.revert({kill:!1}),t||O.kill()),q&&[q,L,Y,F].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),nt===Ce&&(nt=0),ae&&(n&&(n.uncache=1),r=0,Tt.forEach(function(e){return e.pin===ae&&r++}),r||(n.spacer=0)),E.onKill&&E.onKill(Ce)},Tt.push(Ce),Ce.enable(!1,!1),i&&i(Ce),O&&O.add&&!N){var v=Ce.update;Ce.update=function(){Ce.update=v,R||I||Ce.refresh()},Fe.delayedCall(.01,Ce.update),N=.01,R=I=0}else Ce.refresh();ae&&function _queueRefreshAll(){if(rt!==St){var e=rt=St;requestAnimationFrame(function(){return e===St&&kt(!0)})}}()}else this.update=this.refresh=this.kill=Ha},ScrollTrigger.register=function register(e){return s||(Fe=e||Ka(),Ja()&&window.document&&ScrollTrigger.enable(),s=st),s},ScrollTrigger.defaults=function defaults(e){if(e)for(var t in e)_t[t]=e[t];return _t},ScrollTrigger.disable=function disable(t,r){st=0,Tt.forEach(function(e){return e[r?"kill":"disable"](t)}),xb(He,"wheel",Jb),xb(Ne,"scroll",Jb),clearInterval(u),xb(Ne,"touchcancel",Ha),xb(We,"touchstart",Ha),vb(xb,Ne,"pointerdown,touchstart,mousedown",Fa),vb(xb,Ne,"pointerup,touchend,mouseup",Ga),c.kill(),Ra(xb);for(var e=0;e<Ie.length;e+=3)yb(xb,Ie[e],Ie[e+1]),yb(xb,Ie[e],Ie[e+2])},ScrollTrigger.enable=function enable(){if(He=window,Ne=document,Xe=Ne.documentElement,We=Ne.body,Fe&&(Je=Fe.utils.toArray,Ve=Fe.utils.clamp,x=Fe.core.context||Ha,Ze=Fe.core.suppressOverwrites||Ha,w=He.history.scrollRestoration||"auto",Q=He.pageYOffset,Fe.core.globals("ScrollTrigger",ScrollTrigger),We)){st=1,(_=document.createElement("div")).style.height="100vh",_.style.position="absolute",Yb(),function _rafBugFix(){return st&&requestAnimationFrame(_rafBugFix)}(),k.register(Fe),ScrollTrigger.isTouch=k.isTouch,E=k.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),wb(He,"wheel",Jb),l=[He,Ne,Xe,We],Fe.matchMedia?(ScrollTrigger.matchMedia=function(e){var t,r=Fe.matchMedia();for(t in e)r.add(t,e[t]);return r},Fe.addEventListener("matchMediaInit",function(){return Sb()}),Fe.addEventListener("matchMediaRevert",function(){return Rb()}),Fe.addEventListener("matchMedia",function(){kt(0,1),U("matchMedia")}),Fe.matchMedia("(orientation: portrait)",function(){return Kb(),Kb})):console.warn("Requires GSAP 3.11.0 or later"),Kb(),wb(Ne,"scroll",Jb);var e,t,r=We.style,n=r.borderTopStyle,o=Fe.core.Animation.prototype;for(o.revert||Object.defineProperty(o,"revert",{value:function value(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",e=xt(We),Ye.m=Math.round(e.top+Ye.sc())||0,ze.m=Math.round(e.left+ze.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),u=setInterval(Ib,250),Fe.delayedCall(.5,function(){return ot=0}),wb(Ne,"touchcancel",Ha),wb(We,"touchstart",Ha),vb(wb,Ne,"pointerdown,touchstart,mousedown",Fa),vb(wb,Ne,"pointerup,touchend,mouseup",Ga),f=Fe.utils.checkPrefix("transform"),ee.push(f),s=it(),c=Fe.delayedCall(.2,kt).pause(),g=[Ne,"visibilitychange",function(){var e=He.innerWidth,t=He.innerHeight;Ne.hidden?(d=e,p=t):d===e&&p===t||Lb()},Ne,"DOMContentLoaded",kt,He,"load",kt,He,"resize",Lb],Ra(wb),Tt.forEach(function(e){return e.enable(0,1)}),t=0;t<Ie.length;t+=3)yb(xb,Ie[t],Ie[t+1]),yb(xb,Ie[t],Ie[t+2])}},ScrollTrigger.config=function config(e){"limitCallbacks"in e&&(et=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(u)||(u=t)&&setInterval(Ib,t),"ignoreMobileResize"in e&&(b=1===ScrollTrigger.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Ra(xb)||Ra(wb,e.autoRefreshEvents||"none"),h=-1===(e.autoRefreshEvents+"").indexOf("resize"))},ScrollTrigger.scrollerProxy=function scrollerProxy(e,t){var r=J(e),n=Ie.indexOf(r),o=La(r);~n&&Ie.splice(n,o?6:2),t&&(o?qe.unshift(He,t,We,t,Xe,t):qe.unshift(r,t))},ScrollTrigger.clearMatchMedia=function clearMatchMedia(t){Tt.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},ScrollTrigger.isInViewport=function isInViewport(e,t,r){var n=(lt(e)?J(e):e).getBoundingClientRect(),o=n[r?ut:ft]*t||0;return r?0<n.right-o&&n.left+o<He.innerWidth:0<n.bottom-o&&n.top+o<He.innerHeight},ScrollTrigger.positionInViewport=function positionInViewport(e,t,r){lt(e)&&(e=J(e));var n=e.getBoundingClientRect(),o=n[r?ut:ft],i=null==t?o/2:t in H?H[t]*o:~t.indexOf("%")?parseFloat(t)*o/100:parseFloat(t)||0;return r?(n.left+i)/He.innerWidth:(n.top+i)/He.innerHeight},ScrollTrigger.killAll=function killAll(e){if(Tt.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e){var t=W.killAll||[];W={},t.forEach(function(e){return e()})}},ScrollTrigger);function ScrollTrigger(e,t){s||ScrollTrigger.register(Fe)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),x(this),this.init(e,t)}ne.version="3.12.4",ne.saveStyles=function(e){return e?Je(e).forEach(function(e){if(e&&e.style){var t=j.indexOf(e);0<=t&&j.splice(t,5),j.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Fe.core.getCache(e),x())}}):j},ne.revert=function(e,t){return Sb(!e,t)},ne.create=function(e,t){return new ne(e,t)},ne.refresh=function(e){return e?Lb():(s||ne.register())&&kt(!0)},ne.update=function(e){return++Ie.cache&&Z(!0===e?2:0)},ne.clearScrollMemory=Tb,ne.maxScroll=function(e,t){return Qa(e,t?ze:Ye)},ne.getScrollFunc=function(e,t){return K(J(e),t?ze:Ye)},ne.getById=function(e){return Ct[e]},ne.getAll=function(){return Tt.filter(function(e){return"ScrollSmoother"!==e.vars.id})},ne.isScrolling=function(){return!!at},ne.snapDirectional=tb,ne.addEventListener=function(e,t){var r=W[e]||(W[e]=[]);~r.indexOf(t)||r.push(t)},ne.removeEventListener=function(e,t){var r=W[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},ne.batch=function(e,t){function Bp(e,t){var r=[],n=[],o=Fe.delayedCall(i,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||o.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&o.progress(1)}}var r,n=[],o={},i=t.interval||.016,a=t.batchMax||1e9;for(r in t)o[r]="on"===r.substr(0,2)&&Ta(t[r])&&"onRefreshInit"!==r?Bp(0,t[r]):t[r];return Ta(a)&&(a=a(),wb(ne,"refresh",function(){return a=t.batchMax()})),Je(e).forEach(function(e){var t={};for(r in o)t[r]=o[r];t.trigger=e,n.push(ne.create(t))}),n};function tc(e,t,r,n){return n<t?e(n):t<0&&e(0),n<r?(n-t)/(r-t):r<0?t/(t-r):1}function uc(e,t){!0===t?e.style.removeProperty("touch-action"):e.style.touchAction=!0===t?"auto":t?"pan-"+t+(k.isTouch?" pinch-zoom":""):"none",e===Xe&&uc(We,t)}function wc(e){var t,r=e.event,n=e.target,o=e.axis,i=(r.changedTouches?r.changedTouches[0]:r).target,a=i._gsap||Fe.core.getCache(i),s=it();if(!a._isScrollT||2e3<s-a._isScrollT){for(;i&&i!==We&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!ie[(t=mb(i)).overflowY]&&!ie[t.overflowX]);)i=i.parentNode;a._isScroll=i&&i!==n&&!La(i)&&(ie[(t=mb(i)).overflowY]||ie[t.overflowX]),a._isScrollT=s}!a._isScroll&&"x"!==o||(r.stopPropagation(),r._gsapAllow=!0)}function xc(e,t,r,n){return k.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&wc,onPress:n,onDrag:n,onScroll:n,onEnable:function onEnable(){return r&&wb(Ne,k.eventTypes[0],se,!1,!0)},onDisable:function onDisable(){return xb(Ne,k.eventTypes[0],se,!0)}})}function Bc(e){function yq(){return o=!1}function Bq(){i=Qa(p,Ye),S=Ve(E?1:0,i),f&&(C=Ve(0,Qa(p,ze))),l=St}function Cq(){v._gsap.y=Ia(parseFloat(v._gsap.y)+b.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)",b.offset=b.cacheID=0}function Iq(){Bq(),a.isActive()&&a.vars.scrollY>i&&(b()>i?a.progress(1)&&b(i):a.resetTo("scrollY",i))}Va(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n,i,l,o,a,c,u,s,f=e.normalizeScrollX,t=e.momentum,r=e.allowNestedScroll,d=e.onRelease,p=J(e.target)||Xe,g=Fe.core.globals().ScrollSmoother,h=g&&g.get(),v=E&&(e.content&&J(e.content)||h&&!1!==e.content&&!h.smooth()&&h.content()),b=K(p,Ye),m=K(p,ze),y=1,x=(k.isTouch&&He.visualViewport?He.visualViewport.scale*He.visualViewport.width:He.outerWidth)/He.innerWidth,w=0,_=Ta(t)?function(){return t(n)}:function(){return t||2.8},T=xc(p,e.type,!0,r),C=Ha,S=Ha;return v&&Fe.set(v,{y:"+=0"}),e.ignoreCheck=function(e){return E&&"touchmove"===e.type&&function ignoreDrag(){if(o){requestAnimationFrame(yq);var e=Ia(n.deltaY/2),t=S(b.v-e);if(v&&t!==b.v+b.offset){b.offset=t-b.v;var r=Ia((parseFloat(v&&v._gsap.y)||0)-b.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",v._gsap.y=r+"px",b.cacheID=Ie.cache,Z()}return!0}b.offset&&Cq(),o=!0}()||1.05<y&&"touchstart"!==e.type||n.isGesturing||e.touches&&1<e.touches.length},e.onPress=function(){o=!1;var e=y;y=Ia((He.visualViewport&&He.visualViewport.scale||1)/x),a.pause(),e!==y&&uc(p,1.01<y||!f&&"x"),c=m(),u=b(),Bq(),l=St},e.onRelease=e.onGestureStart=function(e,t){if(b.offset&&Cq(),t){Ie.cache++;var r,n,o=_();f&&(n=(r=m())+.05*o*-e.velocityX/.227,o*=tc(m,r,n,Qa(p,ze)),a.vars.scrollX=C(n)),n=(r=b())+.05*o*-e.velocityY/.227,o*=tc(b,r,n,Qa(p,Ye)),a.vars.scrollY=S(n),a.invalidate().duration(o).play(.01),(E&&a.vars.scrollY>=i||i-1<=r)&&Fe.to({},{onUpdate:Iq,duration:o})}else s.restart(!0);d&&d(e)},e.onWheel=function(){a._ts&&a.pause(),1e3<it()-w&&(l=0,w=it())},e.onChange=function(e,t,r,n,o){if(St!==l&&Bq(),t&&f&&m(C(n[2]===t?c+(e.startX-e.x):m()+t-n[1])),r){b.offset&&Cq();var i=o[2]===r,a=i?u+e.startY-e.y:b()+r-o[1],s=S(a);i&&a!==s&&(u+=s-a),b(s)}(r||t)&&Z()},e.onEnable=function(){uc(p,!f&&"x"),ne.addEventListener("refresh",Iq),wb(He,"resize",Iq),b.smooth&&(b.target.style.scrollBehavior="auto",b.smooth=m.smooth=!1),T.enable()},e.onDisable=function(){uc(p,!0),xb(He,"resize",Iq),ne.removeEventListener("refresh",Iq),T.kill()},e.lockAxis=!1!==e.lockAxis,((n=new k(e)).iOS=E)&&!b()&&b(1),E&&Fe.ticker.add(Ha),s=n._dc,a=Fe.to(n,{ease:"power4",paused:!0,scrollX:f?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:pc(b,b(),function(){return a.pause()})},onUpdate:Z,onComplete:s.vars.onComplete}),n}var oe,ie={auto:1,scroll:1},ae=/(input|label|select|textarea)/i,se=function _captureInputs(e){var t=ae.test(e.target.tagName);(t||oe)&&(e._gsapAllow=!0,oe=t)};ne.sort=function(e){return Tt.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},ne.observe=function(e){return new k(e)},ne.normalizeScroll=function(e){if(void 0===e)return v;if(!0===e&&v)return v.enable();if(!1===e)return v&&v.kill(),void(v=e);var t=e instanceof k?e:Bc(e);return v&&v.target===t.target&&v.kill(),La(t.target)&&(v=t),t},ne.core={_getVelocityProp:L,_inputObserver:xc,_scrollers:Ie,_proxies:qe,bridge:{ss:function ss(){at||U("scrollStart"),at=it()},ref:function ref(){return Ke}}},Ka()&&Fe.registerPlugin(ne),e.ScrollTrigger=ne,e.default=ne;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(){return Ce||"undefined"!=typeof window&&(Ce=window.gsap)&&Ce.registerPlugin&&Ce}function z(e,t){return~Le.indexOf(e)&&Le[Le.indexOf(e)+1][t]}function A(e){return!!~t.indexOf(e)}function B(e,t,r,n,o){return e.addEventListener(t,r,{passive:!1!==n,capture:!!o})}function C(e,t,r,n){return e.removeEventListener(t,r,!!n)}function F(){return De&&De.isPressed||Ie.cache++}function G(r,n){function dd(e){if(e||0===e){o&&(Se.history.scrollRestoration="manual");var t=De&&De.isPressed;e=dd.v=Math.round(e)||(De&&De.iOS?1:0),r(e),dd.cacheID=Ie.cache,t&&i("ss",e)}else(n||Ie.cache!==dd.cacheID||i("ref"))&&(dd.cacheID=Ie.cache,dd.v=r());return dd.v+dd.offset}return dd.offset=0,r&&dd}function J(e,t){return(t&&t._ctx&&t._ctx.selector||Ce.utils.toArray)(e)[0]||("string"==typeof e&&!1!==Ce.config().nullTargetWarn?console.warn("Element not found:",e):null)}function K(t,e){var r=e.s,n=e.sc;A(t)&&(t=ke.scrollingElement||Pe);var o=Ie.indexOf(t),i=n===Fe.sc?1:2;~o||(o=Ie.push(t)-1),Ie[o+i]||B(t,"scroll",F);var a=Ie[o+i],s=a||(Ie[o+i]=G(z(t,r),!0)||(A(t)?n:G(function(e){return arguments.length?t[r]=e:t[r]})));return s.target=t,a||(s.smooth="smooth"===Ce.getProperty(t,"scrollBehavior")),s}function L(e,t,o){function Cd(e,t){var r=ze();t||n<r-s?(a=i,i=e,l=s,s=r):o?i+=e:i=a+(e-a)/(r-l)*(s-l)}var i=e,a=e,s=ze(),l=s,n=t||50,c=Math.max(500,3*n);return{update:Cd,reset:function reset(){a=i=o?0:i,l=s=0},getVelocity:function getVelocity(e){var t=l,r=a,n=ze();return!e&&0!==e||e===i||Cd(e),s===l||c<n-l?0:(i+(o?r:-r))/((o?n:s)-t)*1e3}}}function M(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function N(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r}function O(){(Ae=Ce.core.globals().ScrollTrigger)&&Ae.core&&function _integrate(){var e=Ae.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,Ie),n.push.apply(n,Le),Ie=t,Le=n,i=function _bridge(e,t){return r[e](t)}}()}function P(e){return Ce=e||r(),!Te&&Ce&&"undefined"!=typeof document&&document.body&&(Se=window,Pe=(ke=document).documentElement,Me=ke.body,t=[Se,ke,Pe,Me],Ce.utils.clamp,Be=Ce.core.context||function(){},Oe="onpointerenter"in Me?"pointer":"mouse",Ee=k.isTouch=Se.matchMedia&&Se.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Se||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,Re=k.eventTypes=("ontouchstart"in Pe?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Pe?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return o=0},500),O(),Te=1),Te}var Ce,Te,Se,ke,Pe,Me,Ee,Oe,Ae,t,De,Re,Be,o=1,qe=[],Ie=[],Le=[],ze=Date.now,i=function _bridge(e,t){return t},n="scrollLeft",a="scrollTop",Ye={s:n,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:G(function(e){return arguments.length?Se.scrollTo(e,Fe.sc()):Se.pageXOffset||ke[n]||Pe[n]||Me[n]||0})},Fe={s:a,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ye,sc:G(function(e){return arguments.length?Se.scrollTo(Ye.sc(),e):Se.pageYOffset||ke[a]||Pe[a]||Me[a]||0})};Ye.op=Fe,Ie.cache=0;var k=(Observer.prototype.init=function init(e){Te||P(Ce)||console.warn("Please gsap.registerPlugin(Observer)"),Ae||O();var o=e.tolerance,a=e.dragMinimum,t=e.type,i=e.target,r=e.lineHeight,n=e.debounce,s=e.preventDefault,l=e.onStop,c=e.onStopDelay,u=e.ignore,f=e.wheelSpeed,d=e.event,p=e.onDragStart,g=e.onDragEnd,h=e.onDrag,v=e.onPress,b=e.onRelease,m=e.onRight,y=e.onLeft,x=e.onUp,w=e.onDown,_=e.onChangeX,T=e.onChangeY,S=e.onChange,k=e.onToggleX,E=e.onToggleY,D=e.onHover,R=e.onHoverEnd,q=e.onMove,I=e.ignoreCheck,z=e.isNormalizer,Y=e.onGestureStart,H=e.onGestureEnd,X=e.onWheel,W=e.onEnable,V=e.onDisable,U=e.onClick,j=e.scrollSpeed,G=e.capture,Q=e.allowClicks,Z=e.lockAxis,$=e.onLockAxis;function cf(){return xe=ze()}function df(e,t){return(se.event=e)&&u&&~u.indexOf(e.target)||t&&he&&"touch"!==e.pointerType||I&&I(e,t)}function ff(){var e=se.deltaX=N(me),t=se.deltaY=N(ye),r=Math.abs(e)>=o,n=Math.abs(t)>=o;S&&(r||n)&&S(se,e,t,me,ye),r&&(m&&0<se.deltaX&&m(se),y&&se.deltaX<0&&y(se),_&&_(se),k&&se.deltaX<0!=le<0&&k(se),le=se.deltaX,me[0]=me[1]=me[2]=0),n&&(w&&0<se.deltaY&&w(se),x&&se.deltaY<0&&x(se),T&&T(se),E&&se.deltaY<0!=ce<0&&E(se),ce=se.deltaY,ye[0]=ye[1]=ye[2]=0),(ne||re)&&(q&&q(se),re&&(h(se),re=!1),ne=!1),ie&&!(ie=!1)&&$&&$(se),oe&&(X(se),oe=!1),ee=0}function gf(e,t,r){me[r]+=e,ye[r]+=t,se._vx.update(e),se._vy.update(t),n?ee=ee||requestAnimationFrame(ff):ff()}function hf(e,t){Z&&!ae&&(se.axis=ae=Math.abs(e)>Math.abs(t)?"x":"y",ie=!0),"y"!==ae&&(me[2]+=e,se._vx.update(e,!0)),"x"!==ae&&(ye[2]+=t,se._vy.update(t,!0)),n?ee=ee||requestAnimationFrame(ff):ff()}function jf(e){if(!df(e,1)){var t=(e=M(e,s)).clientX,r=e.clientY,n=t-se.x,o=r-se.y,i=se.isDragging;se.x=t,se.y=r,(i||Math.abs(se.startX-t)>=a||Math.abs(se.startY-r)>=a)&&(h&&(re=!0),i||(se.isDragging=!0),hf(n,o),i||p&&p(se))}}function mf(e){return e.touches&&1<e.touches.length&&(se.isGesturing=!0)&&Y(e,se.isDragging)}function nf(){return(se.isGesturing=!1)||H(se)}function of(e){if(!df(e)){var t=fe(),r=de();gf((t-pe)*j,(r-ge)*j,1),pe=t,ge=r,l&&te.restart(!0)}}function pf(e){if(!df(e)){e=M(e,s),X&&(oe=!0);var t=(1===e.deltaMode?r:2===e.deltaMode?Se.innerHeight:1)*f;gf(e.deltaX*t,e.deltaY*t,0),l&&!z&&te.restart(!0)}}function qf(e){if(!df(e)){var t=e.clientX,r=e.clientY,n=t-se.x,o=r-se.y;se.x=t,se.y=r,ne=!0,l&&te.restart(!0),(n||o)&&hf(n,o)}}function rf(e){se.event=e,D(se)}function sf(e){se.event=e,R(se)}function tf(e){return df(e)||M(e,s)&&U(se)}this.target=i=J(i)||Pe,this.vars=e,u=u&&Ce.utils.toArray(u),o=o||1e-9,a=a||0,f=f||1,j=j||1,t=t||"wheel,touch,pointer",n=!1!==n,r=r||parseFloat(Se.getComputedStyle(Me).lineHeight)||22;var ee,te,re,ne,oe,ie,ae,se=this,le=0,ce=0,ue=e.passive||!s,fe=K(i,Ye),de=K(i,Fe),pe=fe(),ge=de(),he=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===Re[0],ve=A(i),be=i.ownerDocument||ke,me=[0,0,0],ye=[0,0,0],xe=0,we=se.onPress=function(e){df(e,1)||e&&e.button||(se.axis=ae=null,te.pause(),se.isPressed=!0,e=M(e),le=ce=0,se.startX=se.x=e.clientX,se.startY=se.y=e.clientY,se._vx.reset(),se._vy.reset(),B(z?i:be,Re[1],jf,ue,!0),se.deltaX=se.deltaY=0,v&&v(se))},_e=se.onRelease=function(t){if(!df(t,1)){C(z?i:be,Re[1],jf,!0);var e=!isNaN(se.y-se.startY),r=se.isDragging,n=r&&(3<Math.abs(se.x-se.startX)||3<Math.abs(se.y-se.startY)),o=M(t);!n&&e&&(se._vx.reset(),se._vy.reset(),s&&Q&&Ce.delayedCall(.08,function(){if(300<ze()-xe&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(be.createEvent){var e=be.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Se,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),se.isDragging=se.isGesturing=se.isPressed=!1,l&&r&&!z&&te.restart(!0),g&&r&&g(se),b&&b(se,n)}};te=se._dc=Ce.delayedCall(c||.25,function onStopFunc(){se._vx.reset(),se._vy.reset(),te.pause(),l&&l(se)}).pause(),se.deltaX=se.deltaY=0,se._vx=L(0,50,!0),se._vy=L(0,50,!0),se.scrollX=fe,se.scrollY=de,se.isDragging=se.isGesturing=se.isPressed=!1,Be(this),se.enable=function(e){return se.isEnabled||(B(ve?be:i,"scroll",F),0<=t.indexOf("scroll")&&B(ve?be:i,"scroll",of,ue,G),0<=t.indexOf("wheel")&&B(i,"wheel",pf,ue,G),(0<=t.indexOf("touch")&&Ee||0<=t.indexOf("pointer"))&&(B(i,Re[0],we,ue,G),B(be,Re[2],_e),B(be,Re[3],_e),Q&&B(i,"click",cf,!0,!0),U&&B(i,"click",tf),Y&&B(be,"gesturestart",mf),H&&B(be,"gestureend",nf),D&&B(i,Oe+"enter",rf),R&&B(i,Oe+"leave",sf),q&&B(i,Oe+"move",qf)),se.isEnabled=!0,e&&e.type&&we(e),W&&W(se)),se},se.disable=function(){se.isEnabled&&(qe.filter(function(e){return e!==se&&A(e.target)}).length||C(ve?be:i,"scroll",F),se.isPressed&&(se._vx.reset(),se._vy.reset(),C(z?i:be,Re[1],jf,!0)),C(ve?be:i,"scroll",of,G),C(i,"wheel",pf,G),C(i,Re[0],we,G),C(be,Re[2],_e),C(be,Re[3],_e),C(i,"click",cf,!0),C(i,"click",tf),C(be,"gesturestart",mf),C(be,"gestureend",nf),C(i,Oe+"enter",rf),C(i,Oe+"leave",sf),C(i,Oe+"move",qf),se.isEnabled=se.isPressed=se.isDragging=!1,V&&V(se))},se.kill=se.revert=function(){se.disable();var e=qe.indexOf(se);0<=e&&qe.splice(e,1),De===se&&(De=0)},qe.push(se),z&&A(i)&&(De=se),se.enable(d)},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}k.version="3.12.5",k.create=function(e){return new k(e)},k.register=P,k.getAll=function(){return qe.slice()},k.getById=function(t){return qe.filter(function(e){return e.vars.id===t})[0]},r()&&Ce.registerPlugin(k);function Ca(e,t,r){var n=ct(e)&&("clamp("===e.substr(0,6)||-1<e.indexOf("max"));return(r["_"+t+"Clamp"]=n)?e.substr(6,e.length-7):e}function Da(e,t){return!t||ct(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"}function Fa(){return Ge=1}function Ga(){return Ge=0}function Ha(e){return e}function Ia(e){return Math.round(1e5*e)/1e5||0}function Ja(){return"undefined"!=typeof window}function Ka(){return He||Ja()&&(He=window.gsap)&&He.registerPlugin&&He}function La(e){return!!~l.indexOf(e)}function Ma(e){return("Height"===e?T:Ne["inner"+e])||Je["client"+e]||We["client"+e]}function Na(e){return z(e,"getBoundingClientRect")||(La(e)?function(){return Ot.width=Ne.innerWidth,Ot.height=T,Ot}:function(){return wt(e)})}function Qa(e,t){var r=t.s,n=t.d2,o=t.d,i=t.a;return Math.max(0,(r="scroll"+n)&&(i=z(e,r))?i()-Na(e)()[o]:La(e)?(Je[r]||We[r])-Ma(n):e[r]-e["offset"+n])}function Ra(e,t){for(var r=0;r<g.length;r+=3)t&&!~t.indexOf(g[r+1])||e(g[r],g[r+1],g[r+2])}function Ta(e){return"function"==typeof e}function Ua(e){return"number"==typeof e}function Va(e){return"object"==typeof e}function Wa(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()}function Xa(e,t){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return t(e)}):t(e);r&&r.totalTime&&(e.callbackAnimation=r)}}function mb(e){return Ne.getComputedStyle(e)}function ob(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function qb(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0}function rb(e){var t,r=[],n=e.labels,o=e.duration();for(t in n)r.push(n[t]/o);return r}function tb(o){var i=He.utils.snap(o),a=Array.isArray(o)&&o.slice(0).sort(function(e,t){return e-t});return a?function(e,t,r){var n;if(void 0===r&&(r=.001),!t)return i(e);if(0<t){for(e-=r,n=0;n<a.length;n++)if(a[n]>=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=i(e);return!t||Math.abs(n-e)<r||n-e<0==t<0?n:i(t<0?e-o:e+o)}}function vb(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function wb(e,t,r,n,o){return e.addEventListener(t,r,{passive:!n,capture:!!o})}function xb(e,t,r,n){return e.removeEventListener(t,r,!!n)}function yb(e,t,r){(r=r&&r.wheelHandler)&&(e(t,"wheel",r),e(t,"touchmove",r))}function Cb(e,t){if(ct(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in H?H[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function Db(e,t,r,n,o,i,a,s){var l=o.startColor,c=o.endColor,u=o.fontSize,f=o.indent,d=o.fontWeight,p=Xe.createElement("div"),g=La(r)||"fixed"===z(r,"pinType"),h=-1!==e.indexOf("scroller"),v=g?We:r,b=-1!==e.indexOf("start"),m=b?l:c,y="border-color:"+m+";font-size:"+u+";color:"+m+";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 y+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(y+=(n===Fe?q:I)+":"+(i+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=b,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=y,p.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+n.op.d2],X(p,0,n,b),p}function Ib(){return 34<at()-st&&(D=D||requestAnimationFrame(Z))}function Jb(){v&&v.isPressed&&!(v.startX>We.clientWidth)||(Ie.cache++,v?D=D||requestAnimationFrame(Z):Z(),st||U("scrollStart"),st=at())}function Kb(){y=Ne.innerWidth,m=Ne.innerHeight}function Lb(){Ie.cache++,je||h||Xe.fullscreenElement||Xe.webkitFullscreenElement||b&&y===Ne.innerWidth&&!(Math.abs(Ne.innerHeight-m)>.25*Ne.innerHeight)||c.restart(!0)}function Ob(){return xb(ne,"scrollEnd",Ob)||Pt(!0)}function Rb(e){for(var t=0;t<j.length;t+=5)(!e||j[t+4]&&j[t+4].query===e)&&(j[t].style.cssText=j[t+1],j[t].getBBox&&j[t].setAttribute("transform",j[t+2]||""),j[t+3].uncache=1)}function Sb(e,t){var r;for(Qe=0;Qe<Tt.length;Qe++)!(r=Tt[Qe])||t&&r._ctx!==t||(e?r.kill(1):r.revert(!0,!0));S=!0,t&&Rb(t),t||U("revert")}function Tb(e,t){Ie.cache++,!t&&rt||Ie.forEach(function(e){return Ta(e)&&e.cacheID++&&(e.rec=0)}),ct(e)&&(Ne.history.scrollRestoration=w=e)}function Yb(){We.appendChild(_),T=!v&&_.offsetHeight||Ne.innerHeight,We.removeChild(_)}function Zb(t){return Ve(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})}function gc(e,t,r,n){if(!e._gsap.swappedIn){for(var o,i=$.length,a=t.style,s=e.style;i--;)a[o=$[i]]=r[o];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[I]=s[q]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[ft]=qb(e,Ye)+xt,a[dt]=qb(e,Fe)+xt,a[bt]=s[mt]=s.top=s.left="0",Et(n),s[ft]=s.maxWidth=r[ft],s[dt]=s.maxHeight=r[dt],s[bt]=r[bt],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}}function jc(e){for(var t=ee.length,r=e.style,n=[],o=0;o<t;o++)n.push(ee[o],r[ee[o]]);return n.t=e,n}function mc(e,t,r,n,o,i,a,s,l,c,u,f,d,p){Ta(e)&&(e=e(s)),ct(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?Cb("0"+e.substr(3),r):0));var g,h,v,b=d?d.time():0;if(d&&d.seek(0),isNaN(e)||(e=+e),Ua(e))d&&(e=He.utils.mapRange(d.scrollTrigger.start,d.scrollTrigger.end,0,f,e)),a&&X(a,r,n,!0);else{Ta(t)&&(t=t(s));var m,y,x,w,_=(e||"0").split(" ");v=J(t,s)||We,(m=wt(v)||{})&&(m.left||m.top)||"none"!==mb(v).display||(w=v.style.display,v.style.display="block",m=wt(v),w?v.style.display=w:v.style.removeProperty("display")),y=Cb(_[0],m[n.d]),x=Cb(_[1]||"0",r),e=m[n.p]-l[n.p]-c+y+o-x,a&&X(a,x,n,r-x<20||a._isStart&&20<x),r-=r-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),i){var C=e+r,T=i._isStart;g="scroll"+n.d2,X(i,C,n,T&&20<C||!T&&(u?Math.max(We[g],Je[g]):i.parentNode[g])<=C+1),u&&(l=wt(a),u&&(i.style[n.op.p]=l[n.op.p]-n.op.m-i._offset+xt))}return d&&v&&(g=wt(v),d.seek(f),h=wt(v),d._caScrollDist=g[n.p]-h[n.p],e=e/d._caScrollDist*f),d&&d.seek(b),d?e:Math.round(e)}function oc(e,t,r,n){if(e.parentNode!==t){var o,i,a=e.style;if(t===We){for(o in e._stOrig=a.cssText,i=mb(e))+o||re.test(o)||!i[o]||"string"!=typeof a[o]||"0"===o||(a[o]=i[o]);a.top=r,a.left=n}else a.cssText=e._stOrig;He.core.getCache(e).uncache=1,t.appendChild(e)}}function pc(r,e,n){var o=e,i=o;return function(e){var t=Math.round(r());return t!==o&&t!==i&&3<Math.abs(t-o)&&3<Math.abs(t-i)&&(e=t,n&&n()),i=o,o=e}}function qc(e,t,r){var n={};n[t.p]="+="+r,He.set(e,n)}function rc(c,e){function Ck(e,t,r,n,o){var i=Ck.tween,a=t.onComplete,s={};r=r||u();var l=pc(u,r,function(){i.kill(),Ck.tween=0});return o=n&&o||0,n=n||e-r,i&&i.kill(),t[f]=e,t.inherit=!1,(t.modifiers=s)[f]=function(){return l(r+n*i.ratio+o*i.ratio*i.ratio)},t.onUpdate=function(){Ie.cache++,Ck.tween&&Z()},t.onComplete=function(){Ck.tween=0,a&&a.call(i)},i=Ck.tween=He.to(c,t)}var u=K(c,e),f="_scroll"+e.p2;return(c[f]=u).wheelHandler=function(){return Ck.tween&&Ck.tween.kill()&&(Ck.tween=0)},wb(c,"wheel",u.wheelHandler),ne.isTouch&&wb(c,"touchmove",u.wheelHandler),Ck}var He,s,Ne,Xe,Je,We,l,c,Ve,Ue,Ke,u,je,Ge,f,Qe,d,p,g,Ze,$e,h,v,b,m,y,E,x,w,_,T,S,et,tt,D,rt,nt,ot,it=1,at=Date.now,R=at(),st=0,lt=0,ct=function _isString(e){return"string"==typeof e},ut=Math.abs,q="right",I="bottom",ft="width",dt="height",pt="Right",gt="Left",ht="Top",vt="Bottom",bt="padding",mt="margin",yt="Width",Y="Height",xt="px",wt=function _getBounds(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==mb(e)[f]&&He.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},_t={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ct={toggleActions:"play",anticipatePin:0},H={top:0,left:0,center:.5,bottom:1,right:1},X=function _positionMarker(e,t,r,n){var o={display:"block"},i=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,o[r.a+"Percent"]=n?-100:0,o[r.a]=n?"1px":0,o["border"+i+yt]=1,o["border"+a+yt]=0,o[r.p]=t+"px",He.set(e,o)},Tt=[],St={},W={},V=[],U=function _dispatch(e){return W[e]&&W[e].map(function(e){return e()})||V},j=[],kt=0,Pt=function _refreshAll(e,t){if(!st||e||S){Yb(),rt=ne.isRefreshing=!0,Ie.forEach(function(e){return Ta(e)&&++e.cacheID&&(e.rec=e())});var r=U("refreshInit");Ze&&ne.sort(),t||Sb(),Ie.forEach(function(e){Ta(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),Tt.slice(0).forEach(function(e){return e.refresh()}),S=!1,Tt.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",r=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-r),e.refresh()}}),et=1,Zb(!0),Tt.forEach(function(e){var t=Qa(e.scroller,e._dir),r="max"===e.vars.end||e._endClamp&&e.end>t,n=e._startClamp&&e.start>=t;(r||n)&&e.setPositions(n?t-1:e.start,r?Math.max(n?t:e.start+1,t):e.end,!0)}),Zb(!1),et=0,r.forEach(function(e){return e&&e.render&&e.render(-1)}),Ie.forEach(function(e){Ta(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),Tb(w,1),c.pause(),kt++,Z(rt=2),Tt.forEach(function(e){return Ta(e.vars.onRefresh)&&e.vars.onRefresh(e)}),rt=ne.isRefreshing=!1,U("refresh")}else wb(ne,"scrollEnd",Ob)},Q=0,Mt=1,Z=function _updateAll(e){if(2===e||!rt&&!S){ne.isUpdating=!0,ot&&ot.update(0);var t=Tt.length,r=at(),n=50<=r-R,o=t&&Tt[0].scroll();if(Mt=o<Q?-1:1,rt||(Q=o),n&&(st&&!Ge&&200<r-st&&(st=0,U("scrollEnd")),Ke=R,R=r),Mt<0){for(Qe=t;0<Qe--;)Tt[Qe]&&Tt[Qe].update(0,n);Mt=1}else for(Qe=0;Qe<t;Qe++)Tt[Qe]&&Tt[Qe].update(0,n);ne.isUpdating=!1}D=0},$=["left","top",I,q,mt+vt,mt+pt,mt+ht,mt+gt,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],ee=$.concat([ft,dt,"boxSizing","max"+yt,"max"+Y,"position",mt,bt,bt+ht,bt+pt,bt+vt,bt+gt]),te=/([A-Z])/g,Et=function _setState(e){if(e){var t,r,n=e.t.style,o=e.length,i=0;for((e.t._gsap||He.core.getCache(e.t)).uncache=1;i<o;i+=2)r=e[i+1],t=e[i],r?n[t]=r:n[t]&&n.removeProperty(t.replace(te,"-$1").toLowerCase())}},Ot={left:0,top:0},re=/(webkit|moz|length|cssText|inset)/i,ne=(ScrollTrigger.prototype.init=function init(E,O){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),lt){var A,n,p,D,R,B,q,I,L,Y,F,e,H,N,X,W,V,U,t,j,b,G,Q,m,Z,y,$,x,r,w,_,ee,o,g,te,re,ne,C,i,T=(E=ob(ct(E)||Ua(E)||E.nodeType?{trigger:E}:E,Ct)).onUpdate,S=E.toggleClass,a=E.id,k=E.onToggle,oe=E.onRefresh,P=E.scrub,ie=E.trigger,ae=E.pin,se=E.pinSpacing,le=E.invalidateOnRefresh,M=E.anticipatePin,s=E.onScrubComplete,h=E.onSnapComplete,ce=E.once,ue=E.snap,fe=E.pinReparent,l=E.pinSpacer,de=E.containerAnimation,pe=E.fastScrollEnd,ge=E.preventOverlaps,he=E.horizontal||E.containerAnimation&&!1!==E.horizontal?Ye:Fe,ve=!P&&0!==P,be=J(E.scroller||Ne),c=He.core.getCache(be),me=La(be),ye="fixed"===("pinType"in E?E.pinType:z(be,"pinType")||me&&"fixed"),xe=[E.onEnter,E.onLeave,E.onEnterBack,E.onLeaveBack],we=ve&&E.toggleActions.split(" "),_e="markers"in E?E.markers:Ct.markers,Ce=me?0:parseFloat(mb(be)["border"+he.p2+yt])||0,Te=this,Se=E.onRefreshInit&&function(){return E.onRefreshInit(Te)},ke=function _getSizeFunc(e,t,r){var n=r.d,o=r.d2,i=r.a;return(i=z(e,"getBoundingClientRect"))?function(){return i()[n]}:function(){return(t?Ma(o):e["client"+o])||0}}(be,me,he),Pe=function _getOffsetsFunc(e,t){return!t||~Le.indexOf(e)?Na(e):function(){return Ot}}(be,me),Me=0,Ee=0,Oe=0,Ae=K(be,he);if(Te._startClamp=Te._endClamp=!1,Te._dir=he,M*=45,Te.scroller=be,Te.scroll=de?de.time.bind(de):Ae,D=Ae(),Te.vars=E,O=O||E.animation,"refreshPriority"in E&&(Ze=1,-9999===E.refreshPriority&&(ot=Te)),c.tweenScroll=c.tweenScroll||{top:rc(be,Fe),left:rc(be,Ye)},Te.tweenTo=A=c.tweenScroll[he.p],Te.scrubDuration=function(e){(o=Ua(e)&&e)?ee?ee.duration(e):ee=He.to(O,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:o,paused:!0,onComplete:function onComplete(){return s&&s(Te)}}):(ee&&ee.progress(1).kill(),ee=0)},O&&(O.vars.lazy=!1,O._initted&&!Te.isReverted||!1!==O.vars.immediateRender&&!1!==E.immediateRender&&O.duration()&&O.render(0,!0,!0),Te.animation=O.pause(),(O.scrollTrigger=Te).scrubDuration(P),w=0,a=a||O.vars.id),ue&&(Va(ue)&&!ue.push||(ue={snapTo:ue}),"scrollBehavior"in We.style&&He.set(me?[We,Je]:be,{scrollBehavior:"auto"}),Ie.forEach(function(e){return Ta(e)&&e.target===(me?Xe.scrollingElement||Je:be)&&(e.smooth=!1)}),p=Ta(ue.snapTo)?ue.snapTo:"labels"===ue.snapTo?function _getClosestLabel(t){return function(e){return He.utils.snap(rb(t),e)}}(O):"labelsDirectional"===ue.snapTo?function _getLabelAtDirection(r){return function(e,t){return tb(rb(r))(e,t.direction)}}(O):!1!==ue.directional?function(e,t){return tb(ue.snapTo)(e,at()-Ee<500?0:t.direction)}:He.utils.snap(ue.snapTo),g=ue.duration||{min:.1,max:2},g=Va(g)?Ue(g.min,g.max):Ue(g,g),te=He.delayedCall(ue.delay||o/2||.1,function(){var e=Ae(),t=at()-Ee<500,r=A.tween;if(!(t||Math.abs(Te.getVelocity())<10)||r||Ge||Me===e)Te.isActive&&Me!==e&&te.restart(!0);else{var n,o,i=(e-B)/N,a=O&&!ve?O.totalProgress():i,s=t?0:(a-_)/(at()-Ke)*1e3||0,l=He.utils.clamp(-i,1-i,ut(s/2)*s/.185),c=i+(!1===ue.inertia?0:l),u=ue.onStart,f=ue.onInterrupt,d=ue.onComplete;if(n=p(c,Te),Ua(n)||(n=c),o=Math.round(B+n*N),e<=q&&B<=e&&o!==e){if(r&&!r._initted&&r.data<=ut(o-e))return;!1===ue.inertia&&(l=n-i),A(o,{duration:g(ut(.185*Math.max(ut(c-a),ut(n-a))/s/.05||0)),ease:ue.ease||"power3",data:ut(o-e),onInterrupt:function onInterrupt(){return te.restart(!0)&&f&&f(Te)},onComplete:function onComplete(){Te.update(),Me=Ae(),O&&(ee?ee.resetTo("totalProgress",n,O._tTime/O._tDur):O.progress(n)),w=_=O&&!ve?O.totalProgress():Te.progress,h&&h(Te),d&&d(Te)}},e,l*N,o-e-l*N),u&&u(Te,A.tween)}}}).pause()),a&&(St[a]=Te),i=(i=(ie=Te.trigger=J(ie||!0!==ae&&ae))&&ie._gsap&&ie._gsap.stRevert)&&i(Te),ae=!0===ae?ie:J(ae),ct(S)&&(S={targets:ie,className:S}),ae&&(!1===se||se===mt||(se=!(!se&&ae.parentNode&&ae.parentNode.style&&"flex"===mb(ae.parentNode).display)&&bt),Te.pin=ae,(n=He.core.getCache(ae)).spacer?X=n.pinState:(l&&((l=J(l))&&!l.nodeType&&(l=l.current||l.nativeElement),n.spacerIsNative=!!l,l&&(n.spacerState=jc(l))),n.spacer=U=l||Xe.createElement("div"),U.classList.add("pin-spacer"),a&&U.classList.add("pin-spacer-"+a),n.pinState=X=jc(ae)),!1!==E.force3D&&He.set(ae,{force3D:!0}),Te.spacer=U=n.spacer,r=mb(ae),m=r[se+he.os2],j=He.getProperty(ae),b=He.quickSetter(ae,he.a,xt),gc(ae,U,r),V=jc(ae)),_e){e=Va(_e)?ob(_e,_t):_t,Y=Db("scroller-start",a,be,he,e,0),F=Db("scroller-end",a,be,he,e,0,Y),t=Y["offset"+he.op.d2];var u=J(z(be,"content")||be);I=this.markerStart=Db("start",a,u,he,e,t,0,de),L=this.markerEnd=Db("end",a,u,he,e,t,0,de),de&&(C=He.quickSetter([I,L],he.a,xt)),ye||Le.length&&!0===z(be,"fixedMarkers")||(function _makePositionable(e){var t=mb(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"}(me?We:be),He.set([Y,F],{force3D:!0}),y=He.quickSetter(Y,he.a,xt),x=He.quickSetter(F,he.a,xt))}if(de){var f=de.vars.onUpdate,d=de.vars.onUpdateParams;de.eventCallback("onUpdate",function(){Te.update(0,0,1),f&&f.apply(de,d||[])})}if(Te.previous=function(){return Tt[Tt.indexOf(Te)-1]},Te.next=function(){return Tt[Tt.indexOf(Te)+1]},Te.revert=function(e,t){if(!t)return Te.kill(!0);var r=!1!==e||!Te.enabled,n=je;r!==Te.isReverted&&(r&&(re=Math.max(Ae(),Te.scroll.rec||0),Oe=Te.progress,ne=O&&O.progress()),I&&[I,L,Y,F].forEach(function(e){return e.style.display=r?"none":"block"}),r&&(je=Te).update(r),!ae||fe&&Te.isActive||(r?function _swapPinOut(e,t,r){Et(r);var n=e._gsap;if(n.spacerIsNative)Et(n.spacerState);else if(e._gsap.swappedIn){var o=t.parentNode;o&&(o.insertBefore(e,t),o.removeChild(t))}e._gsap.swappedIn=!1}(ae,U,X):gc(ae,U,mb(ae),Z)),r||Te.update(r),je=n,Te.isReverted=r)},Te.refresh=function(e,t,r,n){if(!je&&Te.enabled||t)if(ae&&e&&st)wb(ScrollTrigger,"scrollEnd",Ob);else{!rt&&Se&&Se(Te),je=Te,A.tween&&!r&&(A.tween.kill(),A.tween=0),ee&&ee.pause(),le&&O&&O.revert({kill:!1}).invalidate(),Te.isReverted||Te.revert(!0,!0),Te._subPinOffset=!1;var o,i,a,s,l,c,u,f,d,p,g,h,v,b=ke(),m=Pe(),y=de?de.duration():Qa(be,he),x=N<=.01,w=0,_=n||0,C=Va(r)?r.end:E.end,T=E.endTrigger||ie,S=Va(r)?r.start:E.start||(0!==E.start&&ie?ae?"0 0":"0 100%":0),k=Te.pinnedContainer=E.pinnedContainer&&J(E.pinnedContainer,Te),P=ie&&Math.max(0,Tt.indexOf(Te))||0,M=P;for(_e&&Va(r)&&(h=He.getProperty(Y,he.p),v=He.getProperty(F,he.p));M--;)(c=Tt[M]).end||c.refresh(0,1)||(je=Te),!(u=c.pin)||u!==ie&&u!==ae&&u!==k||c.isReverted||((p=p||[]).unshift(c),c.revert(!0,!0)),c!==Tt[M]&&(P--,M--);for(Ta(S)&&(S=S(Te)),S=Ca(S,"start",Te),B=mc(S,ie,b,he,Ae(),I,Y,Te,m,Ce,ye,y,de,Te._startClamp&&"_startClamp")||(ae?-.001:0),Ta(C)&&(C=C(Te)),ct(C)&&!C.indexOf("+=")&&(~C.indexOf(" ")?C=(ct(S)?S.split(" ")[0]:"")+C:(w=Cb(C.substr(2),b),C=ct(S)?S:(de?He.utils.mapRange(0,de.duration(),de.scrollTrigger.start,de.scrollTrigger.end,B):B)+w,T=ie)),C=Ca(C,"end",Te),q=Math.max(B,mc(C||(T?"100% 0":y),T,b,he,Ae()+w,L,F,Te,m,Ce,ye,y,de,Te._endClamp&&"_endClamp"))||-.001,w=0,M=P;M--;)(u=(c=Tt[M]).pin)&&c.start-c._pinPush<=B&&!de&&0<c.end&&(o=c.end-(Te._startClamp?Math.max(0,c.start):c.start),(u===ie&&c.start-c._pinPush<B||u===k)&&isNaN(S)&&(w+=o*(1-c.progress)),u===ae&&(_+=o));if(B+=w,q+=w,Te._startClamp&&(Te._startClamp+=w),Te._endClamp&&!rt&&(Te._endClamp=q||-.001,q=Math.min(q,Qa(be,he))),N=q-B||(B-=.01)&&.001,x&&(Oe=He.utils.clamp(0,1,He.utils.normalize(B,q,re))),Te._pinPush=_,I&&w&&((o={})[he.a]="+="+w,k&&(o[he.p]="-="+Ae()),He.set([I,L],o)),!ae||et&&Te.end>=Qa(be,he)){if(ie&&Ae()&&!de)for(i=ie.parentNode;i&&i!==We;)i._pinOffset&&(B-=i._pinOffset,q-=i._pinOffset),i=i.parentNode}else o=mb(ae),s=he===Fe,a=Ae(),G=parseFloat(j(he.a))+_,!y&&1<q&&(g={style:g=(me?Xe.scrollingElement||Je:be).style,value:g["overflow"+he.a.toUpperCase()]},me&&"scroll"!==mb(We)["overflow"+he.a.toUpperCase()]&&(g.style["overflow"+he.a.toUpperCase()]="scroll")),gc(ae,U,o),V=jc(ae),i=wt(ae,!0),f=ye&&K(be,s?Ye:Fe)(),se?((Z=[se+he.os2,N+_+xt]).t=U,(M=se===bt?qb(ae,he)+N+_:0)&&(Z.push(he.d,M+xt),"auto"!==U.style.flexBasis&&(U.style.flexBasis=M+xt)),Et(Z),k&&Tt.forEach(function(e){e.pin===k&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),ye&&Ae(re)):(M=qb(ae,he))&&"auto"!==U.style.flexBasis&&(U.style.flexBasis=M+xt),ye&&((l={top:i.top+(s?a-B:f)+xt,left:i.left+(s?f:a-B)+xt,boxSizing:"border-box",position:"fixed"})[ft]=l.maxWidth=Math.ceil(i.width)+xt,l[dt]=l.maxHeight=Math.ceil(i.height)+xt,l[mt]=l[mt+ht]=l[mt+pt]=l[mt+vt]=l[mt+gt]="0",l[bt]=o[bt],l[bt+ht]=o[bt+ht],l[bt+pt]=o[bt+pt],l[bt+vt]=o[bt+vt],l[bt+gt]=o[bt+gt],W=function _copyState(e,t,r){for(var n,o=[],i=e.length,a=r?8:0;a<i;a+=2)n=e[a],o.push(n,n in t?t[n]:e[a+1]);return o.t=e.t,o}(X,l,fe),rt&&Ae(0)),O?(d=O._initted,$e(1),O.render(O.duration(),!0,!0),Q=j(he.a)-G+N+_,$=1<Math.abs(N-Q),ye&&$&&W.splice(W.length-2,2),O.render(0,!0,!0),d||O.invalidate(!0),O.parent||O.totalTime(O.totalTime()),$e(0)):Q=N,g&&(g.value?g.style["overflow"+he.a.toUpperCase()]=g.value:g.style.removeProperty("overflow-"+he.a));p&&p.forEach(function(e){return e.revert(!1,!0)}),Te.start=B,Te.end=q,D=R=rt?re:Ae(),de||rt||(D<re&&Ae(re),Te.scroll.rec=0),Te.revert(!1,!0),Ee=at(),te&&(Me=-1,te.restart(!0)),je=0,O&&ve&&(O._initted||ne)&&O.progress()!==ne&&O.progress(ne||0,!0).render(O.time(),!0,!0),(x||Oe!==Te.progress||de||le)&&(O&&!ve&&O.totalProgress(de&&B<-.001&&!Oe?He.utils.normalize(B,q,0):Oe,!0),Te.progress=x||(D-B)/N===Oe?0:Oe),ae&&se&&(U._pinOffset=Math.round(Te.progress*Q)),ee&&ee.invalidate(),isNaN(h)||(h-=He.getProperty(Y,he.p),v-=He.getProperty(F,he.p),qc(Y,he,h),qc(I,he,h-(n||0)),qc(F,he,v),qc(L,he,v-(n||0))),x&&!rt&&Te.update(),!oe||rt||H||(H=!0,oe(Te),H=!1)}},Te.getVelocity=function(){return(Ae()-R)/(at()-Ke)*1e3||0},Te.endAnimation=function(){Wa(Te.callbackAnimation),O&&(ee?ee.progress(1):O.paused()?ve||Wa(O,Te.direction<0,1):Wa(O,O.reversed()))},Te.labelToScroll=function(e){return O&&O.labels&&(B||Te.refresh()||B)+O.labels[e]/O.duration()*N||0},Te.getTrailing=function(t){var e=Tt.indexOf(Te),r=0<Te.direction?Tt.slice(0,e).reverse():Tt.slice(e+1);return(ct(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(e){return 0<Te.direction?e.end<=B:e.start>=q})},Te.update=function(e,t,r){if(!de||r||e){var n,o,i,a,s,l,c,u=!0===rt?re:Te.scroll(),f=e?0:(u-B)/N,d=f<0?0:1<f?1:f||0,p=Te.progress;if(t&&(R=D,D=de?Ae():u,ue&&(_=w,w=O&&!ve?O.totalProgress():d)),M&&ae&&!je&&!it&&st&&(!d&&B<u+(u-R)/(at()-Ke)*M?d=1e-4:1===d&&q>u+(u-R)/(at()-Ke)*M&&(d=.9999)),d!==p&&Te.enabled){if(a=(s=(n=Te.isActive=!!d&&d<1)!=(!!p&&p<1))||!!d!=!!p,Te.direction=p<d?1:-1,Te.progress=d,a&&!je&&(o=d&&!p?0:1===d?1:1===p?2:3,ve&&(i=!s&&"none"!==we[o+1]&&we[o+1]||we[o],c=O&&("complete"===i||"reset"===i||i in O))),ge&&(s||c)&&(c||P||!O)&&(Ta(ge)?ge(Te):Te.getTrailing(ge).forEach(function(e){return e.endAnimation()})),ve||(!ee||je||it?O&&O.totalProgress(d,!(!je||!Ee&&!e)):(ee._dp._time-ee._start!==ee._time&&ee.render(ee._dp._time-ee._start),ee.resetTo?ee.resetTo("totalProgress",d,O._tTime/O._tDur):(ee.vars.totalProgress=d,ee.invalidate().restart()))),ae)if(e&&se&&(U.style[se+he.os2]=m),ye){if(a){if(l=!e&&p<d&&u<q+1&&u+1>=Qa(be,he),fe)if(e||!n&&!l)oc(ae,U);else{var g=wt(ae,!0),h=u-B;oc(ae,We,g.top+(he===Fe?h:0)+xt,g.left+(he===Fe?0:h)+xt)}Et(n||l?W:V),$&&d<1&&n||b(G+(1!==d||l?0:Q))}}else b(Ia(G+Q*d));!ue||A.tween||je||it||te.restart(!0),S&&(s||ce&&d&&(d<1||!tt))&&Ve(S.targets).forEach(function(e){return e.classList[n||ce?"add":"remove"](S.className)}),!T||ve||e||T(Te),a&&!je?(ve&&(c&&("complete"===i?O.pause().totalProgress(1):"reset"===i?O.restart(!0).pause():"restart"===i?O.restart(!0):O[i]()),T&&T(Te)),!s&&tt||(k&&s&&Xa(Te,k),xe[o]&&Xa(Te,xe[o]),ce&&(1===d?Te.kill(!1,1):xe[o]=0),s||xe[o=1===d?1:3]&&Xa(Te,xe[o])),pe&&!n&&Math.abs(Te.getVelocity())>(Ua(pe)?pe:2500)&&(Wa(Te.callbackAnimation),ee?ee.progress(1):Wa(O,"reverse"===i?1:!d,1))):ve&&T&&!je&&T(Te)}if(x){var v=de?u/de.duration()*(de._caScrollDist||0):u;y(v+(Y._isFlipped?1:0)),x(v)}C&&C(-u/de.duration()*(de._caScrollDist||0))}},Te.enable=function(e,t){Te.enabled||(Te.enabled=!0,wb(be,"resize",Lb),me||wb(be,"scroll",Jb),Se&&wb(ScrollTrigger,"refreshInit",Se),!1!==e&&(Te.progress=Oe=0,D=R=Me=Ae()),!1!==t&&Te.refresh())},Te.getTween=function(e){return e&&A?A.tween:ee},Te.setPositions=function(e,t,r,n){if(de){var o=de.scrollTrigger,i=de.duration(),a=o.end-o.start;e=o.start+a*e/i,t=o.start+a*t/i}Te.refresh(!1,!1,{start:Da(e,r&&!!Te._startClamp),end:Da(t,r&&!!Te._endClamp)},n),Te.update()},Te.adjustPinSpacing=function(e){if(Z&&e){var t=Z.indexOf(he.d)+1;Z[t]=parseFloat(Z[t])+e+xt,Z[1]=parseFloat(Z[1])+e+xt,Et(Z)}},Te.disable=function(e,t){if(Te.enabled&&(!1!==e&&Te.revert(!0,!0),Te.enabled=Te.isActive=!1,t||ee&&ee.pause(),re=0,n&&(n.uncache=1),Se&&xb(ScrollTrigger,"refreshInit",Se),te&&(te.pause(),A.tween&&A.tween.kill()&&(A.tween=0)),!me)){for(var r=Tt.length;r--;)if(Tt[r].scroller===be&&Tt[r]!==Te)return;xb(be,"resize",Lb),me||xb(be,"scroll",Jb)}},Te.kill=function(e,t){Te.disable(e,t),ee&&!t&&ee.kill(),a&&delete St[a];var r=Tt.indexOf(Te);0<=r&&Tt.splice(r,1),r===Qe&&0<Mt&&Qe--,r=0,Tt.forEach(function(e){return e.scroller===Te.scroller&&(r=1)}),r||rt||(Te.scroll.rec=0),O&&(O.scrollTrigger=null,e&&O.revert({kill:!1}),t||O.kill()),I&&[I,L,Y,F].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),ot===Te&&(ot=0),ae&&(n&&(n.uncache=1),r=0,Tt.forEach(function(e){return e.pin===ae&&r++}),r||(n.spacer=0)),E.onKill&&E.onKill(Te)},Tt.push(Te),Te.enable(!1,!1),i&&i(Te),O&&O.add&&!N){var v=Te.update;Te.update=function(){Te.update=v,B||q||Te.refresh()},He.delayedCall(.01,Te.update),N=.01,B=q=0}else Te.refresh();ae&&function _queueRefreshAll(){if(nt!==kt){var e=nt=kt;requestAnimationFrame(function(){return e===kt&&Pt(!0)})}}()}else this.update=this.refresh=this.kill=Ha},ScrollTrigger.register=function register(e){return s||(He=e||Ka(),Ja()&&window.document&&ScrollTrigger.enable(),s=lt),s},ScrollTrigger.defaults=function defaults(e){if(e)for(var t in e)Ct[t]=e[t];return Ct},ScrollTrigger.disable=function disable(t,r){lt=0,Tt.forEach(function(e){return e[r?"kill":"disable"](t)}),xb(Ne,"wheel",Jb),xb(Xe,"scroll",Jb),clearInterval(u),xb(Xe,"touchcancel",Ha),xb(We,"touchstart",Ha),vb(xb,Xe,"pointerdown,touchstart,mousedown",Fa),vb(xb,Xe,"pointerup,touchend,mouseup",Ga),c.kill(),Ra(xb);for(var e=0;e<Ie.length;e+=3)yb(xb,Ie[e],Ie[e+1]),yb(xb,Ie[e],Ie[e+2])},ScrollTrigger.enable=function enable(){if(Ne=window,Xe=document,Je=Xe.documentElement,We=Xe.body,He&&(Ve=He.utils.toArray,Ue=He.utils.clamp,x=He.core.context||Ha,$e=He.core.suppressOverwrites||Ha,w=Ne.history.scrollRestoration||"auto",Q=Ne.pageYOffset,He.core.globals("ScrollTrigger",ScrollTrigger),We)){lt=1,(_=document.createElement("div")).style.height="100vh",_.style.position="absolute",Yb(),function _rafBugFix(){return lt&&requestAnimationFrame(_rafBugFix)}(),k.register(He),ScrollTrigger.isTouch=k.isTouch,E=k.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),b=1===k.isTouch,wb(Ne,"wheel",Jb),l=[Ne,Xe,Je,We],He.matchMedia?(ScrollTrigger.matchMedia=function(e){var t,r=He.matchMedia();for(t in e)r.add(t,e[t]);return r},He.addEventListener("matchMediaInit",function(){return Sb()}),He.addEventListener("matchMediaRevert",function(){return Rb()}),He.addEventListener("matchMedia",function(){Pt(0,1),U("matchMedia")}),He.matchMedia("(orientation: portrait)",function(){return Kb(),Kb})):console.warn("Requires GSAP 3.11.0 or later"),Kb(),wb(Xe,"scroll",Jb);var e,t,r=We.style,n=r.borderTopStyle,o=He.core.Animation.prototype;for(o.revert||Object.defineProperty(o,"revert",{value:function value(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",e=wt(We),Fe.m=Math.round(e.top+Fe.sc())||0,Ye.m=Math.round(e.left+Ye.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),u=setInterval(Ib,250),He.delayedCall(.5,function(){return it=0}),wb(Xe,"touchcancel",Ha),wb(We,"touchstart",Ha),vb(wb,Xe,"pointerdown,touchstart,mousedown",Fa),vb(wb,Xe,"pointerup,touchend,mouseup",Ga),f=He.utils.checkPrefix("transform"),ee.push(f),s=at(),c=He.delayedCall(.2,Pt).pause(),g=[Xe,"visibilitychange",function(){var e=Ne.innerWidth,t=Ne.innerHeight;Xe.hidden?(d=e,p=t):d===e&&p===t||Lb()},Xe,"DOMContentLoaded",Pt,Ne,"load",Pt,Ne,"resize",Lb],Ra(wb),Tt.forEach(function(e){return e.enable(0,1)}),t=0;t<Ie.length;t+=3)yb(xb,Ie[t],Ie[t+1]),yb(xb,Ie[t],Ie[t+2])}},ScrollTrigger.config=function config(e){"limitCallbacks"in e&&(tt=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(u)||(u=t)&&setInterval(Ib,t),"ignoreMobileResize"in e&&(b=1===ScrollTrigger.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Ra(xb)||Ra(wb,e.autoRefreshEvents||"none"),h=-1===(e.autoRefreshEvents+"").indexOf("resize"))},ScrollTrigger.scrollerProxy=function scrollerProxy(e,t){var r=J(e),n=Ie.indexOf(r),o=La(r);~n&&Ie.splice(n,o?6:2),t&&(o?Le.unshift(Ne,t,We,t,Je,t):Le.unshift(r,t))},ScrollTrigger.clearMatchMedia=function clearMatchMedia(t){Tt.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},ScrollTrigger.isInViewport=function isInViewport(e,t,r){var n=(ct(e)?J(e):e).getBoundingClientRect(),o=n[r?ft:dt]*t||0;return r?0<n.right-o&&n.left+o<Ne.innerWidth:0<n.bottom-o&&n.top+o<Ne.innerHeight},ScrollTrigger.positionInViewport=function positionInViewport(e,t,r){ct(e)&&(e=J(e));var n=e.getBoundingClientRect(),o=n[r?ft:dt],i=null==t?o/2:t in H?H[t]*o:~t.indexOf("%")?parseFloat(t)*o/100:parseFloat(t)||0;return r?(n.left+i)/Ne.innerWidth:(n.top+i)/Ne.innerHeight},ScrollTrigger.killAll=function killAll(e){if(Tt.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e){var t=W.killAll||[];W={},t.forEach(function(e){return e()})}},ScrollTrigger);function ScrollTrigger(e,t){s||ScrollTrigger.register(He)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),x(this),this.init(e,t)}ne.version="3.12.5",ne.saveStyles=function(e){return e?Ve(e).forEach(function(e){if(e&&e.style){var t=j.indexOf(e);0<=t&&j.splice(t,5),j.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),He.core.getCache(e),x())}}):j},ne.revert=function(e,t){return Sb(!e,t)},ne.create=function(e,t){return new ne(e,t)},ne.refresh=function(e){return e?Lb():(s||ne.register())&&Pt(!0)},ne.update=function(e){return++Ie.cache&&Z(!0===e?2:0)},ne.clearScrollMemory=Tb,ne.maxScroll=function(e,t){return Qa(e,t?Ye:Fe)},ne.getScrollFunc=function(e,t){return K(J(e),t?Ye:Fe)},ne.getById=function(e){return St[e]},ne.getAll=function(){return Tt.filter(function(e){return"ScrollSmoother"!==e.vars.id})},ne.isScrolling=function(){return!!st},ne.snapDirectional=tb,ne.addEventListener=function(e,t){var r=W[e]||(W[e]=[]);~r.indexOf(t)||r.push(t)},ne.removeEventListener=function(e,t){var r=W[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},ne.batch=function(e,t){function Cp(e,t){var r=[],n=[],o=He.delayedCall(i,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||o.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&o.progress(1)}}var r,n=[],o={},i=t.interval||.016,a=t.batchMax||1e9;for(r in t)o[r]="on"===r.substr(0,2)&&Ta(t[r])&&"onRefreshInit"!==r?Cp(0,t[r]):t[r];return Ta(a)&&(a=a(),wb(ne,"refresh",function(){return a=t.batchMax()})),Ve(e).forEach(function(e){var t={};for(r in o)t[r]=o[r];t.trigger=e,n.push(ne.create(t))}),n};function tc(e,t,r,n){return n<t?e(n):t<0&&e(0),n<r?(n-t)/(r-t):r<0?t/(t-r):1}function uc(e,t){!0===t?e.style.removeProperty("touch-action"):e.style.touchAction=!0===t?"auto":t?"pan-"+t+(k.isTouch?" pinch-zoom":""):"none",e===Je&&uc(We,t)}function wc(e){var t,r=e.event,n=e.target,o=e.axis,i=(r.changedTouches?r.changedTouches[0]:r).target,a=i._gsap||He.core.getCache(i),s=at();if(!a._isScrollT||2e3<s-a._isScrollT){for(;i&&i!==We&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!ie[(t=mb(i)).overflowY]&&!ie[t.overflowX]);)i=i.parentNode;a._isScroll=i&&i!==n&&!La(i)&&(ie[(t=mb(i)).overflowY]||ie[t.overflowX]),a._isScrollT=s}!a._isScroll&&"x"!==o||(r.stopPropagation(),r._gsapAllow=!0)}function xc(e,t,r,n){return k.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&wc,onPress:n,onDrag:n,onScroll:n,onEnable:function onEnable(){return r&&wb(Xe,k.eventTypes[0],se,!1,!0)},onDisable:function onDisable(){return xb(Xe,k.eventTypes[0],se,!0)}})}function Bc(e){function zq(){return o=!1}function Cq(){i=Qa(p,Fe),S=Ue(E?1:0,i),f&&(T=Ue(0,Qa(p,Ye))),l=kt}function Dq(){v._gsap.y=Ia(parseFloat(v._gsap.y)+b.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)",b.offset=b.cacheID=0}function Jq(){Cq(),a.isActive()&&a.vars.scrollY>i&&(b()>i?a.progress(1)&&b(i):a.resetTo("scrollY",i))}Va(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n,i,l,o,a,c,u,s,f=e.normalizeScrollX,t=e.momentum,r=e.allowNestedScroll,d=e.onRelease,p=J(e.target)||Je,g=He.core.globals().ScrollSmoother,h=g&&g.get(),v=E&&(e.content&&J(e.content)||h&&!1!==e.content&&!h.smooth()&&h.content()),b=K(p,Fe),m=K(p,Ye),y=1,x=(k.isTouch&&Ne.visualViewport?Ne.visualViewport.scale*Ne.visualViewport.width:Ne.outerWidth)/Ne.innerWidth,w=0,_=Ta(t)?function(){return t(n)}:function(){return t||2.8},C=xc(p,e.type,!0,r),T=Ha,S=Ha;return v&&He.set(v,{y:"+=0"}),e.ignoreCheck=function(e){return E&&"touchmove"===e.type&&function ignoreDrag(){if(o){requestAnimationFrame(zq);var e=Ia(n.deltaY/2),t=S(b.v-e);if(v&&t!==b.v+b.offset){b.offset=t-b.v;var r=Ia((parseFloat(v&&v._gsap.y)||0)-b.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",v._gsap.y=r+"px",b.cacheID=Ie.cache,Z()}return!0}b.offset&&Dq(),o=!0}()||1.05<y&&"touchstart"!==e.type||n.isGesturing||e.touches&&1<e.touches.length},e.onPress=function(){o=!1;var e=y;y=Ia((Ne.visualViewport&&Ne.visualViewport.scale||1)/x),a.pause(),e!==y&&uc(p,1.01<y||!f&&"x"),c=m(),u=b(),Cq(),l=kt},e.onRelease=e.onGestureStart=function(e,t){if(b.offset&&Dq(),t){Ie.cache++;var r,n,o=_();f&&(n=(r=m())+.05*o*-e.velocityX/.227,o*=tc(m,r,n,Qa(p,Ye)),a.vars.scrollX=T(n)),n=(r=b())+.05*o*-e.velocityY/.227,o*=tc(b,r,n,Qa(p,Fe)),a.vars.scrollY=S(n),a.invalidate().duration(o).play(.01),(E&&a.vars.scrollY>=i||i-1<=r)&&He.to({},{onUpdate:Jq,duration:o})}else s.restart(!0);d&&d(e)},e.onWheel=function(){a._ts&&a.pause(),1e3<at()-w&&(l=0,w=at())},e.onChange=function(e,t,r,n,o){if(kt!==l&&Cq(),t&&f&&m(T(n[2]===t?c+(e.startX-e.x):m()+t-n[1])),r){b.offset&&Dq();var i=o[2]===r,a=i?u+e.startY-e.y:b()+r-o[1],s=S(a);i&&a!==s&&(u+=s-a),b(s)}(r||t)&&Z()},e.onEnable=function(){uc(p,!f&&"x"),ne.addEventListener("refresh",Jq),wb(Ne,"resize",Jq),b.smooth&&(b.target.style.scrollBehavior="auto",b.smooth=m.smooth=!1),C.enable()},e.onDisable=function(){uc(p,!0),xb(Ne,"resize",Jq),ne.removeEventListener("refresh",Jq),C.kill()},e.lockAxis=!1!==e.lockAxis,((n=new k(e)).iOS=E)&&!b()&&b(1),E&&He.ticker.add(Ha),s=n._dc,a=He.to(n,{ease:"power4",paused:!0,inherit:!1,scrollX:f?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:pc(b,b(),function(){return a.pause()})},onUpdate:Z,onComplete:s.vars.onComplete}),n}var oe,ie={auto:1,scroll:1},ae=/(input|label|select|textarea)/i,se=function _captureInputs(e){var t=ae.test(e.target.tagName);(t||oe)&&(e._gsapAllow=!0,oe=t)};ne.sort=function(e){return Tt.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},ne.observe=function(e){return new k(e)},ne.normalizeScroll=function(e){if(void 0===e)return v;if(!0===e&&v)return v.enable();if(!1===e)return v&&v.kill(),void(v=e);var t=e instanceof k?e:Bc(e);return v&&v.target===t.target&&v.kill(),La(t.target)&&(v=t),t},ne.core={_getVelocityProp:L,_inputObserver:xc,_scrollers:Ie,_proxies:Le,bridge:{ss:function ss(){st||U("scrollStart"),st=at()},ref:function ref(){return je}}},Ka()&&He.registerPlugin(ne),e.ScrollTrigger=ne,e.default=ne;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* SplitText 3.12.4 | ||
* SplitText 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(u){"use strict";var b=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function n(D){U=document,e=window,(i=i||D||e.gsap||console.warn("Please gsap.registerPlugin(SplitText)"))&&(o=i.utils.toArray,s=i.core.context||function(){},t=1)}function q(){return String.fromCharCode.apply(null,arguments)}function v(D){return e.getComputedStyle(D)}function w(D){return"absolute"===D.position||!0===D.absolute}function x(D,u){for(var e,t=u.length;-1<--t;)if(e=u[t],D.substr(0,e.length)===e)return e.length}function z(D,u){void 0===D&&(D="");var e=~D.indexOf("++"),t=1;return e&&(D=D.split("++").join("")),function(){return"<"+u+" style='position:relative;display:inline-block;'"+(D?" class='"+D+(e?t++:"")+"'>":">")}}function A(D,u,e){var t=D.nodeType;if(1===t||9===t||11===t)for(D=D.firstChild;D;D=D.nextSibling)A(D,u,e);else 3!==t&&4!==t||(D.nodeValue=D.nodeValue.split(u).join(e))}function B(D,u){for(var e=u.length;-1<--e;)D.push(u[e])}function C(D,u,e){for(var t;D&&D!==u;){if(t=D._next||D.nextSibling)return t.textContent.charAt(0)===e;D=D.parentNode||D._parent}}function D(u){var e,t,F=o(u.childNodes),i=F.length;for(e=0;e<i;e++)(t=F[e])._isSplit?D(t):e&&t.previousSibling&&3===t.previousSibling.nodeType?(t.previousSibling.nodeValue+=3===t.nodeType?t.nodeValue:t.firstChild.nodeValue,u.removeChild(t)):3!==t.nodeType&&(u.insertBefore(t.firstChild,t),u.removeChild(t))}function E(D,u){return parseFloat(u[D])||0}function F(u,e,t,F,i,n,s){var o,r,l,d,a,p,h,f,c,g,x,y,b=v(u),S=E("paddingLeft",b),_=-999,m=E("borderBottomWidth",b)+E("borderTopWidth",b),q=E("borderLeftWidth",b)+E("borderRightWidth",b),T=E("paddingTop",b)+E("paddingBottom",b),N=E("paddingLeft",b)+E("paddingRight",b),L=E("fontSize",b)*(e.lineThreshold||.2),W=b.textAlign,H=[],O=[],j=[],k=e.wordDelimiter||" ",V=e.tag?e.tag:e.span?"span":"div",M=e.type||e.split||"chars,words,lines",R=i&&~M.indexOf("lines")?[]:null,P=~M.indexOf("words"),z=~M.indexOf("chars"),G=w(e),$=e.linesClass,I=~($||"").indexOf("++"),J=[],K="flex"===b.display,Q=u.style.display;for(I&&($=$.split("++").join("")),K&&(u.style.display="block"),l=(r=u.getElementsByTagName("*")).length,a=[],o=0;o<l;o++)a[o]=r[o];if(R||G)for(o=0;o<l;o++)((p=(d=a[o]).parentNode===u)||G||z&&!P)&&(y=d.offsetTop,R&&p&&Math.abs(y-_)>L&&("BR"!==d.nodeName||0===o)&&(h=[],R.push(h),_=y),G&&(d._x=d.offsetLeft,d._y=y,d._w=d.offsetWidth,d._h=d.offsetHeight),R&&((d._isSplit&&p||!z&&p||P&&p||!P&&d.parentNode.parentNode===u&&!d.parentNode._isSplit)&&(h.push(d),d._x-=S,C(d,u,k)&&(d._wordEnd=!0)),"BR"===d.nodeName&&(d.nextSibling&&"BR"===d.nextSibling.nodeName||0===o)&&R.push([])));for(o=0;o<l;o++)if(p=(d=a[o]).parentNode===u,"BR"!==d.nodeName)if(G&&(c=d.style,P||p||(d._x+=d.parentNode._x,d._y+=d.parentNode._y),c.left=d._x+"px",c.top=d._y+"px",c.position="absolute",c.display="block",c.width=d._w+1+"px",c.height=d._h+"px"),!P&&z)if(d._isSplit)for(d._next=r=d.nextSibling,d.parentNode.appendChild(d);r&&3===r.nodeType&&" "===r.textContent;)d._next=r.nextSibling,d.parentNode.appendChild(r),r=r.nextSibling;else d.parentNode._isSplit?(d._parent=d.parentNode,!d.previousSibling&&d.firstChild&&(d.firstChild._isFirst=!0),d.nextSibling&&" "===d.nextSibling.textContent&&!d.nextSibling.nextSibling&&J.push(d.nextSibling),d._next=d.nextSibling&&d.nextSibling._isFirst?null:d.nextSibling,d.parentNode.removeChild(d),a.splice(o--,1),l--):p||(y=!d.nextSibling&&C(d.parentNode,u,k),d.parentNode._parent&&d.parentNode._parent.appendChild(d),y&&d.parentNode.appendChild(U.createTextNode(" ")),"span"===V&&(d.style.display="inline"),H.push(d));else d.parentNode._isSplit&&!d._isSplit&&""!==d.innerHTML?O.push(d):z&&!d._isSplit&&("span"===V&&(d.style.display="inline"),H.push(d));else R||G?(d.parentNode&&d.parentNode.removeChild(d),a.splice(o--,1),l--):P||u.appendChild(d);for(o=J.length;-1<--o;)J[o].parentNode.removeChild(J[o]);if(R){for(G&&(g=U.createElement(V),u.appendChild(g),x=g.offsetWidth+"px",y=g.offsetParent===u?0:u.offsetLeft,u.removeChild(g)),c=u.style.cssText,u.style.cssText="display:none;";u.firstChild;)u.removeChild(u.firstChild);for(f=" "===k&&(!G||!P&&!z),o=0;o<R.length;o++){for(h=R[o],(g=U.createElement(V)).style.cssText="display:block;text-align:"+W+";position:"+(G?"absolute;":"relative;"),$&&(g.className=$+(I?o+1:"")),j.push(g),l=h.length,r=0;r<l;r++)"BR"!==h[r].nodeName&&(d=h[r],g.appendChild(d),f&&d._wordEnd&&g.appendChild(U.createTextNode(" ")),G&&(0===r&&(g.style.top=d._y+"px",g.style.left=S+y+"px"),d.style.top="0px",y&&(d.style.left=d._x-y+"px")));0===l?g.innerHTML=" ":P||z||(D(g),A(g,String.fromCharCode(160)," ")),G&&(g.style.width=x,g.style.height=d._h+"px"),u.appendChild(g)}u.style.cssText=c}G&&(s>u.clientHeight&&(u.style.height=s-T+"px",u.clientHeight<s&&(u.style.height=s+m+"px")),n>u.clientWidth&&(u.style.width=n-N+"px",u.clientWidth<n&&(u.style.width=n+q+"px"))),K&&(Q?u.style.display=Q:u.style.removeProperty("display")),B(t,H),P&&B(F,O),B(i,j)}function G(D,u,e,t){function sb(D){return D===p||D===m&&" "===p}var F,i,n,C,s,E,o,r,l=u.tag?u.tag:u.span?"span":"div",d=~(u.type||u.split||"chars,words,lines").indexOf("chars"),a=w(u),p=u.wordDelimiter||" ",h=" "!==p?"":a?"­ ":" ",f="</"+l+">",B=1,c=u.specialChars?"function"==typeof u.specialChars?u.specialChars:x:null,g=U.createElement("div"),y=D.parentNode;for(y.insertBefore(g,D),g.textContent=D.nodeValue,y.removeChild(D),o=-1!==(F=function getText(D){var u=D.nodeType,e="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)e+=getText(D)}else if(3===u||4===u)return D.nodeValue;return e}(D=g)).indexOf("<"),!1!==u.reduceWhiteSpace&&(F=F.replace(_," ").replace(S,"")),o&&(F=F.split("<").join("{{LT}}")),s=F.length,i=(" "===F.charAt(0)?h:"")+e(),n=0;n<s;n++)if(E=F.charAt(n),c&&(r=c(F.substr(n),u.specialChars)))E=F.substr(n,r||1),i+=d&&" "!==E?t()+E+"</"+l+">":E,n+=r-1;else if(sb(E)&&!sb(F.charAt(n-1))&&n){for(i+=B?f:"",B=0;sb(F.charAt(n+1));)i+=h,n++;n===s-1?i+=h:")"!==F.charAt(n+1)&&(i+=h+e(),B=1)}else"{"===E&&"{{LT}}"===F.substr(n,6)?(i+=d?t()+"{{LT}}</"+l+">":"{{LT}}",n+=5):55296<=E.charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=F.charCodeAt(n+1)&&F.charCodeAt(n+1)<=65039?(C=((F.substr(n,12).split(b)||[])[1]||"").length||2,i+=d&&" "!==E?t()+F.substr(n,C)+"</"+l+">":F.substr(n,C),n+=C-1):i+=d&&" "!==E?t()+E+"</"+l+">":E;D.outerHTML=i+(B?f:""),o&&A(y,"{{LT}}","<")}function H(D,u,e,t){var F,i,n=o(D.childNodes),C=n.length,s=w(u);if(3!==D.nodeType||1<C){for(u.absolute=!1,F=0;F<C;F++)(i=n[F])._next=i._isFirst=i._parent=i._wordEnd=null,3===i.nodeType&&!/\S+/.test(i.nodeValue)||(s&&3!==i.nodeType&&"inline"===v(i).display&&(i.style.display="inline-block",i.style.position="relative"),i._isSplit=!0,H(i,u,e,t));return u.absolute=s,void(D._isSplit=!0)}G(D,u,e,t)}var U,e,t,i,s,o,r,S=/(?:\r|\n|\t\t)/g,_=/(?:\s\s+)/g,m=String.fromCharCode(160),l="SplitText",d=q(103,114,101,101,110,115,111,99,107,46,99,111,109),a=q(103,115,97,112,46,99,111,109),p=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,h=function(D){var u="undefined"!=typeof window,e=0===(u?window.location.href:"").indexOf(q(102,105,108,101,58,47,47))||-1!==D.indexOf(q(108,111,99,97,108,104,111,115,116))||p.test(D)||(u?window.location.hostname:"").split(".").pop()===q(108,111,99,97,108),t=[d,a,q(99,111,100,101,112,101,110,46,105,111),q(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),q(99,111,100,101,112,101,110,46,100,101,118),q(99,111,100,101,112,101,110,46,97,112,112),q(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),q(112,101,110,115,46,99,108,111,117,100),q(99,115,115,45,116,114,105,99,107,115,46,99,111,109),q(99,100,112,110,46,105,111),q(112,101,110,115,46,105,111),q(103,97,110,110,111,110,46,116,118),q(99,111,100,101,99,97,110,121,111,110,46,110,101,116),q(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),q(99,101,114,101,98,114,97,120,46,99,111,46,117,107),q(116,121,109,112,97,110,117,115,46,110,101,116),q(116,119,101,101,110,109,97,120,46,99,111,109),q(112,108,110,107,114,46,99,111),q(104,111,116,106,97,114,46,99,111,109),q(119,101,98,112,97,99,107,98,105,110,46,99,111,109),q(97,114,99,104,105,118,101,46,111,114,103),q(99,111,100,101,115,97,110,100,98,111,120,46,105,111),q(99,115,98,46,97,112,112),q(115,116,97,99,107,98,108,105,116,122,46,99,111,109),q(115,116,97,99,107,98,108,105,116,122,46,105,111),q(99,111,100,105,101,114,46,105,111),q(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),q(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),q(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),q(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),q(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),q(106,115,102,105,100,100,108,101,46,110,101,116)],F=t.length;for(setTimeout(function checkWarn(){if(u)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var D="object"==typeof i?i:u&&window.gsap;u&&window.console&&!window._gsapWarned&&"object"==typeof D&&!1!==D.config().trialWarn&&(console.log(q(37,99,87,97,114,110,105,110,103),q(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(q(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+l+q(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(q(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),q(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--F;)if(-1!==D.indexOf(t[F]))return!0;return e||!setTimeout(function(){u&&(window.location.href=q(104,116,116,112,115,58,47,47)+d+q(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+l+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),f=((r=SplitText.prototype).split=function split(D){this.isSplit&&this.revert(),this.vars=D=D||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var u,e,t,i=this.elements.length,n=D.tag?D.tag:D.span?"span":"div",C=z(D.wordsClass,n),s=z(D.charsClass,n);-1<--i;)t=this.elements[i],this._originals[i]={html:t.innerHTML,style:t.getAttribute("style")},u=t.clientHeight,e=t.clientWidth,H(t,D,C,s),F(t,D,this.chars,this.words,this.lines,e,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},r.revert=function revert(){var e=this._originals;if(!e)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(D,u){D.innerHTML=e[u].html,D.setAttribute("style",e[u].style)}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},SplitText.create=function create(D,u){return new SplitText(D,u)},SplitText);function SplitText(D,u){t||n(),this.elements=o(D),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=u||{},s(this),h&&this.split(u)}f.version="3.12.4",f.register=n,u.SplitText=f,u.default=f;if (typeof(window)==="undefined"||window!==u){Object.defineProperty(u,"__esModule",{value:!0})} else {delete u.default}}); | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(u){"use strict";var b=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function n(D){U=document,e=window,(i=i||D||e.gsap||console.warn("Please gsap.registerPlugin(SplitText)"))&&(o=i.utils.toArray,s=i.core.context||function(){},t=1)}function q(){return String.fromCharCode.apply(null,arguments)}function v(D){return e.getComputedStyle(D)}function w(D){return"absolute"===D.position||!0===D.absolute}function x(D,u){for(var e,t=u.length;-1<--t;)if(e=u[t],D.substr(0,e.length)===e)return e.length}function z(D,u){void 0===D&&(D="");var e=~D.indexOf("++"),t=1;return e&&(D=D.split("++").join("")),function(){return"<"+u+" style='position:relative;display:inline-block;'"+(D?" class='"+D+(e?t++:"")+"'>":">")}}function A(D,u,e){var t=D.nodeType;if(1===t||9===t||11===t)for(D=D.firstChild;D;D=D.nextSibling)A(D,u,e);else 3!==t&&4!==t||(D.nodeValue=D.nodeValue.split(u).join(e))}function B(D,u){for(var e=u.length;-1<--e;)D.push(u[e])}function C(D,u,e){for(var t;D&&D!==u;){if(t=D._next||D.nextSibling)return t.textContent.charAt(0)===e;D=D.parentNode||D._parent}}function D(u){var e,t,F=o(u.childNodes),i=F.length;for(e=0;e<i;e++)(t=F[e])._isSplit?D(t):e&&t.previousSibling&&3===t.previousSibling.nodeType?(t.previousSibling.nodeValue+=3===t.nodeType?t.nodeValue:t.firstChild.nodeValue,u.removeChild(t)):3!==t.nodeType&&(u.insertBefore(t.firstChild,t),u.removeChild(t))}function E(D,u){return parseFloat(u[D])||0}function F(u,e,t,F,i,n,s){var o,r,l,d,a,p,h,f,c,g,x,y,b=v(u),S=E("paddingLeft",b),_=-999,m=E("borderBottomWidth",b)+E("borderTopWidth",b),q=E("borderLeftWidth",b)+E("borderRightWidth",b),T=E("paddingTop",b)+E("paddingBottom",b),N=E("paddingLeft",b)+E("paddingRight",b),L=E("fontSize",b)*(e.lineThreshold||.2),W=b.textAlign,H=[],O=[],j=[],k=e.wordDelimiter||" ",V=e.tag?e.tag:e.span?"span":"div",M=e.type||e.split||"chars,words,lines",R=i&&~M.indexOf("lines")?[]:null,P=~M.indexOf("words"),z=~M.indexOf("chars"),G=w(e),$=e.linesClass,I=~($||"").indexOf("++"),J=[],K="flex"===b.display,Q=u.style.display;for(I&&($=$.split("++").join("")),K&&(u.style.display="block"),l=(r=u.getElementsByTagName("*")).length,a=[],o=0;o<l;o++)a[o]=r[o];if(R||G)for(o=0;o<l;o++)((p=(d=a[o]).parentNode===u)||G||z&&!P)&&(y=d.offsetTop,R&&p&&Math.abs(y-_)>L&&("BR"!==d.nodeName||0===o)&&(h=[],R.push(h),_=y),G&&(d._x=d.offsetLeft,d._y=y,d._w=d.offsetWidth,d._h=d.offsetHeight),R&&((d._isSplit&&p||!z&&p||P&&p||!P&&d.parentNode.parentNode===u&&!d.parentNode._isSplit)&&(h.push(d),d._x-=S,C(d,u,k)&&(d._wordEnd=!0)),"BR"===d.nodeName&&(d.nextSibling&&"BR"===d.nextSibling.nodeName||0===o)&&R.push([])));for(o=0;o<l;o++)if(p=(d=a[o]).parentNode===u,"BR"!==d.nodeName)if(G&&(c=d.style,P||p||(d._x+=d.parentNode._x,d._y+=d.parentNode._y),c.left=d._x+"px",c.top=d._y+"px",c.position="absolute",c.display="block",c.width=d._w+1+"px",c.height=d._h+"px"),!P&&z)if(d._isSplit)for(d._next=r=d.nextSibling,d.parentNode.appendChild(d);r&&3===r.nodeType&&" "===r.textContent;)d._next=r.nextSibling,d.parentNode.appendChild(r),r=r.nextSibling;else d.parentNode._isSplit?(d._parent=d.parentNode,!d.previousSibling&&d.firstChild&&(d.firstChild._isFirst=!0),d.nextSibling&&" "===d.nextSibling.textContent&&!d.nextSibling.nextSibling&&J.push(d.nextSibling),d._next=d.nextSibling&&d.nextSibling._isFirst?null:d.nextSibling,d.parentNode.removeChild(d),a.splice(o--,1),l--):p||(y=!d.nextSibling&&C(d.parentNode,u,k),d.parentNode._parent&&d.parentNode._parent.appendChild(d),y&&d.parentNode.appendChild(U.createTextNode(" ")),"span"===V&&(d.style.display="inline"),H.push(d));else d.parentNode._isSplit&&!d._isSplit&&""!==d.innerHTML?O.push(d):z&&!d._isSplit&&("span"===V&&(d.style.display="inline"),H.push(d));else R||G?(d.parentNode&&d.parentNode.removeChild(d),a.splice(o--,1),l--):P||u.appendChild(d);for(o=J.length;-1<--o;)J[o].parentNode.removeChild(J[o]);if(R){for(G&&(g=U.createElement(V),u.appendChild(g),x=g.offsetWidth+"px",y=g.offsetParent===u?0:u.offsetLeft,u.removeChild(g)),c=u.style.cssText,u.style.cssText="display:none;";u.firstChild;)u.removeChild(u.firstChild);for(f=" "===k&&(!G||!P&&!z),o=0;o<R.length;o++){for(h=R[o],(g=U.createElement(V)).style.cssText="display:block;text-align:"+W+";position:"+(G?"absolute;":"relative;"),$&&(g.className=$+(I?o+1:"")),j.push(g),l=h.length,r=0;r<l;r++)"BR"!==h[r].nodeName&&(d=h[r],g.appendChild(d),f&&d._wordEnd&&g.appendChild(U.createTextNode(" ")),G&&(0===r&&(g.style.top=d._y+"px",g.style.left=S+y+"px"),d.style.top="0px",y&&(d.style.left=d._x-y+"px")));0===l?g.innerHTML=" ":P||z||(D(g),A(g,String.fromCharCode(160)," ")),G&&(g.style.width=x,g.style.height=d._h+"px"),u.appendChild(g)}u.style.cssText=c}G&&(s>u.clientHeight&&(u.style.height=s-T+"px",u.clientHeight<s&&(u.style.height=s+m+"px")),n>u.clientWidth&&(u.style.width=n-N+"px",u.clientWidth<n&&(u.style.width=n+q+"px"))),K&&(Q?u.style.display=Q:u.style.removeProperty("display")),B(t,H),P&&B(F,O),B(i,j)}function G(D,u,e,t){function sb(D){return D===p||D===m&&" "===p}var F,i,n,C,s,E,o,r,l=u.tag?u.tag:u.span?"span":"div",d=~(u.type||u.split||"chars,words,lines").indexOf("chars"),a=w(u),p=u.wordDelimiter||" ",h=" "!==p?"":a?"­ ":" ",f="</"+l+">",B=1,c=u.specialChars?"function"==typeof u.specialChars?u.specialChars:x:null,g=U.createElement("div"),y=D.parentNode;for(y.insertBefore(g,D),g.textContent=D.nodeValue,y.removeChild(D),o=-1!==(F=function getText(D){var u=D.nodeType,e="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)e+=getText(D)}else if(3===u||4===u)return D.nodeValue;return e}(D=g)).indexOf("<"),!1!==u.reduceWhiteSpace&&(F=F.replace(_," ").replace(S,"")),o&&(F=F.split("<").join("{{LT}}")),s=F.length,i=(" "===F.charAt(0)?h:"")+e(),n=0;n<s;n++)if(E=F.charAt(n),c&&(r=c(F.substr(n),u.specialChars)))E=F.substr(n,r||1),i+=d&&" "!==E?t()+E+"</"+l+">":E,n+=r-1;else if(sb(E)&&!sb(F.charAt(n-1))&&n){for(i+=B?f:"",B=0;sb(F.charAt(n+1));)i+=h,n++;n===s-1?i+=h:")"!==F.charAt(n+1)&&(i+=h+e(),B=1)}else"{"===E&&"{{LT}}"===F.substr(n,6)?(i+=d?t()+"{{LT}}</"+l+">":"{{LT}}",n+=5):55296<=E.charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=F.charCodeAt(n+1)&&F.charCodeAt(n+1)<=65039?(C=((F.substr(n,12).split(b)||[])[1]||"").length||2,i+=d&&" "!==E?t()+F.substr(n,C)+"</"+l+">":F.substr(n,C),n+=C-1):i+=d&&" "!==E?t()+E+"</"+l+">":E;D.outerHTML=i+(B?f:""),o&&A(y,"{{LT}}","<")}function H(D,u,e,t){var F,i,n=o(D.childNodes),C=n.length,s=w(u);if(3!==D.nodeType||1<C){for(u.absolute=!1,F=0;F<C;F++)(i=n[F])._next=i._isFirst=i._parent=i._wordEnd=null,3===i.nodeType&&!/\S+/.test(i.nodeValue)||(s&&3!==i.nodeType&&"inline"===v(i).display&&(i.style.display="inline-block",i.style.position="relative"),i._isSplit=!0,H(i,u,e,t));return u.absolute=s,void(D._isSplit=!0)}G(D,u,e,t)}var U,e,t,i,s,o,r,S=/(?:\r|\n|\t\t)/g,_=/(?:\s\s+)/g,m=String.fromCharCode(160),l="SplitText",d=q(103,114,101,101,110,115,111,99,107,46,99,111,109),a=q(103,115,97,112,46,99,111,109),p=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,h=function(D){var u="undefined"!=typeof window,e=0===(u?window.location.href:"").indexOf(q(102,105,108,101,58,47,47))||-1!==D.indexOf(q(108,111,99,97,108,104,111,115,116))||p.test(D)||(u?window.location.hostname:"").split(".").pop()===q(108,111,99,97,108),t=[d,a,q(99,111,100,101,112,101,110,46,105,111),q(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),q(99,111,100,101,112,101,110,46,100,101,118),q(99,111,100,101,112,101,110,46,97,112,112),q(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),q(112,101,110,115,46,99,108,111,117,100),q(99,115,115,45,116,114,105,99,107,115,46,99,111,109),q(99,100,112,110,46,105,111),q(112,101,110,115,46,105,111),q(103,97,110,110,111,110,46,116,118),q(99,111,100,101,99,97,110,121,111,110,46,110,101,116),q(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),q(99,101,114,101,98,114,97,120,46,99,111,46,117,107),q(116,121,109,112,97,110,117,115,46,110,101,116),q(116,119,101,101,110,109,97,120,46,99,111,109),q(112,108,110,107,114,46,99,111),q(104,111,116,106,97,114,46,99,111,109),q(119,101,98,112,97,99,107,98,105,110,46,99,111,109),q(97,114,99,104,105,118,101,46,111,114,103),q(99,111,100,101,115,97,110,100,98,111,120,46,105,111),q(99,115,98,46,97,112,112),q(115,116,97,99,107,98,108,105,116,122,46,99,111,109),q(115,116,97,99,107,98,108,105,116,122,46,105,111),q(99,111,100,105,101,114,46,105,111),q(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),q(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),q(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),q(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),q(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),q(106,115,102,105,100,100,108,101,46,110,101,116)],F=t.length;for(setTimeout(function checkWarn(){if(u)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var D="object"==typeof i?i:u&&window.gsap;u&&window.console&&!window._gsapWarned&&"object"==typeof D&&!1!==D.config().trialWarn&&(console.log(q(37,99,87,97,114,110,105,110,103),q(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(q(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+l+q(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(q(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),q(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--F;)if(-1!==D.indexOf(t[F]))return!0;return e||!setTimeout(function(){u&&(window.location.href=q(104,116,116,112,115,58,47,47)+d+q(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+l+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),f=((r=SplitText.prototype).split=function split(D){this.isSplit&&this.revert(),this.vars=D=D||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var u,e,t,i=this.elements.length,n=D.tag?D.tag:D.span?"span":"div",C=z(D.wordsClass,n),s=z(D.charsClass,n);-1<--i;)t=this.elements[i],this._originals[i]={html:t.innerHTML,style:t.getAttribute("style")},u=t.clientHeight,e=t.clientWidth,H(t,D,C,s),F(t,D,this.chars,this.words,this.lines,e,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},r.revert=function revert(){var e=this._originals;if(!e)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(D,u){D.innerHTML=e[u].html,D.setAttribute("style",e[u].style)}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},SplitText.create=function create(D,u){return new SplitText(D,u)},SplitText);function SplitText(D,u){t||n(),this.elements=o(D),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=u||{},s(this),h&&this.split(u)}f.version="3.12.5",f.register=n,u.SplitText=f,u.default=f;if (typeof(window)==="undefined"||window!==u){Object.defineProperty(u,"__esModule",{value:!0})} else {delete u.default}}); |
/*! | ||
* TextPlugin 3.12.4 | ||
* TextPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var i=/(?:^\s+|\s+$)/g,r=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function splitInnerHTML(D,u,F,C){for(var E,e=D.firstChild,t=[];e;)3===e.nodeType?(E=(e.nodeValue+"").replace(/^\n+/g,""),C||(E=E.replace(/\s+/g," ")),t.push.apply(t,emojiSafeSplit(E,u,F,C))):"br"===(e.nodeName+"").toLowerCase()?t[t.length-1]+="<br>":t.push(e.outerHTML),e=e.nextSibling;for(E=t.length;E--;)"&"===t[E]&&t.splice(E,1,"&");return t}function emojiSafeSplit(D,u,F,C){if(D+="",F&&(D=D.trim?D.trim():D.replace(i,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var E,e,t=[],n=D.length,B=0;B<n;B++)(55296<=(e=D.charAt(B)).charCodeAt(0)&&e.charCodeAt(0)<=56319||65024<=D.charCodeAt(B+1)&&D.charCodeAt(B+1)<=65039)&&(E=((D.substr(B,12).split(r)||[])[1]||"").length||2,e=D.substr(B,E),B+=E-(t.emoji=1)),t.push(">"===e?">":"<"===e?"<":!C||" "!==e||" "!==D.charAt(B-1)&&" "!==D.charAt(B+1)?e:" ");return t}var u,g,F={version:"3.12.4",name:"text",init:function init(D,u,F){"object"!=typeof u&&(u={value:u});var C,E,e,t,n,B,i,r,A=D.nodeName.toUpperCase(),s=this,l=u.newClass,o=u.oldClass,a=u.preserveSpaces,p=u.rtl,f=s.delimiter=u.delimiter||"",d=s.fillChar=u.fillChar||(u.padSpace?" ":"");if(s.svg=D.getBBox&&("TEXT"===A||"TSPAN"===A),!("innerHTML"in D||s.svg))return!1;if(s.target=D,"value"in u){for(e=splitInnerHTML(D,f,!1,a),(g=g||document.createElement("div")).innerHTML=u.value,E=splitInnerHTML(g,f,!1,a),s.from=F._from,!s.from&&!p||p&&s.from||(A=e,e=E,E=A),s.hasClass=!(!l&&!o),s.newClass=p?o:l,s.oldClass=p?l:o,C=(A=e.length-E.length)<0?e:E,A<0&&(A=-A);-1<--A;)C.push(d);if("diff"===u.type){for(n=[],B=[],i="",A=t=0;A<E.length;A++)(r=E[A])===e[A]?i+=r:(n[t]=i+r,B[t++]=i+e[A],i="");E=n,e=B,i&&(E.push(i),e.push(i))}u.speed&&F.duration(Math.min(.05/u.speed*C.length,u.maxDuration||9999)),s.rtl=p,s.original=e,s.text=E,s._props.push("text")}else s.text=s.original=[""]},render:function render(D,u){1<D?D=1:D<0&&(D=0),u.from&&(D=1-D);var F,C,E,e=u.text,t=u.hasClass,n=u.newClass,B=u.oldClass,i=u.delimiter,r=u.target,A=u.fillChar,s=u.original,l=u.rtl,o=e.length,a=(l?1-D:D)*o+.5|0;E=t&&D?(C=B&&a!==o,((F=n&&a)?"<span class='"+n+"'>":"")+e.slice(0,a).join(i)+(F?"</span>":"")+(C?"<span class='"+B+"'>":"")+i+s.slice(a).join(i)+(C?"</span>":"")):e.slice(0,a).join(i)+i+s.slice(a).join(i),u.svg?r.textContent=E:r.innerHTML=" "===A&&~E.indexOf(" ")?E.split(" ").join(" "):E}};F.splitInnerHTML=splitInnerHTML,F.emojiSafeSplit=emojiSafeSplit,F.getText=function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F},function _getGSAP(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}()&&u.registerPlugin(F),D.TextPlugin=F,D.default=F;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}}); | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var i=/(?:^\s+|\s+$)/g,r=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function splitInnerHTML(D,u,F,C){for(var E,e=D.firstChild,t=[];e;)3===e.nodeType?(E=(e.nodeValue+"").replace(/^\n+/g,""),C||(E=E.replace(/\s+/g," ")),t.push.apply(t,emojiSafeSplit(E,u,F,C))):"br"===(e.nodeName+"").toLowerCase()?t[t.length-1]+="<br>":t.push(e.outerHTML),e=e.nextSibling;for(E=t.length;E--;)"&"===t[E]&&t.splice(E,1,"&");return t}function emojiSafeSplit(D,u,F,C){if(D+="",F&&(D=D.trim?D.trim():D.replace(i,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var E,e,t=[],n=D.length,B=0;B<n;B++)(55296<=(e=D.charAt(B)).charCodeAt(0)&&e.charCodeAt(0)<=56319||65024<=D.charCodeAt(B+1)&&D.charCodeAt(B+1)<=65039)&&(E=((D.substr(B,12).split(r)||[])[1]||"").length||2,e=D.substr(B,E),B+=E-(t.emoji=1)),t.push(">"===e?">":"<"===e?"<":!C||" "!==e||" "!==D.charAt(B-1)&&" "!==D.charAt(B+1)?e:" ");return t}var u,g,F={version:"3.12.5",name:"text",init:function init(D,u,F){"object"!=typeof u&&(u={value:u});var C,E,e,t,n,B,i,r,A=D.nodeName.toUpperCase(),s=this,l=u.newClass,o=u.oldClass,a=u.preserveSpaces,p=u.rtl,f=s.delimiter=u.delimiter||"",d=s.fillChar=u.fillChar||(u.padSpace?" ":"");if(s.svg=D.getBBox&&("TEXT"===A||"TSPAN"===A),!("innerHTML"in D||s.svg))return!1;if(s.target=D,"value"in u){for(e=splitInnerHTML(D,f,!1,a),(g=g||document.createElement("div")).innerHTML=u.value,E=splitInnerHTML(g,f,!1,a),s.from=F._from,!s.from&&!p||p&&s.from||(A=e,e=E,E=A),s.hasClass=!(!l&&!o),s.newClass=p?o:l,s.oldClass=p?l:o,C=(A=e.length-E.length)<0?e:E,A<0&&(A=-A);-1<--A;)C.push(d);if("diff"===u.type){for(n=[],B=[],i="",A=t=0;A<E.length;A++)(r=E[A])===e[A]?i+=r:(n[t]=i+r,B[t++]=i+e[A],i="");E=n,e=B,i&&(E.push(i),e.push(i))}u.speed&&F.duration(Math.min(.05/u.speed*C.length,u.maxDuration||9999)),s.rtl=p,s.original=e,s.text=E,s._props.push("text")}else s.text=s.original=[""]},render:function render(D,u){1<D?D=1:D<0&&(D=0),u.from&&(D=1-D);var F,C,E,e=u.text,t=u.hasClass,n=u.newClass,B=u.oldClass,i=u.delimiter,r=u.target,A=u.fillChar,s=u.original,l=u.rtl,o=e.length,a=(l?1-D:D)*o+.5|0;E=t&&D?(C=B&&a!==o,((F=n&&a)?"<span class='"+n+"'>":"")+e.slice(0,a).join(i)+(F?"</span>":"")+(C?"<span class='"+B+"'>":"")+i+s.slice(a).join(i)+(C?"</span>":"")):e.slice(0,a).join(i)+i+s.slice(a).join(i),u.svg?r.textContent=E:r.innerHTML=" "===A&&~E.indexOf(" ")?E.split(" ").join(" "):E}};F.splitInnerHTML=splitInnerHTML,F.emojiSafeSplit=emojiSafeSplit,F.getText=function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F},function _getGSAP(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}()&&u.registerPlugin(F),D.TextPlugin=F,D.default=F;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}}); |
/*! | ||
* Draggable 3.12.4 | ||
* Draggable 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let e,t,o,n,r,i,l,a,s,d="transform",c=d+"Origin",p=r=>{let i=r.ownerDocument||r;!(d in r.style)&&"msTransform"in r.style&&(d="msTransform",c=d+"Origin");for(;i.parentNode&&(i=i.parentNode););if(t=window,l=new v,i){e=i,o=i.documentElement,n=i.body,a=e.createElementNS("http://www.w3.org/2000/svg","g"),a.style.transform="none";let t=i.createElement("div"),r=i.createElement("div"),l=i&&(i.body||i.firstElementChild);l&&l.appendChild&&(l.appendChild(t),t.appendChild(r),t.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),s=r.offsetParent!==t,l.removeChild(t))}return i},h=[],g=[],u=e=>e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null),f=e=>"fixed"===t.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?f(e):void 0),x=(t,o)=>{if(t.parentNode&&(e||p(t))){let n=u(t),l=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?o?"rect":"g":"div",s=2!==o?0:100,d=3===o?100:0,c="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",p=e.createElementNS?e.createElementNS(l.replace(/^https/,"http"),a):e.createElement(a);return o&&(n?(i||(i=x(t)),p.setAttribute("width",.01),p.setAttribute("height",.01),p.setAttribute("transform","translate("+s+","+d+")"),i.appendChild(p)):(r||(r=x(t),r.style.cssText=c),p.style.cssText=c+"width:0.1px;height:0.1px;top:"+d+"px;left:"+s+"px",r.appendChild(p))),p}throw"Need document and parent."},m=(e,o)=>{let n,p,f,m,y,w,b=u(e),T=e===b,E=b?h:g,M=e.parentNode;if(e===t)return e;if(E.length||E.push(x(e,1),x(e,2),x(e,3)),n=b?i:r,b)T?(f=(e=>{let t,o=e.getCTM();return o||(t=e.style[d],e.style[d]="none",e.appendChild(a),o=a.getCTM(),e.removeChild(a),t?e.style[d]=t:e.style.removeProperty(d.replace(/([A-Z])/g,"-$1").toLowerCase())),o||l.clone()})(e),m=-f.e/f.a,y=-f.f/f.d,p=l):e.getBBox?(f=e.getBBox(),p=e.transform?e.transform.baseVal:{},p=p.numberOfItems?p.numberOfItems>1?(e=>{let t=new v,o=0;for(;o<e.numberOfItems;o++)t.multiply(e.getItem(o).matrix);return t})(p):p.getItem(0).matrix:l,m=p.a*f.x+p.c*f.y,y=p.b*f.x+p.d*f.y):(p=new v,m=y=0),o&&"g"===e.tagName.toLowerCase()&&(m=y=0),(T?b:M).appendChild(n),n.setAttribute("transform","matrix("+p.a+","+p.b+","+p.c+","+p.d+","+(p.e+m)+","+(p.f+y)+")");else{if(m=y=0,s)for(p=e.offsetParent,f=e;f&&(f=f.parentNode)&&f!==p&&f.parentNode;)(t.getComputedStyle(f)[d]+"").length>4&&(m=f.offsetLeft,y=f.offsetTop,f=0);if(w=t.getComputedStyle(e),"absolute"!==w.position&&"fixed"!==w.position)for(p=e.offsetParent;M&&M!==p;)m+=M.scrollLeft||0,y+=M.scrollTop||0,M=M.parentNode;f=n.style,f.top=e.offsetTop-y+"px",f.left=e.offsetLeft-m+"px",f[d]=w[d],f[c]=w[c],f.position="fixed"===w.position?"fixed":"absolute",e.parentNode.appendChild(n)}return n},y=(e,t,o,n,r,i,l)=>(e.a=t,e.b=o,e.c=n,e.d=r,e.e=i,e.f=l,e);class v{constructor(e=1,t=0,o=0,n=1,r=0,i=0){y(this,e,t,o,n,r,i)}inverse(){let{a:e,b:t,c:o,d:n,e:r,f:i}=this,l=e*n-t*o||1e-10;return y(this,n/l,-t/l,-o/l,e/l,(o*i-n*r)/l,-(e*i-t*r)/l)}multiply(e){let{a:t,b:o,c:n,d:r,e:i,f:l}=this,a=e.a,s=e.c,d=e.b,c=e.d,p=e.e,h=e.f;return y(this,a*t+d*n,a*o+d*r,s*t+c*n,s*o+c*r,i+p*t+h*n,l+p*o+h*r)}clone(){return new v(this.a,this.b,this.c,this.d,this.e,this.f)}equals(e){let{a:t,b:o,c:n,d:r,e:i,f:l}=this;return t===e.a&&o===e.b&&n===e.c&&r===e.d&&i===e.e&&l===e.f}apply(e,t={}){let{x:o,y:n}=e,{a:r,b:i,c:l,d:a,e:s,f:d}=this;return t.x=o*r+n*l+s||0,t.y=o*i+n*a+d||0,t}}function w(r,i,l,a){if(!r||!r.parentNode||(e||p(r)).documentElement===r)return new v;let s=(e=>{let t,o;for(;e&&e!==n;)o=e._gsap,o&&o.uncache&&o.get(e,"x"),o&&!o.scaleX&&!o.scaleY&&o.renderTransform&&(o.scaleX=o.scaleY=1e-4,o.renderTransform(1,o),t?t.push(o):t=[o]),e=e.parentNode;return t})(r),d=u(r)?h:g,c=m(r,l),x=d[0].getBoundingClientRect(),y=d[1].getBoundingClientRect(),w=d[2].getBoundingClientRect(),b=c.parentNode,T=!a&&f(r),E=new v((y.left-x.left)/100,(y.top-x.top)/100,(w.left-x.left)/100,(w.top-x.top)/100,x.left+(T?0:t.pageXOffset||e.scrollLeft||o.scrollLeft||n.scrollLeft||0),x.top+(T?0:t.pageYOffset||e.scrollTop||o.scrollTop||n.scrollTop||0));if(b.removeChild(c),s)for(x=s.length;x--;)y=s[x],y.scaleX=y.scaleY=0,y.renderTransform(1,y);return i?E.inverse():E}let b,T,E,M,X,S,Y,C,k,D,L,N,P,O,R,A,_,B,I,H,F,W,z=0,V=()=>"undefined"!=typeof window,K=()=>b||V()&&(b=window.gsap)&&b.registerPlugin&&b,G=e=>"function"==typeof e,U=e=>"object"==typeof e,q=e=>void 0===e,$=()=>!1,j="transform",Z="transformOrigin",J=e=>Math.round(1e4*e)/1e4,Q=Array.isArray,ee=(e,t)=>{let o=E.createElementNS?E.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):E.createElement(e);return o.style?o:E.createElement(e)},te=180/Math.PI,oe=1e20,ne=new v,re=Date.now||(()=>(new Date).getTime()),ie=[],le={},ae=0,se=/^(?:a|input|textarea|button|select)$/i,de=0,ce={},pe={},he=(e,t)=>{let o,n={};for(o in e)n[o]=t?e[o]*t:e[o];return n},ge=(e,t)=>{let o,n=e.length;for(;n--;)t?e[n].style.touchAction=t:e[n].style.removeProperty("touch-action"),o=e[n].children,o&&o.length&&ge(o,t)},ue=()=>ie.forEach(e=>e()),fe=()=>!ie.length&&b.ticker.remove(ue),xe=e=>{let t=ie.length;for(;t--;)ie[t]===e&&ie.splice(t,1);b.to(fe,{overwrite:!0,delay:15,duration:0,onComplete:fe,data:"_draggable"})},me=(e,t,o,n)=>{if(e.addEventListener){let r=P[t];n=n||(L?{passive:!1}:null),e.addEventListener(r||t,o,n),r&&t!==r&&e.addEventListener(t,o,n)}},ye=(e,t,o,n)=>{if(e.removeEventListener){let r=P[t];e.removeEventListener(r||t,o,n),r&&t!==r&&e.removeEventListener(t,o,n)}},ve=e=>{e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()},we=e=>{O=e.touches&&z<e.touches.length,ye(e.target,"touchend",we)},be=e=>{O=e.touches&&z<e.touches.length,me(e.target,"touchend",we)},Te=e=>T.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0,Ee=e=>T.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0,Me=(e,t)=>{me(e,"scroll",t),Se(e.parentNode)||Me(e.parentNode,t)},Xe=(e,t)=>{ye(e,"scroll",t),Se(e.parentNode)||Xe(e.parentNode,t)},Se=e=>!(e&&e!==M&&9!==e.nodeType&&e!==E.body&&e!==T&&e.nodeType&&e.parentNode),Ye=(e,t)=>{let o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return Math.max(0,Se(e)?Math.max(M[n],X[n])-(T["inner"+o]||M[r]||X[r]):e[n]-e[r])},Ce=(e,t)=>{let o=Ye(e,"x"),n=Ye(e,"y");Se(e)?e=pe:Ce(e.parentNode,t),e._gsMaxScrollX=o,e._gsMaxScrollY=n,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},ke=(e,t,o)=>{let n=e.style;n&&(q(n[t])&&(t=k(t,e)||t),null==o?n.removeProperty&&n.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):n[t]=o)},De=e=>T.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e),Le={},Ne=e=>{if(e===T)return Le.left=Le.top=0,Le.width=Le.right=M.clientWidth||e.innerWidth||X.clientWidth||0,Le.height=Le.bottom=(e.innerHeight||0)-20<M.clientHeight?M.clientHeight:e.innerHeight||X.clientHeight||0,Le;let t=e.ownerDocument||E,o=q(e.pageX)?e.nodeType||q(e.left)||q(e.top)?D(e)[0].getBoundingClientRect():e:{left:e.pageX-Ee(t),top:e.pageY-Te(t),right:e.pageX-Ee(t)+1,bottom:e.pageY-Te(t)+1};return q(o.right)&&!q(o.width)?(o.right=o.left+o.width,o.bottom=o.top+o.height):q(o.width)&&(o={width:o.right-o.left,height:o.bottom-o.top,right:o.right,left:o.left,bottom:o.bottom,top:o.top}),o},Pe=(e,t,o)=>{let n,r=e.vars,i=r[o],l=e._listeners[t];return G(i)&&(n=i.apply(r.callbackScope||e,r[o+"Params"]||[e.pointerEvent])),l&&!1===e.dispatchEvent(t)&&(n=!1),n},Oe=(e,t)=>{let o,n,r,i=D(e)[0];return i.nodeType||i===T?Ae(i,t):q(e.left)?(n=e.min||e.minX||e.minRotation||0,o=e.min||e.minY||0,{left:n,top:o,width:(e.max||e.maxX||e.maxRotation||0)-n,height:(e.max||e.maxY||0)-o}):(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})},Re={},Ae=(e,t)=>{t=D(t)[0];let o,n,r,i,l,a,s,d,c,p,h,g,u,f=e.getBBox&&e.ownerSVGElement,x=e.ownerDocument||E;if(e===T)r=Te(x),o=Ee(x),n=o+(x.documentElement.clientWidth||e.innerWidth||x.body.clientWidth||0),i=r+((e.innerHeight||0)-20<x.documentElement.clientHeight?x.documentElement.clientHeight:e.innerHeight||x.body.clientHeight||0);else{if(t===T||q(t))return e.getBoundingClientRect();o=r=0,f?(p=e.getBBox(),h=p.width,g=p.height):(e.viewBox&&(p=e.viewBox.baseVal)&&(o=p.x||0,r=p.y||0,h=p.width,g=p.height),h||(u=De(e),p="border-box"===u.boxSizing,h=(parseFloat(u.width)||e.clientWidth||0)+(p?0:parseFloat(u.borderLeftWidth)+parseFloat(u.borderRightWidth)),g=(parseFloat(u.height)||e.clientHeight||0)+(p?0:parseFloat(u.borderTopWidth)+parseFloat(u.borderBottomWidth)))),n=h,i=g}return e===t?{left:o,top:r,width:n-o,height:i-r}:(l=w(t,!0).multiply(w(e)),a=l.apply({x:o,y:r}),s=l.apply({x:n,y:r}),d=l.apply({x:n,y:i}),c=l.apply({x:o,y:i}),o=Math.min(a.x,s.x,d.x,c.x),r=Math.min(a.y,s.y,d.y,c.y),{left:o,top:r,width:Math.max(a.x,s.x,d.x,c.x)-o,height:Math.max(a.y,s.y,d.y,c.y)-r})},_e=(e,t,o,n,r,i)=>{let l,a,s,d={};if(t)if(1!==r&&t instanceof Array){if(d.end=l=[],s=t.length,U(t[0]))for(a=0;a<s;a++)l[a]=he(t[a],r);else for(a=0;a<s;a++)l[a]=t[a]*r;o+=1.1,n-=1.1}else G(t)?d.end=o=>{let n,i,l=t.call(e,o);if(1!==r)if(U(l)){for(i in n={},l)n[i]=l[i]*r;l=n}else l*=r;return l}:d.end=t;return(o||0===o)&&(d.max=o),(n||0===n)&&(d.min=n),i&&(d.velocity=0),d},Be=e=>{let t;return!(!e||!e.getAttribute||e===X)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!se.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||Be(e.parentNode))},Ie=(e,t)=>{let o,n=e.length;for(;n--;)o=e[n],o.ondragstart=o.onselectstart=t?null:$,b.set(o,{lazy:!0,userSelect:t?"text":"none"})},He=e=>"fixed"===De(e).position||((e=e.parentNode)&&1===e.nodeType?He(e):void 0),Fe=function(e,t){e=b.utils.toArray(e)[0],t=t||{};let o,n,r,i,l,a,s=document.createElement("div"),d=s.style,c=e.firstChild,p=0,h=0,g=e.scrollTop,u=e.scrollLeft,f=e.scrollWidth,x=e.scrollHeight,m=0,y=0,v=0;F&&!1!==t.force3D?(l="translate3d(",a="px,0px)"):j&&(l="translate(",a="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(o,n){if(!arguments.length)return-(e.scrollLeft+h);let r=e.scrollLeft-u,i=h;if((r>2||r<-2)&&!n)return u=e.scrollLeft,b.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-u),void(t.onKill&&t.onKill());(o=-o)<0?(h=o-.5|0,o=0):o>y?(h=o-y|0,o=y):h=0,(h||i)&&(this._skip||(d[j]=l+-h+"px,"+-p+a),h+m>=0&&(d.paddingRight=h+m+"px")),e.scrollLeft=0|o,u=e.scrollLeft},this.top=function(o,n){if(!arguments.length)return-(e.scrollTop+p);let r=e.scrollTop-g,i=p;if((r>2||r<-2)&&!n)return g=e.scrollTop,b.killTweensOf(this,{top:1,scrollTop:1}),this.top(-g),void(t.onKill&&t.onKill());(o=-o)<0?(p=o-.5|0,o=0):o>v?(p=o-v|0,o=v):p=0,(p||i)&&(this._skip||(d[j]=l+-h+"px,"+-p+a)),e.scrollTop=0|o,g=e.scrollTop},this.maxScrollTop=()=>v,this.maxScrollLeft=()=>y,this.disable=function(){for(c=s.firstChild;c;)i=c.nextSibling,e.appendChild(c),c=i;e===s.parentNode&&e.removeChild(s)},this.enable=function(){if(c=e.firstChild,c!==s){for(;c;)i=c.nextSibling,s.appendChild(c),c=i;e.appendChild(s),this.calibrate()}},this.calibrate=function(t){let i,l,a,c=e.clientWidth===o;g=e.scrollTop,u=e.scrollLeft,c&&e.clientHeight===n&&s.offsetHeight===r&&f===e.scrollWidth&&x===e.scrollHeight&&!t||((p||h)&&(l=this.left(),a=this.top(),this.left(-e.scrollLeft),this.top(-e.scrollTop)),i=De(e),c&&!t||(d.display="block",d.width="auto",d.paddingRight="0px",m=Math.max(0,e.scrollWidth-e.clientWidth),m&&(m+=parseFloat(i.paddingLeft)+(W?parseFloat(i.paddingRight):0))),d.display="inline-block",d.position="relative",d.overflow="visible",d.verticalAlign="top",d.boxSizing="content-box",d.width="100%",d.paddingRight=m+"px",W&&(d.paddingBottom=i.paddingBottom),o=e.clientWidth,n=e.clientHeight,f=e.scrollWidth,x=e.scrollHeight,y=e.scrollWidth-o,v=e.scrollHeight-n,r=s.offsetHeight,d.display="block",(l||a)&&(this.left(l),this.top(a)))},this.content=s,this.element=e,this._skip=!1,this.enable()},We=e=>{if(V()&&document.body){let e=window&&window.navigator;T=window,E=document,M=E.documentElement,X=E.body,S=ee("div"),B=!!window.PointerEvent,Y=ee("div"),Y.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",_="grab"===Y.style.cursor?"grab":"move",R=e&&-1!==e.userAgent.toLowerCase().indexOf("android"),N="ontouchstart"in M&&"orientation"in T||e&&(e.MaxTouchPoints>0||e.msMaxTouchPoints>0),W=function(){let e,t=ee("div"),o=ee("div"),n=o.style,r=X;return n.display="inline-block",n.position="relative",t.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",t.appendChild(o),r.appendChild(t),e=o.offsetHeight+18>t.scrollHeight,r.removeChild(t),e}(),P=function(e){let t=e.split(","),o=("onpointerdown"in S?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in S?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(","),n={},r=4;for(;--r>-1;)n[t[r]]=o[r],n[o[r]]=t[r];try{M.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){L=1}}))}catch(e){}return n}("touchstart,touchmove,touchend,touchcancel"),me(E,"touchcancel",$),me(T,"touchmove",$),X&&X.addEventListener("touchstart",$),me(E,"contextmenu",(function(){for(let e in le)le[e].isPressed&&le[e].endDrag()})),b=C=K()}b?(A=b.plugins.inertia,I=b.core.context||function(){},k=b.utils.checkPrefix,j=k(j),Z=k(Z),D=b.utils.toArray,H=b.core.getStyleSaver,F=!!k("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")};class ze extends class{constructor(e){this._listeners={},this.target=e||this}addEventListener(e,t){let o=this._listeners[e]||(this._listeners[e]=[]);~o.indexOf(t)||o.push(t)}removeEventListener(e,t){let o=this._listeners[e],n=o&&o.indexOf(t);n>=0&&o.splice(n,1)}dispatchEvent(e){let t;return(this._listeners[e]||[]).forEach(o=>!1===o.call(this,{type:e,target:this.target})&&(t=!1)),t}}{constructor(e,t){super(),C||We(1),e=D(e)[0],this.styles=H&&H(e,"transform,left,top"),A||(A=b.plugins.inertia),this.vars=t=he(t||{}),this.target=e,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(t.dragResistance)||0,this.edgeResistance=isNaN(t.edgeResistance)?1:parseFloat(t.edgeResistance)||0,this.lockAxis=t.lockAxis,this.autoScroll=t.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!t.allowEventDefault,b.getProperty(e,"x");let o,n,r,i,l,a,s,d,c,p,h,g,u,f,x,m,y,X,S,k,L,F,W,V,K,$,j,ee,se,fe,we,Ye,Le,Ae=(t.type||"x,y").toLowerCase(),Ve=~Ae.indexOf("x")||~Ae.indexOf("y"),Ke=-1!==Ae.indexOf("rotation"),Ge=Ke?"rotation":Ve?"x":"left",Ue=Ve?"y":"top",qe=!(!~Ae.indexOf("x")&&!~Ae.indexOf("left")&&"scroll"!==Ae),$e=!(!~Ae.indexOf("y")&&!~Ae.indexOf("top")&&"scroll"!==Ae),je=t.minimumMovement||2,Ze=this,Je=D(t.trigger||t.handle||e),Qe={},et=0,tt=!1,ot=t.autoScrollMarginTop||40,nt=t.autoScrollMarginRight||40,rt=t.autoScrollMarginBottom||40,it=t.autoScrollMarginLeft||40,lt=t.clickableTest||Be,at=0,st=e._gsap||b.core.getCache(e),dt=He(e),ct=(t,o)=>parseFloat(st.get(e,t,o)),pt=e.ownerDocument||E,ht=e=>(ve(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1),gt=t=>{if(Ze.autoScroll&&Ze.isDragging&&(tt||y)){let t,o,n,r,i,l,a,s,d=e,c=15*Ze.autoScroll;for(tt=!1,pe.scrollTop=null!=T.pageYOffset?T.pageYOffset:null!=pt.documentElement.scrollTop?pt.documentElement.scrollTop:pt.body.scrollTop,pe.scrollLeft=null!=T.pageXOffset?T.pageXOffset:null!=pt.documentElement.scrollLeft?pt.documentElement.scrollLeft:pt.body.scrollLeft,r=Ze.pointerX-pe.scrollLeft,i=Ze.pointerY-pe.scrollTop;d&&!o;)o=Se(d.parentNode),t=o?pe:d.parentNode,n=o?{bottom:Math.max(M.clientHeight,T.innerHeight||0),right:Math.max(M.clientWidth,T.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),l=a=0,$e&&(s=t._gsMaxScrollY-t.scrollTop,s<0?a=s:i>n.bottom-rt&&s?(tt=!0,a=Math.min(s,c*(1-Math.max(0,n.bottom-i)/rt)|0)):i<n.top+ot&&t.scrollTop&&(tt=!0,a=-Math.min(t.scrollTop,c*(1-Math.max(0,i-n.top)/ot)|0)),a&&(t.scrollTop+=a)),qe&&(s=t._gsMaxScrollX-t.scrollLeft,s<0?l=s:r>n.right-nt&&s?(tt=!0,l=Math.min(s,c*(1-Math.max(0,n.right-r)/nt)|0)):r<n.left+it&&t.scrollLeft&&(tt=!0,l=-Math.min(t.scrollLeft,c*(1-Math.max(0,r-n.left)/it)|0)),l&&(t.scrollLeft+=l)),o&&(l||a)&&(T.scrollTo(t.scrollLeft,t.scrollTop),St(Ze.pointerX+l,Ze.pointerY+a)),d=t}if(y){let{x:o,y:r}=Ze;Ke?(Ze.deltaX=o-parseFloat(st.rotation),Ze.rotation=o,st.rotation=o+"deg",st.renderTransform(1,st)):n?($e&&(Ze.deltaY=r-n.top(),n.top(r)),qe&&(Ze.deltaX=o-n.left(),n.left(o))):Ve?($e&&(Ze.deltaY=r-parseFloat(st.y),st.y=r+"px"),qe&&(Ze.deltaX=o-parseFloat(st.x),st.x=o+"px"),st.renderTransform(1,st)):($e&&(Ze.deltaY=r-parseFloat(e.style.top||0),e.style.top=r+"px"),qe&&(Ze.deltaX=o-parseFloat(e.style.left||0),e.style.left=o+"px")),!d||t||ee||(ee=!0,!1===Pe(Ze,"drag","onDrag")&&(qe&&(Ze.x-=Ze.deltaX),$e&&(Ze.y-=Ze.deltaY),gt(!0)),ee=!1)}y=!1},ut=(t,o)=>{let r,i,{x:l,y:a}=Ze;e._gsap||(st=b.core.getCache(e)),st.uncache&&b.getProperty(e,"x"),Ve?(Ze.x=parseFloat(st.x),Ze.y=parseFloat(st.y)):Ke?Ze.x=Ze.rotation=parseFloat(st.rotation):n?(Ze.y=n.top(),Ze.x=n.left()):(Ze.y=parseFloat(e.style.top||(i=De(e))&&i.top)||0,Ze.x=parseFloat(e.style.left||(i||{}).left)||0),(S||k||L)&&!o&&(Ze.isDragging||Ze.isThrowing)&&(L&&(ce.x=Ze.x,ce.y=Ze.y,r=L(ce),r.x!==Ze.x&&(Ze.x=r.x,y=!0),r.y!==Ze.y&&(Ze.y=r.y,y=!0)),S&&(r=S(Ze.x),r!==Ze.x&&(Ze.x=r,Ke&&(Ze.rotation=r),y=!0)),k&&(r=k(Ze.y),r!==Ze.y&&(Ze.y=r),y=!0)),y&>(!0),t||(Ze.deltaX=Ze.x-l,Ze.deltaY=Ze.y-a,Pe(Ze,"throwupdate","onThrowUpdate"))},ft=(e,t,o,n)=>(null==t&&(t=-oe),null==o&&(o=oe),G(e)?r=>{let i=Ze.isPressed?1-Ze.edgeResistance:1;return e.call(Ze,(r>o?o+(r-o)*i:r<t?t+(r-t)*i:r)*n)*n}:Q(e)?n=>{let r,i,l=e.length,a=0,s=oe;for(;--l>-1;)r=e[l],i=r-n,i<0&&(i=-i),i<s&&r>=t&&r<=o&&(a=l,s=i);return e[a]}:isNaN(e)?e=>e:()=>e*n),xt=()=>{let o,r,i,l;s=!1,n?(n.calibrate(),Ze.minX=h=-n.maxScrollLeft(),Ze.minY=u=-n.maxScrollTop(),Ze.maxX=p=Ze.maxY=g=0,s=!0):t.bounds&&(o=Oe(t.bounds,e.parentNode),Ke?(Ze.minX=h=o.left,Ze.maxX=p=o.left+o.width,Ze.minY=u=Ze.maxY=g=0):q(t.bounds.maxX)&&q(t.bounds.maxY)?(r=Oe(e,e.parentNode),Ze.minX=h=Math.round(ct(Ge,"px")+o.left-r.left),Ze.minY=u=Math.round(ct(Ue,"px")+o.top-r.top),Ze.maxX=p=Math.round(h+(o.width-r.width)),Ze.maxY=g=Math.round(u+(o.height-r.height))):(o=t.bounds,Ze.minX=h=o.minX,Ze.minY=u=o.minY,Ze.maxX=p=o.maxX,Ze.maxY=g=o.maxY),h>p&&(Ze.minX=p,Ze.maxX=p=h,h=Ze.minX),u>g&&(Ze.minY=g,Ze.maxY=g=u,u=Ze.minY),Ke&&(Ze.minRotation=h,Ze.maxRotation=p),s=!0),t.liveSnap&&(i=!0===t.liveSnap?t.snap||{}:t.liveSnap,l=Q(i)||G(i),Ke?(S=ft(l?i:i.rotation,h,p,1),k=null):i.points?L=((e,t,o,n,r,i,l)=>(i=i&&i<oe?i*i:oe,G(e)?a=>{let s,d,c,p=Ze.isPressed?1-Ze.edgeResistance:1,h=a.x,g=a.y;return a.x=h=h>o?o+(h-o)*p:h<t?t+(h-t)*p:h,a.y=g=g>r?r+(g-r)*p:g<n?n+(g-n)*p:g,s=e.call(Ze,a),s!==a&&(a.x=s.x,a.y=s.y),1!==l&&(a.x*=l,a.y*=l),i<oe&&(d=a.x-h,c=a.y-g,d*d+c*c>i&&(a.x=h,a.y=g)),a}:Q(e)?t=>{let o,n,r,l,a=e.length,s=0,d=oe;for(;--a>-1;)r=e[a],o=r.x-t.x,n=r.y-t.y,l=o*o+n*n,l<d&&(s=a,d=l);return d<=i?e[s]:t}:e=>e))(l?i:i.points,h,p,u,g,i.radius,n?-1:1):(qe&&(S=ft(l?i:i.x||i.left||i.scrollLeft,h,p,n?-1:1)),$e&&(k=ft(l?i:i.y||i.top||i.scrollTop,u,g,n?-1:1))))},mt=()=>{Ze.isThrowing=!1,Pe(Ze,"throwcomplete","onThrowComplete")},yt=()=>{Ze.isThrowing=!1},vt=(o,r)=>{let i,l,a,d;o&&A?(!0===o&&(i=t.snap||t.liveSnap||{},l=Q(i)||G(i),o={resistance:(t.throwResistance||t.resistance||1e3)/(Ke?10:1)},Ke?o.rotation=_e(Ze,l?i:i.rotation,p,h,1,r):(qe&&(o[Ge]=_e(Ze,l?i:i.points||i.x||i.left,p,h,n?-1:1,r||"x"===Ze.lockedAxis)),$e&&(o[Ue]=_e(Ze,l?i:i.points||i.y||i.top,g,u,n?-1:1,r||"y"===Ze.lockedAxis)),(i.points||Q(i)&&U(i[0]))&&(o.linkedProps=Ge+","+Ue,o.radius=i.radius))),Ze.isThrowing=!0,d=isNaN(t.overshootTolerance)?1===t.edgeResistance?0:1-Ze.edgeResistance+.2:t.overshootTolerance,o.duration||(o.duration={max:Math.max(t.minDuration||0,"maxDuration"in t?t.maxDuration:2),min:isNaN(t.minDuration)?0===d||U(o)&&o.resistance>1e3?0:.5:t.minDuration,overshoot:d}),Ze.tween=a=b.to(n||e,{inertia:o,data:"_draggable",onComplete:mt,onInterrupt:yt,onUpdate:t.fastMode?Pe:ut,onUpdateParams:t.fastMode?[Ze,"onthrowupdate","onThrowUpdate"]:i&&i.radius?[!1,!0]:[]}),t.fastMode||(n&&(n._skip=!0),a.render(1e9,!0,!0),ut(!0,!0),Ze.endX=Ze.x,Ze.endY=Ze.y,Ke&&(Ze.endRotation=Ze.x),a.play(0),ut(!0,!0),n&&(n._skip=!1))):s&&Ze.applyBounds()},wt=t=>{let o,n=V;V=w(e.parentNode,!0),t&&Ze.isPressed&&!V.equals(n||new v)&&(o=n.inverse().apply({x:r,y:i}),V.apply(o,o),r=o.x,i=o.y),V.equals(ne)&&(V=null)},bt=()=>{let t,o,d,c=1-Ze.edgeResistance,f=dt?Ee(pt):0,x=dt?Te(pt):0;Ve&&(st.x=ct(Ge,"px")+"px",st.y=ct(Ue,"px")+"px",st.renderTransform()),wt(!1),Re.x=Ze.pointerX-f,Re.y=Ze.pointerY-x,V&&V.apply(Re,Re),r=Re.x,i=Re.y,y&&(St(Ze.pointerX,Ze.pointerY),gt(!0)),Ye=w(e),n?(xt(),a=n.top(),l=n.left()):(Tt()?(ut(!0,!0),xt()):Ze.applyBounds(),Ke?(t=e.ownerSVGElement?[st.xOrigin-e.getBBox().x,st.yOrigin-e.getBBox().y]:(De(e)[Z]||"0 0").split(" "),m=Ze.rotationOrigin=w(e).apply({x:parseFloat(t[0])||0,y:parseFloat(t[1])||0}),ut(!0,!0),o=Ze.pointerX-m.x-f,d=m.y-Ze.pointerY+x,l=Ze.x,a=Ze.y=Math.atan2(d,o)*te):(a=ct(Ue,"px"),l=ct(Ge,"px"))),s&&c&&(l>p?l=p+(l-p)/c:l<h&&(l=h-(h-l)/c),Ke||(a>g?a=g+(a-g)/c:a<u&&(a=u-(u-a)/c))),Ze.startX=l=J(l),Ze.startY=a=J(a)},Tt=()=>Ze.tween&&Ze.tween.isActive(),Et=()=>{!Y.parentNode||Tt()||Ze.isDragging||Y.parentNode.removeChild(Y)},Mt=(l,a)=>{let s;if(!o||Ze.isPressed||!l||!("mousedown"!==l.type&&"pointerdown"!==l.type||a)&&re()-at<30&&P[Ze.pointerEvent.type])we&&l&&o&&ve(l);else{if(K=Tt(),Le=!1,Ze.pointerEvent=l,P[l.type]?(W=~l.type.indexOf("touch")?l.currentTarget||l.target:pt,me(W,"touchend",Yt),me(W,"touchmove",Xt),me(W,"touchcancel",Yt),me(pt,"touchstart",be)):(W=null,me(pt,"mousemove",Xt)),j=null,B&&W||(me(pt,"mouseup",Yt),l&&l.target&&me(l.target,"mouseup",Yt)),F=lt.call(Ze,l.target)&&!1===t.dragClickables&&!a,F)return me(l.target,"change",Yt),Pe(Ze,"pressInit","onPressInit"),Pe(Ze,"press","onPress"),Ie(Je,!0),void(we=!1);var p;if($=!(!W||qe===$e||!1===Ze.vars.allowNativeTouchScrolling||Ze.vars.allowContextMenu&&l&&(l.ctrlKey||l.which>2))&&(qe?"y":"x"),we=!$&&!Ze.allowEventDefault,we&&(ve(l),me(T,"touchforcechange",ve)),l.changedTouches?(l=f=l.changedTouches[0],x=l.identifier):l.pointerId?x=l.pointerId:f=x=null,z++,p=gt,ie.push(p),1===ie.length&&b.ticker.add(ue),i=Ze.pointerY=l.pageY,r=Ze.pointerX=l.pageX,Pe(Ze,"pressInit","onPressInit"),($||Ze.autoScroll)&&Ce(e.parentNode),!e.parentNode||!Ze.autoScroll||n||Ke||!e.parentNode._gsMaxScrollX||Y.parentNode||e.getBBox||(Y.style.width=e.parentNode.scrollWidth+"px",e.parentNode.appendChild(Y)),bt(),Ze.tween&&Ze.tween.kill(),Ze.isThrowing=!1,b.killTweensOf(n||e,Qe,!0),n&&b.killTweensOf(e,{scrollTo:1},!0),Ze.tween=Ze.lockedAxis=null,(t.zIndexBoost||!Ke&&!n&&!1!==t.zIndexBoost)&&(e.style.zIndex=ze.zIndex++),Ze.isPressed=!0,d=!(!t.onDrag&&!Ze._listeners.drag),c=!(!t.onMove&&!Ze._listeners.move),!1!==t.cursor||t.activeCursor)for(s=Je.length;--s>-1;)b.set(Je[s],{cursor:t.activeCursor||t.cursor||("grab"===_?"grabbing":_)});Pe(Ze,"press","onPress")}},Xt=t=>{let n,l,a,s,d,p,h=t;if(o&&!O&&Ze.isPressed&&t){if(Ze.pointerEvent=t,n=t.changedTouches,n){if((t=n[0])!==f&&t.identifier!==x){for(s=n.length;--s>-1&&(t=n[s]).identifier!==x&&t.target!==e;);if(s<0)return}}else if(t.pointerId&&x&&t.pointerId!==x)return;W&&$&&!j&&(Re.x=t.pageX-(dt?Ee(pt):0),Re.y=t.pageY-(dt?Te(pt):0),V&&V.apply(Re,Re),l=Re.x,a=Re.y,d=Math.abs(l-r),p=Math.abs(a-i),(d!==p&&(d>je||p>je)||R&&$===j)&&(j=d>p&&qe?"x":"y",$&&j!==$&&me(T,"touchforcechange",ve),!1!==Ze.vars.lockAxisOnTouchScroll&&qe&&$e&&(Ze.lockedAxis="x"===j?"y":"x",G(Ze.vars.onLockAxis)&&Ze.vars.onLockAxis.call(Ze,h)),R&&$===j))?Yt(h):(Ze.allowEventDefault||$&&(!j||$===j)||!1===h.cancelable?we&&(we=!1):(ve(h),we=!0),Ze.autoScroll&&(tt=!0),St(t.pageX,t.pageY,c))}else we&&t&&o&&ve(t)},St=(e,t,o)=>{let n,d,c,f,x,v,w=1-Ze.dragResistance,b=1-Ze.edgeResistance,T=Ze.pointerX,E=Ze.pointerY,M=a,X=Ze.x,Y=Ze.y,C=Ze.endX,D=Ze.endY,N=Ze.endRotation,P=y;Ze.pointerX=e,Ze.pointerY=t,dt&&(e-=Ee(pt),t-=Te(pt)),Ke?(f=Math.atan2(m.y-t,e-m.x)*te,x=Ze.y-f,x>180?(a-=360,Ze.y=f):x<-180&&(a+=360,Ze.y=f),Ze.x!==l||Math.abs(a-f)>je?(Ze.y=f,c=l+(a-f)*w):c=l):(V&&(v=e*V.a+t*V.c+V.e,t=e*V.b+t*V.d+V.f,e=v),d=t-i,n=e-r,d<je&&d>-je&&(d=0),n<je&&n>-je&&(n=0),(Ze.lockAxis||Ze.lockedAxis)&&(n||d)&&(v=Ze.lockedAxis,v||(Ze.lockedAxis=v=qe&&Math.abs(n)>Math.abs(d)?"y":$e?"x":null,v&&G(Ze.vars.onLockAxis)&&Ze.vars.onLockAxis.call(Ze,Ze.pointerEvent)),"y"===v?d=0:"x"===v&&(n=0)),c=J(l+n*w),f=J(a+d*w)),(S||k||L)&&(Ze.x!==c||Ze.y!==f&&!Ke)&&(L&&(ce.x=c,ce.y=f,v=L(ce),c=J(v.x),f=J(v.y)),S&&(c=J(S(c))),k&&(f=J(k(f)))),s&&(c>p?c=p+Math.round((c-p)*b):c<h&&(c=h+Math.round((c-h)*b)),Ke||(f>g?f=Math.round(g+(f-g)*b):f<u&&(f=Math.round(u+(f-u)*b)))),(Ze.x!==c||Ze.y!==f&&!Ke)&&(Ke?(Ze.endRotation=Ze.x=Ze.endX=c,y=!0):($e&&(Ze.y=Ze.endY=f,y=!0),qe&&(Ze.x=Ze.endX=c,y=!0)),o&&!1===Pe(Ze,"move","onMove")?(Ze.pointerX=T,Ze.pointerY=E,a=M,Ze.x=X,Ze.y=Y,Ze.endX=C,Ze.endY=D,Ze.endRotation=N,y=P):!Ze.isDragging&&Ze.isPressed&&(Ze.isDragging=Le=!0,Pe(Ze,"dragstart","onDragStart")))},Yt=(n,r)=>{if(!o||!Ze.isPressed||n&&null!=x&&!r&&(n.pointerId&&n.pointerId!==x&&n.target!==e||n.changedTouches&&!((e,t)=>{let o=e.length;for(;o--;)if(e[o].identifier===t)return!0})(n.changedTouches,x)))return void(we&&n&&o&&ve(n));Ze.isPressed=!1;let i,l,a,s,d,c=n,p=Ze.isDragging,h=Ze.vars.allowContextMenu&&n&&(n.ctrlKey||n.which>2),g=b.delayedCall(.001,Et);if(W?(ye(W,"touchend",Yt),ye(W,"touchmove",Xt),ye(W,"touchcancel",Yt),ye(pt,"touchstart",be)):ye(pt,"mousemove",Xt),ye(T,"touchforcechange",ve),B&&W||(ye(pt,"mouseup",Yt),n&&n.target&&ye(n.target,"mouseup",Yt)),y=!1,p&&(et=de=re(),Ze.isDragging=!1),xe(gt),F&&!h)return n&&(ye(n.target,"change",Yt),Ze.pointerEvent=c),Ie(Je,!1),Pe(Ze,"release","onRelease"),Pe(Ze,"click","onClick"),void(F=!1);for(l=Je.length;--l>-1;)ke(Je[l],"cursor",t.cursor||(!1!==t.cursor?_:null));if(z--,n){if(i=n.changedTouches,i&&(n=i[0])!==f&&n.identifier!==x){for(l=i.length;--l>-1&&(n=i[l]).identifier!==x&&n.target!==e;);if(l<0&&!r)return}Ze.pointerEvent=c,Ze.pointerX=n.pageX,Ze.pointerY=n.pageY}return h&&c?(ve(c),we=!0,Pe(Ze,"release","onRelease")):c&&!p?(we=!1,K&&(t.snap||t.bounds)&&vt(t.inertia||t.throwProps),Pe(Ze,"release","onRelease"),R&&"touchmove"===c.type||-1!==c.type.indexOf("cancel")||(Pe(Ze,"click","onClick"),re()-at<300&&Pe(Ze,"doubleclick","onDoubleClick"),s=c.target||e,at=re(),d=()=>{at===se||!Ze.enabled()||Ze.isPressed||c.defaultPrevented||(s.click?s.click():pt.createEvent&&(a=pt.createEvent("MouseEvents"),a.initMouseEvent("click",!0,!0,T,1,Ze.pointerEvent.screenX,Ze.pointerEvent.screenY,Ze.pointerX,Ze.pointerY,!1,!1,!1,!1,0,null),s.dispatchEvent(a)))},R||c.defaultPrevented||b.delayedCall(.05,d))):(vt(t.inertia||t.throwProps),Ze.allowEventDefault||!c||!1===t.dragClickables&<.call(Ze,c.target)||!p||$&&(!j||$!==j)||!1===c.cancelable?we=!1:(we=!0,ve(c)),Pe(Ze,"release","onRelease")),Tt()&&g.duration(Ze.tween.duration()),p&&Pe(Ze,"dragend","onDragEnd"),!0},Ct=t=>{if(t&&Ze.isDragging&&!n){let o=t.target||e.parentNode,n=o.scrollLeft-o._gsScrollX,l=o.scrollTop-o._gsScrollY;(n||l)&&(V?(r-=n*V.a+l*V.c,i-=l*V.d+n*V.b):(r-=n,i-=l),o._gsScrollX+=n,o._gsScrollY+=l,St(Ze.pointerX,Ze.pointerY))}},kt=e=>{let t=re(),o=t-at<100,n=t-et<50,r=o&&se===at,i=Ze.pointerEvent&&Ze.pointerEvent.defaultPrevented,l=o&&fe===at,a=e.isTrusted||null==e.isTrusted&&o&&r;if((r||n&&!1!==Ze.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),o&&(!Ze.pointerEvent||!Ze.pointerEvent.defaultPrevented)&&(!r||a&&!l))return a&&r&&(fe=at),void(se=at);(Ze.isPressed||n||o)&&(a&&e.detail&&o&&!i||ve(e)),o||n||Le||(e&&e.target&&(Ze.pointerEvent=e),Pe(Ze,"click","onClick"))},Dt=e=>V?{x:e.x*V.a+e.y*V.c+V.e,y:e.x*V.b+e.y*V.d+V.f}:{x:e.x,y:e.y};X=ze.get(e),X&&X.kill(),this.startDrag=(t,o)=>{let n,l,a,s;Mt(t||Ze.pointerEvent,!0),o&&!Ze.hitTest(t||Ze.pointerEvent)&&(n=Ne(t||Ze.pointerEvent),l=Ne(e),a=Dt({x:n.left+n.width/2,y:n.top+n.height/2}),s=Dt({x:l.left+l.width/2,y:l.top+l.height/2}),r-=a.x-s.x,i-=a.y-s.y),Ze.isDragging||(Ze.isDragging=Le=!0,Pe(Ze,"dragstart","onDragStart"))},this.drag=Xt,this.endDrag=e=>Yt(e||Ze.pointerEvent,!0),this.timeSinceDrag=()=>Ze.isDragging?0:(re()-et)/1e3,this.timeSinceClick=()=>(re()-at)/1e3,this.hitTest=(e,t)=>ze.hitTest(Ze.target,e,t),this.getDirection=(t,o)=>{let n,r,i,s,d,c,p="velocity"===t&&A?t:U(t)&&!Ke?"element":"start";return"element"===p&&(d=Ne(Ze.target),c=Ne(t)),n="start"===p?Ze.x-l:"velocity"===p?A.getVelocity(e,Ge):d.left+d.width/2-(c.left+c.width/2),Ke?n<0?"counter-clockwise":"clockwise":(o=o||2,r="start"===p?Ze.y-a:"velocity"===p?A.getVelocity(e,Ue):d.top+d.height/2-(c.top+c.height/2),i=Math.abs(n/r),s=i<1/o?"":n<0?"left":"right",i<o&&(""!==s&&(s+="-"),s+=r<0?"up":"down"),s)},this.applyBounds=(o,n)=>{let r,i,l,a,d,c;if(o&&t.bounds!==o)return t.bounds=o,Ze.update(!0,n);if(ut(!0),xt(),s&&!Tt()){if(r=Ze.x,i=Ze.y,r>p?r=p:r<h&&(r=h),i>g?i=g:i<u&&(i=u),(Ze.x!==r||Ze.y!==i)&&(l=!0,Ze.x=Ze.endX=r,Ke?Ze.endRotation=r:Ze.y=Ze.endY=i,y=!0,gt(!0),Ze.autoScroll&&!Ze.isDragging))for(Ce(e.parentNode),a=e,pe.scrollTop=null!=T.pageYOffset?T.pageYOffset:null!=pt.documentElement.scrollTop?pt.documentElement.scrollTop:pt.body.scrollTop,pe.scrollLeft=null!=T.pageXOffset?T.pageXOffset:null!=pt.documentElement.scrollLeft?pt.documentElement.scrollLeft:pt.body.scrollLeft;a&&!c;)c=Se(a.parentNode),d=c?pe:a.parentNode,$e&&d.scrollTop>d._gsMaxScrollY&&(d.scrollTop=d._gsMaxScrollY),qe&&d.scrollLeft>d._gsMaxScrollX&&(d.scrollLeft=d._gsMaxScrollX),a=d;Ze.isThrowing&&(l||Ze.endX>p||Ze.endX<h||Ze.endY>g||Ze.endY<u)&&vt(t.inertia||t.throwProps,l)}return Ze},this.update=(t,o,n)=>{if(o&&Ze.isPressed){let t=w(e),o=Ye.apply({x:Ze.x-l,y:Ze.y-a}),n=w(e.parentNode,!0);n.apply({x:t.e-o.x,y:t.f-o.y},o),Ze.x-=o.x-n.e,Ze.y-=o.y-n.f,gt(!0),bt()}let{x:r,y:i}=Ze;return wt(!o),t?Ze.applyBounds():(y&&n&>(!0),ut(!0)),o&&(St(Ze.pointerX,Ze.pointerY),y&>(!0)),Ze.isPressed&&!o&&(qe&&Math.abs(r-Ze.x)>.01||$e&&Math.abs(i-Ze.y)>.01&&!Ke)&&bt(),Ze.autoScroll&&(Ce(e.parentNode,Ze.isDragging),tt=Ze.isDragging,gt(!0),Xe(e,Ct),Me(e,Ct)),Ze},this.enable=r=>{let i,l,a,s={lazy:!0};if(!1!==t.cursor&&(s.cursor=t.cursor||_),b.utils.checkPrefix("touchCallout")&&(s.touchCallout="none"),"soft"!==r){for(ge(Je,qe===$e?"none":t.allowNativeTouchScrolling&&e.scrollHeight===e.clientHeight==(e.scrollWidth===e.clientHeight)||t.allowEventDefault?"manipulation":qe?"pan-y":"pan-x"),l=Je.length;--l>-1;)a=Je[l],B||me(a,"mousedown",Mt),me(a,"touchstart",Mt),me(a,"click",kt,!0),b.set(a,s),a.getBBox&&a.ownerSVGElement&&qe!==$e&&b.set(a.ownerSVGElement,{touchAction:t.allowNativeTouchScrolling||t.allowEventDefault?"manipulation":qe?"pan-y":"pan-x"}),t.allowContextMenu||me(a,"contextmenu",ht);Ie(Je,!1)}return Me(e,Ct),o=!0,A&&"soft"!==r&&A.track(n||e,Ve?"x,y":Ke?"rotation":"top,left"),e._gsDragID=i="d"+ae++,le[i]=Ze,n&&(n.enable(),n.element._gsDragID=i),(t.bounds||Ke)&&bt(),t.bounds&&Ze.applyBounds(),Ze},this.disable=t=>{let r,i=Ze.isDragging,l=Je.length;for(;--l>-1;)ke(Je[l],"cursor",null);if("soft"!==t){for(ge(Je,null),l=Je.length;--l>-1;)r=Je[l],ke(r,"touchCallout",null),ye(r,"mousedown",Mt),ye(r,"touchstart",Mt),ye(r,"click",kt,!0),ye(r,"contextmenu",ht);Ie(Je,!0),W&&(ye(W,"touchcancel",Yt),ye(W,"touchend",Yt),ye(W,"touchmove",Xt)),ye(pt,"mouseup",Yt),ye(pt,"mousemove",Xt)}return Xe(e,Ct),o=!1,A&&"soft"!==t&&(A.untrack(n||e,Ve?"x,y":Ke?"rotation":"top,left"),Ze.tween&&Ze.tween.kill()),n&&n.disable(),xe(gt),Ze.isDragging=Ze.isPressed=F=!1,i&&Pe(Ze,"dragend","onDragEnd"),Ze},this.enabled=function(e,t){return arguments.length?e?Ze.enable(t):Ze.disable(t):o},this.kill=function(){return Ze.isThrowing=!1,Ze.tween&&Ze.tween.kill(),Ze.disable(),b.set(Je,{clearProps:"userSelect"}),delete le[e._gsDragID],Ze},this.revert=function(){this.kill(),this.styles&&this.styles.revert()},~Ae.indexOf("scroll")&&(n=this.scrollProxy=new Fe(e,((e,t)=>{for(let o in t)o in e||(e[o]=t[o]);return e})({onKill:function(){Ze.isPressed&&Yt(null)}},t)),e.style.overflowY=$e&&!N?"auto":"hidden",e.style.overflowX=qe&&!N?"auto":"hidden",e=n.content),Ke?Qe.rotation=1:(qe&&(Qe[Ge]=1),$e&&(Qe[Ue]=1)),st.force3D=!("force3D"in t)||t.force3D,I(this),this.enable()}static register(e){b=e,We()}static create(e,t){return C||We(!0),D(e).map(e=>new ze(e,t))}static get(e){return le[(D(e)[0]||{})._gsDragID]}static timeSinceDrag(){return(re()-de)/1e3}static hitTest(e,t,o){if(e===t)return!1;let n,r,i,l=Ne(e),a=Ne(t),{top:s,left:d,right:c,bottom:p,width:h,height:g}=l,u=a.left>c||a.right<d||a.top>p||a.bottom<s;return u||!o?!u:(i=-1!==(o+"").indexOf("%"),o=parseFloat(o)||0,n={left:Math.max(d,a.left),top:Math.max(s,a.top)},n.width=Math.min(c,a.right)-n.left,n.height=Math.min(p,a.bottom)-n.top,!(n.width<0||n.height<0)&&(i?(o*=.01,r=n.width*n.height,r>=h*g*o||r>=a.width*a.height*o):n.width>o&&n.height>o))}}((e,t)=>{for(let o in t)o in e||(e[o]=t[o])})(ze.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),ze.zIndex=1e3,ze.version="3.12.4",K()&&b.registerPlugin(ze);export default ze;export{ze as Draggable}; | ||
let e,t,o,n,r,i,l,a,s,d="transform",c=d+"Origin",p=r=>{let i=r.ownerDocument||r;!(d in r.style)&&"msTransform"in r.style&&(d="msTransform",c=d+"Origin");for(;i.parentNode&&(i=i.parentNode););if(t=window,l=new v,i){e=i,o=i.documentElement,n=i.body,a=e.createElementNS("http://www.w3.org/2000/svg","g"),a.style.transform="none";let t=i.createElement("div"),r=i.createElement("div"),l=i&&(i.body||i.firstElementChild);l&&l.appendChild&&(l.appendChild(t),t.appendChild(r),t.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),s=r.offsetParent!==t,l.removeChild(t))}return i},h=[],g=[],u=e=>e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null),f=e=>"fixed"===t.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?f(e):void 0),x=(t,o)=>{if(t.parentNode&&(e||p(t))){let n=u(t),l=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?o?"rect":"g":"div",s=2!==o?0:100,d=3===o?100:0,c="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",p=e.createElementNS?e.createElementNS(l.replace(/^https/,"http"),a):e.createElement(a);return o&&(n?(i||(i=x(t)),p.setAttribute("width",.01),p.setAttribute("height",.01),p.setAttribute("transform","translate("+s+","+d+")"),i.appendChild(p)):(r||(r=x(t),r.style.cssText=c),p.style.cssText=c+"width:0.1px;height:0.1px;top:"+d+"px;left:"+s+"px",r.appendChild(p))),p}throw"Need document and parent."},m=(e,o)=>{let n,p,f,m,y,w,b=u(e),T=e===b,E=b?h:g,M=e.parentNode;if(e===t)return e;if(E.length||E.push(x(e,1),x(e,2),x(e,3)),n=b?i:r,b)T?(f=(e=>{let t,o=e.getCTM();return o||(t=e.style[d],e.style[d]="none",e.appendChild(a),o=a.getCTM(),e.removeChild(a),t?e.style[d]=t:e.style.removeProperty(d.replace(/([A-Z])/g,"-$1").toLowerCase())),o||l.clone()})(e),m=-f.e/f.a,y=-f.f/f.d,p=l):e.getBBox?(f=e.getBBox(),p=e.transform?e.transform.baseVal:{},p=p.numberOfItems?p.numberOfItems>1?(e=>{let t=new v,o=0;for(;o<e.numberOfItems;o++)t.multiply(e.getItem(o).matrix);return t})(p):p.getItem(0).matrix:l,m=p.a*f.x+p.c*f.y,y=p.b*f.x+p.d*f.y):(p=new v,m=y=0),o&&"g"===e.tagName.toLowerCase()&&(m=y=0),(T?b:M).appendChild(n),n.setAttribute("transform","matrix("+p.a+","+p.b+","+p.c+","+p.d+","+(p.e+m)+","+(p.f+y)+")");else{if(m=y=0,s)for(p=e.offsetParent,f=e;f&&(f=f.parentNode)&&f!==p&&f.parentNode;)(t.getComputedStyle(f)[d]+"").length>4&&(m=f.offsetLeft,y=f.offsetTop,f=0);if(w=t.getComputedStyle(e),"absolute"!==w.position&&"fixed"!==w.position)for(p=e.offsetParent;M&&M!==p;)m+=M.scrollLeft||0,y+=M.scrollTop||0,M=M.parentNode;f=n.style,f.top=e.offsetTop-y+"px",f.left=e.offsetLeft-m+"px",f[d]=w[d],f[c]=w[c],f.position="fixed"===w.position?"fixed":"absolute",e.parentNode.appendChild(n)}return n},y=(e,t,o,n,r,i,l)=>(e.a=t,e.b=o,e.c=n,e.d=r,e.e=i,e.f=l,e);class v{constructor(e=1,t=0,o=0,n=1,r=0,i=0){y(this,e,t,o,n,r,i)}inverse(){let{a:e,b:t,c:o,d:n,e:r,f:i}=this,l=e*n-t*o||1e-10;return y(this,n/l,-t/l,-o/l,e/l,(o*i-n*r)/l,-(e*i-t*r)/l)}multiply(e){let{a:t,b:o,c:n,d:r,e:i,f:l}=this,a=e.a,s=e.c,d=e.b,c=e.d,p=e.e,h=e.f;return y(this,a*t+d*n,a*o+d*r,s*t+c*n,s*o+c*r,i+p*t+h*n,l+p*o+h*r)}clone(){return new v(this.a,this.b,this.c,this.d,this.e,this.f)}equals(e){let{a:t,b:o,c:n,d:r,e:i,f:l}=this;return t===e.a&&o===e.b&&n===e.c&&r===e.d&&i===e.e&&l===e.f}apply(e,t={}){let{x:o,y:n}=e,{a:r,b:i,c:l,d:a,e:s,f:d}=this;return t.x=o*r+n*l+s||0,t.y=o*i+n*a+d||0,t}}function w(r,i,l,a){if(!r||!r.parentNode||(e||p(r)).documentElement===r)return new v;let s=(e=>{let t,o;for(;e&&e!==n;)o=e._gsap,o&&o.uncache&&o.get(e,"x"),o&&!o.scaleX&&!o.scaleY&&o.renderTransform&&(o.scaleX=o.scaleY=1e-4,o.renderTransform(1,o),t?t.push(o):t=[o]),e=e.parentNode;return t})(r),d=u(r)?h:g,c=m(r,l),x=d[0].getBoundingClientRect(),y=d[1].getBoundingClientRect(),w=d[2].getBoundingClientRect(),b=c.parentNode,T=!a&&f(r),E=new v((y.left-x.left)/100,(y.top-x.top)/100,(w.left-x.left)/100,(w.top-x.top)/100,x.left+(T?0:t.pageXOffset||e.scrollLeft||o.scrollLeft||n.scrollLeft||0),x.top+(T?0:t.pageYOffset||e.scrollTop||o.scrollTop||n.scrollTop||0));if(b.removeChild(c),s)for(x=s.length;x--;)y=s[x],y.scaleX=y.scaleY=0,y.renderTransform(1,y);return i?E.inverse():E}let b,T,E,M,X,S,Y,C,k,D,L,N,P,O,R,A,_,B,I,H,F,W,z=0,V=()=>"undefined"!=typeof window,K=()=>b||V()&&(b=window.gsap)&&b.registerPlugin&&b,G=e=>"function"==typeof e,U=e=>"object"==typeof e,q=e=>void 0===e,$=()=>!1,j="transform",Z="transformOrigin",J=e=>Math.round(1e4*e)/1e4,Q=Array.isArray,ee=(e,t)=>{let o=E.createElementNS?E.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):E.createElement(e);return o.style?o:E.createElement(e)},te=180/Math.PI,oe=1e20,ne=new v,re=Date.now||(()=>(new Date).getTime()),ie=[],le={},ae=0,se=/^(?:a|input|textarea|button|select)$/i,de=0,ce={},pe={},he=(e,t)=>{let o,n={};for(o in e)n[o]=t?e[o]*t:e[o];return n},ge=(e,t)=>{let o,n=e.length;for(;n--;)t?e[n].style.touchAction=t:e[n].style.removeProperty("touch-action"),o=e[n].children,o&&o.length&&ge(o,t)},ue=()=>ie.forEach(e=>e()),fe=()=>!ie.length&&b.ticker.remove(ue),xe=e=>{let t=ie.length;for(;t--;)ie[t]===e&&ie.splice(t,1);b.to(fe,{overwrite:!0,delay:15,duration:0,onComplete:fe,data:"_draggable"})},me=(e,t,o,n)=>{if(e.addEventListener){let r=P[t];n=n||(L?{passive:!1}:null),e.addEventListener(r||t,o,n),r&&t!==r&&e.addEventListener(t,o,n)}},ye=(e,t,o,n)=>{if(e.removeEventListener){let r=P[t];e.removeEventListener(r||t,o,n),r&&t!==r&&e.removeEventListener(t,o,n)}},ve=e=>{e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()},we=e=>{O=e.touches&&z<e.touches.length,ye(e.target,"touchend",we)},be=e=>{O=e.touches&&z<e.touches.length,me(e.target,"touchend",we)},Te=e=>T.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0,Ee=e=>T.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0,Me=(e,t)=>{me(e,"scroll",t),Se(e.parentNode)||Me(e.parentNode,t)},Xe=(e,t)=>{ye(e,"scroll",t),Se(e.parentNode)||Xe(e.parentNode,t)},Se=e=>!(e&&e!==M&&9!==e.nodeType&&e!==E.body&&e!==T&&e.nodeType&&e.parentNode),Ye=(e,t)=>{let o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return Math.max(0,Se(e)?Math.max(M[n],X[n])-(T["inner"+o]||M[r]||X[r]):e[n]-e[r])},Ce=(e,t)=>{let o=Ye(e,"x"),n=Ye(e,"y");Se(e)?e=pe:Ce(e.parentNode,t),e._gsMaxScrollX=o,e._gsMaxScrollY=n,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},ke=(e,t,o)=>{let n=e.style;n&&(q(n[t])&&(t=k(t,e)||t),null==o?n.removeProperty&&n.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):n[t]=o)},De=e=>T.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e),Le={},Ne=e=>{if(e===T)return Le.left=Le.top=0,Le.width=Le.right=M.clientWidth||e.innerWidth||X.clientWidth||0,Le.height=Le.bottom=(e.innerHeight||0)-20<M.clientHeight?M.clientHeight:e.innerHeight||X.clientHeight||0,Le;let t=e.ownerDocument||E,o=q(e.pageX)?e.nodeType||q(e.left)||q(e.top)?D(e)[0].getBoundingClientRect():e:{left:e.pageX-Ee(t),top:e.pageY-Te(t),right:e.pageX-Ee(t)+1,bottom:e.pageY-Te(t)+1};return q(o.right)&&!q(o.width)?(o.right=o.left+o.width,o.bottom=o.top+o.height):q(o.width)&&(o={width:o.right-o.left,height:o.bottom-o.top,right:o.right,left:o.left,bottom:o.bottom,top:o.top}),o},Pe=(e,t,o)=>{let n,r=e.vars,i=r[o],l=e._listeners[t];return G(i)&&(n=i.apply(r.callbackScope||e,r[o+"Params"]||[e.pointerEvent])),l&&!1===e.dispatchEvent(t)&&(n=!1),n},Oe=(e,t)=>{let o,n,r,i=D(e)[0];return i.nodeType||i===T?Ae(i,t):q(e.left)?(n=e.min||e.minX||e.minRotation||0,o=e.min||e.minY||0,{left:n,top:o,width:(e.max||e.maxX||e.maxRotation||0)-n,height:(e.max||e.maxY||0)-o}):(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})},Re={},Ae=(e,t)=>{t=D(t)[0];let o,n,r,i,l,a,s,d,c,p,h,g,u,f=e.getBBox&&e.ownerSVGElement,x=e.ownerDocument||E;if(e===T)r=Te(x),o=Ee(x),n=o+(x.documentElement.clientWidth||e.innerWidth||x.body.clientWidth||0),i=r+((e.innerHeight||0)-20<x.documentElement.clientHeight?x.documentElement.clientHeight:e.innerHeight||x.body.clientHeight||0);else{if(t===T||q(t))return e.getBoundingClientRect();o=r=0,f?(p=e.getBBox(),h=p.width,g=p.height):(e.viewBox&&(p=e.viewBox.baseVal)&&(o=p.x||0,r=p.y||0,h=p.width,g=p.height),h||(u=De(e),p="border-box"===u.boxSizing,h=(parseFloat(u.width)||e.clientWidth||0)+(p?0:parseFloat(u.borderLeftWidth)+parseFloat(u.borderRightWidth)),g=(parseFloat(u.height)||e.clientHeight||0)+(p?0:parseFloat(u.borderTopWidth)+parseFloat(u.borderBottomWidth)))),n=h,i=g}return e===t?{left:o,top:r,width:n-o,height:i-r}:(l=w(t,!0).multiply(w(e)),a=l.apply({x:o,y:r}),s=l.apply({x:n,y:r}),d=l.apply({x:n,y:i}),c=l.apply({x:o,y:i}),o=Math.min(a.x,s.x,d.x,c.x),r=Math.min(a.y,s.y,d.y,c.y),{left:o,top:r,width:Math.max(a.x,s.x,d.x,c.x)-o,height:Math.max(a.y,s.y,d.y,c.y)-r})},_e=(e,t,o,n,r,i)=>{let l,a,s,d={};if(t)if(1!==r&&t instanceof Array){if(d.end=l=[],s=t.length,U(t[0]))for(a=0;a<s;a++)l[a]=he(t[a],r);else for(a=0;a<s;a++)l[a]=t[a]*r;o+=1.1,n-=1.1}else G(t)?d.end=o=>{let n,i,l=t.call(e,o);if(1!==r)if(U(l)){for(i in n={},l)n[i]=l[i]*r;l=n}else l*=r;return l}:d.end=t;return(o||0===o)&&(d.max=o),(n||0===n)&&(d.min=n),i&&(d.velocity=0),d},Be=e=>{let t;return!(!e||!e.getAttribute||e===X)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!se.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||Be(e.parentNode))},Ie=(e,t)=>{let o,n=e.length;for(;n--;)o=e[n],o.ondragstart=o.onselectstart=t?null:$,b.set(o,{lazy:!0,userSelect:t?"text":"none"})},He=e=>"fixed"===De(e).position||((e=e.parentNode)&&1===e.nodeType?He(e):void 0),Fe=function(e,t){e=b.utils.toArray(e)[0],t=t||{};let o,n,r,i,l,a,s=document.createElement("div"),d=s.style,c=e.firstChild,p=0,h=0,g=e.scrollTop,u=e.scrollLeft,f=e.scrollWidth,x=e.scrollHeight,m=0,y=0,v=0;F&&!1!==t.force3D?(l="translate3d(",a="px,0px)"):j&&(l="translate(",a="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(o,n){if(!arguments.length)return-(e.scrollLeft+h);let r=e.scrollLeft-u,i=h;if((r>2||r<-2)&&!n)return u=e.scrollLeft,b.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-u),void(t.onKill&&t.onKill());(o=-o)<0?(h=o-.5|0,o=0):o>y?(h=o-y|0,o=y):h=0,(h||i)&&(this._skip||(d[j]=l+-h+"px,"+-p+a),h+m>=0&&(d.paddingRight=h+m+"px")),e.scrollLeft=0|o,u=e.scrollLeft},this.top=function(o,n){if(!arguments.length)return-(e.scrollTop+p);let r=e.scrollTop-g,i=p;if((r>2||r<-2)&&!n)return g=e.scrollTop,b.killTweensOf(this,{top:1,scrollTop:1}),this.top(-g),void(t.onKill&&t.onKill());(o=-o)<0?(p=o-.5|0,o=0):o>v?(p=o-v|0,o=v):p=0,(p||i)&&(this._skip||(d[j]=l+-h+"px,"+-p+a)),e.scrollTop=0|o,g=e.scrollTop},this.maxScrollTop=()=>v,this.maxScrollLeft=()=>y,this.disable=function(){for(c=s.firstChild;c;)i=c.nextSibling,e.appendChild(c),c=i;e===s.parentNode&&e.removeChild(s)},this.enable=function(){if(c=e.firstChild,c!==s){for(;c;)i=c.nextSibling,s.appendChild(c),c=i;e.appendChild(s),this.calibrate()}},this.calibrate=function(t){let i,l,a,c=e.clientWidth===o;g=e.scrollTop,u=e.scrollLeft,c&&e.clientHeight===n&&s.offsetHeight===r&&f===e.scrollWidth&&x===e.scrollHeight&&!t||((p||h)&&(l=this.left(),a=this.top(),this.left(-e.scrollLeft),this.top(-e.scrollTop)),i=De(e),c&&!t||(d.display="block",d.width="auto",d.paddingRight="0px",m=Math.max(0,e.scrollWidth-e.clientWidth),m&&(m+=parseFloat(i.paddingLeft)+(W?parseFloat(i.paddingRight):0))),d.display="inline-block",d.position="relative",d.overflow="visible",d.verticalAlign="top",d.boxSizing="content-box",d.width="100%",d.paddingRight=m+"px",W&&(d.paddingBottom=i.paddingBottom),o=e.clientWidth,n=e.clientHeight,f=e.scrollWidth,x=e.scrollHeight,y=e.scrollWidth-o,v=e.scrollHeight-n,r=s.offsetHeight,d.display="block",(l||a)&&(this.left(l),this.top(a)))},this.content=s,this.element=e,this._skip=!1,this.enable()},We=e=>{if(V()&&document.body){let e=window&&window.navigator;T=window,E=document,M=E.documentElement,X=E.body,S=ee("div"),B=!!window.PointerEvent,Y=ee("div"),Y.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",_="grab"===Y.style.cursor?"grab":"move",R=e&&-1!==e.userAgent.toLowerCase().indexOf("android"),N="ontouchstart"in M&&"orientation"in T||e&&(e.MaxTouchPoints>0||e.msMaxTouchPoints>0),W=function(){let e,t=ee("div"),o=ee("div"),n=o.style,r=X;return n.display="inline-block",n.position="relative",t.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",t.appendChild(o),r.appendChild(t),e=o.offsetHeight+18>t.scrollHeight,r.removeChild(t),e}(),P=function(e){let t=e.split(","),o=("onpointerdown"in S?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in S?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(","),n={},r=4;for(;--r>-1;)n[t[r]]=o[r],n[o[r]]=t[r];try{M.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){L=1}}))}catch(e){}return n}("touchstart,touchmove,touchend,touchcancel"),me(E,"touchcancel",$),me(T,"touchmove",$),X&&X.addEventListener("touchstart",$),me(E,"contextmenu",(function(){for(let e in le)le[e].isPressed&&le[e].endDrag()})),b=C=K()}b?(A=b.plugins.inertia,I=b.core.context||function(){},k=b.utils.checkPrefix,j=k(j),Z=k(Z),D=b.utils.toArray,H=b.core.getStyleSaver,F=!!k("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")};class ze extends class{constructor(e){this._listeners={},this.target=e||this}addEventListener(e,t){let o=this._listeners[e]||(this._listeners[e]=[]);~o.indexOf(t)||o.push(t)}removeEventListener(e,t){let o=this._listeners[e],n=o&&o.indexOf(t);n>=0&&o.splice(n,1)}dispatchEvent(e){let t;return(this._listeners[e]||[]).forEach(o=>!1===o.call(this,{type:e,target:this.target})&&(t=!1)),t}}{constructor(e,t){super(),C||We(1),e=D(e)[0],this.styles=H&&H(e,"transform,left,top"),A||(A=b.plugins.inertia),this.vars=t=he(t||{}),this.target=e,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(t.dragResistance)||0,this.edgeResistance=isNaN(t.edgeResistance)?1:parseFloat(t.edgeResistance)||0,this.lockAxis=t.lockAxis,this.autoScroll=t.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!t.allowEventDefault,b.getProperty(e,"x");let o,n,r,i,l,a,s,d,c,p,h,g,u,f,x,m,y,X,S,k,L,F,W,V,K,$,j,ee,se,fe,we,Ye,Le,Ae=(t.type||"x,y").toLowerCase(),Ve=~Ae.indexOf("x")||~Ae.indexOf("y"),Ke=-1!==Ae.indexOf("rotation"),Ge=Ke?"rotation":Ve?"x":"left",Ue=Ve?"y":"top",qe=!(!~Ae.indexOf("x")&&!~Ae.indexOf("left")&&"scroll"!==Ae),$e=!(!~Ae.indexOf("y")&&!~Ae.indexOf("top")&&"scroll"!==Ae),je=t.minimumMovement||2,Ze=this,Je=D(t.trigger||t.handle||e),Qe={},et=0,tt=!1,ot=t.autoScrollMarginTop||40,nt=t.autoScrollMarginRight||40,rt=t.autoScrollMarginBottom||40,it=t.autoScrollMarginLeft||40,lt=t.clickableTest||Be,at=0,st=e._gsap||b.core.getCache(e),dt=He(e),ct=(t,o)=>parseFloat(st.get(e,t,o)),pt=e.ownerDocument||E,ht=e=>(ve(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1),gt=t=>{if(Ze.autoScroll&&Ze.isDragging&&(tt||y)){let t,o,n,r,i,l,a,s,d=e,c=15*Ze.autoScroll;for(tt=!1,pe.scrollTop=null!=T.pageYOffset?T.pageYOffset:null!=pt.documentElement.scrollTop?pt.documentElement.scrollTop:pt.body.scrollTop,pe.scrollLeft=null!=T.pageXOffset?T.pageXOffset:null!=pt.documentElement.scrollLeft?pt.documentElement.scrollLeft:pt.body.scrollLeft,r=Ze.pointerX-pe.scrollLeft,i=Ze.pointerY-pe.scrollTop;d&&!o;)o=Se(d.parentNode),t=o?pe:d.parentNode,n=o?{bottom:Math.max(M.clientHeight,T.innerHeight||0),right:Math.max(M.clientWidth,T.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),l=a=0,$e&&(s=t._gsMaxScrollY-t.scrollTop,s<0?a=s:i>n.bottom-rt&&s?(tt=!0,a=Math.min(s,c*(1-Math.max(0,n.bottom-i)/rt)|0)):i<n.top+ot&&t.scrollTop&&(tt=!0,a=-Math.min(t.scrollTop,c*(1-Math.max(0,i-n.top)/ot)|0)),a&&(t.scrollTop+=a)),qe&&(s=t._gsMaxScrollX-t.scrollLeft,s<0?l=s:r>n.right-nt&&s?(tt=!0,l=Math.min(s,c*(1-Math.max(0,n.right-r)/nt)|0)):r<n.left+it&&t.scrollLeft&&(tt=!0,l=-Math.min(t.scrollLeft,c*(1-Math.max(0,r-n.left)/it)|0)),l&&(t.scrollLeft+=l)),o&&(l||a)&&(T.scrollTo(t.scrollLeft,t.scrollTop),St(Ze.pointerX+l,Ze.pointerY+a)),d=t}if(y){let{x:o,y:r}=Ze;Ke?(Ze.deltaX=o-parseFloat(st.rotation),Ze.rotation=o,st.rotation=o+"deg",st.renderTransform(1,st)):n?($e&&(Ze.deltaY=r-n.top(),n.top(r)),qe&&(Ze.deltaX=o-n.left(),n.left(o))):Ve?($e&&(Ze.deltaY=r-parseFloat(st.y),st.y=r+"px"),qe&&(Ze.deltaX=o-parseFloat(st.x),st.x=o+"px"),st.renderTransform(1,st)):($e&&(Ze.deltaY=r-parseFloat(e.style.top||0),e.style.top=r+"px"),qe&&(Ze.deltaX=o-parseFloat(e.style.left||0),e.style.left=o+"px")),!d||t||ee||(ee=!0,!1===Pe(Ze,"drag","onDrag")&&(qe&&(Ze.x-=Ze.deltaX),$e&&(Ze.y-=Ze.deltaY),gt(!0)),ee=!1)}y=!1},ut=(t,o)=>{let r,i,{x:l,y:a}=Ze;e._gsap||(st=b.core.getCache(e)),st.uncache&&b.getProperty(e,"x"),Ve?(Ze.x=parseFloat(st.x),Ze.y=parseFloat(st.y)):Ke?Ze.x=Ze.rotation=parseFloat(st.rotation):n?(Ze.y=n.top(),Ze.x=n.left()):(Ze.y=parseFloat(e.style.top||(i=De(e))&&i.top)||0,Ze.x=parseFloat(e.style.left||(i||{}).left)||0),(S||k||L)&&!o&&(Ze.isDragging||Ze.isThrowing)&&(L&&(ce.x=Ze.x,ce.y=Ze.y,r=L(ce),r.x!==Ze.x&&(Ze.x=r.x,y=!0),r.y!==Ze.y&&(Ze.y=r.y,y=!0)),S&&(r=S(Ze.x),r!==Ze.x&&(Ze.x=r,Ke&&(Ze.rotation=r),y=!0)),k&&(r=k(Ze.y),r!==Ze.y&&(Ze.y=r),y=!0)),y&>(!0),t||(Ze.deltaX=Ze.x-l,Ze.deltaY=Ze.y-a,Pe(Ze,"throwupdate","onThrowUpdate"))},ft=(e,t,o,n)=>(null==t&&(t=-oe),null==o&&(o=oe),G(e)?r=>{let i=Ze.isPressed?1-Ze.edgeResistance:1;return e.call(Ze,(r>o?o+(r-o)*i:r<t?t+(r-t)*i:r)*n)*n}:Q(e)?n=>{let r,i,l=e.length,a=0,s=oe;for(;--l>-1;)r=e[l],i=r-n,i<0&&(i=-i),i<s&&r>=t&&r<=o&&(a=l,s=i);return e[a]}:isNaN(e)?e=>e:()=>e*n),xt=()=>{let o,r,i,l;s=!1,n?(n.calibrate(),Ze.minX=h=-n.maxScrollLeft(),Ze.minY=u=-n.maxScrollTop(),Ze.maxX=p=Ze.maxY=g=0,s=!0):t.bounds&&(o=Oe(t.bounds,e.parentNode),Ke?(Ze.minX=h=o.left,Ze.maxX=p=o.left+o.width,Ze.minY=u=Ze.maxY=g=0):q(t.bounds.maxX)&&q(t.bounds.maxY)?(r=Oe(e,e.parentNode),Ze.minX=h=Math.round(ct(Ge,"px")+o.left-r.left),Ze.minY=u=Math.round(ct(Ue,"px")+o.top-r.top),Ze.maxX=p=Math.round(h+(o.width-r.width)),Ze.maxY=g=Math.round(u+(o.height-r.height))):(o=t.bounds,Ze.minX=h=o.minX,Ze.minY=u=o.minY,Ze.maxX=p=o.maxX,Ze.maxY=g=o.maxY),h>p&&(Ze.minX=p,Ze.maxX=p=h,h=Ze.minX),u>g&&(Ze.minY=g,Ze.maxY=g=u,u=Ze.minY),Ke&&(Ze.minRotation=h,Ze.maxRotation=p),s=!0),t.liveSnap&&(i=!0===t.liveSnap?t.snap||{}:t.liveSnap,l=Q(i)||G(i),Ke?(S=ft(l?i:i.rotation,h,p,1),k=null):i.points?L=((e,t,o,n,r,i,l)=>(i=i&&i<oe?i*i:oe,G(e)?a=>{let s,d,c,p=Ze.isPressed?1-Ze.edgeResistance:1,h=a.x,g=a.y;return a.x=h=h>o?o+(h-o)*p:h<t?t+(h-t)*p:h,a.y=g=g>r?r+(g-r)*p:g<n?n+(g-n)*p:g,s=e.call(Ze,a),s!==a&&(a.x=s.x,a.y=s.y),1!==l&&(a.x*=l,a.y*=l),i<oe&&(d=a.x-h,c=a.y-g,d*d+c*c>i&&(a.x=h,a.y=g)),a}:Q(e)?t=>{let o,n,r,l,a=e.length,s=0,d=oe;for(;--a>-1;)r=e[a],o=r.x-t.x,n=r.y-t.y,l=o*o+n*n,l<d&&(s=a,d=l);return d<=i?e[s]:t}:e=>e))(l?i:i.points,h,p,u,g,i.radius,n?-1:1):(qe&&(S=ft(l?i:i.x||i.left||i.scrollLeft,h,p,n?-1:1)),$e&&(k=ft(l?i:i.y||i.top||i.scrollTop,u,g,n?-1:1))))},mt=()=>{Ze.isThrowing=!1,Pe(Ze,"throwcomplete","onThrowComplete")},yt=()=>{Ze.isThrowing=!1},vt=(o,r)=>{let i,l,a,d;o&&A?(!0===o&&(i=t.snap||t.liveSnap||{},l=Q(i)||G(i),o={resistance:(t.throwResistance||t.resistance||1e3)/(Ke?10:1)},Ke?o.rotation=_e(Ze,l?i:i.rotation,p,h,1,r):(qe&&(o[Ge]=_e(Ze,l?i:i.points||i.x||i.left,p,h,n?-1:1,r||"x"===Ze.lockedAxis)),$e&&(o[Ue]=_e(Ze,l?i:i.points||i.y||i.top,g,u,n?-1:1,r||"y"===Ze.lockedAxis)),(i.points||Q(i)&&U(i[0]))&&(o.linkedProps=Ge+","+Ue,o.radius=i.radius))),Ze.isThrowing=!0,d=isNaN(t.overshootTolerance)?1===t.edgeResistance?0:1-Ze.edgeResistance+.2:t.overshootTolerance,o.duration||(o.duration={max:Math.max(t.minDuration||0,"maxDuration"in t?t.maxDuration:2),min:isNaN(t.minDuration)?0===d||U(o)&&o.resistance>1e3?0:.5:t.minDuration,overshoot:d}),Ze.tween=a=b.to(n||e,{inertia:o,data:"_draggable",inherit:!1,onComplete:mt,onInterrupt:yt,onUpdate:t.fastMode?Pe:ut,onUpdateParams:t.fastMode?[Ze,"onthrowupdate","onThrowUpdate"]:i&&i.radius?[!1,!0]:[]}),t.fastMode||(n&&(n._skip=!0),a.render(1e9,!0,!0),ut(!0,!0),Ze.endX=Ze.x,Ze.endY=Ze.y,Ke&&(Ze.endRotation=Ze.x),a.play(0),ut(!0,!0),n&&(n._skip=!1))):s&&Ze.applyBounds()},wt=t=>{let o,n=V;V=w(e.parentNode,!0),t&&Ze.isPressed&&!V.equals(n||new v)&&(o=n.inverse().apply({x:r,y:i}),V.apply(o,o),r=o.x,i=o.y),V.equals(ne)&&(V=null)},bt=()=>{let t,o,d,c=1-Ze.edgeResistance,f=dt?Ee(pt):0,x=dt?Te(pt):0;Ve&&(st.x=ct(Ge,"px")+"px",st.y=ct(Ue,"px")+"px",st.renderTransform()),wt(!1),Re.x=Ze.pointerX-f,Re.y=Ze.pointerY-x,V&&V.apply(Re,Re),r=Re.x,i=Re.y,y&&(St(Ze.pointerX,Ze.pointerY),gt(!0)),Ye=w(e),n?(xt(),a=n.top(),l=n.left()):(Tt()?(ut(!0,!0),xt()):Ze.applyBounds(),Ke?(t=e.ownerSVGElement?[st.xOrigin-e.getBBox().x,st.yOrigin-e.getBBox().y]:(De(e)[Z]||"0 0").split(" "),m=Ze.rotationOrigin=w(e).apply({x:parseFloat(t[0])||0,y:parseFloat(t[1])||0}),ut(!0,!0),o=Ze.pointerX-m.x-f,d=m.y-Ze.pointerY+x,l=Ze.x,a=Ze.y=Math.atan2(d,o)*te):(a=ct(Ue,"px"),l=ct(Ge,"px"))),s&&c&&(l>p?l=p+(l-p)/c:l<h&&(l=h-(h-l)/c),Ke||(a>g?a=g+(a-g)/c:a<u&&(a=u-(u-a)/c))),Ze.startX=l=J(l),Ze.startY=a=J(a)},Tt=()=>Ze.tween&&Ze.tween.isActive(),Et=()=>{!Y.parentNode||Tt()||Ze.isDragging||Y.parentNode.removeChild(Y)},Mt=(l,a)=>{let s;if(!o||Ze.isPressed||!l||!("mousedown"!==l.type&&"pointerdown"!==l.type||a)&&re()-at<30&&P[Ze.pointerEvent.type])we&&l&&o&&ve(l);else{if(K=Tt(),Le=!1,Ze.pointerEvent=l,P[l.type]?(W=~l.type.indexOf("touch")?l.currentTarget||l.target:pt,me(W,"touchend",Yt),me(W,"touchmove",Xt),me(W,"touchcancel",Yt),me(pt,"touchstart",be)):(W=null,me(pt,"mousemove",Xt)),j=null,B&&W||(me(pt,"mouseup",Yt),l&&l.target&&me(l.target,"mouseup",Yt)),F=lt.call(Ze,l.target)&&!1===t.dragClickables&&!a,F)return me(l.target,"change",Yt),Pe(Ze,"pressInit","onPressInit"),Pe(Ze,"press","onPress"),Ie(Je,!0),void(we=!1);var p;if($=!(!W||qe===$e||!1===Ze.vars.allowNativeTouchScrolling||Ze.vars.allowContextMenu&&l&&(l.ctrlKey||l.which>2))&&(qe?"y":"x"),we=!$&&!Ze.allowEventDefault,we&&(ve(l),me(T,"touchforcechange",ve)),l.changedTouches?(l=f=l.changedTouches[0],x=l.identifier):l.pointerId?x=l.pointerId:f=x=null,z++,p=gt,ie.push(p),1===ie.length&&b.ticker.add(ue),i=Ze.pointerY=l.pageY,r=Ze.pointerX=l.pageX,Pe(Ze,"pressInit","onPressInit"),($||Ze.autoScroll)&&Ce(e.parentNode),!e.parentNode||!Ze.autoScroll||n||Ke||!e.parentNode._gsMaxScrollX||Y.parentNode||e.getBBox||(Y.style.width=e.parentNode.scrollWidth+"px",e.parentNode.appendChild(Y)),bt(),Ze.tween&&Ze.tween.kill(),Ze.isThrowing=!1,b.killTweensOf(n||e,Qe,!0),n&&b.killTweensOf(e,{scrollTo:1},!0),Ze.tween=Ze.lockedAxis=null,(t.zIndexBoost||!Ke&&!n&&!1!==t.zIndexBoost)&&(e.style.zIndex=ze.zIndex++),Ze.isPressed=!0,d=!(!t.onDrag&&!Ze._listeners.drag),c=!(!t.onMove&&!Ze._listeners.move),!1!==t.cursor||t.activeCursor)for(s=Je.length;--s>-1;)b.set(Je[s],{cursor:t.activeCursor||t.cursor||("grab"===_?"grabbing":_)});Pe(Ze,"press","onPress")}},Xt=t=>{let n,l,a,s,d,p,h=t;if(o&&!O&&Ze.isPressed&&t){if(Ze.pointerEvent=t,n=t.changedTouches,n){if((t=n[0])!==f&&t.identifier!==x){for(s=n.length;--s>-1&&(t=n[s]).identifier!==x&&t.target!==e;);if(s<0)return}}else if(t.pointerId&&x&&t.pointerId!==x)return;W&&$&&!j&&(Re.x=t.pageX-(dt?Ee(pt):0),Re.y=t.pageY-(dt?Te(pt):0),V&&V.apply(Re,Re),l=Re.x,a=Re.y,d=Math.abs(l-r),p=Math.abs(a-i),(d!==p&&(d>je||p>je)||R&&$===j)&&(j=d>p&&qe?"x":"y",$&&j!==$&&me(T,"touchforcechange",ve),!1!==Ze.vars.lockAxisOnTouchScroll&&qe&&$e&&(Ze.lockedAxis="x"===j?"y":"x",G(Ze.vars.onLockAxis)&&Ze.vars.onLockAxis.call(Ze,h)),R&&$===j))?Yt(h):(Ze.allowEventDefault||$&&(!j||$===j)||!1===h.cancelable?we&&(we=!1):(ve(h),we=!0),Ze.autoScroll&&(tt=!0),St(t.pageX,t.pageY,c))}else we&&t&&o&&ve(t)},St=(e,t,o)=>{let n,d,c,f,x,v,w=1-Ze.dragResistance,b=1-Ze.edgeResistance,T=Ze.pointerX,E=Ze.pointerY,M=a,X=Ze.x,Y=Ze.y,C=Ze.endX,D=Ze.endY,N=Ze.endRotation,P=y;Ze.pointerX=e,Ze.pointerY=t,dt&&(e-=Ee(pt),t-=Te(pt)),Ke?(f=Math.atan2(m.y-t,e-m.x)*te,x=Ze.y-f,x>180?(a-=360,Ze.y=f):x<-180&&(a+=360,Ze.y=f),Ze.x!==l||Math.abs(a-f)>je?(Ze.y=f,c=l+(a-f)*w):c=l):(V&&(v=e*V.a+t*V.c+V.e,t=e*V.b+t*V.d+V.f,e=v),d=t-i,n=e-r,d<je&&d>-je&&(d=0),n<je&&n>-je&&(n=0),(Ze.lockAxis||Ze.lockedAxis)&&(n||d)&&(v=Ze.lockedAxis,v||(Ze.lockedAxis=v=qe&&Math.abs(n)>Math.abs(d)?"y":$e?"x":null,v&&G(Ze.vars.onLockAxis)&&Ze.vars.onLockAxis.call(Ze,Ze.pointerEvent)),"y"===v?d=0:"x"===v&&(n=0)),c=J(l+n*w),f=J(a+d*w)),(S||k||L)&&(Ze.x!==c||Ze.y!==f&&!Ke)&&(L&&(ce.x=c,ce.y=f,v=L(ce),c=J(v.x),f=J(v.y)),S&&(c=J(S(c))),k&&(f=J(k(f)))),s&&(c>p?c=p+Math.round((c-p)*b):c<h&&(c=h+Math.round((c-h)*b)),Ke||(f>g?f=Math.round(g+(f-g)*b):f<u&&(f=Math.round(u+(f-u)*b)))),(Ze.x!==c||Ze.y!==f&&!Ke)&&(Ke?(Ze.endRotation=Ze.x=Ze.endX=c,y=!0):($e&&(Ze.y=Ze.endY=f,y=!0),qe&&(Ze.x=Ze.endX=c,y=!0)),o&&!1===Pe(Ze,"move","onMove")?(Ze.pointerX=T,Ze.pointerY=E,a=M,Ze.x=X,Ze.y=Y,Ze.endX=C,Ze.endY=D,Ze.endRotation=N,y=P):!Ze.isDragging&&Ze.isPressed&&(Ze.isDragging=Le=!0,Pe(Ze,"dragstart","onDragStart")))},Yt=(n,r)=>{if(!o||!Ze.isPressed||n&&null!=x&&!r&&(n.pointerId&&n.pointerId!==x&&n.target!==e||n.changedTouches&&!((e,t)=>{let o=e.length;for(;o--;)if(e[o].identifier===t)return!0})(n.changedTouches,x)))return void(we&&n&&o&&ve(n));Ze.isPressed=!1;let i,l,a,s,d,c=n,p=Ze.isDragging,h=Ze.vars.allowContextMenu&&n&&(n.ctrlKey||n.which>2),g=b.delayedCall(.001,Et);if(W?(ye(W,"touchend",Yt),ye(W,"touchmove",Xt),ye(W,"touchcancel",Yt),ye(pt,"touchstart",be)):ye(pt,"mousemove",Xt),ye(T,"touchforcechange",ve),B&&W||(ye(pt,"mouseup",Yt),n&&n.target&&ye(n.target,"mouseup",Yt)),y=!1,p&&(et=de=re(),Ze.isDragging=!1),xe(gt),F&&!h)return n&&(ye(n.target,"change",Yt),Ze.pointerEvent=c),Ie(Je,!1),Pe(Ze,"release","onRelease"),Pe(Ze,"click","onClick"),void(F=!1);for(l=Je.length;--l>-1;)ke(Je[l],"cursor",t.cursor||(!1!==t.cursor?_:null));if(z--,n){if(i=n.changedTouches,i&&(n=i[0])!==f&&n.identifier!==x){for(l=i.length;--l>-1&&(n=i[l]).identifier!==x&&n.target!==e;);if(l<0&&!r)return}Ze.pointerEvent=c,Ze.pointerX=n.pageX,Ze.pointerY=n.pageY}return h&&c?(ve(c),we=!0,Pe(Ze,"release","onRelease")):c&&!p?(we=!1,K&&(t.snap||t.bounds)&&vt(t.inertia||t.throwProps),Pe(Ze,"release","onRelease"),R&&"touchmove"===c.type||-1!==c.type.indexOf("cancel")||(Pe(Ze,"click","onClick"),re()-at<300&&Pe(Ze,"doubleclick","onDoubleClick"),s=c.target||e,at=re(),d=()=>{at===se||!Ze.enabled()||Ze.isPressed||c.defaultPrevented||(s.click?s.click():pt.createEvent&&(a=pt.createEvent("MouseEvents"),a.initMouseEvent("click",!0,!0,T,1,Ze.pointerEvent.screenX,Ze.pointerEvent.screenY,Ze.pointerX,Ze.pointerY,!1,!1,!1,!1,0,null),s.dispatchEvent(a)))},R||c.defaultPrevented||b.delayedCall(.05,d))):(vt(t.inertia||t.throwProps),Ze.allowEventDefault||!c||!1===t.dragClickables&<.call(Ze,c.target)||!p||$&&(!j||$!==j)||!1===c.cancelable?we=!1:(we=!0,ve(c)),Pe(Ze,"release","onRelease")),Tt()&&g.duration(Ze.tween.duration()),p&&Pe(Ze,"dragend","onDragEnd"),!0},Ct=t=>{if(t&&Ze.isDragging&&!n){let o=t.target||e.parentNode,n=o.scrollLeft-o._gsScrollX,l=o.scrollTop-o._gsScrollY;(n||l)&&(V?(r-=n*V.a+l*V.c,i-=l*V.d+n*V.b):(r-=n,i-=l),o._gsScrollX+=n,o._gsScrollY+=l,St(Ze.pointerX,Ze.pointerY))}},kt=e=>{let t=re(),o=t-at<100,n=t-et<50,r=o&&se===at,i=Ze.pointerEvent&&Ze.pointerEvent.defaultPrevented,l=o&&fe===at,a=e.isTrusted||null==e.isTrusted&&o&&r;if((r||n&&!1!==Ze.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),o&&(!Ze.pointerEvent||!Ze.pointerEvent.defaultPrevented)&&(!r||a&&!l))return a&&r&&(fe=at),void(se=at);(Ze.isPressed||n||o)&&(a&&e.detail&&o&&!i||ve(e)),o||n||Le||(e&&e.target&&(Ze.pointerEvent=e),Pe(Ze,"click","onClick"))},Dt=e=>V?{x:e.x*V.a+e.y*V.c+V.e,y:e.x*V.b+e.y*V.d+V.f}:{x:e.x,y:e.y};X=ze.get(e),X&&X.kill(),this.startDrag=(t,o)=>{let n,l,a,s;Mt(t||Ze.pointerEvent,!0),o&&!Ze.hitTest(t||Ze.pointerEvent)&&(n=Ne(t||Ze.pointerEvent),l=Ne(e),a=Dt({x:n.left+n.width/2,y:n.top+n.height/2}),s=Dt({x:l.left+l.width/2,y:l.top+l.height/2}),r-=a.x-s.x,i-=a.y-s.y),Ze.isDragging||(Ze.isDragging=Le=!0,Pe(Ze,"dragstart","onDragStart"))},this.drag=Xt,this.endDrag=e=>Yt(e||Ze.pointerEvent,!0),this.timeSinceDrag=()=>Ze.isDragging?0:(re()-et)/1e3,this.timeSinceClick=()=>(re()-at)/1e3,this.hitTest=(e,t)=>ze.hitTest(Ze.target,e,t),this.getDirection=(t,o)=>{let n,r,i,s,d,c,p="velocity"===t&&A?t:U(t)&&!Ke?"element":"start";return"element"===p&&(d=Ne(Ze.target),c=Ne(t)),n="start"===p?Ze.x-l:"velocity"===p?A.getVelocity(e,Ge):d.left+d.width/2-(c.left+c.width/2),Ke?n<0?"counter-clockwise":"clockwise":(o=o||2,r="start"===p?Ze.y-a:"velocity"===p?A.getVelocity(e,Ue):d.top+d.height/2-(c.top+c.height/2),i=Math.abs(n/r),s=i<1/o?"":n<0?"left":"right",i<o&&(""!==s&&(s+="-"),s+=r<0?"up":"down"),s)},this.applyBounds=(o,n)=>{let r,i,l,a,d,c;if(o&&t.bounds!==o)return t.bounds=o,Ze.update(!0,n);if(ut(!0),xt(),s&&!Tt()){if(r=Ze.x,i=Ze.y,r>p?r=p:r<h&&(r=h),i>g?i=g:i<u&&(i=u),(Ze.x!==r||Ze.y!==i)&&(l=!0,Ze.x=Ze.endX=r,Ke?Ze.endRotation=r:Ze.y=Ze.endY=i,y=!0,gt(!0),Ze.autoScroll&&!Ze.isDragging))for(Ce(e.parentNode),a=e,pe.scrollTop=null!=T.pageYOffset?T.pageYOffset:null!=pt.documentElement.scrollTop?pt.documentElement.scrollTop:pt.body.scrollTop,pe.scrollLeft=null!=T.pageXOffset?T.pageXOffset:null!=pt.documentElement.scrollLeft?pt.documentElement.scrollLeft:pt.body.scrollLeft;a&&!c;)c=Se(a.parentNode),d=c?pe:a.parentNode,$e&&d.scrollTop>d._gsMaxScrollY&&(d.scrollTop=d._gsMaxScrollY),qe&&d.scrollLeft>d._gsMaxScrollX&&(d.scrollLeft=d._gsMaxScrollX),a=d;Ze.isThrowing&&(l||Ze.endX>p||Ze.endX<h||Ze.endY>g||Ze.endY<u)&&vt(t.inertia||t.throwProps,l)}return Ze},this.update=(t,o,n)=>{if(o&&Ze.isPressed){let t=w(e),o=Ye.apply({x:Ze.x-l,y:Ze.y-a}),n=w(e.parentNode,!0);n.apply({x:t.e-o.x,y:t.f-o.y},o),Ze.x-=o.x-n.e,Ze.y-=o.y-n.f,gt(!0),bt()}let{x:r,y:i}=Ze;return wt(!o),t?Ze.applyBounds():(y&&n&>(!0),ut(!0)),o&&(St(Ze.pointerX,Ze.pointerY),y&>(!0)),Ze.isPressed&&!o&&(qe&&Math.abs(r-Ze.x)>.01||$e&&Math.abs(i-Ze.y)>.01&&!Ke)&&bt(),Ze.autoScroll&&(Ce(e.parentNode,Ze.isDragging),tt=Ze.isDragging,gt(!0),Xe(e,Ct),Me(e,Ct)),Ze},this.enable=r=>{let i,l,a,s={lazy:!0};if(!1!==t.cursor&&(s.cursor=t.cursor||_),b.utils.checkPrefix("touchCallout")&&(s.touchCallout="none"),"soft"!==r){for(ge(Je,qe===$e?"none":t.allowNativeTouchScrolling&&e.scrollHeight===e.clientHeight==(e.scrollWidth===e.clientHeight)||t.allowEventDefault?"manipulation":qe?"pan-y":"pan-x"),l=Je.length;--l>-1;)a=Je[l],B||me(a,"mousedown",Mt),me(a,"touchstart",Mt),me(a,"click",kt,!0),b.set(a,s),a.getBBox&&a.ownerSVGElement&&qe!==$e&&b.set(a.ownerSVGElement,{touchAction:t.allowNativeTouchScrolling||t.allowEventDefault?"manipulation":qe?"pan-y":"pan-x"}),t.allowContextMenu||me(a,"contextmenu",ht);Ie(Je,!1)}return Me(e,Ct),o=!0,A&&"soft"!==r&&A.track(n||e,Ve?"x,y":Ke?"rotation":"top,left"),e._gsDragID=i="d"+ae++,le[i]=Ze,n&&(n.enable(),n.element._gsDragID=i),(t.bounds||Ke)&&bt(),t.bounds&&Ze.applyBounds(),Ze},this.disable=t=>{let r,i=Ze.isDragging,l=Je.length;for(;--l>-1;)ke(Je[l],"cursor",null);if("soft"!==t){for(ge(Je,null),l=Je.length;--l>-1;)r=Je[l],ke(r,"touchCallout",null),ye(r,"mousedown",Mt),ye(r,"touchstart",Mt),ye(r,"click",kt,!0),ye(r,"contextmenu",ht);Ie(Je,!0),W&&(ye(W,"touchcancel",Yt),ye(W,"touchend",Yt),ye(W,"touchmove",Xt)),ye(pt,"mouseup",Yt),ye(pt,"mousemove",Xt)}return Xe(e,Ct),o=!1,A&&"soft"!==t&&(A.untrack(n||e,Ve?"x,y":Ke?"rotation":"top,left"),Ze.tween&&Ze.tween.kill()),n&&n.disable(),xe(gt),Ze.isDragging=Ze.isPressed=F=!1,i&&Pe(Ze,"dragend","onDragEnd"),Ze},this.enabled=function(e,t){return arguments.length?e?Ze.enable(t):Ze.disable(t):o},this.kill=function(){return Ze.isThrowing=!1,Ze.tween&&Ze.tween.kill(),Ze.disable(),b.set(Je,{clearProps:"userSelect"}),delete le[e._gsDragID],Ze},this.revert=function(){this.kill(),this.styles&&this.styles.revert()},~Ae.indexOf("scroll")&&(n=this.scrollProxy=new Fe(e,((e,t)=>{for(let o in t)o in e||(e[o]=t[o]);return e})({onKill:function(){Ze.isPressed&&Yt(null)}},t)),e.style.overflowY=$e&&!N?"auto":"hidden",e.style.overflowX=qe&&!N?"auto":"hidden",e=n.content),Ke?Qe.rotation=1:(qe&&(Qe[Ge]=1),$e&&(Qe[Ue]=1)),st.force3D=!("force3D"in t)||t.force3D,I(this),this.enable()}static register(e){b=e,We()}static create(e,t){return C||We(!0),D(e).map(e=>new ze(e,t))}static get(e){return le[(D(e)[0]||{})._gsDragID]}static timeSinceDrag(){return(re()-de)/1e3}static hitTest(e,t,o){if(e===t)return!1;let n,r,i,l=Ne(e),a=Ne(t),{top:s,left:d,right:c,bottom:p,width:h,height:g}=l,u=a.left>c||a.right<d||a.top>p||a.bottom<s;return u||!o?!u:(i=-1!==(o+"").indexOf("%"),o=parseFloat(o)||0,n={left:Math.max(d,a.left),top:Math.max(s,a.top)},n.width=Math.min(c,a.right)-n.left,n.height=Math.min(p,a.bottom)-n.top,!(n.width<0||n.height<0)&&(i?(o*=.01,r=n.width*n.height,r>=h*g*o||r>=a.width*a.height*o):n.width>o&&n.height>o))}}((e,t)=>{for(let o in t)o in e||(e[o]=t[o])})(ze.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),ze.zIndex=1e3,ze.version="3.12.5",K()&&b.registerPlugin(ze);export default ze;export{ze as Draggable}; |
/*! | ||
* DrawSVGPlugin 3.12.4 | ||
* DrawSVGPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
let e,t,n,i,r,s,o,a,l=()=>"undefined"!=typeof window,d=()=>e||l()&&(e=window.gsap)&&e.registerPlugin&&e,h=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,f={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},g=e=>Math.round(1e4*e)/1e4,c=e=>parseFloat(e)||0,u=(e,t)=>{let n=c(e);return~e.indexOf("%")?n/100*t:n},p=(e,t)=>c(e.getAttribute(t)),w=Math.sqrt,y=(e,t,n,i,r,s)=>w(((c(n)-c(e))*r)**2+((c(i)-c(t))*s)**2),_=e=>console.warn(e),x=e=>"non-scaling-stroke"===e.getAttribute("vector-effect"),m=function(){return String.fromCharCode.apply(null,arguments)},k=m(103,114,101,101,110,115,111,99,107,46,99,111,109),v=m(103,115,97,112,46,99,111,109),b=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,P=function(t){var n="undefined"!=typeof window,i=0===(n?window.location.href:"").indexOf(m(102,105,108,101,58,47,47))||-1!==t.indexOf(m(108,111,99,97,108,104,111,115,116))||b.test(t)||(n?window.location.hostname:"").split(".").pop()===m(108,111,99,97,108),r=[k,v,m(99,111,100,101,112,101,110,46,105,111),m(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),m(99,111,100,101,112,101,110,46,100,101,118),m(99,111,100,101,112,101,110,46,97,112,112),m(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),m(112,101,110,115,46,99,108,111,117,100),m(99,115,115,45,116,114,105,99,107,115,46,99,111,109),m(99,100,112,110,46,105,111),m(112,101,110,115,46,105,111),m(103,97,110,110,111,110,46,116,118),m(99,111,100,101,99,97,110,121,111,110,46,110,101,116),m(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),m(99,101,114,101,98,114,97,120,46,99,111,46,117,107),m(116,121,109,112,97,110,117,115,46,110,101,116),m(116,119,101,101,110,109,97,120,46,99,111,109),m(112,108,110,107,114,46,99,111),m(104,111,116,106,97,114,46,99,111,109),m(119,101,98,112,97,99,107,98,105,110,46,99,111,109),m(97,114,99,104,105,118,101,46,111,114,103),m(99,111,100,101,115,97,110,100,98,111,120,46,105,111),m(99,115,98,46,97,112,112),m(115,116,97,99,107,98,108,105,116,122,46,99,111,109),m(115,116,97,99,107,98,108,105,116,122,46,105,111),m(99,111,100,105,101,114,46,105,111),m(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),m(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),m(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),m(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),m(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),m(106,115,102,105,100,100,108,101,46,110,101,116)],s=function(){if(n)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",s);else{document.removeEventListener("readystatechange",s);var t="object"==typeof e?e:n&&window.gsap;n&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(m(37,99,87,97,114,110,105,110,103),m(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(m(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"DrawSVGPlugin"+m(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(m(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),m(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},o=r.length;for(setTimeout(s,50);--o>-1;)if(-1!==t.indexOf(r[o]))return!0;return i||!setTimeout((function(){n&&(window.location.href=m(104,116,116,112,115,58,47,47)+k+m(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=DrawSVGPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),S=e=>{if(!(e=t(e)[0]))return 0;let n,i,r,o,a,l,d,c=e.tagName.toLowerCase(),u=e.style,m=1,k=1;x(e)&&(k=e.getScreenCTM(),m=w(k.a*k.a+k.b*k.b),k=w(k.d*k.d+k.c*k.c));try{i=e.getBBox()}catch(e){_("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}let{x:v,y:b,width:P,height:S}=i||{x:0,y:0,width:0,height:0};if(i&&(P||S)||!f[c]||(P=p(e,f[c][0]),S=p(e,f[c][1]),"rect"!==c&&"line"!==c&&(P*=2,S*=2),"line"===c&&(v=p(e,"x1"),b=p(e,"y1"),P=Math.abs(P-v),S=Math.abs(S-b))),"path"===c)o=u.strokeDasharray,u.strokeDasharray="none",n=e.getTotalLength()||0,g(m)!==g(k)&&!s&&(s=1)&&_("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),n*=(m+k)/2,u.strokeDasharray=o;else if("rect"===c)n=2*P*m+2*S*k;else if("line"===c)n=y(v,b,v+P,b+S,m,k);else if("polyline"===c||"polygon"===c)for(r=e.getAttribute("points").match(h)||[],"polygon"===c&&r.push(r[0],r[1]),n=0,a=2;a<r.length;a+=2)n+=y(r[a-2],r[a-1],r[a],r[a+1],m,k)||0;else"circle"!==c&&"ellipse"!==c||(l=P/2*m,d=S/2*k,n=Math.PI*(3*(l+d)-w((3*l+d)*(l+3*d))));return n||0},T=(e,i)=>{if(!(e=t(e)[0]))return[0,0];i||(i=S(e)+1);let r=n.getComputedStyle(e),s=r.strokeDasharray||"",o=c(r.strokeDashoffset),a=s.indexOf(",");return a<0&&(a=s.indexOf(" ")),s=a<0?i:c(s.substr(0,a)),s>i&&(s=i),[-o||0,s-o||0]},D=()=>{l()&&(n=window,r=e=d(),t=e.utils.toArray,o=e.core.getStyleSaver,a=e.core.reverting||function(){},i=-1!==((n.navigator||{}).userAgent||"").indexOf("Edge"))};const O={version:"3.12.4",name:"drawSVG",register(t){e=t,D()},init(e,t,s,a,l){if(!e.getBBox)return!1;r||D();let d,h,f,p=S(e);return this.styles=o&&o(e,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=s,this._style=e.style,this._target=e,t+""=="true"?t="0 100%":t?-1===(t+"").indexOf(" ")&&(t="0 "+t):t="0 0",d=T(e,p),h=((e,t,n)=>{let i,r,s=e.indexOf(" ");return s<0?(i=void 0!==n?n+"":e,r=e):(i=e.substr(0,s),r=e.substr(s+1)),i=u(i,t),r=u(r,t),i>r?[r,i]:[i,r]})(t,p,d[0]),this._length=g(p),this._dash=g(d[1]-d[0]),this._offset=g(-d[0]),this._dashPT=this.add(this,"_dash",this._dash,g(h[1]-h[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,g(-h[0]),0,0,0,0,0,1),i&&(f=n.getComputedStyle(e),f.strokeLinecap!==f.strokeLinejoin&&(h=c(f.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",h,h+.01))),this._live=x(e)||~(t+"").indexOf("live"),this._nowrap=~(t+"").indexOf("nowrap"),this._props.push("drawSVG"),P},render(e,t){if(t.tween._time||!a()){let n,i,r,s,o=t._pt,a=t._style;if(o){for(t._live&&(n=S(t._target),n!==t._length&&(i=n/t._length,t._length=n,t._offsetPT&&(t._offsetPT.s*=i,t._offsetPT.c*=i),t._dashPT?(t._dashPT.s*=i,t._dashPT.c*=i):t._dash*=i));o;)o.r(e,o.d),o=o._next;r=t._dash||(e&&1!==e?1e-4:0),n=t._length-r+.1,s=t._offset,r&&s&&r+Math.abs(s%t._length)>t._length-.2&&(s+=s<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=r?s:s+.001,a.strokeDasharray=n<.2?"none":r?r+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}}else t.styles.revert()},getLength:S,getPosition:T};d()&&e.registerPlugin(O);export default O;export{O as DrawSVGPlugin}; | ||
let e,t,n,i,r,s,o,a,l=()=>"undefined"!=typeof window,d=()=>e||l()&&(e=window.gsap)&&e.registerPlugin&&e,h=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,f={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},g=e=>Math.round(1e4*e)/1e4,c=e=>parseFloat(e)||0,u=(e,t)=>{let n=c(e);return~e.indexOf("%")?n/100*t:n},p=(e,t)=>c(e.getAttribute(t)),w=Math.sqrt,y=(e,t,n,i,r,s)=>w(((c(n)-c(e))*r)**2+((c(i)-c(t))*s)**2),_=e=>console.warn(e),x=e=>"non-scaling-stroke"===e.getAttribute("vector-effect"),m=function(){return String.fromCharCode.apply(null,arguments)},k=m(103,114,101,101,110,115,111,99,107,46,99,111,109),v=m(103,115,97,112,46,99,111,109),b=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,P=function(t){var n="undefined"!=typeof window,i=0===(n?window.location.href:"").indexOf(m(102,105,108,101,58,47,47))||-1!==t.indexOf(m(108,111,99,97,108,104,111,115,116))||b.test(t)||(n?window.location.hostname:"").split(".").pop()===m(108,111,99,97,108),r=[k,v,m(99,111,100,101,112,101,110,46,105,111),m(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),m(99,111,100,101,112,101,110,46,100,101,118),m(99,111,100,101,112,101,110,46,97,112,112),m(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),m(112,101,110,115,46,99,108,111,117,100),m(99,115,115,45,116,114,105,99,107,115,46,99,111,109),m(99,100,112,110,46,105,111),m(112,101,110,115,46,105,111),m(103,97,110,110,111,110,46,116,118),m(99,111,100,101,99,97,110,121,111,110,46,110,101,116),m(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),m(99,101,114,101,98,114,97,120,46,99,111,46,117,107),m(116,121,109,112,97,110,117,115,46,110,101,116),m(116,119,101,101,110,109,97,120,46,99,111,109),m(112,108,110,107,114,46,99,111),m(104,111,116,106,97,114,46,99,111,109),m(119,101,98,112,97,99,107,98,105,110,46,99,111,109),m(97,114,99,104,105,118,101,46,111,114,103),m(99,111,100,101,115,97,110,100,98,111,120,46,105,111),m(99,115,98,46,97,112,112),m(115,116,97,99,107,98,108,105,116,122,46,99,111,109),m(115,116,97,99,107,98,108,105,116,122,46,105,111),m(99,111,100,105,101,114,46,105,111),m(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),m(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),m(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),m(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),m(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),m(106,115,102,105,100,100,108,101,46,110,101,116)],s=function(){if(n)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",s);else{document.removeEventListener("readystatechange",s);var t="object"==typeof e?e:n&&window.gsap;n&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(m(37,99,87,97,114,110,105,110,103),m(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(m(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"DrawSVGPlugin"+m(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(m(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),m(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},o=r.length;for(setTimeout(s,50);--o>-1;)if(-1!==t.indexOf(r[o]))return!0;return i||!setTimeout((function(){n&&(window.location.href=m(104,116,116,112,115,58,47,47)+k+m(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=DrawSVGPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),S=e=>{if(!(e=t(e)[0]))return 0;let n,i,r,o,a,l,d,c=e.tagName.toLowerCase(),u=e.style,m=1,k=1;x(e)&&(k=e.getScreenCTM(),m=w(k.a*k.a+k.b*k.b),k=w(k.d*k.d+k.c*k.c));try{i=e.getBBox()}catch(e){_("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}let{x:v,y:b,width:P,height:S}=i||{x:0,y:0,width:0,height:0};if(i&&(P||S)||!f[c]||(P=p(e,f[c][0]),S=p(e,f[c][1]),"rect"!==c&&"line"!==c&&(P*=2,S*=2),"line"===c&&(v=p(e,"x1"),b=p(e,"y1"),P=Math.abs(P-v),S=Math.abs(S-b))),"path"===c)o=u.strokeDasharray,u.strokeDasharray="none",n=e.getTotalLength()||0,g(m)!==g(k)&&!s&&(s=1)&&_("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),n*=(m+k)/2,u.strokeDasharray=o;else if("rect"===c)n=2*P*m+2*S*k;else if("line"===c)n=y(v,b,v+P,b+S,m,k);else if("polyline"===c||"polygon"===c)for(r=e.getAttribute("points").match(h)||[],"polygon"===c&&r.push(r[0],r[1]),n=0,a=2;a<r.length;a+=2)n+=y(r[a-2],r[a-1],r[a],r[a+1],m,k)||0;else"circle"!==c&&"ellipse"!==c||(l=P/2*m,d=S/2*k,n=Math.PI*(3*(l+d)-w((3*l+d)*(l+3*d))));return n||0},T=(e,i)=>{if(!(e=t(e)[0]))return[0,0];i||(i=S(e)+1);let r=n.getComputedStyle(e),s=r.strokeDasharray||"",o=c(r.strokeDashoffset),a=s.indexOf(",");return a<0&&(a=s.indexOf(" ")),s=a<0?i:c(s.substr(0,a)),s>i&&(s=i),[-o||0,s-o||0]},D=()=>{l()&&(n=window,r=e=d(),t=e.utils.toArray,o=e.core.getStyleSaver,a=e.core.reverting||function(){},i=-1!==((n.navigator||{}).userAgent||"").indexOf("Edge"))};const O={version:"3.12.5",name:"drawSVG",register(t){e=t,D()},init(e,t,s,a,l){if(!e.getBBox)return!1;r||D();let d,h,f,p=S(e);return this.styles=o&&o(e,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=s,this._style=e.style,this._target=e,t+""=="true"?t="0 100%":t?-1===(t+"").indexOf(" ")&&(t="0 "+t):t="0 0",d=T(e,p),h=((e,t,n)=>{let i,r,s=e.indexOf(" ");return s<0?(i=void 0!==n?n+"":e,r=e):(i=e.substr(0,s),r=e.substr(s+1)),i=u(i,t),r=u(r,t),i>r?[r,i]:[i,r]})(t,p,d[0]),this._length=g(p),this._dash=g(d[1]-d[0]),this._offset=g(-d[0]),this._dashPT=this.add(this,"_dash",this._dash,g(h[1]-h[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,g(-h[0]),0,0,0,0,0,1),i&&(f=n.getComputedStyle(e),f.strokeLinecap!==f.strokeLinejoin&&(h=c(f.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",h,h+.01))),this._live=x(e)||~(t+"").indexOf("live"),this._nowrap=~(t+"").indexOf("nowrap"),this._props.push("drawSVG"),P},render(e,t){if(t.tween._time||!a()){let n,i,r,s,o=t._pt,a=t._style;if(o){for(t._live&&(n=S(t._target),n!==t._length&&(i=n/t._length,t._length=n,t._offsetPT&&(t._offsetPT.s*=i,t._offsetPT.c*=i),t._dashPT?(t._dashPT.s*=i,t._dashPT.c*=i):t._dash*=i));o;)o.r(e,o.d),o=o._next;r=t._dash||(e&&1!==e?1e-4:0),n=t._length-r+.1,s=t._offset,r&&s&&r+Math.abs(s%t._length)>t._length-.2&&(s+=s<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=r?s:s+.001,a.strokeDasharray=n<.2?"none":r?r+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}}else t.styles.revert()},getLength:S,getPosition:T};d()&&e.registerPlugin(O);export default O;export{O as DrawSVGPlugin}; |
/*! | ||
* EaselPlugin 3.12.4 | ||
* EaselPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let e,t,r,l,i,s,o="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),n=()=>"undefined"!=typeof window,a=()=>e||n()&&(e=window.gsap)&&e.registerPlugin&&e,u=()=>l||r&&r.createjs||r||{},f=e=>console.warn(e),h=e=>{let t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),f("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)},c=(t,r,l)=>{i||(i=u().ColorFilter,i||f("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded."));let s,n,a,c,p,d,g=t.filters||[],b=g.length;for(;b--;)if(g[b]instanceof i){n=g[b];break}if(n||(n=new i,g.push(n),t.filters=g),a=n.clone(),null!=r.tint)s=e.utils.splitColor(r.tint),c=null!=r.tintAmount?+r.tintAmount:1,a.redOffset=+s[0]*c,a.greenOffset=+s[1]*c,a.blueOffset=+s[2]*c,a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1-c;else for(p in r)"exposure"!==p&&"brightness"!==p&&(a[p]=+r[p]);for(null!=r.exposure?(a.redOffset=a.greenOffset=a.blueOffset=255*(+r.exposure-1),a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1):null!=r.brightness&&(c=+r.brightness-1,a.redOffset=a.greenOffset=a.blueOffset=c>0?255*c:0,a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1-Math.abs(c)),b=8;b--;)p=o[b],n[p]!==a[p]&&(d=l.add(n,p,n[p],a[p],0,0,0,0,0,1),d&&(d.op="easel_colorFilter"));l._props.push("easel_colorFilter"),t.cacheID||h(t)},p=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],d=.212671,g=.71516,b=.072169,M=(e,t)=>{if(!(e instanceof Array&&t instanceof Array))return t;let r,l,i=[],s=0,o=0;for(r=0;r<4;r++){for(l=0;l<5;l++)o=4===l?e[s+4]:0,i[s+l]=e[s]*t[l]+e[s+1]*t[l+5]+e[s+2]*t[l+10]+e[s+3]*t[l+15]+o;s+=5}return i},m=(t,r,l)=>{s||(s=u().ColorMatrixFilter,s||f("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded."));let i,o,n,a,c=t.filters||[],m=c.length;for(;--m>-1;)if(c[m]instanceof s){n=c[m];break}var x,w;for(n||(n=new s(p.slice()),c.push(n),t.filters=c),o=n.matrix,i=p.slice(),null!=r.colorize&&(i=((t,r,l)=>{isNaN(l)&&(l=1);let i=e.utils.splitColor(r),s=i[0]/255,o=i[1]/255,n=i[2]/255,a=1-l;return M([a+l*s*d,l*s*g,l*s*b,0,0,l*o*d,a+l*o*g,l*o*b,0,0,l*n*d,l*n*g,a+l*n*b,0,0,0,0,0,1,0],t)})(i,r.colorize,Number(r.colorizeAmount))),null!=r.contrast&&(x=i,w=Number(r.contrast),i=isNaN(w)?x:M([w+=.01,0,0,0,128*(1-w),0,w,0,0,128*(1-w),0,0,w,0,128*(1-w),0,0,0,1,0],x)),null!=r.hue&&(i=((e,t)=>{if(isNaN(t))return e;t*=Math.PI/180;let r=Math.cos(t),l=Math.sin(t);return M([d+r*(1-d)+l*-d,g+r*-g+l*-g,b+r*-b+l*(1-b),0,0,d+r*-d+.143*l,g+.28484*r+.14*l,b+r*-b+-.283*l,0,0,d+r*-d+-.787329*l,g+r*-g+l*g,b+r*(1-b)+l*b,0,0,0,0,0,1,0,0,0,0,0,1],e)})(i,Number(r.hue))),null!=r.saturation&&(i=((e,t)=>{if(isNaN(t))return e;let r=1-t,l=r*d,i=r*g,s=r*b;return M([l+t,i,s,0,0,l,i+t,s,0,0,l,i,s+t,0,0,0,0,0,1,0],e)})(i,Number(r.saturation))),m=i.length;--m>-1;)i[m]!==o[m]&&(a=l.add(o,m,o[m],i[m],0,0,0,0,0,1),a&&(a.op="easel_colorMatrixFilter"));l._props.push("easel_colorMatrixFilter"),t.cacheID||h(),l._matrix=o},x=l=>{e=l||a(),n()&&(r=window),e&&(t=1)};const w={version:"3.12.4",name:"easel",init(r,l,i,s,o){let n,a,u,h,p,d,g;for(n in t||(x(),e||f("Please gsap.registerPlugin(EaselPlugin)")),this.target=r,l)if(p=l[n],"colorFilter"===n||"tint"===n||"tintAmount"===n||"exposure"===n||"brightness"===n)u||(c(r,l.colorFilter||l,this),u=!0);else if("saturation"===n||"contrast"===n||"hue"===n||"colorize"===n||"colorizeAmount"===n)h||(m(r,l.colorMatrixFilter||l,this),h=!0);else if("frame"===n){if("string"==typeof p&&"="!==p.charAt(1)&&(d=r.labels))for(g=0;g<d.length;g++)d[g].label===p&&(p=d[g].position);a=this.add(r,"gotoAndStop",r.currentFrame,p,s,o,Math.round,0,0,1),a&&(a.op=n)}else null!=r[n]&&this.add(r,n,"get",p)},render(e,t){let r=t._pt;for(;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:x,registerCreateJS:e=>{l=e}};a()&&e.registerPlugin(w);export default w;export{w as EaselPlugin}; | ||
let e,t,r,l,i,s,o="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),n=()=>"undefined"!=typeof window,a=()=>e||n()&&(e=window.gsap)&&e.registerPlugin&&e,u=()=>l||r&&r.createjs||r||{},f=e=>console.warn(e),h=e=>{let t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),f("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)},c=(t,r,l)=>{i||(i=u().ColorFilter,i||f("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded."));let s,n,a,c,p,d,g=t.filters||[],b=g.length;for(;b--;)if(g[b]instanceof i){n=g[b];break}if(n||(n=new i,g.push(n),t.filters=g),a=n.clone(),null!=r.tint)s=e.utils.splitColor(r.tint),c=null!=r.tintAmount?+r.tintAmount:1,a.redOffset=+s[0]*c,a.greenOffset=+s[1]*c,a.blueOffset=+s[2]*c,a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1-c;else for(p in r)"exposure"!==p&&"brightness"!==p&&(a[p]=+r[p]);for(null!=r.exposure?(a.redOffset=a.greenOffset=a.blueOffset=255*(+r.exposure-1),a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1):null!=r.brightness&&(c=+r.brightness-1,a.redOffset=a.greenOffset=a.blueOffset=c>0?255*c:0,a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1-Math.abs(c)),b=8;b--;)p=o[b],n[p]!==a[p]&&(d=l.add(n,p,n[p],a[p],0,0,0,0,0,1),d&&(d.op="easel_colorFilter"));l._props.push("easel_colorFilter"),t.cacheID||h(t)},p=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],d=.212671,g=.71516,b=.072169,M=(e,t)=>{if(!(e instanceof Array&&t instanceof Array))return t;let r,l,i=[],s=0,o=0;for(r=0;r<4;r++){for(l=0;l<5;l++)o=4===l?e[s+4]:0,i[s+l]=e[s]*t[l]+e[s+1]*t[l+5]+e[s+2]*t[l+10]+e[s+3]*t[l+15]+o;s+=5}return i},m=(t,r,l)=>{s||(s=u().ColorMatrixFilter,s||f("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded."));let i,o,n,a,c=t.filters||[],m=c.length;for(;--m>-1;)if(c[m]instanceof s){n=c[m];break}var x,w;for(n||(n=new s(p.slice()),c.push(n),t.filters=c),o=n.matrix,i=p.slice(),null!=r.colorize&&(i=((t,r,l)=>{isNaN(l)&&(l=1);let i=e.utils.splitColor(r),s=i[0]/255,o=i[1]/255,n=i[2]/255,a=1-l;return M([a+l*s*d,l*s*g,l*s*b,0,0,l*o*d,a+l*o*g,l*o*b,0,0,l*n*d,l*n*g,a+l*n*b,0,0,0,0,0,1,0],t)})(i,r.colorize,Number(r.colorizeAmount))),null!=r.contrast&&(x=i,w=Number(r.contrast),i=isNaN(w)?x:M([w+=.01,0,0,0,128*(1-w),0,w,0,0,128*(1-w),0,0,w,0,128*(1-w),0,0,0,1,0],x)),null!=r.hue&&(i=((e,t)=>{if(isNaN(t))return e;t*=Math.PI/180;let r=Math.cos(t),l=Math.sin(t);return M([d+r*(1-d)+l*-d,g+r*-g+l*-g,b+r*-b+l*(1-b),0,0,d+r*-d+.143*l,g+.28484*r+.14*l,b+r*-b+-.283*l,0,0,d+r*-d+-.787329*l,g+r*-g+l*g,b+r*(1-b)+l*b,0,0,0,0,0,1,0,0,0,0,0,1],e)})(i,Number(r.hue))),null!=r.saturation&&(i=((e,t)=>{if(isNaN(t))return e;let r=1-t,l=r*d,i=r*g,s=r*b;return M([l+t,i,s,0,0,l,i+t,s,0,0,l,i,s+t,0,0,0,0,0,1,0],e)})(i,Number(r.saturation))),m=i.length;--m>-1;)i[m]!==o[m]&&(a=l.add(o,m,o[m],i[m],0,0,0,0,0,1),a&&(a.op="easel_colorMatrixFilter"));l._props.push("easel_colorMatrixFilter"),t.cacheID||h(),l._matrix=o},x=l=>{e=l||a(),n()&&(r=window),e&&(t=1)};const w={version:"3.12.5",name:"easel",init(r,l,i,s,o){let n,a,u,h,p,d,g;for(n in t||(x(),e||f("Please gsap.registerPlugin(EaselPlugin)")),this.target=r,l)if(p=l[n],"colorFilter"===n||"tint"===n||"tintAmount"===n||"exposure"===n||"brightness"===n)u||(c(r,l.colorFilter||l,this),u=!0);else if("saturation"===n||"contrast"===n||"hue"===n||"colorize"===n||"colorizeAmount"===n)h||(m(r,l.colorMatrixFilter||l,this),h=!0);else if("frame"===n){if("string"==typeof p&&"="!==p.charAt(1)&&(d=r.labels))for(g=0;g<d.length;g++)d[g].label===p&&(p=d[g].position);a=this.add(r,"gotoAndStop",r.currentFrame,p,s,o,Math.round,0,0,1),a&&(a.op=n)}else null!=r[n]&&this.add(r,n,"get",p)},render(e,t){let r=t._pt;for(;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:x,registerCreateJS:e=>{l=e}};a()&&e.registerPlugin(w);export default w;export{w as EaselPlugin}; |
/*! | ||
* EasePack 3.12.4 | ||
* EasePack 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let e,t,n=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,o=(e,t)=>!!(void 0===e?t:e&&!~(e+"").indexOf("false")),r=o=>{if(e=o||n(),e){t=e.registerEase;let n,o=e.parseEase(),r=e=>t=>{let n=.5+t/2;e.config=t=>e(2*(1-t)*t*n+t*t)};for(n in o)o[n].config||r(o[n]);for(n in t("slow",p),t("expoScale",f),t("rough",g),c)"version"!==n&&e.core.globals(n,c[n])}},s=(e,t,n)=>{let r=(e=Math.min(1,e||.7))<1?t||0===t?t:.7:0,s=(1-e)/2,i=s+e,a=o(n);return e=>{let t=e+(.5-e)*r;return e<s?a?1-(e=1-e/s)*e:t-(e=1-e/s)*e*e*e*t:e>i?a?1===e?0:1-(e=(e-i)/s)*e:t+(e-t)*(e=(e-i)/s)*e*e*e:a?1:t}},i=(t,n,o)=>{let r=Math.log(n/t),s=n-t;return o&&(o=e.parseEase(o)),e=>(t*Math.exp(r*(o?o(e):e))-t)/s},a=function(e,t,n){this.t=e,this.v=t,n&&(this.next=n,n.prev=this,this.c=n.v-t,this.gap=n.t-e)},l=t=>{"object"!=typeof t&&(t={points:+t||20});let n,r,s,i,l,p,f,g=t.taper||"none",c=[],h=0,u=0|(+t.points||20),x=u,d=o(t.randomize,!0),v=o(t.clamp),w=e?e.parseEase(t.template):0,E=.4*(+t.strength||1);for(;--x>-1;)n=d?Math.random():1/u*x,r=w?w(n):n,"none"===g?s=E:"out"===g?(i=1-n,s=i*i*E):"in"===g?s=n*n*E:n<.5?(i=2*n,s=i*i*.5*E):(i=2*(1-n),s=i*i*.5*E),d?r+=Math.random()*s-.5*s:x%2?r+=.5*s:r-=.5*s,v&&(r>1?r=1:r<0&&(r=0)),c[h++]={x:n,y:r};for(c.sort((e,t)=>e.x-t.x),p=new a(1,1,null),x=u;x--;)l=c[x],p=new a(l.x,l.y,p);return f=new a(0,0,p.t?p:p.next),e=>{let t=f;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return f=t,t.v+(e-t.t)/t.gap*t.c}};const p=s(.7);p.ease=p,p.config=s;const f=i(1,2);f.config=i;const g=l();g.ease=g,g.config=l;const c={SlowMo:p,RoughEase:g,ExpoScaleEase:f};for(let e in c)c[e].register=r,c[e].version="3.12.4";n()&&e.registerPlugin(p);export default c;export{c as EasePack,f as ExpoScaleEase,g as RoughEase,p as SlowMo}; | ||
let e,t,n=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,o=(e,t)=>!!(void 0===e?t:e&&!~(e+"").indexOf("false")),r=o=>{if(e=o||n(),e){t=e.registerEase;let n,o=e.parseEase(),r=e=>t=>{let n=.5+t/2;e.config=t=>e(2*(1-t)*t*n+t*t)};for(n in o)o[n].config||r(o[n]);for(n in t("slow",p),t("expoScale",f),t("rough",g),c)"version"!==n&&e.core.globals(n,c[n])}},s=(e,t,n)=>{let r=(e=Math.min(1,e||.7))<1?t||0===t?t:.7:0,s=(1-e)/2,i=s+e,a=o(n);return e=>{let t=e+(.5-e)*r;return e<s?a?1-(e=1-e/s)*e:t-(e=1-e/s)*e*e*e*t:e>i?a?1===e?0:1-(e=(e-i)/s)*e:t+(e-t)*(e=(e-i)/s)*e*e*e:a?1:t}},i=(t,n,o)=>{let r=Math.log(n/t),s=n-t;return o&&(o=e.parseEase(o)),e=>(t*Math.exp(r*(o?o(e):e))-t)/s},a=function(e,t,n){this.t=e,this.v=t,n&&(this.next=n,n.prev=this,this.c=n.v-t,this.gap=n.t-e)},l=t=>{"object"!=typeof t&&(t={points:+t||20});let n,r,s,i,l,p,f,g=t.taper||"none",c=[],h=0,u=0|(+t.points||20),x=u,d=o(t.randomize,!0),v=o(t.clamp),w=e?e.parseEase(t.template):0,E=.4*(+t.strength||1);for(;--x>-1;)n=d?Math.random():1/u*x,r=w?w(n):n,"none"===g?s=E:"out"===g?(i=1-n,s=i*i*E):"in"===g?s=n*n*E:n<.5?(i=2*n,s=i*i*.5*E):(i=2*(1-n),s=i*i*.5*E),d?r+=Math.random()*s-.5*s:x%2?r+=.5*s:r-=.5*s,v&&(r>1?r=1:r<0&&(r=0)),c[h++]={x:n,y:r};for(c.sort((e,t)=>e.x-t.x),p=new a(1,1,null),x=u;x--;)l=c[x],p=new a(l.x,l.y,p);return f=new a(0,0,p.t?p:p.next),e=>{let t=f;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return f=t,t.v+(e-t.t)/t.gap*t.c}};const p=s(.7);p.ease=p,p.config=s;const f=i(1,2);f.config=i;const g=l();g.ease=g,g.config=l;const c={SlowMo:p,RoughEase:g,ExpoScaleEase:f};for(let e in c)c[e].register=r,c[e].version="3.12.5";n()&&e.registerPlugin(p);export default c;export{c as EasePack,f as ExpoScaleEase,g as RoughEase,p as SlowMo}; |
/*! | ||
* Flip 3.12.4 | ||
* Flip 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let e,t,i,s,a,n,l,r,o,h="transform",p=h+"Origin",d=a=>{let n=a.ownerDocument||a;!(h in a.style)&&"msTransform"in a.style&&(h="msTransform",p=h+"Origin");for(;n.parentNode&&(n=n.parentNode););if(t=window,l=new S,n){e=n,i=n.documentElement,s=n.body,r=e.createElementNS("http://www.w3.org/2000/svg","g"),r.style.transform="none";let t=n.createElement("div"),a=n.createElement("div"),l=n&&(n.body||n.firstElementChild);l&&l.appendChild&&(l.appendChild(t),t.appendChild(a),t.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),o=a.offsetParent!==t,l.removeChild(t))}return n},c=[],m=[],f=()=>t.pageYOffset||e.scrollTop||i.scrollTop||s.scrollTop||0,u=()=>t.pageXOffset||e.scrollLeft||i.scrollLeft||s.scrollLeft||0,g=e=>e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null),y=e=>"fixed"===t.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?y(e):void 0),b=(t,i)=>{if(t.parentNode&&(e||d(t))){let s=g(t),l=s?s.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=s?i?"rect":"g":"div",o=2!==i?0:100,h=3===i?100:0,p="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",d=e.createElementNS?e.createElementNS(l.replace(/^https/,"http"),r):e.createElement(r);return i&&(s?(n||(n=b(t)),d.setAttribute("width",.01),d.setAttribute("height",.01),d.setAttribute("transform","translate("+o+","+h+")"),n.appendChild(d)):(a||(a=b(t),a.style.cssText=p),d.style.cssText=p+"width:0.1px;height:0.1px;top:"+h+"px;left:"+o+"px",a.appendChild(d))),d}throw"Need document and parent."},x=e=>{let t,i=e.getCTM();return i||(t=e.style[h],e.style[h]="none",e.appendChild(r),i=r.getCTM(),e.removeChild(r),t?e.style[h]=t:e.style.removeProperty(h.replace(/([A-Z])/g,"-$1").toLowerCase())),i||l.clone()},w=(e,i)=>{let s,r,d,f,u,y,w=g(e),v=e===w,C=w?c:m,k=e.parentNode;if(e===t)return e;if(C.length||C.push(b(e,1),b(e,2),b(e,3)),s=w?n:a,w)v?(d=x(e),f=-d.e/d.a,u=-d.f/d.d,r=l):e.getBBox?(d=e.getBBox(),r=e.transform?e.transform.baseVal:{},r=r.numberOfItems?r.numberOfItems>1?(e=>{let t=new S,i=0;for(;i<e.numberOfItems;i++)t.multiply(e.getItem(i).matrix);return t})(r):r.getItem(0).matrix:l,f=r.a*d.x+r.c*d.y,u=r.b*d.x+r.d*d.y):(r=new S,f=u=0),i&&"g"===e.tagName.toLowerCase()&&(f=u=0),(v?w:k).appendChild(s),s.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+f)+","+(r.f+u)+")");else{if(f=u=0,o)for(r=e.offsetParent,d=e;d&&(d=d.parentNode)&&d!==r&&d.parentNode;)(t.getComputedStyle(d)[h]+"").length>4&&(f=d.offsetLeft,u=d.offsetTop,d=0);if(y=t.getComputedStyle(e),"absolute"!==y.position&&"fixed"!==y.position)for(r=e.offsetParent;k&&k!==r;)f+=k.scrollLeft||0,u+=k.scrollTop||0,k=k.parentNode;d=s.style,d.top=e.offsetTop-u+"px",d.left=e.offsetLeft-f+"px",d[h]=y[h],d[p]=y[p],d.position="fixed"===y.position?"fixed":"absolute",e.parentNode.appendChild(s)}return s},v=(e,t,i,s,a,n,l)=>(e.a=t,e.b=i,e.c=s,e.d=a,e.e=n,e.f=l,e);class S{constructor(e=1,t=0,i=0,s=1,a=0,n=0){v(this,e,t,i,s,a,n)}inverse(){let{a:e,b:t,c:i,d:s,e:a,f:n}=this,l=e*s-t*i||1e-10;return v(this,s/l,-t/l,-i/l,e/l,(i*n-s*a)/l,-(e*n-t*a)/l)}multiply(e){let{a:t,b:i,c:s,d:a,e:n,f:l}=this,r=e.a,o=e.c,h=e.b,p=e.d,d=e.e,c=e.f;return v(this,r*t+h*s,r*i+h*a,o*t+p*s,o*i+p*a,n+d*t+c*s,l+d*i+c*a)}clone(){return new S(this.a,this.b,this.c,this.d,this.e,this.f)}equals(e){let{a:t,b:i,c:s,d:a,e:n,f:l}=this;return t===e.a&&i===e.b&&s===e.c&&a===e.d&&n===e.e&&l===e.f}apply(e,t={}){let{x:i,y:s}=e,{a:a,b:n,c:l,d:r,e:o,f:h}=this;return t.x=i*a+s*l+o||0,t.y=i*n+s*r+h||0,t}}function C(t,i,a,n){if(!t||!t.parentNode||(e||d(t)).documentElement===t)return new S;let l=(e=>{let t,i;for(;e&&e!==s;)i=e._gsap,i&&i.uncache&&i.get(e,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),t?t.push(i):t=[i]),e=e.parentNode;return t})(t),r=g(t)?c:m,o=w(t,a),h=r[0].getBoundingClientRect(),p=r[1].getBoundingClientRect(),b=r[2].getBoundingClientRect(),x=o.parentNode,v=!n&&y(t),C=new S((p.left-h.left)/100,(p.top-h.top)/100,(b.left-h.left)/100,(b.top-h.top)/100,h.left+(v?0:u()),h.top+(v?0:f()));if(x.removeChild(o),l)for(h=l.length;h--;)p=l[h],p.scaleX=p.scaleY=0,p.renderTransform(1,p);return i?C.inverse():C}let k,V,E,L,_,B,I,P,N=1,T=(e,t)=>e.actions.forEach(e=>e.vars[t]&&e.vars[t](e)),X={},O=180/Math.PI,M=Math.PI/180,Y={},A={},R={},z=e=>"string"==typeof e?e.split(" ").join("").split(","):e,D=z("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),F=z("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),H=e=>k(e)[0]||console.warn("Element not found:",e),W=e=>Math.round(1e4*e)/1e4||0,q=(e,t,i)=>e.forEach(e=>e.classList[i](t)),j={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},J={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},U=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),Z=(e,t)=>{let i,s={};for(i in e)t[i]||(s[i]=e[i]);return s},$={},G=e=>{let t=$[e]=z(e);return R[e]=t.concat(F),t},K=(e,t,i=0)=>{let s=e.parentNode,a=1e3*10**i*(t?-1:1),n=t?900*-a:0;for(;e;)n+=a,e=e.previousSibling;return s?n+K(s,t,i+1):n},Q=(e,t,i)=>(e.forEach(e=>e.d=K(i?e.element:e.t,t)),e.sort((e,t)=>e.d-t.d),e),ee=(e,t)=>{let i,s,a=e.element.style,n=e.css=e.css||[],l=t.length;for(;l--;)i=t[l],s=a[i]||a.getPropertyValue(i),n.push(s?i:A[i]||(A[i]=U(i)),s);return a},te=e=>{let t=e.css,i=e.element.style,s=0;for(e.cache.uncache=1;s<t.length;s+=2)t[s+1]?i[t[s]]=t[s+1]:i.removeProperty(t[s]);!t[t.indexOf("transform")+1]&&i.translate&&(i.removeProperty("translate"),i.removeProperty("scale"),i.removeProperty("rotate"))},ie=(e,t)=>{e.forEach(e=>e.a.cache.uncache=1),t||e.finalStates.forEach(te)},se="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),ae=(e,t,i)=>{let s,a,n,{element:l,width:r,height:o,uncache:h,getProp:p}=e,d=l.style,c=4;if("object"!=typeof t&&(t=e),E&&1!==i)return E._abs.push({t:l,b:e,a:e,sd:0}),E._final.push(()=>(e.cache.uncache=1)&&te(e)),l;for(a="none"===p("display"),e.isVisible&&!a||(a&&(ee(e,["display"]).display=t.display),e.matrix=t.matrix,e.width=r=e.width||t.width,e.height=o=e.height||t.height),ee(e,se),n=window.getComputedStyle(l);c--;)d[se[c]]=n[se[c]];if(d.gridArea="1 / 1 / 1 / 1",d.transition="none",d.position="absolute",d.width=r+"px",d.height=o+"px",d.top||(d.top="0px"),d.left||(d.left="0px"),h)s=new Se(l);else if(s=Z(e,Y),s.position="absolute",e.simple){let e=l.getBoundingClientRect();s.matrix=new S(1,0,0,1,e.left+u(),e.top+f())}else s.matrix=C(l,!1,!1,!0);return s=de(s,e,!0),e.x=B(s.x,.01),e.y=B(s.y,.01),l},ne=(e,t)=>(!0!==t&&(t=k(t),e=e.filter(e=>{if(-1!==t.indexOf((e.sd<0?e.b:e.a).element))return!0;e.t._gsap.renderTransform(1),e.b.isVisible&&(e.t.style.width=e.b.width+"px",e.t.style.height=e.b.height+"px")})),e),le=e=>Q(e,!0).forEach(e=>(e.a.isVisible||e.b.isVisible)&&ae(e.sd<0?e.b:e.a,e.b,1)),re=(e,t,i,s)=>e instanceof Se?e:e instanceof ve?((e,t)=>t&&e.idLookup[re(t).id]||e.elementStates[0])(e,s):new Se("string"==typeof e?H(e)||console.warn(e+" not found"):e,t,i),oe=(e,t)=>{let i,s=e.style||e;for(i in t)s[i]=t[i]},he=e=>e.map(e=>e.element),pe=(e,t,i)=>e&&t.length&&i.add(e(he(t),i,new ve(t,0,!0)),0),de=(e,t,i,s,a,n)=>{let l,r,o,h,p,d,c,{element:m,cache:f,parent:u,x:g,y:y}=e,{width:b,height:x,scaleX:w,scaleY:v,rotation:S,bounds:E}=t,L=n&&I&&I(m,"transform"),_=e,{e:P,f:N}=t.matrix,T=e.bounds.width!==E.width||e.bounds.height!==E.height||e.scaleX!==w||e.scaleY!==v||e.rotation!==S,X=!T&&e.simple&&t.simple&&!a;return X||!u?(w=v=1,S=l=0):(p=(e=>{let t=e._gsap||V.core.getCache(e);return t.gmCache===V.ticker.frame?t.gMatrix:(t.gmCache=V.ticker.frame,t.gMatrix=C(e,!0,!1,!0))})(u),d=p.clone().multiply(t.ctm?t.matrix.clone().multiply(t.ctm):t.matrix),S=W(Math.atan2(d.b,d.a)*O),l=W(Math.atan2(d.c,d.d)*O+S)%360,w=Math.sqrt(d.a**2+d.b**2),v=Math.sqrt(d.c**2+d.d**2)*Math.cos(l*M),a&&(a=k(a)[0],h=V.getProperty(a),c=a.getBBox&&"function"==typeof a.getBBox&&a.getBBox(),_={scaleX:h("scaleX"),scaleY:h("scaleY"),width:c?c.width:Math.ceil(parseFloat(h("width","px"))),height:c?c.height:parseFloat(h("height","px"))}),f.rotation=S+"deg",f.skewX=l+"deg"),i?(w*=b!==_.width&&_.width?b/_.width:1,v*=x!==_.height&&_.height?x/_.height:1,f.scaleX=w,f.scaleY=v):(b=B(b*w/_.scaleX,0),x=B(x*v/_.scaleY,0),m.style.width=b+"px",m.style.height=x+"px"),s&&oe(m,t.props),X||!u?(g+=P-e.matrix.e,y+=N-e.matrix.f):T||u!==t.parent?(f.renderTransform(1,f),d=C(a||m,!1,!1,!0),r=p.apply({x:d.e,y:d.f}),o=p.apply({x:P,y:N}),g+=o.x-r.x,y+=o.y-r.y):(p.e=p.f=0,o=p.apply({x:P-e.matrix.e,y:N-e.matrix.f}),g+=o.x,y+=o.y),g=B(g,.02),y=B(y,.02),!n||n instanceof Se?(f.x=g+"px",f.y=y+"px",f.renderTransform(1,f)):L&&L.revert(),n&&(n.x=g,n.y=y,n.rotation=S,n.skewX=l,i?(n.scaleX=w,n.scaleY=v):(n.width=b,n.height=x)),n||f},ce=(e,t)=>e instanceof ve?e:new ve(e,t),me=(e,t,i)=>{let s=e.idLookup[i],a=e.alt[i];return!a.isVisible||(t.getElementState(a.element)||a).isVisible&&s.isVisible?s:a},fe=[],ue="width,height,overflowX,overflowY".split(","),ge=e=>{if(e!==P){let t=_.style,i=_.clientWidth===window.outerWidth,s=_.clientHeight===window.outerHeight,a=4;if(e&&(i||s)){for(;a--;)fe[a]=t[ue[a]];i&&(t.width=_.clientWidth+"px",t.overflowY="hidden"),s&&(t.height=_.clientHeight+"px",t.overflowX="hidden"),P=e}else if(P){for(;a--;)fe[a]?t[ue[a]]=fe[a]:t.removeProperty(U(ue[a]));P=e}}},ye=(e,t,i,s)=>{e instanceof ve&&t instanceof ve||console.warn("Not a valid state object."),i=i||{};let a,n,l,r,o,h,p,d,c,m,f,u,g,y,{clearProps:b,onEnter:x,onLeave:w,absolute:v,absoluteOnLeave:S,custom:k,delay:L,paused:_,repeat:B,repeatDelay:I,yoyo:P,toggleClass:N,nested:T,zIndex:X,scale:O,fade:M,stagger:Y,spin:A,prune:z}=i,H=("props"in i?i:e).props,W=Z(i,j),U=V.timeline({delay:L,paused:_,repeat:B,repeatDelay:I,yoyo:P,data:"isFlip"}),K=W,te=[],se=[],ae=[],re=[],oe=!0===A?1:A||0,he="function"==typeof A?A:()=>oe,ce=e.interrupted||t.interrupted,fe=U[1!==s?"to":"from"];for(n in t.idLookup)f=t.alt[n]?me(t,e,n):t.idLookup[n],o=f.element,m=e.idLookup[n],e.alt[n]&&o===m.element&&(e.alt[n].isVisible||!f.isVisible)&&(m=e.alt[n]),m?(h={t:o,b:m,a:f,sd:m.element===o?0:f.isVisible?1:-1},ae.push(h),h.sd&&(h.sd<0&&(h.b=f,h.a=m),ce&&ee(h.b,H?R[H]:F),M&&ae.push(h.swap={t:m.element,b:h.b,a:h.a,sd:-h.sd,swap:h})),o._flip=m.element._flip=E?E.timeline:U):f.isVisible&&(ae.push({t:o,b:Z(f,{isVisible:1}),a:f,sd:0,entering:1}),o._flip=E?E.timeline:U);H&&($[H]||G(H)).forEach(e=>W[e]=t=>ae[t].a.props[e]),ae.finalStates=c=[],u=()=>{for(Q(ae),ge(!0),r=0;r<ae.length;r++)h=ae[r],g=h.a,y=h.b,!z||g.isDifferent(y)||h.entering?(o=h.t,T&&!(h.sd<0)&&r&&(g.matrix=C(o,!1,!1,!0)),y.isVisible&&g.isVisible?(h.sd<0?(p=new Se(o,H,e.simple),de(p,g,O,0,0,p),p.matrix=C(o,!1,!1,!0),p.css=h.b.css,h.a=g=p,M&&(o.style.opacity=ce?y.opacity:g.opacity),Y&&re.push(o)):h.sd>0&&M&&(o.style.opacity=ce?g.opacity-y.opacity:"0"),de(g,y,O,H)):y.isVisible!==g.isVisible&&(y.isVisible?g.isVisible||(y.css=g.css,se.push(y),ae.splice(r--,1),v&&T&&de(g,y,O,H)):(g.isVisible&&te.push(g),ae.splice(r--,1))),O||(o.style.maxWidth=Math.max(g.width,y.width)+"px",o.style.maxHeight=Math.max(g.height,y.height)+"px",o.style.minWidth=Math.min(g.width,y.width)+"px",o.style.minHeight=Math.min(g.height,y.height)+"px"),T&&N&&o.classList.add(N)):ae.splice(r--,1),c.push(g);let t;if(N&&(t=c.map(e=>e.element),T&&t.forEach(e=>e.classList.remove(N))),ge(!1),O?(W.scaleX=e=>ae[e].a.scaleX,W.scaleY=e=>ae[e].a.scaleY):(W.width=e=>ae[e].a.width+"px",W.height=e=>ae[e].a.height+"px",W.autoRound=i.autoRound||!1),W.x=e=>ae[e].a.x+"px",W.y=e=>ae[e].a.y+"px",W.rotation=e=>ae[e].a.rotation+(A?360*he(e,d[e],d):0),W.skewX=e=>ae[e].a.skewX,d=ae.map(e=>e.t),(X||0===X)&&(W.modifiers={zIndex:()=>X},W.zIndex=X,W.immediateRender=!1!==i.immediateRender),M&&(W.opacity=e=>ae[e].sd<0?0:ae[e].sd>0?ae[e].a.opacity:"+=0"),re.length){Y=V.utils.distribute(Y);let e=d.slice(re.length);W.stagger=(t,i)=>Y(~re.indexOf(i)?d.indexOf(ae[t].swap.t):t,i,e)}if(D.forEach(e=>i[e]&&U.eventCallback(e,i[e],i[e+"Params"])),k&&d.length)for(n in K=Z(W,j),"scale"in k&&(k.scaleX=k.scaleY=k.scale,delete k.scale),k)a=Z(k[n],J),a[n]=W[n],!("duration"in a)&&"duration"in W&&(a.duration=W.duration),a.stagger=W.stagger,fe.call(U,d,a,0),delete K[n];(d.length||se.length||te.length)&&(N&&U.add(()=>q(t,N,U._zTime<0?"remove":"add"),0)&&!_&&q(t,N,"add"),d.length&&fe.call(U,d,K,0)),pe(x,te,U),pe(w,se,U);let s=E&&E.timeline;s&&(s.add(U,0),E._final.push(()=>ie(ae,!b))),l=U.duration(),U.call(()=>{let e=U.time()>=l;e&&!s&&ie(ae,!b),N&&q(t,N,e?"remove":"add")})},S&&(v=ae.filter(e=>!e.sd&&!e.a.isVisible&&e.b.isVisible).map(e=>e.a.element)),E?(v&&E._abs.push(...ne(ae,v)),E._run.push(u)):(v&&le(ne(ae,v)),u());let ue=E?E.timeline:U;return ue.revert=()=>xe(ue,1,1),ue},be=e=>{e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(be)},xe=(e,t,i)=>{if(e&&e.progress()<1&&(!e.paused()||i))return t&&(be(e),t<2&&e.progress(1),e.kill()),!0},we=e=>{let t,i=e.idLookup={},s=e.alt={},a=e.elementStates,n=a.length;for(;n--;)t=a[n],i[t.id]?s[t.id]=t:i[t.id]=t};class ve{constructor(e,t,i){if(this.props=t&&t.props,this.simple=!(!t||!t.simple),i)this.targets=he(e),this.elementStates=e,we(this);else{this.targets=k(e);let i=t&&(!1===t.kill||t.batch&&!t.kill);E&&!i&&E._kill.push(this),this.update(i||!!E)}}update(e){return this.elementStates=this.targets.map(e=>new Se(e,this.props,this.simple)),we(this),this.interrupt(e),this.recordInlineStyles(),this}clear(){return this.targets.length=this.elementStates.length=0,we(this),this}fit(e,t,i){let s,a,n=Q(this.elementStates.slice(0),!1,!0),l=(e||this).idLookup,r=0;for(;r<n.length;r++)s=n[r],i&&(s.matrix=C(s.element,!1,!1,!0)),a=l[s.id],a&&de(s,a,t,!0,0,s),s.matrix=C(s.element,!1,!1,!0);return this}getProperty(e,t){let i=this.getElementState(e)||Y;return(t in i?i:i.props||Y)[t]}add(e){let t,i,s,a=e.targets.length,n=this.idLookup,l=this.alt;for(;a--;)i=e.elementStates[a],s=n[i.id],s&&(i.element===s.element||l[i.id]&&l[i.id].element===i.element)?(t=this.elementStates.indexOf(i.element===s.element?s:l[i.id]),this.targets.splice(t,1,e.targets[a]),this.elementStates.splice(t,1,i)):(this.targets.push(e.targets[a]),this.elementStates.push(i));return e.interrupted&&(this.interrupted=!0),e.simple||(this.simple=!1),we(this),this}compare(e){let t,i,s,a,n,l,r,o,h=e.idLookup,p=this.idLookup,d=[],c=[],m=[],f=[],u=[],g=e.alt,y=this.alt,b=(e,t,i)=>(e.isVisible!==t.isVisible?e.isVisible?m:f:e.isVisible?c:d).push(i)&&u.push(i),x=(e,t,i)=>u.indexOf(i)<0&&b(e,t,i);for(s in h)n=g[s],l=y[s],t=n?me(e,this,s):h[s],a=t.element,i=p[s],l?(o=i.isVisible||!l.isVisible&&a===i.element?i:l,r=!n||t.isVisible||n.isVisible||o.element!==n.element?t:n,r.isVisible&&o.isVisible&&r.element!==o.element?((r.isDifferent(o)?c:d).push(r.element,o.element),u.push(r.element,o.element)):b(r,o,r.element),n&&r.element===n.element&&(n=h[s]),x(r.element!==i.element&&n?n:r,i,i.element),x(n&&n.element===l.element?n:r,l,l.element),n&&x(n,l.element===n.element?l:i,n.element)):(i?i.isDifferent(t)?b(t,i,a):d.push(a):m.push(a),n&&x(n,i,n.element));for(s in p)h[s]||(f.push(p[s].element),y[s]&&f.push(y[s].element));return{changed:c,unchanged:d,enter:m,leave:f}}recordInlineStyles(){let e=R[this.props]||F,t=this.elementStates.length;for(;t--;)ee(this.elementStates[t],e)}interrupt(e){let t=[];this.targets.forEach(i=>{let s=i._flip,a=xe(s,e?0:1);e&&a&&t.indexOf(s)<0&&s.add(()=>this.updateVisibility()),a&&t.push(s)}),!e&&t.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!t.length)}updateVisibility(){this.elementStates.forEach(e=>{let t=e.element.getBoundingClientRect();e.isVisible=!!(t.width||t.height||t.top||t.left),e.uncache=1})}getElementState(e){return this.elementStates[this.targets.indexOf(H(e))]}makeAbsolute(){return Q(this.elementStates.slice(0),!0,!0).map(ae)}}class Se{constructor(e,t,i){this.element=e,this.update(t,i)}isDifferent(e){let t=this.bounds,i=e.bounds;return t.top!==i.top||t.left!==i.left||t.width!==i.width||t.height!==i.height||!this.matrix.equals(e.matrix)||this.opacity!==e.opacity||this.props&&e.props&&JSON.stringify(this.props)!==JSON.stringify(e.props)}update(e,t){let i=this.element,s=V.getProperty(i),a=V.core.getCache(i),n=i.getBoundingClientRect(),l=i.getBBox&&"function"==typeof i.getBBox&&"svg"!==i.nodeName.toLowerCase()&&i.getBBox(),r=t?new S(1,0,0,1,n.left+u(),n.top+f()):C(i,!1,!1,!0);this.getProp=s,this.element=i,this.id=(e=>{let t=e.getAttribute("data-flip-id");return t||e.setAttribute("data-flip-id",t="auto-"+N++),t})(i),this.matrix=r,this.cache=a,this.bounds=n,this.isVisible=!!(n.width||n.height||n.left||n.top),this.display=s("display"),this.position=s("position"),this.parent=i.parentNode,this.x=s("x"),this.y=s("y"),this.scaleX=a.scaleX,this.scaleY=a.scaleY,this.rotation=s("rotation"),this.skewX=s("skewX"),this.opacity=s("opacity"),this.width=l?l.width:B(s("width","px"),.04),this.height=l?l.height:B(s("height","px"),.04),e&&((e,t)=>{let i=V.getProperty(e.element,null,"native"),s=e.props={},a=t.length;for(;a--;)s[t[a]]=(i(t[a])+"").trim();s.zIndex&&(s.zIndex=parseFloat(s.zIndex)||0)})(this,$[e]||G(e)),this.ctm=i.getCTM&&"svg"===i.nodeName.toLowerCase()&&x(i).inverse(),this.simple=t||1===W(r.a)&&!W(r.b)&&!W(r.c)&&1===W(r.d),this.uncache=0}}class Ce{constructor(e,t){this.vars=e,this.batch=t,this.states=[],this.timeline=t.timeline}getStateById(e){let t=this.states.length;for(;t--;)if(this.states[t].idLookup[e])return this.states[t]}kill(){this.batch.remove(this)}}class ke{constructor(e){this.id=e,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new ve,this.timeline=V.timeline()}add(e){let t=this.actions.filter(t=>t.vars===e);return t.length?t[0]:(t=new Ce("function"==typeof e?{animate:e}:e,this),this.actions.push(t),t)}remove(e){let t=this.actions.indexOf(e);return t>=0&&this.actions.splice(t,1),this}getState(e){let t=E,i=L;return E=this,this.state.clear(),this._kill.length=0,this.actions.forEach(t=>{t.vars.getState&&(t.states.length=0,L=t,t.state=t.vars.getState(t)),e&&t.states.forEach(e=>this.state.add(e))}),L=i,E=t,this.killConflicts(),this}animate(){let e,t,i=E,s=this.timeline,a=this.actions.length;for(E=this,s.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(e=>{e.vars.animate&&e.vars.animate(e);let t,i,s=e.vars.onEnter,a=e.vars.onLeave,n=e.targets;n&&n.length&&(s||a)&&(t=new ve,e.states.forEach(e=>t.add(e)),i=t.compare(Ve.getState(n)),i.enter.length&&s&&s(i.enter),i.leave.length&&a&&a(i.leave))}),le(this._abs),this._run.forEach(e=>e()),t=s.duration(),e=this._final.slice(0),s.add(()=>{t<=s.time()&&(e.forEach(e=>e()),T(this,"onComplete"))}),E=i;a--;)this.actions[a].vars.once&&this.actions[a].kill();return T(this,"onStart"),s.restart(),this}loadState(e){e||(e=()=>0);let t=[];return this.actions.forEach(i=>{if(i.vars.loadState){let s,a=n=>{n&&(i.targets=n),s=t.indexOf(a),~s&&(t.splice(s,1),t.length||e())};t.push(a),i.vars.loadState(a)}}),t.length||e(),this}setState(){return this.actions.forEach(e=>e.targets=e.vars.setState&&e.vars.setState(e)),this}killConflicts(e){return this.state.interrupt(e),this._kill.forEach(t=>t.interrupt(e)),this}run(e,t){return this!==E&&(e||this.getState(t),this.loadState(()=>{this._killed||(this.setState(),this.animate())})),this}clear(e){this.state.clear(),e||(this.actions.length=0)}getStateById(e){let t,i=this.actions.length;for(;i--;)if(t=this.actions[i].getStateById(e),t)return t;return this.state.idLookup[e]&&this.state}kill(){this._killed=1,this.clear(),delete X[this.id]}}class Ve{static getState(e,t){let i=ce(e,t);return L&&L.states.push(i),t&&t.batch&&Ve.batch(t.batch).state.add(i),i}static from(e,t){return"clearProps"in(t=t||{})||(t.clearProps=!0),ye(e,ce(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,-1)}static to(e,t){return ye(e,ce(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,1)}static fromTo(e,t,i){return ye(e,t,i)}static fit(e,t,i){let s=i?Z(i,J):{},{absolute:a,scale:n,getVars:l,props:r,runBackwards:o,onComplete:h,simple:p}=i||s,d=i&&i.fitChild&&H(i.fitChild),c=re(t,r,p,e),m=re(e,0,p,c),f=r?R[r]:F,u=V.context();return r&&oe(s,c.props),ee(m,f),o&&("immediateRender"in s||(s.immediateRender=!0),s.onComplete=function(){te(m),h&&h.apply(this,arguments)}),a&&ae(m,c),s=de(m,c,n||d,r,d,s.duration||l?s:0),u&&!l&&u.add(()=>()=>te(m)),l?s:s.duration?V.to(m.element,s):null}static makeAbsolute(e,t){return(e instanceof ve?e:new ve(e,t)).makeAbsolute()}static batch(e){return e||(e="default"),X[e]||(X[e]=new ke(e))}static killFlipsOf(e,t){(e instanceof ve?e.targets:k(e)).forEach(e=>e&&xe(e._flip,!1!==t?1:2))}static isFlipping(e){let t=Ve.getByTarget(e);return!!t&&t.isActive()}static getByTarget(e){return(H(e)||Y)._flip}static getElementState(e,t){return new Se(H(e),t)}static convertCoordinates(e,t,i){let s=C(t,!0,!0).multiply(C(e));return i?s.apply(i):s}static register(e){if(_="undefined"!=typeof document&&document.body,_){V=e,d(_),k=V.utils.toArray,I=V.core.getStyleSaver;let t=V.utils.snap(.1);B=(e,i)=>t(parseFloat(e)+i)}}}Ve.version="3.12.4","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(Ve);export default Ve;export{Ve as Flip}; | ||
let e,t,i,s,a,n,l,r,o,h="transform",p=h+"Origin",d=a=>{let n=a.ownerDocument||a;!(h in a.style)&&"msTransform"in a.style&&(h="msTransform",p=h+"Origin");for(;n.parentNode&&(n=n.parentNode););if(t=window,l=new S,n){e=n,i=n.documentElement,s=n.body,r=e.createElementNS("http://www.w3.org/2000/svg","g"),r.style.transform="none";let t=n.createElement("div"),a=n.createElement("div"),l=n&&(n.body||n.firstElementChild);l&&l.appendChild&&(l.appendChild(t),t.appendChild(a),t.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),o=a.offsetParent!==t,l.removeChild(t))}return n},c=[],m=[],f=()=>t.pageYOffset||e.scrollTop||i.scrollTop||s.scrollTop||0,u=()=>t.pageXOffset||e.scrollLeft||i.scrollLeft||s.scrollLeft||0,g=e=>e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null),y=e=>"fixed"===t.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?y(e):void 0),b=(t,i)=>{if(t.parentNode&&(e||d(t))){let s=g(t),l=s?s.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=s?i?"rect":"g":"div",o=2!==i?0:100,h=3===i?100:0,p="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",d=e.createElementNS?e.createElementNS(l.replace(/^https/,"http"),r):e.createElement(r);return i&&(s?(n||(n=b(t)),d.setAttribute("width",.01),d.setAttribute("height",.01),d.setAttribute("transform","translate("+o+","+h+")"),n.appendChild(d)):(a||(a=b(t),a.style.cssText=p),d.style.cssText=p+"width:0.1px;height:0.1px;top:"+h+"px;left:"+o+"px",a.appendChild(d))),d}throw"Need document and parent."},x=e=>{let t,i=e.getCTM();return i||(t=e.style[h],e.style[h]="none",e.appendChild(r),i=r.getCTM(),e.removeChild(r),t?e.style[h]=t:e.style.removeProperty(h.replace(/([A-Z])/g,"-$1").toLowerCase())),i||l.clone()},w=(e,i)=>{let s,r,d,f,u,y,w=g(e),v=e===w,C=w?c:m,k=e.parentNode;if(e===t)return e;if(C.length||C.push(b(e,1),b(e,2),b(e,3)),s=w?n:a,w)v?(d=x(e),f=-d.e/d.a,u=-d.f/d.d,r=l):e.getBBox?(d=e.getBBox(),r=e.transform?e.transform.baseVal:{},r=r.numberOfItems?r.numberOfItems>1?(e=>{let t=new S,i=0;for(;i<e.numberOfItems;i++)t.multiply(e.getItem(i).matrix);return t})(r):r.getItem(0).matrix:l,f=r.a*d.x+r.c*d.y,u=r.b*d.x+r.d*d.y):(r=new S,f=u=0),i&&"g"===e.tagName.toLowerCase()&&(f=u=0),(v?w:k).appendChild(s),s.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+f)+","+(r.f+u)+")");else{if(f=u=0,o)for(r=e.offsetParent,d=e;d&&(d=d.parentNode)&&d!==r&&d.parentNode;)(t.getComputedStyle(d)[h]+"").length>4&&(f=d.offsetLeft,u=d.offsetTop,d=0);if(y=t.getComputedStyle(e),"absolute"!==y.position&&"fixed"!==y.position)for(r=e.offsetParent;k&&k!==r;)f+=k.scrollLeft||0,u+=k.scrollTop||0,k=k.parentNode;d=s.style,d.top=e.offsetTop-u+"px",d.left=e.offsetLeft-f+"px",d[h]=y[h],d[p]=y[p],d.position="fixed"===y.position?"fixed":"absolute",e.parentNode.appendChild(s)}return s},v=(e,t,i,s,a,n,l)=>(e.a=t,e.b=i,e.c=s,e.d=a,e.e=n,e.f=l,e);class S{constructor(e=1,t=0,i=0,s=1,a=0,n=0){v(this,e,t,i,s,a,n)}inverse(){let{a:e,b:t,c:i,d:s,e:a,f:n}=this,l=e*s-t*i||1e-10;return v(this,s/l,-t/l,-i/l,e/l,(i*n-s*a)/l,-(e*n-t*a)/l)}multiply(e){let{a:t,b:i,c:s,d:a,e:n,f:l}=this,r=e.a,o=e.c,h=e.b,p=e.d,d=e.e,c=e.f;return v(this,r*t+h*s,r*i+h*a,o*t+p*s,o*i+p*a,n+d*t+c*s,l+d*i+c*a)}clone(){return new S(this.a,this.b,this.c,this.d,this.e,this.f)}equals(e){let{a:t,b:i,c:s,d:a,e:n,f:l}=this;return t===e.a&&i===e.b&&s===e.c&&a===e.d&&n===e.e&&l===e.f}apply(e,t={}){let{x:i,y:s}=e,{a:a,b:n,c:l,d:r,e:o,f:h}=this;return t.x=i*a+s*l+o||0,t.y=i*n+s*r+h||0,t}}function C(t,i,a,n){if(!t||!t.parentNode||(e||d(t)).documentElement===t)return new S;let l=(e=>{let t,i;for(;e&&e!==s;)i=e._gsap,i&&i.uncache&&i.get(e,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),t?t.push(i):t=[i]),e=e.parentNode;return t})(t),r=g(t)?c:m,o=w(t,a),h=r[0].getBoundingClientRect(),p=r[1].getBoundingClientRect(),b=r[2].getBoundingClientRect(),x=o.parentNode,v=!n&&y(t),C=new S((p.left-h.left)/100,(p.top-h.top)/100,(b.left-h.left)/100,(b.top-h.top)/100,h.left+(v?0:u()),h.top+(v?0:f()));if(x.removeChild(o),l)for(h=l.length;h--;)p=l[h],p.scaleX=p.scaleY=0,p.renderTransform(1,p);return i?C.inverse():C}let k,V,E,L,_,B,I,P,N=1,T=(e,t)=>e.actions.forEach(e=>e.vars[t]&&e.vars[t](e)),X={},O=180/Math.PI,M=Math.PI/180,Y={},A={},R={},z=e=>"string"==typeof e?e.split(" ").join("").split(","):e,D=z("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),F=z("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),H=e=>k(e)[0]||console.warn("Element not found:",e),W=e=>Math.round(1e4*e)/1e4||0,q=(e,t,i)=>e.forEach(e=>e.classList[i](t)),j={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},J={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},U=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),Z=(e,t)=>{let i,s={};for(i in e)t[i]||(s[i]=e[i]);return s},$={},G=e=>{let t=$[e]=z(e);return R[e]=t.concat(F),t},K=(e,t,i=0)=>{let s=e.parentNode,a=1e3*10**i*(t?-1:1),n=t?900*-a:0;for(;e;)n+=a,e=e.previousSibling;return s?n+K(s,t,i+1):n},Q=(e,t,i)=>(e.forEach(e=>e.d=K(i?e.element:e.t,t)),e.sort((e,t)=>e.d-t.d),e),ee=(e,t)=>{let i,s,a=e.element.style,n=e.css=e.css||[],l=t.length;for(;l--;)i=t[l],s=a[i]||a.getPropertyValue(i),n.push(s?i:A[i]||(A[i]=U(i)),s);return a},te=e=>{let t=e.css,i=e.element.style,s=0;for(e.cache.uncache=1;s<t.length;s+=2)t[s+1]?i[t[s]]=t[s+1]:i.removeProperty(t[s]);!t[t.indexOf("transform")+1]&&i.translate&&(i.removeProperty("translate"),i.removeProperty("scale"),i.removeProperty("rotate"))},ie=(e,t)=>{e.forEach(e=>e.a.cache.uncache=1),t||e.finalStates.forEach(te)},se="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),ae=(e,t,i)=>{let s,a,n,{element:l,width:r,height:o,uncache:h,getProp:p}=e,d=l.style,c=4;if("object"!=typeof t&&(t=e),E&&1!==i)return E._abs.push({t:l,b:e,a:e,sd:0}),E._final.push(()=>(e.cache.uncache=1)&&te(e)),l;for(a="none"===p("display"),e.isVisible&&!a||(a&&(ee(e,["display"]).display=t.display),e.matrix=t.matrix,e.width=r=e.width||t.width,e.height=o=e.height||t.height),ee(e,se),n=window.getComputedStyle(l);c--;)d[se[c]]=n[se[c]];if(d.gridArea="1 / 1 / 1 / 1",d.transition="none",d.position="absolute",d.width=r+"px",d.height=o+"px",d.top||(d.top="0px"),d.left||(d.left="0px"),h)s=new Se(l);else if(s=Z(e,Y),s.position="absolute",e.simple){let e=l.getBoundingClientRect();s.matrix=new S(1,0,0,1,e.left+u(),e.top+f())}else s.matrix=C(l,!1,!1,!0);return s=de(s,e,!0),e.x=B(s.x,.01),e.y=B(s.y,.01),l},ne=(e,t)=>(!0!==t&&(t=k(t),e=e.filter(e=>{if(-1!==t.indexOf((e.sd<0?e.b:e.a).element))return!0;e.t._gsap.renderTransform(1),e.b.isVisible&&(e.t.style.width=e.b.width+"px",e.t.style.height=e.b.height+"px")})),e),le=e=>Q(e,!0).forEach(e=>(e.a.isVisible||e.b.isVisible)&&ae(e.sd<0?e.b:e.a,e.b,1)),re=(e,t,i,s)=>e instanceof Se?e:e instanceof ve?((e,t)=>t&&e.idLookup[re(t).id]||e.elementStates[0])(e,s):new Se("string"==typeof e?H(e)||console.warn(e+" not found"):e,t,i),oe=(e,t)=>{let i,s=e.style||e;for(i in t)s[i]=t[i]},he=e=>e.map(e=>e.element),pe=(e,t,i)=>e&&t.length&&i.add(e(he(t),i,new ve(t,0,!0)),0),de=(e,t,i,s,a,n)=>{let l,r,o,h,p,d,c,{element:m,cache:f,parent:u,x:g,y:y}=e,{width:b,height:x,scaleX:w,scaleY:v,rotation:S,bounds:E}=t,L=n&&I&&I(m,"transform"),_=e,{e:P,f:N}=t.matrix,T=e.bounds.width!==E.width||e.bounds.height!==E.height||e.scaleX!==w||e.scaleY!==v||e.rotation!==S,X=!T&&e.simple&&t.simple&&!a;return X||!u?(w=v=1,S=l=0):(p=(e=>{let t=e._gsap||V.core.getCache(e);return t.gmCache===V.ticker.frame?t.gMatrix:(t.gmCache=V.ticker.frame,t.gMatrix=C(e,!0,!1,!0))})(u),d=p.clone().multiply(t.ctm?t.matrix.clone().multiply(t.ctm):t.matrix),S=W(Math.atan2(d.b,d.a)*O),l=W(Math.atan2(d.c,d.d)*O+S)%360,w=Math.sqrt(d.a**2+d.b**2),v=Math.sqrt(d.c**2+d.d**2)*Math.cos(l*M),a&&(a=k(a)[0],h=V.getProperty(a),c=a.getBBox&&"function"==typeof a.getBBox&&a.getBBox(),_={scaleX:h("scaleX"),scaleY:h("scaleY"),width:c?c.width:Math.ceil(parseFloat(h("width","px"))),height:c?c.height:parseFloat(h("height","px"))}),f.rotation=S+"deg",f.skewX=l+"deg"),i?(w*=b!==_.width&&_.width?b/_.width:1,v*=x!==_.height&&_.height?x/_.height:1,f.scaleX=w,f.scaleY=v):(b=B(b*w/_.scaleX,0),x=B(x*v/_.scaleY,0),m.style.width=b+"px",m.style.height=x+"px"),s&&oe(m,t.props),X||!u?(g+=P-e.matrix.e,y+=N-e.matrix.f):T||u!==t.parent?(f.renderTransform(1,f),d=C(a||m,!1,!1,!0),r=p.apply({x:d.e,y:d.f}),o=p.apply({x:P,y:N}),g+=o.x-r.x,y+=o.y-r.y):(p.e=p.f=0,o=p.apply({x:P-e.matrix.e,y:N-e.matrix.f}),g+=o.x,y+=o.y),g=B(g,.02),y=B(y,.02),!n||n instanceof Se?(f.x=g+"px",f.y=y+"px",f.renderTransform(1,f)):L&&L.revert(),n&&(n.x=g,n.y=y,n.rotation=S,n.skewX=l,i?(n.scaleX=w,n.scaleY=v):(n.width=b,n.height=x)),n||f},ce=(e,t)=>e instanceof ve?e:new ve(e,t),me=(e,t,i)=>{let s=e.idLookup[i],a=e.alt[i];return!a.isVisible||(t.getElementState(a.element)||a).isVisible&&s.isVisible?s:a},fe=[],ue="width,height,overflowX,overflowY".split(","),ge=e=>{if(e!==P){let t=_.style,i=_.clientWidth===window.outerWidth,s=_.clientHeight===window.outerHeight,a=4;if(e&&(i||s)){for(;a--;)fe[a]=t[ue[a]];i&&(t.width=_.clientWidth+"px",t.overflowY="hidden"),s&&(t.height=_.clientHeight+"px",t.overflowX="hidden"),P=e}else if(P){for(;a--;)fe[a]?t[ue[a]]=fe[a]:t.removeProperty(U(ue[a]));P=e}}},ye=(e,t,i,s)=>{e instanceof ve&&t instanceof ve||console.warn("Not a valid state object."),i=i||{};let a,n,l,r,o,h,p,d,c,m,f,u,g,y,{clearProps:b,onEnter:x,onLeave:w,absolute:v,absoluteOnLeave:S,custom:k,delay:L,paused:_,repeat:B,repeatDelay:I,yoyo:P,toggleClass:N,nested:T,zIndex:X,scale:O,fade:M,stagger:Y,spin:A,prune:z}=i,H=("props"in i?i:e).props,W=Z(i,j),U=V.timeline({delay:L,paused:_,repeat:B,repeatDelay:I,yoyo:P,data:"isFlip"}),K=W,te=[],se=[],ae=[],re=[],oe=!0===A?1:A||0,he="function"==typeof A?A:()=>oe,ce=e.interrupted||t.interrupted,fe=U[1!==s?"to":"from"];for(n in t.idLookup)f=t.alt[n]?me(t,e,n):t.idLookup[n],o=f.element,m=e.idLookup[n],e.alt[n]&&o===m.element&&(e.alt[n].isVisible||!f.isVisible)&&(m=e.alt[n]),m?(h={t:o,b:m,a:f,sd:m.element===o?0:f.isVisible?1:-1},ae.push(h),h.sd&&(h.sd<0&&(h.b=f,h.a=m),ce&&ee(h.b,H?R[H]:F),M&&ae.push(h.swap={t:m.element,b:h.b,a:h.a,sd:-h.sd,swap:h})),o._flip=m.element._flip=E?E.timeline:U):f.isVisible&&(ae.push({t:o,b:Z(f,{isVisible:1}),a:f,sd:0,entering:1}),o._flip=E?E.timeline:U);H&&($[H]||G(H)).forEach(e=>W[e]=t=>ae[t].a.props[e]),ae.finalStates=c=[],u=()=>{for(Q(ae),ge(!0),r=0;r<ae.length;r++)h=ae[r],g=h.a,y=h.b,!z||g.isDifferent(y)||h.entering?(o=h.t,T&&!(h.sd<0)&&r&&(g.matrix=C(o,!1,!1,!0)),y.isVisible&&g.isVisible?(h.sd<0?(p=new Se(o,H,e.simple),de(p,g,O,0,0,p),p.matrix=C(o,!1,!1,!0),p.css=h.b.css,h.a=g=p,M&&(o.style.opacity=ce?y.opacity:g.opacity),Y&&re.push(o)):h.sd>0&&M&&(o.style.opacity=ce?g.opacity-y.opacity:"0"),de(g,y,O,H)):y.isVisible!==g.isVisible&&(y.isVisible?g.isVisible||(y.css=g.css,se.push(y),ae.splice(r--,1),v&&T&&de(g,y,O,H)):(g.isVisible&&te.push(g),ae.splice(r--,1))),O||(o.style.maxWidth=Math.max(g.width,y.width)+"px",o.style.maxHeight=Math.max(g.height,y.height)+"px",o.style.minWidth=Math.min(g.width,y.width)+"px",o.style.minHeight=Math.min(g.height,y.height)+"px"),T&&N&&o.classList.add(N)):ae.splice(r--,1),c.push(g);let t;if(N&&(t=c.map(e=>e.element),T&&t.forEach(e=>e.classList.remove(N))),ge(!1),O?(W.scaleX=e=>ae[e].a.scaleX,W.scaleY=e=>ae[e].a.scaleY):(W.width=e=>ae[e].a.width+"px",W.height=e=>ae[e].a.height+"px",W.autoRound=i.autoRound||!1),W.x=e=>ae[e].a.x+"px",W.y=e=>ae[e].a.y+"px",W.rotation=e=>ae[e].a.rotation+(A?360*he(e,d[e],d):0),W.skewX=e=>ae[e].a.skewX,d=ae.map(e=>e.t),(X||0===X)&&(W.modifiers={zIndex:()=>X},W.zIndex=X,W.immediateRender=!1!==i.immediateRender),M&&(W.opacity=e=>ae[e].sd<0?0:ae[e].sd>0?ae[e].a.opacity:"+=0"),re.length){Y=V.utils.distribute(Y);let e=d.slice(re.length);W.stagger=(t,i)=>Y(~re.indexOf(i)?d.indexOf(ae[t].swap.t):t,i,e)}if(D.forEach(e=>i[e]&&U.eventCallback(e,i[e],i[e+"Params"])),k&&d.length)for(n in K=Z(W,j),"scale"in k&&(k.scaleX=k.scaleY=k.scale,delete k.scale),k)a=Z(k[n],J),a[n]=W[n],!("duration"in a)&&"duration"in W&&(a.duration=W.duration),a.stagger=W.stagger,fe.call(U,d,a,0),delete K[n];(d.length||se.length||te.length)&&(N&&U.add(()=>q(t,N,U._zTime<0?"remove":"add"),0)&&!_&&q(t,N,"add"),d.length&&fe.call(U,d,K,0)),pe(x,te,U),pe(w,se,U);let s=E&&E.timeline;s&&(s.add(U,0),E._final.push(()=>ie(ae,!b))),l=U.duration(),U.call(()=>{let e=U.time()>=l;e&&!s&&ie(ae,!b),N&&q(t,N,e?"remove":"add")})},S&&(v=ae.filter(e=>!e.sd&&!e.a.isVisible&&e.b.isVisible).map(e=>e.a.element)),E?(v&&E._abs.push(...ne(ae,v)),E._run.push(u)):(v&&le(ne(ae,v)),u());let ue=E?E.timeline:U;return ue.revert=()=>xe(ue,1,1),ue},be=e=>{e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(be)},xe=(e,t,i)=>{if(e&&e.progress()<1&&(!e.paused()||i))return t&&(be(e),t<2&&e.progress(1),e.kill()),!0},we=e=>{let t,i=e.idLookup={},s=e.alt={},a=e.elementStates,n=a.length;for(;n--;)t=a[n],i[t.id]?s[t.id]=t:i[t.id]=t};class ve{constructor(e,t,i){if(this.props=t&&t.props,this.simple=!(!t||!t.simple),i)this.targets=he(e),this.elementStates=e,we(this);else{this.targets=k(e);let i=t&&(!1===t.kill||t.batch&&!t.kill);E&&!i&&E._kill.push(this),this.update(i||!!E)}}update(e){return this.elementStates=this.targets.map(e=>new Se(e,this.props,this.simple)),we(this),this.interrupt(e),this.recordInlineStyles(),this}clear(){return this.targets.length=this.elementStates.length=0,we(this),this}fit(e,t,i){let s,a,n=Q(this.elementStates.slice(0),!1,!0),l=(e||this).idLookup,r=0;for(;r<n.length;r++)s=n[r],i&&(s.matrix=C(s.element,!1,!1,!0)),a=l[s.id],a&&de(s,a,t,!0,0,s),s.matrix=C(s.element,!1,!1,!0);return this}getProperty(e,t){let i=this.getElementState(e)||Y;return(t in i?i:i.props||Y)[t]}add(e){let t,i,s,a=e.targets.length,n=this.idLookup,l=this.alt;for(;a--;)i=e.elementStates[a],s=n[i.id],s&&(i.element===s.element||l[i.id]&&l[i.id].element===i.element)?(t=this.elementStates.indexOf(i.element===s.element?s:l[i.id]),this.targets.splice(t,1,e.targets[a]),this.elementStates.splice(t,1,i)):(this.targets.push(e.targets[a]),this.elementStates.push(i));return e.interrupted&&(this.interrupted=!0),e.simple||(this.simple=!1),we(this),this}compare(e){let t,i,s,a,n,l,r,o,h=e.idLookup,p=this.idLookup,d=[],c=[],m=[],f=[],u=[],g=e.alt,y=this.alt,b=(e,t,i)=>(e.isVisible!==t.isVisible?e.isVisible?m:f:e.isVisible?c:d).push(i)&&u.push(i),x=(e,t,i)=>u.indexOf(i)<0&&b(e,t,i);for(s in h)n=g[s],l=y[s],t=n?me(e,this,s):h[s],a=t.element,i=p[s],l?(o=i.isVisible||!l.isVisible&&a===i.element?i:l,r=!n||t.isVisible||n.isVisible||o.element!==n.element?t:n,r.isVisible&&o.isVisible&&r.element!==o.element?((r.isDifferent(o)?c:d).push(r.element,o.element),u.push(r.element,o.element)):b(r,o,r.element),n&&r.element===n.element&&(n=h[s]),x(r.element!==i.element&&n?n:r,i,i.element),x(n&&n.element===l.element?n:r,l,l.element),n&&x(n,l.element===n.element?l:i,n.element)):(i?i.isDifferent(t)?b(t,i,a):d.push(a):m.push(a),n&&x(n,i,n.element));for(s in p)h[s]||(f.push(p[s].element),y[s]&&f.push(y[s].element));return{changed:c,unchanged:d,enter:m,leave:f}}recordInlineStyles(){let e=R[this.props]||F,t=this.elementStates.length;for(;t--;)ee(this.elementStates[t],e)}interrupt(e){let t=[];this.targets.forEach(i=>{let s=i._flip,a=xe(s,e?0:1);e&&a&&t.indexOf(s)<0&&s.add(()=>this.updateVisibility()),a&&t.push(s)}),!e&&t.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!t.length)}updateVisibility(){this.elementStates.forEach(e=>{let t=e.element.getBoundingClientRect();e.isVisible=!!(t.width||t.height||t.top||t.left),e.uncache=1})}getElementState(e){return this.elementStates[this.targets.indexOf(H(e))]}makeAbsolute(){return Q(this.elementStates.slice(0),!0,!0).map(ae)}}class Se{constructor(e,t,i){this.element=e,this.update(t,i)}isDifferent(e){let t=this.bounds,i=e.bounds;return t.top!==i.top||t.left!==i.left||t.width!==i.width||t.height!==i.height||!this.matrix.equals(e.matrix)||this.opacity!==e.opacity||this.props&&e.props&&JSON.stringify(this.props)!==JSON.stringify(e.props)}update(e,t){let i=this.element,s=V.getProperty(i),a=V.core.getCache(i),n=i.getBoundingClientRect(),l=i.getBBox&&"function"==typeof i.getBBox&&"svg"!==i.nodeName.toLowerCase()&&i.getBBox(),r=t?new S(1,0,0,1,n.left+u(),n.top+f()):C(i,!1,!1,!0);this.getProp=s,this.element=i,this.id=(e=>{let t=e.getAttribute("data-flip-id");return t||e.setAttribute("data-flip-id",t="auto-"+N++),t})(i),this.matrix=r,this.cache=a,this.bounds=n,this.isVisible=!!(n.width||n.height||n.left||n.top),this.display=s("display"),this.position=s("position"),this.parent=i.parentNode,this.x=s("x"),this.y=s("y"),this.scaleX=a.scaleX,this.scaleY=a.scaleY,this.rotation=s("rotation"),this.skewX=s("skewX"),this.opacity=s("opacity"),this.width=l?l.width:B(s("width","px"),.04),this.height=l?l.height:B(s("height","px"),.04),e&&((e,t)=>{let i=V.getProperty(e.element,null,"native"),s=e.props={},a=t.length;for(;a--;)s[t[a]]=(i(t[a])+"").trim();s.zIndex&&(s.zIndex=parseFloat(s.zIndex)||0)})(this,$[e]||G(e)),this.ctm=i.getCTM&&"svg"===i.nodeName.toLowerCase()&&x(i).inverse(),this.simple=t||1===W(r.a)&&!W(r.b)&&!W(r.c)&&1===W(r.d),this.uncache=0}}class Ce{constructor(e,t){this.vars=e,this.batch=t,this.states=[],this.timeline=t.timeline}getStateById(e){let t=this.states.length;for(;t--;)if(this.states[t].idLookup[e])return this.states[t]}kill(){this.batch.remove(this)}}class ke{constructor(e){this.id=e,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new ve,this.timeline=V.timeline()}add(e){let t=this.actions.filter(t=>t.vars===e);return t.length?t[0]:(t=new Ce("function"==typeof e?{animate:e}:e,this),this.actions.push(t),t)}remove(e){let t=this.actions.indexOf(e);return t>=0&&this.actions.splice(t,1),this}getState(e){let t=E,i=L;return E=this,this.state.clear(),this._kill.length=0,this.actions.forEach(t=>{t.vars.getState&&(t.states.length=0,L=t,t.state=t.vars.getState(t)),e&&t.states.forEach(e=>this.state.add(e))}),L=i,E=t,this.killConflicts(),this}animate(){let e,t,i=E,s=this.timeline,a=this.actions.length;for(E=this,s.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(e=>{e.vars.animate&&e.vars.animate(e);let t,i,s=e.vars.onEnter,a=e.vars.onLeave,n=e.targets;n&&n.length&&(s||a)&&(t=new ve,e.states.forEach(e=>t.add(e)),i=t.compare(Ve.getState(n)),i.enter.length&&s&&s(i.enter),i.leave.length&&a&&a(i.leave))}),le(this._abs),this._run.forEach(e=>e()),t=s.duration(),e=this._final.slice(0),s.add(()=>{t<=s.time()&&(e.forEach(e=>e()),T(this,"onComplete"))}),E=i;a--;)this.actions[a].vars.once&&this.actions[a].kill();return T(this,"onStart"),s.restart(),this}loadState(e){e||(e=()=>0);let t=[];return this.actions.forEach(i=>{if(i.vars.loadState){let s,a=n=>{n&&(i.targets=n),s=t.indexOf(a),~s&&(t.splice(s,1),t.length||e())};t.push(a),i.vars.loadState(a)}}),t.length||e(),this}setState(){return this.actions.forEach(e=>e.targets=e.vars.setState&&e.vars.setState(e)),this}killConflicts(e){return this.state.interrupt(e),this._kill.forEach(t=>t.interrupt(e)),this}run(e,t){return this!==E&&(e||this.getState(t),this.loadState(()=>{this._killed||(this.setState(),this.animate())})),this}clear(e){this.state.clear(),e||(this.actions.length=0)}getStateById(e){let t,i=this.actions.length;for(;i--;)if(t=this.actions[i].getStateById(e),t)return t;return this.state.idLookup[e]&&this.state}kill(){this._killed=1,this.clear(),delete X[this.id]}}class Ve{static getState(e,t){let i=ce(e,t);return L&&L.states.push(i),t&&t.batch&&Ve.batch(t.batch).state.add(i),i}static from(e,t){return"clearProps"in(t=t||{})||(t.clearProps=!0),ye(e,ce(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,-1)}static to(e,t){return ye(e,ce(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,1)}static fromTo(e,t,i){return ye(e,t,i)}static fit(e,t,i){let s=i?Z(i,J):{},{absolute:a,scale:n,getVars:l,props:r,runBackwards:o,onComplete:h,simple:p}=i||s,d=i&&i.fitChild&&H(i.fitChild),c=re(t,r,p,e),m=re(e,0,p,c),f=r?R[r]:F,u=V.context();return r&&oe(s,c.props),ee(m,f),o&&("immediateRender"in s||(s.immediateRender=!0),s.onComplete=function(){te(m),h&&h.apply(this,arguments)}),a&&ae(m,c),s=de(m,c,n||d,r,d,s.duration||l?s:0),u&&!l&&u.add(()=>()=>te(m)),l?s:s.duration?V.to(m.element,s):null}static makeAbsolute(e,t){return(e instanceof ve?e:new ve(e,t)).makeAbsolute()}static batch(e){return e||(e="default"),X[e]||(X[e]=new ke(e))}static killFlipsOf(e,t){(e instanceof ve?e.targets:k(e)).forEach(e=>e&&xe(e._flip,!1!==t?1:2))}static isFlipping(e){let t=Ve.getByTarget(e);return!!t&&t.isActive()}static getByTarget(e){return(H(e)||Y)._flip}static getElementState(e,t){return new Se(H(e),t)}static convertCoordinates(e,t,i){let s=C(t,!0,!0).multiply(C(e));return i?s.apply(i):s}static register(e){if(_="undefined"!=typeof document&&document.body,_){V=e,d(_),k=V.utils.toArray,I=V.core.getStyleSaver;let t=V.utils.snap(.1);B=(e,i)=>t(parseFloat(e)+i)}}}Ve.version="3.12.5","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(Ve);export default Ve;export{Ve as Flip}; |
/*! | ||
* InertiaPlugin 3.12.4 | ||
* InertiaPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
let t,e,i,r,n,o,s,a,l,c=()=>t||"undefined"!=typeof window&&(t=window.gsap),g={},p=t=>l(t).id,u=t=>g[p("string"==typeof t?i(t)[0]:t)],d=t=>{let e,i=n;if(t-s>=.05)for(a=s,s=t;i;)e=i.g(i.t,i.p),(e!==i.v1||t-i.t1>.2)&&(i.v2=i.v1,i.v1=e,i.t2=i.t1,i.t1=t),i=i._next},h={deg:360,rad:2*Math.PI},f=()=>{t=c(),t&&(i=t.utils.toArray,r=t.utils.getUnit,l=t.core.getCache,o=t.ticker,e=1)};class v{constructor(t,e,i,n){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=h[i||r(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=o.time,n&&(this._next=n,n._prev=this)}}class m{constructor(t,r){e||f(),this.target=i(t)[0],g[p(this.target)]=this,this._props={},r&&this.add(r)}static register(e){t=e,f()}get(t,e){let i,r,n,s=this._props[t]||console.warn("Not tracking "+t+" velocity.");return i=parseFloat(e?s.v1:s.g(s.t,s.p)),r=i-parseFloat(s.v2),n=s.rCap,n&&(r%=n,r!==r%(n/2)&&(r=r<0?r+n:r-n)),a=r/((e?s.t1:o.time)-s.t2),Math.round(1e4*a)/1e4;var a}getAll(){let t,e={},i=this._props;for(t in i)e[t]=this.get(t);return e}isTracking(t){return t in this._props}add(t,e){t in this._props||(n||(o.add(d),s=a=o.time),n=this._props[t]=new v(this.target,t,e,n))}remove(t){let e,i,r=this._props[t];r&&(e=r._prev,i=r._next,e&&(e._next=i),i?i._prev=e:n===r&&(o.remove(d),n=0),delete this._props[t])}kill(t){for(let t in this._props)this.remove(t);t||delete g[p(this.target)]}static track(t,r,n){e||f();let o,s,a=[],l=i(t),c=r.split(","),g=(n||"").split(","),p=l.length;for(;p--;){for(o=u(l[p])||new m(l[p]),s=c.length;s--;)o.add(c[s],g[s]||g[0]);a.push(o)}return a}static untrack(t,e){let r=(e||"").split(",");i(t).forEach(t=>{let e=u(t);e&&(r.length?r.forEach(t=>e.remove(t)):e.kill(1))})}static isTracking(t,e){let i=u(t);return i&&i.isTracking(e)}static getVelocity(t,e){let i=u(t);return i&&i.isTracking(e)?i.get(e):console.warn("Not tracking velocity of "+e)}}m.getByTarget=u,c()&&t.registerPlugin(m);let y,w,_,k,x,T,F,P,N,b,M,O,E,A,C=m.getByTarget,S=()=>y||"undefined"!=typeof window&&(y=window.gsap)&&y.registerPlugin&&y,j=t=>"number"==typeof t,I=t=>"object"==typeof t,B=t=>"function"==typeof t,R=function(){return String.fromCharCode.apply(null,arguments)},W=R(103,114,101,101,110,115,111,99,107,46,99,111,109),L=R(103,115,97,112,46,99,111,109),U=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,V=function(t){var e="undefined"!=typeof window,i=0===(e?window.location.href:"").indexOf(R(102,105,108,101,58,47,47))||-1!==t.indexOf(R(108,111,99,97,108,104,111,115,116))||U.test(t)||(e?window.location.hostname:"").split(".").pop()===R(108,111,99,97,108),r=[W,L,R(99,111,100,101,112,101,110,46,105,111),R(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),R(99,111,100,101,112,101,110,46,100,101,118),R(99,111,100,101,112,101,110,46,97,112,112),R(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),R(112,101,110,115,46,99,108,111,117,100),R(99,115,115,45,116,114,105,99,107,115,46,99,111,109),R(99,100,112,110,46,105,111),R(112,101,110,115,46,105,111),R(103,97,110,110,111,110,46,116,118),R(99,111,100,101,99,97,110,121,111,110,46,110,101,116),R(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),R(99,101,114,101,98,114,97,120,46,99,111,46,117,107),R(116,121,109,112,97,110,117,115,46,110,101,116),R(116,119,101,101,110,109,97,120,46,99,111,109),R(112,108,110,107,114,46,99,111),R(104,111,116,106,97,114,46,99,111,109),R(119,101,98,112,97,99,107,98,105,110,46,99,111,109),R(97,114,99,104,105,118,101,46,111,114,103),R(99,111,100,101,115,97,110,100,98,111,120,46,105,111),R(99,115,98,46,97,112,112),R(115,116,97,99,107,98,108,105,116,122,46,99,111,109),R(115,116,97,99,107,98,108,105,116,122,46,105,111),R(99,111,100,105,101,114,46,105,111),R(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),R(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),R(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),R(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),R(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),R(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){if(e)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",n);else{document.removeEventListener("readystatechange",n);var t="object"==typeof y?y:e&&window.gsap;e&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(R(37,99,87,97,114,110,105,110,103),R(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(R(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"InertiaPlugin"+R(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(R(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),R(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},o=r.length;for(setTimeout(n,50);--o>-1;)if(-1!==t.indexOf(r[o]))return!0;return i||!setTimeout((function(){e&&(window.location.href=R(104,116,116,112,115,58,47,47)+W+R(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=InertiaPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),q=Array.isArray,$=t=>t,z=1e10,D=(t,e,i)=>{for(let r in e)r in t||r===i||(t[r]=e[r]);return t},G=t=>{let e,i,r={};for(e in t)r[e]=I(i=t[e])&&!q(i)?G(i):i;return r},H=(t,e,i,r,n)=>{let o,s,a,l,c=e.length,g=0,p=z;if(I(t)){for(;c--;){for(a in o=e[c],s=0,t)l=o[a]-t[a],s+=l*l;s<p&&(g=c,p=s)}if((n||z)<z&&n<Math.sqrt(p))return t}else for(;c--;)o=e[c],s=o-t,s<0&&(s=-s),s<p&&o>=r&&o<=i&&(g=c,p=s);return e[g]},J=(t,e,i,r,n,o,s)=>{if("auto"===t.end)return t;let a,l,c=t.end;if(i=isNaN(i)?z:i,r=isNaN(r)?-z:r,I(e)){if(a=e.calculated?e:(B(c)?c(e,s):H(e,c,i,r,o))||e,!e.calculated){for(l in a)e[l]=a[l];e.calculated=!0}a=a[n]}else a=B(c)?c(e,s):q(c)?H(e,c,i,r,o):parseFloat(c);return a>i?a=i:a<r&&(a=r),{max:a,min:a,unitFactor:t.unitFactor}},K=(t,e,i)=>isNaN(t[e])?i:+t[e],Q=(t,e)=>.05*e*t/b,X=(t,e,i)=>Math.abs((e-t)*b/i/.05),Y={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},Z=(t,e,i,r)=>{if(e.linkedProps){let n,o,s,a,l,c,g=e.linkedProps.split(","),p={};for(n=0;n<g.length;n++)o=g[n],s=e[o],s&&(j(s.velocity)?a=s.velocity:(l=l||C(t),a=l&&l.isTracking(o)?l.get(o):0),c=Math.abs(a/K(s,"resistance",r)),p[o]=parseFloat(i(t,o))+Q(a,c));return p}},tt=()=>{y=S(),y&&(_=y.parseEase,k=y.utils.toArray,F=y.utils.getUnit,N=y.core.getCache,M=y.utils.clamp,E=y.core.getStyleSaver,A=y.core.reverting||function(){},x=_("power3"),b=x(.05),P=y.core.PropTween,y.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),T=y.config(),y.registerPlugin(m),w=1)};const et={version:"3.12.4",name:"inertia",register(t){y=t,tt()},init(t,e,i,r,n){w||tt();let o=C(t);if("auto"===e){if(!o)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=o.getAll()}this.styles=E&&"object"==typeof t.style&&E(t),this.target=t,this.tween=i,O=e;let s,a,l,c,g,p,u,d,h,f=t._gsap,v=f.get,m=e.duration,y=I(m),_=e.preventOvershoot||y&&0===m.overshoot,x=K(e,"resistance",T.resistance),b=j(m)?m:((t,e,i=10,r=.2,n=1,o=0)=>{if("string"==typeof t&&(t=k(t)[0]),!t)return 0;let s,a,l,c,g,p,u,d,h,f,v=0,m=z,y=e.inertia||e,w=N(t).get,_=K(y,"resistance",T.resistance);for(s in f=Z(t,y,w,_),y)Y[s]||(a=y[s],I(a)||(d=d||C(t),d&&d.isTracking(s)?a=j(a)?{velocity:a}:{velocity:d.get(s)}:(c=+a||0,l=Math.abs(c/_))),I(a)&&(j(a.velocity)?c=a.velocity:(d=d||C(t),c=d&&d.isTracking(s)?d.get(s):0),l=M(r,i,Math.abs(c/K(a,"resistance",_))),g=parseFloat(w(t,s))||0,p=g+Q(c,l),"end"in a&&(a=J(a,f&&s in f?f:p,a.max,a.min,s,y.radius,c),o&&(O===e&&(O=y=G(e)),y[s]=D(a,y[s],"end"))),"max"in a&&p>+a.max+1e-10?(h=a.unitFactor||T.unitFactors[s]||1,u=g>a.max&&a.min!==a.max||c*h>-15&&c*h<45?r+.1*(i-r):X(g,a.max,c),u+n<m&&(m=u+n)):"min"in a&&p<+a.min-1e-10&&(h=a.unitFactor||T.unitFactors[s]||1,u=g<a.min&&a.min!==a.max||c*h>-45&&c*h<15?r+.1*(i-r):X(g,a.min,c),u+n<m&&(m=u+n)),u>v&&(v=u)),l>v&&(v=l));return v>m&&(v=m),v>i?i:v<r?r:v})(t,e,y&&m.max||10,y&&m.min||.2,y&&"overshoot"in m?+m.overshoot:_?0:1,!0);for(s in e=O,O=0,h=Z(t,e,v,x),e)Y[s]||(a=e[s],B(a)&&(a=a(r,t,n)),j(a)?g=a:I(a)&&!isNaN(a.velocity)?g=+a.velocity:o&&o.isTracking(s)?g=o.get(s):console.warn("ERROR: No velocity was defined for "+t+" property: "+s),p=Q(g,b),d=0,l=v(t,s),c=F(l),l=parseFloat(l),I(a)&&(u=l+p,"end"in a&&(a=J(a,h&&s in h?h:u,a.max,a.min,s,e.radius,g)),"max"in a&&+a.max<u?_||a.preventOvershoot?p=a.max-l:d=a.max-l-p:"min"in a&&+a.min>u&&(_||a.preventOvershoot?p=a.min-l:d=a.min-l-p)),this._props.push(s),this.styles&&this.styles.save(s),this._pt=new P(this._pt,t,s,l,0,$,0,f.set(t,s,this)),this._pt.u=c||0,this._pt.c1=p,this._pt.c2=d);return i.duration(b),V},render(t,e){let i=e._pt;if((t=x(e.tween._time/e.tween._dur))||!A())for(;i;)i.set(i.t,i.p,(r=i.s+i.c1*t+i.c2*t*t,Math.round(1e4*r)/1e4+i.u),i.d,t),i=i._next;else e.styles.revert();var r}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(t=>et[t]=m[t]),S()&&y.registerPlugin(et);export default et;export{et as InertiaPlugin,m as VelocityTracker}; | ||
let t,e,i,r,n,o,s,a,l,c=()=>t||"undefined"!=typeof window&&(t=window.gsap),g={},p=t=>l(t).id,u=t=>g[p("string"==typeof t?i(t)[0]:t)],d=t=>{let e,i=n;if(t-s>=.05)for(a=s,s=t;i;)e=i.g(i.t,i.p),(e!==i.v1||t-i.t1>.2)&&(i.v2=i.v1,i.v1=e,i.t2=i.t1,i.t1=t),i=i._next},h={deg:360,rad:2*Math.PI},f=()=>{t=c(),t&&(i=t.utils.toArray,r=t.utils.getUnit,l=t.core.getCache,o=t.ticker,e=1)};class v{constructor(t,e,i,n){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=h[i||r(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=o.time,n&&(this._next=n,n._prev=this)}}class m{constructor(t,r){e||f(),this.target=i(t)[0],g[p(this.target)]=this,this._props={},r&&this.add(r)}static register(e){t=e,f()}get(t,e){let i,r,n,s=this._props[t]||console.warn("Not tracking "+t+" velocity.");return i=parseFloat(e?s.v1:s.g(s.t,s.p)),r=i-parseFloat(s.v2),n=s.rCap,n&&(r%=n,r!==r%(n/2)&&(r=r<0?r+n:r-n)),a=r/((e?s.t1:o.time)-s.t2),Math.round(1e4*a)/1e4;var a}getAll(){let t,e={},i=this._props;for(t in i)e[t]=this.get(t);return e}isTracking(t){return t in this._props}add(t,e){t in this._props||(n||(o.add(d),s=a=o.time),n=this._props[t]=new v(this.target,t,e,n))}remove(t){let e,i,r=this._props[t];r&&(e=r._prev,i=r._next,e&&(e._next=i),i?i._prev=e:n===r&&(o.remove(d),n=0),delete this._props[t])}kill(t){for(let t in this._props)this.remove(t);t||delete g[p(this.target)]}static track(t,r,n){e||f();let o,s,a=[],l=i(t),c=r.split(","),g=(n||"").split(","),p=l.length;for(;p--;){for(o=u(l[p])||new m(l[p]),s=c.length;s--;)o.add(c[s],g[s]||g[0]);a.push(o)}return a}static untrack(t,e){let r=(e||"").split(",");i(t).forEach(t=>{let e=u(t);e&&(r.length?r.forEach(t=>e.remove(t)):e.kill(1))})}static isTracking(t,e){let i=u(t);return i&&i.isTracking(e)}static getVelocity(t,e){let i=u(t);return i&&i.isTracking(e)?i.get(e):console.warn("Not tracking velocity of "+e)}}m.getByTarget=u,c()&&t.registerPlugin(m);let y,w,_,k,x,T,F,P,N,b,M,O,E,A,C=m.getByTarget,S=()=>y||"undefined"!=typeof window&&(y=window.gsap)&&y.registerPlugin&&y,j=t=>"number"==typeof t,I=t=>"object"==typeof t,B=t=>"function"==typeof t,R=function(){return String.fromCharCode.apply(null,arguments)},W=R(103,114,101,101,110,115,111,99,107,46,99,111,109),L=R(103,115,97,112,46,99,111,109),U=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,V=function(t){var e="undefined"!=typeof window,i=0===(e?window.location.href:"").indexOf(R(102,105,108,101,58,47,47))||-1!==t.indexOf(R(108,111,99,97,108,104,111,115,116))||U.test(t)||(e?window.location.hostname:"").split(".").pop()===R(108,111,99,97,108),r=[W,L,R(99,111,100,101,112,101,110,46,105,111),R(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),R(99,111,100,101,112,101,110,46,100,101,118),R(99,111,100,101,112,101,110,46,97,112,112),R(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),R(112,101,110,115,46,99,108,111,117,100),R(99,115,115,45,116,114,105,99,107,115,46,99,111,109),R(99,100,112,110,46,105,111),R(112,101,110,115,46,105,111),R(103,97,110,110,111,110,46,116,118),R(99,111,100,101,99,97,110,121,111,110,46,110,101,116),R(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),R(99,101,114,101,98,114,97,120,46,99,111,46,117,107),R(116,121,109,112,97,110,117,115,46,110,101,116),R(116,119,101,101,110,109,97,120,46,99,111,109),R(112,108,110,107,114,46,99,111),R(104,111,116,106,97,114,46,99,111,109),R(119,101,98,112,97,99,107,98,105,110,46,99,111,109),R(97,114,99,104,105,118,101,46,111,114,103),R(99,111,100,101,115,97,110,100,98,111,120,46,105,111),R(99,115,98,46,97,112,112),R(115,116,97,99,107,98,108,105,116,122,46,99,111,109),R(115,116,97,99,107,98,108,105,116,122,46,105,111),R(99,111,100,105,101,114,46,105,111),R(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),R(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),R(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),R(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),R(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),R(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){if(e)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",n);else{document.removeEventListener("readystatechange",n);var t="object"==typeof y?y:e&&window.gsap;e&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(R(37,99,87,97,114,110,105,110,103),R(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(R(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"InertiaPlugin"+R(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(R(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),R(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},o=r.length;for(setTimeout(n,50);--o>-1;)if(-1!==t.indexOf(r[o]))return!0;return i||!setTimeout((function(){e&&(window.location.href=R(104,116,116,112,115,58,47,47)+W+R(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=InertiaPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),q=Array.isArray,$=t=>t,z=1e10,D=(t,e,i)=>{for(let r in e)r in t||r===i||(t[r]=e[r]);return t},G=t=>{let e,i,r={};for(e in t)r[e]=I(i=t[e])&&!q(i)?G(i):i;return r},H=(t,e,i,r,n)=>{let o,s,a,l,c=e.length,g=0,p=z;if(I(t)){for(;c--;){for(a in o=e[c],s=0,t)l=o[a]-t[a],s+=l*l;s<p&&(g=c,p=s)}if((n||z)<z&&n<Math.sqrt(p))return t}else for(;c--;)o=e[c],s=o-t,s<0&&(s=-s),s<p&&o>=r&&o<=i&&(g=c,p=s);return e[g]},J=(t,e,i,r,n,o,s)=>{if("auto"===t.end)return t;let a,l,c=t.end;if(i=isNaN(i)?z:i,r=isNaN(r)?-z:r,I(e)){if(a=e.calculated?e:(B(c)?c(e,s):H(e,c,i,r,o))||e,!e.calculated){for(l in a)e[l]=a[l];e.calculated=!0}a=a[n]}else a=B(c)?c(e,s):q(c)?H(e,c,i,r,o):parseFloat(c);return a>i?a=i:a<r&&(a=r),{max:a,min:a,unitFactor:t.unitFactor}},K=(t,e,i)=>isNaN(t[e])?i:+t[e],Q=(t,e)=>.05*e*t/b,X=(t,e,i)=>Math.abs((e-t)*b/i/.05),Y={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},Z=(t,e,i,r)=>{if(e.linkedProps){let n,o,s,a,l,c,g=e.linkedProps.split(","),p={};for(n=0;n<g.length;n++)o=g[n],s=e[o],s&&(j(s.velocity)?a=s.velocity:(l=l||C(t),a=l&&l.isTracking(o)?l.get(o):0),c=Math.abs(a/K(s,"resistance",r)),p[o]=parseFloat(i(t,o))+Q(a,c));return p}},tt=()=>{y=S(),y&&(_=y.parseEase,k=y.utils.toArray,F=y.utils.getUnit,N=y.core.getCache,M=y.utils.clamp,E=y.core.getStyleSaver,A=y.core.reverting||function(){},x=_("power3"),b=x(.05),P=y.core.PropTween,y.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),T=y.config(),y.registerPlugin(m),w=1)};const et={version:"3.12.5",name:"inertia",register(t){y=t,tt()},init(t,e,i,r,n){w||tt();let o=C(t);if("auto"===e){if(!o)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=o.getAll()}this.styles=E&&"object"==typeof t.style&&E(t),this.target=t,this.tween=i,O=e;let s,a,l,c,g,p,u,d,h,f=t._gsap,v=f.get,m=e.duration,y=I(m),_=e.preventOvershoot||y&&0===m.overshoot,x=K(e,"resistance",T.resistance),b=j(m)?m:((t,e,i=10,r=.2,n=1,o=0)=>{if("string"==typeof t&&(t=k(t)[0]),!t)return 0;let s,a,l,c,g,p,u,d,h,f,v=0,m=z,y=e.inertia||e,w=N(t).get,_=K(y,"resistance",T.resistance);for(s in f=Z(t,y,w,_),y)Y[s]||(a=y[s],I(a)||(d=d||C(t),d&&d.isTracking(s)?a=j(a)?{velocity:a}:{velocity:d.get(s)}:(c=+a||0,l=Math.abs(c/_))),I(a)&&(j(a.velocity)?c=a.velocity:(d=d||C(t),c=d&&d.isTracking(s)?d.get(s):0),l=M(r,i,Math.abs(c/K(a,"resistance",_))),g=parseFloat(w(t,s))||0,p=g+Q(c,l),"end"in a&&(a=J(a,f&&s in f?f:p,a.max,a.min,s,y.radius,c),o&&(O===e&&(O=y=G(e)),y[s]=D(a,y[s],"end"))),"max"in a&&p>+a.max+1e-10?(h=a.unitFactor||T.unitFactors[s]||1,u=g>a.max&&a.min!==a.max||c*h>-15&&c*h<45?r+.1*(i-r):X(g,a.max,c),u+n<m&&(m=u+n)):"min"in a&&p<+a.min-1e-10&&(h=a.unitFactor||T.unitFactors[s]||1,u=g<a.min&&a.min!==a.max||c*h>-45&&c*h<15?r+.1*(i-r):X(g,a.min,c),u+n<m&&(m=u+n)),u>v&&(v=u)),l>v&&(v=l));return v>m&&(v=m),v>i?i:v<r?r:v})(t,e,y&&m.max||10,y&&m.min||.2,y&&"overshoot"in m?+m.overshoot:_?0:1,!0);for(s in e=O,O=0,h=Z(t,e,v,x),e)Y[s]||(a=e[s],B(a)&&(a=a(r,t,n)),j(a)?g=a:I(a)&&!isNaN(a.velocity)?g=+a.velocity:o&&o.isTracking(s)?g=o.get(s):console.warn("ERROR: No velocity was defined for "+t+" property: "+s),p=Q(g,b),d=0,l=v(t,s),c=F(l),l=parseFloat(l),I(a)&&(u=l+p,"end"in a&&(a=J(a,h&&s in h?h:u,a.max,a.min,s,e.radius,g)),"max"in a&&+a.max<u?_||a.preventOvershoot?p=a.max-l:d=a.max-l-p:"min"in a&&+a.min>u&&(_||a.preventOvershoot?p=a.min-l:d=a.min-l-p)),this._props.push(s),this.styles&&this.styles.save(s),this._pt=new P(this._pt,t,s,l,0,$,0,f.set(t,s,this)),this._pt.u=c||0,this._pt.c1=p,this._pt.c2=d);return i.duration(b),V},render(t,e){let i=e._pt;if((t=x(e.tween._time/e.tween._dur))||!A())for(;i;)i.set(i.t,i.p,(r=i.s+i.c1*t+i.c2*t*t,Math.round(1e4*r)/1e4+i.u),i.d,t),i=i._next;else e.styles.revert();var r}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(t=>et[t]=m[t]),S()&&y.registerPlugin(et);export default et;export{et as InertiaPlugin,m as VelocityTracker}; |
/*! | ||
* MorphSVGPlugin 3.12.4 | ||
* MorphSVGPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
let e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,t=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,r=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,n=/(^[#\.][a-z]|[a-y][a-z])/i,o=Math.PI/180,i=Math.sin,l=Math.cos,a=Math.abs,s=Math.sqrt,h=e=>"string"==typeof e,p=e=>"number"==typeof e,g=e=>Math.round(1e5*e)/1e5||0;function c(e){let t,r=0;for(e.reverse();r<e.length;r+=2)t=e[r],e[r]=e[r+1],e[r+1]=t;e.reversed=!e.reversed}let d={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function f(e,r){let n,o,i,l,a,s,h,p,g,c,f,u,m,w,x,M,b,P,N,v,S,T,z=e.tagName.toLowerCase(),A=.552284749831;return"path"!==z&&e.getBBox?(s=((e,t)=>{let r,n=document.createElementNS("http://www.w3.org/2000/svg","path"),o=[].slice.call(e.attributes),i=o.length;for(t=","+t+",";--i>-1;)r=o[i].nodeName.toLowerCase(),t.indexOf(","+r+",")<0&&n.setAttributeNS(null,r,o[i].nodeValue);return n})(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),T=((e,t)=>{let r=t?t.split(","):[],n={},o=r.length;for(;--o>-1;)n[r[o]]=+e.getAttribute(r[o])||0;return n})(e,d[z]),"rect"===z?(l=T.rx,a=T.ry||l,o=T.x,i=T.y,c=T.width-2*l,f=T.height-2*a,l||a?(u=o+l*(1-A),m=o+l,w=m+c,x=w+l*A,M=w+l,b=i+a*(1-A),P=i+a,N=P+f,v=N+a*A,S=N+a,n="M"+M+","+P+" V"+N+" C"+[M,v,x,S,w,S,w-(w-m)/3,S,m+(w-m)/3,S,m,S,u,S,o,v,o,N,o,N-(N-P)/3,o,P+(N-P)/3,o,P,o,b,u,i,m,i,m+(w-m)/3,i,w-(w-m)/3,i,w,i,x,i,M,b,M,P].join(",")+"z"):n="M"+(o+c)+","+i+" v"+f+" h"+-c+" v"+-f+" h"+c+"z"):"circle"===z||"ellipse"===z?("circle"===z?(l=a=T.r,p=l*A):(l=T.rx,a=T.ry,p=a*A),o=T.cx,i=T.cy,h=l*A,n="M"+(o+l)+","+i+" C"+[o+l,i+p,o+h,i+a,o,i+a,o-h,i+a,o-l,i+p,o-l,i,o-l,i-p,o-h,i-a,o,i-a,o+h,i-a,o+l,i-p,o+l,i].join(",")+"z"):"line"===z?n="M"+T.x1+","+T.y1+" L"+T.x2+","+T.y2:"polyline"!==z&&"polygon"!==z||(g=(e.getAttribute("points")+"").match(t)||[],o=g.shift(),i=g.shift(),n="M"+o+","+i+" L"+g.join(","),"polygon"===z&&(n+=","+o+","+i+"z")),s.setAttribute("d",_(s._gsRawPath=y(n))),r&&e.parentNode&&(e.parentNode.insertBefore(s,e),e.parentNode.removeChild(e)),s):e}function u(e,t,r,n,h,p,g,c,d){if(e===c&&t===d)return;r=a(r),n=a(n);let f=h%360*o,u=l(f),y=i(f),_=Math.PI,m=2*_,w=(e-c)/2,x=(t-d)/2,M=u*w+y*x,b=-y*w+u*x,P=M*M,N=b*b,v=P/(r*r)+N/(n*n);v>1&&(r=s(v)*r,n=s(v)*n);let S=r*r,T=n*n,z=(S*T-S*N-T*P)/(S*N+T*P);z<0&&(z=0);let A=(p===g?-1:1)*s(z),C=A*(r*b/n),O=A*(-n*M/r),R=(e+c)/2+(u*C-y*O),I=(t+d)/2+(y*C+u*O),L=(M-C)/r,F=(b-O)/n,V=(-M-C)/r,j=(-b-O)/n,Y=L*L+F*F,G=(F<0?-1:1)*Math.acos(L/s(Y)),X=(L*j-F*V<0?-1:1)*Math.acos((L*V+F*j)/s(Y*(V*V+j*j)));isNaN(X)&&(X=_),!g&&X>0?X-=m:g&&X<0&&(X+=m),G%=m,X%=m;let q,E=Math.ceil(a(X)/(m/4)),H=[],U=X/E,B=4/3*i(U/2)/(1+l(U/2)),D=u*r,W=y*r,Q=y*-n,Z=u*n;for(q=0;q<E;q++)M=l(h=G+q*U),b=i(h),L=l(h+=U),F=i(h),H.push(M-B*b,b+B*M,L+B*F,F-B*L,L,F);for(q=0;q<H.length;q+=2)M=H[q],b=H[q+1],H[q]=M*D+b*Q+R,H[q+1]=M*W+b*Z+I;return H[q-2]=c,H[q-1]=d,H}function y(t){let n,o,i,l,s,h,p,g,c,d,f,y,_,m,w,x=(t+"").replace(r,e=>{let t=+e;return t<1e-4&&t>-1e-4?0:t}).match(e)||[],M=[],b=0,P=0,N=x.length,v=0,S="ERROR: malformed path: "+t,T=function(e,t,r,n){d=(r-e)/3,f=(n-t)/3,p.push(e+d,t+f,r-d,n-f,r,n)};if(!t||!isNaN(x[0])||isNaN(x[1]))return console.log(S),M;for(n=0;n<N;n++)if(_=s,isNaN(x[n])?(s=x[n].toUpperCase(),h=s!==x[n]):n--,i=+x[n+1],l=+x[n+2],h&&(i+=b,l+=P),n||(g=i,c=l),"M"===s)p&&(p.length<8?M.length-=1:v+=p.length),b=g=i,P=c=l,p=[i,l],M.push(p),n+=2,s="L";else if("C"===s)p||(p=[0,0]),h||(b=P=0),p.push(i,l,b+1*x[n+3],P+1*x[n+4],b+=1*x[n+5],P+=1*x[n+6]),n+=6;else if("S"===s)d=b,f=P,"C"!==_&&"S"!==_||(d+=b-p[p.length-4],f+=P-p[p.length-3]),h||(b=P=0),p.push(d,f,i,l,b+=1*x[n+3],P+=1*x[n+4]),n+=4;else if("Q"===s)d=b+2/3*(i-b),f=P+2/3*(l-P),h||(b=P=0),b+=1*x[n+3],P+=1*x[n+4],p.push(d,f,b+2/3*(i-b),P+2/3*(l-P),b,P),n+=4;else if("T"===s)d=b-p[p.length-4],f=P-p[p.length-3],p.push(b+d,P+f,i+2/3*(b+1.5*d-i),l+2/3*(P+1.5*f-l),b=i,P=l),n+=2;else if("H"===s)T(b,P,b=i,P),n+=1;else if("V"===s)T(b,P,b,P=i+(h?P-b:0)),n+=1;else if("L"===s||"Z"===s)"Z"===s&&(i=g,l=c,p.closed=!0),("L"===s||a(b-i)>.5||a(P-l)>.5)&&(T(b,P,i,l),"L"===s&&(n+=2)),b=i,P=l;else if("A"===s){if(m=x[n+4],w=x[n+5],d=x[n+6],f=x[n+7],o=7,m.length>1&&(m.length<3?(f=d,d=w,o--):(f=w,d=m.substr(2),o-=2),w=m.charAt(1),m=m.charAt(0)),y=u(b,P,+x[n+1],+x[n+2],+x[n+3],+m,+w,(h?b:0)+1*d,(h?P:0)+1*f),n+=o,y)for(o=0;o<y.length;o++)p.push(y[o]);b=p[p.length-2],P=p[p.length-1]}else console.log(S);return n=p.length,n<6?(M.pop(),n=0):p[0]===p[n-2]&&p[1]===p[n-1]&&(p.closed=!0),M.totalPoints=v+n,M}function _(e){p(e[0])&&(e=[e]);let t,r,n,o,i="",l=e.length;for(r=0;r<l;r++){for(o=e[r],i+="M"+g(o[0])+","+g(o[1])+" C",t=o.length,n=2;n<t;n++)i+=g(o[n++])+","+g(o[n++])+" "+g(o[n++])+","+g(o[n++])+" "+g(o[n++])+","+g(o[n])+" ";o.closed&&(i+="z")}return i}let m,w,x,M,b,P=()=>m||"undefined"!=typeof window&&(m=window.gsap)&&m.registerPlugin&&m,N=e=>"function"==typeof e,v=Math.atan2,S=Math.cos,T=Math.sin,z=Math.sqrt,A=Math.PI,C=2*A,O=.3*A,R=.7*A,I=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,L=/(^[#\.][a-z]|[a-y][a-z])/i,F=/[achlmqstvz]/i,V=e=>console&&console.warn(e),j=function(){return String.fromCharCode.apply(null,arguments)},Y=j(103,114,101,101,110,115,111,99,107,46,99,111,109),G=j(103,115,97,112,46,99,111,109),X=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,q=function(e){var t="undefined"!=typeof window,r=0===(t?window.location.href:"").indexOf(j(102,105,108,101,58,47,47))||-1!==e.indexOf(j(108,111,99,97,108,104,111,115,116))||X.test(e)||(t?window.location.hostname:"").split(".").pop()===j(108,111,99,97,108),n=[Y,G,j(99,111,100,101,112,101,110,46,105,111),j(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),j(99,111,100,101,112,101,110,46,100,101,118),j(99,111,100,101,112,101,110,46,97,112,112),j(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),j(112,101,110,115,46,99,108,111,117,100),j(99,115,115,45,116,114,105,99,107,115,46,99,111,109),j(99,100,112,110,46,105,111),j(112,101,110,115,46,105,111),j(103,97,110,110,111,110,46,116,118),j(99,111,100,101,99,97,110,121,111,110,46,110,101,116),j(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),j(99,101,114,101,98,114,97,120,46,99,111,46,117,107),j(116,121,109,112,97,110,117,115,46,110,101,116),j(116,119,101,101,110,109,97,120,46,99,111,109),j(112,108,110,107,114,46,99,111),j(104,111,116,106,97,114,46,99,111,109),j(119,101,98,112,97,99,107,98,105,110,46,99,111,109),j(97,114,99,104,105,118,101,46,111,114,103),j(99,111,100,101,115,97,110,100,98,111,120,46,105,111),j(99,115,98,46,97,112,112),j(115,116,97,99,107,98,108,105,116,122,46,99,111,109),j(115,116,97,99,107,98,108,105,116,122,46,105,111),j(99,111,100,105,101,114,46,105,111),j(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),j(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),j(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),j(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),j(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),j(106,115,102,105,100,100,108,101,46,110,101,116)],o=function(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",o);else{document.removeEventListener("readystatechange",o);var e="object"==typeof m?m:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(j(37,99,87,97,114,110,105,110,103),j(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(j(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"MorphSVGPlugin"+j(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(j(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),j(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},i=n.length;for(setTimeout(o,50);--i>-1;)if(-1!==e.indexOf(n[i]))return!0;return r||!setTimeout((function(){t&&(window.location.href=j(104,116,116,112,115,58,47,47)+Y+j(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=MorphSVGPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),E=e=>{let t,r=e.length,n=0,o=0;for(t=0;t<r;t++)n+=e[t++],o+=e[t];return[n/(r/2),o/(r/2)]},H=e=>{let t,r,n,o=e.length,i=e[0],l=i,a=e[1],s=a;for(n=6;n<o;n+=6)t=e[n],r=e[n+1],t>i?i=t:t<l&&(l=t),r>a?a=r:r<s&&(s=r);return e.centerX=(i+l)/2,e.centerY=(a+s)/2,e.size=(i-l)*(a-s)},U=(e,t=3)=>{let r,n,o,i,l,a,s,h,p,g,c,d,f,u,y,_,m=e.length,w=e[0][0],x=w,M=e[0][1],b=M,P=1/t;for(;--m>-1;)for(l=e[m],r=l.length,i=6;i<r;i+=6)for(p=l[i],g=l[i+1],c=l[i+2]-p,u=l[i+3]-g,d=l[i+4]-p,y=l[i+5]-g,f=l[i+6]-p,_=l[i+7]-g,a=t;--a>-1;)s=P*a,h=1-s,n=(s*s*f+3*h*(s*d+h*c))*s+p,o=(s*s*_+3*h*(s*y+h*u))*s+g,n>w?w=n:n<x&&(x=n),o>M?M=o:o<b&&(b=o);return e.centerX=(w+x)/2,e.centerY=(M+b)/2,e.left=x,e.width=w-x,e.top=b,e.height=M-b,e.size=(w-x)*(M-b)},B=(e,t)=>t.length-e.length,D=(e,t)=>{let r=e.size||H(e),n=t.size||H(t);return Math.abs(n-r)<(r+n)/20?t.centerX-e.centerX||t.centerY-e.centerY:n-r},W=(e,t)=>{let r,n,o=e.slice(0),i=e.length,l=i-2;for(t|=0,r=0;r<i;r++)n=(r+t)%l,e[r++]=o[n],e[r]=o[n+1]},Q=(e,t,r,n,o)=>{let i,l,a,s,h=e.length,p=0,g=h-2;for(r*=6,l=0;l<h;l+=6)i=(l+r)%g,s=e[i]-(t[l]-n),a=e[i+1]-(t[l+1]-o),p+=z(a*a+s*s);return p},Z=(e,t,r)=>{let n,o,i,l=e.length,a=E(e),s=E(t),h=s[0]-a[0],p=s[1]-a[1],g=Q(e,t,0,h,p),d=0;for(i=6;i<l;i+=6)o=Q(e,t,i/6,h,p),o<g&&(g=o,d=i);if(r)for(n=e.slice(0),c(n),i=6;i<l;i+=6)o=Q(n,t,i/6,h,p),o<g&&(g=o,d=-i);return d/6},k=(e,t,r)=>{let n,o,i,l,a,s,h=e.length,p=1e20,g=0,c=0;for(;--h>-1;)for(n=e[h],s=n.length,a=0;a<s;a+=6)o=n[a]-t,i=n[a+1]-r,l=z(o*o+i*i),l<p&&(p=l,g=n[a],c=n[a+1]);return[g,c]},$=(e,t,r,n,o,i)=>{let l,a,s,h,p,g=t.length,c=0,d=Math.min(e.size||H(e),t[r].size||H(t[r]))*n,f=1e20,u=e.centerX+o,y=e.centerY+i;for(a=r;a<g&&(l=t[a].size||H(t[a]),!(l<d));a++)s=t[a].centerX-u,h=t[a].centerY-y,p=z(s*s+h*h),p<f&&(c=a,f=p);return p=t[c],t.splice(c,1),p},J=(e,t)=>{let r,n,o,i,l,a,s,h,p,g,c,d,f,u,y=0,_=e.length,m=t/((_-2)/6);for(f=2;f<_;f+=6)for(y+=m;y>.999999;)r=e[f-2],n=e[f-1],o=e[f],i=e[f+1],l=e[f+2],a=e[f+3],s=e[f+4],h=e[f+5],u=1/((Math.floor(y)||1)+1),p=r+(o-r)*u,c=o+(l-o)*u,p+=(c-p)*u,c+=(l+(s-l)*u-c)*u,g=n+(i-n)*u,d=i+(a-i)*u,g+=(d-g)*u,d+=(a+(h-a)*u-d)*u,e.splice(f,4,r+(o-r)*u,n+(i-n)*u,p,g,p+(c-p)*u,g+(d-g)*u,c,d,l+(s-l)*u,a+(h-a)*u),f+=6,_+=6,y--;return e},K=(e,t,r,n,o)=>{let i,l,a,s,h,p,g,d=t.length-e.length,f=d>0?t:e,u=d>0?e:t,y=0,_="complexity"===n?B:D,m="position"===n?0:"number"==typeof n?n:.8,w=u.length,x="object"==typeof r&&r.push?r.slice(0):[r],M="reverse"===x[0]||x[0]<0,b="log"===r;if(u[0]){if(f.length>1&&(e.sort(_),t.sort(_),p=f.size||U(f),p=u.size||U(u),p=f.centerX-u.centerX,g=f.centerY-u.centerY,_===D))for(w=0;w<u.length;w++)f.splice(w,0,$(u[w],f,w,m,p,g));if(d)for(d<0&&(d=-d),f[0].length>u[0].length&&J(u[0],(f[0].length-u[0].length)/6|0),w=u.length;y<d;)s=f[w].size||H(f[w]),a=k(u,f[w].centerX,f[w].centerY),s=a[0],h=a[1],u[w++]=[s,h,s,h,s,h,s,h],u.totalPoints+=8,y++;for(w=0;w<e.length;w++)i=t[w],l=e[w],d=i.length-l.length,d<0?J(i,-d/6|0):d>0&&J(l,d/6|0),M&&!1!==o&&!l.reversed&&c(l),(r=x[w]||0===x[w]?x[w]:"auto")&&(l.closed||Math.abs(l[0]-l[l.length-2])<.5&&Math.abs(l[1]-l[l.length-1])<.5?"auto"===r||"log"===r?(x[w]=r=Z(l,i,!w||!1===o),r<0&&(M=!0,c(l),r=-r),W(l,6*r)):"reverse"!==r&&(w&&r<0&&c(l),W(l,6*(r<0?-r:r))):!M&&("auto"===r&&Math.abs(i[0]-l[0])+Math.abs(i[1]-l[1])+Math.abs(i[i.length-2]-l[l.length-2])+Math.abs(i[i.length-1]-l[l.length-1])>Math.abs(i[0]-l[l.length-2])+Math.abs(i[1]-l[l.length-1])+Math.abs(i[i.length-2]-l[0])+Math.abs(i[i.length-1]-l[1])||r%2)?(c(l),x[w]=-1,M=!0):"auto"===r?x[w]=0:"reverse"===r&&(x[w]=-1),l.closed!==i.closed&&(l.closed=i.closed=!1));return b&&V("shapeIndex:["+x.join(",")+"]"),e.shapeIndex=x,x}},ee=(e,t,r,n,o)=>{let i=y(e[0]),l=y(e[1]);K(i,l,t||0===t?t:"auto",r,o)&&(e[0]=_(i),e[1]=_(l),"log"!==n&&!0!==n||V('precompile:["'+e[0]+'","'+e[1]+'"]'))},te=(e,t)=>{let r,n,o,i,l,a,s,h=0,p=parseFloat(e[0]),g=parseFloat(e[1]),c=p+","+g+" ";for(o=e.length,r=.5*t/(.5*o-1),n=0;n<o-2;n+=2){if(h+=r,a=parseFloat(e[n+2]),s=parseFloat(e[n+3]),h>.999999)for(l=1/(Math.floor(h)+1),i=1;h>.999999;)c+=(p+(a-p)*l*i).toFixed(2)+","+(g+(s-g)*l*i).toFixed(2)+" ",h--,i++;c+=a+","+s+" ",p=a,g=s}return c},re=e=>{let t=e[0].match(I)||[],r=e[1].match(I)||[],n=r.length-t.length;n>0?e[0]=te(t,n):e[1]=te(r,-n)},ne=e=>isNaN(e)?re:t=>{re(t),t[1]=((e,t)=>{if(!t)return e;let r,n,o,i=e.match(I)||[],l=i.length,a="";for("reverse"===t?(n=l-1,r=-2):(n=(2*(parseInt(t,10)||0)+1+100*l)%l,r=2),o=0;o<l;o+=2)a+=i[n-1]+","+i[n]+" ",n=(n+r)%l;return a})(t[1],parseInt(e,10))},oe=(e,t)=>{let r,n,o,i,l,a,s,h,p,g,c,d,f=e.length,u=.2*(t||1);for(;--f>-1;){for(n=e[f],c=n.isSmooth=n.isSmooth||[0,0,0,0],d=n.smoothData=n.smoothData||[0,0,0,0],c.length=4,h=n.length-2,s=6;s<h;s+=6)o=n[s]-n[s-2],i=n[s+1]-n[s-1],l=n[s+2]-n[s],a=n[s+3]-n[s+1],p=v(i,o),g=v(a,l),r=Math.abs(p-g)<u,r&&(d[s-2]=p,d[s+2]=g,d[s-1]=z(o*o+i*i),d[s+3]=z(l*l+a*a)),c.push(r,r,0,0,r,r);n[h]===n[0]&&n[h+1]===n[1]&&(o=n[0]-n[h-2],i=n[1]-n[h-1],l=n[2]-n[0],a=n[3]-n[1],p=v(i,o),g=v(a,l),Math.abs(p-g)<u&&(d[h-2]=p,d[2]=g,d[h-1]=z(o*o+i*i),d[3]=z(l*l+a*a),c[h-2]=c[h-1]=!0))}return e},ie=e=>{let t=e.trim().split(" ");return{x:(~e.indexOf("left")?0:~e.indexOf("right")?100:isNaN(parseFloat(t[0]))?50:parseFloat(t[0]))/100,y:(~e.indexOf("top")?0:~e.indexOf("bottom")?100:isNaN(parseFloat(t[1]))?50:parseFloat(t[1]))/100}},le="Use MorphSVGPlugin.convertToPath() to convert to a path before morphing.",ae=function(e,t,r,n){let o,i,l=this._origin,a=this._eOrigin,s=e[r]-l.x,h=e[r+1]-l.y,p=z(s*s+h*h),g=v(h,s);var c;return s=t[r]-a.x,h=t[r+1]-a.y,o=v(h,s)-g,i=(c=o)!==c%A?c+(c<0?C:-C):c,!n&&x&&Math.abs(i+x.ca)<O&&(n=x),this._anchorPT=x={_next:this._anchorPT,t:e,sa:g,ca:n&&i*n.ca<0&&Math.abs(i)>R?o:i,sl:p,cl:z(s*s+h*h)-p,i:r}},se=e=>{m=P(),b=b||m&&m.plugins.morphSVG,m&&b?(w=m.utils.toArray,b.prototype._tweenRotation=ae,M=1):e&&V("Please gsap.registerPlugin(MorphSVGPlugin)")};const he={version:"3.12.4",name:"morphSVG",rawVars:1,register(e,t){m=e,b=t,se()},init(e,t,r,n,o){if(M||se(1),!t)return V("invalid shape"),!1;let i,l,a,s,h,p,g,c,d,u,m,b,P,v,S,T,z,A,C,O,R,j;if(N(t)&&(t=t.call(r,n,e,o)),"string"==typeof t||t.getBBox||t[0])t={shape:t};else if("object"==typeof t){for(l in i={},t)i[l]=N(t[l])&&"render"!==l?t[l].call(r,n,e,o):t[l];t=i}let Y=e.nodeType?window.getComputedStyle(e):{},G=Y.fill+"",X=!("none"===G||"0"===(G.match(I)||[])[3]||"evenodd"===Y.fillRule),E=(t.origin||"50 50").split(",");if(i=(e.nodeName+"").toUpperCase(),h="POLYLINE"===i||"POLYGON"===i,"PATH"!==i&&!h&&!t.prop)return V("Cannot morph a <"+i+"> element. "+le),!1;if(l="PATH"===i?"d":"points",!t.prop&&!N(e.setAttribute))return!1;if(s=((e,t,r)=>{let n,o;return(!("string"==typeof e)||L.test(e)||(e.match(I)||[]).length<3)&&(n=w(e)[0],n?(o=(n.nodeName+"").toUpperCase(),t&&"PATH"!==o&&(n=f(n,!1),o="PATH"),e=n.getAttribute("PATH"===o?"d":"points")||"",n===r&&(e=n.getAttributeNS(null,"data-original")||e)):(V("WARNING: invalid morph to: "+e),e=!1)),e})(t.shape||t.d||t.points||"","d"===l,e),h&&F.test(s))return V("A <"+i+"> cannot accept path data. "+le),!1;if(p=t.shapeIndex||0===t.shapeIndex?t.shapeIndex:"auto",g=t.map||he.defaultMap,this._prop=t.prop,this._render=t.render||he.defaultRender,this._apply="updateTarget"in t?t.updateTarget:he.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(t.precision)?2:+t.precision),this._tween=r,s){if(this._target=e,z="object"==typeof t.precompile,u=this._prop?e[this._prop]:e.getAttribute(l),this._prop||e.getAttributeNS(null,"data-original")||e.setAttributeNS(null,"data-original",u),"d"===l||this._prop){if(u=y(z?t.precompile[0]:u),m=y(z?t.precompile[1]:s),!z&&!K(u,m,p,g,X))return!1;for("log"!==t.precompile&&!0!==t.precompile||V('precompile:["'+_(u)+'","'+_(m)+'"]'),R="linear"!==(t.type||he.defaultType),R&&(u=oe(u,t.smoothTolerance),m=oe(m,t.smoothTolerance),u.size||U(u),m.size||U(m),O=ie(E[0]),this._origin=u.origin={x:u.left+O.x*u.width,y:u.top+O.y*u.height},E[1]&&(O=ie(E[1])),this._eOrigin={x:m.left+O.x*m.width,y:m.top+O.y*m.height}),this._rawPath=e._gsRawPath=u,P=u.length;--P>-1;)for(S=u[P],T=m[P],c=S.isSmooth||[],d=T.isSmooth||[],v=S.length,x=0,b=0;b<v;b+=2)T[b]===S[b]&&T[b+1]===S[b+1]||(R?c[b]&&d[b]?(A=S.smoothData,C=T.smoothData,j=b+(b===v-4?7-v:5),this._controlPT={_next:this._controlPT,i:b,j:P,l1s:A[b+1],l1c:C[b+1]-A[b+1],l2s:A[j],l2c:C[j]-A[j]},a=this._tweenRotation(S,T,b+2),this._tweenRotation(S,T,b,a),this._tweenRotation(S,T,j-1,a),b+=4):this._tweenRotation(S,T,b):(a=this.add(S,b,S[b],T[b],0,0,0,0,0,1),a=this.add(S,b+1,S[b+1],T[b+1],0,0,0,0,0,1)||a))}else a=this.add(e,"setAttribute",e.getAttribute(l)+"",s+"",n,o,0,ne(p),l);R&&(this.add(this._origin,"x",this._origin.x,this._eOrigin.x,0,0,0,0,0,1),a=this.add(this._origin,"y",this._origin.y,this._eOrigin.y,0,0,0,0,0,1)),a&&(this._props.push("morphSVG"),a.end=s,a.endProp=l)}return q},render(e,t){let r,n,o,i,l,a,s,h,p,g,c,d,f,u=t._rawPath,y=t._controlPT,_=t._anchorPT,m=t._rnd,w=t._target,x=t._pt;for(;x;)x.r(e,x.d),x=x._next;if(1===e&&t._apply)for(x=t._pt;x;)x.end&&(t._prop?w[t._prop]=x.end:w.setAttribute(x.endProp,x.end)),x=x._next;else if(u){for(;_;)a=_.sa+e*_.ca,l=_.sl+e*_.cl,_.t[_.i]=t._origin.x+S(a)*l,_.t[_.i+1]=t._origin.y+T(a)*l,_=_._next;for(o=e<.5?2*e*e:(4-2*e)*e-1;y;)s=y.i,i=u[y.j],f=s+(s===i.length-4?7-i.length:5),a=v(i[f]-i[s+1],i[f-1]-i[s]),c=T(a),d=S(a),p=i[s+2],g=i[s+3],l=y.l1s+o*y.l1c,i[s]=p-d*l,i[s+1]=g-c*l,l=y.l2s+o*y.l2c,i[f-1]=p+d*l,i[f]=g+c*l,y=y._next;if(w._gsRawPath=u,t._apply){for(r="",n=" ",h=0;h<u.length;h++)for(i=u[h],l=i.length,r+="M"+(i[0]*m|0)/m+" "+(i[1]*m|0)/m+" C",s=2;s<l;s++)r+=(i[s]*m|0)/m+" ";t._prop?w[t._prop]=r:w.setAttribute("d",r)}}t._render&&u&&t._render.call(t._tween,u,w)},kill(e){this._pt=this._rawPath=0},getRawPath:function(e){let t,r=(e=h(e)&&n.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return r&&(e=e.getAttribute("d"))?(r._gsPath||(r._gsPath={}),t=r._gsPath[e],t&&!t._dirty?t:r._gsPath[e]=y(e)):e?h(e)?y(e):p(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")},stringToRawPath:y,rawPathToString:_,normalizeStrings(e,t,{shapeIndex:r,map:n}){let o=[e,t];return ee(o,r,n),o},pathFilter:ee,pointsFilter:re,getTotalSize:U,equalizeSegmentQuantity:K,convertToPath:(e,t)=>w(e).map(e=>f(e,!1!==t)),defaultType:"linear",defaultUpdateTarget:!0,defaultMap:"size"};P()&&m.registerPlugin(he);export default he;export{he as MorphSVGPlugin}; | ||
let e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,t=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,r=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,n=/(^[#\.][a-z]|[a-y][a-z])/i,o=Math.PI/180,i=Math.sin,l=Math.cos,a=Math.abs,s=Math.sqrt,h=e=>"string"==typeof e,p=e=>"number"==typeof e,g=e=>Math.round(1e5*e)/1e5||0;function c(e){let t,r=0;for(e.reverse();r<e.length;r+=2)t=e[r],e[r]=e[r+1],e[r+1]=t;e.reversed=!e.reversed}let d={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function f(e,r){let n,o,i,l,a,s,h,p,g,c,f,u,m,w,x,M,b,P,N,v,S,T,z=e.tagName.toLowerCase(),A=.552284749831;return"path"!==z&&e.getBBox?(s=((e,t)=>{let r,n=document.createElementNS("http://www.w3.org/2000/svg","path"),o=[].slice.call(e.attributes),i=o.length;for(t=","+t+",";--i>-1;)r=o[i].nodeName.toLowerCase(),t.indexOf(","+r+",")<0&&n.setAttributeNS(null,r,o[i].nodeValue);return n})(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),T=((e,t)=>{let r=t?t.split(","):[],n={},o=r.length;for(;--o>-1;)n[r[o]]=+e.getAttribute(r[o])||0;return n})(e,d[z]),"rect"===z?(l=T.rx,a=T.ry||l,o=T.x,i=T.y,c=T.width-2*l,f=T.height-2*a,l||a?(u=o+l*(1-A),m=o+l,w=m+c,x=w+l*A,M=w+l,b=i+a*(1-A),P=i+a,N=P+f,v=N+a*A,S=N+a,n="M"+M+","+P+" V"+N+" C"+[M,v,x,S,w,S,w-(w-m)/3,S,m+(w-m)/3,S,m,S,u,S,o,v,o,N,o,N-(N-P)/3,o,P+(N-P)/3,o,P,o,b,u,i,m,i,m+(w-m)/3,i,w-(w-m)/3,i,w,i,x,i,M,b,M,P].join(",")+"z"):n="M"+(o+c)+","+i+" v"+f+" h"+-c+" v"+-f+" h"+c+"z"):"circle"===z||"ellipse"===z?("circle"===z?(l=a=T.r,p=l*A):(l=T.rx,a=T.ry,p=a*A),o=T.cx,i=T.cy,h=l*A,n="M"+(o+l)+","+i+" C"+[o+l,i+p,o+h,i+a,o,i+a,o-h,i+a,o-l,i+p,o-l,i,o-l,i-p,o-h,i-a,o,i-a,o+h,i-a,o+l,i-p,o+l,i].join(",")+"z"):"line"===z?n="M"+T.x1+","+T.y1+" L"+T.x2+","+T.y2:"polyline"!==z&&"polygon"!==z||(g=(e.getAttribute("points")+"").match(t)||[],o=g.shift(),i=g.shift(),n="M"+o+","+i+" L"+g.join(","),"polygon"===z&&(n+=","+o+","+i+"z")),s.setAttribute("d",_(s._gsRawPath=y(n))),r&&e.parentNode&&(e.parentNode.insertBefore(s,e),e.parentNode.removeChild(e)),s):e}function u(e,t,r,n,h,p,g,c,d){if(e===c&&t===d)return;r=a(r),n=a(n);let f=h%360*o,u=l(f),y=i(f),_=Math.PI,m=2*_,w=(e-c)/2,x=(t-d)/2,M=u*w+y*x,b=-y*w+u*x,P=M*M,N=b*b,v=P/(r*r)+N/(n*n);v>1&&(r=s(v)*r,n=s(v)*n);let S=r*r,T=n*n,z=(S*T-S*N-T*P)/(S*N+T*P);z<0&&(z=0);let A=(p===g?-1:1)*s(z),C=A*(r*b/n),O=A*(-n*M/r),R=(e+c)/2+(u*C-y*O),I=(t+d)/2+(y*C+u*O),L=(M-C)/r,F=(b-O)/n,V=(-M-C)/r,j=(-b-O)/n,Y=L*L+F*F,G=(F<0?-1:1)*Math.acos(L/s(Y)),X=(L*j-F*V<0?-1:1)*Math.acos((L*V+F*j)/s(Y*(V*V+j*j)));isNaN(X)&&(X=_),!g&&X>0?X-=m:g&&X<0&&(X+=m),G%=m,X%=m;let q,E=Math.ceil(a(X)/(m/4)),H=[],U=X/E,B=4/3*i(U/2)/(1+l(U/2)),D=u*r,W=y*r,Q=y*-n,Z=u*n;for(q=0;q<E;q++)M=l(h=G+q*U),b=i(h),L=l(h+=U),F=i(h),H.push(M-B*b,b+B*M,L+B*F,F-B*L,L,F);for(q=0;q<H.length;q+=2)M=H[q],b=H[q+1],H[q]=M*D+b*Q+R,H[q+1]=M*W+b*Z+I;return H[q-2]=c,H[q-1]=d,H}function y(t){let n,o,i,l,s,h,p,g,c,d,f,y,_,m,w,x=(t+"").replace(r,e=>{let t=+e;return t<1e-4&&t>-1e-4?0:t}).match(e)||[],M=[],b=0,P=0,N=x.length,v=0,S="ERROR: malformed path: "+t,T=function(e,t,r,n){d=(r-e)/3,f=(n-t)/3,p.push(e+d,t+f,r-d,n-f,r,n)};if(!t||!isNaN(x[0])||isNaN(x[1]))return console.log(S),M;for(n=0;n<N;n++)if(_=s,isNaN(x[n])?(s=x[n].toUpperCase(),h=s!==x[n]):n--,i=+x[n+1],l=+x[n+2],h&&(i+=b,l+=P),n||(g=i,c=l),"M"===s)p&&(p.length<8?M.length-=1:v+=p.length),b=g=i,P=c=l,p=[i,l],M.push(p),n+=2,s="L";else if("C"===s)p||(p=[0,0]),h||(b=P=0),p.push(i,l,b+1*x[n+3],P+1*x[n+4],b+=1*x[n+5],P+=1*x[n+6]),n+=6;else if("S"===s)d=b,f=P,"C"!==_&&"S"!==_||(d+=b-p[p.length-4],f+=P-p[p.length-3]),h||(b=P=0),p.push(d,f,i,l,b+=1*x[n+3],P+=1*x[n+4]),n+=4;else if("Q"===s)d=b+2/3*(i-b),f=P+2/3*(l-P),h||(b=P=0),b+=1*x[n+3],P+=1*x[n+4],p.push(d,f,b+2/3*(i-b),P+2/3*(l-P),b,P),n+=4;else if("T"===s)d=b-p[p.length-4],f=P-p[p.length-3],p.push(b+d,P+f,i+2/3*(b+1.5*d-i),l+2/3*(P+1.5*f-l),b=i,P=l),n+=2;else if("H"===s)T(b,P,b=i,P),n+=1;else if("V"===s)T(b,P,b,P=i+(h?P-b:0)),n+=1;else if("L"===s||"Z"===s)"Z"===s&&(i=g,l=c,p.closed=!0),("L"===s||a(b-i)>.5||a(P-l)>.5)&&(T(b,P,i,l),"L"===s&&(n+=2)),b=i,P=l;else if("A"===s){if(m=x[n+4],w=x[n+5],d=x[n+6],f=x[n+7],o=7,m.length>1&&(m.length<3?(f=d,d=w,o--):(f=w,d=m.substr(2),o-=2),w=m.charAt(1),m=m.charAt(0)),y=u(b,P,+x[n+1],+x[n+2],+x[n+3],+m,+w,(h?b:0)+1*d,(h?P:0)+1*f),n+=o,y)for(o=0;o<y.length;o++)p.push(y[o]);b=p[p.length-2],P=p[p.length-1]}else console.log(S);return n=p.length,n<6?(M.pop(),n=0):p[0]===p[n-2]&&p[1]===p[n-1]&&(p.closed=!0),M.totalPoints=v+n,M}function _(e){p(e[0])&&(e=[e]);let t,r,n,o,i="",l=e.length;for(r=0;r<l;r++){for(o=e[r],i+="M"+g(o[0])+","+g(o[1])+" C",t=o.length,n=2;n<t;n++)i+=g(o[n++])+","+g(o[n++])+" "+g(o[n++])+","+g(o[n++])+" "+g(o[n++])+","+g(o[n])+" ";o.closed&&(i+="z")}return i}let m,w,x,M,b,P=()=>m||"undefined"!=typeof window&&(m=window.gsap)&&m.registerPlugin&&m,N=e=>"function"==typeof e,v=Math.atan2,S=Math.cos,T=Math.sin,z=Math.sqrt,A=Math.PI,C=2*A,O=.3*A,R=.7*A,I=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,L=/(^[#\.][a-z]|[a-y][a-z])/i,F=/[achlmqstvz]/i,V=e=>console&&console.warn(e),j=function(){return String.fromCharCode.apply(null,arguments)},Y=j(103,114,101,101,110,115,111,99,107,46,99,111,109),G=j(103,115,97,112,46,99,111,109),X=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,q=function(e){var t="undefined"!=typeof window,r=0===(t?window.location.href:"").indexOf(j(102,105,108,101,58,47,47))||-1!==e.indexOf(j(108,111,99,97,108,104,111,115,116))||X.test(e)||(t?window.location.hostname:"").split(".").pop()===j(108,111,99,97,108),n=[Y,G,j(99,111,100,101,112,101,110,46,105,111),j(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),j(99,111,100,101,112,101,110,46,100,101,118),j(99,111,100,101,112,101,110,46,97,112,112),j(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),j(112,101,110,115,46,99,108,111,117,100),j(99,115,115,45,116,114,105,99,107,115,46,99,111,109),j(99,100,112,110,46,105,111),j(112,101,110,115,46,105,111),j(103,97,110,110,111,110,46,116,118),j(99,111,100,101,99,97,110,121,111,110,46,110,101,116),j(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),j(99,101,114,101,98,114,97,120,46,99,111,46,117,107),j(116,121,109,112,97,110,117,115,46,110,101,116),j(116,119,101,101,110,109,97,120,46,99,111,109),j(112,108,110,107,114,46,99,111),j(104,111,116,106,97,114,46,99,111,109),j(119,101,98,112,97,99,107,98,105,110,46,99,111,109),j(97,114,99,104,105,118,101,46,111,114,103),j(99,111,100,101,115,97,110,100,98,111,120,46,105,111),j(99,115,98,46,97,112,112),j(115,116,97,99,107,98,108,105,116,122,46,99,111,109),j(115,116,97,99,107,98,108,105,116,122,46,105,111),j(99,111,100,105,101,114,46,105,111),j(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),j(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),j(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),j(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),j(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),j(106,115,102,105,100,100,108,101,46,110,101,116)],o=function(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",o);else{document.removeEventListener("readystatechange",o);var e="object"==typeof m?m:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(j(37,99,87,97,114,110,105,110,103),j(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(j(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"MorphSVGPlugin"+j(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(j(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),j(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},i=n.length;for(setTimeout(o,50);--i>-1;)if(-1!==e.indexOf(n[i]))return!0;return r||!setTimeout((function(){t&&(window.location.href=j(104,116,116,112,115,58,47,47)+Y+j(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=MorphSVGPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),E=e=>{let t,r=e.length,n=0,o=0;for(t=0;t<r;t++)n+=e[t++],o+=e[t];return[n/(r/2),o/(r/2)]},H=e=>{let t,r,n,o=e.length,i=e[0],l=i,a=e[1],s=a;for(n=6;n<o;n+=6)t=e[n],r=e[n+1],t>i?i=t:t<l&&(l=t),r>a?a=r:r<s&&(s=r);return e.centerX=(i+l)/2,e.centerY=(a+s)/2,e.size=(i-l)*(a-s)},U=(e,t=3)=>{let r,n,o,i,l,a,s,h,p,g,c,d,f,u,y,_,m=e.length,w=e[0][0],x=w,M=e[0][1],b=M,P=1/t;for(;--m>-1;)for(l=e[m],r=l.length,i=6;i<r;i+=6)for(p=l[i],g=l[i+1],c=l[i+2]-p,u=l[i+3]-g,d=l[i+4]-p,y=l[i+5]-g,f=l[i+6]-p,_=l[i+7]-g,a=t;--a>-1;)s=P*a,h=1-s,n=(s*s*f+3*h*(s*d+h*c))*s+p,o=(s*s*_+3*h*(s*y+h*u))*s+g,n>w?w=n:n<x&&(x=n),o>M?M=o:o<b&&(b=o);return e.centerX=(w+x)/2,e.centerY=(M+b)/2,e.left=x,e.width=w-x,e.top=b,e.height=M-b,e.size=(w-x)*(M-b)},B=(e,t)=>t.length-e.length,D=(e,t)=>{let r=e.size||H(e),n=t.size||H(t);return Math.abs(n-r)<(r+n)/20?t.centerX-e.centerX||t.centerY-e.centerY:n-r},W=(e,t)=>{let r,n,o=e.slice(0),i=e.length,l=i-2;for(t|=0,r=0;r<i;r++)n=(r+t)%l,e[r++]=o[n],e[r]=o[n+1]},Q=(e,t,r,n,o)=>{let i,l,a,s,h=e.length,p=0,g=h-2;for(r*=6,l=0;l<h;l+=6)i=(l+r)%g,s=e[i]-(t[l]-n),a=e[i+1]-(t[l+1]-o),p+=z(a*a+s*s);return p},Z=(e,t,r)=>{let n,o,i,l=e.length,a=E(e),s=E(t),h=s[0]-a[0],p=s[1]-a[1],g=Q(e,t,0,h,p),d=0;for(i=6;i<l;i+=6)o=Q(e,t,i/6,h,p),o<g&&(g=o,d=i);if(r)for(n=e.slice(0),c(n),i=6;i<l;i+=6)o=Q(n,t,i/6,h,p),o<g&&(g=o,d=-i);return d/6},k=(e,t,r)=>{let n,o,i,l,a,s,h=e.length,p=1e20,g=0,c=0;for(;--h>-1;)for(n=e[h],s=n.length,a=0;a<s;a+=6)o=n[a]-t,i=n[a+1]-r,l=z(o*o+i*i),l<p&&(p=l,g=n[a],c=n[a+1]);return[g,c]},$=(e,t,r,n,o,i)=>{let l,a,s,h,p,g=t.length,c=0,d=Math.min(e.size||H(e),t[r].size||H(t[r]))*n,f=1e20,u=e.centerX+o,y=e.centerY+i;for(a=r;a<g&&(l=t[a].size||H(t[a]),!(l<d));a++)s=t[a].centerX-u,h=t[a].centerY-y,p=z(s*s+h*h),p<f&&(c=a,f=p);return p=t[c],t.splice(c,1),p},J=(e,t)=>{let r,n,o,i,l,a,s,h,p,g,c,d,f,u,y=0,_=e.length,m=t/((_-2)/6);for(f=2;f<_;f+=6)for(y+=m;y>.999999;)r=e[f-2],n=e[f-1],o=e[f],i=e[f+1],l=e[f+2],a=e[f+3],s=e[f+4],h=e[f+5],u=1/((Math.floor(y)||1)+1),p=r+(o-r)*u,c=o+(l-o)*u,p+=(c-p)*u,c+=(l+(s-l)*u-c)*u,g=n+(i-n)*u,d=i+(a-i)*u,g+=(d-g)*u,d+=(a+(h-a)*u-d)*u,e.splice(f,4,r+(o-r)*u,n+(i-n)*u,p,g,p+(c-p)*u,g+(d-g)*u,c,d,l+(s-l)*u,a+(h-a)*u),f+=6,_+=6,y--;return e},K=(e,t,r,n,o)=>{let i,l,a,s,h,p,g,d=t.length-e.length,f=d>0?t:e,u=d>0?e:t,y=0,_="complexity"===n?B:D,m="position"===n?0:"number"==typeof n?n:.8,w=u.length,x="object"==typeof r&&r.push?r.slice(0):[r],M="reverse"===x[0]||x[0]<0,b="log"===r;if(u[0]){if(f.length>1&&(e.sort(_),t.sort(_),p=f.size||U(f),p=u.size||U(u),p=f.centerX-u.centerX,g=f.centerY-u.centerY,_===D))for(w=0;w<u.length;w++)f.splice(w,0,$(u[w],f,w,m,p,g));if(d)for(d<0&&(d=-d),f[0].length>u[0].length&&J(u[0],(f[0].length-u[0].length)/6|0),w=u.length;y<d;)s=f[w].size||H(f[w]),a=k(u,f[w].centerX,f[w].centerY),s=a[0],h=a[1],u[w++]=[s,h,s,h,s,h,s,h],u.totalPoints+=8,y++;for(w=0;w<e.length;w++)i=t[w],l=e[w],d=i.length-l.length,d<0?J(i,-d/6|0):d>0&&J(l,d/6|0),M&&!1!==o&&!l.reversed&&c(l),(r=x[w]||0===x[w]?x[w]:"auto")&&(l.closed||Math.abs(l[0]-l[l.length-2])<.5&&Math.abs(l[1]-l[l.length-1])<.5?"auto"===r||"log"===r?(x[w]=r=Z(l,i,!w||!1===o),r<0&&(M=!0,c(l),r=-r),W(l,6*r)):"reverse"!==r&&(w&&r<0&&c(l),W(l,6*(r<0?-r:r))):!M&&("auto"===r&&Math.abs(i[0]-l[0])+Math.abs(i[1]-l[1])+Math.abs(i[i.length-2]-l[l.length-2])+Math.abs(i[i.length-1]-l[l.length-1])>Math.abs(i[0]-l[l.length-2])+Math.abs(i[1]-l[l.length-1])+Math.abs(i[i.length-2]-l[0])+Math.abs(i[i.length-1]-l[1])||r%2)?(c(l),x[w]=-1,M=!0):"auto"===r?x[w]=0:"reverse"===r&&(x[w]=-1),l.closed!==i.closed&&(l.closed=i.closed=!1));return b&&V("shapeIndex:["+x.join(",")+"]"),e.shapeIndex=x,x}},ee=(e,t,r,n,o)=>{let i=y(e[0]),l=y(e[1]);K(i,l,t||0===t?t:"auto",r,o)&&(e[0]=_(i),e[1]=_(l),"log"!==n&&!0!==n||V('precompile:["'+e[0]+'","'+e[1]+'"]'))},te=(e,t)=>{let r,n,o,i,l,a,s,h=0,p=parseFloat(e[0]),g=parseFloat(e[1]),c=p+","+g+" ";for(o=e.length,r=.5*t/(.5*o-1),n=0;n<o-2;n+=2){if(h+=r,a=parseFloat(e[n+2]),s=parseFloat(e[n+3]),h>.999999)for(l=1/(Math.floor(h)+1),i=1;h>.999999;)c+=(p+(a-p)*l*i).toFixed(2)+","+(g+(s-g)*l*i).toFixed(2)+" ",h--,i++;c+=a+","+s+" ",p=a,g=s}return c},re=e=>{let t=e[0].match(I)||[],r=e[1].match(I)||[],n=r.length-t.length;n>0?e[0]=te(t,n):e[1]=te(r,-n)},ne=e=>isNaN(e)?re:t=>{re(t),t[1]=((e,t)=>{if(!t)return e;let r,n,o,i=e.match(I)||[],l=i.length,a="";for("reverse"===t?(n=l-1,r=-2):(n=(2*(parseInt(t,10)||0)+1+100*l)%l,r=2),o=0;o<l;o+=2)a+=i[n-1]+","+i[n]+" ",n=(n+r)%l;return a})(t[1],parseInt(e,10))},oe=(e,t)=>{let r,n,o,i,l,a,s,h,p,g,c,d,f=e.length,u=.2*(t||1);for(;--f>-1;){for(n=e[f],c=n.isSmooth=n.isSmooth||[0,0,0,0],d=n.smoothData=n.smoothData||[0,0,0,0],c.length=4,h=n.length-2,s=6;s<h;s+=6)o=n[s]-n[s-2],i=n[s+1]-n[s-1],l=n[s+2]-n[s],a=n[s+3]-n[s+1],p=v(i,o),g=v(a,l),r=Math.abs(p-g)<u,r&&(d[s-2]=p,d[s+2]=g,d[s-1]=z(o*o+i*i),d[s+3]=z(l*l+a*a)),c.push(r,r,0,0,r,r);n[h]===n[0]&&n[h+1]===n[1]&&(o=n[0]-n[h-2],i=n[1]-n[h-1],l=n[2]-n[0],a=n[3]-n[1],p=v(i,o),g=v(a,l),Math.abs(p-g)<u&&(d[h-2]=p,d[2]=g,d[h-1]=z(o*o+i*i),d[3]=z(l*l+a*a),c[h-2]=c[h-1]=!0))}return e},ie=e=>{let t=e.trim().split(" ");return{x:(~e.indexOf("left")?0:~e.indexOf("right")?100:isNaN(parseFloat(t[0]))?50:parseFloat(t[0]))/100,y:(~e.indexOf("top")?0:~e.indexOf("bottom")?100:isNaN(parseFloat(t[1]))?50:parseFloat(t[1]))/100}},le="Use MorphSVGPlugin.convertToPath() to convert to a path before morphing.",ae=function(e,t,r,n){let o,i,l=this._origin,a=this._eOrigin,s=e[r]-l.x,h=e[r+1]-l.y,p=z(s*s+h*h),g=v(h,s);var c;return s=t[r]-a.x,h=t[r+1]-a.y,o=v(h,s)-g,i=(c=o)!==c%A?c+(c<0?C:-C):c,!n&&x&&Math.abs(i+x.ca)<O&&(n=x),this._anchorPT=x={_next:this._anchorPT,t:e,sa:g,ca:n&&i*n.ca<0&&Math.abs(i)>R?o:i,sl:p,cl:z(s*s+h*h)-p,i:r}},se=e=>{m=P(),b=b||m&&m.plugins.morphSVG,m&&b?(w=m.utils.toArray,b.prototype._tweenRotation=ae,M=1):e&&V("Please gsap.registerPlugin(MorphSVGPlugin)")};const he={version:"3.12.5",name:"morphSVG",rawVars:1,register(e,t){m=e,b=t,se()},init(e,t,r,n,o){if(M||se(1),!t)return V("invalid shape"),!1;let i,l,a,s,h,p,g,c,d,u,m,b,P,v,S,T,z,A,C,O,R,j;if(N(t)&&(t=t.call(r,n,e,o)),"string"==typeof t||t.getBBox||t[0])t={shape:t};else if("object"==typeof t){for(l in i={},t)i[l]=N(t[l])&&"render"!==l?t[l].call(r,n,e,o):t[l];t=i}let Y=e.nodeType?window.getComputedStyle(e):{},G=Y.fill+"",X=!("none"===G||"0"===(G.match(I)||[])[3]||"evenodd"===Y.fillRule),E=(t.origin||"50 50").split(",");if(i=(e.nodeName+"").toUpperCase(),h="POLYLINE"===i||"POLYGON"===i,"PATH"!==i&&!h&&!t.prop)return V("Cannot morph a <"+i+"> element. "+le),!1;if(l="PATH"===i?"d":"points",!t.prop&&!N(e.setAttribute))return!1;if(s=((e,t,r)=>{let n,o;return(!("string"==typeof e)||L.test(e)||(e.match(I)||[]).length<3)&&(n=w(e)[0],n?(o=(n.nodeName+"").toUpperCase(),t&&"PATH"!==o&&(n=f(n,!1),o="PATH"),e=n.getAttribute("PATH"===o?"d":"points")||"",n===r&&(e=n.getAttributeNS(null,"data-original")||e)):(V("WARNING: invalid morph to: "+e),e=!1)),e})(t.shape||t.d||t.points||"","d"===l,e),h&&F.test(s))return V("A <"+i+"> cannot accept path data. "+le),!1;if(p=t.shapeIndex||0===t.shapeIndex?t.shapeIndex:"auto",g=t.map||he.defaultMap,this._prop=t.prop,this._render=t.render||he.defaultRender,this._apply="updateTarget"in t?t.updateTarget:he.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(t.precision)?2:+t.precision),this._tween=r,s){if(this._target=e,z="object"==typeof t.precompile,u=this._prop?e[this._prop]:e.getAttribute(l),this._prop||e.getAttributeNS(null,"data-original")||e.setAttributeNS(null,"data-original",u),"d"===l||this._prop){if(u=y(z?t.precompile[0]:u),m=y(z?t.precompile[1]:s),!z&&!K(u,m,p,g,X))return!1;for("log"!==t.precompile&&!0!==t.precompile||V('precompile:["'+_(u)+'","'+_(m)+'"]'),R="linear"!==(t.type||he.defaultType),R&&(u=oe(u,t.smoothTolerance),m=oe(m,t.smoothTolerance),u.size||U(u),m.size||U(m),O=ie(E[0]),this._origin=u.origin={x:u.left+O.x*u.width,y:u.top+O.y*u.height},E[1]&&(O=ie(E[1])),this._eOrigin={x:m.left+O.x*m.width,y:m.top+O.y*m.height}),this._rawPath=e._gsRawPath=u,P=u.length;--P>-1;)for(S=u[P],T=m[P],c=S.isSmooth||[],d=T.isSmooth||[],v=S.length,x=0,b=0;b<v;b+=2)T[b]===S[b]&&T[b+1]===S[b+1]||(R?c[b]&&d[b]?(A=S.smoothData,C=T.smoothData,j=b+(b===v-4?7-v:5),this._controlPT={_next:this._controlPT,i:b,j:P,l1s:A[b+1],l1c:C[b+1]-A[b+1],l2s:A[j],l2c:C[j]-A[j]},a=this._tweenRotation(S,T,b+2),this._tweenRotation(S,T,b,a),this._tweenRotation(S,T,j-1,a),b+=4):this._tweenRotation(S,T,b):(a=this.add(S,b,S[b],T[b],0,0,0,0,0,1),a=this.add(S,b+1,S[b+1],T[b+1],0,0,0,0,0,1)||a))}else a=this.add(e,"setAttribute",e.getAttribute(l)+"",s+"",n,o,0,ne(p),l);R&&(this.add(this._origin,"x",this._origin.x,this._eOrigin.x,0,0,0,0,0,1),a=this.add(this._origin,"y",this._origin.y,this._eOrigin.y,0,0,0,0,0,1)),a&&(this._props.push("morphSVG"),a.end=s,a.endProp=l)}return q},render(e,t){let r,n,o,i,l,a,s,h,p,g,c,d,f,u=t._rawPath,y=t._controlPT,_=t._anchorPT,m=t._rnd,w=t._target,x=t._pt;for(;x;)x.r(e,x.d),x=x._next;if(1===e&&t._apply)for(x=t._pt;x;)x.end&&(t._prop?w[t._prop]=x.end:w.setAttribute(x.endProp,x.end)),x=x._next;else if(u){for(;_;)a=_.sa+e*_.ca,l=_.sl+e*_.cl,_.t[_.i]=t._origin.x+S(a)*l,_.t[_.i+1]=t._origin.y+T(a)*l,_=_._next;for(o=e<.5?2*e*e:(4-2*e)*e-1;y;)s=y.i,i=u[y.j],f=s+(s===i.length-4?7-i.length:5),a=v(i[f]-i[s+1],i[f-1]-i[s]),c=T(a),d=S(a),p=i[s+2],g=i[s+3],l=y.l1s+o*y.l1c,i[s]=p-d*l,i[s+1]=g-c*l,l=y.l2s+o*y.l2c,i[f-1]=p+d*l,i[f]=g+c*l,y=y._next;if(w._gsRawPath=u,t._apply){for(r="",n=" ",h=0;h<u.length;h++)for(i=u[h],l=i.length,r+="M"+(i[0]*m|0)/m+" "+(i[1]*m|0)/m+" C",s=2;s<l;s++)r+=(i[s]*m|0)/m+" ";t._prop?w[t._prop]=r:w.setAttribute("d",r)}}t._render&&u&&t._render.call(t._tween,u,w)},kill(e){this._pt=this._rawPath=0},getRawPath:function(e){let t,r=(e=h(e)&&n.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return r&&(e=e.getAttribute("d"))?(r._gsPath||(r._gsPath={}),t=r._gsPath[e],t&&!t._dirty?t:r._gsPath[e]=y(e)):e?h(e)?y(e):p(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")},stringToRawPath:y,rawPathToString:_,normalizeStrings(e,t,{shapeIndex:r,map:n}){let o=[e,t];return ee(o,r,n),o},pathFilter:ee,pointsFilter:re,getTotalSize:U,equalizeSegmentQuantity:K,convertToPath:(e,t)=>w(e).map(e=>f(e,!1!==t)),defaultType:"linear",defaultUpdateTarget:!0,defaultMap:"size"};P()&&m.registerPlugin(he);export default he;export{he as MorphSVGPlugin}; |
/*! | ||
* MotionPathHelper 3.12.4 | ||
* MotionPathHelper 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
let t,e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,s=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,i=Math.PI/180,n=Math.sin,o=Math.cos,r=Math.abs,a=Math.sqrt,h=t=>Math.round(1e5*t)/1e5||0,l=(t,e)=>(e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e);function c(t){let e=[],s=0;for(;s<t.length;s++)e[s]=l(t[s],t[s].slice(0));return l(t,e)}function d(t,e,s,i,n,o,r){let a,h,l,c,d,g=t.length;for(;--g>-1;)for(a=t[g],h=a.length,l=0;l<h;l+=2)c=a[l],d=a[l+1],a[l]=c*e+d*i+o,a[l+1]=c*s+d*n+r;return t._dirty=1,t}function g(t,e,s,h,l,c,d,g,p){if(t===g&&e===p)return;s=r(s),h=r(h);let u=l%360*i,_=o(u),f=n(u),m=Math.PI,b=2*m,v=(t-g)/2,y=(e-p)/2,A=_*v+f*y,w=-f*v+_*y,P=A*A,x=w*w,C=P/(s*s)+x/(h*h);C>1&&(s=a(C)*s,h=a(C)*h);let S=s*s,E=h*h,k=(S*E-S*x-E*P)/(S*x+E*P);k<0&&(k=0);let M=(c===d?-1:1)*a(k),D=M*(s*w/h),T=M*(-h*A/s),H=(t+g)/2+(_*D-f*T),N=(e+p)/2+(f*D+_*T),R=(A-D)/s,L=(w-T)/h,X=(-A-D)/s,O=(-w-T)/h,I=R*R+L*L,q=(L<0?-1:1)*Math.acos(R/a(I)),Y=(R*O-L*X<0?-1:1)*Math.acos((R*X+L*O)/a(I*(X*X+O*O)));isNaN(Y)&&(Y=m),!d&&Y>0?Y-=b:d&&Y<0&&(Y+=b),q%=b,Y%=b;let V,j=Math.ceil(r(Y)/(b/4)),z=[],G=Y/j,W=4/3*n(G/2)/(1+o(G/2)),B=_*s,F=f*s,U=f*-h,Z=_*h;for(V=0;V<j;V++)A=o(l=q+V*G),w=n(l),R=o(l+=G),L=n(l),z.push(A-W*w,w+W*A,R+W*L,L-W*R,R,L);for(V=0;V<z.length;V+=2)A=z[V],w=z[V+1],z[V]=A*B+w*U+H,z[V+1]=A*F+w*Z+N;return z[V-2]=g,z[V-1]=p,z}function p(t){let i,n,o,a,h,l,c,d,p,u,_,f,m,b,v,y=(t+"").replace(s,t=>{let e=+t;return e<1e-4&&e>-1e-4?0:e}).match(e)||[],A=[],w=0,P=0,x=y.length,C=0,S="ERROR: malformed path: "+t,E=function(t,e,s,i){u=(s-t)/3,_=(i-e)/3,c.push(t+u,e+_,s-u,i-_,s,i)};if(!t||!isNaN(y[0])||isNaN(y[1]))return console.log(S),A;for(i=0;i<x;i++)if(m=h,isNaN(y[i])?(h=y[i].toUpperCase(),l=h!==y[i]):i--,o=+y[i+1],a=+y[i+2],l&&(o+=w,a+=P),i||(d=o,p=a),"M"===h)c&&(c.length<8?A.length-=1:C+=c.length),w=d=o,P=p=a,c=[o,a],A.push(c),i+=2,h="L";else if("C"===h)c||(c=[0,0]),l||(w=P=0),c.push(o,a,w+1*y[i+3],P+1*y[i+4],w+=1*y[i+5],P+=1*y[i+6]),i+=6;else if("S"===h)u=w,_=P,"C"!==m&&"S"!==m||(u+=w-c[c.length-4],_+=P-c[c.length-3]),l||(w=P=0),c.push(u,_,o,a,w+=1*y[i+3],P+=1*y[i+4]),i+=4;else if("Q"===h)u=w+2/3*(o-w),_=P+2/3*(a-P),l||(w=P=0),w+=1*y[i+3],P+=1*y[i+4],c.push(u,_,w+2/3*(o-w),P+2/3*(a-P),w,P),i+=4;else if("T"===h)u=w-c[c.length-4],_=P-c[c.length-3],c.push(w+u,P+_,o+2/3*(w+1.5*u-o),a+2/3*(P+1.5*_-a),w=o,P=a),i+=2;else if("H"===h)E(w,P,w=o,P),i+=1;else if("V"===h)E(w,P,w,P=o+(l?P-w:0)),i+=1;else if("L"===h||"Z"===h)"Z"===h&&(o=d,a=p,c.closed=!0),("L"===h||r(w-o)>.5||r(P-a)>.5)&&(E(w,P,o,a),"L"===h&&(i+=2)),w=o,P=a;else if("A"===h){if(b=y[i+4],v=y[i+5],u=y[i+6],_=y[i+7],n=7,b.length>1&&(b.length<3?(_=u,u=v,n--):(_=v,u=b.substr(2),n-=2),v=b.charAt(1),b=b.charAt(0)),f=g(w,P,+y[i+1],+y[i+2],+y[i+3],+b,+v,(l?w:0)+1*u,(l?P:0)+1*_),i+=n,f)for(n=0;n<f.length;n++)c.push(f[n]);w=c[c.length-2],P=c[c.length-1]}else console.log(S);return i=c.length,i<6?(A.pop(),i=0):c[0]===c[i-2]&&c[1]===c[i-1]&&(c.closed=!0),A.totalPoints=C+i,A}function u(t,e,s,i,n,o,a,h,l,c,d){let g,p=(t+s)/2,_=(e+i)/2,f=(s+n)/2,m=(i+o)/2,b=(n+a)/2,v=(o+h)/2,y=(p+f)/2,A=(_+m)/2,w=(f+b)/2,P=(m+v)/2,x=(y+w)/2,C=(A+P)/2,S=a-t,E=h-e,k=r((s-a)*E-(i-h)*S),M=r((n-a)*E-(o-h)*S);return c||(c=[t,e,a,h],d=2),c.splice(d||c.length-2,0,x,C),(k+M)*(k+M)>l*(S*S+E*E)&&(g=c.length,u(t,e,p,_,y,A,x,C,l,c,d),u(x,C,w,P,b,v,a,h,l,c,d+2+(c.length-g))),c}function _(t,e){r(t[0]-t[2])<1e-4&&r(t[1]-t[3])<1e-4&&(t=t.slice(2));let s,i,n,o,l,c,d,g,p,u,_,f,m,b,v,y=t.length-2,A=+t[0],w=+t[1],P=+t[2],x=+t[3],C=[A,w,A,w],S=P-A,E=x-w,k=Math.abs(t[y]-A)<.001&&Math.abs(t[y+1]-w)<.001;for(k&&(t.push(P,x),P=A,x=w,A=t[y-2],w=t[y-1],t.unshift(A,w),y+=4),e=e||0===e?+e:1,n=2;n<y;n+=2)s=A,i=w,A=P,w=x,P=+t[n+2],x=+t[n+3],A===P&&w===x||(o=S,l=E,S=P-A,E=x-w,c=a(o*o+l*l),d=a(S*S+E*E),g=a((S/d+o/c)**2+(E/d+l/c)**2),p=(c+d)*e*.25/g,u=A-(A-s)*(c?p/c:0),_=A+(P-A)*(d?p/d:0),f=A-(u+((_-u)*(3*c/(c+d)+.5)/4||0)),m=w-(w-i)*(c?p/c:0),b=w+(x-w)*(d?p/d:0),v=w-(m+((b-m)*(3*c/(c+d)+.5)/4||0)),A===s&&w===i||C.push(h(u+f),h(m+v),h(A),h(w),h(_+f),h(b+v)));return A!==P||w!==x||C.length<4?C.push(h(P),h(x),h(P),h(x)):C.length-=2,2===C.length?C.push(A,w,A,w,A,w):k&&(C.splice(0,6),C.length=C.length-6),C}function f(t,e,s,i,n,o){let r,a=n-s,h=o-i;return(a||h)&&(r=((t-s)*a+(e-i)*h)/(a*a+h*h),r>1?(s=n,i=o):r>0&&(s+=a*r,i+=h*r)),(t-s)**2+(e-i)**2}function m(t,e){let s,i,n,o,r,a,h,l=parseFloat(t[0]),c=parseFloat(t[1]),d=[l,c],g=t.length-2;for(e=(e||1)**2,s=2;s<g;s+=2)i=parseFloat(t[s]),n=parseFloat(t[s+1]),o=l-i,r=c-n,o*o+r*r>e&&(d.push(i,n),l=i,c=n);return d.push(parseFloat(t[g]),parseFloat(t[g+1])),h=d.length-2,a=[d[0],d[1]],function t(e,s,i,n,o){let r,a,h,l=n,c=e[s],d=e[s+1],g=e[i],p=e[i+1];for(a=s+2;a<i;a+=2)h=f(e[a],e[a+1],c,d,g,p),h>l&&(r=a,l=h);l>n&&(r-s>2&&t(e,s,r,n,o),o.push(e[r],e[r+1]),i-r>2&&t(e,r,i,n,o))}(d,0,h,e,a),a.push(d[h],d[h+1]),a}function b(e,s,i,n,o,r,a,h,l,c,d,g,p,u){let _,f,m,v,y,A,w=(o-n)/r,P=0,x=n;for(t=1e8;x<=o;)A=1-x,_=A*A*A*a+3*A*A*x*l+3*A*x*x*d+x*x*x*p,f=A*A*A*h+3*A*A*x*c+3*A*x*x*g+x*x*x*u,v=_-s,y=f-i,m=v*v+y*y,m<t&&(t=m,P=x),x+=w;return e>1?b(e-1,s,i,Math.max(P-w,0),Math.min(P+w,1),r,a,h,l,c,d,g,p,u):P}let v,y,A,w,P,x,C,S,E,k="transform",M=k+"Origin",D=t=>{let e=t.ownerDocument||t;!(k in t.style)&&"msTransform"in t.style&&(k="msTransform",M=k+"Origin");for(;e.parentNode&&(e=e.parentNode););if(y=window,C=new I,e){v=e,A=e.documentElement,w=e.body,S=v.createElementNS("http://www.w3.org/2000/svg","g"),S.style.transform="none";let t=e.createElement("div"),s=e.createElement("div"),i=e&&(e.body||e.firstElementChild);i&&i.appendChild&&(i.appendChild(t),t.appendChild(s),t.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),E=s.offsetParent!==t,i.removeChild(t))}return e},T=[],H=[],N=t=>t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null),R=t=>"fixed"===y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?R(t):void 0),L=(t,e)=>{if(t.parentNode&&(v||D(t))){let s=N(t),i=s?s.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",n=s?e?"rect":"g":"div",o=2!==e?0:100,r=3===e?100:0,a="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",h=v.createElementNS?v.createElementNS(i.replace(/^https/,"http"),n):v.createElement(n);return e&&(s?(x||(x=L(t)),h.setAttribute("width",.01),h.setAttribute("height",.01),h.setAttribute("transform","translate("+o+","+r+")"),x.appendChild(h)):(P||(P=L(t),P.style.cssText=a),h.style.cssText=a+"width:0.1px;height:0.1px;top:"+r+"px;left:"+o+"px",P.appendChild(h))),h}throw"Need document and parent."},X=(t,e)=>{let s,i,n,o,r,a,h=N(t),l=t===h,c=h?T:H,d=t.parentNode;if(t===y)return t;if(c.length||c.push(L(t,1),L(t,2),L(t,3)),s=h?x:P,h)l?(n=(t=>{let e,s=t.getCTM();return s||(e=t.style[k],t.style[k]="none",t.appendChild(S),s=S.getCTM(),t.removeChild(S),e?t.style[k]=e:t.style.removeProperty(k.replace(/([A-Z])/g,"-$1").toLowerCase())),s||C.clone()})(t),o=-n.e/n.a,r=-n.f/n.d,i=C):t.getBBox?(n=t.getBBox(),i=t.transform?t.transform.baseVal:{},i=i.numberOfItems?i.numberOfItems>1?(t=>{let e=new I,s=0;for(;s<t.numberOfItems;s++)e.multiply(t.getItem(s).matrix);return e})(i):i.getItem(0).matrix:C,o=i.a*n.x+i.c*n.y,r=i.b*n.x+i.d*n.y):(i=new I,o=r=0),e&&"g"===t.tagName.toLowerCase()&&(o=r=0),(l?h:d).appendChild(s),s.setAttribute("transform","matrix("+i.a+","+i.b+","+i.c+","+i.d+","+(i.e+o)+","+(i.f+r)+")");else{if(o=r=0,E)for(i=t.offsetParent,n=t;n&&(n=n.parentNode)&&n!==i&&n.parentNode;)(y.getComputedStyle(n)[k]+"").length>4&&(o=n.offsetLeft,r=n.offsetTop,n=0);if(a=y.getComputedStyle(t),"absolute"!==a.position&&"fixed"!==a.position)for(i=t.offsetParent;d&&d!==i;)o+=d.scrollLeft||0,r+=d.scrollTop||0,d=d.parentNode;n=s.style,n.top=t.offsetTop-r+"px",n.left=t.offsetLeft-o+"px",n[k]=a[k],n[M]=a[M],n.position="fixed"===a.position?"fixed":"absolute",t.parentNode.appendChild(s)}return s},O=(t,e,s,i,n,o,r)=>(t.a=e,t.b=s,t.c=i,t.d=n,t.e=o,t.f=r,t);class I{constructor(t=1,e=0,s=0,i=1,n=0,o=0){O(this,t,e,s,i,n,o)}inverse(){let{a:t,b:e,c:s,d:i,e:n,f:o}=this,r=t*i-e*s||1e-10;return O(this,i/r,-e/r,-s/r,t/r,(s*o-i*n)/r,-(t*o-e*n)/r)}multiply(t){let{a:e,b:s,c:i,d:n,e:o,f:r}=this,a=t.a,h=t.c,l=t.b,c=t.d,d=t.e,g=t.f;return O(this,a*e+l*i,a*s+l*n,h*e+c*i,h*s+c*n,o+d*e+g*i,r+d*s+g*n)}clone(){return new I(this.a,this.b,this.c,this.d,this.e,this.f)}equals(t){let{a:e,b:s,c:i,d:n,e:o,f:r}=this;return e===t.a&&s===t.b&&i===t.c&&n===t.d&&o===t.e&&r===t.f}apply(t,e={}){let{x:s,y:i}=t,{a:n,b:o,c:r,d:a,e:h,f:l}=this;return e.x=s*n+i*r+h||0,e.y=s*o+i*a+l||0,e}}function q(t,e,s,i){if(!t||!t.parentNode||(v||D(t)).documentElement===t)return new I;let n=(t=>{let e,s;for(;t&&t!==w;)s=t._gsap,s&&s.uncache&&s.get(t,"x"),s&&!s.scaleX&&!s.scaleY&&s.renderTransform&&(s.scaleX=s.scaleY=1e-4,s.renderTransform(1,s),e?e.push(s):e=[s]),t=t.parentNode;return e})(t),o=N(t)?T:H,r=X(t,s),a=o[0].getBoundingClientRect(),h=o[1].getBoundingClientRect(),l=o[2].getBoundingClientRect(),c=r.parentNode,d=!i&&R(t),g=new I((h.left-a.left)/100,(h.top-a.top)/100,(l.left-a.left)/100,(l.top-a.top)/100,a.left+(d?0:y.pageXOffset||v.scrollLeft||A.scrollLeft||w.scrollLeft||0),a.top+(d?0:y.pageYOffset||v.scrollTop||A.scrollTop||w.scrollTop||0));if(c.removeChild(r),n)for(a=n.length;a--;)h=n[a],h.scaleX=h.scaleY=0,h.renderTransform(1,h);return e?g.inverse():g}let Y,V,j,z,G,W,B,F,U,Z,$,K,Q,J,tt,et=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,st=Math.PI/180,it=Date.now||(()=>(new Date).getTime()),nt=0,ot=0,rt=()=>!1,at={},ht=[],lt={},ct=[],dt=[],gt=t=>{t.preventDefault&&(t.preventDefault(),t.preventManipulation&&t.preventManipulation())},pt=t=>Y.createElementNS?Y.createElementNS("http://www.w3.org/1999/xhtml",t):Y.createElement(t),ut=(t,e,s)=>{let i,n=Y.createElementNS("http://www.w3.org/2000/svg",t),o=/([a-z])([A-Z])/g;for(i in(s=s||{}).class=s.class||"path-editor",s)void 0!==n.style[i]?n.style[i]=s[i]:n.setAttributeNS(null,i.replace(o,"$1-$2").toLowerCase(),s[i]);return e.appendChild(n),n},_t={matrix:new I},ft=t=>(t.transform&&t.transform.baseVal.consolidate()||_t).matrix,mt=t=>~~(1e3*t+(t<0?-.5:.5))/1e3,bt=function(t){if(!t.target._gsSelection&&!ot&&it()-nt>100){let t=dt.length;for(;--t>-1;)dt[t].deselect();dt.length=0}},vt=0,yt=(t,e,s,i)=>{if(t.addEventListener){let n=Q[e];i=i||{passive:!1},t.addEventListener(n||e,s,i),n&&e!==n&&"pointer"!==n.substr(0,7)&&t.addEventListener(e,s,i)}else t.attachEvent&&t.attachEvent("on"+e,s)},At=(t,e,s)=>{if(t.removeEventListener){let i=Q[e];t.removeEventListener(i||e,s),i&&e!==i&&"pointer"!==i.substr(0,7)&&t.removeEventListener(e,s)}else t.detachEvent&&t.detachEvent("on"+e,s)},wt=t=>{vt=t.touches&&_dragCount<t.touches.length,At(t.target,"touchend",wt)},Pt=t=>{vt=t.touches&&_dragCount<t.touches.length,yt(t.target,"touchend",wt)},xt=(t,e)=>s=>t.call(e,s),Ct=(t,e,s)=>{let i=e.vars[t];return i&&i.call(e.vars.callbackScope||e,s||e),e},St=()=>{J.style.display="block",J.select(),J.style.display="none"},Et=t=>{Y=document,j=window,z=Y.body,G=G||t||j.gsap||console.warn("Please gsap.registerPlugin(PathEditor)"),W=G&&G.core.context||function(){},K=pt("div"),J=pt("textarea"),J.style.display="none",z&&z.appendChild(J),Q=function(t){let e=t.split(","),s=(void 0!==K.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==K.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),i={},n=4;for(;--n>-1;)i[e[n]]=s[n],i[s[n]]=e[n];return i}("touchstart,touchmove,touchend,touchcancel"),SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())},Y.addEventListener("keydown",(function(t){let e,s,i,n,o=t.keyCode||t.which,r=t.key||o;if("Shift"===r||16===o)U=!0;else if("Control"===r||17===o)B=!0;else if("Meta"===r||91===o)Z=!0;else if("Alt"===r||18===o)for(F=!0,e=dt.length;--e>-1;)dt[e]._onPressAlt();else if(("z"===r||90===o)&&(B||Z)&&ht.length>1){if(ht.shift(),s=ht[0],s){for(n=s.path,n.path.setAttribute("d",s.d),n.path.setAttribute("transform",s.transform),n.init(),i=n._anchors,e=0;e<i.length;e++)-1!==s.selectedIndexes.indexOf(i[e].i)&&n._selectedAnchors.push(i[e]);n._updateAnchors(),n.update(),n.vars.onUndo&&n.vars.onUndo.call(n)}}else if("Delete"===r||"Backspace"===r||8===o||46===o||63272===o||"d"===o&&(B||Z))for(e=dt.length;--e>-1;)dt[e]._deleteSelectedAnchors();else if(("a"===r||65===o)&&(Z||B))for(e=dt.length;--e>-1;)dt[e].select(!0)}),!0),Y.addEventListener("keyup",(function(t){let e=t.key||t.keyCode||t.which;if("Shift"===e||16===e)U=!1;else if("Control"===e||17===e)B=!1;else if("Meta"===e||91===e)Z=!1;else if("Alt"===e||18===e){F=!1;let t=dt.length;for(;--t>-1;)dt[t]._onReleaseAlt()}}),!0),V=!!j.PointerEvent,yt(Y,"mouseup",bt),yt(Y,"touchend",bt),yt(Y,"touchcancel",rt),yt(j,"touchmove",rt),z&&z.addEventListener("touchstart",rt),tt=1},kt=function(t){let e,s,i=this,n=q(i.target.parentNode,!0);this._matrix=this.target.transform.baseVal.getItem(0).matrix,this._ctm=n,Q[t.type]?(e=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:Y,yt(e,"touchend",i._onRelease),yt(e,"touchmove",i._onMove),yt(e,"touchcancel",i._onRelease),yt(Y,"touchstart",Pt),yt(j,"touchforcechange",gt)):(e=null,yt(Y,"mousemove",i._onMove)),V||yt(Y,"mouseup",i._onRelease),gt(t),St(),t.changedTouches?(t=i.touch=t.changedTouches[0],i.touchID=t.identifier):t.pointerId?i.touchID=t.pointerId:i.touch=i.touchID=null,i._startPointerY=i.pointerY=t.pageY,i._startPointerX=i.pointerX=t.pageX,i._startElementX=i._matrix.e,i._startElementY=i._matrix.f,1===this._ctm.a&&0===this._ctm.b&&0===this._ctm.c&&1===this._ctm.d?this._ctm=null:(s=i._startPointerX*this._ctm.a+i._startPointerY*this._ctm.c+this._ctm.e,i._startPointerY=i._startPointerX*this._ctm.b+i._startPointerY*this._ctm.d+this._ctm.f,i._startPointerX=s),i.isPressed=ot=!0,i.touchEventTarget=e,i.vars.onPress&&i.vars.onPress.call(i.vars.callbackScope||i,i.pointerEvent)},Mt=function(t){let e,s,i=this,n=t;if(i._enabled&&!vt&&i.isPressed&&t){if(i.pointerEvent=t,e=t.changedTouches,e){if((t=e[0])!==i.touch&&t.identifier!==i.touchID){for(s=e.length;--s>-1&&(t=e[s]).identifier!==i.touchID;);if(s<0)return}}else if(t.pointerId&&i.touchID&&t.pointerId!==i.touchID)return;gt(n),i.setPointerPosition(t.pageX,t.pageY),i.vars.onDrag&&i.vars.onDrag.call(i.vars.callbackScope||i,i.pointerEvent)}},Dt=function(t,e){let s=this;if(!s._enabled||!s.isPressed||t&&null!=s.touchID&&!e&&(t.pointerId&&t.pointerId!==s.touchID||t.changedTouches&&!((t,e)=>{let s=t.length;for(;--s>-1;)if(t[s].identifier===e)return!0;return!1})(t.changedTouches,s.touchID)))return;nt=it(),s.isPressed=ot=!1;let i,n,o=t,r=s.isDragging,a=s.touchEventTarget;if(a?(At(a,"touchend",s._onRelease),At(a,"touchmove",s._onMove),At(a,"touchcancel",s._onRelease),At(Y,"touchstart",Pt)):At(Y,"mousemove",s._onMove),V||(At(Y,"mouseup",s._onRelease),t&&t.target&&At(t.target,"mouseup",s._onRelease)),r?s.isDragging=!1:s.vars.onClick&&s.vars.onClick.call(s.vars.callbackScope||s,o),t){if(i=t.changedTouches,i&&(t=i[0])!==s.touch&&t.identifier!==s.touchID){for(n=i.length;--n>-1&&(t=i[n]).identifier!==s.touchID;);if(n<0)return}s.pointerEvent=o,s.pointerX=t.pageX,s.pointerY=t.pageY}return o&&!r&&s.vars.onDragRelease?s.vars.onDragRelease.call(s,s.pointerEvent):(o&>(o),s.vars.onRelease&&s.vars.onRelease.call(s.vars.callbackScope||s,s.pointerEvent)),r&&s.vars.onDragEnd&&s.vars.onDragEnd.call(s.vars.callbackScope||s,s.pointerEvent),!0},Tt=(t,e,s,i)=>{let n,o=t[e],r=o.length-(o.closed?6:0),a=[];for(n=0;n<r;n+=6)a.push(new Rt(s,t,e,n,i));return o.closed&&(a[0].isClosedStart=!0),a},Ht=(t,e,s)=>{let i=t[s]-t[e],n=t[s+1]-t[e+1];return Math.sqrt(i*i+n*n)};class Nt{constructor(t,e){this.target="string"==typeof t?Y.querySelectorAll(t)[0]:t,this.vars=e||{},this._onPress=xt(kt,this),this._onMove=xt(Mt,this),this._onRelease=xt(Dt,this),this.target.setAttribute("transform",(this.target.getAttribute("transform")||"")+" translate(0,0)"),this._matrix=ft(this.target),this.x=this._matrix.e,this.y=this._matrix.f,this.snap=e.snap,isNaN(e.maxX)&&isNaN(e.minX)?this._bounds=0:(this._bounds=1,this.maxX=+e.maxX,this.minX=+e.minX),this.enabled(!0)}setPointerPosition(t,e){let s,i,n,o,r;this.pointerX=t,this.pointerY=e,this._ctm&&(r=t*this._ctm.a+e*this._ctm.c+this._ctm.e,e=t*this._ctm.b+e*this._ctm.d+this._ctm.f,t=r),i=e-this._startPointerY,s=t-this._startPointerX,i<1&&i>-1&&(i=0),s<1&&s>-1&&(s=0),n=(1e3*(this._startElementX+s)|0)/1e3,o=(1e3*(this._startElementY+i)|0)/1e3,this.snap&&!U&&(lt.x=n,lt.y=o,this.snap.call(this,lt),n=lt.x,o=lt.y),this.x===n&&this.y===o||(this._matrix.f=this.y=o,this._matrix.e=this.x=n,!this.isDragging&&this.isPressed&&(this.isDragging=!0,Ct("onDragStart",this,this.pointerEvent)))}enabled(t){if(!arguments.length)return this._enabled;let e;return this._enabled=t,t?(V||yt(this.target,"mousedown",this._onPress),yt(this.target,"touchstart",this._onPress),yt(this.target,"click",this._onClick,!0)):(e=this.isDragging,At(this.target,"mousedown",this._onPress),At(this.target,"touchstart",this._onPress),At(j,"touchforcechange",gt),At(this.target,"click",this._onClick),this.touchEventTarget&&(At(this.touchEventTarget,"touchcancel",this._onRelease),At(this.touchEventTarget,"touchend",this._onRelease),At(this.touchEventTarget,"touchmove",this._onMove)),At(Y,"mouseup",this._onRelease),At(Y,"mousemove",this._onMove),this.isDragging=this.isPressed=!1,e&&Ct("onDragEnd",this,this.pointerEvent)),this}endDrag(t){this._onRelease(t)}}class Rt{constructor(t,e,s,i,n){this.editor=t,this.element=ut("path",t._selection,{fill:"#4e7fff",stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this.update(e,s,i),this.element._gsSelection=!0,this.vars=n||{},this._draggable=new Nt(this.element,{callbackScope:this,onDrag:this.onDrag,snap:this.vars.snap,onPress:this.onPress,onRelease:this.onRelease,onClick:this.onClick,onDragEnd:this.onDragEnd})}onPress(){Ct("onPress",this)}onClick(){Ct("onClick",this)}onDrag(){let t=this.segment;this.vars.onDrag.call(this.vars.callbackScope||this,this,this._draggable.x-t[this.i],this._draggable.y-t[this.i+1])}onDragEnd(){Ct("onDragEnd",this)}onRelease(){Ct("onRelease",this)}update(t,e,s){t&&(this.rawPath=t),arguments.length<=1?(e=this.j,s=this.i):(this.j=e,this.i=s);let i=this.smooth,n=this.rawPath[e],o=0===s&&n.closed?n.length-4:s-2;this.segment=n,this.smooth=s>0&&s<n.length-2&&Math.abs(Math.atan2(n[s+1]-n[o+1],n[s]-n[o])-Math.atan2(n[s+3]-n[s+1],n[s+2]-n[s]))<.09?2:0,this.smooth!==i&&this.element.setAttribute("d",this.smooth?this.editor._circleHandle:this.editor._squareHandle),this.element.setAttribute("transform","translate("+n[s]+","+n[s+1]+")")}}class Lt{constructor(t,e){e=e||{},tt||Et(),this.vars=e,this.path="string"==typeof t?Y.querySelectorAll(t)[0]:t,this._g=ut("g",this.path.ownerSVGElement,{class:"path-editor-g path-editor"}),this._selectionHittest=ut("path",this._g,{stroke:"transparent",strokeWidth:16,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selection=e._selection||ut("g",this._g,{class:"path-editor-selection path-editor"}),this._selectionPath=ut("path",this._selection,{stroke:"#4e7fff",strokeWidth:2,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selectedAnchors=[],this._line1=ut("polyline",this._selection,{stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line2=ut("polyline",this._selection,{stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line1.style.pointerEvents=this._line2.style.pointerEvents=this._selectionPath.style.pointerEvents="none",this._enabled=!0;let s=this.path.parentNode.getScreenCTM().inverse(),i=(s.a+s.d)/2*(e.handleSize||5);this._squareHandle=(t=>["M-"+(t=mt(t)),-t,t,-t,t,t,-t,t+"z"].join(","))(i),this._circleHandle=(t=>{let e=mt(.552284749831*t);return"M"+(t=mt(t))+",0C"+[t,e,e,t,0,t,-e,t,-t,e,-t,0,-t,-e,-e,-t,0,-t,e,-t,t,-e,t,0].join(",")+"z"})(1.15*i),this._handle1=ut("path",this._selection,{d:this._squareHandle,fill:"#4e7fff",stroke:"transparent",strokeWidth:6}),this._handle2=ut("path",this._selection,{d:this._squareHandle,fill:"#4e7fff",stroke:"transparent",strokeWidth:6}),this._handle1._draggable=new Nt(this._handle1,{onDrag:this._onDragHandle1,callbackScope:this,onPress:this._onPressHandle1,onRelease:this._onReleaseHandle,onClick:this._onClickHandle1,snap:e.handleSnap}),this._handle2._draggable=new Nt(this._handle2,{onDrag:this._onDragHandle2,callbackScope:this,onPress:this._onPressHandle2,onRelease:this._onReleaseHandle,onClick:this._onClickHandle2,snap:e.handleSnap}),this._handle1.style.visibility=this._handle2.style.visibility="hidden";let n=[this._handle1,this._handle2,this._line1,this._line2,this._selection,this._selectionPath,this._selectionHittest],o=n.length;for(;--o>-1;)n[o]._gsSelection=!0;!1!==e.draggable&&(this._draggable=new Nt(this._selectionHittest,{callbackScope:this,onPress:this.select,onRelease:this._onRelease,onDrag:this._onDragPath,onDragEnd:this._saveState,maxX:this.vars.maxX,minX:this.vars.minX})),this.init(),this._selection.style.visibility=!1===e.selected?"hidden":"visible",!1!==e.selected&&(this.path._gsSelection=!0,dt.push(this)),this._saveState(),V||(yt(this._selectionHittest,"mousedown",xt(this._onClickSelectionPath,this)),yt(this._selectionHittest,"mouseup",xt(this._onRelease,this))),yt(this._selectionHittest,"touchstart",xt(this._onClickSelectionPath,this)),yt(this._selectionHittest,"touchend",xt(this._onRelease,this)),W(this)}_onRelease(t){let e=this._editingAnchor;e&&(at.x=e.segment[e.i],at.y=e.segment[e.i+1]),At(j,"touchforcechange",gt),Ct("onRelease",this,t)}init(){let t,e,s=this.path.getAttribute("d"),i=p(s),n=this.path.getAttribute("transform")||"translate(0,0)",o=!this._rawPath||i.totalPoints!==this._rawPath.totalPoints||i.length!==this._rawPath.length,r={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX};if(o&&this._anchors&&this._anchors.length){for(e=0;e<this._anchors.length;e++)this._anchors[e].element.parentNode.removeChild(this._anchors[e].element),this._anchors[e]._draggable.enabled(!1);this._selectedAnchors.length=0}if(this._rawPath=i,o){if(this._anchors=Tt(i,0,this,r),t=i.length,t>1)for(e=1;e<t;e++)this._anchors=this._anchors.concat(Tt(i,e,this,r))}else for(e=this._anchors.length;--e>-1;)this._anchors[e].update(i);return this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),this._selectionPath.setAttribute("d",s),this._selectionHittest.setAttribute("d",s),this._g.setAttribute("transform",(t=>{let e=ft(t),s=t.ownerSVGElement;for(;(t=t.parentNode)&&t.ownerSVGElement===s;)e.multiply(ft(t));return"matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")"})(this.path.parentNode)||"translate(0,0)"),this._selection.setAttribute("transform",n),this._selectionHittest.setAttribute("transform",n),this._updateAnchors(),this}_saveState(){(t=>{let e,s=[],i=t._selectedAnchors;for(e=0;e<i.length;e++)s[e]=i[e].i;ht.unshift({path:t,d:t.path.getAttribute("d"),transform:t.path.getAttribute("transform")||"",selectedIndexes:s}),ht.length>30&&(ht.length=30)})(this)}_onClickSelectionPath(e){if("hidden"===this._selection.style.visibility)this.select();else if(F||e&&e.altKey){let s,i,n,o,r,a,l={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX},c=this._selection.getScreenCTM().inverse();for(this._draggable&&this._draggable._onRelease(e),c&&(o=e.clientX*c.a+e.clientY*c.c+c.e,r=e.clientX*c.b+e.clientY*c.d+c.f),a=function(e,s,i,n){let o,r,a,h,l={j:0,i:0,t:0},c=1e8;for(r=0;r<e.length;r++)for(h=e[r],o=0;o<h.length;o+=6)a=b(1,s,i,0,1,n||20,h[o],h[o+1],h[o+2],h[o+3],h[o+4],h[o+5],h[o+6],h[o+7]),c>t&&(c=t,l.j=r,l.i=o,l.t=a);return l}(this._rawPath,o,r),function(t,e,s){if(s<=0||s>=1)return 0;let i=t[e],n=t[e+1],o=t[e+2],r=t[e+3],a=t[e+4],l=t[e+5],c=i+(o-i)*s,d=o+(a-o)*s,g=n+(r-n)*s,p=r+(l-r)*s,u=c+(d-c)*s,_=g+(p-g)*s,f=a+(t[e+6]-a)*s,m=l+(t[e+7]-l)*s;d+=(f-d)*s,p+=(m-p)*s,t.splice(e+2,4,h(c),h(g),h(u),h(_),h(u+(d-u)*s),h(_+(p-_)*s),h(d),h(p),h(f),h(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0)}(this._rawPath[a.j],a.i,a.t),s=a.i+6,i=0;i<this._anchors.length;i++)this._anchors[i].i>=s&&(this._anchors[i].i+=6);n=new Rt(this,this._rawPath,a.j,s,l),this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),n._draggable._onPress(e),$=n,this._anchors.push(n),this._selectedAnchors.length=0,this._selectedAnchors.push(n),this._updateAnchors(),this.update(),this._saveState()}St(),yt(j,"touchforcechange",gt),Ct("onPress",this)}_onClickHandle1(){let t=this._editingAnchor,e=t.i,s=t.segment,i=t.isClosedStart?s.length-4:e-2;F&&Math.abs(s[e]-s[i])<5&&Math.abs(s[e+1]-s[i+1])<5&&this._onClickAnchor(t)}_onClickHandle2(){let t=this._editingAnchor,e=t.i,s=t.segment;F&&Math.abs(s[e]-s[e+2])<5&&Math.abs(s[e+1]-s[e+3])<5&&this._onClickAnchor(t)}_onDragEndAnchor(t){$=null,this._saveState()}isSelected(){return this._selectedAnchors.length>0||"visible"===this._selection.style.visibility}select(t){if(this._selection.style.visibility="visible",this._editingAnchor=null,this.path._gsSelection=!0,!0===t){let t=this._anchors.length;for(;--t>-1;)this._selectedAnchors[t]=this._anchors[t]}return-1===dt.indexOf(this)&&dt.push(this),this._updateAnchors(),this}deselect(){return this._selection.style.visibility="hidden",this._selectedAnchors.length=0,this._editingAnchor=null,this.path._gsSelection=!1,dt.splice(dt.indexOf(this),1),this._updateAnchors(),this}_onDragPath(t){let e=this._selectionHittest.getAttribute("transform")||"translate(0,0)";this._selection.setAttribute("transform",e),this.path.setAttribute("transform",e)}_onPressAnchor(t){-1===this._selectedAnchors.indexOf(t)?(U||(this._selectedAnchors.length=0),this._selectedAnchors.push(t)):U&&(this._selectedAnchors.splice(this._selectedAnchors.indexOf(t),1),t._draggable.endDrag()),at.x=t.segment[t.i],at.y=t.segment[t.i+1],this._updateAnchors(),Ct("onPress",this)}_deleteSelectedAnchors(){let t,e,s,i=this._selectedAnchors,n=i.length;for(;--n>-1;)for(t=i[n],t.element.parentNode.removeChild(t.element),t._draggable.enabled(!1),e=t.i,e?e<t.segment.length-2?t.segment.splice(e-2,6):t.segment.splice(e-4,6):t.segment.splice(e,6),i.splice(n,1),this._anchors.splice(this._anchors.indexOf(t),1),s=0;s<this._anchors.length;s++)this._anchors[s].i>=e&&(this._anchors[s].i-=6);this._updateAnchors(),this.update(),this._saveState(),this.vars.onDeleteAnchor&&this.vars.onDeleteAnchor.call(this.vars.callbackScope||this)}_onClickAnchor(t){let e,s,i,n,o,r,a=t.i,h=t.segment,l=t.isClosedStart?h.length-4:a-2,c=!a||a>=h.length-2;F&&$!==t&&this._editingAnchor?(t.smooth=!t.smooth,c&&!t.isClosedStart&&(t.smooth=!1),t.element.setAttribute("d",t.smooth?this._circleHandle:this._squareHandle),!t.smooth||c&&!t.isClosedStart?t.smooth||c&&!t.isClosedStart||((a||t.isClosedStart)&&(h[l]=h[a],h[l+1]=h[a+1]),a<h.length-2&&(h[a+2]=h[a],h[a+3]=h[a+1]),this._updateAnchors(),this.update(),this._saveState()):(e=Math.atan2(h[a+1]-h[l+1],h[a]-h[l]),s=Math.atan2(h[a+3]-h[a+1],h[a+2]-h[a]),e=(e+s)/2,i=Ht(h,l,a),n=Ht(h,a,a+2),i<.2&&(i=Ht(h,a,l-4)/4,e=s||Math.atan2(h[a+7]-h[l-3],h[a+6]-h[l-4])),n<.2&&(n=Ht(h,a,a+6)/4,s=e||Math.atan2(h[a+7]-h[l-3],h[a+6]-h[l-4])),o=Math.sin(e),r=Math.cos(e),Math.abs(s-e)<Math.PI/2&&(o=-o,r=-r),h[l]=(1e3*(h[a]+r*i)|0)/1e3,h[l+1]=(1e3*(h[a+1]+o*i)|0)/1e3,h[a+2]=(1e3*(h[a]-r*n)|0)/1e3,h[a+3]=(1e3*(h[a+1]-o*n)|0)/1e3,this._updateAnchors(),this.update(),this._saveState())):U||(this._selectedAnchors.length=0,this._selectedAnchors.push(t)),$=null,this._updateAnchors()}_updateAnchors(){let t,e,s,i=1===this._selectedAnchors.length?this._selectedAnchors[0]:null,n=i?i.segment:null;for(this._editingAnchor=i,t=0;t<this._anchors.length;t++)this._anchors[t].element.style.fill=-1!==this._selectedAnchors.indexOf(this._anchors[t])?"#4e7fff":"white";i&&(this._handle1.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle),this._handle2.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle)),t=i?i.i:0,i&&(t||i.isClosedStart)?(e=i.isClosedStart?n[n.length-4]:n[t-2],s=i.isClosedStart?n[n.length-3]:n[t-1],this._handle1.style.visibility=this._line1.style.visibility=F||e!==n[t]||s!==n[t+1]?"visible":"hidden",this._handle1.setAttribute("transform","translate("+e+","+s+")"),this._line1.setAttribute("points",e+","+s+","+n[t]+","+n[t+1])):this._handle1.style.visibility=this._line1.style.visibility="hidden",i&&t<n.length-2?(e=n[t+2],s=n[t+3],this._handle2.style.visibility=this._line2.style.visibility=F||e!==n[t]||s!==n[t+1]?"visible":"hidden",this._handle2.setAttribute("transform","translate("+e+","+s+")"),this._line2.setAttribute("points",n[t]+","+n[t+1]+","+e+","+s)):this._handle2.style.visibility=this._line2.style.visibility="hidden"}_onPressAlt(){let t=this._editingAnchor;t&&((t.i||t.isClosedStart)&&(this._handle1.style.visibility=this._line1.style.visibility="visible"),t.i<t.segment.length-2&&(this._handle2.style.visibility=this._line2.style.visibility="visible"))}_onReleaseAlt(){let t,e,s,i=this._editingAnchor;i&&(t=i.segment,e=i.i,s=i.isClosedStart?t.length-4:e-2,t[e]===t[s]&&t[e+1]===t[s+1]&&(this._handle1.style.visibility=this._line1.style.visibility="hidden"),t[e]===t[e+2]&&t[e+1]===t[e+3]&&(this._handle2.style.visibility=this._line2.style.visibility="hidden"))}_onPressHandle1(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Ht(this._editingAnchor.segment,this._editingAnchor.i,this._editingAnchor.i+2)),Ct("onPress",this)}_onPressHandle2(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Ht(this._editingAnchor.segment,this._editingAnchor.isClosedStart?this._editingAnchor.segment.length-4:this._editingAnchor.i-2,this._editingAnchor.i)),Ct("onPress",this)}_onReleaseHandle(t){this._onRelease(t),this._saveState()}_onDragHandle1(){let t,e=this._editingAnchor,s=e.segment,i=e.i,n=e.isClosedStart?s.length-4:i-2,o=this._handle1._draggable.x,r=this._handle1._draggable.y;s[n]=o=(1e3*o|0)/1e3,s[n+1]=r=(1e3*r|0)/1e3,e.smooth&&(F?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(s[i+1]-r,s[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),s[i+2]=(1e3*(s[i]+o)|0)/1e3,s[i+3]=(1e3*(s[i+1]+r)|0)/1e3)),this.update()}_onDragHandle2(){let t,e=this._editingAnchor,s=e.segment,i=e.i,n=e.isClosedStart?s.length-4:i-2,o=this._handle2._draggable.x,r=this._handle2._draggable.y;s[i+2]=o=(1e3*o|0)/1e3,s[i+3]=r=(1e3*r|0)/1e3,e.smooth&&(F?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(s[i+1]-r,s[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),s[n]=(1e3*(s[i]+o)|0)/1e3,s[n+1]=(1e3*(s[i+1]+r)|0)/1e3)),this.update()}_onDragAnchor(t,e,s){let i,n,o,r,a,h=this._selectedAnchors,l=h.length,c=1e3;for(n=0;n<l;n++)r=h[n],i=r.i,o=r.segment,i?(o[i-2]=((o[i-2]+e)*c|0)/c,o[i-1]=((o[i-1]+s)*c|0)/c):r.isClosedStart&&(a=o.length-2,o[a]=mt(o[a]+e),o[a+1]=mt(o[a+1]+s),o[a-2]=mt(o[a-2]+e),o[a-1]=mt(o[a-1]+s)),o[i]=((o[i]+e)*c|0)/c,o[i+1]=((o[i+1]+s)*c|0)/c,i<o.length-2&&(o[i+2]=((o[i+2]+e)*c|0)/c,o[i+3]=((o[i+3]+s)*c|0)/c),r!==t&&r.element.setAttribute("transform","translate("+o[i]+","+o[i+1]+")");this.update()}enabled(t){if(!arguments.length)return this._enabled;let e=this._anchors.length;for(;--e>-1;)this._anchors[e]._draggable.enabled(t);return this._enabled=t,this._handle1._draggable.enabled(t),this._handle2._draggable.enabled(t),this._draggable&&this._draggable.enabled(t),t?this._selection.parentNode||(this.path.ownerSVGElement.appendChild(this._selectionHittest),this.path.ownerSVGElement.appendChild(this._selection),this.init(),this._saveState()):(this.deselect(),this._selectionHittest.parentNode&&this._selectionHittest.parentNode.removeChild(this._selectionHittest),this._selection.parentNode&&this._selection.parentNode.removeChild(this._selection)),this._updateAnchors(),this.update()}update(t){let e,s,i,n,o,r="",a=this._editingAnchor;if(t&&this.init(),a&&(e=a.i,s=a.segment,(e||a.isClosedStart)&&(o=a.isClosedStart?s.length-4:e-2,i=s[o],n=s[o+1],this._handle1.setAttribute("transform","translate("+i+","+n+")"),this._line1.setAttribute("points",i+","+n+","+s[e]+","+s[e+1])),e<s.length-2&&(i=s[e+2],n=s[e+3],this._handle2.setAttribute("transform","translate("+i+","+n+")"),this._line2.setAttribute("points",s[e]+","+s[e+1]+","+i+","+n))),t)r=this.path.getAttribute("d");else{for(e=0;e<this._rawPath.length;e++)s=this._rawPath[e],s.length>7&&(r+="M"+s[0]+","+s[1]+"C"+s.slice(2).join(","));this.path.setAttribute("d",r),this._selectionPath.setAttribute("d",r),this._selectionHittest.setAttribute("d",r)}return this.vars.onUpdate&&this._enabled&&Ct("onUpdate",this,r),this}getRawPath(t,e,s){if(t){let t=ft(this.path);return d(c(this._rawPath),1,0,0,1,t.e+(e||0),t.f+(s||0))}return this._rawPath}getString(t,e,s){if(t){let t=ft(this.path);return function(t){"number"==typeof t[0]&&(t=[t]);let e,s,i,n,o="",r=t.length;for(s=0;s<r;s++){for(n=t[s],o+="M"+h(n[0])+","+h(n[1])+" C",e=n.length,i=2;i<e;i++)o+=h(n[i++])+","+h(n[i++])+" "+h(n[i++])+","+h(n[i++])+" "+h(n[i++])+","+h(n[i])+" ";n.closed&&(o+="z")}return o}(d(c(this._rawPath),1,0,0,1,t.e+(e||0),t.f+(s||0)))}return this.path.getAttribute("d")}getNormalizedSVG(t,e,s,i){let n,o,r,a,h,l,c=this._rawPath[0],d=-1*c[0],g=0===e?0:-(e||c[1]),p=c.length,_=1/(c[p-2]+d),f=-t||c[p-1]+g;for(ct.length=0,f=f?1/f:-_,_*=1e3,f*=1e3,o=0;o<p;o+=2)ct[o]=((c[o]+d)*_|0)/1e3,ct[o+1]=((c[o+1]+g)*f|0)/1e3;if(i){for(n=[],p=ct.length,o=2;o<p;o+=6)r=ct[o-2],a=ct[o-1],h=ct[o+4],l=ct[o+5],n.push(r,a,h,l),u(r,a,ct[o],ct[o+1],ct[o+2],ct[o+3],h,l,.001,n,n.length-2);for(r=n[0],p=n.length,o=2;o<p;o+=2){if(h=n[o],h<r||h>1||h<0){i();break}r=h}}return s&&8===p&&0===ct[0]&&0===ct[1]&&1===ct[p-2]&&1===ct[p-1]?ct.slice(2,6).join(","):(ct[2]="C"+ct[2],"M"+ct.join(","))}kill(){this.enabled(!1),this._g.parentNode&&this._g.parentNode.removeChild(this._g)}revert(){this.kill()}}Lt.simplifyPoints=m,Lt.pointsToSegment=_,Lt.simplifySVG=(t,e)=>{let s,i,n,o,r,a,h,l,c,d,g,f;if(d=(e=e||{}).tolerance||1,c=e.precision||1/d,f=(void 0===e.cornerThreshold?18:+e.cornerThreshold)*st,"string"!=typeof t&&(s=t,t=s.getAttribute("d")),"#"!==t.charAt(0)&&"."!==t.charAt(0)||(s=Y.querySelector(t),s&&(t=s.getAttribute("d"))),i=!1!==e.curved||/[achqstvz]/gi.test(t)?p(t)[0]:t.match(et),!1!==e.curved){for(l=i,i=[],g=l.length,n=2;n<g;n+=6)o=+l[n-2],a=+l[n-1],r=+l[n+4],h=+l[n+5],i.push(mt(o),mt(a),mt(r),mt(h)),u(o,a,+l[n],+l[n+1],+l[n+2],+l[n+3],r,h,1/(2e5*c),i,i.length-2);i=_(m(i,d),e.curviness),i[2]="C"+i[2]}else i=m(i,d);return t="M"+i.join(","),s&&s.setAttribute("d",t),t},Lt.create=(t,e)=>new Lt(t,e),Lt.editingAxis=at,Lt.getSnapFunction=t=>{let e=t.radius||2,s=1e20,i=t.x||0===t.x?t.x:t.width?0:-s,n=t.y||0===t.y?t.y:t.height?0:-s,o=i+(t.width||s*s),r=n+(t.height||s*s),a=!1!==t.containX,h=!1!==t.containY,l=t.axis,c=t.gridSize;return e*=e,t=>{let s,d,g,p,u=t.x,_=t.y;a&&u<i||(g=u-i)*g<e?u=i:(a&&u>o||(g=o-u)*g<e)&&(u=o),h&&_<n||(p=_-n)*p<e?_=n:(h&&_>r||(p=r-_)*p<e)&&(_=r),l&&(g=u-l.x,p=_-l.y,g*g<e&&(u=l.x),p*p<e&&(_=l.y)),c&&(s=i+Math.round((u-i)/c)*c,g=s-u,d=n+Math.round((_-n)/c)*c,p=d-_,g*g+p*p<e&&(u=s,_=d)),t.x=u,t.y=_}},Lt.version="3.12.4",Lt.register=Et;let Xt,Ot,It,qt,Yt,Vt,jt,zt,Gt,Wt,Bt=function(){return String.fromCharCode.apply(null,arguments)},Ft=Bt(103,114,101,101,110,115,111,99,107,46,99,111,109),Ut=Bt(103,115,97,112,46,99,111,109),Zt=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,$t=(function(t){var e="undefined"!=typeof window,s=0===(e?window.location.href:"").indexOf(Bt(102,105,108,101,58,47,47))||-1!==t.indexOf(Bt(108,111,99,97,108,104,111,115,116))||Zt.test(t)||(e?window.location.hostname:"").split(".").pop()===Bt(108,111,99,97,108),i=[Ft,Ut,Bt(99,111,100,101,112,101,110,46,105,111),Bt(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),Bt(99,111,100,101,112,101,110,46,100,101,118),Bt(99,111,100,101,112,101,110,46,97,112,112),Bt(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),Bt(112,101,110,115,46,99,108,111,117,100),Bt(99,115,115,45,116,114,105,99,107,115,46,99,111,109),Bt(99,100,112,110,46,105,111),Bt(112,101,110,115,46,105,111),Bt(103,97,110,110,111,110,46,116,118),Bt(99,111,100,101,99,97,110,121,111,110,46,110,101,116),Bt(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),Bt(99,101,114,101,98,114,97,120,46,99,111,46,117,107),Bt(116,121,109,112,97,110,117,115,46,110,101,116),Bt(116,119,101,101,110,109,97,120,46,99,111,109),Bt(112,108,110,107,114,46,99,111),Bt(104,111,116,106,97,114,46,99,111,109),Bt(119,101,98,112,97,99,107,98,105,110,46,99,111,109),Bt(97,114,99,104,105,118,101,46,111,114,103),Bt(99,111,100,101,115,97,110,100,98,111,120,46,105,111),Bt(99,115,98,46,97,112,112),Bt(115,116,97,99,107,98,108,105,116,122,46,99,111,109),Bt(115,116,97,99,107,98,108,105,116,122,46,105,111),Bt(99,111,100,105,101,114,46,105,111),Bt(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),Bt(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),Bt(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),Bt(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),Bt(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),Bt(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){if(e)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",n);else{document.removeEventListener("readystatechange",n);var t="object"==typeof Xt?Xt:e&&window.gsap;e&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(Bt(37,99,87,97,114,110,105,110,103),Bt(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(Bt(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"MotionPathHelper"+Bt(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(Bt(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),Bt(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},o=i.length;for(setTimeout(n,50);--o>-1;)if(-1!==t.indexOf(i[o]))return!0;s||setTimeout((function(){e&&(window.location.href=Bt(104,116,116,112,115,58,47,47)+Ft+Bt(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=MotionPathHelper&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),/(^[#\.][a-z]|[a-y][a-z])/i),Kt=t=>"string"==typeof t,Qt=(t,e)=>{let s=It.createElementNS?It.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):It.createElement(t);return s.style?s:It.createElement(t)},Jt=(t,e,s)=>Kt(t)&&$t.test(t)?It.querySelector(t):Array.isArray(t)?zt(jt([{x:Xt.getProperty(e,"x"),y:Xt.getProperty(e,"y")},...t],s)):Kt(t)||t&&"path"===(t.tagName+"").toLowerCase()?t:0,te={matrix:{a:1,b:0,c:0,d:1,e:0,f:0}},ee=(t,e)=>{let s="Please gsap.registerPlugin(MotionPathPlugin)";Ot=window,Xt=Xt||t||Ot.gsap||console.warn(s),Xt&&Lt.register(Xt),It=document,Yt=It.body,qt=It.documentElement,Xt&&(Vt=Xt.plugins.motionPath,se.PathEditor=Lt,Gt=Xt.core.context||function(){}),Vt?(Wt=Qt("textarea"),Wt.style.display="none",Yt.appendChild(Wt),jt=Vt.arrayToRawPath,zt=Vt.rawPathToString):!0===e&&console.warn(s)};class se{constructor(t,e={}){Vt||ee(e.gsap,1);let s,i,n,o,r,a,h,l,c,d,g,p,u,_,f=Qt("div"),m=this,b={x:0,y:0};t instanceof Xt.core.Tween?(l=t,s=l.targets()[0]):(s=Xt.utils.toArray(t)[0],l=(t=>{let e=Xt.getTweensOf(t),s=0;for(;s<e.length;s++){if(e[s].vars.motionPath)return e[s];e[s].timeline&&e.push(...e[s].timeline.getChildren())}})(s)),i=Jt(e.path,s,e),this.offset=b,a=(t=>{let e=t.getBoundingClientRect(),s=qt.clientTop-(Ot.pageYOffset||qt.scrollTop||Yt.scrollTop||0),i=qt.clientLeft-(Ot.pageXOffset||qt.scrollLeft||Yt.scrollLeft||0);return{left:e.left+i,top:e.top+s,right:e.right+i,bottom:e.bottom+s}})(s),o=parseFloat(Xt.getProperty(s,"x","px")),r=parseFloat(Xt.getProperty(s,"y","px")),n=s.getCTM&&"svg"!==s.tagName.toLowerCase(),l&&!i&&(i=Jt(l.vars.motionPath.path||l.vars.motionPath,s,l.vars.motionPath)),f.setAttribute("class","copy-motion-path"),f.style.cssText="border-radius:8px; background-color:rgba(85, 85, 85, 0.7); color:#fff; cursor:pointer; padding:6px 12px; font-family:Signika Negative, Arial, sans-serif; position:fixed; left:50%; transform:translate(-50%, 0); font-size:19px; bottom:10px",f.innerText="COPY MOTION PATH",f._gsHelper=m,(Xt.utils.toArray(e.container)[0]||Yt).appendChild(f),((t,e,s)=>{t.addEventListener("click",i=>{if(i.target._gsHelper){let n=e(i.target);if(Wt.value=n,n&&Wt.select){console.log(n),Wt.style.display="block",Wt.select();try{It.execCommand("copy"),Wt.blur(),s&&s(t)}catch(t){console.warn("Copy didn't work; this browser doesn't permit that.")}Wt.style.display="none"}}})})(f,()=>m.getString(),()=>Xt.fromTo(f,{backgroundColor:"white"},{duration:.5,backgroundColor:"rgba(85, 85, 85, 0.6)"})),h=i&&i.ownerSVGElement,h?(e.pathColor&&Xt.set(i,{stroke:e.pathColor}),e.pathWidth&&Xt.set(i,{strokeWidth:e.pathWidth}),e.pathOpacity&&Xt.set(i,{opacity:e.pathOpacity})):(c=n&&s.ownerSVGElement&&s.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg",n?(h=s.ownerSVGElement,d=s.getBBox(),g=(t=>(t.transform.baseVal.consolidate()||te).matrix)(s),o=g.e,r=g.f,b.x=d.x,b.y=d.y):(h=Qt("svg",c),_=!0,Yt.appendChild(h),h.setAttribute("viewBox","0 0 100 100"),h.setAttribute("class","motion-path-helper"),h.style.cssText="overflow:visible; background-color: transparent; position:absolute; z-index:5000; width:100px; height:100px; top:"+(a.top-r)+"px; left:"+(a.left-o)+"px;"),d=Kt(i)&&!$t.test(i)?i:((t,e)=>{let s,i=[0,31,8,58,24,75,40,90,69,100,100,100];for(s=0;s<i.length;s+=2)i[s]+=t,i[s+1]+=e;return"M"+t+","+e+"C"+i.join(",")})(o,r),i=Qt("path",c),i.setAttribute("d",d),i.setAttribute("vector-effect","non-scaling-stroke"),i.style.cssText="fill:transparent; stroke-width:"+(e.pathWidth||3)+"; stroke:"+(e.pathColor||"#555")+"; opacity:"+(e.pathOpacity||.6),h.appendChild(i)),(b.x||b.y)&&Xt.set(i,{x:b.x,y:b.y}),"selected"in e||(e.selected=!0),"anchorSnap"in e||(e.anchorSnap=t=>{t.x*t.x+t.y*t.y<16&&(t.x=t.y=0)}),u=l&&l.parent&&"nested"===l.parent.data?l.parent.parent:l,e.onPress=()=>{u.pause(0)},p=()=>{l.invalidate(),u.restart()},e.onRelease=e.onDeleteAnchor=p,this.editor=Lt.create(i,e),e.center&&Xt.set(s,{transformOrigin:"50% 50%",xPercent:-50,yPercent:-50}),l?(l.vars.motionPath.path?l.vars.motionPath.path=i:l.vars.motionPath={path:i},u.parent!==Xt.globalTimeline&&Xt.globalTimeline.add(u,(t=>{let e=t.totalTime();for(;t;)e=t.startTime()+e/(t.timeScale()||1),t=t.parent;return e})(u)-u.delay()),u.repeat(-1).repeatDelay(1)):l=u=Xt.to(s,{motionPath:{path:i,start:e.start||0,end:"end"in e?e.end:1,autoRotate:"autoRotate"in e&&e.autoRotate,align:i,alignOrigin:e.alignOrigin},duration:e.duration||5,ease:e.ease||"power1.inOut",repeat:-1,repeatDelay:1,paused:!e.path}),this.animation=l,Gt(this),this.kill=this.revert=()=>{this.editor.kill(),f.parentNode&&f.parentNode.removeChild(f),_&&h.parentNode&&h.parentNode.removeChild(h),u&&u.revert()}}getString(){return this.editor.getString(!0,-this.offset.x,-this.offset.y)}}se.register=ee,se.create=(t,e)=>new se(t,e),se.editPath=(t,e)=>Lt.create(t,e),se.version="3.12.4";export default se;export{se as MotionPathHelper}; | ||
let t,e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,s=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,i=Math.PI/180,n=Math.sin,o=Math.cos,r=Math.abs,a=Math.sqrt,h=t=>Math.round(1e5*t)/1e5||0,l=(t,e)=>(e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e);function c(t){let e=[],s=0;for(;s<t.length;s++)e[s]=l(t[s],t[s].slice(0));return l(t,e)}function d(t,e,s,i,n,o,r){let a,h,l,c,d,g=t.length;for(;--g>-1;)for(a=t[g],h=a.length,l=0;l<h;l+=2)c=a[l],d=a[l+1],a[l]=c*e+d*i+o,a[l+1]=c*s+d*n+r;return t._dirty=1,t}function g(t,e,s,h,l,c,d,g,p){if(t===g&&e===p)return;s=r(s),h=r(h);let u=l%360*i,_=o(u),f=n(u),m=Math.PI,b=2*m,v=(t-g)/2,y=(e-p)/2,A=_*v+f*y,w=-f*v+_*y,P=A*A,x=w*w,C=P/(s*s)+x/(h*h);C>1&&(s=a(C)*s,h=a(C)*h);let S=s*s,E=h*h,k=(S*E-S*x-E*P)/(S*x+E*P);k<0&&(k=0);let M=(c===d?-1:1)*a(k),D=M*(s*w/h),T=M*(-h*A/s),H=(t+g)/2+(_*D-f*T),N=(e+p)/2+(f*D+_*T),R=(A-D)/s,L=(w-T)/h,X=(-A-D)/s,O=(-w-T)/h,I=R*R+L*L,q=(L<0?-1:1)*Math.acos(R/a(I)),Y=(R*O-L*X<0?-1:1)*Math.acos((R*X+L*O)/a(I*(X*X+O*O)));isNaN(Y)&&(Y=m),!d&&Y>0?Y-=b:d&&Y<0&&(Y+=b),q%=b,Y%=b;let V,j=Math.ceil(r(Y)/(b/4)),z=[],G=Y/j,W=4/3*n(G/2)/(1+o(G/2)),B=_*s,F=f*s,U=f*-h,Z=_*h;for(V=0;V<j;V++)A=o(l=q+V*G),w=n(l),R=o(l+=G),L=n(l),z.push(A-W*w,w+W*A,R+W*L,L-W*R,R,L);for(V=0;V<z.length;V+=2)A=z[V],w=z[V+1],z[V]=A*B+w*U+H,z[V+1]=A*F+w*Z+N;return z[V-2]=g,z[V-1]=p,z}function p(t){let i,n,o,a,h,l,c,d,p,u,_,f,m,b,v,y=(t+"").replace(s,t=>{let e=+t;return e<1e-4&&e>-1e-4?0:e}).match(e)||[],A=[],w=0,P=0,x=y.length,C=0,S="ERROR: malformed path: "+t,E=function(t,e,s,i){u=(s-t)/3,_=(i-e)/3,c.push(t+u,e+_,s-u,i-_,s,i)};if(!t||!isNaN(y[0])||isNaN(y[1]))return console.log(S),A;for(i=0;i<x;i++)if(m=h,isNaN(y[i])?(h=y[i].toUpperCase(),l=h!==y[i]):i--,o=+y[i+1],a=+y[i+2],l&&(o+=w,a+=P),i||(d=o,p=a),"M"===h)c&&(c.length<8?A.length-=1:C+=c.length),w=d=o,P=p=a,c=[o,a],A.push(c),i+=2,h="L";else if("C"===h)c||(c=[0,0]),l||(w=P=0),c.push(o,a,w+1*y[i+3],P+1*y[i+4],w+=1*y[i+5],P+=1*y[i+6]),i+=6;else if("S"===h)u=w,_=P,"C"!==m&&"S"!==m||(u+=w-c[c.length-4],_+=P-c[c.length-3]),l||(w=P=0),c.push(u,_,o,a,w+=1*y[i+3],P+=1*y[i+4]),i+=4;else if("Q"===h)u=w+2/3*(o-w),_=P+2/3*(a-P),l||(w=P=0),w+=1*y[i+3],P+=1*y[i+4],c.push(u,_,w+2/3*(o-w),P+2/3*(a-P),w,P),i+=4;else if("T"===h)u=w-c[c.length-4],_=P-c[c.length-3],c.push(w+u,P+_,o+2/3*(w+1.5*u-o),a+2/3*(P+1.5*_-a),w=o,P=a),i+=2;else if("H"===h)E(w,P,w=o,P),i+=1;else if("V"===h)E(w,P,w,P=o+(l?P-w:0)),i+=1;else if("L"===h||"Z"===h)"Z"===h&&(o=d,a=p,c.closed=!0),("L"===h||r(w-o)>.5||r(P-a)>.5)&&(E(w,P,o,a),"L"===h&&(i+=2)),w=o,P=a;else if("A"===h){if(b=y[i+4],v=y[i+5],u=y[i+6],_=y[i+7],n=7,b.length>1&&(b.length<3?(_=u,u=v,n--):(_=v,u=b.substr(2),n-=2),v=b.charAt(1),b=b.charAt(0)),f=g(w,P,+y[i+1],+y[i+2],+y[i+3],+b,+v,(l?w:0)+1*u,(l?P:0)+1*_),i+=n,f)for(n=0;n<f.length;n++)c.push(f[n]);w=c[c.length-2],P=c[c.length-1]}else console.log(S);return i=c.length,i<6?(A.pop(),i=0):c[0]===c[i-2]&&c[1]===c[i-1]&&(c.closed=!0),A.totalPoints=C+i,A}function u(t,e,s,i,n,o,a,h,l,c,d){let g,p=(t+s)/2,_=(e+i)/2,f=(s+n)/2,m=(i+o)/2,b=(n+a)/2,v=(o+h)/2,y=(p+f)/2,A=(_+m)/2,w=(f+b)/2,P=(m+v)/2,x=(y+w)/2,C=(A+P)/2,S=a-t,E=h-e,k=r((s-a)*E-(i-h)*S),M=r((n-a)*E-(o-h)*S);return c||(c=[t,e,a,h],d=2),c.splice(d||c.length-2,0,x,C),(k+M)*(k+M)>l*(S*S+E*E)&&(g=c.length,u(t,e,p,_,y,A,x,C,l,c,d),u(x,C,w,P,b,v,a,h,l,c,d+2+(c.length-g))),c}function _(t,e){r(t[0]-t[2])<1e-4&&r(t[1]-t[3])<1e-4&&(t=t.slice(2));let s,i,n,o,l,c,d,g,p,u,_,f,m,b,v,y=t.length-2,A=+t[0],w=+t[1],P=+t[2],x=+t[3],C=[A,w,A,w],S=P-A,E=x-w,k=Math.abs(t[y]-A)<.001&&Math.abs(t[y+1]-w)<.001;for(k&&(t.push(P,x),P=A,x=w,A=t[y-2],w=t[y-1],t.unshift(A,w),y+=4),e=e||0===e?+e:1,n=2;n<y;n+=2)s=A,i=w,A=P,w=x,P=+t[n+2],x=+t[n+3],A===P&&w===x||(o=S,l=E,S=P-A,E=x-w,c=a(o*o+l*l),d=a(S*S+E*E),g=a((S/d+o/c)**2+(E/d+l/c)**2),p=(c+d)*e*.25/g,u=A-(A-s)*(c?p/c:0),_=A+(P-A)*(d?p/d:0),f=A-(u+((_-u)*(3*c/(c+d)+.5)/4||0)),m=w-(w-i)*(c?p/c:0),b=w+(x-w)*(d?p/d:0),v=w-(m+((b-m)*(3*c/(c+d)+.5)/4||0)),A===s&&w===i||C.push(h(u+f),h(m+v),h(A),h(w),h(_+f),h(b+v)));return A!==P||w!==x||C.length<4?C.push(h(P),h(x),h(P),h(x)):C.length-=2,2===C.length?C.push(A,w,A,w,A,w):k&&(C.splice(0,6),C.length=C.length-6),C}function f(t,e,s,i,n,o){let r,a=n-s,h=o-i;return(a||h)&&(r=((t-s)*a+(e-i)*h)/(a*a+h*h),r>1?(s=n,i=o):r>0&&(s+=a*r,i+=h*r)),(t-s)**2+(e-i)**2}function m(t,e){let s,i,n,o,r,a,h,l=parseFloat(t[0]),c=parseFloat(t[1]),d=[l,c],g=t.length-2;for(e=(e||1)**2,s=2;s<g;s+=2)i=parseFloat(t[s]),n=parseFloat(t[s+1]),o=l-i,r=c-n,o*o+r*r>e&&(d.push(i,n),l=i,c=n);return d.push(parseFloat(t[g]),parseFloat(t[g+1])),h=d.length-2,a=[d[0],d[1]],function t(e,s,i,n,o){let r,a,h,l=n,c=e[s],d=e[s+1],g=e[i],p=e[i+1];for(a=s+2;a<i;a+=2)h=f(e[a],e[a+1],c,d,g,p),h>l&&(r=a,l=h);l>n&&(r-s>2&&t(e,s,r,n,o),o.push(e[r],e[r+1]),i-r>2&&t(e,r,i,n,o))}(d,0,h,e,a),a.push(d[h],d[h+1]),a}function b(e,s,i,n,o,r,a,h,l,c,d,g,p,u){let _,f,m,v,y,A,w=(o-n)/r,P=0,x=n;for(t=1e8;x<=o;)A=1-x,_=A*A*A*a+3*A*A*x*l+3*A*x*x*d+x*x*x*p,f=A*A*A*h+3*A*A*x*c+3*A*x*x*g+x*x*x*u,v=_-s,y=f-i,m=v*v+y*y,m<t&&(t=m,P=x),x+=w;return e>1?b(e-1,s,i,Math.max(P-w,0),Math.min(P+w,1),r,a,h,l,c,d,g,p,u):P}let v,y,A,w,P,x,C,S,E,k="transform",M=k+"Origin",D=t=>{let e=t.ownerDocument||t;!(k in t.style)&&"msTransform"in t.style&&(k="msTransform",M=k+"Origin");for(;e.parentNode&&(e=e.parentNode););if(y=window,C=new I,e){v=e,A=e.documentElement,w=e.body,S=v.createElementNS("http://www.w3.org/2000/svg","g"),S.style.transform="none";let t=e.createElement("div"),s=e.createElement("div"),i=e&&(e.body||e.firstElementChild);i&&i.appendChild&&(i.appendChild(t),t.appendChild(s),t.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),E=s.offsetParent!==t,i.removeChild(t))}return e},T=[],H=[],N=t=>t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null),R=t=>"fixed"===y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?R(t):void 0),L=(t,e)=>{if(t.parentNode&&(v||D(t))){let s=N(t),i=s?s.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",n=s?e?"rect":"g":"div",o=2!==e?0:100,r=3===e?100:0,a="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",h=v.createElementNS?v.createElementNS(i.replace(/^https/,"http"),n):v.createElement(n);return e&&(s?(x||(x=L(t)),h.setAttribute("width",.01),h.setAttribute("height",.01),h.setAttribute("transform","translate("+o+","+r+")"),x.appendChild(h)):(P||(P=L(t),P.style.cssText=a),h.style.cssText=a+"width:0.1px;height:0.1px;top:"+r+"px;left:"+o+"px",P.appendChild(h))),h}throw"Need document and parent."},X=(t,e)=>{let s,i,n,o,r,a,h=N(t),l=t===h,c=h?T:H,d=t.parentNode;if(t===y)return t;if(c.length||c.push(L(t,1),L(t,2),L(t,3)),s=h?x:P,h)l?(n=(t=>{let e,s=t.getCTM();return s||(e=t.style[k],t.style[k]="none",t.appendChild(S),s=S.getCTM(),t.removeChild(S),e?t.style[k]=e:t.style.removeProperty(k.replace(/([A-Z])/g,"-$1").toLowerCase())),s||C.clone()})(t),o=-n.e/n.a,r=-n.f/n.d,i=C):t.getBBox?(n=t.getBBox(),i=t.transform?t.transform.baseVal:{},i=i.numberOfItems?i.numberOfItems>1?(t=>{let e=new I,s=0;for(;s<t.numberOfItems;s++)e.multiply(t.getItem(s).matrix);return e})(i):i.getItem(0).matrix:C,o=i.a*n.x+i.c*n.y,r=i.b*n.x+i.d*n.y):(i=new I,o=r=0),e&&"g"===t.tagName.toLowerCase()&&(o=r=0),(l?h:d).appendChild(s),s.setAttribute("transform","matrix("+i.a+","+i.b+","+i.c+","+i.d+","+(i.e+o)+","+(i.f+r)+")");else{if(o=r=0,E)for(i=t.offsetParent,n=t;n&&(n=n.parentNode)&&n!==i&&n.parentNode;)(y.getComputedStyle(n)[k]+"").length>4&&(o=n.offsetLeft,r=n.offsetTop,n=0);if(a=y.getComputedStyle(t),"absolute"!==a.position&&"fixed"!==a.position)for(i=t.offsetParent;d&&d!==i;)o+=d.scrollLeft||0,r+=d.scrollTop||0,d=d.parentNode;n=s.style,n.top=t.offsetTop-r+"px",n.left=t.offsetLeft-o+"px",n[k]=a[k],n[M]=a[M],n.position="fixed"===a.position?"fixed":"absolute",t.parentNode.appendChild(s)}return s},O=(t,e,s,i,n,o,r)=>(t.a=e,t.b=s,t.c=i,t.d=n,t.e=o,t.f=r,t);class I{constructor(t=1,e=0,s=0,i=1,n=0,o=0){O(this,t,e,s,i,n,o)}inverse(){let{a:t,b:e,c:s,d:i,e:n,f:o}=this,r=t*i-e*s||1e-10;return O(this,i/r,-e/r,-s/r,t/r,(s*o-i*n)/r,-(t*o-e*n)/r)}multiply(t){let{a:e,b:s,c:i,d:n,e:o,f:r}=this,a=t.a,h=t.c,l=t.b,c=t.d,d=t.e,g=t.f;return O(this,a*e+l*i,a*s+l*n,h*e+c*i,h*s+c*n,o+d*e+g*i,r+d*s+g*n)}clone(){return new I(this.a,this.b,this.c,this.d,this.e,this.f)}equals(t){let{a:e,b:s,c:i,d:n,e:o,f:r}=this;return e===t.a&&s===t.b&&i===t.c&&n===t.d&&o===t.e&&r===t.f}apply(t,e={}){let{x:s,y:i}=t,{a:n,b:o,c:r,d:a,e:h,f:l}=this;return e.x=s*n+i*r+h||0,e.y=s*o+i*a+l||0,e}}function q(t,e,s,i){if(!t||!t.parentNode||(v||D(t)).documentElement===t)return new I;let n=(t=>{let e,s;for(;t&&t!==w;)s=t._gsap,s&&s.uncache&&s.get(t,"x"),s&&!s.scaleX&&!s.scaleY&&s.renderTransform&&(s.scaleX=s.scaleY=1e-4,s.renderTransform(1,s),e?e.push(s):e=[s]),t=t.parentNode;return e})(t),o=N(t)?T:H,r=X(t,s),a=o[0].getBoundingClientRect(),h=o[1].getBoundingClientRect(),l=o[2].getBoundingClientRect(),c=r.parentNode,d=!i&&R(t),g=new I((h.left-a.left)/100,(h.top-a.top)/100,(l.left-a.left)/100,(l.top-a.top)/100,a.left+(d?0:y.pageXOffset||v.scrollLeft||A.scrollLeft||w.scrollLeft||0),a.top+(d?0:y.pageYOffset||v.scrollTop||A.scrollTop||w.scrollTop||0));if(c.removeChild(r),n)for(a=n.length;a--;)h=n[a],h.scaleX=h.scaleY=0,h.renderTransform(1,h);return e?g.inverse():g}let Y,V,j,z,G,W,B,F,U,Z,$,K,Q,J,tt,et=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,st=Math.PI/180,it=Date.now||(()=>(new Date).getTime()),nt=0,ot=0,rt=()=>!1,at={},ht=[],lt={},ct=[],dt=[],gt=t=>{t.preventDefault&&(t.preventDefault(),t.preventManipulation&&t.preventManipulation())},pt=t=>Y.createElementNS?Y.createElementNS("http://www.w3.org/1999/xhtml",t):Y.createElement(t),ut=(t,e,s)=>{let i,n=Y.createElementNS("http://www.w3.org/2000/svg",t),o=/([a-z])([A-Z])/g;for(i in(s=s||{}).class=s.class||"path-editor",s)void 0!==n.style[i]?n.style[i]=s[i]:n.setAttributeNS(null,i.replace(o,"$1-$2").toLowerCase(),s[i]);return e.appendChild(n),n},_t={matrix:new I},ft=t=>(t.transform&&t.transform.baseVal.consolidate()||_t).matrix,mt=t=>~~(1e3*t+(t<0?-.5:.5))/1e3,bt=function(t){if(!t.target._gsSelection&&!ot&&it()-nt>100){let t=dt.length;for(;--t>-1;)dt[t].deselect();dt.length=0}},vt=0,yt=(t,e,s,i)=>{if(t.addEventListener){let n=Q[e];i=i||{passive:!1},t.addEventListener(n||e,s,i),n&&e!==n&&"pointer"!==n.substr(0,7)&&t.addEventListener(e,s,i)}else t.attachEvent&&t.attachEvent("on"+e,s)},At=(t,e,s)=>{if(t.removeEventListener){let i=Q[e];t.removeEventListener(i||e,s),i&&e!==i&&"pointer"!==i.substr(0,7)&&t.removeEventListener(e,s)}else t.detachEvent&&t.detachEvent("on"+e,s)},wt=t=>{vt=t.touches&&_dragCount<t.touches.length,At(t.target,"touchend",wt)},Pt=t=>{vt=t.touches&&_dragCount<t.touches.length,yt(t.target,"touchend",wt)},xt=(t,e)=>s=>t.call(e,s),Ct=(t,e,s)=>{let i=e.vars[t];return i&&i.call(e.vars.callbackScope||e,s||e),e},St=()=>{J.style.display="block",J.select(),J.style.display="none"},Et=t=>{Y=document,j=window,z=Y.body,G=G||t||j.gsap||console.warn("Please gsap.registerPlugin(PathEditor)"),W=G&&G.core.context||function(){},K=pt("div"),J=pt("textarea"),J.style.display="none",z&&z.appendChild(J),Q=function(t){let e=t.split(","),s=(void 0!==K.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==K.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),i={},n=4;for(;--n>-1;)i[e[n]]=s[n],i[s[n]]=e[n];return i}("touchstart,touchmove,touchend,touchcancel"),SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())},Y.addEventListener("keydown",(function(t){let e,s,i,n,o=t.keyCode||t.which,r=t.key||o;if("Shift"===r||16===o)U=!0;else if("Control"===r||17===o)B=!0;else if("Meta"===r||91===o)Z=!0;else if("Alt"===r||18===o)for(F=!0,e=dt.length;--e>-1;)dt[e]._onPressAlt();else if(("z"===r||90===o)&&(B||Z)&&ht.length>1){if(ht.shift(),s=ht[0],s){for(n=s.path,n.path.setAttribute("d",s.d),n.path.setAttribute("transform",s.transform),n.init(),i=n._anchors,e=0;e<i.length;e++)-1!==s.selectedIndexes.indexOf(i[e].i)&&n._selectedAnchors.push(i[e]);n._updateAnchors(),n.update(),n.vars.onUndo&&n.vars.onUndo.call(n)}}else if("Delete"===r||"Backspace"===r||8===o||46===o||63272===o||"d"===o&&(B||Z))for(e=dt.length;--e>-1;)dt[e]._deleteSelectedAnchors();else if(("a"===r||65===o)&&(Z||B))for(e=dt.length;--e>-1;)dt[e].select(!0)}),!0),Y.addEventListener("keyup",(function(t){let e=t.key||t.keyCode||t.which;if("Shift"===e||16===e)U=!1;else if("Control"===e||17===e)B=!1;else if("Meta"===e||91===e)Z=!1;else if("Alt"===e||18===e){F=!1;let t=dt.length;for(;--t>-1;)dt[t]._onReleaseAlt()}}),!0),V=!!j.PointerEvent,yt(Y,"mouseup",bt),yt(Y,"touchend",bt),yt(Y,"touchcancel",rt),yt(j,"touchmove",rt),z&&z.addEventListener("touchstart",rt),tt=1},kt=function(t){let e,s,i=this,n=q(i.target.parentNode,!0);this._matrix=this.target.transform.baseVal.getItem(0).matrix,this._ctm=n,Q[t.type]?(e=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:Y,yt(e,"touchend",i._onRelease),yt(e,"touchmove",i._onMove),yt(e,"touchcancel",i._onRelease),yt(Y,"touchstart",Pt),yt(j,"touchforcechange",gt)):(e=null,yt(Y,"mousemove",i._onMove)),V||yt(Y,"mouseup",i._onRelease),gt(t),St(),t.changedTouches?(t=i.touch=t.changedTouches[0],i.touchID=t.identifier):t.pointerId?i.touchID=t.pointerId:i.touch=i.touchID=null,i._startPointerY=i.pointerY=t.pageY,i._startPointerX=i.pointerX=t.pageX,i._startElementX=i._matrix.e,i._startElementY=i._matrix.f,1===this._ctm.a&&0===this._ctm.b&&0===this._ctm.c&&1===this._ctm.d?this._ctm=null:(s=i._startPointerX*this._ctm.a+i._startPointerY*this._ctm.c+this._ctm.e,i._startPointerY=i._startPointerX*this._ctm.b+i._startPointerY*this._ctm.d+this._ctm.f,i._startPointerX=s),i.isPressed=ot=!0,i.touchEventTarget=e,i.vars.onPress&&i.vars.onPress.call(i.vars.callbackScope||i,i.pointerEvent)},Mt=function(t){let e,s,i=this,n=t;if(i._enabled&&!vt&&i.isPressed&&t){if(i.pointerEvent=t,e=t.changedTouches,e){if((t=e[0])!==i.touch&&t.identifier!==i.touchID){for(s=e.length;--s>-1&&(t=e[s]).identifier!==i.touchID;);if(s<0)return}}else if(t.pointerId&&i.touchID&&t.pointerId!==i.touchID)return;gt(n),i.setPointerPosition(t.pageX,t.pageY),i.vars.onDrag&&i.vars.onDrag.call(i.vars.callbackScope||i,i.pointerEvent)}},Dt=function(t,e){let s=this;if(!s._enabled||!s.isPressed||t&&null!=s.touchID&&!e&&(t.pointerId&&t.pointerId!==s.touchID||t.changedTouches&&!((t,e)=>{let s=t.length;for(;--s>-1;)if(t[s].identifier===e)return!0;return!1})(t.changedTouches,s.touchID)))return;nt=it(),s.isPressed=ot=!1;let i,n,o=t,r=s.isDragging,a=s.touchEventTarget;if(a?(At(a,"touchend",s._onRelease),At(a,"touchmove",s._onMove),At(a,"touchcancel",s._onRelease),At(Y,"touchstart",Pt)):At(Y,"mousemove",s._onMove),V||(At(Y,"mouseup",s._onRelease),t&&t.target&&At(t.target,"mouseup",s._onRelease)),r?s.isDragging=!1:s.vars.onClick&&s.vars.onClick.call(s.vars.callbackScope||s,o),t){if(i=t.changedTouches,i&&(t=i[0])!==s.touch&&t.identifier!==s.touchID){for(n=i.length;--n>-1&&(t=i[n]).identifier!==s.touchID;);if(n<0)return}s.pointerEvent=o,s.pointerX=t.pageX,s.pointerY=t.pageY}return o&&!r&&s.vars.onDragRelease?s.vars.onDragRelease.call(s,s.pointerEvent):(o&>(o),s.vars.onRelease&&s.vars.onRelease.call(s.vars.callbackScope||s,s.pointerEvent)),r&&s.vars.onDragEnd&&s.vars.onDragEnd.call(s.vars.callbackScope||s,s.pointerEvent),!0},Tt=(t,e,s,i)=>{let n,o=t[e],r=o.length-(o.closed?6:0),a=[];for(n=0;n<r;n+=6)a.push(new Rt(s,t,e,n,i));return o.closed&&(a[0].isClosedStart=!0),a},Ht=(t,e,s)=>{let i=t[s]-t[e],n=t[s+1]-t[e+1];return Math.sqrt(i*i+n*n)};class Nt{constructor(t,e){this.target="string"==typeof t?Y.querySelectorAll(t)[0]:t,this.vars=e||{},this._onPress=xt(kt,this),this._onMove=xt(Mt,this),this._onRelease=xt(Dt,this),this.target.setAttribute("transform",(this.target.getAttribute("transform")||"")+" translate(0,0)"),this._matrix=ft(this.target),this.x=this._matrix.e,this.y=this._matrix.f,this.snap=e.snap,isNaN(e.maxX)&&isNaN(e.minX)?this._bounds=0:(this._bounds=1,this.maxX=+e.maxX,this.minX=+e.minX),this.enabled(!0)}setPointerPosition(t,e){let s,i,n,o,r;this.pointerX=t,this.pointerY=e,this._ctm&&(r=t*this._ctm.a+e*this._ctm.c+this._ctm.e,e=t*this._ctm.b+e*this._ctm.d+this._ctm.f,t=r),i=e-this._startPointerY,s=t-this._startPointerX,i<1&&i>-1&&(i=0),s<1&&s>-1&&(s=0),n=(1e3*(this._startElementX+s)|0)/1e3,o=(1e3*(this._startElementY+i)|0)/1e3,this.snap&&!U&&(lt.x=n,lt.y=o,this.snap.call(this,lt),n=lt.x,o=lt.y),this.x===n&&this.y===o||(this._matrix.f=this.y=o,this._matrix.e=this.x=n,!this.isDragging&&this.isPressed&&(this.isDragging=!0,Ct("onDragStart",this,this.pointerEvent)))}enabled(t){if(!arguments.length)return this._enabled;let e;return this._enabled=t,t?(V||yt(this.target,"mousedown",this._onPress),yt(this.target,"touchstart",this._onPress),yt(this.target,"click",this._onClick,!0)):(e=this.isDragging,At(this.target,"mousedown",this._onPress),At(this.target,"touchstart",this._onPress),At(j,"touchforcechange",gt),At(this.target,"click",this._onClick),this.touchEventTarget&&(At(this.touchEventTarget,"touchcancel",this._onRelease),At(this.touchEventTarget,"touchend",this._onRelease),At(this.touchEventTarget,"touchmove",this._onMove)),At(Y,"mouseup",this._onRelease),At(Y,"mousemove",this._onMove),this.isDragging=this.isPressed=!1,e&&Ct("onDragEnd",this,this.pointerEvent)),this}endDrag(t){this._onRelease(t)}}class Rt{constructor(t,e,s,i,n){this.editor=t,this.element=ut("path",t._selection,{fill:"#4e7fff",stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this.update(e,s,i),this.element._gsSelection=!0,this.vars=n||{},this._draggable=new Nt(this.element,{callbackScope:this,onDrag:this.onDrag,snap:this.vars.snap,onPress:this.onPress,onRelease:this.onRelease,onClick:this.onClick,onDragEnd:this.onDragEnd})}onPress(){Ct("onPress",this)}onClick(){Ct("onClick",this)}onDrag(){let t=this.segment;this.vars.onDrag.call(this.vars.callbackScope||this,this,this._draggable.x-t[this.i],this._draggable.y-t[this.i+1])}onDragEnd(){Ct("onDragEnd",this)}onRelease(){Ct("onRelease",this)}update(t,e,s){t&&(this.rawPath=t),arguments.length<=1?(e=this.j,s=this.i):(this.j=e,this.i=s);let i=this.smooth,n=this.rawPath[e],o=0===s&&n.closed?n.length-4:s-2;this.segment=n,this.smooth=s>0&&s<n.length-2&&Math.abs(Math.atan2(n[s+1]-n[o+1],n[s]-n[o])-Math.atan2(n[s+3]-n[s+1],n[s+2]-n[s]))<.09?2:0,this.smooth!==i&&this.element.setAttribute("d",this.smooth?this.editor._circleHandle:this.editor._squareHandle),this.element.setAttribute("transform","translate("+n[s]+","+n[s+1]+")")}}class Lt{constructor(t,e){e=e||{},tt||Et(),this.vars=e,this.path="string"==typeof t?Y.querySelectorAll(t)[0]:t,this._g=ut("g",this.path.ownerSVGElement,{class:"path-editor-g path-editor"}),this._selectionHittest=ut("path",this._g,{stroke:"transparent",strokeWidth:16,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selection=e._selection||ut("g",this._g,{class:"path-editor-selection path-editor"}),this._selectionPath=ut("path",this._selection,{stroke:"#4e7fff",strokeWidth:2,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selectedAnchors=[],this._line1=ut("polyline",this._selection,{stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line2=ut("polyline",this._selection,{stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line1.style.pointerEvents=this._line2.style.pointerEvents=this._selectionPath.style.pointerEvents="none",this._enabled=!0;let s=this.path.parentNode.getScreenCTM().inverse(),i=(s.a+s.d)/2*(e.handleSize||5);this._squareHandle=(t=>["M-"+(t=mt(t)),-t,t,-t,t,t,-t,t+"z"].join(","))(i),this._circleHandle=(t=>{let e=mt(.552284749831*t);return"M"+(t=mt(t))+",0C"+[t,e,e,t,0,t,-e,t,-t,e,-t,0,-t,-e,-e,-t,0,-t,e,-t,t,-e,t,0].join(",")+"z"})(1.15*i),this._handle1=ut("path",this._selection,{d:this._squareHandle,fill:"#4e7fff",stroke:"transparent",strokeWidth:6}),this._handle2=ut("path",this._selection,{d:this._squareHandle,fill:"#4e7fff",stroke:"transparent",strokeWidth:6}),this._handle1._draggable=new Nt(this._handle1,{onDrag:this._onDragHandle1,callbackScope:this,onPress:this._onPressHandle1,onRelease:this._onReleaseHandle,onClick:this._onClickHandle1,snap:e.handleSnap}),this._handle2._draggable=new Nt(this._handle2,{onDrag:this._onDragHandle2,callbackScope:this,onPress:this._onPressHandle2,onRelease:this._onReleaseHandle,onClick:this._onClickHandle2,snap:e.handleSnap}),this._handle1.style.visibility=this._handle2.style.visibility="hidden";let n=[this._handle1,this._handle2,this._line1,this._line2,this._selection,this._selectionPath,this._selectionHittest],o=n.length;for(;--o>-1;)n[o]._gsSelection=!0;!1!==e.draggable&&(this._draggable=new Nt(this._selectionHittest,{callbackScope:this,onPress:this.select,onRelease:this._onRelease,onDrag:this._onDragPath,onDragEnd:this._saveState,maxX:this.vars.maxX,minX:this.vars.minX})),this.init(),this._selection.style.visibility=!1===e.selected?"hidden":"visible",!1!==e.selected&&(this.path._gsSelection=!0,dt.push(this)),this._saveState(),V||(yt(this._selectionHittest,"mousedown",xt(this._onClickSelectionPath,this)),yt(this._selectionHittest,"mouseup",xt(this._onRelease,this))),yt(this._selectionHittest,"touchstart",xt(this._onClickSelectionPath,this)),yt(this._selectionHittest,"touchend",xt(this._onRelease,this)),W(this)}_onRelease(t){let e=this._editingAnchor;e&&(at.x=e.segment[e.i],at.y=e.segment[e.i+1]),At(j,"touchforcechange",gt),Ct("onRelease",this,t)}init(){let t,e,s=this.path.getAttribute("d"),i=p(s),n=this.path.getAttribute("transform")||"translate(0,0)",o=!this._rawPath||i.totalPoints!==this._rawPath.totalPoints||i.length!==this._rawPath.length,r={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX};if(o&&this._anchors&&this._anchors.length){for(e=0;e<this._anchors.length;e++)this._anchors[e].element.parentNode.removeChild(this._anchors[e].element),this._anchors[e]._draggable.enabled(!1);this._selectedAnchors.length=0}if(this._rawPath=i,o){if(this._anchors=Tt(i,0,this,r),t=i.length,t>1)for(e=1;e<t;e++)this._anchors=this._anchors.concat(Tt(i,e,this,r))}else for(e=this._anchors.length;--e>-1;)this._anchors[e].update(i);return this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),this._selectionPath.setAttribute("d",s),this._selectionHittest.setAttribute("d",s),this._g.setAttribute("transform",(t=>{let e=ft(t),s=t.ownerSVGElement;for(;(t=t.parentNode)&&t.ownerSVGElement===s;)e.multiply(ft(t));return"matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")"})(this.path.parentNode)||"translate(0,0)"),this._selection.setAttribute("transform",n),this._selectionHittest.setAttribute("transform",n),this._updateAnchors(),this}_saveState(){(t=>{let e,s=[],i=t._selectedAnchors;for(e=0;e<i.length;e++)s[e]=i[e].i;ht.unshift({path:t,d:t.path.getAttribute("d"),transform:t.path.getAttribute("transform")||"",selectedIndexes:s}),ht.length>30&&(ht.length=30)})(this)}_onClickSelectionPath(e){if("hidden"===this._selection.style.visibility)this.select();else if(F||e&&e.altKey){let s,i,n,o,r,a,l={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX},c=this._selection.getScreenCTM().inverse();for(this._draggable&&this._draggable._onRelease(e),c&&(o=e.clientX*c.a+e.clientY*c.c+c.e,r=e.clientX*c.b+e.clientY*c.d+c.f),a=function(e,s,i,n){let o,r,a,h,l={j:0,i:0,t:0},c=1e8;for(r=0;r<e.length;r++)for(h=e[r],o=0;o<h.length;o+=6)a=b(1,s,i,0,1,n||20,h[o],h[o+1],h[o+2],h[o+3],h[o+4],h[o+5],h[o+6],h[o+7]),c>t&&(c=t,l.j=r,l.i=o,l.t=a);return l}(this._rawPath,o,r),function(t,e,s){if(s<=0||s>=1)return 0;let i=t[e],n=t[e+1],o=t[e+2],r=t[e+3],a=t[e+4],l=t[e+5],c=i+(o-i)*s,d=o+(a-o)*s,g=n+(r-n)*s,p=r+(l-r)*s,u=c+(d-c)*s,_=g+(p-g)*s,f=a+(t[e+6]-a)*s,m=l+(t[e+7]-l)*s;d+=(f-d)*s,p+=(m-p)*s,t.splice(e+2,4,h(c),h(g),h(u),h(_),h(u+(d-u)*s),h(_+(p-_)*s),h(d),h(p),h(f),h(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0)}(this._rawPath[a.j],a.i,a.t),s=a.i+6,i=0;i<this._anchors.length;i++)this._anchors[i].i>=s&&(this._anchors[i].i+=6);n=new Rt(this,this._rawPath,a.j,s,l),this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),n._draggable._onPress(e),$=n,this._anchors.push(n),this._selectedAnchors.length=0,this._selectedAnchors.push(n),this._updateAnchors(),this.update(),this._saveState()}St(),yt(j,"touchforcechange",gt),Ct("onPress",this)}_onClickHandle1(){let t=this._editingAnchor,e=t.i,s=t.segment,i=t.isClosedStart?s.length-4:e-2;F&&Math.abs(s[e]-s[i])<5&&Math.abs(s[e+1]-s[i+1])<5&&this._onClickAnchor(t)}_onClickHandle2(){let t=this._editingAnchor,e=t.i,s=t.segment;F&&Math.abs(s[e]-s[e+2])<5&&Math.abs(s[e+1]-s[e+3])<5&&this._onClickAnchor(t)}_onDragEndAnchor(t){$=null,this._saveState()}isSelected(){return this._selectedAnchors.length>0||"visible"===this._selection.style.visibility}select(t){if(this._selection.style.visibility="visible",this._editingAnchor=null,this.path._gsSelection=!0,!0===t){let t=this._anchors.length;for(;--t>-1;)this._selectedAnchors[t]=this._anchors[t]}return-1===dt.indexOf(this)&&dt.push(this),this._updateAnchors(),this}deselect(){return this._selection.style.visibility="hidden",this._selectedAnchors.length=0,this._editingAnchor=null,this.path._gsSelection=!1,dt.splice(dt.indexOf(this),1),this._updateAnchors(),this}_onDragPath(t){let e=this._selectionHittest.getAttribute("transform")||"translate(0,0)";this._selection.setAttribute("transform",e),this.path.setAttribute("transform",e)}_onPressAnchor(t){-1===this._selectedAnchors.indexOf(t)?(U||(this._selectedAnchors.length=0),this._selectedAnchors.push(t)):U&&(this._selectedAnchors.splice(this._selectedAnchors.indexOf(t),1),t._draggable.endDrag()),at.x=t.segment[t.i],at.y=t.segment[t.i+1],this._updateAnchors(),Ct("onPress",this)}_deleteSelectedAnchors(){let t,e,s,i=this._selectedAnchors,n=i.length;for(;--n>-1;)for(t=i[n],t.element.parentNode.removeChild(t.element),t._draggable.enabled(!1),e=t.i,e?e<t.segment.length-2?t.segment.splice(e-2,6):t.segment.splice(e-4,6):t.segment.splice(e,6),i.splice(n,1),this._anchors.splice(this._anchors.indexOf(t),1),s=0;s<this._anchors.length;s++)this._anchors[s].i>=e&&(this._anchors[s].i-=6);this._updateAnchors(),this.update(),this._saveState(),this.vars.onDeleteAnchor&&this.vars.onDeleteAnchor.call(this.vars.callbackScope||this)}_onClickAnchor(t){let e,s,i,n,o,r,a=t.i,h=t.segment,l=t.isClosedStart?h.length-4:a-2,c=!a||a>=h.length-2;F&&$!==t&&this._editingAnchor?(t.smooth=!t.smooth,c&&!t.isClosedStart&&(t.smooth=!1),t.element.setAttribute("d",t.smooth?this._circleHandle:this._squareHandle),!t.smooth||c&&!t.isClosedStart?t.smooth||c&&!t.isClosedStart||((a||t.isClosedStart)&&(h[l]=h[a],h[l+1]=h[a+1]),a<h.length-2&&(h[a+2]=h[a],h[a+3]=h[a+1]),this._updateAnchors(),this.update(),this._saveState()):(e=Math.atan2(h[a+1]-h[l+1],h[a]-h[l]),s=Math.atan2(h[a+3]-h[a+1],h[a+2]-h[a]),e=(e+s)/2,i=Ht(h,l,a),n=Ht(h,a,a+2),i<.2&&(i=Ht(h,a,l-4)/4,e=s||Math.atan2(h[a+7]-h[l-3],h[a+6]-h[l-4])),n<.2&&(n=Ht(h,a,a+6)/4,s=e||Math.atan2(h[a+7]-h[l-3],h[a+6]-h[l-4])),o=Math.sin(e),r=Math.cos(e),Math.abs(s-e)<Math.PI/2&&(o=-o,r=-r),h[l]=(1e3*(h[a]+r*i)|0)/1e3,h[l+1]=(1e3*(h[a+1]+o*i)|0)/1e3,h[a+2]=(1e3*(h[a]-r*n)|0)/1e3,h[a+3]=(1e3*(h[a+1]-o*n)|0)/1e3,this._updateAnchors(),this.update(),this._saveState())):U||(this._selectedAnchors.length=0,this._selectedAnchors.push(t)),$=null,this._updateAnchors()}_updateAnchors(){let t,e,s,i=1===this._selectedAnchors.length?this._selectedAnchors[0]:null,n=i?i.segment:null;for(this._editingAnchor=i,t=0;t<this._anchors.length;t++)this._anchors[t].element.style.fill=-1!==this._selectedAnchors.indexOf(this._anchors[t])?"#4e7fff":"white";i&&(this._handle1.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle),this._handle2.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle)),t=i?i.i:0,i&&(t||i.isClosedStart)?(e=i.isClosedStart?n[n.length-4]:n[t-2],s=i.isClosedStart?n[n.length-3]:n[t-1],this._handle1.style.visibility=this._line1.style.visibility=F||e!==n[t]||s!==n[t+1]?"visible":"hidden",this._handle1.setAttribute("transform","translate("+e+","+s+")"),this._line1.setAttribute("points",e+","+s+","+n[t]+","+n[t+1])):this._handle1.style.visibility=this._line1.style.visibility="hidden",i&&t<n.length-2?(e=n[t+2],s=n[t+3],this._handle2.style.visibility=this._line2.style.visibility=F||e!==n[t]||s!==n[t+1]?"visible":"hidden",this._handle2.setAttribute("transform","translate("+e+","+s+")"),this._line2.setAttribute("points",n[t]+","+n[t+1]+","+e+","+s)):this._handle2.style.visibility=this._line2.style.visibility="hidden"}_onPressAlt(){let t=this._editingAnchor;t&&((t.i||t.isClosedStart)&&(this._handle1.style.visibility=this._line1.style.visibility="visible"),t.i<t.segment.length-2&&(this._handle2.style.visibility=this._line2.style.visibility="visible"))}_onReleaseAlt(){let t,e,s,i=this._editingAnchor;i&&(t=i.segment,e=i.i,s=i.isClosedStart?t.length-4:e-2,t[e]===t[s]&&t[e+1]===t[s+1]&&(this._handle1.style.visibility=this._line1.style.visibility="hidden"),t[e]===t[e+2]&&t[e+1]===t[e+3]&&(this._handle2.style.visibility=this._line2.style.visibility="hidden"))}_onPressHandle1(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Ht(this._editingAnchor.segment,this._editingAnchor.i,this._editingAnchor.i+2)),Ct("onPress",this)}_onPressHandle2(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Ht(this._editingAnchor.segment,this._editingAnchor.isClosedStart?this._editingAnchor.segment.length-4:this._editingAnchor.i-2,this._editingAnchor.i)),Ct("onPress",this)}_onReleaseHandle(t){this._onRelease(t),this._saveState()}_onDragHandle1(){let t,e=this._editingAnchor,s=e.segment,i=e.i,n=e.isClosedStart?s.length-4:i-2,o=this._handle1._draggable.x,r=this._handle1._draggable.y;s[n]=o=(1e3*o|0)/1e3,s[n+1]=r=(1e3*r|0)/1e3,e.smooth&&(F?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(s[i+1]-r,s[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),s[i+2]=(1e3*(s[i]+o)|0)/1e3,s[i+3]=(1e3*(s[i+1]+r)|0)/1e3)),this.update()}_onDragHandle2(){let t,e=this._editingAnchor,s=e.segment,i=e.i,n=e.isClosedStart?s.length-4:i-2,o=this._handle2._draggable.x,r=this._handle2._draggable.y;s[i+2]=o=(1e3*o|0)/1e3,s[i+3]=r=(1e3*r|0)/1e3,e.smooth&&(F?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(s[i+1]-r,s[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),s[n]=(1e3*(s[i]+o)|0)/1e3,s[n+1]=(1e3*(s[i+1]+r)|0)/1e3)),this.update()}_onDragAnchor(t,e,s){let i,n,o,r,a,h=this._selectedAnchors,l=h.length,c=1e3;for(n=0;n<l;n++)r=h[n],i=r.i,o=r.segment,i?(o[i-2]=((o[i-2]+e)*c|0)/c,o[i-1]=((o[i-1]+s)*c|0)/c):r.isClosedStart&&(a=o.length-2,o[a]=mt(o[a]+e),o[a+1]=mt(o[a+1]+s),o[a-2]=mt(o[a-2]+e),o[a-1]=mt(o[a-1]+s)),o[i]=((o[i]+e)*c|0)/c,o[i+1]=((o[i+1]+s)*c|0)/c,i<o.length-2&&(o[i+2]=((o[i+2]+e)*c|0)/c,o[i+3]=((o[i+3]+s)*c|0)/c),r!==t&&r.element.setAttribute("transform","translate("+o[i]+","+o[i+1]+")");this.update()}enabled(t){if(!arguments.length)return this._enabled;let e=this._anchors.length;for(;--e>-1;)this._anchors[e]._draggable.enabled(t);return this._enabled=t,this._handle1._draggable.enabled(t),this._handle2._draggable.enabled(t),this._draggable&&this._draggable.enabled(t),t?this._selection.parentNode||(this.path.ownerSVGElement.appendChild(this._selectionHittest),this.path.ownerSVGElement.appendChild(this._selection),this.init(),this._saveState()):(this.deselect(),this._selectionHittest.parentNode&&this._selectionHittest.parentNode.removeChild(this._selectionHittest),this._selection.parentNode&&this._selection.parentNode.removeChild(this._selection)),this._updateAnchors(),this.update()}update(t){let e,s,i,n,o,r="",a=this._editingAnchor;if(t&&this.init(),a&&(e=a.i,s=a.segment,(e||a.isClosedStart)&&(o=a.isClosedStart?s.length-4:e-2,i=s[o],n=s[o+1],this._handle1.setAttribute("transform","translate("+i+","+n+")"),this._line1.setAttribute("points",i+","+n+","+s[e]+","+s[e+1])),e<s.length-2&&(i=s[e+2],n=s[e+3],this._handle2.setAttribute("transform","translate("+i+","+n+")"),this._line2.setAttribute("points",s[e]+","+s[e+1]+","+i+","+n))),t)r=this.path.getAttribute("d");else{for(e=0;e<this._rawPath.length;e++)s=this._rawPath[e],s.length>7&&(r+="M"+s[0]+","+s[1]+"C"+s.slice(2).join(","));this.path.setAttribute("d",r),this._selectionPath.setAttribute("d",r),this._selectionHittest.setAttribute("d",r)}return this.vars.onUpdate&&this._enabled&&Ct("onUpdate",this,r),this}getRawPath(t,e,s){if(t){let t=ft(this.path);return d(c(this._rawPath),1,0,0,1,t.e+(e||0),t.f+(s||0))}return this._rawPath}getString(t,e,s){if(t){let t=ft(this.path);return function(t){"number"==typeof t[0]&&(t=[t]);let e,s,i,n,o="",r=t.length;for(s=0;s<r;s++){for(n=t[s],o+="M"+h(n[0])+","+h(n[1])+" C",e=n.length,i=2;i<e;i++)o+=h(n[i++])+","+h(n[i++])+" "+h(n[i++])+","+h(n[i++])+" "+h(n[i++])+","+h(n[i])+" ";n.closed&&(o+="z")}return o}(d(c(this._rawPath),1,0,0,1,t.e+(e||0),t.f+(s||0)))}return this.path.getAttribute("d")}getNormalizedSVG(t,e,s,i){let n,o,r,a,h,l,c=this._rawPath[0],d=-1*c[0],g=0===e?0:-(e||c[1]),p=c.length,_=1/(c[p-2]+d),f=-t||c[p-1]+g;for(ct.length=0,f=f?1/f:-_,_*=1e3,f*=1e3,o=0;o<p;o+=2)ct[o]=((c[o]+d)*_|0)/1e3,ct[o+1]=((c[o+1]+g)*f|0)/1e3;if(i){for(n=[],p=ct.length,o=2;o<p;o+=6)r=ct[o-2],a=ct[o-1],h=ct[o+4],l=ct[o+5],n.push(r,a,h,l),u(r,a,ct[o],ct[o+1],ct[o+2],ct[o+3],h,l,.001,n,n.length-2);for(r=n[0],p=n.length,o=2;o<p;o+=2){if(h=n[o],h<r||h>1||h<0){i();break}r=h}}return s&&8===p&&0===ct[0]&&0===ct[1]&&1===ct[p-2]&&1===ct[p-1]?ct.slice(2,6).join(","):(ct[2]="C"+ct[2],"M"+ct.join(","))}kill(){this.enabled(!1),this._g.parentNode&&this._g.parentNode.removeChild(this._g)}revert(){this.kill()}}Lt.simplifyPoints=m,Lt.pointsToSegment=_,Lt.simplifySVG=(t,e)=>{let s,i,n,o,r,a,h,l,c,d,g,f;if(d=(e=e||{}).tolerance||1,c=e.precision||1/d,f=(void 0===e.cornerThreshold?18:+e.cornerThreshold)*st,"string"!=typeof t&&(s=t,t=s.getAttribute("d")),"#"!==t.charAt(0)&&"."!==t.charAt(0)||(s=Y.querySelector(t),s&&(t=s.getAttribute("d"))),i=!1!==e.curved||/[achqstvz]/gi.test(t)?p(t)[0]:t.match(et),!1!==e.curved){for(l=i,i=[],g=l.length,n=2;n<g;n+=6)o=+l[n-2],a=+l[n-1],r=+l[n+4],h=+l[n+5],i.push(mt(o),mt(a),mt(r),mt(h)),u(o,a,+l[n],+l[n+1],+l[n+2],+l[n+3],r,h,1/(2e5*c),i,i.length-2);i=_(m(i,d),e.curviness),i[2]="C"+i[2]}else i=m(i,d);return t="M"+i.join(","),s&&s.setAttribute("d",t),t},Lt.create=(t,e)=>new Lt(t,e),Lt.editingAxis=at,Lt.getSnapFunction=t=>{let e=t.radius||2,s=1e20,i=t.x||0===t.x?t.x:t.width?0:-s,n=t.y||0===t.y?t.y:t.height?0:-s,o=i+(t.width||s*s),r=n+(t.height||s*s),a=!1!==t.containX,h=!1!==t.containY,l=t.axis,c=t.gridSize;return e*=e,t=>{let s,d,g,p,u=t.x,_=t.y;a&&u<i||(g=u-i)*g<e?u=i:(a&&u>o||(g=o-u)*g<e)&&(u=o),h&&_<n||(p=_-n)*p<e?_=n:(h&&_>r||(p=r-_)*p<e)&&(_=r),l&&(g=u-l.x,p=_-l.y,g*g<e&&(u=l.x),p*p<e&&(_=l.y)),c&&(s=i+Math.round((u-i)/c)*c,g=s-u,d=n+Math.round((_-n)/c)*c,p=d-_,g*g+p*p<e&&(u=s,_=d)),t.x=u,t.y=_}},Lt.version="3.12.5",Lt.register=Et;let Xt,Ot,It,qt,Yt,Vt,jt,zt,Gt,Wt,Bt=function(){return String.fromCharCode.apply(null,arguments)},Ft=Bt(103,114,101,101,110,115,111,99,107,46,99,111,109),Ut=Bt(103,115,97,112,46,99,111,109),Zt=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,$t=(function(t){var e="undefined"!=typeof window,s=0===(e?window.location.href:"").indexOf(Bt(102,105,108,101,58,47,47))||-1!==t.indexOf(Bt(108,111,99,97,108,104,111,115,116))||Zt.test(t)||(e?window.location.hostname:"").split(".").pop()===Bt(108,111,99,97,108),i=[Ft,Ut,Bt(99,111,100,101,112,101,110,46,105,111),Bt(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),Bt(99,111,100,101,112,101,110,46,100,101,118),Bt(99,111,100,101,112,101,110,46,97,112,112),Bt(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),Bt(112,101,110,115,46,99,108,111,117,100),Bt(99,115,115,45,116,114,105,99,107,115,46,99,111,109),Bt(99,100,112,110,46,105,111),Bt(112,101,110,115,46,105,111),Bt(103,97,110,110,111,110,46,116,118),Bt(99,111,100,101,99,97,110,121,111,110,46,110,101,116),Bt(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),Bt(99,101,114,101,98,114,97,120,46,99,111,46,117,107),Bt(116,121,109,112,97,110,117,115,46,110,101,116),Bt(116,119,101,101,110,109,97,120,46,99,111,109),Bt(112,108,110,107,114,46,99,111),Bt(104,111,116,106,97,114,46,99,111,109),Bt(119,101,98,112,97,99,107,98,105,110,46,99,111,109),Bt(97,114,99,104,105,118,101,46,111,114,103),Bt(99,111,100,101,115,97,110,100,98,111,120,46,105,111),Bt(99,115,98,46,97,112,112),Bt(115,116,97,99,107,98,108,105,116,122,46,99,111,109),Bt(115,116,97,99,107,98,108,105,116,122,46,105,111),Bt(99,111,100,105,101,114,46,105,111),Bt(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),Bt(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),Bt(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),Bt(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),Bt(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),Bt(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){if(e)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",n);else{document.removeEventListener("readystatechange",n);var t="object"==typeof Xt?Xt:e&&window.gsap;e&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(Bt(37,99,87,97,114,110,105,110,103),Bt(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(Bt(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"MotionPathHelper"+Bt(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(Bt(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),Bt(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},o=i.length;for(setTimeout(n,50);--o>-1;)if(-1!==t.indexOf(i[o]))return!0;s||setTimeout((function(){e&&(window.location.href=Bt(104,116,116,112,115,58,47,47)+Ft+Bt(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=MotionPathHelper&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),/(^[#\.][a-z]|[a-y][a-z])/i),Kt=t=>"string"==typeof t,Qt=(t,e)=>{let s=It.createElementNS?It.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):It.createElement(t);return s.style?s:It.createElement(t)},Jt=(t,e,s)=>Kt(t)&&$t.test(t)?It.querySelector(t):Array.isArray(t)?zt(jt([{x:Xt.getProperty(e,"x"),y:Xt.getProperty(e,"y")},...t],s)):Kt(t)||t&&"path"===(t.tagName+"").toLowerCase()?t:0,te={matrix:{a:1,b:0,c:0,d:1,e:0,f:0}},ee=(t,e)=>{let s="Please gsap.registerPlugin(MotionPathPlugin)";Ot=window,Xt=Xt||t||Ot.gsap||console.warn(s),Xt&&Lt.register(Xt),It=document,Yt=It.body,qt=It.documentElement,Xt&&(Vt=Xt.plugins.motionPath,se.PathEditor=Lt,Gt=Xt.core.context||function(){}),Vt?(Wt=Qt("textarea"),Wt.style.display="none",Yt.appendChild(Wt),jt=Vt.arrayToRawPath,zt=Vt.rawPathToString):!0===e&&console.warn(s)};class se{constructor(t,e={}){Vt||ee(e.gsap,1);let s,i,n,o,r,a,h,l,c,d,g,p,u,_,f=Qt("div"),m=this,b={x:0,y:0};t instanceof Xt.core.Tween?(l=t,s=l.targets()[0]):(s=Xt.utils.toArray(t)[0],l=(t=>{let e=Xt.getTweensOf(t),s=0;for(;s<e.length;s++){if(e[s].vars.motionPath)return e[s];e[s].timeline&&e.push(...e[s].timeline.getChildren())}})(s)),i=Jt(e.path,s,e),this.offset=b,a=(t=>{let e=t.getBoundingClientRect(),s=qt.clientTop-(Ot.pageYOffset||qt.scrollTop||Yt.scrollTop||0),i=qt.clientLeft-(Ot.pageXOffset||qt.scrollLeft||Yt.scrollLeft||0);return{left:e.left+i,top:e.top+s,right:e.right+i,bottom:e.bottom+s}})(s),o=parseFloat(Xt.getProperty(s,"x","px")),r=parseFloat(Xt.getProperty(s,"y","px")),n=s.getCTM&&"svg"!==s.tagName.toLowerCase(),l&&!i&&(i=Jt(l.vars.motionPath.path||l.vars.motionPath,s,l.vars.motionPath)),f.setAttribute("class","copy-motion-path"),f.style.cssText="border-radius:8px; background-color:rgba(85, 85, 85, 0.7); color:#fff; cursor:pointer; padding:6px 12px; font-family:Signika Negative, Arial, sans-serif; position:fixed; left:50%; transform:translate(-50%, 0); font-size:19px; bottom:10px",f.innerText="COPY MOTION PATH",f._gsHelper=m,(Xt.utils.toArray(e.container)[0]||Yt).appendChild(f),((t,e,s)=>{t.addEventListener("click",i=>{if(i.target._gsHelper){let n=e(i.target);if(Wt.value=n,n&&Wt.select){console.log(n),Wt.style.display="block",Wt.select();try{It.execCommand("copy"),Wt.blur(),s&&s(t)}catch(t){console.warn("Copy didn't work; this browser doesn't permit that.")}Wt.style.display="none"}}})})(f,()=>m.getString(),()=>Xt.fromTo(f,{backgroundColor:"white"},{duration:.5,backgroundColor:"rgba(85, 85, 85, 0.6)"})),h=i&&i.ownerSVGElement,h?(e.pathColor&&Xt.set(i,{stroke:e.pathColor}),e.pathWidth&&Xt.set(i,{strokeWidth:e.pathWidth}),e.pathOpacity&&Xt.set(i,{opacity:e.pathOpacity})):(c=n&&s.ownerSVGElement&&s.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg",n?(h=s.ownerSVGElement,d=s.getBBox(),g=(t=>(t.transform.baseVal.consolidate()||te).matrix)(s),o=g.e,r=g.f,b.x=d.x,b.y=d.y):(h=Qt("svg",c),_=!0,Yt.appendChild(h),h.setAttribute("viewBox","0 0 100 100"),h.setAttribute("class","motion-path-helper"),h.style.cssText="overflow:visible; background-color: transparent; position:absolute; z-index:5000; width:100px; height:100px; top:"+(a.top-r)+"px; left:"+(a.left-o)+"px;"),d=Kt(i)&&!$t.test(i)?i:((t,e)=>{let s,i=[0,31,8,58,24,75,40,90,69,100,100,100];for(s=0;s<i.length;s+=2)i[s]+=t,i[s+1]+=e;return"M"+t+","+e+"C"+i.join(",")})(o,r),i=Qt("path",c),i.setAttribute("d",d),i.setAttribute("vector-effect","non-scaling-stroke"),i.style.cssText="fill:transparent; stroke-width:"+(e.pathWidth||3)+"; stroke:"+(e.pathColor||"#555")+"; opacity:"+(e.pathOpacity||.6),h.appendChild(i)),(b.x||b.y)&&Xt.set(i,{x:b.x,y:b.y}),"selected"in e||(e.selected=!0),"anchorSnap"in e||(e.anchorSnap=t=>{t.x*t.x+t.y*t.y<16&&(t.x=t.y=0)}),u=l&&l.parent&&"nested"===l.parent.data?l.parent.parent:l,e.onPress=()=>{u.pause(0)},p=()=>{l.invalidate(),u.restart()},e.onRelease=e.onDeleteAnchor=p,this.editor=Lt.create(i,e),e.center&&Xt.set(s,{transformOrigin:"50% 50%",xPercent:-50,yPercent:-50}),l?(l.vars.motionPath.path?l.vars.motionPath.path=i:l.vars.motionPath={path:i},u.parent!==Xt.globalTimeline&&Xt.globalTimeline.add(u,(t=>{let e=t.totalTime();for(;t;)e=t.startTime()+e/(t.timeScale()||1),t=t.parent;return e})(u)-u.delay()),u.repeat(-1).repeatDelay(1)):l=u=Xt.to(s,{motionPath:{path:i,start:e.start||0,end:"end"in e?e.end:1,autoRotate:"autoRotate"in e&&e.autoRotate,align:i,alignOrigin:e.alignOrigin},duration:e.duration||5,ease:e.ease||"power1.inOut",repeat:-1,repeatDelay:1,paused:!e.path}),this.animation=l,Gt(this),this.kill=this.revert=()=>{this.editor.kill(),f.parentNode&&f.parentNode.removeChild(f),_&&h.parentNode&&h.parentNode.removeChild(h),u&&u.revert()}}getString(){return this.editor.getString(!0,-this.offset.x,-this.offset.y)}}se.register=ee,se.create=(t,e)=>new se(t,e),se.editPath=(t,e)=>Lt.create(t,e),se.version="3.12.5";export default se;export{se as MotionPathHelper}; |
/*! | ||
* MotionPathPlugin 3.12.4 | ||
* MotionPathPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let t=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,e=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,n=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,l=Math.PI/180,o=180/Math.PI,s=Math.sin,i=Math.cos,a=Math.abs,h=Math.sqrt,g=Math.atan2,p=t=>"string"==typeof t,f=t=>"number"==typeof t,u={},c={},d=t=>Math.round((t+1e8)%1*1e5)/1e5||(t<0?0:1),m=t=>Math.round(1e5*t)/1e5||0,y=t=>Math.round(1e10*t)/1e10||0,x=(t,e,n,r)=>{let l=t[e],o=1===r?6:_(l,n,r);if(o&&o+n+2<l.length)return t.splice(e,0,l.slice(0,n+o+2)),l.splice(0,n+o),1},w=(t,e,n)=>{let r=t.length,l=~~(n*r);if(t[l]>e){for(;--l&&t[l]>e;);l<0&&(l=0)}else for(;t[++l]<e&&l<r;);return l<r?l:r-1},b=(t,e)=>(e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e),L=(t,e)=>{let n=t.length,r=t[n-1]||[],l=r.length;n&&e[0]===r[l-2]&&e[1]===r[l-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e};function P(t){let e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),e=n._gsPath[t],e&&!e._dirty?e:n._gsPath[t]=I(t)):t?p(t)?I(t):f(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function v(t){let e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}let C={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function N(t,n){let r,l,o,s,i,a,h,g,p,f,u,c,d,m,y,x,w,b,L,P,v,N,M=t.tagName.toLowerCase(),T=.552284749831;return"path"!==M&&t.getBBox?(a=((t,e)=>{let n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),l=[].slice.call(t.attributes),o=l.length;for(e=","+e+",";--o>-1;)n=l[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,l[o].nodeValue);return r})(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),N=((t,e)=>{let n=e?e.split(","):[],r={},l=n.length;for(;--l>-1;)r[n[l]]=+t.getAttribute(n[l])||0;return r})(t,C[M]),"rect"===M?(s=N.rx,i=N.ry||s,l=N.x,o=N.y,f=N.width-2*s,u=N.height-2*i,s||i?(c=l+s*(1-T),d=l+s,m=d+f,y=m+s*T,x=m+s,w=o+i*(1-T),b=o+i,L=b+u,P=L+i*T,v=L+i,r="M"+x+","+b+" V"+L+" C"+[x,P,y,v,m,v,m-(m-d)/3,v,d+(m-d)/3,v,d,v,c,v,l,P,l,L,l,L-(L-b)/3,l,b+(L-b)/3,l,b,l,w,c,o,d,o,d+(m-d)/3,o,m-(m-d)/3,o,m,o,y,o,x,w,x,b].join(",")+"z"):r="M"+(l+f)+","+o+" v"+u+" h"+-f+" v"+-u+" h"+f+"z"):"circle"===M||"ellipse"===M?("circle"===M?(s=i=N.r,g=s*T):(s=N.rx,i=N.ry,g=i*T),l=N.cx,o=N.cy,h=s*T,r="M"+(l+s)+","+o+" C"+[l+s,o+g,l+h,o+i,l,o+i,l-h,o+i,l-s,o+g,l-s,o,l-s,o-g,l-h,o-i,l,o-i,l+h,o-i,l+s,o-g,l+s,o].join(",")+"z"):"line"===M?r="M"+N.x1+","+N.y1+" L"+N.x2+","+N.y2:"polyline"!==M&&"polygon"!==M||(p=(t.getAttribute("points")+"").match(e)||[],l=p.shift(),o=p.shift(),r="M"+l+","+o+" L"+p.join(","),"polygon"===M&&(r+=","+l+","+o+"z")),a.setAttribute("d",X(a._gsRawPath=I(r))),n&&t.parentNode&&(t.parentNode.insertBefore(a,t),t.parentNode.removeChild(t)),a):t}function M(t,e,n){let r,l=t[e],s=t[e+2],i=t[e+4];return l+=(s-l)*n,s+=(i-s)*n,l+=(s-l)*n,r=s+(i+(t[e+6]-i)*n-s)*n-l,l=t[e+1],s=t[e+3],i=t[e+5],l+=(s-l)*n,s+=(i-s)*n,l+=(s-l)*n,m(g(s+(i+(t[e+7]-i)*n-s)*n-l,r)*o)}function T(t,e,n){n=void 0===n?1:y(n)||0,e=y(e)||0;let r=Math.max(0,~~(a(n-e)-1e-8)),l=function(t){let e=[],n=0;for(;n<t.length;n++)e[n]=b(t[n],t[n].slice(0));return b(t,e)}(t);if(e>n&&(e=1-e,n=1-n,((t,e)=>{let n=t.length;for(e||t.reverse();n--;)t[n].reversed||v(t[n])})(l),l.totalLength=0),e<0||n<0){let t=Math.abs(~~Math.min(e,n))+1;e+=t,n+=t}l.totalLength||S(l);let o,s,i,h,g,p,f,d,m=n>1,w=B(l,e,u,!0),P=B(l,n,c),C=P.segment,N=w.segment,T=P.segIndex,A=w.segIndex,O=P.i,R=w.i,E=A===T,I=O===R&&E;if(m||r){for(o=T<A||E&&O<R||I&&P.t<w.t,x(l,A,R,w.t)&&(A++,o||(T++,I?(P.t=(P.t-w.t)/(1-w.t),O=0):E&&(O-=R))),Math.abs(1-(n-e))<1e-5?T=A-1:!P.t&&T?T--:x(l,T,O,P.t)&&o&&A++,1===w.t&&(A=(A+1)%l.length),g=[],p=l.length,f=1+p*r,d=A,f+=(p-A+T)%p,h=0;h<f;h++)L(g,l[d++%p]);l=g}else if(i=1===P.t?6:_(C,O,P.t),e!==n)for(s=_(N,R,I?w.t/P.t:w.t),E&&(i+=s),C.splice(O+i+2),(s||R)&&N.splice(0,R+s),h=l.length;h--;)(h<A||h>T)&&l.splice(h,1);else C.angle=M(C,O+i,0),O+=i,w=C[O],P=C[O+1],C.length=C.totalLength=0,C.totalPoints=l.totalPoints=8,C.push(w,P,w,P,w,P,w,P);return l.totalLength=0,l}function A(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);let r,l,o,s,i,g,p,f,u,c,d,m,y,x,w,b,L,P=~~t.resolution||12,v=1/P,C=n?e+6*n+1:t.length,N=t[e],M=t[e+1],T=e?e/6*P:0,A=t.samples,S=t.lookup,_=(e?t.minLength:1e8)||1e8,B=A[T+n*P-1],O=e?A[T-1]:0;for(A.length=S.length=0,l=e+2;l<C;l+=6){if(o=t[l+4]-N,s=t[l+2]-N,i=t[l]-N,f=t[l+5]-M,u=t[l+3]-M,c=t[l+1]-M,g=p=d=m=0,a(o)<.01&&a(f)<.01&&a(i)+a(c)<.01)t.length>8&&(t.splice(l,6),l-=6,C-=6);else for(r=1;r<=P;r++)x=v*r,y=1-x,g=p-(p=(x*x*o+3*y*(x*s+y*i))*x),d=m-(m=(x*x*f+3*y*(x*u+y*c))*x),b=h(d*d+g*g),b<_&&(_=b),O+=b,A[T++]=O;N+=o,M+=f}if(B)for(B-=O;T<A.length;T++)A[T]+=B;if(A.length&&_){if(t.totalLength=L=A[A.length-1]||0,t.minLength=_,L/_<9999)for(b=w=0,r=0;r<L;r+=_)S[b++]=A[w]<r?++w:w}else t.totalLength=A[0]=0;return e?O-A[e/2-1]:O}function S(t,e){let n,r,l;for(l=n=r=0;l<t.length;l++)t[l].resolution=~~e||12,r+=t[l].length,n+=A(t[l]);return t.totalPoints=r,t.totalLength=n,t}function _(t,e,n){if(n<=0||n>=1)return 0;let r=t[e],l=t[e+1],o=t[e+2],s=t[e+3],i=t[e+4],a=t[e+5],h=r+(o-r)*n,g=o+(i-o)*n,p=l+(s-l)*n,f=s+(a-s)*n,u=h+(g-h)*n,c=p+(f-p)*n,d=i+(t[e+6]-i)*n,y=a+(t[e+7]-a)*n;return g+=(d-g)*n,f+=(y-f)*n,t.splice(e+2,4,m(h),m(p),m(u),m(c),m(u+(g-u)*n),m(c+(f-c)*n),m(g),m(f),m(d),m(y)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function B(t,e,n,r){n=n||{},t.totalLength||S(t),(e<0||e>1)&&(e=d(e));let l,o,s,i,a,h,g,p=0,f=t[0];if(e)if(1===e)g=1,p=t.length-1,f=t[p],h=f.length-8;else{if(t.length>1){for(s=t.totalLength*e,a=h=0;(a+=t[h++].totalLength)<s;)p=h;f=t[p],i=a-f.totalLength,e=(s-i)/(a-i)||0}l=f.samples,o=f.resolution,s=f.totalLength*e,h=f.lookup.length?f.lookup[~~(s/f.minLength)]||0:w(l,s,e),i=h?l[h-1]:0,a=l[h],a<s&&(i=a,a=l[++h]),g=1/o*((s-i)/(a-i)+h%o),h=6*~~(h/o),r&&1===g&&(h+6<f.length?(h+=6,g=0):p+1<t.length&&(h=g=0,f=t[++p]))}else g=h=p=0,f=t[0];return n.t=g,n.i=h,n.path=t,n.segment=f,n.segIndex=p,n}function O(t,e,n,r){let l,o,s,i,a,h,g,p,f,u=t[0],c=r||{};if((e<0||e>1)&&(e=d(e)),u.lookup||S(t),t.length>1){for(s=t.totalLength*e,a=h=0;(a+=t[h++].totalLength)<s;)u=t[h];i=a-u.totalLength,e=(s-i)/(a-i)||0}return l=u.samples,o=u.resolution,s=u.totalLength*e,h=u.lookup.length?u.lookup[e<1?~~(s/u.minLength):u.lookup.length-1]||0:w(l,s,e),i=h?l[h-1]:0,a=l[h],a<s&&(i=a,a=l[++h]),g=1/o*((s-i)/(a-i)+h%o)||0,f=1-g,h=6*~~(h/o),p=u[h],c.x=m((g*g*(u[h+6]-p)+3*f*(g*(u[h+4]-p)+f*(u[h+2]-p)))*g+p),c.y=m((g*g*(u[h+7]-(p=u[h+1]))+3*f*(g*(u[h+5]-p)+f*(u[h+3]-p)))*g+p),n&&(c.angle=u.totalLength?M(u,h,g>=1?1-1e-9:g||1e-9):u.angle||0),c}function R(t,e,n,r,l,o,s){let i,a,h,g,p,f=t.length;for(;--f>-1;)for(i=t[f],a=i.length,h=0;h<a;h+=2)g=i[h],p=i[h+1],i[h]=g*e+p*r+o,i[h+1]=g*n+p*l+s;return t._dirty=1,t}function E(t,e,n,r,o,g,p,f,u){if(t===f&&e===u)return;n=a(n),r=a(r);let c=o%360*l,d=i(c),m=s(c),y=Math.PI,x=2*y,w=(t-f)/2,b=(e-u)/2,L=d*w+m*b,P=-m*w+d*b,v=L*L,C=P*P,N=v/(n*n)+C/(r*r);N>1&&(n=h(N)*n,r=h(N)*r);let M=n*n,T=r*r,A=(M*T-M*C-T*v)/(M*C+T*v);A<0&&(A=0);let S=(g===p?-1:1)*h(A),_=S*(n*P/r),B=S*(-r*L/n),O=(t+f)/2+(d*_-m*B),R=(e+u)/2+(m*_+d*B),E=(L-_)/n,I=(P-B)/r,k=(-L-_)/n,z=(-P-B)/r,X=E*E+I*I,Y=(I<0?-1:1)*Math.acos(E/h(X)),V=(E*z-I*k<0?-1:1)*Math.acos((E*k+I*z)/h(X*(k*k+z*z)));isNaN(V)&&(V=y),!p&&V>0?V-=x:p&&V<0&&(V+=x),Y%=x,V%=x;let j,q=Math.ceil(a(V)/(x/4)),F=[],G=V/q,Z=4/3*s(G/2)/(1+i(G/2)),H=d*n,U=m*n,D=m*-r,Q=d*r;for(j=0;j<q;j++)L=i(o=Y+j*G),P=s(o),E=i(o+=G),I=s(o),F.push(L-Z*P,P+Z*L,E+Z*I,I-Z*E,E,I);for(j=0;j<F.length;j+=2)L=F[j],P=F[j+1],F[j]=L*H+P*D+O,F[j+1]=L*U+P*Q+R;return F[j-2]=f,F[j-1]=u,F}function I(e){let r,l,o,s,i,h,g,p,f,u,c,d,m,y,x,w=(e+"").replace(n,t=>{let e=+t;return e<1e-4&&e>-1e-4?0:e}).match(t)||[],b=[],L=0,P=0,v=w.length,C=0,N="ERROR: malformed path: "+e,M=function(t,e,n,r){u=(n-t)/3,c=(r-e)/3,g.push(t+u,e+c,n-u,r-c,n,r)};if(!e||!isNaN(w[0])||isNaN(w[1]))return console.log(N),b;for(r=0;r<v;r++)if(m=i,isNaN(w[r])?(i=w[r].toUpperCase(),h=i!==w[r]):r--,o=+w[r+1],s=+w[r+2],h&&(o+=L,s+=P),r||(p=o,f=s),"M"===i)g&&(g.length<8?b.length-=1:C+=g.length),L=p=o,P=f=s,g=[o,s],b.push(g),r+=2,i="L";else if("C"===i)g||(g=[0,0]),h||(L=P=0),g.push(o,s,L+1*w[r+3],P+1*w[r+4],L+=1*w[r+5],P+=1*w[r+6]),r+=6;else if("S"===i)u=L,c=P,"C"!==m&&"S"!==m||(u+=L-g[g.length-4],c+=P-g[g.length-3]),h||(L=P=0),g.push(u,c,o,s,L+=1*w[r+3],P+=1*w[r+4]),r+=4;else if("Q"===i)u=L+2/3*(o-L),c=P+2/3*(s-P),h||(L=P=0),L+=1*w[r+3],P+=1*w[r+4],g.push(u,c,L+2/3*(o-L),P+2/3*(s-P),L,P),r+=4;else if("T"===i)u=L-g[g.length-4],c=P-g[g.length-3],g.push(L+u,P+c,o+2/3*(L+1.5*u-o),s+2/3*(P+1.5*c-s),L=o,P=s),r+=2;else if("H"===i)M(L,P,L=o,P),r+=1;else if("V"===i)M(L,P,L,P=o+(h?P-L:0)),r+=1;else if("L"===i||"Z"===i)"Z"===i&&(o=p,s=f,g.closed=!0),("L"===i||a(L-o)>.5||a(P-s)>.5)&&(M(L,P,o,s),"L"===i&&(r+=2)),L=o,P=s;else if("A"===i){if(y=w[r+4],x=w[r+5],u=w[r+6],c=w[r+7],l=7,y.length>1&&(y.length<3?(c=u,u=x,l--):(c=x,u=y.substr(2),l-=2),x=y.charAt(1),y=y.charAt(0)),d=E(L,P,+w[r+1],+w[r+2],+w[r+3],+y,+x,(h?L:0)+1*u,(h?P:0)+1*c),r+=l,d)for(l=0;l<d.length;l++)g.push(d[l]);L=g[g.length-2],P=g[g.length-1]}else console.log(N);return r=g.length,r<6?(b.pop(),r=0):g[0]===g[r-2]&&g[1]===g[r-1]&&(g.closed=!0),b.totalPoints=C+r,b}function k(t,e=1){let n=t[0],r=0,l=[n,r],o=2;for(;o<t.length;o+=2)l.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return l}function z(t,e){a(t[0]-t[2])<1e-4&&a(t[1]-t[3])<1e-4&&(t=t.slice(2));let n,r,l,o,s,i,g,p,f,u,c,d,y,x,w,b=t.length-2,L=+t[0],P=+t[1],v=+t[2],C=+t[3],N=[L,P,L,P],M=v-L,T=C-P,A=Math.abs(t[b]-L)<.001&&Math.abs(t[b+1]-P)<.001;for(A&&(t.push(v,C),v=L,C=P,L=t[b-2],P=t[b-1],t.unshift(L,P),b+=4),e=e||0===e?+e:1,l=2;l<b;l+=2)n=L,r=P,L=v,P=C,v=+t[l+2],C=+t[l+3],L===v&&P===C||(o=M,s=T,M=v-L,T=C-P,i=h(o*o+s*s),g=h(M*M+T*T),p=h((M/g+o/i)**2+(T/g+s/i)**2),f=(i+g)*e*.25/p,u=L-(L-n)*(i?f/i:0),c=L+(v-L)*(g?f/g:0),d=L-(u+((c-u)*(3*i/(i+g)+.5)/4||0)),y=P-(P-r)*(i?f/i:0),x=P+(C-P)*(g?f/g:0),w=P-(y+((x-y)*(3*i/(i+g)+.5)/4||0)),L===n&&P===r||N.push(m(u+d),m(y+w),m(L),m(P),m(c+d),m(x+w)));return L!==v||P!==C||N.length<4?N.push(m(v),m(C),m(v),m(C)):N.length-=2,2===N.length?N.push(L,P,L,P,L,P):A&&(N.splice(0,6),N.length=N.length-6),N}function X(t){f(t[0])&&(t=[t]);let e,n,r,l,o="",s=t.length;for(n=0;n<s;n++){for(l=t[n],o+="M"+m(l[0])+","+m(l[1])+" C",e=l.length,r=2;r<e;r++)o+=m(l[r++])+","+m(l[r++])+" "+m(l[r++])+","+m(l[r++])+" "+m(l[r++])+","+m(l[r])+" ";l.closed&&(o+="z")}return o}let Y,V,j,q,F,G,Z,H,U,D="transform",Q=D+"Origin",W=t=>{let e=t.ownerDocument||t;!(D in t.style)&&"msTransform"in t.style&&(D="msTransform",Q=D+"Origin");for(;e.parentNode&&(e=e.parentNode););if(V=window,Z=new lt,e){Y=e,j=e.documentElement,q=e.body,H=Y.createElementNS("http://www.w3.org/2000/svg","g"),H.style.transform="none";let t=e.createElement("div"),n=e.createElement("div"),r=e&&(e.body||e.firstElementChild);r&&r.appendChild&&(r.appendChild(t),t.appendChild(n),t.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),U=n.offsetParent!==t,r.removeChild(t))}return e},$=[],J=[],K=t=>t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null),tt=t=>"fixed"===V.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?tt(t):void 0),et=(t,e)=>{if(t.parentNode&&(Y||W(t))){let n=K(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l=n?e?"rect":"g":"div",o=2!==e?0:100,s=3===e?100:0,i="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",a=Y.createElementNS?Y.createElementNS(r.replace(/^https/,"http"),l):Y.createElement(l);return e&&(n?(G||(G=et(t)),a.setAttribute("width",.01),a.setAttribute("height",.01),a.setAttribute("transform","translate("+o+","+s+")"),G.appendChild(a)):(F||(F=et(t),F.style.cssText=i),a.style.cssText=i+"width:0.1px;height:0.1px;top:"+s+"px;left:"+o+"px",F.appendChild(a))),a}throw"Need document and parent."},nt=(t,e)=>{let n,r,l,o,s,i,a=K(t),h=t===a,g=a?$:J,p=t.parentNode;if(t===V)return t;if(g.length||g.push(et(t,1),et(t,2),et(t,3)),n=a?G:F,a)h?(l=(t=>{let e,n=t.getCTM();return n||(e=t.style[D],t.style[D]="none",t.appendChild(H),n=H.getCTM(),t.removeChild(H),e?t.style[D]=e:t.style.removeProperty(D.replace(/([A-Z])/g,"-$1").toLowerCase())),n||Z.clone()})(t),o=-l.e/l.a,s=-l.f/l.d,r=Z):t.getBBox?(l=t.getBBox(),r=t.transform?t.transform.baseVal:{},r=r.numberOfItems?r.numberOfItems>1?(t=>{let e=new lt,n=0;for(;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e})(r):r.getItem(0).matrix:Z,o=r.a*l.x+r.c*l.y,s=r.b*l.x+r.d*l.y):(r=new lt,o=s=0),e&&"g"===t.tagName.toLowerCase()&&(o=s=0),(h?a:p).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+s)+")");else{if(o=s=0,U)for(r=t.offsetParent,l=t;l&&(l=l.parentNode)&&l!==r&&l.parentNode;)(V.getComputedStyle(l)[D]+"").length>4&&(o=l.offsetLeft,s=l.offsetTop,l=0);if(i=V.getComputedStyle(t),"absolute"!==i.position&&"fixed"!==i.position)for(r=t.offsetParent;p&&p!==r;)o+=p.scrollLeft||0,s+=p.scrollTop||0,p=p.parentNode;l=n.style,l.top=t.offsetTop-s+"px",l.left=t.offsetLeft-o+"px",l[D]=i[D],l[Q]=i[Q],l.position="fixed"===i.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n},rt=(t,e,n,r,l,o,s)=>(t.a=e,t.b=n,t.c=r,t.d=l,t.e=o,t.f=s,t);class lt{constructor(t=1,e=0,n=0,r=1,l=0,o=0){rt(this,t,e,n,r,l,o)}inverse(){let{a:t,b:e,c:n,d:r,e:l,f:o}=this,s=t*r-e*n||1e-10;return rt(this,r/s,-e/s,-n/s,t/s,(n*o-r*l)/s,-(t*o-e*l)/s)}multiply(t){let{a:e,b:n,c:r,d:l,e:o,f:s}=this,i=t.a,a=t.c,h=t.b,g=t.d,p=t.e,f=t.f;return rt(this,i*e+h*r,i*n+h*l,a*e+g*r,a*n+g*l,o+p*e+f*r,s+p*n+f*l)}clone(){return new lt(this.a,this.b,this.c,this.d,this.e,this.f)}equals(t){let{a:e,b:n,c:r,d:l,e:o,f:s}=this;return e===t.a&&n===t.b&&r===t.c&&l===t.d&&o===t.e&&s===t.f}apply(t,e={}){let{x:n,y:r}=t,{a:l,b:o,c:s,d:i,e:a,f:h}=this;return e.x=n*l+r*s+a||0,e.y=n*o+r*i+h||0,e}}function ot(t,e,n,r){if(!t||!t.parentNode||(Y||W(t)).documentElement===t)return new lt;let l=(t=>{let e,n;for(;t&&t!==q;)n=t._gsap,n&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e})(t),o=K(t)?$:J,s=nt(t,n),i=o[0].getBoundingClientRect(),a=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),g=s.parentNode,p=!r&&tt(t),f=new lt((a.left-i.left)/100,(a.top-i.top)/100,(h.left-i.left)/100,(h.top-i.top)/100,i.left+(p?0:V.pageXOffset||Y.scrollLeft||j.scrollLeft||q.scrollLeft||0),i.top+(p?0:V.pageYOffset||Y.scrollTop||j.scrollTop||q.scrollTop||0));if(g.removeChild(s),l)for(i=l.length;i--;)a=l[i],a.scaleX=a.scaleY=0,a.renderTransform(1,a);return e?f.inverse():f}let st,it,at,ht,gt,pt,ft="x,translateX,left,marginLeft,xPercent".split(","),ut="y,translateY,top,marginTop,yPercent".split(","),ct=Math.PI/180,dt=(t,e,n,r)=>{let l,o=e.length,s=2===r?0:r,i=0;for(;i<o;i++)t[s]=l=parseFloat(e[i][n]),2===r&&(t[s+1]=0),s+=2;return t},mt=(t,e,n)=>parseFloat(t._gsap.get(t,e,n||"px"))||0,yt=t=>{let e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r},xt=(t,e,n,r,l,o,s,i,a)=>{if("cubic"===s.type)e=[e];else{!1!==s.fromCurrent&&e.unshift(mt(n,r,i),l?mt(n,l,a):0),s.relative&&yt(e),e=[(l?z:k)(e,s.curviness)]}return e=o(vt(e,n,s)),Ct(t,n,r,e,"x",i),l&&Ct(t,n,l,e,"y",a),S(e,s.resolution||(0===s.curviness?20:12))},wt=t=>t,bt=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,Lt=(t,e,n)=>{let r,l=ot(t),o=0,s=0;return"svg"===(t.tagName+"").toLowerCase()?(r=t.viewBox.baseVal,r.width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")})):r=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(o=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,s=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(o||s?l.apply({x:o,y:s}):{x:l.e,y:l.f})},Pt=(t,e,n,r)=>{let l,o=ot(t.parentNode,!0,!0),s=o.clone().multiply(ot(e)),i=Lt(t,n,o),{x:a,y:h}=Lt(e,r,o);return s.e=s.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(l=e.getAttribute("d").match(bt)||[],l=s.apply({x:+l[0],y:+l[1]}),a+=l.x,h+=l.y),l&&(l=s.apply(e.getBBox()),a-=l.x,h-=l.y),s.e=a-i.x,s.f=h-i.y,s},vt=(t,e,{align:n,matrix:r,offsetX:l,offsetY:o,alignOrigin:s})=>{let i,a,h,g=t[0][0],p=t[0][1],f=mt(e,"x"),u=mt(e,"y");return t&&t.length?(n&&("self"===n||(i=ht(n)[0]||e)===e?R(t,1,0,0,1,f-g,u-p):(s&&!1!==s[2]?st.set(e,{transformOrigin:100*s[0]+"% "+100*s[1]+"%"}):s=[mt(e,"xPercent")/-100,mt(e,"yPercent")/-100],a=Pt(e,i,s,"auto"),h=a.apply({x:g,y:p}),R(t,a.a,a.b,a.c,a.d,f+a.e-(h.x-a.e),u+a.f-(h.y-a.f)))),r?R(t,r.a,r.b,r.c,r.d,r.e,r.f):(l||o)&&R(t,1,0,0,1,l||0,o||0),t):P("M0,0L0,0")},Ct=(t,e,n,r,l,o)=>{let s=e._gsap,i=s.harness,a=i&&i.aliases&&i.aliases[n],h=a&&a.indexOf(",")<0?a:n,g=t._pt=new it(t._pt,e,h,0,0,wt,0,s.set(e,h,t));g.u=at(s.get(e,h,o))||0,g.path=r,g.pp=l,t._props.push(h)};const Nt={version:"3.12.4",name:"motionPath",register(t,e,n){st=t,at=st.utils.getUnit,ht=st.utils.toArray,gt=st.core.getStyleSaver,pt=st.core.reverting||function(){},it=n},init(t,e,n){if(!st)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});let r,l,o=[],{path:s,autoRotate:i,unitX:a,unitY:h,x:g,y:p}=e,f=s[0],u=(c=e.start,d="end"in e?e.end:1,t=>c||1!==d?T(t,c,d):t);var c,d;if(this.rawPaths=o,this.target=t,this.tween=n,this.styles=gt&>(t,"transform"),(this.rotate=i||0===i)&&(this.rOffset=parseFloat(i)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=at(t._gsap.get(t,this.rProp))||0),Array.isArray(s)&&!("closed"in s)&&"number"!=typeof f){for(l in f)!g&&~ft.indexOf(l)?g=l:!p&&~ut.indexOf(l)&&(p=l);for(l in g&&p?o.push(xt(this,dt(dt([],s,g,0),s,p,1),t,g,p,u,e,a||at(s[0][g]),h||at(s[0][p]))):g=p=0,f)l!==g&&l!==p&&o.push(xt(this,dt([],s,l,2),t,l,0,u,e,at(s[0][l])))}else r=u(vt(P(e.path),t,e)),S(r,e.resolution),o.push(r),Ct(this,t,e.x||"x",r,"x",e.unitX||"px"),Ct(this,t,e.y||"y",r,"y",e.unitY||"px")},render(t,e){let n=e.rawPaths,r=n.length,l=e._pt;if(e.tween._time||!pt()){for(t>1?t=1:t<0&&(t=0);r--;)O(n[r],t,!r&&e.rotate,n[r]);for(;l;)l.set(l.t,l.p,l.path[l.pp]+l.u,l.d,t),l=l._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?ct:1)+e.rOffset+e.ru,e,t)}else e.styles.revert()},getLength:t=>S(P(t)).totalLength,sliceRawPath:T,getRawPath:P,pointsToSegment:z,stringToRawPath:I,rawPathToString:X,transformRawPath:R,getGlobalMatrix:ot,getPositionOnPath:O,cacheRawPathMeasurements:S,convertToPath:(t,e)=>ht(t).map(t=>N(t,!1!==e)),convertCoordinates(t,e,n){let r=ot(e,!0,!0).multiply(ot(t));return n?r.apply(n):r},getAlignMatrix:Pt,getRelativePosition(t,e,n,r){let l=Pt(t,e,n,r);return{x:l.e,y:l.f}},arrayToRawPath(t,e){let n=dt(dt([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&yt(n),["cubic"===e.type?n:z(n,e.curviness)]}};(st||"undefined"!=typeof window&&(st=window.gsap)&&st.registerPlugin&&st)&&st.registerPlugin(Nt);export default Nt;export{Nt as MotionPathPlugin}; | ||
let t=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,e=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,n=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,l=Math.PI/180,o=180/Math.PI,s=Math.sin,i=Math.cos,a=Math.abs,h=Math.sqrt,g=Math.atan2,p=t=>"string"==typeof t,f=t=>"number"==typeof t,u={},c={},d=t=>Math.round((t+1e8)%1*1e5)/1e5||(t<0?0:1),m=t=>Math.round(1e5*t)/1e5||0,y=t=>Math.round(1e10*t)/1e10||0,x=(t,e,n,r)=>{let l=t[e],o=1===r?6:_(l,n,r);if((o||!r)&&o+n+2<l.length)return t.splice(e,0,l.slice(0,n+o+2)),l.splice(0,n+o),1},w=(t,e,n)=>{let r=t.length,l=~~(n*r);if(t[l]>e){for(;--l&&t[l]>e;);l<0&&(l=0)}else for(;t[++l]<e&&l<r;);return l<r?l:r-1},b=(t,e)=>(e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e),L=(t,e)=>{let n=t.length,r=t[n-1]||[],l=r.length;n&&e[0]===r[l-2]&&e[1]===r[l-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e};function P(t){let e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),e=n._gsPath[t],e&&!e._dirty?e:n._gsPath[t]=I(t)):t?p(t)?I(t):f(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function v(t){let e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}let C={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function N(t,n){let r,l,o,s,i,a,h,g,p,f,u,c,d,m,y,x,w,b,L,P,v,N,M=t.tagName.toLowerCase(),T=.552284749831;return"path"!==M&&t.getBBox?(a=((t,e)=>{let n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),l=[].slice.call(t.attributes),o=l.length;for(e=","+e+",";--o>-1;)n=l[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,l[o].nodeValue);return r})(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),N=((t,e)=>{let n=e?e.split(","):[],r={},l=n.length;for(;--l>-1;)r[n[l]]=+t.getAttribute(n[l])||0;return r})(t,C[M]),"rect"===M?(s=N.rx,i=N.ry||s,l=N.x,o=N.y,f=N.width-2*s,u=N.height-2*i,s||i?(c=l+s*(1-T),d=l+s,m=d+f,y=m+s*T,x=m+s,w=o+i*(1-T),b=o+i,L=b+u,P=L+i*T,v=L+i,r="M"+x+","+b+" V"+L+" C"+[x,P,y,v,m,v,m-(m-d)/3,v,d+(m-d)/3,v,d,v,c,v,l,P,l,L,l,L-(L-b)/3,l,b+(L-b)/3,l,b,l,w,c,o,d,o,d+(m-d)/3,o,m-(m-d)/3,o,m,o,y,o,x,w,x,b].join(",")+"z"):r="M"+(l+f)+","+o+" v"+u+" h"+-f+" v"+-u+" h"+f+"z"):"circle"===M||"ellipse"===M?("circle"===M?(s=i=N.r,g=s*T):(s=N.rx,i=N.ry,g=i*T),l=N.cx,o=N.cy,h=s*T,r="M"+(l+s)+","+o+" C"+[l+s,o+g,l+h,o+i,l,o+i,l-h,o+i,l-s,o+g,l-s,o,l-s,o-g,l-h,o-i,l,o-i,l+h,o-i,l+s,o-g,l+s,o].join(",")+"z"):"line"===M?r="M"+N.x1+","+N.y1+" L"+N.x2+","+N.y2:"polyline"!==M&&"polygon"!==M||(p=(t.getAttribute("points")+"").match(e)||[],l=p.shift(),o=p.shift(),r="M"+l+","+o+" L"+p.join(","),"polygon"===M&&(r+=","+l+","+o+"z")),a.setAttribute("d",X(a._gsRawPath=I(r))),n&&t.parentNode&&(t.parentNode.insertBefore(a,t),t.parentNode.removeChild(t)),a):t}function M(t,e,n){let r,l=t[e],s=t[e+2],i=t[e+4];return l+=(s-l)*n,s+=(i-s)*n,l+=(s-l)*n,r=s+(i+(t[e+6]-i)*n-s)*n-l,l=t[e+1],s=t[e+3],i=t[e+5],l+=(s-l)*n,s+=(i-s)*n,l+=(s-l)*n,m(g(s+(i+(t[e+7]-i)*n-s)*n-l,r)*o)}function T(t,e,n){n=void 0===n?1:y(n)||0,e=y(e)||0;let r=Math.max(0,~~(a(n-e)-1e-8)),l=function(t){let e=[],n=0;for(;n<t.length;n++)e[n]=b(t[n],t[n].slice(0));return b(t,e)}(t);if(e>n&&(e=1-e,n=1-n,((t,e)=>{let n=t.length;for(e||t.reverse();n--;)t[n].reversed||v(t[n])})(l),l.totalLength=0),e<0||n<0){let t=Math.abs(~~Math.min(e,n))+1;e+=t,n+=t}l.totalLength||S(l);let o,s,i,h,g,p,f,d,m=n>1,w=B(l,e,u,!0),P=B(l,n,c),C=P.segment,N=w.segment,T=P.segIndex,A=w.segIndex,O=P.i,R=w.i,E=A===T,I=O===R&&E;if(m||r){for(o=T<A||E&&O<R||I&&P.t<w.t,x(l,A,R,w.t)&&(A++,o||(T++,I?(P.t=(P.t-w.t)/(1-w.t),O=0):E&&(O-=R))),Math.abs(1-(n-e))<1e-5?T=A-1:!P.t&&T?T--:x(l,T,O,P.t)&&o&&A++,1===w.t&&(A=(A+1)%l.length),g=[],p=l.length,f=1+p*r,d=A,f+=(p-A+T)%p,h=0;h<f;h++)L(g,l[d++%p]);l=g}else if(i=1===P.t?6:_(C,O,P.t),e!==n)for(s=_(N,R,I?w.t/P.t:w.t),E&&(i+=s),C.splice(O+i+2),(s||R)&&N.splice(0,R+s),h=l.length;h--;)(h<A||h>T)&&l.splice(h,1);else C.angle=M(C,O+i,0),O+=i,w=C[O],P=C[O+1],C.length=C.totalLength=0,C.totalPoints=l.totalPoints=8,C.push(w,P,w,P,w,P,w,P);return l.totalLength=0,l}function A(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);let r,l,o,s,i,g,p,f,u,c,d,m,y,x,w,b,L,P=~~t.resolution||12,v=1/P,C=n?e+6*n+1:t.length,N=t[e],M=t[e+1],T=e?e/6*P:0,A=t.samples,S=t.lookup,_=(e?t.minLength:1e8)||1e8,B=A[T+n*P-1],O=e?A[T-1]:0;for(A.length=S.length=0,l=e+2;l<C;l+=6){if(o=t[l+4]-N,s=t[l+2]-N,i=t[l]-N,f=t[l+5]-M,u=t[l+3]-M,c=t[l+1]-M,g=p=d=m=0,a(o)<.01&&a(f)<.01&&a(i)+a(c)<.01)t.length>8&&(t.splice(l,6),l-=6,C-=6);else for(r=1;r<=P;r++)x=v*r,y=1-x,g=p-(p=(x*x*o+3*y*(x*s+y*i))*x),d=m-(m=(x*x*f+3*y*(x*u+y*c))*x),b=h(d*d+g*g),b<_&&(_=b),O+=b,A[T++]=O;N+=o,M+=f}if(B)for(B-=O;T<A.length;T++)A[T]+=B;if(A.length&&_){if(t.totalLength=L=A[A.length-1]||0,t.minLength=_,L/_<9999)for(b=w=0,r=0;r<L;r+=_)S[b++]=A[w]<r?++w:w}else t.totalLength=A[0]=0;return e?O-A[e/2-1]:O}function S(t,e){let n,r,l;for(l=n=r=0;l<t.length;l++)t[l].resolution=~~e||12,r+=t[l].length,n+=A(t[l]);return t.totalPoints=r,t.totalLength=n,t}function _(t,e,n){if(n<=0||n>=1)return 0;let r=t[e],l=t[e+1],o=t[e+2],s=t[e+3],i=t[e+4],a=t[e+5],h=r+(o-r)*n,g=o+(i-o)*n,p=l+(s-l)*n,f=s+(a-s)*n,u=h+(g-h)*n,c=p+(f-p)*n,d=i+(t[e+6]-i)*n,y=a+(t[e+7]-a)*n;return g+=(d-g)*n,f+=(y-f)*n,t.splice(e+2,4,m(h),m(p),m(u),m(c),m(u+(g-u)*n),m(c+(f-c)*n),m(g),m(f),m(d),m(y)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function B(t,e,n,r){n=n||{},t.totalLength||S(t),(e<0||e>1)&&(e=d(e));let l,o,s,i,a,h,g,p=0,f=t[0];if(e)if(1===e)g=1,p=t.length-1,f=t[p],h=f.length-8;else{if(t.length>1){for(s=t.totalLength*e,a=h=0;(a+=t[h++].totalLength)<s;)p=h;f=t[p],i=a-f.totalLength,e=(s-i)/(a-i)||0}l=f.samples,o=f.resolution,s=f.totalLength*e,h=f.lookup.length?f.lookup[~~(s/f.minLength)]||0:w(l,s,e),i=h?l[h-1]:0,a=l[h],a<s&&(i=a,a=l[++h]),g=1/o*((s-i)/(a-i)+h%o),h=6*~~(h/o),r&&1===g&&(h+6<f.length?(h+=6,g=0):p+1<t.length&&(h=g=0,f=t[++p]))}else g=h=p=0,f=t[0];return n.t=g,n.i=h,n.path=t,n.segment=f,n.segIndex=p,n}function O(t,e,n,r){let l,o,s,i,a,h,g,p,f,u=t[0],c=r||{};if((e<0||e>1)&&(e=d(e)),u.lookup||S(t),t.length>1){for(s=t.totalLength*e,a=h=0;(a+=t[h++].totalLength)<s;)u=t[h];i=a-u.totalLength,e=(s-i)/(a-i)||0}return l=u.samples,o=u.resolution,s=u.totalLength*e,h=u.lookup.length?u.lookup[e<1?~~(s/u.minLength):u.lookup.length-1]||0:w(l,s,e),i=h?l[h-1]:0,a=l[h],a<s&&(i=a,a=l[++h]),g=1/o*((s-i)/(a-i)+h%o)||0,f=1-g,h=6*~~(h/o),p=u[h],c.x=m((g*g*(u[h+6]-p)+3*f*(g*(u[h+4]-p)+f*(u[h+2]-p)))*g+p),c.y=m((g*g*(u[h+7]-(p=u[h+1]))+3*f*(g*(u[h+5]-p)+f*(u[h+3]-p)))*g+p),n&&(c.angle=u.totalLength?M(u,h,g>=1?1-1e-9:g||1e-9):u.angle||0),c}function R(t,e,n,r,l,o,s){let i,a,h,g,p,f=t.length;for(;--f>-1;)for(i=t[f],a=i.length,h=0;h<a;h+=2)g=i[h],p=i[h+1],i[h]=g*e+p*r+o,i[h+1]=g*n+p*l+s;return t._dirty=1,t}function E(t,e,n,r,o,g,p,f,u){if(t===f&&e===u)return;n=a(n),r=a(r);let c=o%360*l,d=i(c),m=s(c),y=Math.PI,x=2*y,w=(t-f)/2,b=(e-u)/2,L=d*w+m*b,P=-m*w+d*b,v=L*L,C=P*P,N=v/(n*n)+C/(r*r);N>1&&(n=h(N)*n,r=h(N)*r);let M=n*n,T=r*r,A=(M*T-M*C-T*v)/(M*C+T*v);A<0&&(A=0);let S=(g===p?-1:1)*h(A),_=S*(n*P/r),B=S*(-r*L/n),O=(t+f)/2+(d*_-m*B),R=(e+u)/2+(m*_+d*B),E=(L-_)/n,I=(P-B)/r,k=(-L-_)/n,z=(-P-B)/r,X=E*E+I*I,Y=(I<0?-1:1)*Math.acos(E/h(X)),V=(E*z-I*k<0?-1:1)*Math.acos((E*k+I*z)/h(X*(k*k+z*z)));isNaN(V)&&(V=y),!p&&V>0?V-=x:p&&V<0&&(V+=x),Y%=x,V%=x;let j,q=Math.ceil(a(V)/(x/4)),F=[],G=V/q,Z=4/3*s(G/2)/(1+i(G/2)),H=d*n,U=m*n,D=m*-r,Q=d*r;for(j=0;j<q;j++)L=i(o=Y+j*G),P=s(o),E=i(o+=G),I=s(o),F.push(L-Z*P,P+Z*L,E+Z*I,I-Z*E,E,I);for(j=0;j<F.length;j+=2)L=F[j],P=F[j+1],F[j]=L*H+P*D+O,F[j+1]=L*U+P*Q+R;return F[j-2]=f,F[j-1]=u,F}function I(e){let r,l,o,s,i,h,g,p,f,u,c,d,m,y,x,w=(e+"").replace(n,t=>{let e=+t;return e<1e-4&&e>-1e-4?0:e}).match(t)||[],b=[],L=0,P=0,v=w.length,C=0,N="ERROR: malformed path: "+e,M=function(t,e,n,r){u=(n-t)/3,c=(r-e)/3,g.push(t+u,e+c,n-u,r-c,n,r)};if(!e||!isNaN(w[0])||isNaN(w[1]))return console.log(N),b;for(r=0;r<v;r++)if(m=i,isNaN(w[r])?(i=w[r].toUpperCase(),h=i!==w[r]):r--,o=+w[r+1],s=+w[r+2],h&&(o+=L,s+=P),r||(p=o,f=s),"M"===i)g&&(g.length<8?b.length-=1:C+=g.length),L=p=o,P=f=s,g=[o,s],b.push(g),r+=2,i="L";else if("C"===i)g||(g=[0,0]),h||(L=P=0),g.push(o,s,L+1*w[r+3],P+1*w[r+4],L+=1*w[r+5],P+=1*w[r+6]),r+=6;else if("S"===i)u=L,c=P,"C"!==m&&"S"!==m||(u+=L-g[g.length-4],c+=P-g[g.length-3]),h||(L=P=0),g.push(u,c,o,s,L+=1*w[r+3],P+=1*w[r+4]),r+=4;else if("Q"===i)u=L+2/3*(o-L),c=P+2/3*(s-P),h||(L=P=0),L+=1*w[r+3],P+=1*w[r+4],g.push(u,c,L+2/3*(o-L),P+2/3*(s-P),L,P),r+=4;else if("T"===i)u=L-g[g.length-4],c=P-g[g.length-3],g.push(L+u,P+c,o+2/3*(L+1.5*u-o),s+2/3*(P+1.5*c-s),L=o,P=s),r+=2;else if("H"===i)M(L,P,L=o,P),r+=1;else if("V"===i)M(L,P,L,P=o+(h?P-L:0)),r+=1;else if("L"===i||"Z"===i)"Z"===i&&(o=p,s=f,g.closed=!0),("L"===i||a(L-o)>.5||a(P-s)>.5)&&(M(L,P,o,s),"L"===i&&(r+=2)),L=o,P=s;else if("A"===i){if(y=w[r+4],x=w[r+5],u=w[r+6],c=w[r+7],l=7,y.length>1&&(y.length<3?(c=u,u=x,l--):(c=x,u=y.substr(2),l-=2),x=y.charAt(1),y=y.charAt(0)),d=E(L,P,+w[r+1],+w[r+2],+w[r+3],+y,+x,(h?L:0)+1*u,(h?P:0)+1*c),r+=l,d)for(l=0;l<d.length;l++)g.push(d[l]);L=g[g.length-2],P=g[g.length-1]}else console.log(N);return r=g.length,r<6?(b.pop(),r=0):g[0]===g[r-2]&&g[1]===g[r-1]&&(g.closed=!0),b.totalPoints=C+r,b}function k(t,e=1){let n=t[0],r=0,l=[n,r],o=2;for(;o<t.length;o+=2)l.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return l}function z(t,e){a(t[0]-t[2])<1e-4&&a(t[1]-t[3])<1e-4&&(t=t.slice(2));let n,r,l,o,s,i,g,p,f,u,c,d,y,x,w,b=t.length-2,L=+t[0],P=+t[1],v=+t[2],C=+t[3],N=[L,P,L,P],M=v-L,T=C-P,A=Math.abs(t[b]-L)<.001&&Math.abs(t[b+1]-P)<.001;for(A&&(t.push(v,C),v=L,C=P,L=t[b-2],P=t[b-1],t.unshift(L,P),b+=4),e=e||0===e?+e:1,l=2;l<b;l+=2)n=L,r=P,L=v,P=C,v=+t[l+2],C=+t[l+3],L===v&&P===C||(o=M,s=T,M=v-L,T=C-P,i=h(o*o+s*s),g=h(M*M+T*T),p=h((M/g+o/i)**2+(T/g+s/i)**2),f=(i+g)*e*.25/p,u=L-(L-n)*(i?f/i:0),c=L+(v-L)*(g?f/g:0),d=L-(u+((c-u)*(3*i/(i+g)+.5)/4||0)),y=P-(P-r)*(i?f/i:0),x=P+(C-P)*(g?f/g:0),w=P-(y+((x-y)*(3*i/(i+g)+.5)/4||0)),L===n&&P===r||N.push(m(u+d),m(y+w),m(L),m(P),m(c+d),m(x+w)));return L!==v||P!==C||N.length<4?N.push(m(v),m(C),m(v),m(C)):N.length-=2,2===N.length?N.push(L,P,L,P,L,P):A&&(N.splice(0,6),N.length=N.length-6),N}function X(t){f(t[0])&&(t=[t]);let e,n,r,l,o="",s=t.length;for(n=0;n<s;n++){for(l=t[n],o+="M"+m(l[0])+","+m(l[1])+" C",e=l.length,r=2;r<e;r++)o+=m(l[r++])+","+m(l[r++])+" "+m(l[r++])+","+m(l[r++])+" "+m(l[r++])+","+m(l[r])+" ";l.closed&&(o+="z")}return o}let Y,V,j,q,F,G,Z,H,U,D="transform",Q=D+"Origin",W=t=>{let e=t.ownerDocument||t;!(D in t.style)&&"msTransform"in t.style&&(D="msTransform",Q=D+"Origin");for(;e.parentNode&&(e=e.parentNode););if(V=window,Z=new lt,e){Y=e,j=e.documentElement,q=e.body,H=Y.createElementNS("http://www.w3.org/2000/svg","g"),H.style.transform="none";let t=e.createElement("div"),n=e.createElement("div"),r=e&&(e.body||e.firstElementChild);r&&r.appendChild&&(r.appendChild(t),t.appendChild(n),t.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),U=n.offsetParent!==t,r.removeChild(t))}return e},$=[],J=[],K=t=>t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null),tt=t=>"fixed"===V.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?tt(t):void 0),et=(t,e)=>{if(t.parentNode&&(Y||W(t))){let n=K(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l=n?e?"rect":"g":"div",o=2!==e?0:100,s=3===e?100:0,i="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",a=Y.createElementNS?Y.createElementNS(r.replace(/^https/,"http"),l):Y.createElement(l);return e&&(n?(G||(G=et(t)),a.setAttribute("width",.01),a.setAttribute("height",.01),a.setAttribute("transform","translate("+o+","+s+")"),G.appendChild(a)):(F||(F=et(t),F.style.cssText=i),a.style.cssText=i+"width:0.1px;height:0.1px;top:"+s+"px;left:"+o+"px",F.appendChild(a))),a}throw"Need document and parent."},nt=(t,e)=>{let n,r,l,o,s,i,a=K(t),h=t===a,g=a?$:J,p=t.parentNode;if(t===V)return t;if(g.length||g.push(et(t,1),et(t,2),et(t,3)),n=a?G:F,a)h?(l=(t=>{let e,n=t.getCTM();return n||(e=t.style[D],t.style[D]="none",t.appendChild(H),n=H.getCTM(),t.removeChild(H),e?t.style[D]=e:t.style.removeProperty(D.replace(/([A-Z])/g,"-$1").toLowerCase())),n||Z.clone()})(t),o=-l.e/l.a,s=-l.f/l.d,r=Z):t.getBBox?(l=t.getBBox(),r=t.transform?t.transform.baseVal:{},r=r.numberOfItems?r.numberOfItems>1?(t=>{let e=new lt,n=0;for(;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e})(r):r.getItem(0).matrix:Z,o=r.a*l.x+r.c*l.y,s=r.b*l.x+r.d*l.y):(r=new lt,o=s=0),e&&"g"===t.tagName.toLowerCase()&&(o=s=0),(h?a:p).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+s)+")");else{if(o=s=0,U)for(r=t.offsetParent,l=t;l&&(l=l.parentNode)&&l!==r&&l.parentNode;)(V.getComputedStyle(l)[D]+"").length>4&&(o=l.offsetLeft,s=l.offsetTop,l=0);if(i=V.getComputedStyle(t),"absolute"!==i.position&&"fixed"!==i.position)for(r=t.offsetParent;p&&p!==r;)o+=p.scrollLeft||0,s+=p.scrollTop||0,p=p.parentNode;l=n.style,l.top=t.offsetTop-s+"px",l.left=t.offsetLeft-o+"px",l[D]=i[D],l[Q]=i[Q],l.position="fixed"===i.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n},rt=(t,e,n,r,l,o,s)=>(t.a=e,t.b=n,t.c=r,t.d=l,t.e=o,t.f=s,t);class lt{constructor(t=1,e=0,n=0,r=1,l=0,o=0){rt(this,t,e,n,r,l,o)}inverse(){let{a:t,b:e,c:n,d:r,e:l,f:o}=this,s=t*r-e*n||1e-10;return rt(this,r/s,-e/s,-n/s,t/s,(n*o-r*l)/s,-(t*o-e*l)/s)}multiply(t){let{a:e,b:n,c:r,d:l,e:o,f:s}=this,i=t.a,a=t.c,h=t.b,g=t.d,p=t.e,f=t.f;return rt(this,i*e+h*r,i*n+h*l,a*e+g*r,a*n+g*l,o+p*e+f*r,s+p*n+f*l)}clone(){return new lt(this.a,this.b,this.c,this.d,this.e,this.f)}equals(t){let{a:e,b:n,c:r,d:l,e:o,f:s}=this;return e===t.a&&n===t.b&&r===t.c&&l===t.d&&o===t.e&&s===t.f}apply(t,e={}){let{x:n,y:r}=t,{a:l,b:o,c:s,d:i,e:a,f:h}=this;return e.x=n*l+r*s+a||0,e.y=n*o+r*i+h||0,e}}function ot(t,e,n,r){if(!t||!t.parentNode||(Y||W(t)).documentElement===t)return new lt;let l=(t=>{let e,n;for(;t&&t!==q;)n=t._gsap,n&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e})(t),o=K(t)?$:J,s=nt(t,n),i=o[0].getBoundingClientRect(),a=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),g=s.parentNode,p=!r&&tt(t),f=new lt((a.left-i.left)/100,(a.top-i.top)/100,(h.left-i.left)/100,(h.top-i.top)/100,i.left+(p?0:V.pageXOffset||Y.scrollLeft||j.scrollLeft||q.scrollLeft||0),i.top+(p?0:V.pageYOffset||Y.scrollTop||j.scrollTop||q.scrollTop||0));if(g.removeChild(s),l)for(i=l.length;i--;)a=l[i],a.scaleX=a.scaleY=0,a.renderTransform(1,a);return e?f.inverse():f}let st,it,at,ht,gt,pt,ft="x,translateX,left,marginLeft,xPercent".split(","),ut="y,translateY,top,marginTop,yPercent".split(","),ct=Math.PI/180,dt=(t,e,n,r)=>{let l,o=e.length,s=2===r?0:r,i=0;for(;i<o;i++)t[s]=l=parseFloat(e[i][n]),2===r&&(t[s+1]=0),s+=2;return t},mt=(t,e,n)=>parseFloat(t._gsap.get(t,e,n||"px"))||0,yt=t=>{let e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r},xt=(t,e,n,r,l,o,s,i,a)=>{if("cubic"===s.type)e=[e];else{!1!==s.fromCurrent&&e.unshift(mt(n,r,i),l?mt(n,l,a):0),s.relative&&yt(e),e=[(l?z:k)(e,s.curviness)]}return e=o(vt(e,n,s)),Ct(t,n,r,e,"x",i),l&&Ct(t,n,l,e,"y",a),S(e,s.resolution||(0===s.curviness?20:12))},wt=t=>t,bt=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,Lt=(t,e,n)=>{let r,l=ot(t),o=0,s=0;return"svg"===(t.tagName+"").toLowerCase()?(r=t.viewBox.baseVal,r.width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")})):r=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(o=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,s=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(o||s?l.apply({x:o,y:s}):{x:l.e,y:l.f})},Pt=(t,e,n,r)=>{let l,o=ot(t.parentNode,!0,!0),s=o.clone().multiply(ot(e)),i=Lt(t,n,o),{x:a,y:h}=Lt(e,r,o);return s.e=s.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(l=e.getAttribute("d").match(bt)||[],l=s.apply({x:+l[0],y:+l[1]}),a+=l.x,h+=l.y),l&&(l=s.apply(e.getBBox()),a-=l.x,h-=l.y),s.e=a-i.x,s.f=h-i.y,s},vt=(t,e,{align:n,matrix:r,offsetX:l,offsetY:o,alignOrigin:s})=>{let i,a,h,g=t[0][0],p=t[0][1],f=mt(e,"x"),u=mt(e,"y");return t&&t.length?(n&&("self"===n||(i=ht(n)[0]||e)===e?R(t,1,0,0,1,f-g,u-p):(s&&!1!==s[2]?st.set(e,{transformOrigin:100*s[0]+"% "+100*s[1]+"%"}):s=[mt(e,"xPercent")/-100,mt(e,"yPercent")/-100],a=Pt(e,i,s,"auto"),h=a.apply({x:g,y:p}),R(t,a.a,a.b,a.c,a.d,f+a.e-(h.x-a.e),u+a.f-(h.y-a.f)))),r?R(t,r.a,r.b,r.c,r.d,r.e,r.f):(l||o)&&R(t,1,0,0,1,l||0,o||0),t):P("M0,0L0,0")},Ct=(t,e,n,r,l,o)=>{let s=e._gsap,i=s.harness,a=i&&i.aliases&&i.aliases[n],h=a&&a.indexOf(",")<0?a:n,g=t._pt=new it(t._pt,e,h,0,0,wt,0,s.set(e,h,t));g.u=at(s.get(e,h,o))||0,g.path=r,g.pp=l,t._props.push(h)};const Nt={version:"3.12.5",name:"motionPath",register(t,e,n){st=t,at=st.utils.getUnit,ht=st.utils.toArray,gt=st.core.getStyleSaver,pt=st.core.reverting||function(){},it=n},init(t,e,n){if(!st)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});let r,l,o=[],{path:s,autoRotate:i,unitX:a,unitY:h,x:g,y:p}=e,f=s[0],u=(c=e.start,d="end"in e?e.end:1,t=>c||1!==d?T(t,c,d):t);var c,d;if(this.rawPaths=o,this.target=t,this.tween=n,this.styles=gt&>(t,"transform"),(this.rotate=i||0===i)&&(this.rOffset=parseFloat(i)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=at(t._gsap.get(t,this.rProp))||0),Array.isArray(s)&&!("closed"in s)&&"number"!=typeof f){for(l in f)!g&&~ft.indexOf(l)?g=l:!p&&~ut.indexOf(l)&&(p=l);for(l in g&&p?o.push(xt(this,dt(dt([],s,g,0),s,p,1),t,g,p,u,e,a||at(s[0][g]),h||at(s[0][p]))):g=p=0,f)l!==g&&l!==p&&o.push(xt(this,dt([],s,l,2),t,l,0,u,e,at(s[0][l])))}else r=u(vt(P(e.path),t,e)),S(r,e.resolution),o.push(r),Ct(this,t,e.x||"x",r,"x",e.unitX||"px"),Ct(this,t,e.y||"y",r,"y",e.unitY||"px")},render(t,e){let n=e.rawPaths,r=n.length,l=e._pt;if(e.tween._time||!pt()){for(t>1?t=1:t<0&&(t=0);r--;)O(n[r],t,!r&&e.rotate,n[r]);for(;l;)l.set(l.t,l.p,l.path[l.pp]+l.u,l.d,t),l=l._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?ct:1)+e.rOffset+e.ru,e,t)}else e.styles.revert()},getLength:t=>S(P(t)).totalLength,sliceRawPath:T,getRawPath:P,pointsToSegment:z,stringToRawPath:I,rawPathToString:X,transformRawPath:R,getGlobalMatrix:ot,getPositionOnPath:O,cacheRawPathMeasurements:S,convertToPath:(t,e)=>ht(t).map(t=>N(t,!1!==e)),convertCoordinates(t,e,n){let r=ot(e,!0,!0).multiply(ot(t));return n?r.apply(n):r},getAlignMatrix:Pt,getRelativePosition(t,e,n,r){let l=Pt(t,e,n,r);return{x:l.e,y:l.f}},arrayToRawPath(t,e){let n=dt(dt([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&yt(n),["cubic"===e.type?n:z(n,e.curviness)]}};(st||"undefined"!=typeof window&&(st=window.gsap)&&st.registerPlugin&&st)&&st.registerPlugin(Nt);export default Nt;export{Nt as MotionPathPlugin}; |
/*! | ||
* Observer 3.12.4 | ||
* Observer 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let e,t,n,r,s,o,l,i,a,c,d,u,g,h,p=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,v=1,f=[],x=[],m=[],y=Date.now,b=(e,t)=>t,w=(e,t)=>~m.indexOf(e)&&m[m.indexOf(e)+1][t],M=e=>!!~d.indexOf(e),Y=(e,t,n,r,s)=>e.addEventListener(t,n,{passive:!r,capture:!!s}),_=(e,t,n,r)=>e.removeEventListener(t,n,!!r),X=()=>u&&u.isPressed||x.cache++,D=(e,t)=>{let n=s=>{if(s||0===s){v&&(r.history.scrollRestoration="manual");let t=u&&u.isPressed;s=n.v=Math.round(s)||(u&&u.iOS?1:0),e(s),n.cacheID=x.cache,t&&b("ss",s)}else(t||x.cache!==n.cacheID||b("ref"))&&(n.cacheID=x.cache,n.v=e());return n.v+n.offset};return n.offset=0,e&&n},T={s:"scrollLeft",p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:D((function(e){return arguments.length?r.scrollTo(e,E.sc()):r.pageXOffset||s.scrollLeft||o.scrollLeft||l.scrollLeft||0}))},E={s:"scrollTop",p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:T,sc:D((function(e){return arguments.length?r.scrollTo(T.sc(),e):r.pageYOffset||s.scrollTop||o.scrollTop||l.scrollTop||0}))},P=(t,n)=>(n&&n._ctx&&n._ctx.selector||e.utils.toArray)(t)[0]||("string"==typeof t&&!1!==e.config().nullTargetWarn?console.warn("Element not found:",t):null),O=(t,{s:n,sc:r})=>{M(t)&&(t=s.scrollingElement||o);let l=x.indexOf(t),i=r===E.sc?1:2;!~l&&(l=x.push(t)-1),x[l+i]||Y(t,"scroll",X);let a=x[l+i],c=a||(x[l+i]=D(w(t,n),!0)||(M(t)?r:D((function(e){return arguments.length?t[n]=e:t[n]}))));return c.target=t,a||(c.smooth="smooth"===e.getProperty(t,"scrollBehavior")),c},k=(e,t,n)=>{let r=e,s=e,o=y(),l=o,i=t||50,a=Math.max(500,3*i),c=(e,t)=>{let a=y();t||a-o>i?(s=r,r=e,l=o,o=a):n?r+=e:r=s+(e-s)/(a-l)*(o-l)};return{update:c,reset:()=>{s=r=n?0:r,l=o=0},getVelocity:e=>{let t=l,i=s,d=y();return(e||0===e)&&e!==r&&c(e),o===l||d-l>a?0:(r+(n?i:-i))/((n?d:o)-t)*1e3}}},C=(e,t)=>(t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e),L=e=>{let t=Math.max(...e),n=Math.min(...e);return Math.abs(t)>=Math.abs(n)?t:n},S=()=>{c=e.core.globals().ScrollTrigger,c&&c.core&&(()=>{let e=c.core,t=e.bridge||{},n=e._scrollers,r=e._proxies;n.push(...x),r.push(...m),x=n,m=r,b=(e,n)=>t[e](n)})()},A=c=>(e=c||p(),!t&&e&&"undefined"!=typeof document&&document.body&&(r=window,s=document,o=s.documentElement,l=s.body,d=[r,s,o,l],n=e.utils.clamp,h=e.core.context||function(){},a="onpointerenter"in l?"pointer":"mouse",i=G.isTouch=r.matchMedia&&r.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in r||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,g=G.eventTypes=("ontouchstart"in o?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in o?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(()=>v=0,500),S(),t=1),t);T.op=E,x.cache=0;class G{constructor(e){this.init(e)}init(n){t||A(e)||console.warn("Please gsap.registerPlugin(Observer)"),c||S();let{tolerance:d,dragMinimum:p,type:v,target:x,lineHeight:m,debounce:b,preventDefault:w,onStop:D,onStopDelay:G,ignore:H,wheelSpeed:R,event:I,onDragStart:B,onDragEnd:F,onDrag:N,onPress:V,onRelease:W,onRight:q,onLeft:z,onUp:U,onDown:j,onChangeX:J,onChangeY:K,onChange:Q,onToggleX:Z,onToggleY:$,onHover:ee,onHoverEnd:te,onMove:ne,ignoreCheck:re,isNormalizer:se,onGestureStart:oe,onGestureEnd:le,onWheel:ie,onEnable:ae,onDisable:ce,onClick:de,scrollSpeed:ue,capture:ge,allowClicks:he,lockAxis:pe,onLockAxis:ve}=n;this.target=x=P(x)||o,this.vars=n,H&&(H=e.utils.toArray(H)),d=d||1e-9,p=p||0,R=R||1,ue=ue||1,v=v||"wheel,touch,pointer",b=!1!==b,m||(m=parseFloat(r.getComputedStyle(l).lineHeight)||22);let fe,xe,me,ye,be,we,Me,Ye=this,_e=0,Xe=0,De=O(x,T),Te=O(x,E),Ee=De(),Pe=Te(),Oe=~v.indexOf("touch")&&!~v.indexOf("pointer")&&"pointerdown"===g[0],ke=M(x),Ce=x.ownerDocument||s,Le=[0,0,0],Se=[0,0,0],Ae=0,Ge=()=>Ae=y(),He=(e,t)=>(Ye.event=e)&&H&&~H.indexOf(e.target)||t&&Oe&&"touch"!==e.pointerType||re&&re(e,t),Re=()=>{let e=Ye.deltaX=L(Le),t=Ye.deltaY=L(Se),n=Math.abs(e)>=d,r=Math.abs(t)>=d;Q&&(n||r)&&Q(Ye,e,t,Le,Se),n&&(q&&Ye.deltaX>0&&q(Ye),z&&Ye.deltaX<0&&z(Ye),J&&J(Ye),Z&&Ye.deltaX<0!=_e<0&&Z(Ye),_e=Ye.deltaX,Le[0]=Le[1]=Le[2]=0),r&&(j&&Ye.deltaY>0&&j(Ye),U&&Ye.deltaY<0&&U(Ye),K&&K(Ye),$&&Ye.deltaY<0!=Xe<0&&$(Ye),Xe=Ye.deltaY,Se[0]=Se[1]=Se[2]=0),(ye||me)&&(ne&&ne(Ye),me&&(N(Ye),me=!1),ye=!1),we&&!(we=!1)&&ve&&ve(Ye),be&&(ie(Ye),be=!1),fe=0},Ie=(e,t,n)=>{Le[n]+=e,Se[n]+=t,Ye._vx.update(e),Ye._vy.update(t),b?fe||(fe=requestAnimationFrame(Re)):Re()},Be=(e,t)=>{pe&&!Me&&(Ye.axis=Me=Math.abs(e)>Math.abs(t)?"x":"y",we=!0),"y"!==Me&&(Le[2]+=e,Ye._vx.update(e,!0)),"x"!==Me&&(Se[2]+=t,Ye._vy.update(t,!0)),b?fe||(fe=requestAnimationFrame(Re)):Re()},Fe=e=>{if(He(e,1))return;let t=(e=C(e,w)).clientX,n=e.clientY,r=t-Ye.x,s=n-Ye.y,o=Ye.isDragging;Ye.x=t,Ye.y=n,(o||Math.abs(Ye.startX-t)>=p||Math.abs(Ye.startY-n)>=p)&&(N&&(me=!0),o||(Ye.isDragging=!0),Be(r,s),o||B&&B(Ye))},Ne=Ye.onPress=e=>{He(e,1)||e&&e.button||(Ye.axis=Me=null,xe.pause(),Ye.isPressed=!0,e=C(e),_e=Xe=0,Ye.startX=Ye.x=e.clientX,Ye.startY=Ye.y=e.clientY,Ye._vx.reset(),Ye._vy.reset(),Y(se?x:Ce,g[1],Fe,w,!0),Ye.deltaX=Ye.deltaY=0,V&&V(Ye))},Ve=Ye.onRelease=t=>{if(He(t,1))return;_(se?x:Ce,g[1],Fe,!0);let n=!isNaN(Ye.y-Ye.startY),s=Ye.isDragging,o=s&&(Math.abs(Ye.x-Ye.startX)>3||Math.abs(Ye.y-Ye.startY)>3),l=C(t);!o&&n&&(Ye._vx.reset(),Ye._vy.reset(),w&&he&&e.delayedCall(.08,()=>{if(y()-Ae>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(Ce.createEvent){let e=Ce.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,r,1,l.screenX,l.screenY,l.clientX,l.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Ye.isDragging=Ye.isGesturing=Ye.isPressed=!1,D&&s&&!se&&xe.restart(!0),F&&s&&F(Ye),W&&W(Ye,o)},We=e=>e.touches&&e.touches.length>1&&(Ye.isGesturing=!0)&&oe(e,Ye.isDragging),qe=()=>(Ye.isGesturing=!1)||le(Ye),ze=e=>{if(He(e))return;let t=De(),n=Te();Ie((t-Ee)*ue,(n-Pe)*ue,1),Ee=t,Pe=n,D&&xe.restart(!0)},Ue=e=>{if(He(e))return;e=C(e,w),ie&&(be=!0);let t=(1===e.deltaMode?m:2===e.deltaMode?r.innerHeight:1)*R;Ie(e.deltaX*t,e.deltaY*t,0),D&&!se&&xe.restart(!0)},je=e=>{if(He(e))return;let t=e.clientX,n=e.clientY,r=t-Ye.x,s=n-Ye.y;Ye.x=t,Ye.y=n,ye=!0,D&&xe.restart(!0),(r||s)&&Be(r,s)},Je=e=>{Ye.event=e,ee(Ye)},Ke=e=>{Ye.event=e,te(Ye)},Qe=e=>He(e)||C(e,w)&&de(Ye);xe=Ye._dc=e.delayedCall(G||.25,()=>{Ye._vx.reset(),Ye._vy.reset(),xe.pause(),D&&D(Ye)}).pause(),Ye.deltaX=Ye.deltaY=0,Ye._vx=k(0,50,!0),Ye._vy=k(0,50,!0),Ye.scrollX=De,Ye.scrollY=Te,Ye.isDragging=Ye.isGesturing=Ye.isPressed=!1,h(this),Ye.enable=e=>(Ye.isEnabled||(Y(ke?Ce:x,"scroll",X),v.indexOf("scroll")>=0&&Y(ke?Ce:x,"scroll",ze,w,ge),v.indexOf("wheel")>=0&&Y(x,"wheel",Ue,w,ge),(v.indexOf("touch")>=0&&i||v.indexOf("pointer")>=0)&&(Y(x,g[0],Ne,w,ge),Y(Ce,g[2],Ve),Y(Ce,g[3],Ve),he&&Y(x,"click",Ge,!1,!0),de&&Y(x,"click",Qe),oe&&Y(Ce,"gesturestart",We),le&&Y(Ce,"gestureend",qe),ee&&Y(x,a+"enter",Je),te&&Y(x,a+"leave",Ke),ne&&Y(x,a+"move",je)),Ye.isEnabled=!0,e&&e.type&&Ne(e),ae&&ae(Ye)),Ye),Ye.disable=()=>{Ye.isEnabled&&(f.filter(e=>e!==Ye&&M(e.target)).length||_(ke?Ce:x,"scroll",X),Ye.isPressed&&(Ye._vx.reset(),Ye._vy.reset(),_(se?x:Ce,g[1],Fe,!0)),_(ke?Ce:x,"scroll",ze,ge),_(x,"wheel",Ue,ge),_(x,g[0],Ne,ge),_(Ce,g[2],Ve),_(Ce,g[3],Ve),_(x,"click",Ge,!0),_(x,"click",Qe),_(Ce,"gesturestart",We),_(Ce,"gestureend",qe),_(x,a+"enter",Je),_(x,a+"leave",Ke),_(x,a+"move",je),Ye.isEnabled=Ye.isPressed=Ye.isDragging=!1,ce&&ce(Ye))},Ye.kill=Ye.revert=()=>{Ye.disable();let e=f.indexOf(Ye);e>=0&&f.splice(e,1),u===Ye&&(u=0)},f.push(Ye),se&&M(x)&&(u=Ye),Ye.enable(I)}get velocityX(){return this._vx.getVelocity()}get velocityY(){return this._vy.getVelocity()}}G.version="3.12.4",G.create=e=>new G(e),G.register=A,G.getAll=()=>f.slice(),G.getById=e=>f.filter(t=>t.vars.id===e)[0],p()&&e.registerPlugin(G);export default G;export{G as Observer,w as _getProxyProp,O as _getScrollFunc,P as _getTarget,k as _getVelocityProp,T as _horizontal,M as _isViewport,m as _proxies,x as _scrollers,E as _vertical}; | ||
let e,t,n,r,s,o,l,i,a,c,d,u,g,h,p=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,v=1,f=[],x=[],m=[],y=Date.now,b=(e,t)=>t,w=(e,t)=>~m.indexOf(e)&&m[m.indexOf(e)+1][t],M=e=>!!~d.indexOf(e),Y=(e,t,n,r,s)=>e.addEventListener(t,n,{passive:!1!==r,capture:!!s}),_=(e,t,n,r)=>e.removeEventListener(t,n,!!r),X=()=>u&&u.isPressed||x.cache++,D=(e,t)=>{let n=s=>{if(s||0===s){v&&(r.history.scrollRestoration="manual");let t=u&&u.isPressed;s=n.v=Math.round(s)||(u&&u.iOS?1:0),e(s),n.cacheID=x.cache,t&&b("ss",s)}else(t||x.cache!==n.cacheID||b("ref"))&&(n.cacheID=x.cache,n.v=e());return n.v+n.offset};return n.offset=0,e&&n},T={s:"scrollLeft",p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:D((function(e){return arguments.length?r.scrollTo(e,E.sc()):r.pageXOffset||s.scrollLeft||o.scrollLeft||l.scrollLeft||0}))},E={s:"scrollTop",p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:T,sc:D((function(e){return arguments.length?r.scrollTo(T.sc(),e):r.pageYOffset||s.scrollTop||o.scrollTop||l.scrollTop||0}))},P=(t,n)=>(n&&n._ctx&&n._ctx.selector||e.utils.toArray)(t)[0]||("string"==typeof t&&!1!==e.config().nullTargetWarn?console.warn("Element not found:",t):null),O=(t,{s:n,sc:r})=>{M(t)&&(t=s.scrollingElement||o);let l=x.indexOf(t),i=r===E.sc?1:2;!~l&&(l=x.push(t)-1),x[l+i]||Y(t,"scroll",X);let a=x[l+i],c=a||(x[l+i]=D(w(t,n),!0)||(M(t)?r:D((function(e){return arguments.length?t[n]=e:t[n]}))));return c.target=t,a||(c.smooth="smooth"===e.getProperty(t,"scrollBehavior")),c},k=(e,t,n)=>{let r=e,s=e,o=y(),l=o,i=t||50,a=Math.max(500,3*i),c=(e,t)=>{let a=y();t||a-o>i?(s=r,r=e,l=o,o=a):n?r+=e:r=s+(e-s)/(a-l)*(o-l)};return{update:c,reset:()=>{s=r=n?0:r,l=o=0},getVelocity:e=>{let t=l,i=s,d=y();return(e||0===e)&&e!==r&&c(e),o===l||d-l>a?0:(r+(n?i:-i))/((n?d:o)-t)*1e3}}},C=(e,t)=>(t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e),L=e=>{let t=Math.max(...e),n=Math.min(...e);return Math.abs(t)>=Math.abs(n)?t:n},S=()=>{c=e.core.globals().ScrollTrigger,c&&c.core&&(()=>{let e=c.core,t=e.bridge||{},n=e._scrollers,r=e._proxies;n.push(...x),r.push(...m),x=n,m=r,b=(e,n)=>t[e](n)})()},A=c=>(e=c||p(),!t&&e&&"undefined"!=typeof document&&document.body&&(r=window,s=document,o=s.documentElement,l=s.body,d=[r,s,o,l],n=e.utils.clamp,h=e.core.context||function(){},a="onpointerenter"in l?"pointer":"mouse",i=G.isTouch=r.matchMedia&&r.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in r||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,g=G.eventTypes=("ontouchstart"in o?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in o?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(()=>v=0,500),S(),t=1),t);T.op=E,x.cache=0;class G{constructor(e){this.init(e)}init(n){t||A(e)||console.warn("Please gsap.registerPlugin(Observer)"),c||S();let{tolerance:d,dragMinimum:p,type:v,target:x,lineHeight:m,debounce:b,preventDefault:w,onStop:D,onStopDelay:G,ignore:H,wheelSpeed:R,event:I,onDragStart:B,onDragEnd:F,onDrag:N,onPress:V,onRelease:W,onRight:q,onLeft:z,onUp:U,onDown:j,onChangeX:J,onChangeY:K,onChange:Q,onToggleX:Z,onToggleY:$,onHover:ee,onHoverEnd:te,onMove:ne,ignoreCheck:re,isNormalizer:se,onGestureStart:oe,onGestureEnd:le,onWheel:ie,onEnable:ae,onDisable:ce,onClick:de,scrollSpeed:ue,capture:ge,allowClicks:he,lockAxis:pe,onLockAxis:ve}=n;this.target=x=P(x)||o,this.vars=n,H&&(H=e.utils.toArray(H)),d=d||1e-9,p=p||0,R=R||1,ue=ue||1,v=v||"wheel,touch,pointer",b=!1!==b,m||(m=parseFloat(r.getComputedStyle(l).lineHeight)||22);let fe,xe,me,ye,be,we,Me,Ye=this,_e=0,Xe=0,De=n.passive||!w,Te=O(x,T),Ee=O(x,E),Pe=Te(),Oe=Ee(),ke=~v.indexOf("touch")&&!~v.indexOf("pointer")&&"pointerdown"===g[0],Ce=M(x),Le=x.ownerDocument||s,Se=[0,0,0],Ae=[0,0,0],Ge=0,He=()=>Ge=y(),Re=(e,t)=>(Ye.event=e)&&H&&~H.indexOf(e.target)||t&&ke&&"touch"!==e.pointerType||re&&re(e,t),Ie=()=>{let e=Ye.deltaX=L(Se),t=Ye.deltaY=L(Ae),n=Math.abs(e)>=d,r=Math.abs(t)>=d;Q&&(n||r)&&Q(Ye,e,t,Se,Ae),n&&(q&&Ye.deltaX>0&&q(Ye),z&&Ye.deltaX<0&&z(Ye),J&&J(Ye),Z&&Ye.deltaX<0!=_e<0&&Z(Ye),_e=Ye.deltaX,Se[0]=Se[1]=Se[2]=0),r&&(j&&Ye.deltaY>0&&j(Ye),U&&Ye.deltaY<0&&U(Ye),K&&K(Ye),$&&Ye.deltaY<0!=Xe<0&&$(Ye),Xe=Ye.deltaY,Ae[0]=Ae[1]=Ae[2]=0),(ye||me)&&(ne&&ne(Ye),me&&(N(Ye),me=!1),ye=!1),we&&!(we=!1)&&ve&&ve(Ye),be&&(ie(Ye),be=!1),fe=0},Be=(e,t,n)=>{Se[n]+=e,Ae[n]+=t,Ye._vx.update(e),Ye._vy.update(t),b?fe||(fe=requestAnimationFrame(Ie)):Ie()},Fe=(e,t)=>{pe&&!Me&&(Ye.axis=Me=Math.abs(e)>Math.abs(t)?"x":"y",we=!0),"y"!==Me&&(Se[2]+=e,Ye._vx.update(e,!0)),"x"!==Me&&(Ae[2]+=t,Ye._vy.update(t,!0)),b?fe||(fe=requestAnimationFrame(Ie)):Ie()},Ne=e=>{if(Re(e,1))return;let t=(e=C(e,w)).clientX,n=e.clientY,r=t-Ye.x,s=n-Ye.y,o=Ye.isDragging;Ye.x=t,Ye.y=n,(o||Math.abs(Ye.startX-t)>=p||Math.abs(Ye.startY-n)>=p)&&(N&&(me=!0),o||(Ye.isDragging=!0),Fe(r,s),o||B&&B(Ye))},Ve=Ye.onPress=e=>{Re(e,1)||e&&e.button||(Ye.axis=Me=null,xe.pause(),Ye.isPressed=!0,e=C(e),_e=Xe=0,Ye.startX=Ye.x=e.clientX,Ye.startY=Ye.y=e.clientY,Ye._vx.reset(),Ye._vy.reset(),Y(se?x:Le,g[1],Ne,De,!0),Ye.deltaX=Ye.deltaY=0,V&&V(Ye))},We=Ye.onRelease=t=>{if(Re(t,1))return;_(se?x:Le,g[1],Ne,!0);let n=!isNaN(Ye.y-Ye.startY),s=Ye.isDragging,o=s&&(Math.abs(Ye.x-Ye.startX)>3||Math.abs(Ye.y-Ye.startY)>3),l=C(t);!o&&n&&(Ye._vx.reset(),Ye._vy.reset(),w&&he&&e.delayedCall(.08,()=>{if(y()-Ge>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(Le.createEvent){let e=Le.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,r,1,l.screenX,l.screenY,l.clientX,l.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Ye.isDragging=Ye.isGesturing=Ye.isPressed=!1,D&&s&&!se&&xe.restart(!0),F&&s&&F(Ye),W&&W(Ye,o)},qe=e=>e.touches&&e.touches.length>1&&(Ye.isGesturing=!0)&&oe(e,Ye.isDragging),ze=()=>(Ye.isGesturing=!1)||le(Ye),Ue=e=>{if(Re(e))return;let t=Te(),n=Ee();Be((t-Pe)*ue,(n-Oe)*ue,1),Pe=t,Oe=n,D&&xe.restart(!0)},je=e=>{if(Re(e))return;e=C(e,w),ie&&(be=!0);let t=(1===e.deltaMode?m:2===e.deltaMode?r.innerHeight:1)*R;Be(e.deltaX*t,e.deltaY*t,0),D&&!se&&xe.restart(!0)},Je=e=>{if(Re(e))return;let t=e.clientX,n=e.clientY,r=t-Ye.x,s=n-Ye.y;Ye.x=t,Ye.y=n,ye=!0,D&&xe.restart(!0),(r||s)&&Fe(r,s)},Ke=e=>{Ye.event=e,ee(Ye)},Qe=e=>{Ye.event=e,te(Ye)},Ze=e=>Re(e)||C(e,w)&&de(Ye);xe=Ye._dc=e.delayedCall(G||.25,()=>{Ye._vx.reset(),Ye._vy.reset(),xe.pause(),D&&D(Ye)}).pause(),Ye.deltaX=Ye.deltaY=0,Ye._vx=k(0,50,!0),Ye._vy=k(0,50,!0),Ye.scrollX=Te,Ye.scrollY=Ee,Ye.isDragging=Ye.isGesturing=Ye.isPressed=!1,h(this),Ye.enable=e=>(Ye.isEnabled||(Y(Ce?Le:x,"scroll",X),v.indexOf("scroll")>=0&&Y(Ce?Le:x,"scroll",Ue,De,ge),v.indexOf("wheel")>=0&&Y(x,"wheel",je,De,ge),(v.indexOf("touch")>=0&&i||v.indexOf("pointer")>=0)&&(Y(x,g[0],Ve,De,ge),Y(Le,g[2],We),Y(Le,g[3],We),he&&Y(x,"click",He,!0,!0),de&&Y(x,"click",Ze),oe&&Y(Le,"gesturestart",qe),le&&Y(Le,"gestureend",ze),ee&&Y(x,a+"enter",Ke),te&&Y(x,a+"leave",Qe),ne&&Y(x,a+"move",Je)),Ye.isEnabled=!0,e&&e.type&&Ve(e),ae&&ae(Ye)),Ye),Ye.disable=()=>{Ye.isEnabled&&(f.filter(e=>e!==Ye&&M(e.target)).length||_(Ce?Le:x,"scroll",X),Ye.isPressed&&(Ye._vx.reset(),Ye._vy.reset(),_(se?x:Le,g[1],Ne,!0)),_(Ce?Le:x,"scroll",Ue,ge),_(x,"wheel",je,ge),_(x,g[0],Ve,ge),_(Le,g[2],We),_(Le,g[3],We),_(x,"click",He,!0),_(x,"click",Ze),_(Le,"gesturestart",qe),_(Le,"gestureend",ze),_(x,a+"enter",Ke),_(x,a+"leave",Qe),_(x,a+"move",Je),Ye.isEnabled=Ye.isPressed=Ye.isDragging=!1,ce&&ce(Ye))},Ye.kill=Ye.revert=()=>{Ye.disable();let e=f.indexOf(Ye);e>=0&&f.splice(e,1),u===Ye&&(u=0)},f.push(Ye),se&&M(x)&&(u=Ye),Ye.enable(I)}get velocityX(){return this._vx.getVelocity()}get velocityY(){return this._vy.getVelocity()}}G.version="3.12.5",G.create=e=>new G(e),G.register=A,G.getAll=()=>f.slice(),G.getById=e=>f.filter(t=>t.vars.id===e)[0],p()&&e.registerPlugin(G);export default G;export{G as Observer,w as _getProxyProp,O as _getScrollFunc,P as _getTarget,k as _getVelocityProp,T as _horizontal,M as _isViewport,m as _proxies,x as _scrollers,E as _vertical}; |
{ | ||
"name": "gsap-trial", | ||
"version": "3.12.4", | ||
"version": "3.12.5", | ||
"description": "Trial version of GSAP that includes all bonus plugins which are normally available exclusively to Club GSAP members. *** DO NOT DEPLOY THESE FILES *** They only work locally or on domains like codepen.io, codesandbox.io, stackblitz.com and jsfiddle.com. If used elsewhere, it violates the license and redirects the browser. To get the unrestricted files, sign up at https://gsap.com/pricing", | ||
@@ -5,0 +5,0 @@ "homepage": "https://gsap.com", |
/*! | ||
* Physics2DPlugin 3.12.4 | ||
* Physics2DPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
let e,t,i,s,n,o=Math.PI/180,a=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,r=e=>Math.round(1e4*e)/1e4,l=function(){return String.fromCharCode.apply(null,arguments)},c=l(103,114,101,101,110,115,111,99,107,46,99,111,109),p=l(103,115,97,112,46,99,111,109),h=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,d=(function(t){var i="undefined"!=typeof window,s=0===(i?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==t.indexOf(l(108,111,99,97,108,104,111,115,116))||h.test(t)||(i?window.location.hostname:"").split(".").pop()===l(108,111,99,97,108),n=[c,p,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),l(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),l(106,115,102,105,100,100,108,101,46,110,101,116)],o=function(){if(i)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",o);else{document.removeEventListener("readystatechange",o);var t="object"==typeof e?e:i&&window.gsap;i&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"Physics2DPlugin"+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},a=n.length;for(setTimeout(o,50);--a>-1;)if(-1!==t.indexOf(n[a]))return!0;s||setTimeout((function(){i&&(window.location.href=l(104,116,116,112,115,58,47,47)+c+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=Physics2DPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),o=>{e=o||a(),t||(i=e.utils.getUnit,s=e.core.getStyleSaver,n=e.core.reverting||function(){},t=1)});class v{constructor(e,t,s,n,o){let a=e._gsap,r=a.get(e,t);this.p=t,this.set=a.set(e,t),this.s=this.val=parseFloat(r),this.u=i(r)||0,this.vel=s||0,this.v=this.vel/o,n||0===n?(this.acc=n,this.a=this.acc/(o*o)):this.acc=this.a=0}}const g={version:"3.12.4",name:"physics2D",register:d,init(e,i,n){t||d();let a=+i.angle||0,r=+i.velocity||0,l=+i.acceleration||0,c=i.xProp||"x",p=i.yProp||"y",h=i.accelerationAngle||0===i.accelerationAngle?+i.accelerationAngle:a;this.styles=s&&s(e,i.xProp&&"x"!==i.xProp?i.xProp+","+i.yProp:"transform"),this.target=e,this.tween=n,this.step=0,this.sps=30,i.gravity&&(l=+i.gravity,h=90),a*=o,h*=o,this.fr=1-(+i.friction||0),this._props.push(c,p),this.xp=new v(e,c,Math.cos(a)*r,Math.cos(h)*l,this.sps),this.yp=new v(e,p,Math.sin(a)*r,Math.sin(h)*l,this.sps),this.skipX=this.skipY=0},render(e,t){let i,s,o,a,l,c,{xp:p,yp:h,tween:d,target:v,step:g,sps:f,fr:u,skipX:w,skipY:y}=t,m=d._from?d._dur-d._time:d._time;if(d._time||!n()){if(1===u)o=m*m*.5,i=p.s+p.vel*m+p.acc*o,s=h.s+h.vel*m+h.acc*o;else{for(m*=f,a=c=(0|m)-g,c<0&&(p.v=p.vel/f,h.v=h.vel/f,p.val=p.s,h.val=h.s,t.step=0,a=c=0|m),l=m%1*u;c--;)p.v+=p.a,h.v+=h.a,p.v*=u,h.v*=u,p.val+=p.v,h.val+=h.v;i=p.val+p.v*l,s=h.val+h.v*l,t.step+=a}w||p.set(v,p.p,r(i)+p.u),y||h.set(v,h.p,r(s)+h.u)}else t.styles.revert()},kill(e){this.xp.p===e&&(this.skipX=1),this.yp.p===e&&(this.skipY=1)}};a()&&e.registerPlugin(g);export default g;export{g as Physics2DPlugin}; | ||
let e,t,i,s,n,o=Math.PI/180,a=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,r=e=>Math.round(1e4*e)/1e4,l=function(){return String.fromCharCode.apply(null,arguments)},c=l(103,114,101,101,110,115,111,99,107,46,99,111,109),p=l(103,115,97,112,46,99,111,109),h=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,d=(function(t){var i="undefined"!=typeof window,s=0===(i?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==t.indexOf(l(108,111,99,97,108,104,111,115,116))||h.test(t)||(i?window.location.hostname:"").split(".").pop()===l(108,111,99,97,108),n=[c,p,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),l(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),l(106,115,102,105,100,100,108,101,46,110,101,116)],o=function(){if(i)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",o);else{document.removeEventListener("readystatechange",o);var t="object"==typeof e?e:i&&window.gsap;i&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"Physics2DPlugin"+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},a=n.length;for(setTimeout(o,50);--a>-1;)if(-1!==t.indexOf(n[a]))return!0;s||setTimeout((function(){i&&(window.location.href=l(104,116,116,112,115,58,47,47)+c+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=Physics2DPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),o=>{e=o||a(),t||(i=e.utils.getUnit,s=e.core.getStyleSaver,n=e.core.reverting||function(){},t=1)});class v{constructor(e,t,s,n,o){let a=e._gsap,r=a.get(e,t);this.p=t,this.set=a.set(e,t),this.s=this.val=parseFloat(r),this.u=i(r)||0,this.vel=s||0,this.v=this.vel/o,n||0===n?(this.acc=n,this.a=this.acc/(o*o)):this.acc=this.a=0}}const g={version:"3.12.5",name:"physics2D",register:d,init(e,i,n){t||d();let a=+i.angle||0,r=+i.velocity||0,l=+i.acceleration||0,c=i.xProp||"x",p=i.yProp||"y",h=i.accelerationAngle||0===i.accelerationAngle?+i.accelerationAngle:a;this.styles=s&&s(e,i.xProp&&"x"!==i.xProp?i.xProp+","+i.yProp:"transform"),this.target=e,this.tween=n,this.step=0,this.sps=30,i.gravity&&(l=+i.gravity,h=90),a*=o,h*=o,this.fr=1-(+i.friction||0),this._props.push(c,p),this.xp=new v(e,c,Math.cos(a)*r,Math.cos(h)*l,this.sps),this.yp=new v(e,p,Math.sin(a)*r,Math.sin(h)*l,this.sps),this.skipX=this.skipY=0},render(e,t){let i,s,o,a,l,c,{xp:p,yp:h,tween:d,target:v,step:g,sps:f,fr:u,skipX:w,skipY:y}=t,m=d._from?d._dur-d._time:d._time;if(d._time||!n()){if(1===u)o=m*m*.5,i=p.s+p.vel*m+p.acc*o,s=h.s+h.vel*m+h.acc*o;else{for(m*=f,a=c=(0|m)-g,c<0&&(p.v=p.vel/f,h.v=h.vel/f,p.val=p.s,h.val=h.s,t.step=0,a=c=0|m),l=m%1*u;c--;)p.v+=p.a,h.v+=h.a,p.v*=u,h.v*=u,p.val+=p.v,h.val+=h.v;i=p.val+p.v*l,s=h.val+h.v*l,t.step+=a}w||p.set(v,p.p,r(i)+p.u),y||h.set(v,h.p,r(s)+h.u)}else t.styles.revert()},kill(e){this.xp.p===e&&(this.skipX=1),this.yp.p===e&&(this.skipY=1)}};a()&&e.registerPlugin(g);export default g;export{g as Physics2DPlugin}; |
/*! | ||
* PhysicsPropsPlugin 3.12.4 | ||
* PhysicsPropsPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
let e,t,s,i,o,n=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,r=e=>Math.round(1e4*e)/1e4,a=function(){return String.fromCharCode.apply(null,arguments)},l=a(103,114,101,101,110,115,111,99,107,46,99,111,109),c=a(103,115,97,112,46,99,111,109),p=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,d=(function(t){var s="undefined"!=typeof window,i=0===(s?window.location.href:"").indexOf(a(102,105,108,101,58,47,47))||-1!==t.indexOf(a(108,111,99,97,108,104,111,115,116))||p.test(t)||(s?window.location.hostname:"").split(".").pop()===a(108,111,99,97,108),o=[l,c,a(99,111,100,101,112,101,110,46,105,111),a(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),a(99,111,100,101,112,101,110,46,100,101,118),a(99,111,100,101,112,101,110,46,97,112,112),a(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),a(112,101,110,115,46,99,108,111,117,100),a(99,115,115,45,116,114,105,99,107,115,46,99,111,109),a(99,100,112,110,46,105,111),a(112,101,110,115,46,105,111),a(103,97,110,110,111,110,46,116,118),a(99,111,100,101,99,97,110,121,111,110,46,110,101,116),a(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),a(99,101,114,101,98,114,97,120,46,99,111,46,117,107),a(116,121,109,112,97,110,117,115,46,110,101,116),a(116,119,101,101,110,109,97,120,46,99,111,109),a(112,108,110,107,114,46,99,111),a(104,111,116,106,97,114,46,99,111,109),a(119,101,98,112,97,99,107,98,105,110,46,99,111,109),a(97,114,99,104,105,118,101,46,111,114,103),a(99,111,100,101,115,97,110,100,98,111,120,46,105,111),a(99,115,98,46,97,112,112),a(115,116,97,99,107,98,108,105,116,122,46,99,111,109),a(115,116,97,99,107,98,108,105,116,122,46,105,111),a(99,111,100,105,101,114,46,105,111),a(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),a(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),a(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),a(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),a(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),a(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){if(s)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",n);else{document.removeEventListener("readystatechange",n);var t="object"==typeof e?e:s&&window.gsap;s&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(a(37,99,87,97,114,110,105,110,103),a(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(a(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"PhysicsPropsPlugin"+a(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(a(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),a(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},r=o.length;for(setTimeout(n,50);--r>-1;)if(-1!==t.indexOf(o[r]))return!0;i||setTimeout((function(){s&&(window.location.href=a(104,116,116,112,115,58,47,47)+l+a(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=PhysicsPropsPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),r=>{e=r||n(),t||(s=e.utils.getUnit,i=e.core.getStyleSaver,o=e.core.reverting||function(){},t=1)});class f{constructor(e,t,i,o,n,r){let a=e._gsap,l=a.get(e,t);this.p=t,this.set=a.set(e,t),this.s=this.val=parseFloat(l),this.u=s(l)||0,this.vel=i||0,this.v=this.vel/r,o||0===o?(this.acc=o,this.a=this.acc/(r*r)):this.acc=this.a=0,this.fr=1-(n||0)}}const h={version:"3.12.4",name:"physicsProps",register:d,init(e,s,o){t||d();let n,r=this;for(n in r.styles=i&&i(e),r.target=e,r.tween=o,r.step=0,r.sps=30,r.vProps=[],s){let{velocity:t,acceleration:o,friction:a}=s[n];(t||o)&&(r.vProps.push(new f(e,n,t,o,a,r.sps)),r._props.push(n),i&&r.styles.save(n),a&&(r.hasFr=1))}},render(e,t){let s,i,n,a,l,{vProps:c,tween:p,target:d,step:f,hasFr:h,sps:u}=t,g=c.length,v=p._from?p._dur-p._time:p._time;if(p._time||!o())if(h){if(v*=u,i=(0|v)-f,i<0){for(;g--;)s=c[g],s.v=s.vel/u,s.val=s.s;g=c.length,t.step=f=0,i=0|v}for(n=v%1;g--;){for(s=c[g],a=i;a--;)s.v+=s.a,s.v*=s.fr,s.val+=s.v;s.set(d,s.p,r(s.val+s.v*n*s.fr)+s.u)}t.step+=i}else for(l=v*v*.5;g--;)s=c[g],s.set(d,s.p,r(s.s+s.vel*v+s.acc*l)+s.u);else t.styles.revert()},kill(e){let t=this.vProps,s=t.length;for(;s--;)t[s].p===e&&t.splice(s,1)}};n()&&e.registerPlugin(h);export default h;export{h as PhysicsPropsPlugin}; | ||
let e,t,s,i,o,n=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,r=e=>Math.round(1e4*e)/1e4,a=function(){return String.fromCharCode.apply(null,arguments)},l=a(103,114,101,101,110,115,111,99,107,46,99,111,109),c=a(103,115,97,112,46,99,111,109),p=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,d=(function(t){var s="undefined"!=typeof window,i=0===(s?window.location.href:"").indexOf(a(102,105,108,101,58,47,47))||-1!==t.indexOf(a(108,111,99,97,108,104,111,115,116))||p.test(t)||(s?window.location.hostname:"").split(".").pop()===a(108,111,99,97,108),o=[l,c,a(99,111,100,101,112,101,110,46,105,111),a(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),a(99,111,100,101,112,101,110,46,100,101,118),a(99,111,100,101,112,101,110,46,97,112,112),a(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),a(112,101,110,115,46,99,108,111,117,100),a(99,115,115,45,116,114,105,99,107,115,46,99,111,109),a(99,100,112,110,46,105,111),a(112,101,110,115,46,105,111),a(103,97,110,110,111,110,46,116,118),a(99,111,100,101,99,97,110,121,111,110,46,110,101,116),a(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),a(99,101,114,101,98,114,97,120,46,99,111,46,117,107),a(116,121,109,112,97,110,117,115,46,110,101,116),a(116,119,101,101,110,109,97,120,46,99,111,109),a(112,108,110,107,114,46,99,111),a(104,111,116,106,97,114,46,99,111,109),a(119,101,98,112,97,99,107,98,105,110,46,99,111,109),a(97,114,99,104,105,118,101,46,111,114,103),a(99,111,100,101,115,97,110,100,98,111,120,46,105,111),a(99,115,98,46,97,112,112),a(115,116,97,99,107,98,108,105,116,122,46,99,111,109),a(115,116,97,99,107,98,108,105,116,122,46,105,111),a(99,111,100,105,101,114,46,105,111),a(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),a(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),a(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),a(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),a(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),a(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){if(s)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",n);else{document.removeEventListener("readystatechange",n);var t="object"==typeof e?e:s&&window.gsap;s&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(a(37,99,87,97,114,110,105,110,103),a(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(a(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"PhysicsPropsPlugin"+a(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(a(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),a(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},r=o.length;for(setTimeout(n,50);--r>-1;)if(-1!==t.indexOf(o[r]))return!0;i||setTimeout((function(){s&&(window.location.href=a(104,116,116,112,115,58,47,47)+l+a(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=PhysicsPropsPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),r=>{e=r||n(),t||(s=e.utils.getUnit,i=e.core.getStyleSaver,o=e.core.reverting||function(){},t=1)});class f{constructor(e,t,i,o,n,r){let a=e._gsap,l=a.get(e,t);this.p=t,this.set=a.set(e,t),this.s=this.val=parseFloat(l),this.u=s(l)||0,this.vel=i||0,this.v=this.vel/r,o||0===o?(this.acc=o,this.a=this.acc/(r*r)):this.acc=this.a=0,this.fr=1-(n||0)}}const h={version:"3.12.5",name:"physicsProps",register:d,init(e,s,o){t||d();let n,r=this;for(n in r.styles=i&&i(e),r.target=e,r.tween=o,r.step=0,r.sps=30,r.vProps=[],s){let{velocity:t,acceleration:o,friction:a}=s[n];(t||o)&&(r.vProps.push(new f(e,n,t,o,a,r.sps)),r._props.push(n),i&&r.styles.save(n),a&&(r.hasFr=1))}},render(e,t){let s,i,n,a,l,{vProps:c,tween:p,target:d,step:f,hasFr:h,sps:u}=t,g=c.length,v=p._from?p._dur-p._time:p._time;if(p._time||!o())if(h){if(v*=u,i=(0|v)-f,i<0){for(;g--;)s=c[g],s.v=s.vel/u,s.val=s.s;g=c.length,t.step=f=0,i=0|v}for(n=v%1;g--;){for(s=c[g],a=i;a--;)s.v+=s.a,s.v*=s.fr,s.val+=s.v;s.set(d,s.p,r(s.val+s.v*n*s.fr)+s.u)}t.step+=i}else for(l=v*v*.5;g--;)s=c[g],s.set(d,s.p,r(s.s+s.vel*v+s.acc*l)+s.u);else t.styles.revert()},kill(e){let t=this.vProps,s=t.length;for(;s--;)t[s].p===e&&t.splice(s,1)}};n()&&e.registerPlugin(h);export default h;export{h as PhysicsPropsPlugin}; |
/*! | ||
* PixiPlugin 3.12.4 | ||
* PixiPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let t,r,e,i,o,l,s,n,a,u,h=()=>"undefined"!=typeof window,c=()=>t||h()&&(t=window.gsap)&&t.registerPlugin&&t,p=t=>"function"==typeof t,g=t=>console.warn(t),d=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],f=.212671,b=.71516,x=.072169,m=t=>p(o[t])?o[t]:o.filters[t],z=(t,r)=>{let e,i,o=[],l=0,s=0;for(e=0;e<4;e++){for(i=0;i<5;i++)s=4===i?t[l+4]:0,o[l+i]=t[l]*r[i]+t[l+1]*r[i+5]+t[l+2]*r[i+10]+t[l+3]*r[i+15]+s;l+=5}return o},M=(t,r)=>{let e=1-r,i=e*f,o=e*b,l=e*x;return z([i+r,o,l,0,0,i,o+r,l,0,0,i,o,l+r,0,0,0,0,0,1,0],t)},w=(t,r,i)=>{let o=e(r),l=o[0]/255,s=o[1]/255,n=o[2]/255,a=1-i;return z([a+i*l*f,i*l*b,i*l*x,0,0,i*s*f,a+i*s*b,i*s*x,0,0,i*n*f,i*n*b,a+i*n*x,0,0,0,0,0,1,0],t)},A=(t,r)=>{r*=Math.PI/180;let e=Math.cos(r),i=Math.sin(r);return z([f+e*(1-f)+i*-f,b+e*-b+i*-b,x+e*-x+i*(1-x),0,0,f+e*-f+.143*i,b+.28484*e+.14*i,x+e*-x+-.283*i,0,0,f+e*-f+-.787329*i,b+e*-b+i*b,x+e*(1-x)+i*x,0,0,0,0,0,1,0,0,0,0,0,1],t)},F=(t,r)=>z([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],t),P=(t,r)=>{let e,i=m(r),o=t.filters||[],l=o.length;for(i||g(r+" not found. PixiPlugin.registerPIXI(PIXI)");--l>-1;)if(o[l]instanceof i)return o[l];return e=new i,"BlurFilter"===r&&(e.blur=0),o.push(e),t.filters=o,e},_=(t,r,e,i)=>{r.add(e,t,e[t],i[t]),r._props.push(t)},y=(t,r)=>{let e=new(m("ColorMatrixFilter"));return e.matrix=r,e.brightness(t,!0),e.matrix},C={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},I=(t,r,e)=>{let i,o,l,s=P(t,"ColorMatrixFilter"),n=t._gsColorMatrixFilter=t._gsColorMatrixFilter||(t=>{let r,e={};for(r in t)e[r]=t[r];return e})(C),a=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter);l=s.matrix,r.resolution&&(s.resolution=r.resolution),r.matrix&&r.matrix.length===l.length?(o=r.matrix,1!==n.contrast&&_("contrast",e,n,C),n.hue&&_("hue",e,n,C),1!==n.brightness&&_("brightness",e,n,C),n.colorizeAmount&&(_("colorize",e,n,C),_("colorizeAmount",e,n,C)),1!==n.saturation&&_("saturation",e,n,C)):(o=d.slice(),null!=r.contrast?(o=F(o,+r.contrast),_("contrast",e,n,r)):1!==n.contrast&&(a?o=F(o,n.contrast):_("contrast",e,n,C)),null!=r.hue?(o=A(o,+r.hue),_("hue",e,n,r)):n.hue&&(a?o=A(o,n.hue):_("hue",e,n,C)),null!=r.brightness?(o=y(+r.brightness,o),_("brightness",e,n,r)):1!==n.brightness&&(a?o=y(n.brightness,o):_("brightness",e,n,C)),null!=r.colorize?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,o=w(o,r.colorize,r.colorizeAmount),_("colorize",e,n,r),_("colorizeAmount",e,n,r)):n.colorizeAmount&&(a?o=w(o,n.colorize,n.colorizeAmount):(_("colorize",e,n,C),_("colorizeAmount",e,n,C))),null!=r.saturation?(o=M(o,+r.saturation),_("saturation",e,n,r)):1!==n.saturation&&(a?o=M(o,n.saturation):_("saturation",e,n,C))),i=o.length;for(;--i>-1;)o[i]!==l[i]&&e.add(l,i,l[i],o[i],"colorMatrixFilter");e._props.push("colorMatrixFilter")},X=(t,{t:r,p:e,color:i,set:o})=>{o(r,e,i[0]<<16|i[1]<<8|i[2])},v=(t,{g:r})=>{r&&(r.dirty++,r.clearDirty++)},S=(t,r)=>{r.t.visible=!!r.t.alpha},O=(t,r,i,o)=>{let n=t[r],a=e(p(n)?t[r.indexOf("set")||!p(t["get"+r.substr(3)])?r:"get"+r.substr(3)]():n),u=e(i);o._pt=new l(o._pt,t,r,0,0,X,{t:t,p:r,color:a,set:s(t,r)}),o.add(a,0,a[0],u[0]),o.add(a,1,a[1],u[1]),o.add(a,2,a[2],u[2])},D={tint:1,lineColor:1,fillColor:1},Y="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),k={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},B={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},E=Math.PI/180,N=t=>"string"==typeof t,R=t=>N(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*E:t*E,V=(t,r)=>r.set(r.t,r.p,1===t?r.e:Math.round(1e5*(r.s+r.c*t))/1e5,r),j=(t,r,e,i,o,s)=>{let n,a,u=360*(s?E:1),h=N(o),c=h&&"="===o.charAt(1)?+(o.charAt(0)+"1"):0,p=parseFloat(c?o.substr(2):o)*(s?E:1),g=c?p*c:p-i,d=i+g;return h&&(n=o.split("_")[1],"short"===n&&(g%=u,g!==g%(u/2)&&(g+=g<0?u:-u)),"cw"===n&&g<0?g=(g+1e10*u)%u-~~(g/u)*u:"ccw"===n&&g>0&&(g=(g-1e10*u)%u-~~(g/u)*u)),t._pt=a=new l(t._pt,r,e,i,g,V),a.e=d,a},G=()=>{h()&&(r=window,t=c(),o=i=o||r.PIXI,n=o&&o.VERSION&&"4"===o.VERSION.charAt(0),e=r=>t.utils.splitColor("0x"===(r+"").substr(0,2)?"#"+r.substr(2):r))};for(a=0;a<Y.length;a++)u=Y[a],k[u+"X"]=u,k[u+"Y"]=u;const L={version:"3.12.4",name:"pixi",register(r,e,i){t=r,l=i,s=e.getSetter,G()},registerPIXI(t){o=t},init(t,r,e,i,s){if(o||G(),!(o&&t instanceof o.DisplayObject))return g(t),!1;let a,u,h,c,p,d,f,b,x;for(d in r){if(a=k[d],h=r[d],a)u=~d.charAt(d.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[a],u,t[a][u],"skew"===a?R(h):h,0,0,0,0,0,1);else if("scale"===d||"anchor"===d||"pivot"===d||"tileScale"===d)this.add(t[d],"x",t[d].x,h),this.add(t[d],"y",t[d].y,h);else if("rotation"===d||"angle"===d)j(this,t,d,t[d],h,"rotation"===d);else if(B[d])c||(I(t,r.colorMatrixFilter||r,this),c=!0);else if("blur"===d||"blurX"===d||"blurY"===d||"blurPadding"===d){if(p=P(t,"BlurFilter"),this.add(p,d,p[d],h),0!==r.blurPadding)for(f=r.blurPadding||2*Math.max(p[d],h),b=t.filters.length;--b>-1;)t.filters[b].padding=Math.max(t.filters[b].padding,f)}else if(D[d])if(("lineColor"===d||"fillColor"===d)&&t instanceof o.Graphics)for(x=(t.geometry||t).graphicsData,this._pt=new l(this._pt,t,d,0,0,v,{g:t.geometry||t}),b=x.length;--b>-1;)O(n?x[b]:x[b][d.substr(0,4)+"Style"],n?d:"color",h,this);else O(t,d,h,this);else"autoAlpha"===d?(this._pt=new l(this._pt,t,"visible",0,0,S),this.add(t,"alpha",t.alpha,h),this._props.push("alpha","visible")):"resolution"!==d&&this.add(t,d,"get",h);this._props.push(d)}}};c()&&t.registerPlugin(L);export default L;export{L as PixiPlugin}; | ||
let t,r,e,i,o,s,l,n,a,u=()=>"undefined"!=typeof window,h=()=>t||u()&&(t=window.gsap)&&t.registerPlugin&&t,c=t=>"function"==typeof t,p=t=>console.warn(t),g=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],d=.212671,f=.71516,b=.072169,x=t=>c(i[t])?i[t]:i.filters[t],m=(t,r)=>{let e,i,o=[],s=0,l=0;for(e=0;e<4;e++){for(i=0;i<5;i++)l=4===i?t[s+4]:0,o[s+i]=t[s]*r[i]+t[s+1]*r[i+5]+t[s+2]*r[i+10]+t[s+3]*r[i+15]+l;s+=5}return o},P=(t,r)=>{let e=1-r,i=e*d,o=e*f,s=e*b;return m([i+r,o,s,0,0,i,o+r,s,0,0,i,o,s+r,0,0,0,0,0,1,0],t)},z=(t,e,i)=>{let o=r(e),s=o[0]/255,l=o[1]/255,n=o[2]/255,a=1-i;return m([a+i*s*d,i*s*f,i*s*b,0,0,i*l*d,a+i*l*f,i*l*b,0,0,i*n*d,i*n*f,a+i*n*b,0,0,0,0,0,1,0],t)},w=(t,r)=>{r*=Math.PI/180;let e=Math.cos(r),i=Math.sin(r);return m([d+e*(1-d)+i*-d,f+e*-f+i*-f,b+e*-b+i*(1-b),0,0,d+e*-d+.143*i,f+.28484*e+.14*i,b+e*-b+-.283*i,0,0,d+e*-d+-.787329*i,f+e*-f+i*f,b+e*(1-b)+i*b,0,0,0,0,0,1,0,0,0,0,0,1],t)},M=(t,r)=>m([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],t),A=(t,r)=>{let e,i=x(r),o=t.filters||[],s=o.length;for(i||p(r+" not found. PixiPlugin.registerPIXI(PIXI)");--s>-1;)if(o[s]instanceof i)return o[s];return e=new i,"BlurFilter"===r&&(e.blur=0),o.push(e),t.filters=o,e},I=(t,r,e,i)=>{r.add(e,t,e[t],i[t]),r._props.push(t)},F=(t,r)=>{let e=new(x("ColorMatrixFilter"));return e.matrix=r,e.brightness(t,!0),e.matrix},_={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},y=(t,r,e)=>{let i,o,s,l=A(t,"ColorMatrixFilter"),n=t._gsColorMatrixFilter=t._gsColorMatrixFilter||(t=>{let r,e={};for(r in t)e[r]=t[r];return e})(_),a=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter);s=l.matrix,r.resolution&&(l.resolution=r.resolution),r.matrix&&r.matrix.length===s.length?(o=r.matrix,1!==n.contrast&&I("contrast",e,n,_),n.hue&&I("hue",e,n,_),1!==n.brightness&&I("brightness",e,n,_),n.colorizeAmount&&(I("colorize",e,n,_),I("colorizeAmount",e,n,_)),1!==n.saturation&&I("saturation",e,n,_)):(o=g.slice(),null!=r.contrast?(o=M(o,+r.contrast),I("contrast",e,n,r)):1!==n.contrast&&(a?o=M(o,n.contrast):I("contrast",e,n,_)),null!=r.hue?(o=w(o,+r.hue),I("hue",e,n,r)):n.hue&&(a?o=w(o,n.hue):I("hue",e,n,_)),null!=r.brightness?(o=F(+r.brightness,o),I("brightness",e,n,r)):1!==n.brightness&&(a?o=F(n.brightness,o):I("brightness",e,n,_)),null!=r.colorize?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,o=z(o,r.colorize,r.colorizeAmount),I("colorize",e,n,r),I("colorizeAmount",e,n,r)):n.colorizeAmount&&(a?o=z(o,n.colorize,n.colorizeAmount):(I("colorize",e,n,_),I("colorizeAmount",e,n,_))),null!=r.saturation?(o=P(o,+r.saturation),I("saturation",e,n,r)):1!==n.saturation&&(a?o=P(o,n.saturation):I("saturation",e,n,_))),i=o.length;for(;--i>-1;)o[i]!==s[i]&&e.add(s,i,s[i],o[i],"colorMatrixFilter");e._props.push("colorMatrixFilter")},C=(t,{t:r,p:e,color:i,set:o})=>{o(r,e,i[0]<<16|i[1]<<8|i[2])},X=(t,{g:r})=>{r&&(r.dirty++,r.clearDirty++)},v=(t,r)=>{r.t.visible=!!r.t.alpha},S=(t,e,i,l)=>{let n=t[e],a=r(c(n)?t[e.indexOf("set")||!c(t["get"+e.substr(3)])?e:"get"+e.substr(3)]():n),u=r(i);l._pt=new o(l._pt,t,e,0,0,C,{t:t,p:e,color:a,set:s(t,e)}),l.add(a,0,a[0],u[0]),l.add(a,1,a[1],u[1]),l.add(a,2,a[2],u[2])},O={tint:1,lineColor:1,fillColor:1},Y="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),k={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},B={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},D=Math.PI/180,E=t=>"string"==typeof t,N=t=>E(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*D:t*D,R=(t,r)=>r.set(r.t,r.p,1===t?r.e:Math.round(1e5*(r.s+r.c*t))/1e5,r),V=(t,r,e,i,s,l)=>{let n,a,u=360*(l?D:1),h=E(s),c=h&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0,p=parseFloat(c?s.substr(2):s)*(l?D:1),g=c?p*c:p-i,d=i+g;return h&&(n=s.split("_")[1],"short"===n&&(g%=u,g!==g%(u/2)&&(g+=g<0?u:-u)),"cw"===n&&g<0?g=(g+1e10*u)%u-~~(g/u)*u:"ccw"===n&&g>0&&(g=(g-1e10*u)%u-~~(g/u)*u)),t._pt=a=new o(t._pt,r,e,i,g,R),a.e=d,a},G=()=>{e||(t=h(),i=e=i||u()&&window.PIXI,l=i&&i.VERSION&&"4"===i.VERSION.charAt(0),r=r=>t.utils.splitColor("0x"===(r+"").substr(0,2)?"#"+r.substr(2):r))};for(n=0;n<Y.length;n++)a=Y[n],k[a+"X"]=a,k[a+"Y"]=a;const L={version:"3.12.5",name:"pixi",register(r,e,i){t=r,o=i,s=e.getSetter,G()},headless:!0,registerPIXI(t){i=t},init(t,r,e,s,n){if(i||G(),!i)return p("PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;let a,u,h,c,g,d,f,b,x;for(d in r){if(a=k[d],h=r[d],a)u=~d.charAt(d.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[a],u,t[a][u],"skew"===a?N(h):h,0,0,0,0,0,1);else if("scale"===d||"anchor"===d||"pivot"===d||"tileScale"===d)this.add(t[d],"x",t[d].x,h),this.add(t[d],"y",t[d].y,h);else if("rotation"===d||"angle"===d)V(this,t,d,t[d],h,"rotation"===d);else if(B[d])c||(y(t,r.colorMatrixFilter||r,this),c=!0);else if("blur"===d||"blurX"===d||"blurY"===d||"blurPadding"===d){if(g=A(t,"BlurFilter"),this.add(g,d,g[d],h),0!==r.blurPadding)for(f=r.blurPadding||2*Math.max(g[d],h),b=t.filters.length;--b>-1;)t.filters[b].padding=Math.max(t.filters[b].padding,f)}else if(O[d])if(("lineColor"===d||"fillColor"===d)&&t instanceof i.Graphics)for(x=(t.geometry||t).graphicsData,this._pt=new o(this._pt,t,d,0,0,X,{g:t.geometry||t}),b=x.length;--b>-1;)S(l?x[b]:x[b][d.substr(0,4)+"Style"],l?d:"color",h,this);else S(t,d,h,this);else"autoAlpha"===d?(this._pt=new o(this._pt,t,"visible",0,0,v),this.add(t,"alpha",t.alpha,h),this._props.push("alpha","visible")):"resolution"!==d&&this.add(t,d,"get",h);this._props.push(d)}}};h()&&t.registerPlugin(L);export default L;export{L as PixiPlugin}; |
/*! | ||
* ScrambleTextPlugin 3.12.4 | ||
* ScrambleTextPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
let D=/(?:^\s+|\s+$)/g;const u=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function F(D){let u=D.nodeType,C="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)C+=F(D)}else if(3===u||4===u)return D.nodeValue;return C}function C(F,C,E,e){if(F+="",E&&(F=F.trim?F.trim():F.replace(D,"")),C&&""!==C)return F.replace(/>/g,">").replace(/</g,"<").split(C);let t,n,r=[],i=F.length,s=0;for(;s<i;s++)n=F.charAt(s),(n.charCodeAt(0)>=55296&&n.charCodeAt(0)<=56319||F.charCodeAt(s+1)>=65024&&F.charCodeAt(s+1)<=65039)&&(t=((F.substr(s,12).split(u)||[])[1]||"").length||2,n=F.substr(s,t),r.emoji=1,s+=t-1),r.push(">"===n?">":"<"===n?"<":!e||" "!==n||" "!==F.charAt(s-1)&&" "!==F.charAt(s+1)?n:" ");return r}class E{constructor(D){this.chars=C(D),this.sets=[],this.length=50;for(let D=0;D<20;D++)this.sets[D]=B(80,this.chars)}grow(D){for(let u=0;u<20;u++)this.sets[u]+=B(D-this.length,this.chars);this.length=D}}let e,t,n=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,r=function(){return String.fromCharCode.apply(null,arguments)},i=r(103,114,101,101,110,115,111,99,107,46,99,111,109),s=r(103,115,97,112,46,99,111,109),o=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,a=function(D){var u="undefined"!=typeof window,F=0===(u?window.location.href:"").indexOf(r(102,105,108,101,58,47,47))||-1!==D.indexOf(r(108,111,99,97,108,104,111,115,116))||o.test(D)||(u?window.location.hostname:"").split(".").pop()===r(108,111,99,97,108),C=[i,s,r(99,111,100,101,112,101,110,46,105,111),r(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),r(99,111,100,101,112,101,110,46,100,101,118),r(99,111,100,101,112,101,110,46,97,112,112),r(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),r(112,101,110,115,46,99,108,111,117,100),r(99,115,115,45,116,114,105,99,107,115,46,99,111,109),r(99,100,112,110,46,105,111),r(112,101,110,115,46,105,111),r(103,97,110,110,111,110,46,116,118),r(99,111,100,101,99,97,110,121,111,110,46,110,101,116),r(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),r(99,101,114,101,98,114,97,120,46,99,111,46,117,107),r(116,121,109,112,97,110,117,115,46,110,101,116),r(116,119,101,101,110,109,97,120,46,99,111,109),r(112,108,110,107,114,46,99,111),r(104,111,116,106,97,114,46,99,111,109),r(119,101,98,112,97,99,107,98,105,110,46,99,111,109),r(97,114,99,104,105,118,101,46,111,114,103),r(99,111,100,101,115,97,110,100,98,111,120,46,105,111),r(99,115,98,46,97,112,112),r(115,116,97,99,107,98,108,105,116,122,46,99,111,109),r(115,116,97,99,107,98,108,105,116,122,46,105,111),r(99,111,100,105,101,114,46,105,111),r(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),r(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),r(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),r(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),r(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),r(106,115,102,105,100,100,108,101,46,110,101,116)],E=function(){if(u)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",E);else{document.removeEventListener("readystatechange",E);var D="object"==typeof e?e:u&&window.gsap;u&&window.console&&!window._gsapWarned&&"object"==typeof D&&!1!==D.config().trialWarn&&(console.log(r(37,99,87,97,114,110,105,110,103),r(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(r(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"ScrambleTextPlugin"+r(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(r(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),r(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},t=C.length;for(setTimeout(E,50);--t>-1;)if(-1!==D.indexOf(C[t]))return!0;return F||!setTimeout((function(){u&&(window.location.href=r(104,116,116,112,115,58,47,47)+i+r(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=ScrambleTextPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),l=/\s+/g,B=(D,u)=>{let F=u.length,C="";for(;--D>-1;)C+=u[~~(Math.random()*F)];return C},A="ABCDEFGHIJKLMNOPQRSTUVWXYZ",h=A.toLowerCase(),c={upperCase:new E(A),lowerCase:new E(h),upperAndLowerCase:new E(A+h)},d=()=>{t=e=n()};const g={version:"3.12.4",name:"scrambleText",register(D,u,F){e=D,d()},init(D,u,e,n,r){if(t||d(),this.prop="innerHTML"in D?"innerHTML":"textContent"in D?"textContent":0,!this.prop)return;this.target=D,"object"!=typeof u&&(u={text:u});let i,s,o,B,A=u.text||u.value||"",h=!1!==u.trim,g=this;return g.delimiter=i=u.delimiter||"",g.original=C(F(D).replace(l," ").split(" ").join(""),i,h),"{original}"!==A&&!0!==A&&null!=A||(A=g.original.join(i)),g.text=C((A||"").replace(l," "),i,h),g.hasClass=!(!u.newClass&&!u.oldClass),g.newClass=u.newClass,g.oldClass=u.oldClass,B=""===i,g.textHasEmoji=B&&!!g.text.emoji,g.charsHaveEmoji=!!u.chars&&!!C(u.chars).emoji,g.length=B?g.original.length:g.original.join(i).length,g.lengthDif=(B?g.text.length:g.text.join(i).length)-g.length,g.fillChar=u.fillChar||u.chars&&~u.chars.indexOf(" ")?" ":"",g.charSet=o=c[u.chars||"upperCase"]||new E(u.chars),g.speed=.05/(u.speed||1),g.prevScrambleTime=0,g.setIndex=20*Math.random()|0,s=g.length+Math.max(g.lengthDif,0),s>o.length&&o.grow(s),g.chars=o.sets[g.setIndex],g.revealDelay=u.revealDelay||0,g.tweenLength=!1!==u.tweenLength,g.tween=e,g.rightToLeft=!!u.rightToLeft,g._props.push("scrambleText","text"),a},render(D,u){let F,E,e,t,n,r,i,s,o,a,l,{target:B,prop:A,text:h,delimiter:c,tween:d,prevScrambleTime:g,revealDelay:p,setIndex:f,chars:m,charSet:w,length:x,textHasEmoji:j,charsHaveEmoji:b,lengthDif:T,tweenLength:v,oldClass:y,newClass:S,rightToLeft:L,fillChar:_,speed:H,original:M,hasClass:O}=u,I=h.length,P=d._time,W=P-g;p&&(d._from&&(P=d._dur-P),D=0===P?0:P<p?1e-6:P===d._dur?1:d._ease((P-p)/(d._dur-p))),D<0?D=0:D>1&&(D=1),L&&(D=1-D),F=~~(D*I+.5),D?((W>H||W<-H)&&(u.setIndex=f=(f+(19*Math.random()|0))%20,u.chars=w.sets[f],u.prevScrambleTime+=W),t=m):t=M.join(c),l=d._from?D:1-D,a=x+(v?d._from?l*l*l:1-l*l*l:1)*T,L?1!==D||!d._from&&"isFromStart"!==d.data?(i=h.slice(F).join(c),e=b?C(t).slice(0,a-(j?C(i):i).length+.5|0).join(""):t.substr(0,a-(j?C(i):i).length+.5|0),t=i):(e="",t=M.join(c)):(e=h.slice(0,F).join(c),E=(j?C(e):e).length,t=b?C(t).slice(E,a+.5|0).join(""):t.substr(E,a-E+.5|0)),O?(s=L?y:S,o=L?S:y,n=s&&0!==F,r=o&&F!==I,i=(n?"<span class='"+s+"'>":"")+e+(n?"</span>":"")+(r?"<span class='"+o+"'>":"")+c+t+(r?"</span>":"")):i=e+c+t,B[A]=" "===_&&~i.indexOf(" ")?i.split(" ").join(" "):i}};g.emojiSafeSplit=C,g.getText=F,n()&&e.registerPlugin(g);export default g;export{g as ScrambleTextPlugin}; | ||
let D=/(?:^\s+|\s+$)/g;const u=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function F(D){let u=D.nodeType,C="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)C+=F(D)}else if(3===u||4===u)return D.nodeValue;return C}function C(F,C,E,e){if(F+="",E&&(F=F.trim?F.trim():F.replace(D,"")),C&&""!==C)return F.replace(/>/g,">").replace(/</g,"<").split(C);let t,n,r=[],i=F.length,s=0;for(;s<i;s++)n=F.charAt(s),(n.charCodeAt(0)>=55296&&n.charCodeAt(0)<=56319||F.charCodeAt(s+1)>=65024&&F.charCodeAt(s+1)<=65039)&&(t=((F.substr(s,12).split(u)||[])[1]||"").length||2,n=F.substr(s,t),r.emoji=1,s+=t-1),r.push(">"===n?">":"<"===n?"<":!e||" "!==n||" "!==F.charAt(s-1)&&" "!==F.charAt(s+1)?n:" ");return r}class E{constructor(D){this.chars=C(D),this.sets=[],this.length=50;for(let D=0;D<20;D++)this.sets[D]=B(80,this.chars)}grow(D){for(let u=0;u<20;u++)this.sets[u]+=B(D-this.length,this.chars);this.length=D}}let e,t,n=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,r=function(){return String.fromCharCode.apply(null,arguments)},i=r(103,114,101,101,110,115,111,99,107,46,99,111,109),s=r(103,115,97,112,46,99,111,109),o=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,a=function(D){var u="undefined"!=typeof window,F=0===(u?window.location.href:"").indexOf(r(102,105,108,101,58,47,47))||-1!==D.indexOf(r(108,111,99,97,108,104,111,115,116))||o.test(D)||(u?window.location.hostname:"").split(".").pop()===r(108,111,99,97,108),C=[i,s,r(99,111,100,101,112,101,110,46,105,111),r(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),r(99,111,100,101,112,101,110,46,100,101,118),r(99,111,100,101,112,101,110,46,97,112,112),r(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),r(112,101,110,115,46,99,108,111,117,100),r(99,115,115,45,116,114,105,99,107,115,46,99,111,109),r(99,100,112,110,46,105,111),r(112,101,110,115,46,105,111),r(103,97,110,110,111,110,46,116,118),r(99,111,100,101,99,97,110,121,111,110,46,110,101,116),r(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),r(99,101,114,101,98,114,97,120,46,99,111,46,117,107),r(116,121,109,112,97,110,117,115,46,110,101,116),r(116,119,101,101,110,109,97,120,46,99,111,109),r(112,108,110,107,114,46,99,111),r(104,111,116,106,97,114,46,99,111,109),r(119,101,98,112,97,99,107,98,105,110,46,99,111,109),r(97,114,99,104,105,118,101,46,111,114,103),r(99,111,100,101,115,97,110,100,98,111,120,46,105,111),r(99,115,98,46,97,112,112),r(115,116,97,99,107,98,108,105,116,122,46,99,111,109),r(115,116,97,99,107,98,108,105,116,122,46,105,111),r(99,111,100,105,101,114,46,105,111),r(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),r(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),r(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),r(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),r(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),r(106,115,102,105,100,100,108,101,46,110,101,116)],E=function(){if(u)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",E);else{document.removeEventListener("readystatechange",E);var D="object"==typeof e?e:u&&window.gsap;u&&window.console&&!window._gsapWarned&&"object"==typeof D&&!1!==D.config().trialWarn&&(console.log(r(37,99,87,97,114,110,105,110,103),r(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(r(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"ScrambleTextPlugin"+r(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(r(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),r(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},t=C.length;for(setTimeout(E,50);--t>-1;)if(-1!==D.indexOf(C[t]))return!0;return F||!setTimeout((function(){u&&(window.location.href=r(104,116,116,112,115,58,47,47)+i+r(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=ScrambleTextPlugin&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),l=/\s+/g,B=(D,u)=>{let F=u.length,C="";for(;--D>-1;)C+=u[~~(Math.random()*F)];return C},A="ABCDEFGHIJKLMNOPQRSTUVWXYZ",h=A.toLowerCase(),c={upperCase:new E(A),lowerCase:new E(h),upperAndLowerCase:new E(A+h)},d=()=>{t=e=n()};const g={version:"3.12.5",name:"scrambleText",register(D,u,F){e=D,d()},init(D,u,e,n,r){if(t||d(),this.prop="innerHTML"in D?"innerHTML":"textContent"in D?"textContent":0,!this.prop)return;this.target=D,"object"!=typeof u&&(u={text:u});let i,s,o,B,A=u.text||u.value||"",h=!1!==u.trim,g=this;return g.delimiter=i=u.delimiter||"",g.original=C(F(D).replace(l," ").split(" ").join(""),i,h),"{original}"!==A&&!0!==A&&null!=A||(A=g.original.join(i)),g.text=C((A||"").replace(l," "),i,h),g.hasClass=!(!u.newClass&&!u.oldClass),g.newClass=u.newClass,g.oldClass=u.oldClass,B=""===i,g.textHasEmoji=B&&!!g.text.emoji,g.charsHaveEmoji=!!u.chars&&!!C(u.chars).emoji,g.length=B?g.original.length:g.original.join(i).length,g.lengthDif=(B?g.text.length:g.text.join(i).length)-g.length,g.fillChar=u.fillChar||u.chars&&~u.chars.indexOf(" ")?" ":"",g.charSet=o=c[u.chars||"upperCase"]||new E(u.chars),g.speed=.05/(u.speed||1),g.prevScrambleTime=0,g.setIndex=20*Math.random()|0,s=g.length+Math.max(g.lengthDif,0),s>o.length&&o.grow(s),g.chars=o.sets[g.setIndex],g.revealDelay=u.revealDelay||0,g.tweenLength=!1!==u.tweenLength,g.tween=e,g.rightToLeft=!!u.rightToLeft,g._props.push("scrambleText","text"),a},render(D,u){let F,E,e,t,n,r,i,s,o,a,l,{target:B,prop:A,text:h,delimiter:c,tween:d,prevScrambleTime:g,revealDelay:p,setIndex:f,chars:m,charSet:w,length:x,textHasEmoji:j,charsHaveEmoji:b,lengthDif:T,tweenLength:v,oldClass:y,newClass:S,rightToLeft:L,fillChar:_,speed:H,original:M,hasClass:O}=u,I=h.length,P=d._time,W=P-g;p&&(d._from&&(P=d._dur-P),D=0===P?0:P<p?1e-6:P===d._dur?1:d._ease((P-p)/(d._dur-p))),D<0?D=0:D>1&&(D=1),L&&(D=1-D),F=~~(D*I+.5),D?((W>H||W<-H)&&(u.setIndex=f=(f+(19*Math.random()|0))%20,u.chars=w.sets[f],u.prevScrambleTime+=W),t=m):t=M.join(c),l=d._from?D:1-D,a=x+(v?d._from?l*l*l:1-l*l*l:1)*T,L?1!==D||!d._from&&"isFromStart"!==d.data?(i=h.slice(F).join(c),e=b?C(t).slice(0,a-(j?C(i):i).length+.5|0).join(""):t.substr(0,a-(j?C(i):i).length+.5|0),t=i):(e="",t=M.join(c)):(e=h.slice(0,F).join(c),E=(j?C(e):e).length,t=b?C(t).slice(E,a+.5|0).join(""):t.substr(E,a-E+.5|0)),O?(s=L?y:S,o=L?S:y,n=s&&0!==F,r=o&&F!==I,i=(n?"<span class='"+s+"'>":"")+e+(n?"</span>":"")+(r?"<span class='"+o+"'>":"")+c+t+(r?"</span>":"")):i=e+c+t,B[A]=" "===_&&~i.indexOf(" ")?i.split(" ").join(" "):i}};g.emojiSafeSplit=C,g.getText=F,n()&&e.registerPlugin(g);export default g;export{g as ScrambleTextPlugin}; |
/*! | ||
* ScrollSmoother 3.12.4 | ||
* ScrollSmoother 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
let e,t,r,o,s,i,n,a,l,c,d,h,f,g,p,u=()=>"undefined"!=typeof window,m=()=>e||u()&&(e=window.gsap)&&e.registerPlugin&&e,v=function(){return String.fromCharCode.apply(null,arguments)},y=v(103,114,101,101,110,115,111,99,107,46,99,111,109),w=v(103,115,97,112,46,99,111,109),b=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,S=(function(t){var r="undefined"!=typeof window,o=0===(r?window.location.href:"").indexOf(v(102,105,108,101,58,47,47))||-1!==t.indexOf(v(108,111,99,97,108,104,111,115,116))||b.test(t)||(r?window.location.hostname:"").split(".").pop()===v(108,111,99,97,108),s=[y,w,v(99,111,100,101,112,101,110,46,105,111),v(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),v(99,111,100,101,112,101,110,46,100,101,118),v(99,111,100,101,112,101,110,46,97,112,112),v(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),v(112,101,110,115,46,99,108,111,117,100),v(99,115,115,45,116,114,105,99,107,115,46,99,111,109),v(99,100,112,110,46,105,111),v(112,101,110,115,46,105,111),v(103,97,110,110,111,110,46,116,118),v(99,111,100,101,99,97,110,121,111,110,46,110,101,116),v(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),v(99,101,114,101,98,114,97,120,46,99,111,46,117,107),v(116,121,109,112,97,110,117,115,46,110,101,116),v(116,119,101,101,110,109,97,120,46,99,111,109),v(112,108,110,107,114,46,99,111),v(104,111,116,106,97,114,46,99,111,109),v(119,101,98,112,97,99,107,98,105,110,46,99,111,109),v(97,114,99,104,105,118,101,46,111,114,103),v(99,111,100,101,115,97,110,100,98,111,120,46,105,111),v(99,115,98,46,97,112,112),v(115,116,97,99,107,98,108,105,116,122,46,99,111,109),v(115,116,97,99,107,98,108,105,116,122,46,105,111),v(99,111,100,105,101,114,46,105,111),v(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),v(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),v(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),v(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),v(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),v(106,115,102,105,100,100,108,101,46,110,101,116)],i=function(){if(r)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",i);else{document.removeEventListener("readystatechange",i);var t="object"==typeof e?e:r&&window.gsap;r&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(v(37,99,87,97,114,110,105,110,103),v(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(v(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"ScrollSmoother"+v(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(v(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),v(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},n=s.length;for(setTimeout(i,50);--n>-1;)if(-1!==t.indexOf(s[n]))return!0;o||setTimeout((function(){r&&(window.location.href=v(104,116,116,112,115,58,47,47)+y+v(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=ScrollSmoother&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),e=>l.maxScroll(e||r)),T=e=>{let t=o.querySelector(".ScrollSmoother-wrapper");return t||(t=o.createElement("div"),t.classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e)),t};class x{constructor(u){t||x.register(e)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),u=this.vars=u||{},c&&c.kill(),c=this,g(this);let m,v,y,w,b,C,_,E,P,R,k,A,N,M,z,F,{smoothTouch:L,onUpdate:B,onStop:H,smooth:O,onFocusIn:I,normalizeScroll:U,wholePixels:q}=u,V=this,W=u.effectsPrefix||"",D=l.getScrollFunc(r),j=1===l.isTouch?!0===L?.8:parseFloat(L)||0:0===O||!1===O?0:parseFloat(O)||.8,Y=j&&+u.speed||1,K=0,$=0,G=1,J=h(0),Q=()=>J.update(-K),X={y:0},Z=()=>m.style.overflow="visible",ee=e=>{e.update();let t=e.getTween();t&&(t.pause(),t._time=t._dur,t._tTime=t._tDur),z=!1,e.animation.progress(e.progress,!0)},te=(e,t)=>{(e!==K&&!R||t)&&(q&&(e=Math.round(e)),j&&(m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+e+", 0, 1)",m._gsap.y=e+"px"),$=e-K,K=e,l.isUpdating||x.isRefreshing||l.update())},re=function(e){return arguments.length?(e<0&&(e=0),X.y=-e,z=!0,R?K=-e:te(-e),l.isRefreshing?w.update():D(e/Y),this):-K},oe="undefined"!=typeof ResizeObserver&&!1!==u.autoResize&&new ResizeObserver(()=>{if(!l.isRefreshing){let e=S(v)*Y;e<-K&&re(e),p.restart(!0)}}),se=e=>{v.scrollTop=0,e.target.contains&&e.target.contains(v)||I&&!1===I(this,e)||(l.isInViewport(e.target)||e.target===F||this.scrollTo(e.target,!1,"center center"),F=e.target)},ie=(e,t)=>{if(e<t.start)return e;let r=isNaN(t.ratio)?1:t.ratio,o=t.end-t.start,s=e-t.start,i=t.offset||0,n=t.pins||[],a=n.offset||0,l=t._startClamp&&t.start<=0||t.pins&&t.pins.offset?0:t._endClamp&&t.end===S()?1:.5;return n.forEach(t=>{o-=t.distance,t.nativeStart<=e&&(s-=t.distance)}),a&&(s*=(o-a/r)/o),e+(s-i*l)/r-s},ne=(t,r,o)=>{o||(t.pins.length=t.pins.offset=0);let s,i,n,a,l,c,d,h,f=t.pins,g=t.markers;for(d=0;d<r.length;d++)if(h=r[d],t.trigger&&h.trigger&&t!==h&&(h.trigger===t.trigger||h.pinnedContainer===t.trigger||t.trigger.contains(h.trigger))&&(l=h._startNative||h._startClamp||h.start,c=h._endNative||h._endClamp||h.end,n=ie(l,t),a=h.pin&&c>0?n+(c-l):ie(c,t),h.setPositions(n,a,!0,(h._startClamp?Math.max(0,n):n)-l),h.markerStart&&g.push(e.quickSetter([h.markerStart,h.markerEnd],"y","px")),h.pin&&h.end>0&&!o)){if(s=h.end-h.start,i=t._startClamp&&h.start<0,i){if(t.start>0)return t.setPositions(0,t.end+(t._startNative-t.start),!0),void ne(t,r);s+=h.start,f.offset=-h.start}f.push({start:h.start,nativeStart:l,end:h.end,distance:s,trig:h}),t.setPositions(t.start,t.end+(i?-h.start:s),!0)}},ae=(e,t)=>{b.forEach(r=>ne(r,e,t))},le=()=>{Z(),requestAnimationFrame(Z),b&&(l.getAll().forEach(e=>{e._startNative=e.start,e._endNative=e.end}),b.forEach(e=>{let t=e._startClamp||e.start,r=e.autoSpeed?Math.min(S(),e.end):t+Math.abs((e.end-t)/e.ratio),o=r-e.end;if(t-=o/2,r-=o/2,t>r){let e=t;t=r,r=e}e._startClamp&&t<0?(r=e.ratio<0?S():e.end/e.ratio,o=r-e.end,t=0):(e.ratio<0||e._endClamp&&r>=S())&&(r=S(),t=e.ratio<0||e.ratio>1?0:r-(r-e.start)/e.ratio,o=(r-t)*e.ratio-(e.end-e.start)),e.offset=o||1e-4,e.pins.length=e.pins.offset=0,e.setPositions(t,r,!0)}),ae(l.sort())),J.reset()},ce=()=>l.addEventListener("refresh",le),de=()=>b&&b.forEach(e=>e.vars.onRefresh(e)),he=()=>(b&&b.forEach(e=>e.vars.onRefreshInit(e)),de),fe=(e,t,r,o)=>()=>{let s="function"==typeof t?t(r,o):t;s||0===s||(s=o.getAttribute("data-"+W+e)||("speed"===e?1:0)),o.setAttribute("data-"+W+e,s);let i="clamp("===(s+"").substr(0,6);return{clamp:i,value:i?s.substr(6,s.length-7):s}},ge=(t,o,i,n,c)=>{c=("function"==typeof c?c(n,t):c)||0;let h,f,g,p,u,m,y=fe("speed",o,n,t),w=fe("lag",i,n,t),T=e.getProperty(t,"y"),x=t._gsap,C=[],_=()=>{o=y(),i=parseFloat(w().value),h=parseFloat(o.value)||1,g="auto"===o.value,u=g||f&&f._startClamp&&f.start<=0||C.offset?0:f&&f._endClamp&&f.end===S()?1:.5,p&&p.kill(),p=i&&e.to(t,{ease:d,overwrite:!1,y:"+=0",duration:i}),f&&(f.ratio=h,f.autoSpeed=g)},E=()=>{x.y=T+"px",x.renderTransform(1),_()},P=[],R=0,k=e=>{if(g){E();let o=((e,t)=>{let o,i,n=e.parentNode||s,a=e.getBoundingClientRect(),l=n.getBoundingClientRect(),c=l.top-a.top,d=l.bottom-a.bottom,h=(Math.abs(c)>Math.abs(d)?c:d)/(1-t),f=-h*t;return h>0&&(o=l.height/(r.innerHeight+l.height),i=.5===o?2*l.height:2*Math.min(l.height,Math.abs(-h*o/(2*o-1)))*(t||1),f+=t?-i*t:-i/2,h+=i),{change:h,offset:f}})(t,a(0,1,-e.start/(e.end-e.start)));R=o.change,m=o.offset}else m=C.offset||0,R=(e.end-e.start-m)*(1-h);C.forEach(e=>R-=e.distance*(1-h)),e.offset=R||.001,e.vars.onUpdate(e),p&&p.progress(1)};return _(),(1!==h||g||p)&&(f=l.create({trigger:g?t.parentNode:t,start:()=>o.clamp?"clamp(top bottom+="+c+")":"top bottom+="+c,end:()=>o.value<0?"max":o.clamp?"clamp(bottom top-="+c+")":"bottom top-="+c,scroller:v,scrub:!0,refreshPriority:-999,onRefreshInit:E,onRefresh:k,onKill:e=>{let t=b.indexOf(e);t>=0&&b.splice(t,1),E()},onUpdate:t=>{let r,o,s,i=T+R*(t.progress-u),n=C.length,a=0;if(t.offset){if(n){for(o=-K,s=t.end;n--;){if(r=C[n],r.trig.isActive||o>=r.start&&o<=r.end)return void(p&&(r.trig.progress+=r.trig.direction<0?.001:-.001,r.trig.update(0,0,1),p.resetTo("y",parseFloat(x.y),-$,!0),G&&p.progress(1)));o>r.end&&(a+=r.distance),s-=r.distance}i=T+a+R*((e.utils.clamp(t.start,t.end,o)-t.start-a)/(s-t.start)-u)}P.length&&!g&&P.forEach(e=>e(i-a)),l=i+m,i=Math.round(1e5*l)/1e5||0,p?(p.resetTo("y",i,-$,!0),G&&p.progress(1)):(x.y=i+"px",x.renderTransform(1))}var l}}),k(f),e.core.getCache(f.trigger).stRevert=he,f.startY=T,f.pins=C,f.markers=P,f.ratio=h,f.autoSpeed=g,t.style.willChange="transform"),f};function pe(){return y=m.clientHeight,m.style.overflow="visible",i.style.height=r.innerHeight+(y-r.innerHeight)/Y+"px",y-r.innerHeight}ce(),l.addEventListener("killAll",ce),e.delayedCall(.5,()=>G=0),this.scrollTop=re,this.scrollTo=(t,r,o)=>{let s=e.utils.clamp(0,S(),isNaN(t)?this.offset(t,o,!!r&&!R):+t);r?R?e.to(this,{duration:j,scrollTop:s,overwrite:"auto",ease:d}):D(s):re(s)},this.offset=(t,r,o)=>{let s,i=(t=n(t)[0]).style.cssText,a=l.create({trigger:t,start:r||"top top"});return b&&(G?l.refresh():ae([a],!0)),s=a.start/(o?Y:1),a.kill(!1),t.style.cssText=i,e.core.getCache(t).uncache=1,s},this.content=function(t){if(arguments.length){let r=n(t||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||i.children[0];return r!==m&&(m=r,P=m.getAttribute("style")||"",oe&&oe.observe(m),e.set(m,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),j||e.set(m,{clearProps:"transform"})),this}return m},this.wrapper=function(t){return arguments.length?(v=n(t||"#smooth-wrapper")[0]||T(m),E=v.getAttribute("style")||"",pe(),e.set(v,j?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):v},this.effects=(e,t)=>{if(b||(b=[]),!e)return b.slice(0);(e=n(e)).forEach(e=>{let t=b.length;for(;t--;)b[t].trigger===e&&b[t].kill()}),t=t||{};let r,o,{speed:s,lag:i,effectsPadding:a}=t,l=[];for(r=0;r<e.length;r++)o=ge(e[r],s,i,r,a),o&&l.push(o);return b.push(...l),l},this.sections=(e,t)=>{if(C||(C=[]),!e)return C.slice(0);let r=n(e).map(e=>l.create({trigger:e,start:"top 120%",end:"bottom -20%",onToggle:t=>{e.style.opacity=t.isActive?"1":"0",e.style.pointerEvents=t.isActive?"all":"none"}}));return t&&t.add?C.push(...r):C=r.slice(0),r},this.content(u.content),this.wrapper(u.wrapper),this.render=e=>te(e||0===e?e:K),this.getVelocity=()=>J.getVelocity(-K),l.scrollerProxy(v,{scrollTop:re,scrollHeight:()=>pe()&&i.scrollHeight,fixedMarkers:!1!==u.fixedMarkers&&!!j,content:m,getBoundingClientRect:()=>({top:0,left:0,width:r.innerWidth,height:r.innerHeight})}),l.defaults({scroller:v});let ue=l.getAll().filter(e=>e.scroller===r||e.scroller===v);ue.forEach(e=>e.revert(!0,!0)),w=l.create({animation:e.fromTo(X,{y:()=>(M=0,0)},{y:()=>(M=1,-pe()),immediateRender:!1,ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function(){if(M){let e=z;e&&(ee(w),X.y=K),te(X.y,e),Q(),B&&!R&&B(V)}}}),onRefreshInit:e=>{if(x.isRefreshing)return;if(x.isRefreshing=!0,b){let e=l.getAll().filter(e=>!!e.pin);b.forEach(t=>{t.vars.pinnedContainer||e.forEach(e=>{if(e.pin.contains(t.trigger)){let r=t.vars;r.pinnedContainer=e.pin,t.vars=null,t.init(r,t.animation)}})})}let t=e.getTween();N=t&&t._end>t._dp._time,A=K,X.y=0,j&&(1===l.isTouch&&(v.style.position="absolute"),v.scrollTop=0,1===l.isTouch&&(v.style.position="fixed"))},onRefresh:t=>{t.animation.invalidate(),t.setPositions(t.start,pe()/Y),N||ee(t),X.y=-D()*Y,te(X.y),G||(N&&(z=!1),t.animation.progress(e.utils.clamp(0,1,A/Y/-t.end))),N&&(t.progress-=.001,t.update()),x.isRefreshing=!1},id:"ScrollSmoother",scroller:r,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:()=>pe()/Y,onScrubComplete:()=>{J.reset(),H&&H(this)},scrub:j||!0}),this.smooth=function(e){return arguments.length&&(j=e||0,Y=j&&+u.speed||1,w.scrubDuration(e)),w.getTween()?w.getTween().duration():0},w.getTween()&&(w.getTween().vars.ease=u.ease||d),this.scrollTrigger=w,u.effects&&this.effects(!0===u.effects?"[data-"+W+"speed], [data-"+W+"lag]":u.effects,{effectsPadding:u.effectsPadding}),u.sections&&this.sections(!0===u.sections?"[data-section]":u.sections),ue.forEach(e=>{e.vars.scroller=v,e.revert(!1,!0),e.init(e.vars,e.animation)}),this.paused=function(e,t){return arguments.length?(!!R!==e&&(e?(w.getTween()&&w.getTween().pause(),D(-K/Y),J.reset(),k=l.normalizeScroll(),k&&k.disable(),R=l.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:()=>re(-K)}),R.nested=f(s,"wheel,touch,scroll",!0,!1!==t)):(R.nested.kill(),R.kill(),R=0,k&&k.enable(),w.progress=(-K/Y-w.start)/(w.end-w.start),ee(w))),this):!!R},this.kill=this.revert=()=>{this.paused(!1),ee(w),w.kill();let e=(b||[]).concat(C||[]),t=e.length;for(;t--;)e[t].kill();l.scrollerProxy(v),l.removeEventListener("killAll",ce),l.removeEventListener("refresh",le),v.style.cssText=E,m.style.cssText=P;let o=l.defaults({});o&&o.scroller===v&&l.defaults({scroller:r}),this.normalizer&&l.normalizeScroll(!1),clearInterval(_),c=null,oe&&oe.disconnect(),i.style.removeProperty("height"),r.removeEventListener("focusin",se)},this.refresh=(e,t)=>w.refresh(e,t),U&&(this.normalizer=l.normalizeScroll(!0===U?{debounce:!0,content:!j&&m}:U)),l.config(u),"overscrollBehavior"in r.getComputedStyle(i)&&e.set([i,s],{overscrollBehavior:"none"}),"scrollBehavior"in r.getComputedStyle(i)&&e.set([i,s],{scrollBehavior:"auto"}),r.addEventListener("focusin",se),_=setInterval(Q,250),"loading"===o.readyState||requestAnimationFrame(()=>l.refresh())}get progress(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}static register(v){return t||(e=v||m(),u()&&window.document&&(r=window,o=document,s=o.documentElement,i=o.body),e&&(n=e.utils.toArray,a=e.utils.clamp,d=e.parseEase("expo"),g=e.core.context||function(){},l=e.core.globals().ScrollTrigger,e.core.globals("ScrollSmoother",x),i&&l&&(p=e.delayedCall(.2,()=>l.isRefreshing||c&&c.refresh()).pause(),h=l.core._getVelocityProp,f=l.core._inputObserver,x.refresh=l.refresh,t=1))),t}}x.version="3.12.4",x.create=e=>c&&e&&c.content()===n(e.content)[0]?c:new x(e),x.get=()=>c,m()&&e.registerPlugin(x);export default x;export{x as ScrollSmoother}; | ||
let e,t,r,o,s,i,n,a,l,c,d,h,f,g,p,u=()=>"undefined"!=typeof window,m=()=>e||u()&&(e=window.gsap)&&e.registerPlugin&&e,v=function(){return String.fromCharCode.apply(null,arguments)},y=v(103,114,101,101,110,115,111,99,107,46,99,111,109),w=v(103,115,97,112,46,99,111,109),b=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,S=(function(t){var r="undefined"!=typeof window,o=0===(r?window.location.href:"").indexOf(v(102,105,108,101,58,47,47))||-1!==t.indexOf(v(108,111,99,97,108,104,111,115,116))||b.test(t)||(r?window.location.hostname:"").split(".").pop()===v(108,111,99,97,108),s=[y,w,v(99,111,100,101,112,101,110,46,105,111),v(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),v(99,111,100,101,112,101,110,46,100,101,118),v(99,111,100,101,112,101,110,46,97,112,112),v(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),v(112,101,110,115,46,99,108,111,117,100),v(99,115,115,45,116,114,105,99,107,115,46,99,111,109),v(99,100,112,110,46,105,111),v(112,101,110,115,46,105,111),v(103,97,110,110,111,110,46,116,118),v(99,111,100,101,99,97,110,121,111,110,46,110,101,116),v(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),v(99,101,114,101,98,114,97,120,46,99,111,46,117,107),v(116,121,109,112,97,110,117,115,46,110,101,116),v(116,119,101,101,110,109,97,120,46,99,111,109),v(112,108,110,107,114,46,99,111),v(104,111,116,106,97,114,46,99,111,109),v(119,101,98,112,97,99,107,98,105,110,46,99,111,109),v(97,114,99,104,105,118,101,46,111,114,103),v(99,111,100,101,115,97,110,100,98,111,120,46,105,111),v(99,115,98,46,97,112,112),v(115,116,97,99,107,98,108,105,116,122,46,99,111,109),v(115,116,97,99,107,98,108,105,116,122,46,105,111),v(99,111,100,105,101,114,46,105,111),v(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),v(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),v(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),v(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),v(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),v(106,115,102,105,100,100,108,101,46,110,101,116)],i=function(){if(r)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",i);else{document.removeEventListener("readystatechange",i);var t="object"==typeof e?e:r&&window.gsap;r&&window.console&&!window._gsapWarned&&"object"==typeof t&&!1!==t.config().trialWarn&&(console.log(v(37,99,87,97,114,110,105,110,103),v(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(v(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"ScrollSmoother"+v(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(v(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),v(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},n=s.length;for(setTimeout(i,50);--n>-1;)if(-1!==t.indexOf(s[n]))return!0;o||setTimeout((function(){r&&(window.location.href=v(104,116,116,112,115,58,47,47)+y+v(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=ScrollSmoother&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),e=>l.maxScroll(e||r)),T=e=>{let t=o.querySelector(".ScrollSmoother-wrapper");return t||(t=o.createElement("div"),t.classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e)),t};class x{constructor(u){t||x.register(e)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),u=this.vars=u||{},c&&c.kill(),c=this,g(this);let m,v,y,w,b,C,_,E,P,R,k,A,N,M,z,F,{smoothTouch:L,onUpdate:B,onStop:H,smooth:O,onFocusIn:I,normalizeScroll:U,wholePixels:q}=u,V=this,W=u.effectsPrefix||"",D=l.getScrollFunc(r),j=1===l.isTouch?!0===L?.8:parseFloat(L)||0:0===O||!1===O?0:parseFloat(O)||.8,Y=j&&+u.speed||1,K=0,$=0,G=1,J=h(0),Q=()=>J.update(-K),X={y:0},Z=()=>m.style.overflow="visible",ee=e=>{e.update();let t=e.getTween();t&&(t.pause(),t._time=t._dur,t._tTime=t._tDur),z=!1,e.animation.progress(e.progress,!0)},te=(e,t)=>{(e!==K&&!R||t)&&(q&&(e=Math.round(e)),j&&(m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+e+", 0, 1)",m._gsap.y=e+"px"),$=e-K,K=e,l.isUpdating||x.isRefreshing||l.update())},re=function(e){return arguments.length?(e<0&&(e=0),X.y=-e,z=!0,R?K=-e:te(-e),l.isRefreshing?w.update():D(e/Y),this):-K},oe="undefined"!=typeof ResizeObserver&&!1!==u.autoResize&&new ResizeObserver(()=>{if(!l.isRefreshing){let e=S(v)*Y;e<-K&&re(e),p.restart(!0)}}),se=e=>{v.scrollTop=0,e.target.contains&&e.target.contains(v)||I&&!1===I(this,e)||(l.isInViewport(e.target)||e.target===F||this.scrollTo(e.target,!1,"center center"),F=e.target)},ie=(e,t)=>{if(e<t.start)return e;let r=isNaN(t.ratio)?1:t.ratio,o=t.end-t.start,s=e-t.start,i=t.offset||0,n=t.pins||[],a=n.offset||0,l=t._startClamp&&t.start<=0||t.pins&&t.pins.offset?0:t._endClamp&&t.end===S()?1:.5;return n.forEach(t=>{o-=t.distance,t.nativeStart<=e&&(s-=t.distance)}),a&&(s*=(o-a/r)/o),e+(s-i*l)/r-s},ne=(t,r,o)=>{o||(t.pins.length=t.pins.offset=0);let s,i,n,a,l,c,d,h,f=t.pins,g=t.markers;for(d=0;d<r.length;d++)if(h=r[d],t.trigger&&h.trigger&&t!==h&&(h.trigger===t.trigger||h.pinnedContainer===t.trigger||t.trigger.contains(h.trigger))&&(l=h._startNative||h._startClamp||h.start,c=h._endNative||h._endClamp||h.end,n=ie(l,t),a=h.pin&&c>0?n+(c-l):ie(c,t),h.setPositions(n,a,!0,(h._startClamp?Math.max(0,n):n)-l),h.markerStart&&g.push(e.quickSetter([h.markerStart,h.markerEnd],"y","px")),h.pin&&h.end>0&&!o)){if(s=h.end-h.start,i=t._startClamp&&h.start<0,i){if(t.start>0)return t.setPositions(0,t.end+(t._startNative-t.start),!0),void ne(t,r);s+=h.start,f.offset=-h.start}f.push({start:h.start,nativeStart:l,end:h.end,distance:s,trig:h}),t.setPositions(t.start,t.end+(i?-h.start:s),!0)}},ae=(e,t)=>{b.forEach(r=>ne(r,e,t))},le=()=>{Z(),requestAnimationFrame(Z),b&&(l.getAll().forEach(e=>{e._startNative=e.start,e._endNative=e.end}),b.forEach(e=>{let t=e._startClamp||e.start,r=e.autoSpeed?Math.min(S(),e.end):t+Math.abs((e.end-t)/e.ratio),o=r-e.end;if(t-=o/2,r-=o/2,t>r){let e=t;t=r,r=e}e._startClamp&&t<0?(r=e.ratio<0?S():e.end/e.ratio,o=r-e.end,t=0):(e.ratio<0||e._endClamp&&r>=S())&&(r=S(),t=e.ratio<0||e.ratio>1?0:r-(r-e.start)/e.ratio,o=(r-t)*e.ratio-(e.end-e.start)),e.offset=o||1e-4,e.pins.length=e.pins.offset=0,e.setPositions(t,r,!0)}),ae(l.sort())),J.reset()},ce=()=>l.addEventListener("refresh",le),de=()=>b&&b.forEach(e=>e.vars.onRefresh(e)),he=()=>(b&&b.forEach(e=>e.vars.onRefreshInit(e)),de),fe=(e,t,r,o)=>()=>{let s="function"==typeof t?t(r,o):t;s||0===s||(s=o.getAttribute("data-"+W+e)||("speed"===e?1:0)),o.setAttribute("data-"+W+e,s);let i="clamp("===(s+"").substr(0,6);return{clamp:i,value:i?s.substr(6,s.length-7):s}},ge=(t,o,i,n,c)=>{c=("function"==typeof c?c(n,t):c)||0;let h,f,g,p,u,m,y=fe("speed",o,n,t),w=fe("lag",i,n,t),T=e.getProperty(t,"y"),x=t._gsap,C=[],_=()=>{o=y(),i=parseFloat(w().value),h=parseFloat(o.value)||1,g="auto"===o.value,u=g||f&&f._startClamp&&f.start<=0||C.offset?0:f&&f._endClamp&&f.end===S()?1:.5,p&&p.kill(),p=i&&e.to(t,{ease:d,overwrite:!1,y:"+=0",duration:i}),f&&(f.ratio=h,f.autoSpeed=g)},E=()=>{x.y=T+"px",x.renderTransform(1),_()},P=[],R=0,k=e=>{if(g){E();let o=((e,t)=>{let o,i,n=e.parentNode||s,a=e.getBoundingClientRect(),l=n.getBoundingClientRect(),c=l.top-a.top,d=l.bottom-a.bottom,h=(Math.abs(c)>Math.abs(d)?c:d)/(1-t),f=-h*t;return h>0&&(o=l.height/(r.innerHeight+l.height),i=.5===o?2*l.height:2*Math.min(l.height,Math.abs(-h*o/(2*o-1)))*(t||1),f+=t?-i*t:-i/2,h+=i),{change:h,offset:f}})(t,a(0,1,-e.start/(e.end-e.start)));R=o.change,m=o.offset}else m=C.offset||0,R=(e.end-e.start-m)*(1-h);C.forEach(e=>R-=e.distance*(1-h)),e.offset=R||.001,e.vars.onUpdate(e),p&&p.progress(1)};return _(),(1!==h||g||p)&&(f=l.create({trigger:g?t.parentNode:t,start:()=>o.clamp?"clamp(top bottom+="+c+")":"top bottom+="+c,end:()=>o.value<0?"max":o.clamp?"clamp(bottom top-="+c+")":"bottom top-="+c,scroller:v,scrub:!0,refreshPriority:-999,onRefreshInit:E,onRefresh:k,onKill:e=>{let t=b.indexOf(e);t>=0&&b.splice(t,1),E()},onUpdate:t=>{let r,o,s,i=T+R*(t.progress-u),n=C.length,a=0;if(t.offset){if(n){for(o=-K,s=t.end;n--;){if(r=C[n],r.trig.isActive||o>=r.start&&o<=r.end)return void(p&&(r.trig.progress+=r.trig.direction<0?.001:-.001,r.trig.update(0,0,1),p.resetTo("y",parseFloat(x.y),-$,!0),G&&p.progress(1)));o>r.end&&(a+=r.distance),s-=r.distance}i=T+a+R*((e.utils.clamp(t.start,t.end,o)-t.start-a)/(s-t.start)-u)}P.length&&!g&&P.forEach(e=>e(i-a)),l=i+m,i=Math.round(1e5*l)/1e5||0,p?(p.resetTo("y",i,-$,!0),G&&p.progress(1)):(x.y=i+"px",x.renderTransform(1))}var l}}),k(f),e.core.getCache(f.trigger).stRevert=he,f.startY=T,f.pins=C,f.markers=P,f.ratio=h,f.autoSpeed=g,t.style.willChange="transform"),f};function pe(){return y=m.clientHeight,m.style.overflow="visible",i.style.height=r.innerHeight+(y-r.innerHeight)/Y+"px",y-r.innerHeight}ce(),l.addEventListener("killAll",ce),e.delayedCall(.5,()=>G=0),this.scrollTop=re,this.scrollTo=(t,r,o)=>{let s=e.utils.clamp(0,S(),isNaN(t)?this.offset(t,o,!!r&&!R):+t);r?R?e.to(this,{duration:j,scrollTop:s,overwrite:"auto",ease:d}):D(s):re(s)},this.offset=(t,r,o)=>{let s,i=(t=n(t)[0]).style.cssText,a=l.create({trigger:t,start:r||"top top"});return b&&(G?l.refresh():ae([a],!0)),s=a.start/(o?Y:1),a.kill(!1),t.style.cssText=i,e.core.getCache(t).uncache=1,s},this.content=function(t){if(arguments.length){let r=n(t||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||i.children[0];return r!==m&&(m=r,P=m.getAttribute("style")||"",oe&&oe.observe(m),e.set(m,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),j||e.set(m,{clearProps:"transform"})),this}return m},this.wrapper=function(t){return arguments.length?(v=n(t||"#smooth-wrapper")[0]||T(m),E=v.getAttribute("style")||"",pe(),e.set(v,j?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):v},this.effects=(e,t)=>{if(b||(b=[]),!e)return b.slice(0);(e=n(e)).forEach(e=>{let t=b.length;for(;t--;)b[t].trigger===e&&b[t].kill()}),t=t||{};let r,o,{speed:s,lag:i,effectsPadding:a}=t,c=[];for(r=0;r<e.length;r++)o=ge(e[r],s,i,r,a),o&&c.push(o);return b.push(...c),!1!==t.refresh&&l.refresh(),c},this.sections=(e,t)=>{if(C||(C=[]),!e)return C.slice(0);let r=n(e).map(e=>l.create({trigger:e,start:"top 120%",end:"bottom -20%",onToggle:t=>{e.style.opacity=t.isActive?"1":"0",e.style.pointerEvents=t.isActive?"all":"none"}}));return t&&t.add?C.push(...r):C=r.slice(0),r},this.content(u.content),this.wrapper(u.wrapper),this.render=e=>te(e||0===e?e:K),this.getVelocity=()=>J.getVelocity(-K),l.scrollerProxy(v,{scrollTop:re,scrollHeight:()=>pe()&&i.scrollHeight,fixedMarkers:!1!==u.fixedMarkers&&!!j,content:m,getBoundingClientRect:()=>({top:0,left:0,width:r.innerWidth,height:r.innerHeight})}),l.defaults({scroller:v});let ue=l.getAll().filter(e=>e.scroller===r||e.scroller===v);ue.forEach(e=>e.revert(!0,!0)),w=l.create({animation:e.fromTo(X,{y:()=>(M=0,0)},{y:()=>(M=1,-pe()),immediateRender:!1,ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function(){if(M){let e=z;e&&(ee(w),X.y=K),te(X.y,e),Q(),B&&!R&&B(V)}}}),onRefreshInit:e=>{if(x.isRefreshing)return;if(x.isRefreshing=!0,b){let e=l.getAll().filter(e=>!!e.pin);b.forEach(t=>{t.vars.pinnedContainer||e.forEach(e=>{if(e.pin.contains(t.trigger)){let r=t.vars;r.pinnedContainer=e.pin,t.vars=null,t.init(r,t.animation)}})})}let t=e.getTween();N=t&&t._end>t._dp._time,A=K,X.y=0,j&&(1===l.isTouch&&(v.style.position="absolute"),v.scrollTop=0,1===l.isTouch&&(v.style.position="fixed"))},onRefresh:t=>{t.animation.invalidate(),t.setPositions(t.start,pe()/Y),N||ee(t),X.y=-D()*Y,te(X.y),G||(N&&(z=!1),t.animation.progress(e.utils.clamp(0,1,A/Y/-t.end))),N&&(t.progress-=.001,t.update()),x.isRefreshing=!1},id:"ScrollSmoother",scroller:r,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:()=>pe()/Y,onScrubComplete:()=>{J.reset(),H&&H(this)},scrub:j||!0}),this.smooth=function(e){return arguments.length&&(j=e||0,Y=j&&+u.speed||1,w.scrubDuration(e)),w.getTween()?w.getTween().duration():0},w.getTween()&&(w.getTween().vars.ease=u.ease||d),this.scrollTrigger=w,u.effects&&this.effects(!0===u.effects?"[data-"+W+"speed], [data-"+W+"lag]":u.effects,{effectsPadding:u.effectsPadding,refresh:!1}),u.sections&&this.sections(!0===u.sections?"[data-section]":u.sections),ue.forEach(e=>{e.vars.scroller=v,e.revert(!1,!0),e.init(e.vars,e.animation)}),this.paused=function(e,t){return arguments.length?(!!R!==e&&(e?(w.getTween()&&w.getTween().pause(),D(-K/Y),J.reset(),k=l.normalizeScroll(),k&&k.disable(),R=l.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:()=>re(-K)}),R.nested=f(s,"wheel,touch,scroll",!0,!1!==t)):(R.nested.kill(),R.kill(),R=0,k&&k.enable(),w.progress=(-K/Y-w.start)/(w.end-w.start),ee(w))),this):!!R},this.kill=this.revert=()=>{this.paused(!1),ee(w),w.kill();let e=(b||[]).concat(C||[]),t=e.length;for(;t--;)e[t].kill();l.scrollerProxy(v),l.removeEventListener("killAll",ce),l.removeEventListener("refresh",le),v.style.cssText=E,m.style.cssText=P;let o=l.defaults({});o&&o.scroller===v&&l.defaults({scroller:r}),this.normalizer&&l.normalizeScroll(!1),clearInterval(_),c=null,oe&&oe.disconnect(),i.style.removeProperty("height"),r.removeEventListener("focusin",se)},this.refresh=(e,t)=>w.refresh(e,t),U&&(this.normalizer=l.normalizeScroll(!0===U?{debounce:!0,content:!j&&m}:U)),l.config(u),"overscrollBehavior"in r.getComputedStyle(i)&&e.set([i,s],{overscrollBehavior:"none"}),"scrollBehavior"in r.getComputedStyle(i)&&e.set([i,s],{scrollBehavior:"auto"}),r.addEventListener("focusin",se),_=setInterval(Q,250),"loading"===o.readyState||requestAnimationFrame(()=>l.refresh())}get progress(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}static register(v){return t||(e=v||m(),u()&&window.document&&(r=window,o=document,s=o.documentElement,i=o.body),e&&(n=e.utils.toArray,a=e.utils.clamp,d=e.parseEase("expo"),g=e.core.context||function(){},l=e.core.globals().ScrollTrigger,e.core.globals("ScrollSmoother",x),i&&l&&(p=e.delayedCall(.2,()=>l.isRefreshing||c&&c.refresh()).pause(),h=l.core._getVelocityProp,f=l.core._inputObserver,x.refresh=l.refresh,t=1))),t}}x.version="3.12.5",x.create=e=>c&&e&&c.content()===n(e.content)[0]?c:new x(e),x.get=()=>c,m()&&e.registerPlugin(x);export default x;export{x as ScrollSmoother}; |
/*! | ||
* ScrollToPlugin 3.12.4 | ||
* ScrollToPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let e,t,l,o,r,s,n,i,p=()=>"undefined"!=typeof window,a=()=>e||p()&&(e=window.gsap)&&e.registerPlugin&&e,c=e=>"string"==typeof e,y=e=>"function"==typeof e,f=(e,t)=>{let s="x"===t?"Width":"Height",n="scroll"+s,i="client"+s;return e===l||e===o||e===r?Math.max(o[n],r[n])-(l["inner"+s]||o[i]||r[i]):e[n]-e["offset"+s]},u=(e,t)=>{let s="scroll"+("x"===t?"Left":"Top");return e===l&&(null!=e.pageXOffset?s="page"+t.toUpperCase()+"Offset":e=null!=o[s]?o:r),()=>e[s]},g=(e,t)=>{if(!(e=s(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};let n=e.getBoundingClientRect(),i=!t||t===l||t===r,p=i?{top:o.clientTop-(l.pageYOffset||o.scrollTop||r.scrollTop||0),left:o.clientLeft-(l.pageXOffset||o.scrollLeft||r.scrollLeft||0)}:t.getBoundingClientRect(),a={x:n.left-p.left,y:n.top-p.top};return!i&&t&&(a.x+=u(t,"x")(),a.y+=u(t,"y")()),a},x=(e,t,l,o,r)=>isNaN(e)||"object"==typeof e?c(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+o-r:"max"===e?f(t,l)-r:Math.min(f(t,l),g(e,t)[l]-r):parseFloat(e)-r,d=()=>{e=a(),p()&&e&&"undefined"!=typeof document&&document.body&&(l=window,r=document.body,o=document.documentElement,s=e.utils.toArray,e.config({autoKillThreshold:7}),n=e.config(),t=1)};const T={version:"3.12.4",name:"scrollTo",rawVars:1,register(t){e=t,d()},init(o,r,s,n,p){t||d();let a=this,f=e.getProperty(o,"scrollSnapType");a.isWin=o===l,a.target=o,a.tween=s,r=((e,t,l,o)=>{if(y(e)&&(e=e(t,l,o)),"object"!=typeof e)return c(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};{let r,s={};for(r in e)s[r]="onAutoKill"!==r&&y(e[r])?e[r](t,l,o):e[r];return s}})(r,n,o,p),a.vars=r,a.autoKill=!!r.autoKill,a.getX=u(o,"x"),a.getY=u(o,"y"),a.x=a.xPrev=a.getX(),a.y=a.yPrev=a.getY(),i||(i=e.core.globals().ScrollTrigger),"smooth"===e.getProperty(o,"scrollBehavior")&&e.set(o,{scrollBehavior:"auto"}),f&&"none"!==f&&(a.snap=1,a.snapInline=o.style.scrollSnapType,o.style.scrollSnapType="none"),null!=r.x?(a.add(a,"x",a.x,x(r.x,o,"x",a.x,r.offsetX||0),n,p),a._props.push("scrollTo_x")):a.skipX=1,null!=r.y?(a.add(a,"y",a.y,x(r.y,o,"y",a.y,r.offsetY||0),n,p),a._props.push("scrollTo_y")):a.skipY=1},render(e,t){let o,r,s,p,a,c=t._pt,{target:y,tween:u,autoKill:g,xPrev:x,yPrev:d,isWin:T,snap:h,snapInline:k}=t;for(;c;)c.r(e,c.d),c=c._next;o=T||!t.skipX?t.getX():x,r=T||!t.skipY?t.getY():d,s=r-d,p=o-x,a=n.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),g&&(!t.skipX&&(p>a||p<-a)&&o<f(y,"x")&&(t.skipX=1),!t.skipY&&(s>a||s<-a)&&r<f(y,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(u.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(u,t.vars.onAutoKillParams||[]))),T?l.scrollTo(t.skipX?o:t.x,t.skipY?r:t.y):(t.skipY||(y.scrollTop=t.y),t.skipX||(y.scrollLeft=t.x)),!h||1!==e&&0!==e||(r=y.scrollTop,o=y.scrollLeft,k?y.style.scrollSnapType=k:y.style.removeProperty("scroll-snap-type"),y.scrollTop=r+1,y.scrollLeft=o+1,y.scrollTop=r,y.scrollLeft=o),t.xPrev=t.x,t.yPrev=t.y,i&&i.update()},kill(e){let t="scrollTo"===e,l=this._props.indexOf(e);return(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1),l>-1&&this._props.splice(l,1),!this._props.length}};T.max=f,T.getOffset=g,T.buildGetter=u,a()&&e.registerPlugin(T);export default T;export{T as ScrollToPlugin}; | ||
let e,t,l,o,r,s,n,i,p=()=>"undefined"!=typeof window,a=()=>e||p()&&(e=window.gsap)&&e.registerPlugin&&e,c=e=>"string"==typeof e,y=e=>"function"==typeof e,f=(e,t)=>{let s="x"===t?"Width":"Height",n="scroll"+s,i="client"+s;return e===l||e===o||e===r?Math.max(o[n],r[n])-(l["inner"+s]||o[i]||r[i]):e[n]-e["offset"+s]},u=(e,t)=>{let s="scroll"+("x"===t?"Left":"Top");return e===l&&(null!=e.pageXOffset?s="page"+t.toUpperCase()+"Offset":e=null!=o[s]?o:r),()=>e[s]},g=(e,t)=>{if(!(e=s(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};let n=e.getBoundingClientRect(),i=!t||t===l||t===r,p=i?{top:o.clientTop-(l.pageYOffset||o.scrollTop||r.scrollTop||0),left:o.clientLeft-(l.pageXOffset||o.scrollLeft||r.scrollLeft||0)}:t.getBoundingClientRect(),a={x:n.left-p.left,y:n.top-p.top};return!i&&t&&(a.x+=u(t,"x")(),a.y+=u(t,"y")()),a},x=(e,t,l,o,r)=>isNaN(e)||"object"==typeof e?c(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+o-r:"max"===e?f(t,l)-r:Math.min(f(t,l),g(e,t)[l]-r):parseFloat(e)-r,d=()=>{e=a(),p()&&e&&"undefined"!=typeof document&&document.body&&(l=window,r=document.body,o=document.documentElement,s=e.utils.toArray,e.config({autoKillThreshold:7}),n=e.config(),t=1)};const T={version:"3.12.5",name:"scrollTo",rawVars:1,register(t){e=t,d()},init(o,r,s,n,p){t||d();let a=this,f=e.getProperty(o,"scrollSnapType");a.isWin=o===l,a.target=o,a.tween=s,r=((e,t,l,o)=>{if(y(e)&&(e=e(t,l,o)),"object"!=typeof e)return c(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};{let r,s={};for(r in e)s[r]="onAutoKill"!==r&&y(e[r])?e[r](t,l,o):e[r];return s}})(r,n,o,p),a.vars=r,a.autoKill=!!r.autoKill,a.getX=u(o,"x"),a.getY=u(o,"y"),a.x=a.xPrev=a.getX(),a.y=a.yPrev=a.getY(),i||(i=e.core.globals().ScrollTrigger),"smooth"===e.getProperty(o,"scrollBehavior")&&e.set(o,{scrollBehavior:"auto"}),f&&"none"!==f&&(a.snap=1,a.snapInline=o.style.scrollSnapType,o.style.scrollSnapType="none"),null!=r.x?(a.add(a,"x",a.x,x(r.x,o,"x",a.x,r.offsetX||0),n,p),a._props.push("scrollTo_x")):a.skipX=1,null!=r.y?(a.add(a,"y",a.y,x(r.y,o,"y",a.y,r.offsetY||0),n,p),a._props.push("scrollTo_y")):a.skipY=1},render(e,t){let o,r,s,p,a,c=t._pt,{target:y,tween:u,autoKill:g,xPrev:x,yPrev:d,isWin:T,snap:h,snapInline:k}=t;for(;c;)c.r(e,c.d),c=c._next;o=T||!t.skipX?t.getX():x,r=T||!t.skipY?t.getY():d,s=r-d,p=o-x,a=n.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),g&&(!t.skipX&&(p>a||p<-a)&&o<f(y,"x")&&(t.skipX=1),!t.skipY&&(s>a||s<-a)&&r<f(y,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(u.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(u,t.vars.onAutoKillParams||[]))),T?l.scrollTo(t.skipX?o:t.x,t.skipY?r:t.y):(t.skipY||(y.scrollTop=t.y),t.skipX||(y.scrollLeft=t.x)),!h||1!==e&&0!==e||(r=y.scrollTop,o=y.scrollLeft,k?y.style.scrollSnapType=k:y.style.removeProperty("scroll-snap-type"),y.scrollTop=r+1,y.scrollLeft=o+1,y.scrollTop=r,y.scrollLeft=o),t.xPrev=t.x,t.yPrev=t.y,i&&i.update()},kill(e){let t="scrollTo"===e,l=this._props.indexOf(e);return(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1),l>-1&&this._props.splice(l,1),!this._props.length}};T.max=f,T.getOffset=g,T.buildGetter=u,a()&&e.registerPlugin(T);export default T;export{T as ScrollToPlugin}; |
/*! | ||
* ScrollTrigger 3.12.4 | ||
* ScrollTrigger 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let e,t,r,i,s,o,a,n,l,c,d,p,h,g,u=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,f=1,m=[],v=[],y=[],x=Date.now,b=(e,t)=>t,w=(e,t)=>~y.indexOf(e)&&y[y.indexOf(e)+1][t],_=e=>!!~d.indexOf(e),T=(e,t,r,i,s)=>e.addEventListener(t,r,{passive:!i,capture:!!s}),k=(e,t,r,i)=>e.removeEventListener(t,r,!!i),S=()=>p&&p.isPressed||v.cache++,C=(e,t)=>{let r=s=>{if(s||0===s){f&&(i.history.scrollRestoration="manual");let t=p&&p.isPressed;s=r.v=Math.round(s)||(p&&p.iOS?1:0),e(s),r.cacheID=v.cache,t&&b("ss",s)}else(t||v.cache!==r.cacheID||b("ref"))&&(r.cacheID=v.cache,r.v=e());return r.v+r.offset};return r.offset=0,e&&r},E={s:"scrollLeft",p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:C((function(e){return arguments.length?i.scrollTo(e,P.sc()):i.pageXOffset||s.scrollLeft||o.scrollLeft||a.scrollLeft||0}))},P={s:"scrollTop",p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:E,sc:C((function(e){return arguments.length?i.scrollTo(E.sc(),e):i.pageYOffset||s.scrollTop||o.scrollTop||a.scrollTop||0}))},M=(t,r)=>(r&&r._ctx&&r._ctx.selector||e.utils.toArray)(t)[0]||("string"==typeof t&&!1!==e.config().nullTargetWarn?console.warn("Element not found:",t):null),O=(t,{s:r,sc:i})=>{_(t)&&(t=s.scrollingElement||o);let a=v.indexOf(t),n=i===P.sc?1:2;!~a&&(a=v.push(t)-1),v[a+n]||T(t,"scroll",S);let l=v[a+n],c=l||(v[a+n]=C(w(t,r),!0)||(_(t)?i:C((function(e){return arguments.length?t[r]=e:t[r]}))));return c.target=t,l||(c.smooth="smooth"===e.getProperty(t,"scrollBehavior")),c},A=(e,t,r)=>{let i=e,s=e,o=x(),a=o,n=t||50,l=Math.max(500,3*n),c=(e,t)=>{let l=x();t||l-o>n?(s=i,i=e,a=o,o=l):r?i+=e:i=s+(e-s)/(l-a)*(o-a)};return{update:c,reset:()=>{s=i=r?0:i,a=o=0},getVelocity:e=>{let t=a,n=s,d=x();return(e||0===e)&&e!==i&&c(e),o===a||d-a>l?0:(i+(r?n:-n))/((r?d:o)-t)*1e3}}},R=(e,t)=>(t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e),D=e=>{let t=Math.max(...e),r=Math.min(...e);return Math.abs(t)>=Math.abs(r)?t:r},Y=()=>{c=e.core.globals().ScrollTrigger,c&&c.core&&(()=>{let e=c.core,t=e.bridge||{},r=e._scrollers,i=e._proxies;r.push(...v),i.push(...y),v=r,y=i,b=(e,r)=>t[e](r)})()},B=c=>(e=c||u(),!t&&e&&"undefined"!=typeof document&&document.body&&(i=window,s=document,o=s.documentElement,a=s.body,d=[i,s,o,a],r=e.utils.clamp,g=e.core.context||function(){},l="onpointerenter"in a?"pointer":"mouse",n=I.isTouch=i.matchMedia&&i.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in i||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,h=I.eventTypes=("ontouchstart"in o?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in o?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(()=>f=0,500),Y(),t=1),t);E.op=P,v.cache=0;class I{constructor(e){this.init(e)}init(r){t||B(e)||console.warn("Please gsap.registerPlugin(Observer)"),c||Y();let{tolerance:d,dragMinimum:u,type:f,target:v,lineHeight:y,debounce:b,preventDefault:w,onStop:C,onStopDelay:I,ignore:X,wheelSpeed:z,event:L,onDragStart:N,onDragEnd:F,onDrag:W,onPress:H,onRelease:q,onRight:U,onLeft:V,onUp:G,onDown:j,onChangeX:K,onChangeY:Z,onChange:$,onToggleX:J,onToggleY:Q,onHover:ee,onHoverEnd:te,onMove:re,ignoreCheck:ie,isNormalizer:se,onGestureStart:oe,onGestureEnd:ae,onWheel:ne,onEnable:le,onDisable:ce,onClick:de,scrollSpeed:pe,capture:he,allowClicks:ge,lockAxis:ue,onLockAxis:fe}=r;this.target=v=M(v)||o,this.vars=r,X&&(X=e.utils.toArray(X)),d=d||1e-9,u=u||0,z=z||1,pe=pe||1,f=f||"wheel,touch,pointer",b=!1!==b,y||(y=parseFloat(i.getComputedStyle(a).lineHeight)||22);let me,ve,ye,xe,be,we,_e,Te=this,ke=0,Se=0,Ce=O(v,E),Ee=O(v,P),Pe=Ce(),Me=Ee(),Oe=~f.indexOf("touch")&&!~f.indexOf("pointer")&&"pointerdown"===h[0],Ae=_(v),Re=v.ownerDocument||s,De=[0,0,0],Ye=[0,0,0],Be=0,Ie=()=>Be=x(),Xe=(e,t)=>(Te.event=e)&&X&&~X.indexOf(e.target)||t&&Oe&&"touch"!==e.pointerType||ie&&ie(e,t),ze=()=>{let e=Te.deltaX=D(De),t=Te.deltaY=D(Ye),r=Math.abs(e)>=d,i=Math.abs(t)>=d;$&&(r||i)&&$(Te,e,t,De,Ye),r&&(U&&Te.deltaX>0&&U(Te),V&&Te.deltaX<0&&V(Te),K&&K(Te),J&&Te.deltaX<0!=ke<0&&J(Te),ke=Te.deltaX,De[0]=De[1]=De[2]=0),i&&(j&&Te.deltaY>0&&j(Te),G&&Te.deltaY<0&&G(Te),Z&&Z(Te),Q&&Te.deltaY<0!=Se<0&&Q(Te),Se=Te.deltaY,Ye[0]=Ye[1]=Ye[2]=0),(xe||ye)&&(re&&re(Te),ye&&(W(Te),ye=!1),xe=!1),we&&!(we=!1)&&fe&&fe(Te),be&&(ne(Te),be=!1),me=0},Le=(e,t,r)=>{De[r]+=e,Ye[r]+=t,Te._vx.update(e),Te._vy.update(t),b?me||(me=requestAnimationFrame(ze)):ze()},Ne=(e,t)=>{ue&&!_e&&(Te.axis=_e=Math.abs(e)>Math.abs(t)?"x":"y",we=!0),"y"!==_e&&(De[2]+=e,Te._vx.update(e,!0)),"x"!==_e&&(Ye[2]+=t,Te._vy.update(t,!0)),b?me||(me=requestAnimationFrame(ze)):ze()},Fe=e=>{if(Xe(e,1))return;let t=(e=R(e,w)).clientX,r=e.clientY,i=t-Te.x,s=r-Te.y,o=Te.isDragging;Te.x=t,Te.y=r,(o||Math.abs(Te.startX-t)>=u||Math.abs(Te.startY-r)>=u)&&(W&&(ye=!0),o||(Te.isDragging=!0),Ne(i,s),o||N&&N(Te))},We=Te.onPress=e=>{Xe(e,1)||e&&e.button||(Te.axis=_e=null,ve.pause(),Te.isPressed=!0,e=R(e),ke=Se=0,Te.startX=Te.x=e.clientX,Te.startY=Te.y=e.clientY,Te._vx.reset(),Te._vy.reset(),T(se?v:Re,h[1],Fe,w,!0),Te.deltaX=Te.deltaY=0,H&&H(Te))},He=Te.onRelease=t=>{if(Xe(t,1))return;k(se?v:Re,h[1],Fe,!0);let r=!isNaN(Te.y-Te.startY),s=Te.isDragging,o=s&&(Math.abs(Te.x-Te.startX)>3||Math.abs(Te.y-Te.startY)>3),a=R(t);!o&&r&&(Te._vx.reset(),Te._vy.reset(),w&&ge&&e.delayedCall(.08,()=>{if(x()-Be>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(Re.createEvent){let e=Re.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,i,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Te.isDragging=Te.isGesturing=Te.isPressed=!1,C&&s&&!se&&ve.restart(!0),F&&s&&F(Te),q&&q(Te,o)},qe=e=>e.touches&&e.touches.length>1&&(Te.isGesturing=!0)&&oe(e,Te.isDragging),Ue=()=>(Te.isGesturing=!1)||ae(Te),Ve=e=>{if(Xe(e))return;let t=Ce(),r=Ee();Le((t-Pe)*pe,(r-Me)*pe,1),Pe=t,Me=r,C&&ve.restart(!0)},Ge=e=>{if(Xe(e))return;e=R(e,w),ne&&(be=!0);let t=(1===e.deltaMode?y:2===e.deltaMode?i.innerHeight:1)*z;Le(e.deltaX*t,e.deltaY*t,0),C&&!se&&ve.restart(!0)},je=e=>{if(Xe(e))return;let t=e.clientX,r=e.clientY,i=t-Te.x,s=r-Te.y;Te.x=t,Te.y=r,xe=!0,C&&ve.restart(!0),(i||s)&&Ne(i,s)},Ke=e=>{Te.event=e,ee(Te)},Ze=e=>{Te.event=e,te(Te)},$e=e=>Xe(e)||R(e,w)&&de(Te);ve=Te._dc=e.delayedCall(I||.25,()=>{Te._vx.reset(),Te._vy.reset(),ve.pause(),C&&C(Te)}).pause(),Te.deltaX=Te.deltaY=0,Te._vx=A(0,50,!0),Te._vy=A(0,50,!0),Te.scrollX=Ce,Te.scrollY=Ee,Te.isDragging=Te.isGesturing=Te.isPressed=!1,g(this),Te.enable=e=>(Te.isEnabled||(T(Ae?Re:v,"scroll",S),f.indexOf("scroll")>=0&&T(Ae?Re:v,"scroll",Ve,w,he),f.indexOf("wheel")>=0&&T(v,"wheel",Ge,w,he),(f.indexOf("touch")>=0&&n||f.indexOf("pointer")>=0)&&(T(v,h[0],We,w,he),T(Re,h[2],He),T(Re,h[3],He),ge&&T(v,"click",Ie,!1,!0),de&&T(v,"click",$e),oe&&T(Re,"gesturestart",qe),ae&&T(Re,"gestureend",Ue),ee&&T(v,l+"enter",Ke),te&&T(v,l+"leave",Ze),re&&T(v,l+"move",je)),Te.isEnabled=!0,e&&e.type&&We(e),le&&le(Te)),Te),Te.disable=()=>{Te.isEnabled&&(m.filter(e=>e!==Te&&_(e.target)).length||k(Ae?Re:v,"scroll",S),Te.isPressed&&(Te._vx.reset(),Te._vy.reset(),k(se?v:Re,h[1],Fe,!0)),k(Ae?Re:v,"scroll",Ve,he),k(v,"wheel",Ge,he),k(v,h[0],We,he),k(Re,h[2],He),k(Re,h[3],He),k(v,"click",Ie,!0),k(v,"click",$e),k(Re,"gesturestart",qe),k(Re,"gestureend",Ue),k(v,l+"enter",Ke),k(v,l+"leave",Ze),k(v,l+"move",je),Te.isEnabled=Te.isPressed=Te.isDragging=!1,ce&&ce(Te))},Te.kill=Te.revert=()=>{Te.disable();let e=m.indexOf(Te);e>=0&&m.splice(e,1),p===Te&&(p=0)},m.push(Te),se&&_(v)&&(p=Te),Te.enable(L)}get velocityX(){return this._vx.getVelocity()}get velocityY(){return this._vy.getVelocity()}}I.version="3.12.4",I.create=e=>new I(e),I.register=B,I.getAll=()=>m.slice(),I.getById=e=>m.filter(t=>t.vars.id===e)[0],u()&&e.registerPlugin(I);let X,z,L,N,F,W,H,q,U,V,G,j,K,Z,$,J,Q,ee,te,re,ie,se,oe,ae,ne,le,ce,de,pe,he,ge,ue,fe,me,ve,ye,xe,be,we=1,_e=Date.now,Te=_e(),ke=0,Se=0,Ce=(e,t,r)=>{let i=Ne(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=i,i?e.substr(6,e.length-7):e},Ee=(e,t)=>!t||Ne(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")",Pe=()=>Se&&requestAnimationFrame(Pe),Me=()=>Z=1,Oe=()=>Z=0,Ae=e=>e,Re=e=>Math.round(1e5*e)/1e5||0,De=()=>"undefined"!=typeof window,Ye=()=>X||De()&&(X=window.gsap)&&X.registerPlugin&&X,Be=e=>!!~H.indexOf(e),Ie=e=>("Height"===e?ge:L["inner"+e])||F["client"+e]||W["client"+e],Xe=e=>w(e,"getBoundingClientRect")||(Be(e)?()=>(zt.width=L.innerWidth,zt.height=ge,zt):()=>$e(e)),ze=(e,{s:t,d2:r,d:i,a:s})=>Math.max(0,(t="scroll"+r)&&(s=w(e,t))?s()-Xe(e)()[i]:Be(e)?(F[t]||W[t])-Ie(r):e[t]-e["offset"+r]),Le=(e,t)=>{for(let r=0;r<te.length;r+=3)(!t||~t.indexOf(te[r+1]))&&e(te[r],te[r+1],te[r+2])},Ne=e=>"string"==typeof e,Fe=e=>"function"==typeof e,We=e=>"number"==typeof e,He=e=>"object"==typeof e,qe=(e,t,r)=>e&&e.progress(t?0:1)&&r&&e.pause(),Ue=(e,t)=>{if(e.enabled){let r=e._ctx?e._ctx.add(()=>t(e)):t(e);r&&r.totalTime&&(e.callbackAnimation=r)}},Ve=Math.abs,Ge="padding",je="px",Ke=e=>L.getComputedStyle(e),Ze=(e,t)=>{for(let r in t)r in e||(e[r]=t[r]);return e},$e=(e,t)=>{let r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==Ke(e)[$]&&X.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return r&&r.progress(0).kill(),i},Je=(e,{d2:t})=>e["offset"+t]||e["client"+t]||0,Qe=e=>{let t,r=[],i=e.labels,s=e.duration();for(t in i)r.push(i[t]/s);return r},et=e=>{let t=X.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort((e,t)=>e-t);return r?(e,i,s=.001)=>{let o;if(!i)return t(e);if(i>0){for(e-=s,o=0;o<r.length;o++)if(r[o]>=e)return r[o];return r[o-1]}for(o=r.length,e+=s;o--;)if(r[o]<=e)return r[o];return r[0]}:(r,i,s=.001)=>{let o=t(r);return!i||Math.abs(o-r)<s||o-r<0==i<0?o:t(i<0?r-e:r+e)}},tt=(e,t,r,i)=>r.split(",").forEach(r=>e(t,r,i)),rt=(e,t,r,i,s)=>e.addEventListener(t,r,{passive:!i,capture:!!s}),it=(e,t,r,i)=>e.removeEventListener(t,r,!!i),st=(e,t,r)=>{(r=r&&r.wheelHandler)&&(e(t,"wheel",r),e(t,"touchmove",r))},ot={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},at={toggleActions:"play",anticipatePin:0},nt={top:0,left:0,center:.5,bottom:1,right:1},lt=(e,t)=>{if(Ne(e)){let r=e.indexOf("="),i=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(i*=t/100),e=e.substr(0,r-1)),e=i+(e in nt?nt[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},ct=(e,t,r,i,{startColor:s,endColor:o,fontSize:a,indent:n,fontWeight:l},c,d,p)=>{let h=N.createElement("div"),g=Be(r)||"fixed"===w(r,"pinType"),u=-1!==e.indexOf("scroller"),f=g?W:r,m=-1!==e.indexOf("start"),v=m?s:o,y="border-color:"+v+";font-size:"+a+";color:"+v+";font-weight:"+l+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((u||p)&&g?"fixed;":"absolute;"),(u||p||!g)&&(y+=(i===P?"right":"bottom")+":"+(c+parseFloat(n))+"px;"),d&&(y+="box-sizing:border-box;text-align:left;width:"+d.offsetWidth+"px;"),h._isStart=m,h.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),h.style.cssText=y,h.innerText=t||0===t?e+"-"+t:e,f.children[0]?f.insertBefore(h,f.children[0]):f.appendChild(h),h._offset=h["offset"+i.op.d2],dt(h,0,i,m),h},dt=(e,t,r,i)=>{let s={display:"block"},o=r[i?"os2":"p2"],a=r[i?"p2":"os2"];e._isFlipped=i,s[r.a+"Percent"]=i?-100:0,s[r.a]=i?"1px":0,s["border"+o+"Width"]=1,s["border"+a+"Width"]=0,s[r.p]=t+"px",X.set(e,s)},pt=[],ht={},gt=()=>_e()-ke>34&&(ve||(ve=requestAnimationFrame(At))),ut=()=>{(!oe||!oe.isPressed||oe.startX>W.clientWidth)&&(v.cache++,oe?ve||(ve=requestAnimationFrame(At)):At(),ke||bt("scrollStart"),ke=_e())},ft=()=>{le=L.innerWidth,ne=L.innerHeight},mt=()=>{v.cache++,!K&&!se&&!N.fullscreenElement&&!N.webkitFullscreenElement&&(!ae||le!==L.innerWidth||Math.abs(L.innerHeight-ne)>.25*L.innerHeight)&&q.restart(!0)},vt={},yt=[],xt=()=>it(Ut,"scrollEnd",xt)||Pt(!0),bt=e=>vt[e]&&vt[e].map(e=>e())||yt,wt=[],_t=e=>{for(let t=0;t<wt.length;t+=5)(!e||wt[t+4]&&wt[t+4].query===e)&&(wt[t].style.cssText=wt[t+1],wt[t].getBBox&&wt[t].setAttribute("transform",wt[t+2]||""),wt[t+3].uncache=1)},Tt=(e,t)=>{let r;for(J=0;J<pt.length;J++)r=pt[J],!r||t&&r._ctx!==t||(e?r.kill(1):r.revert(!0,!0));ue=!0,t&&_t(t),t||bt("revert")},kt=(e,t)=>{v.cache++,(t||!ye)&&v.forEach(e=>Fe(e)&&e.cacheID++&&(e.rec=0)),Ne(e)&&(L.history.scrollRestoration=pe=e)},St=0,Ct=()=>{W.appendChild(he),ge=!oe&&he.offsetHeight||L.innerHeight,W.removeChild(he)},Et=e=>U(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(t=>t.style.display=e?"none":"block"),Pt=(e,t)=>{if(ke&&!e&&!ue)return void rt(Ut,"scrollEnd",xt);Ct(),ye=Ut.isRefreshing=!0,v.forEach(e=>Fe(e)&&++e.cacheID&&(e.rec=e()));let r=bt("refreshInit");re&&Ut.sort(),t||Tt(),v.forEach(e=>{Fe(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),pt.slice(0).forEach(e=>e.refresh()),ue=!1,pt.forEach(e=>{if(e._subPinOffset&&e.pin){let t=e.vars.horizontal?"offsetWidth":"offsetHeight",r=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-r),e.refresh()}}),fe=1,Et(!0),pt.forEach(e=>{let t=ze(e.scroller,e._dir),r="max"===e.vars.end||e._endClamp&&e.end>t,i=e._startClamp&&e.start>=t;(r||i)&&e.setPositions(i?t-1:e.start,r?Math.max(i?t:e.start+1,t):e.end,!0)}),Et(!1),fe=0,r.forEach(e=>e&&e.render&&e.render(-1)),v.forEach(e=>{Fe(e)&&(e.smooth&&requestAnimationFrame(()=>e.target.style.scrollBehavior="smooth"),e.rec&&e(e.rec))}),kt(pe,1),q.pause(),St++,ye=2,At(2),pt.forEach(e=>Fe(e.vars.onRefresh)&&e.vars.onRefresh(e)),ye=Ut.isRefreshing=!1,bt("refresh")},Mt=0,Ot=1,At=e=>{if(2===e||!ye&&!ue){Ut.isUpdating=!0,be&&be.update(0);let e=pt.length,t=_e(),r=t-Te>=50,i=e&&pt[0].scroll();if(Ot=Mt>i?-1:1,ye||(Mt=i),r&&(ke&&!Z&&t-ke>200&&(ke=0,bt("scrollEnd")),G=Te,Te=t),Ot<0){for(J=e;J-- >0;)pt[J]&&pt[J].update(0,r);Ot=1}else for(J=0;J<e;J++)pt[J]&&pt[J].update(0,r);Ut.isUpdating=!1}ve=0},Rt=["left","top","bottom","right","marginBottom","marginRight","marginTop","marginLeft","display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Dt=Rt.concat(["width","height","boxSizing","maxWidth","maxHeight","position","margin",Ge,"paddingTop","paddingRight","paddingBottom","paddingLeft"]),Yt=(e,t,r,i)=>{if(!e._gsap.swappedIn){let s,o=Rt.length,a=t.style,n=e.style;for(;o--;)s=Rt[o],a[s]=r[s];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),n.bottom=n.right="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a.width=Je(e,E)+je,a.height=Je(e,P)+je,a.padding=n.margin=n.top=n.left="0",It(i),n.width=n.maxWidth=r.width,n.height=n.maxHeight=r.height,n.padding=r.padding,e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},Bt=/([A-Z])/g,It=e=>{if(e){let t,r,i=e.t.style,s=e.length,o=0;for((e.t._gsap||X.core.getCache(e.t)).uncache=1;o<s;o+=2)r=e[o+1],t=e[o],r?i[t]=r:i[t]&&i.removeProperty(t.replace(Bt,"-$1").toLowerCase())}},Xt=e=>{let t=Dt.length,r=e.style,i=[],s=0;for(;s<t;s++)i.push(Dt[s],r[Dt[s]]);return i.t=e,i},zt={left:0,top:0},Lt=(e,t,r,i,s,o,a,n,l,c,d,p,h,g)=>{Fe(e)&&(e=e(n)),Ne(e)&&"max"===e.substr(0,3)&&(e=p+("="===e.charAt(4)?lt("0"+e.substr(3),r):0));let u,f,m,v=h?h.time():0;if(h&&h.seek(0),isNaN(e)||(e=+e),We(e))h&&(e=X.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,p,e)),a&&dt(a,r,i,!0);else{Fe(t)&&(t=t(n));let o,d,p,h,g=(e||"0").split(" ");m=M(t,n)||W,o=$e(m)||{},o&&(o.left||o.top)||"none"!==Ke(m).display||(h=m.style.display,m.style.display="block",o=$e(m),h?m.style.display=h:m.style.removeProperty("display")),d=lt(g[0],o[i.d]),p=lt(g[1]||"0",r),e=o[i.p]-l[i.p]-c+d+s-p,a&&dt(a,p,i,r-p<20||a._isStart&&p>20),r-=r-p}if(g&&(n[g]=e||-.001,e<0&&(e=0)),o){let t=e+r,s=o._isStart;u="scroll"+i.d2,dt(o,t,i,s&&t>20||!s&&(d?Math.max(W[u],F[u]):o.parentNode[u])<=t+1),d&&(l=$e(a),d&&(o.style[i.op.p]=l[i.op.p]-i.op.m-o._offset+je))}return h&&m&&(u=$e(m),h.seek(p),f=$e(m),h._caScrollDist=u[i.p]-f[i.p],e=e/h._caScrollDist*p),h&&h.seek(v),h?e:Math.round(e)},Nt=/(webkit|moz|length|cssText|inset)/i,Ft=(e,t,r,i)=>{if(e.parentNode!==t){let s,o,a=e.style;if(t===W){for(s in e._stOrig=a.cssText,o=Ke(e),o)+s||Nt.test(s)||!o[s]||"string"!=typeof a[s]||"0"===s||(a[s]=o[s]);a.top=r,a.left=i}else a.cssText=e._stOrig;X.core.getCache(e).uncache=1,t.appendChild(e)}},Wt=(e,t,r)=>{let i=t,s=i;return t=>{let o=Math.round(e());return o!==i&&o!==s&&Math.abs(o-i)>3&&Math.abs(o-s)>3&&(t=o,r&&r()),s=i,i=t,t}},Ht=(e,t,r)=>{let i={};i[t.p]="+="+r,X.set(e,i)},qt=(e,t)=>{let r=O(e,t),i="_scroll"+t.p2,s=(t,o,a,n,l)=>{let c=s.tween,d=o.onComplete,p={};a=a||r();let h=Wt(r,a,()=>{c.kill(),s.tween=0});return l=n&&l||0,n=n||t-a,c&&c.kill(),o[i]=t,o.modifiers=p,p[i]=()=>h(a+n*c.ratio+l*c.ratio*c.ratio),o.onUpdate=()=>{v.cache++,s.tween&&At()},o.onComplete=()=>{s.tween=0,d&&d.call(c)},c=s.tween=X.to(e,o),c};return e[i]=r,r.wheelHandler=()=>s.tween&&s.tween.kill()&&(s.tween=0),rt(e,"wheel",r.wheelHandler),Ut.isTouch&&rt(e,"touchmove",r.wheelHandler),s};class Ut{constructor(e,t){z||Ut.register(X)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),de(this),this.init(e,t)}init(e,t){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Se)return void(this.update=this.refresh=this.kill=Ae);e=Ze(Ne(e)||We(e)||e.nodeType?{trigger:e}:e,at);let r,i,s,o,a,n,l,c,d,p,h,g,u,f,m,x,b,_,T,k,S,C,A,R,D,Y,B,I,z,H,q,j,$,Q,ee,te,se,oe,ae,{onUpdate:ne,toggleClass:le,id:ce,onToggle:de,onRefresh:pe,scrub:he,trigger:ge,pin:ue,pinSpacing:ve,invalidateOnRefresh:Te,anticipatePin:Pe,onScrubComplete:Me,onSnapComplete:Oe,once:De,snap:Ye,pinReparent:Le,pinSpacer:tt,containerAnimation:st,fastScrollEnd:nt,preventOverlaps:dt}=e,gt=e.horizontal||e.containerAnimation&&!1!==e.horizontal?E:P,ft=!he&&0!==he,vt=M(e.scroller||L),yt=X.core.getCache(vt),bt=Be(vt),wt="fixed"===("pinType"in e?e.pinType:w(vt,"pinType")||bt&&"fixed"),_t=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],Tt=ft&&e.toggleActions.split(" "),kt="markers"in e?e.markers:at.markers,Ct=bt?0:parseFloat(Ke(vt)["border"+gt.p2+"Width"])||0,Et=this,Mt=e.onRefreshInit&&(()=>e.onRefreshInit(Et)),At=((e,t,{d:r,d2:i,a:s})=>(s=w(e,"getBoundingClientRect"))?()=>s()[r]:()=>(t?Ie(i):e["client"+i])||0)(vt,bt,gt),Rt=((e,t)=>!t||~y.indexOf(e)?Xe(e):()=>zt)(vt,bt),Dt=0,Bt=0,Nt=0,Wt=O(vt,gt);var Vt;if(Et._startClamp=Et._endClamp=!1,Et._dir=gt,Pe*=45,Et.scroller=vt,Et.scroll=st?st.time.bind(st):Wt,o=Wt(),Et.vars=e,t=t||e.animation,"refreshPriority"in e&&(re=1,-9999===e.refreshPriority&&(be=Et)),yt.tweenScroll=yt.tweenScroll||{top:qt(vt,P),left:qt(vt,E)},Et.tweenTo=r=yt.tweenScroll[gt.p],Et.scrubDuration=e=>{$=We(e)&&e,$?j?j.duration(e):j=X.to(t,{ease:"expo",totalProgress:"+=0",duration:$,paused:!0,onComplete:()=>Me&&Me(Et)}):(j&&j.progress(1).kill(),j=0)},t&&(t.vars.lazy=!1,t._initted&&!Et.isReverted||!1!==t.vars.immediateRender&&!1!==e.immediateRender&&t.duration()&&t.render(0,!0,!0),Et.animation=t.pause(),t.scrollTrigger=Et,Et.scrubDuration(he),H=0,ce||(ce=t.vars.id)),Ye&&(He(Ye)&&!Ye.push||(Ye={snapTo:Ye}),"scrollBehavior"in W.style&&X.set(bt?[W,F]:vt,{scrollBehavior:"auto"}),v.forEach(e=>Fe(e)&&e.target===(bt?N.scrollingElement||F:vt)&&(e.smooth=!1)),s=Fe(Ye.snapTo)?Ye.snapTo:"labels"===Ye.snapTo?(e=>t=>X.utils.snap(Qe(e),t))(t):"labelsDirectional"===Ye.snapTo?(Vt=t,(e,t)=>et(Qe(Vt))(e,t.direction)):!1!==Ye.directional?(e,t)=>et(Ye.snapTo)(e,_e()-Bt<500?0:t.direction):X.utils.snap(Ye.snapTo),Q=Ye.duration||{min:.1,max:2},Q=He(Q)?V(Q.min,Q.max):V(Q,Q),ee=X.delayedCall(Ye.delay||$/2||.1,()=>{let e=Wt(),i=_e()-Bt<500,o=r.tween;if(!(i||Math.abs(Et.getVelocity())<10)||o||Z||Dt===e)Et.isActive&&Dt!==e&&ee.restart(!0);else{let a=(e-n)/f,c=t&&!ft?t.totalProgress():a,d=i?0:(c-q)/(_e()-G)*1e3||0,p=X.utils.clamp(-a,1-a,Ve(d/2)*d/.185),h=a+(!1===Ye.inertia?0:p),g=V(0,1,s(h,Et)),u=Math.round(n+g*f),{onStart:m,onInterrupt:v,onComplete:y}=Ye;if(e<=l&&e>=n&&u!==e){if(o&&!o._initted&&o.data<=Ve(u-e))return;!1===Ye.inertia&&(p=g-a),r(u,{duration:Q(Ve(.185*Math.max(Ve(h-c),Ve(g-c))/d/.05||0)),ease:Ye.ease||"power3",data:Ve(u-e),onInterrupt:()=>ee.restart(!0)&&v&&v(Et),onComplete:()=>{Et.update(),Dt=Wt(),j&&t&&t.progress(g),H=q=t&&!ft?t.totalProgress():Et.progress,Oe&&Oe(Et),y&&y(Et)}},e,p*f,u-e-p*f),m&&m(Et,r.tween)}}}).pause()),ce&&(ht[ce]=Et),ge=Et.trigger=M(ge||!0!==ue&&ue),ae=ge&&ge._gsap&&ge._gsap.stRevert,ae&&(ae=ae(Et)),ue=!0===ue?ge:M(ue),Ne(le)&&(le={targets:ge,className:le}),ue&&(!1===ve||"margin"===ve||(ve=!(!ve&&ue.parentNode&&ue.parentNode.style&&"flex"===Ke(ue.parentNode).display)&&Ge),Et.pin=ue,i=X.core.getCache(ue),i.spacer?m=i.pinState:(tt&&(tt=M(tt),tt&&!tt.nodeType&&(tt=tt.current||tt.nativeElement),i.spacerIsNative=!!tt,tt&&(i.spacerState=Xt(tt))),i.spacer=_=tt||N.createElement("div"),_.classList.add("pin-spacer"),ce&&_.classList.add("pin-spacer-"+ce),i.pinState=m=Xt(ue)),!1!==e.force3D&&X.set(ue,{force3D:!0}),Et.spacer=_=i.spacer,z=Ke(ue),R=z[ve+gt.os2],k=X.getProperty(ue),S=X.quickSetter(ue,gt.a,je),Yt(ue,_,z),b=Xt(ue)),kt){g=He(kt)?Ze(kt,ot):ot,p=ct("scroller-start",ce,vt,gt,g,0),h=ct("scroller-end",ce,vt,gt,g,0,p),T=p["offset"+gt.op.d2];let e=M(w(vt,"content")||vt);c=this.markerStart=ct("start",ce,e,gt,g,T,0,st),d=this.markerEnd=ct("end",ce,e,gt,g,T,0,st),st&&(oe=X.quickSetter([c,d],gt.a,je)),wt||y.length&&!0===w(vt,"fixedMarkers")||((e=>{let t=Ke(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"})(bt?W:vt),X.set([p,h],{force3D:!0}),Y=X.quickSetter(p,gt.a,je),I=X.quickSetter(h,gt.a,je))}if(st){let e=st.vars.onUpdate,t=st.vars.onUpdateParams;st.eventCallback("onUpdate",()=>{Et.update(0,0,1),e&&e.apply(st,t||[])})}if(Et.previous=()=>pt[pt.indexOf(Et)-1],Et.next=()=>pt[pt.indexOf(Et)+1],Et.revert=(e,r)=>{if(!r)return Et.kill(!0);let i=!1!==e||!Et.enabled,s=K;i!==Et.isReverted&&(i&&(te=Math.max(Wt(),Et.scroll.rec||0),Nt=Et.progress,se=t&&t.progress()),c&&[c,d,p,h].forEach(e=>e.style.display=i?"none":"block"),i&&(K=Et,Et.update(i)),!ue||Le&&Et.isActive||(i?((e,t,r)=>{It(r);let i=e._gsap;if(i.spacerIsNative)It(i.spacerState);else if(e._gsap.swappedIn){let r=t.parentNode;r&&(r.insertBefore(e,t),r.removeChild(t))}e._gsap.swappedIn=!1})(ue,_,m):Yt(ue,_,Ke(ue),D)),i||Et.update(i),K=s,Et.isReverted=i)},Et.refresh=(i,s,g,v)=>{if((K||!Et.enabled)&&!s)return;if(ue&&i&&ke)return void rt(Ut,"scrollEnd",xt);!ye&&Mt&&Mt(Et),K=Et,r.tween&&!g&&(r.tween.kill(),r.tween=0),j&&j.pause(),Te&&t&&t.revert({kill:!1}).invalidate(),Et.isReverted||Et.revert(!0,!0),Et._subPinOffset=!1;let y,w,T,S,R,Y,I,z,L,H,q,U,V,G=At(),Z=Rt(),$=st?st.duration():ze(vt,gt),J=f<=.01,Q=0,re=v||0,oe=He(g)?g.end:e.end,ae=e.endTrigger||ge,ne=He(g)?g.start:e.start||(0!==e.start&&ge?ue?"0 0":"0 100%":0),le=Et.pinnedContainer=e.pinnedContainer&&M(e.pinnedContainer,Et),ce=ge&&Math.max(0,pt.indexOf(Et))||0,de=ce;for(kt&&He(g)&&(U=X.getProperty(p,gt.p),V=X.getProperty(h,gt.p));de--;)Y=pt[de],Y.end||Y.refresh(0,1)||(K=Et),I=Y.pin,!I||I!==ge&&I!==ue&&I!==le||Y.isReverted||(H||(H=[]),H.unshift(Y),Y.revert(!0,!0)),Y!==pt[de]&&(ce--,de--);for(Fe(ne)&&(ne=ne(Et)),ne=Ce(ne,"start",Et),n=Lt(ne,ge,G,gt,Wt(),c,p,Et,Z,Ct,wt,$,st,Et._startClamp&&"_startClamp")||(ue?-.001:0),Fe(oe)&&(oe=oe(Et)),Ne(oe)&&!oe.indexOf("+=")&&(~oe.indexOf(" ")?oe=(Ne(ne)?ne.split(" ")[0]:"")+oe:(Q=lt(oe.substr(2),G),oe=Ne(ne)?ne:(st?X.utils.mapRange(0,st.duration(),st.scrollTrigger.start,st.scrollTrigger.end,n):n)+Q,ae=ge)),oe=Ce(oe,"end",Et),l=Math.max(n,Lt(oe||(ae?"100% 0":$),ae,G,gt,Wt()+Q,d,h,Et,Z,Ct,wt,$,st,Et._endClamp&&"_endClamp"))||-.001,Q=0,de=ce;de--;)Y=pt[de],I=Y.pin,I&&Y.start-Y._pinPush<=n&&!st&&Y.end>0&&(y=Y.end-(Et._startClamp?Math.max(0,Y.start):Y.start),(I===ge&&Y.start-Y._pinPush<n||I===le)&&isNaN(ne)&&(Q+=y*(1-Y.progress)),I===ue&&(re+=y));if(n+=Q,l+=Q,Et._startClamp&&(Et._startClamp+=Q),Et._endClamp&&!ye&&(Et._endClamp=l||-.001,l=Math.min(l,ze(vt,gt))),f=l-n||(n-=.01)&&.001,J&&(Nt=X.utils.clamp(0,1,X.utils.normalize(n,l,te))),Et._pinPush=re,c&&Q&&(y={},y[gt.a]="+="+Q,le&&(y[gt.p]="-="+Wt()),X.set([c,d],y)),!ue||fe&&Et.end>=ze(vt,gt)){if(ge&&Wt()&&!st)for(w=ge.parentNode;w&&w!==W;)w._pinOffset&&(n-=w._pinOffset,l-=w._pinOffset),w=w.parentNode}else y=Ke(ue),S=gt===P,T=Wt(),C=parseFloat(k(gt.a))+re,!$&&l>1&&(q=(bt?N.scrollingElement||F:vt).style,q={style:q,value:q["overflow"+gt.a.toUpperCase()]},bt&&"scroll"!==Ke(W)["overflow"+gt.a.toUpperCase()]&&(q.style["overflow"+gt.a.toUpperCase()]="scroll")),Yt(ue,_,y),b=Xt(ue),w=$e(ue,!0),z=wt&&O(vt,S?E:P)(),ve&&(D=[ve+gt.os2,f+re+je],D.t=_,de=ve===Ge?Je(ue,gt)+f+re:0,de&&(D.push(gt.d,de+je),"auto"!==_.style.flexBasis&&(_.style.flexBasis=de+je)),It(D),le&&pt.forEach(e=>{e.pin===le&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),wt&&Wt(te)),wt&&(R={top:w.top+(S?T-n:z)+je,left:w.left+(S?z:T-n)+je,boxSizing:"border-box",position:"fixed"},R.width=R.maxWidth=Math.ceil(w.width)+je,R.height=R.maxHeight=Math.ceil(w.height)+je,R.margin=R.marginTop=R.marginRight=R.marginBottom=R.marginLeft="0",R.padding=y.padding,R.paddingTop=y.paddingTop,R.paddingRight=y.paddingRight,R.paddingBottom=y.paddingBottom,R.paddingLeft=y.paddingLeft,x=((e,t,r)=>{let i,s=[],o=e.length,a=r?8:0;for(;a<o;a+=2)i=e[a],s.push(i,i in t?t[i]:e[a+1]);return s.t=e.t,s})(m,R,Le),ye&&Wt(0)),t?(L=t._initted,ie(1),t.render(t.duration(),!0,!0),A=k(gt.a)-C+f+re,B=Math.abs(f-A)>1,wt&&B&&x.splice(x.length-2,2),t.render(0,!0,!0),L||t.invalidate(!0),t.parent||t.totalTime(t.totalTime()),ie(0)):A=f,q&&(q.value?q.style["overflow"+gt.a.toUpperCase()]=q.value:q.style.removeProperty("overflow-"+gt.a));H&&H.forEach(e=>e.revert(!1,!0)),Et.start=n,Et.end=l,o=a=ye?te:Wt(),st||ye||(o<te&&Wt(te),Et.scroll.rec=0),Et.revert(!1,!0),Bt=_e(),ee&&(Dt=-1,ee.restart(!0)),K=0,t&&ft&&(t._initted||se)&&t.progress()!==se&&t.progress(se||0,!0).render(t.time(),!0,!0),(J||Nt!==Et.progress||st)&&(t&&!ft&&t.totalProgress(st&&n<-.001&&!Nt?X.utils.normalize(n,l,0):Nt,!0),Et.progress=J||(o-n)/f===Nt?0:Nt),ue&&ve&&(_._pinOffset=Math.round(Et.progress*A)),j&&j.invalidate(),isNaN(U)||(U-=X.getProperty(p,gt.p),V-=X.getProperty(h,gt.p),Ht(p,gt,U),Ht(c,gt,U-(v||0)),Ht(h,gt,V),Ht(d,gt,V-(v||0))),J&&!ye&&Et.update(),!pe||ye||u||(u=!0,pe(Et),u=!1)},Et.getVelocity=()=>(Wt()-a)/(_e()-G)*1e3||0,Et.endAnimation=()=>{qe(Et.callbackAnimation),t&&(j?j.progress(1):t.paused()?ft||qe(t,Et.direction<0,1):qe(t,t.reversed()))},Et.labelToScroll=e=>t&&t.labels&&(n||Et.refresh()||n)+t.labels[e]/t.duration()*f||0,Et.getTrailing=e=>{let t=pt.indexOf(Et),r=Et.direction>0?pt.slice(0,t).reverse():pt.slice(t+1);return(Ne(e)?r.filter(t=>t.vars.preventOverlaps===e):r).filter(e=>Et.direction>0?e.end<=n:e.start>=l)},Et.update=(e,i,s)=>{if(st&&!s&&!e)return;let c,d,h,g,u,m,v,y,w=!0===ye?te:Et.scroll(),T=e?0:(w-n)/f,k=T<0?0:T>1?1:T||0,E=Et.progress;if(i&&(a=o,o=st?Wt():w,Ye&&(q=H,H=t&&!ft?t.totalProgress():k)),Pe&&!k&&ue&&!K&&!we&&ke&&n<w+(w-a)/(_e()-G)*Pe&&(k=1e-4),k!==E&&Et.enabled){if(c=Et.isActive=!!k&&k<1,d=!!E&&E<1,m=c!==d,u=m||!!k!=!!E,Et.direction=k>E?1:-1,Et.progress=k,u&&!K&&(h=k&&!E?0:1===k?1:1===E?2:3,ft&&(g=!m&&"none"!==Tt[h+1]&&Tt[h+1]||Tt[h],y=t&&("complete"===g||"reset"===g||g in t))),dt&&(m||y)&&(y||he||!t)&&(Fe(dt)?dt(Et):Et.getTrailing(dt).forEach(e=>e.endAnimation())),ft||(!j||K||we?t&&t.totalProgress(k,!(!K||!Bt&&!e)):(j._dp._time-j._start!==j._time&&j.render(j._dp._time-j._start),j.resetTo?j.resetTo("totalProgress",k,t._tTime/t._tDur):(j.vars.totalProgress=k,j.invalidate().restart()))),ue)if(e&&ve&&(_.style[ve+gt.os2]=R),wt){if(u){if(v=!e&&k>E&&l+1>w&&w+1>=ze(vt,gt),Le)if(e||!c&&!v)Ft(ue,_);else{let e=$e(ue,!0),t=w-n;Ft(ue,W,e.top+(gt===P?t:0)+je,e.left+(gt===P?0:t)+je)}It(c||v?x:b),B&&k<1&&c||S(C+(1!==k||v?0:A))}}else S(Re(C+A*k));Ye&&!r.tween&&!K&&!we&&ee.restart(!0),le&&(m||De&&k&&(k<1||!me))&&U(le.targets).forEach(e=>e.classList[c||De?"add":"remove"](le.className)),ne&&!ft&&!e&&ne(Et),u&&!K?(ft&&(y&&("complete"===g?t.pause().totalProgress(1):"reset"===g?t.restart(!0).pause():"restart"===g?t.restart(!0):t[g]()),ne&&ne(Et)),!m&&me||(de&&m&&Ue(Et,de),_t[h]&&Ue(Et,_t[h]),De&&(1===k?Et.kill(!1,1):_t[h]=0),m||(h=1===k?1:3,_t[h]&&Ue(Et,_t[h]))),nt&&!c&&Math.abs(Et.getVelocity())>(We(nt)?nt:2500)&&(qe(Et.callbackAnimation),j?j.progress(1):qe(t,"reverse"===g?1:!k,1))):ft&&ne&&!K&&ne(Et)}if(I){let e=st?w/st.duration()*(st._caScrollDist||0):w;Y(e+(p._isFlipped?1:0)),I(e)}oe&&oe(-w/st.duration()*(st._caScrollDist||0))},Et.enable=(e,t)=>{Et.enabled||(Et.enabled=!0,rt(vt,"resize",mt),bt||rt(vt,"scroll",ut),Mt&&rt(Ut,"refreshInit",Mt),!1!==e&&(Et.progress=Nt=0,o=a=Dt=Wt()),!1!==t&&Et.refresh())},Et.getTween=e=>e&&r?r.tween:j,Et.setPositions=(e,t,r,i)=>{if(st){let r=st.scrollTrigger,i=st.duration(),s=r.end-r.start;e=r.start+s*e/i,t=r.start+s*t/i}Et.refresh(!1,!1,{start:Ee(e,r&&!!Et._startClamp),end:Ee(t,r&&!!Et._endClamp)},i),Et.update()},Et.adjustPinSpacing=e=>{if(D&&e){let t=D.indexOf(gt.d)+1;D[t]=parseFloat(D[t])+e+je,D[1]=parseFloat(D[1])+e+je,It(D)}},Et.disable=(e,t)=>{if(Et.enabled&&(!1!==e&&Et.revert(!0,!0),Et.enabled=Et.isActive=!1,t||j&&j.pause(),te=0,i&&(i.uncache=1),Mt&&it(Ut,"refreshInit",Mt),ee&&(ee.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!bt)){let e=pt.length;for(;e--;)if(pt[e].scroller===vt&&pt[e]!==Et)return;it(vt,"resize",mt),bt||it(vt,"scroll",ut)}},Et.kill=(r,s)=>{Et.disable(r,s),j&&!s&&j.kill(),ce&&delete ht[ce];let o=pt.indexOf(Et);o>=0&&pt.splice(o,1),o===J&&Ot>0&&J--,o=0,pt.forEach(e=>e.scroller===Et.scroller&&(o=1)),o||ye||(Et.scroll.rec=0),t&&(t.scrollTrigger=null,r&&t.revert({kill:!1}),s||t.kill()),c&&[c,d,p,h].forEach(e=>e.parentNode&&e.parentNode.removeChild(e)),be===Et&&(be=0),ue&&(i&&(i.uncache=1),o=0,pt.forEach(e=>e.pin===ue&&o++),o||(i.spacer=0)),e.onKill&&e.onKill(Et)},pt.push(Et),Et.enable(!1,!1),ae&&ae(Et),t&&t.add&&!f){let e=Et.update;Et.update=()=>{Et.update=e,n||l||Et.refresh()},X.delayedCall(.01,Et.update),f=.01,n=l=0}else Et.refresh();ue&&(()=>{if(xe!==St){let e=xe=St;requestAnimationFrame(()=>e===St&&Pt(!0))}})()}static register(e){return z||(X=e||Ye(),De()&&window.document&&Ut.enable(),z=Se),z}static defaults(e){if(e)for(let t in e)at[t]=e[t];return at}static disable(e,t){Se=0,pt.forEach(r=>r[t?"kill":"disable"](e)),it(L,"wheel",ut),it(N,"scroll",ut),clearInterval(j),it(N,"touchcancel",Ae),it(W,"touchstart",Ae),tt(it,N,"pointerdown,touchstart,mousedown",Me),tt(it,N,"pointerup,touchend,mouseup",Oe),q.kill(),Le(it);for(let e=0;e<v.length;e+=3)st(it,v[e],v[e+1]),st(it,v[e],v[e+2])}static enable(){if(L=window,N=document,F=N.documentElement,W=N.body,X&&(U=X.utils.toArray,V=X.utils.clamp,de=X.core.context||Ae,ie=X.core.suppressOverwrites||Ae,pe=L.history.scrollRestoration||"auto",Mt=L.pageYOffset,X.core.globals("ScrollTrigger",Ut),W)){Se=1,he=document.createElement("div"),he.style.height="100vh",he.style.position="absolute",Ct(),Pe(),I.register(X),Ut.isTouch=I.isTouch,ce=I.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),rt(L,"wheel",ut),H=[L,N,F,W],X.matchMedia?(Ut.matchMedia=e=>{let t,r=X.matchMedia();for(t in e)r.add(t,e[t]);return r},X.addEventListener("matchMediaInit",()=>Tt()),X.addEventListener("matchMediaRevert",()=>_t()),X.addEventListener("matchMedia",()=>{Pt(0,1),bt("matchMedia")}),X.matchMedia("(orientation: portrait)",()=>(ft(),ft))):console.warn("Requires GSAP 3.11.0 or later"),ft(),rt(N,"scroll",ut);let e,t,r=W.style,i=r.borderTopStyle,s=X.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",e=$e(W),P.m=Math.round(e.top+P.sc())||0,E.m=Math.round(e.left+E.sc())||0,i?r.borderTopStyle=i:r.removeProperty("border-top-style"),j=setInterval(gt,250),X.delayedCall(.5,()=>we=0),rt(N,"touchcancel",Ae),rt(W,"touchstart",Ae),tt(rt,N,"pointerdown,touchstart,mousedown",Me),tt(rt,N,"pointerup,touchend,mouseup",Oe),$=X.utils.checkPrefix("transform"),Dt.push($),z=_e(),q=X.delayedCall(.2,Pt).pause(),te=[N,"visibilitychange",()=>{let e=L.innerWidth,t=L.innerHeight;N.hidden?(Q=e,ee=t):Q===e&&ee===t||mt()},N,"DOMContentLoaded",Pt,L,"load",Pt,L,"resize",mt],Le(rt),pt.forEach(e=>e.enable(0,1)),t=0;t<v.length;t+=3)st(it,v[t],v[t+1]),st(it,v[t],v[t+2])}}static config(e){"limitCallbacks"in e&&(me=!!e.limitCallbacks);let t=e.syncInterval;t&&clearInterval(j)||(j=t)&&setInterval(gt,t),"ignoreMobileResize"in e&&(ae=1===Ut.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Le(it)||Le(rt,e.autoRefreshEvents||"none"),se=-1===(e.autoRefreshEvents+"").indexOf("resize"))}static scrollerProxy(e,t){let r=M(e),i=v.indexOf(r),s=Be(r);~i&&v.splice(i,s?6:2),t&&(s?y.unshift(L,t,W,t,F,t):y.unshift(r,t))}static clearMatchMedia(e){pt.forEach(t=>t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0))}static isInViewport(e,t,r){let i=(Ne(e)?M(e):e).getBoundingClientRect(),s=i[r?"width":"height"]*t||0;return r?i.right-s>0&&i.left+s<L.innerWidth:i.bottom-s>0&&i.top+s<L.innerHeight}static positionInViewport(e,t,r){Ne(e)&&(e=M(e));let i=e.getBoundingClientRect(),s=i[r?"width":"height"],o=null==t?s/2:t in nt?nt[t]*s:~t.indexOf("%")?parseFloat(t)*s/100:parseFloat(t)||0;return r?(i.left+o)/L.innerWidth:(i.top+o)/L.innerHeight}static killAll(e){if(pt.slice(0).forEach(e=>"ScrollSmoother"!==e.vars.id&&e.kill()),!0!==e){let e=vt.killAll||[];vt={},e.forEach(e=>e())}}}Ut.version="3.12.4",Ut.saveStyles=e=>e?U(e).forEach(e=>{if(e&&e.style){let t=wt.indexOf(e);t>=0&&wt.splice(t,5),wt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),X.core.getCache(e),de())}}):wt,Ut.revert=(e,t)=>Tt(!e,t),Ut.create=(e,t)=>new Ut(e,t),Ut.refresh=e=>e?mt():(z||Ut.register())&&Pt(!0),Ut.update=e=>++v.cache&&At(!0===e?2:0),Ut.clearScrollMemory=kt,Ut.maxScroll=(e,t)=>ze(e,t?E:P),Ut.getScrollFunc=(e,t)=>O(M(e),t?E:P),Ut.getById=e=>ht[e],Ut.getAll=()=>pt.filter(e=>"ScrollSmoother"!==e.vars.id),Ut.isScrolling=()=>!!ke,Ut.snapDirectional=et,Ut.addEventListener=(e,t)=>{let r=vt[e]||(vt[e]=[]);~r.indexOf(t)||r.push(t)},Ut.removeEventListener=(e,t)=>{let r=vt[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},Ut.batch=(e,t)=>{let r,i=[],s={},o=t.interval||.016,a=t.batchMax||1e9,n=(e,t)=>{let r=[],i=[],s=X.delayedCall(o,()=>{t(r,i),r=[],i=[]}).pause();return e=>{r.length||s.restart(!0),r.push(e.trigger),i.push(e),a<=r.length&&s.progress(1)}};for(r in t)s[r]="on"===r.substr(0,2)&&Fe(t[r])&&"onRefreshInit"!==r?n(0,t[r]):t[r];return Fe(a)&&(a=a(),rt(Ut,"refresh",()=>a=t.batchMax())),U(e).forEach(e=>{let t={};for(r in s)t[r]=s[r];t.trigger=e,i.push(Ut.create(t))}),i};let Vt,Gt=(e,t,r,i)=>(t>i?e(i):t<0&&e(0),r>i?(i-t)/(r-t):r<0?t/(t-r):1),jt=(e,t)=>{!0===t?e.style.removeProperty("touch-action"):e.style.touchAction=!0===t?"auto":t?"pan-"+t+(I.isTouch?" pinch-zoom":""):"none",e===F&&jt(W,t)},Kt={auto:1,scroll:1},Zt=({event:e,target:t,axis:r})=>{let i,s=(e.changedTouches?e.changedTouches[0]:e).target,o=s._gsap||X.core.getCache(s),a=_e();if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==W&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!Kt[(i=Ke(s)).overflowY]&&!Kt[i.overflowX]);)s=s.parentNode;o._isScroll=s&&s!==t&&!Be(s)&&(Kt[(i=Ke(s)).overflowY]||Kt[i.overflowX]),o._isScrollT=a}(o._isScroll||"x"===r)&&(e.stopPropagation(),e._gsapAllow=!0)},$t=(e,t,r,i)=>I.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:i=i&&Zt,onPress:i,onDrag:i,onScroll:i,onEnable:()=>r&&rt(N,I.eventTypes[0],Qt,!1,!0),onDisable:()=>it(N,I.eventTypes[0],Qt,!0)}),Jt=/(input|label|select|textarea)/i,Qt=e=>{let t=Jt.test(e.target.tagName);(t||Vt)&&(e._gsapAllow=!0,Vt=t)},er=e=>{He(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";let t,r,i,s,o,a,n,l,{normalizeScrollX:c,momentum:d,allowNestedScroll:p,onRelease:h}=e,g=M(e.target)||F,u=X.core.globals().ScrollSmoother,f=u&&u.get(),m=ce&&(e.content&&M(e.content)||f&&!1!==e.content&&!f.smooth()&&f.content()),y=O(g,P),x=O(g,E),b=1,w=(I.isTouch&&L.visualViewport?L.visualViewport.scale*L.visualViewport.width:L.outerWidth)/L.innerWidth,_=0,T=Fe(d)?()=>d(t):()=>d||2.8,k=$t(g,e.type,!0,p),S=()=>s=!1,C=Ae,A=Ae,R=()=>{r=ze(g,P),A=V(ce?1:0,r),c&&(C=V(0,ze(g,E))),i=St},D=()=>{m._gsap.y=Re(parseFloat(m._gsap.y)+y.offset)+"px",m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(m._gsap.y)+", 0, 1)",y.offset=y.cacheID=0},Y=()=>{R(),o.isActive()&&o.vars.scrollY>r&&(y()>r?o.progress(1)&&y(r):o.resetTo("scrollY",r))};return m&&X.set(m,{y:"+=0"}),e.ignoreCheck=e=>ce&&"touchmove"===e.type&&(()=>{if(s){requestAnimationFrame(S);let e=Re(t.deltaY/2),r=A(y.v-e);if(m&&r!==y.v+y.offset){y.offset=r-y.v;let e=Re((parseFloat(m&&m._gsap.y)||0)-y.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+e+", 0, 1)",m._gsap.y=e+"px",y.cacheID=v.cache,At()}return!0}y.offset&&D(),s=!0})()||b>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1,e.onPress=()=>{s=!1;let e=b;b=Re((L.visualViewport&&L.visualViewport.scale||1)/w),o.pause(),e!==b&&jt(g,b>1.01||!c&&"x"),a=x(),n=y(),R(),i=St},e.onRelease=e.onGestureStart=(e,t)=>{if(y.offset&&D(),t){v.cache++;let t,i,s=T();c&&(t=x(),i=t+.05*s*-e.velocityX/.227,s*=Gt(x,t,i,ze(g,E)),o.vars.scrollX=C(i)),t=y(),i=t+.05*s*-e.velocityY/.227,s*=Gt(y,t,i,ze(g,P)),o.vars.scrollY=A(i),o.invalidate().duration(s).play(.01),(ce&&o.vars.scrollY>=r||t>=r-1)&&X.to({},{onUpdate:Y,duration:s})}else l.restart(!0);h&&h(e)},e.onWheel=()=>{o._ts&&o.pause(),_e()-_>1e3&&(i=0,_=_e())},e.onChange=(e,t,r,s,o)=>{if(St!==i&&R(),t&&c&&x(C(s[2]===t?a+(e.startX-e.x):x()+t-s[1])),r){y.offset&&D();let t=o[2]===r,i=t?n+e.startY-e.y:y()+r-o[1],s=A(i);t&&i!==s&&(n+=s-i),y(s)}(r||t)&&At()},e.onEnable=()=>{jt(g,!c&&"x"),Ut.addEventListener("refresh",Y),rt(L,"resize",Y),y.smooth&&(y.target.style.scrollBehavior="auto",y.smooth=x.smooth=!1),k.enable()},e.onDisable=()=>{jt(g,!0),it(L,"resize",Y),Ut.removeEventListener("refresh",Y),k.kill()},e.lockAxis=!1!==e.lockAxis,t=new I(e),t.iOS=ce,ce&&!y()&&y(1),ce&&X.ticker.add(Ae),l=t._dc,o=X.to(t,{ease:"power4",paused:!0,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Wt(y,y(),()=>o.pause())},onUpdate:At,onComplete:l.vars.onComplete}),t};Ut.sort=e=>pt.sort(e||((e,t)=>-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0)))),Ut.observe=e=>new I(e),Ut.normalizeScroll=e=>{if(void 0===e)return oe;if(!0===e&&oe)return oe.enable();if(!1===e)return oe&&oe.kill(),void(oe=e);let t=e instanceof I?e:er(e);return oe&&oe.target===t.target&&oe.kill(),Be(t.target)&&(oe=t),t},Ut.core={_getVelocityProp:A,_inputObserver:$t,_scrollers:v,_proxies:y,bridge:{ss:()=>{ke||bt("scrollStart"),ke=_e()},ref:()=>K}},Ye()&&X.registerPlugin(Ut);export default Ut;export{Ut as ScrollTrigger}; | ||
let e,t,r,i,s,o,a,n,l,c,d,p,h,g,u=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,f=1,m=[],v=[],y=[],x=Date.now,b=(e,t)=>t,w=(e,t)=>~y.indexOf(e)&&y[y.indexOf(e)+1][t],_=e=>!!~d.indexOf(e),T=(e,t,r,i,s)=>e.addEventListener(t,r,{passive:!1!==i,capture:!!s}),k=(e,t,r,i)=>e.removeEventListener(t,r,!!i),S=()=>p&&p.isPressed||v.cache++,C=(e,t)=>{let r=s=>{if(s||0===s){f&&(i.history.scrollRestoration="manual");let t=p&&p.isPressed;s=r.v=Math.round(s)||(p&&p.iOS?1:0),e(s),r.cacheID=v.cache,t&&b("ss",s)}else(t||v.cache!==r.cacheID||b("ref"))&&(r.cacheID=v.cache,r.v=e());return r.v+r.offset};return r.offset=0,e&&r},E={s:"scrollLeft",p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:C((function(e){return arguments.length?i.scrollTo(e,P.sc()):i.pageXOffset||s.scrollLeft||o.scrollLeft||a.scrollLeft||0}))},P={s:"scrollTop",p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:E,sc:C((function(e){return arguments.length?i.scrollTo(E.sc(),e):i.pageYOffset||s.scrollTop||o.scrollTop||a.scrollTop||0}))},M=(t,r)=>(r&&r._ctx&&r._ctx.selector||e.utils.toArray)(t)[0]||("string"==typeof t&&!1!==e.config().nullTargetWarn?console.warn("Element not found:",t):null),O=(t,{s:r,sc:i})=>{_(t)&&(t=s.scrollingElement||o);let a=v.indexOf(t),n=i===P.sc?1:2;!~a&&(a=v.push(t)-1),v[a+n]||T(t,"scroll",S);let l=v[a+n],c=l||(v[a+n]=C(w(t,r),!0)||(_(t)?i:C((function(e){return arguments.length?t[r]=e:t[r]}))));return c.target=t,l||(c.smooth="smooth"===e.getProperty(t,"scrollBehavior")),c},A=(e,t,r)=>{let i=e,s=e,o=x(),a=o,n=t||50,l=Math.max(500,3*n),c=(e,t)=>{let l=x();t||l-o>n?(s=i,i=e,a=o,o=l):r?i+=e:i=s+(e-s)/(l-a)*(o-a)};return{update:c,reset:()=>{s=i=r?0:i,a=o=0},getVelocity:e=>{let t=a,n=s,d=x();return(e||0===e)&&e!==i&&c(e),o===a||d-a>l?0:(i+(r?n:-n))/((r?d:o)-t)*1e3}}},R=(e,t)=>(t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e),D=e=>{let t=Math.max(...e),r=Math.min(...e);return Math.abs(t)>=Math.abs(r)?t:r},Y=()=>{c=e.core.globals().ScrollTrigger,c&&c.core&&(()=>{let e=c.core,t=e.bridge||{},r=e._scrollers,i=e._proxies;r.push(...v),i.push(...y),v=r,y=i,b=(e,r)=>t[e](r)})()},B=c=>(e=c||u(),!t&&e&&"undefined"!=typeof document&&document.body&&(i=window,s=document,o=s.documentElement,a=s.body,d=[i,s,o,a],r=e.utils.clamp,g=e.core.context||function(){},l="onpointerenter"in a?"pointer":"mouse",n=I.isTouch=i.matchMedia&&i.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in i||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,h=I.eventTypes=("ontouchstart"in o?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in o?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(()=>f=0,500),Y(),t=1),t);E.op=P,v.cache=0;class I{constructor(e){this.init(e)}init(r){t||B(e)||console.warn("Please gsap.registerPlugin(Observer)"),c||Y();let{tolerance:d,dragMinimum:u,type:f,target:v,lineHeight:y,debounce:b,preventDefault:w,onStop:C,onStopDelay:I,ignore:X,wheelSpeed:z,event:L,onDragStart:N,onDragEnd:F,onDrag:W,onPress:H,onRelease:q,onRight:U,onLeft:V,onUp:G,onDown:j,onChangeX:K,onChangeY:Z,onChange:$,onToggleX:J,onToggleY:Q,onHover:ee,onHoverEnd:te,onMove:re,ignoreCheck:ie,isNormalizer:se,onGestureStart:oe,onGestureEnd:ae,onWheel:ne,onEnable:le,onDisable:ce,onClick:de,scrollSpeed:pe,capture:he,allowClicks:ge,lockAxis:ue,onLockAxis:fe}=r;this.target=v=M(v)||o,this.vars=r,X&&(X=e.utils.toArray(X)),d=d||1e-9,u=u||0,z=z||1,pe=pe||1,f=f||"wheel,touch,pointer",b=!1!==b,y||(y=parseFloat(i.getComputedStyle(a).lineHeight)||22);let me,ve,ye,xe,be,we,_e,Te=this,ke=0,Se=0,Ce=r.passive||!w,Ee=O(v,E),Pe=O(v,P),Me=Ee(),Oe=Pe(),Ae=~f.indexOf("touch")&&!~f.indexOf("pointer")&&"pointerdown"===h[0],Re=_(v),De=v.ownerDocument||s,Ye=[0,0,0],Be=[0,0,0],Ie=0,Xe=()=>Ie=x(),ze=(e,t)=>(Te.event=e)&&X&&~X.indexOf(e.target)||t&&Ae&&"touch"!==e.pointerType||ie&&ie(e,t),Le=()=>{let e=Te.deltaX=D(Ye),t=Te.deltaY=D(Be),r=Math.abs(e)>=d,i=Math.abs(t)>=d;$&&(r||i)&&$(Te,e,t,Ye,Be),r&&(U&&Te.deltaX>0&&U(Te),V&&Te.deltaX<0&&V(Te),K&&K(Te),J&&Te.deltaX<0!=ke<0&&J(Te),ke=Te.deltaX,Ye[0]=Ye[1]=Ye[2]=0),i&&(j&&Te.deltaY>0&&j(Te),G&&Te.deltaY<0&&G(Te),Z&&Z(Te),Q&&Te.deltaY<0!=Se<0&&Q(Te),Se=Te.deltaY,Be[0]=Be[1]=Be[2]=0),(xe||ye)&&(re&&re(Te),ye&&(W(Te),ye=!1),xe=!1),we&&!(we=!1)&&fe&&fe(Te),be&&(ne(Te),be=!1),me=0},Ne=(e,t,r)=>{Ye[r]+=e,Be[r]+=t,Te._vx.update(e),Te._vy.update(t),b?me||(me=requestAnimationFrame(Le)):Le()},Fe=(e,t)=>{ue&&!_e&&(Te.axis=_e=Math.abs(e)>Math.abs(t)?"x":"y",we=!0),"y"!==_e&&(Ye[2]+=e,Te._vx.update(e,!0)),"x"!==_e&&(Be[2]+=t,Te._vy.update(t,!0)),b?me||(me=requestAnimationFrame(Le)):Le()},We=e=>{if(ze(e,1))return;let t=(e=R(e,w)).clientX,r=e.clientY,i=t-Te.x,s=r-Te.y,o=Te.isDragging;Te.x=t,Te.y=r,(o||Math.abs(Te.startX-t)>=u||Math.abs(Te.startY-r)>=u)&&(W&&(ye=!0),o||(Te.isDragging=!0),Fe(i,s),o||N&&N(Te))},He=Te.onPress=e=>{ze(e,1)||e&&e.button||(Te.axis=_e=null,ve.pause(),Te.isPressed=!0,e=R(e),ke=Se=0,Te.startX=Te.x=e.clientX,Te.startY=Te.y=e.clientY,Te._vx.reset(),Te._vy.reset(),T(se?v:De,h[1],We,Ce,!0),Te.deltaX=Te.deltaY=0,H&&H(Te))},qe=Te.onRelease=t=>{if(ze(t,1))return;k(se?v:De,h[1],We,!0);let r=!isNaN(Te.y-Te.startY),s=Te.isDragging,o=s&&(Math.abs(Te.x-Te.startX)>3||Math.abs(Te.y-Te.startY)>3),a=R(t);!o&&r&&(Te._vx.reset(),Te._vy.reset(),w&&ge&&e.delayedCall(.08,()=>{if(x()-Ie>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(De.createEvent){let e=De.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,i,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Te.isDragging=Te.isGesturing=Te.isPressed=!1,C&&s&&!se&&ve.restart(!0),F&&s&&F(Te),q&&q(Te,o)},Ue=e=>e.touches&&e.touches.length>1&&(Te.isGesturing=!0)&&oe(e,Te.isDragging),Ve=()=>(Te.isGesturing=!1)||ae(Te),Ge=e=>{if(ze(e))return;let t=Ee(),r=Pe();Ne((t-Me)*pe,(r-Oe)*pe,1),Me=t,Oe=r,C&&ve.restart(!0)},je=e=>{if(ze(e))return;e=R(e,w),ne&&(be=!0);let t=(1===e.deltaMode?y:2===e.deltaMode?i.innerHeight:1)*z;Ne(e.deltaX*t,e.deltaY*t,0),C&&!se&&ve.restart(!0)},Ke=e=>{if(ze(e))return;let t=e.clientX,r=e.clientY,i=t-Te.x,s=r-Te.y;Te.x=t,Te.y=r,xe=!0,C&&ve.restart(!0),(i||s)&&Fe(i,s)},Ze=e=>{Te.event=e,ee(Te)},$e=e=>{Te.event=e,te(Te)},Je=e=>ze(e)||R(e,w)&&de(Te);ve=Te._dc=e.delayedCall(I||.25,()=>{Te._vx.reset(),Te._vy.reset(),ve.pause(),C&&C(Te)}).pause(),Te.deltaX=Te.deltaY=0,Te._vx=A(0,50,!0),Te._vy=A(0,50,!0),Te.scrollX=Ee,Te.scrollY=Pe,Te.isDragging=Te.isGesturing=Te.isPressed=!1,g(this),Te.enable=e=>(Te.isEnabled||(T(Re?De:v,"scroll",S),f.indexOf("scroll")>=0&&T(Re?De:v,"scroll",Ge,Ce,he),f.indexOf("wheel")>=0&&T(v,"wheel",je,Ce,he),(f.indexOf("touch")>=0&&n||f.indexOf("pointer")>=0)&&(T(v,h[0],He,Ce,he),T(De,h[2],qe),T(De,h[3],qe),ge&&T(v,"click",Xe,!0,!0),de&&T(v,"click",Je),oe&&T(De,"gesturestart",Ue),ae&&T(De,"gestureend",Ve),ee&&T(v,l+"enter",Ze),te&&T(v,l+"leave",$e),re&&T(v,l+"move",Ke)),Te.isEnabled=!0,e&&e.type&&He(e),le&&le(Te)),Te),Te.disable=()=>{Te.isEnabled&&(m.filter(e=>e!==Te&&_(e.target)).length||k(Re?De:v,"scroll",S),Te.isPressed&&(Te._vx.reset(),Te._vy.reset(),k(se?v:De,h[1],We,!0)),k(Re?De:v,"scroll",Ge,he),k(v,"wheel",je,he),k(v,h[0],He,he),k(De,h[2],qe),k(De,h[3],qe),k(v,"click",Xe,!0),k(v,"click",Je),k(De,"gesturestart",Ue),k(De,"gestureend",Ve),k(v,l+"enter",Ze),k(v,l+"leave",$e),k(v,l+"move",Ke),Te.isEnabled=Te.isPressed=Te.isDragging=!1,ce&&ce(Te))},Te.kill=Te.revert=()=>{Te.disable();let e=m.indexOf(Te);e>=0&&m.splice(e,1),p===Te&&(p=0)},m.push(Te),se&&_(v)&&(p=Te),Te.enable(L)}get velocityX(){return this._vx.getVelocity()}get velocityY(){return this._vy.getVelocity()}}I.version="3.12.5",I.create=e=>new I(e),I.register=B,I.getAll=()=>m.slice(),I.getById=e=>m.filter(t=>t.vars.id===e)[0],u()&&e.registerPlugin(I);let X,z,L,N,F,W,H,q,U,V,G,j,K,Z,$,J,Q,ee,te,re,ie,se,oe,ae,ne,le,ce,de,pe,he,ge,ue,fe,me,ve,ye,xe,be,we=1,_e=Date.now,Te=_e(),ke=0,Se=0,Ce=(e,t,r)=>{let i=Ne(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=i,i?e.substr(6,e.length-7):e},Ee=(e,t)=>!t||Ne(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")",Pe=()=>Se&&requestAnimationFrame(Pe),Me=()=>Z=1,Oe=()=>Z=0,Ae=e=>e,Re=e=>Math.round(1e5*e)/1e5||0,De=()=>"undefined"!=typeof window,Ye=()=>X||De()&&(X=window.gsap)&&X.registerPlugin&&X,Be=e=>!!~H.indexOf(e),Ie=e=>("Height"===e?ge:L["inner"+e])||F["client"+e]||W["client"+e],Xe=e=>w(e,"getBoundingClientRect")||(Be(e)?()=>(zt.width=L.innerWidth,zt.height=ge,zt):()=>$e(e)),ze=(e,{s:t,d2:r,d:i,a:s})=>Math.max(0,(t="scroll"+r)&&(s=w(e,t))?s()-Xe(e)()[i]:Be(e)?(F[t]||W[t])-Ie(r):e[t]-e["offset"+r]),Le=(e,t)=>{for(let r=0;r<te.length;r+=3)(!t||~t.indexOf(te[r+1]))&&e(te[r],te[r+1],te[r+2])},Ne=e=>"string"==typeof e,Fe=e=>"function"==typeof e,We=e=>"number"==typeof e,He=e=>"object"==typeof e,qe=(e,t,r)=>e&&e.progress(t?0:1)&&r&&e.pause(),Ue=(e,t)=>{if(e.enabled){let r=e._ctx?e._ctx.add(()=>t(e)):t(e);r&&r.totalTime&&(e.callbackAnimation=r)}},Ve=Math.abs,Ge="padding",je="px",Ke=e=>L.getComputedStyle(e),Ze=(e,t)=>{for(let r in t)r in e||(e[r]=t[r]);return e},$e=(e,t)=>{let r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==Ke(e)[$]&&X.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return r&&r.progress(0).kill(),i},Je=(e,{d2:t})=>e["offset"+t]||e["client"+t]||0,Qe=e=>{let t,r=[],i=e.labels,s=e.duration();for(t in i)r.push(i[t]/s);return r},et=e=>{let t=X.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort((e,t)=>e-t);return r?(e,i,s=.001)=>{let o;if(!i)return t(e);if(i>0){for(e-=s,o=0;o<r.length;o++)if(r[o]>=e)return r[o];return r[o-1]}for(o=r.length,e+=s;o--;)if(r[o]<=e)return r[o];return r[0]}:(r,i,s=.001)=>{let o=t(r);return!i||Math.abs(o-r)<s||o-r<0==i<0?o:t(i<0?r-e:r+e)}},tt=(e,t,r,i)=>r.split(",").forEach(r=>e(t,r,i)),rt=(e,t,r,i,s)=>e.addEventListener(t,r,{passive:!i,capture:!!s}),it=(e,t,r,i)=>e.removeEventListener(t,r,!!i),st=(e,t,r)=>{(r=r&&r.wheelHandler)&&(e(t,"wheel",r),e(t,"touchmove",r))},ot={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},at={toggleActions:"play",anticipatePin:0},nt={top:0,left:0,center:.5,bottom:1,right:1},lt=(e,t)=>{if(Ne(e)){let r=e.indexOf("="),i=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(i*=t/100),e=e.substr(0,r-1)),e=i+(e in nt?nt[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},ct=(e,t,r,i,{startColor:s,endColor:o,fontSize:a,indent:n,fontWeight:l},c,d,p)=>{let h=N.createElement("div"),g=Be(r)||"fixed"===w(r,"pinType"),u=-1!==e.indexOf("scroller"),f=g?W:r,m=-1!==e.indexOf("start"),v=m?s:o,y="border-color:"+v+";font-size:"+a+";color:"+v+";font-weight:"+l+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((u||p)&&g?"fixed;":"absolute;"),(u||p||!g)&&(y+=(i===P?"right":"bottom")+":"+(c+parseFloat(n))+"px;"),d&&(y+="box-sizing:border-box;text-align:left;width:"+d.offsetWidth+"px;"),h._isStart=m,h.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),h.style.cssText=y,h.innerText=t||0===t?e+"-"+t:e,f.children[0]?f.insertBefore(h,f.children[0]):f.appendChild(h),h._offset=h["offset"+i.op.d2],dt(h,0,i,m),h},dt=(e,t,r,i)=>{let s={display:"block"},o=r[i?"os2":"p2"],a=r[i?"p2":"os2"];e._isFlipped=i,s[r.a+"Percent"]=i?-100:0,s[r.a]=i?"1px":0,s["border"+o+"Width"]=1,s["border"+a+"Width"]=0,s[r.p]=t+"px",X.set(e,s)},pt=[],ht={},gt=()=>_e()-ke>34&&(ve||(ve=requestAnimationFrame(At))),ut=()=>{(!oe||!oe.isPressed||oe.startX>W.clientWidth)&&(v.cache++,oe?ve||(ve=requestAnimationFrame(At)):At(),ke||bt("scrollStart"),ke=_e())},ft=()=>{le=L.innerWidth,ne=L.innerHeight},mt=()=>{v.cache++,!K&&!se&&!N.fullscreenElement&&!N.webkitFullscreenElement&&(!ae||le!==L.innerWidth||Math.abs(L.innerHeight-ne)>.25*L.innerHeight)&&q.restart(!0)},vt={},yt=[],xt=()=>it(Ut,"scrollEnd",xt)||Pt(!0),bt=e=>vt[e]&&vt[e].map(e=>e())||yt,wt=[],_t=e=>{for(let t=0;t<wt.length;t+=5)(!e||wt[t+4]&&wt[t+4].query===e)&&(wt[t].style.cssText=wt[t+1],wt[t].getBBox&&wt[t].setAttribute("transform",wt[t+2]||""),wt[t+3].uncache=1)},Tt=(e,t)=>{let r;for(J=0;J<pt.length;J++)r=pt[J],!r||t&&r._ctx!==t||(e?r.kill(1):r.revert(!0,!0));ue=!0,t&&_t(t),t||bt("revert")},kt=(e,t)=>{v.cache++,(t||!ye)&&v.forEach(e=>Fe(e)&&e.cacheID++&&(e.rec=0)),Ne(e)&&(L.history.scrollRestoration=pe=e)},St=0,Ct=()=>{W.appendChild(he),ge=!oe&&he.offsetHeight||L.innerHeight,W.removeChild(he)},Et=e=>U(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(t=>t.style.display=e?"none":"block"),Pt=(e,t)=>{if(ke&&!e&&!ue)return void rt(Ut,"scrollEnd",xt);Ct(),ye=Ut.isRefreshing=!0,v.forEach(e=>Fe(e)&&++e.cacheID&&(e.rec=e()));let r=bt("refreshInit");re&&Ut.sort(),t||Tt(),v.forEach(e=>{Fe(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),pt.slice(0).forEach(e=>e.refresh()),ue=!1,pt.forEach(e=>{if(e._subPinOffset&&e.pin){let t=e.vars.horizontal?"offsetWidth":"offsetHeight",r=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-r),e.refresh()}}),fe=1,Et(!0),pt.forEach(e=>{let t=ze(e.scroller,e._dir),r="max"===e.vars.end||e._endClamp&&e.end>t,i=e._startClamp&&e.start>=t;(r||i)&&e.setPositions(i?t-1:e.start,r?Math.max(i?t:e.start+1,t):e.end,!0)}),Et(!1),fe=0,r.forEach(e=>e&&e.render&&e.render(-1)),v.forEach(e=>{Fe(e)&&(e.smooth&&requestAnimationFrame(()=>e.target.style.scrollBehavior="smooth"),e.rec&&e(e.rec))}),kt(pe,1),q.pause(),St++,ye=2,At(2),pt.forEach(e=>Fe(e.vars.onRefresh)&&e.vars.onRefresh(e)),ye=Ut.isRefreshing=!1,bt("refresh")},Mt=0,Ot=1,At=e=>{if(2===e||!ye&&!ue){Ut.isUpdating=!0,be&&be.update(0);let e=pt.length,t=_e(),r=t-Te>=50,i=e&&pt[0].scroll();if(Ot=Mt>i?-1:1,ye||(Mt=i),r&&(ke&&!Z&&t-ke>200&&(ke=0,bt("scrollEnd")),G=Te,Te=t),Ot<0){for(J=e;J-- >0;)pt[J]&&pt[J].update(0,r);Ot=1}else for(J=0;J<e;J++)pt[J]&&pt[J].update(0,r);Ut.isUpdating=!1}ve=0},Rt=["left","top","bottom","right","marginBottom","marginRight","marginTop","marginLeft","display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Dt=Rt.concat(["width","height","boxSizing","maxWidth","maxHeight","position","margin",Ge,"paddingTop","paddingRight","paddingBottom","paddingLeft"]),Yt=(e,t,r,i)=>{if(!e._gsap.swappedIn){let s,o=Rt.length,a=t.style,n=e.style;for(;o--;)s=Rt[o],a[s]=r[s];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),n.bottom=n.right="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a.width=Je(e,E)+je,a.height=Je(e,P)+je,a.padding=n.margin=n.top=n.left="0",It(i),n.width=n.maxWidth=r.width,n.height=n.maxHeight=r.height,n.padding=r.padding,e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},Bt=/([A-Z])/g,It=e=>{if(e){let t,r,i=e.t.style,s=e.length,o=0;for((e.t._gsap||X.core.getCache(e.t)).uncache=1;o<s;o+=2)r=e[o+1],t=e[o],r?i[t]=r:i[t]&&i.removeProperty(t.replace(Bt,"-$1").toLowerCase())}},Xt=e=>{let t=Dt.length,r=e.style,i=[],s=0;for(;s<t;s++)i.push(Dt[s],r[Dt[s]]);return i.t=e,i},zt={left:0,top:0},Lt=(e,t,r,i,s,o,a,n,l,c,d,p,h,g)=>{Fe(e)&&(e=e(n)),Ne(e)&&"max"===e.substr(0,3)&&(e=p+("="===e.charAt(4)?lt("0"+e.substr(3),r):0));let u,f,m,v=h?h.time():0;if(h&&h.seek(0),isNaN(e)||(e=+e),We(e))h&&(e=X.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,p,e)),a&&dt(a,r,i,!0);else{Fe(t)&&(t=t(n));let o,d,p,h,g=(e||"0").split(" ");m=M(t,n)||W,o=$e(m)||{},o&&(o.left||o.top)||"none"!==Ke(m).display||(h=m.style.display,m.style.display="block",o=$e(m),h?m.style.display=h:m.style.removeProperty("display")),d=lt(g[0],o[i.d]),p=lt(g[1]||"0",r),e=o[i.p]-l[i.p]-c+d+s-p,a&&dt(a,p,i,r-p<20||a._isStart&&p>20),r-=r-p}if(g&&(n[g]=e||-.001,e<0&&(e=0)),o){let t=e+r,s=o._isStart;u="scroll"+i.d2,dt(o,t,i,s&&t>20||!s&&(d?Math.max(W[u],F[u]):o.parentNode[u])<=t+1),d&&(l=$e(a),d&&(o.style[i.op.p]=l[i.op.p]-i.op.m-o._offset+je))}return h&&m&&(u=$e(m),h.seek(p),f=$e(m),h._caScrollDist=u[i.p]-f[i.p],e=e/h._caScrollDist*p),h&&h.seek(v),h?e:Math.round(e)},Nt=/(webkit|moz|length|cssText|inset)/i,Ft=(e,t,r,i)=>{if(e.parentNode!==t){let s,o,a=e.style;if(t===W){for(s in e._stOrig=a.cssText,o=Ke(e),o)+s||Nt.test(s)||!o[s]||"string"!=typeof a[s]||"0"===s||(a[s]=o[s]);a.top=r,a.left=i}else a.cssText=e._stOrig;X.core.getCache(e).uncache=1,t.appendChild(e)}},Wt=(e,t,r)=>{let i=t,s=i;return t=>{let o=Math.round(e());return o!==i&&o!==s&&Math.abs(o-i)>3&&Math.abs(o-s)>3&&(t=o,r&&r()),s=i,i=t,t}},Ht=(e,t,r)=>{let i={};i[t.p]="+="+r,X.set(e,i)},qt=(e,t)=>{let r=O(e,t),i="_scroll"+t.p2,s=(t,o,a,n,l)=>{let c=s.tween,d=o.onComplete,p={};a=a||r();let h=Wt(r,a,()=>{c.kill(),s.tween=0});return l=n&&l||0,n=n||t-a,c&&c.kill(),o[i]=t,o.inherit=!1,o.modifiers=p,p[i]=()=>h(a+n*c.ratio+l*c.ratio*c.ratio),o.onUpdate=()=>{v.cache++,s.tween&&At()},o.onComplete=()=>{s.tween=0,d&&d.call(c)},c=s.tween=X.to(e,o),c};return e[i]=r,r.wheelHandler=()=>s.tween&&s.tween.kill()&&(s.tween=0),rt(e,"wheel",r.wheelHandler),Ut.isTouch&&rt(e,"touchmove",r.wheelHandler),s};class Ut{constructor(e,t){z||Ut.register(X)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),de(this),this.init(e,t)}init(e,t){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Se)return void(this.update=this.refresh=this.kill=Ae);e=Ze(Ne(e)||We(e)||e.nodeType?{trigger:e}:e,at);let r,i,s,o,a,n,l,c,d,p,h,g,u,f,m,x,b,_,T,k,S,C,A,R,D,Y,B,I,z,H,q,j,$,Q,ee,te,se,oe,ae,{onUpdate:ne,toggleClass:le,id:ce,onToggle:de,onRefresh:pe,scrub:he,trigger:ge,pin:ue,pinSpacing:ve,invalidateOnRefresh:Te,anticipatePin:Pe,onScrubComplete:Me,onSnapComplete:Oe,once:De,snap:Ye,pinReparent:Le,pinSpacer:tt,containerAnimation:st,fastScrollEnd:nt,preventOverlaps:dt}=e,gt=e.horizontal||e.containerAnimation&&!1!==e.horizontal?E:P,ft=!he&&0!==he,vt=M(e.scroller||L),yt=X.core.getCache(vt),bt=Be(vt),wt="fixed"===("pinType"in e?e.pinType:w(vt,"pinType")||bt&&"fixed"),_t=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],Tt=ft&&e.toggleActions.split(" "),kt="markers"in e?e.markers:at.markers,Ct=bt?0:parseFloat(Ke(vt)["border"+gt.p2+"Width"])||0,Et=this,Mt=e.onRefreshInit&&(()=>e.onRefreshInit(Et)),At=((e,t,{d:r,d2:i,a:s})=>(s=w(e,"getBoundingClientRect"))?()=>s()[r]:()=>(t?Ie(i):e["client"+i])||0)(vt,bt,gt),Rt=((e,t)=>!t||~y.indexOf(e)?Xe(e):()=>zt)(vt,bt),Dt=0,Bt=0,Nt=0,Wt=O(vt,gt);var Vt;if(Et._startClamp=Et._endClamp=!1,Et._dir=gt,Pe*=45,Et.scroller=vt,Et.scroll=st?st.time.bind(st):Wt,o=Wt(),Et.vars=e,t=t||e.animation,"refreshPriority"in e&&(re=1,-9999===e.refreshPriority&&(be=Et)),yt.tweenScroll=yt.tweenScroll||{top:qt(vt,P),left:qt(vt,E)},Et.tweenTo=r=yt.tweenScroll[gt.p],Et.scrubDuration=e=>{$=We(e)&&e,$?j?j.duration(e):j=X.to(t,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:$,paused:!0,onComplete:()=>Me&&Me(Et)}):(j&&j.progress(1).kill(),j=0)},t&&(t.vars.lazy=!1,t._initted&&!Et.isReverted||!1!==t.vars.immediateRender&&!1!==e.immediateRender&&t.duration()&&t.render(0,!0,!0),Et.animation=t.pause(),t.scrollTrigger=Et,Et.scrubDuration(he),H=0,ce||(ce=t.vars.id)),Ye&&(He(Ye)&&!Ye.push||(Ye={snapTo:Ye}),"scrollBehavior"in W.style&&X.set(bt?[W,F]:vt,{scrollBehavior:"auto"}),v.forEach(e=>Fe(e)&&e.target===(bt?N.scrollingElement||F:vt)&&(e.smooth=!1)),s=Fe(Ye.snapTo)?Ye.snapTo:"labels"===Ye.snapTo?(e=>t=>X.utils.snap(Qe(e),t))(t):"labelsDirectional"===Ye.snapTo?(Vt=t,(e,t)=>et(Qe(Vt))(e,t.direction)):!1!==Ye.directional?(e,t)=>et(Ye.snapTo)(e,_e()-Bt<500?0:t.direction):X.utils.snap(Ye.snapTo),Q=Ye.duration||{min:.1,max:2},Q=He(Q)?V(Q.min,Q.max):V(Q,Q),ee=X.delayedCall(Ye.delay||$/2||.1,()=>{let e=Wt(),i=_e()-Bt<500,o=r.tween;if(!(i||Math.abs(Et.getVelocity())<10)||o||Z||Dt===e)Et.isActive&&Dt!==e&&ee.restart(!0);else{let a,c,d=(e-n)/f,p=t&&!ft?t.totalProgress():d,h=i?0:(p-q)/(_e()-G)*1e3||0,g=X.utils.clamp(-d,1-d,Ve(h/2)*h/.185),u=d+(!1===Ye.inertia?0:g),{onStart:m,onInterrupt:v,onComplete:y}=Ye;if(a=s(u,Et),We(a)||(a=u),c=Math.round(n+a*f),e<=l&&e>=n&&c!==e){if(o&&!o._initted&&o.data<=Ve(c-e))return;!1===Ye.inertia&&(g=a-d),r(c,{duration:Q(Ve(.185*Math.max(Ve(u-p),Ve(a-p))/h/.05||0)),ease:Ye.ease||"power3",data:Ve(c-e),onInterrupt:()=>ee.restart(!0)&&v&&v(Et),onComplete(){Et.update(),Dt=Wt(),t&&(j?j.resetTo("totalProgress",a,t._tTime/t._tDur):t.progress(a)),H=q=t&&!ft?t.totalProgress():Et.progress,Oe&&Oe(Et),y&&y(Et)}},e,g*f,c-e-g*f),m&&m(Et,r.tween)}}}).pause()),ce&&(ht[ce]=Et),ge=Et.trigger=M(ge||!0!==ue&&ue),ae=ge&&ge._gsap&&ge._gsap.stRevert,ae&&(ae=ae(Et)),ue=!0===ue?ge:M(ue),Ne(le)&&(le={targets:ge,className:le}),ue&&(!1===ve||"margin"===ve||(ve=!(!ve&&ue.parentNode&&ue.parentNode.style&&"flex"===Ke(ue.parentNode).display)&&Ge),Et.pin=ue,i=X.core.getCache(ue),i.spacer?m=i.pinState:(tt&&(tt=M(tt),tt&&!tt.nodeType&&(tt=tt.current||tt.nativeElement),i.spacerIsNative=!!tt,tt&&(i.spacerState=Xt(tt))),i.spacer=_=tt||N.createElement("div"),_.classList.add("pin-spacer"),ce&&_.classList.add("pin-spacer-"+ce),i.pinState=m=Xt(ue)),!1!==e.force3D&&X.set(ue,{force3D:!0}),Et.spacer=_=i.spacer,z=Ke(ue),R=z[ve+gt.os2],k=X.getProperty(ue),S=X.quickSetter(ue,gt.a,je),Yt(ue,_,z),b=Xt(ue)),kt){g=He(kt)?Ze(kt,ot):ot,p=ct("scroller-start",ce,vt,gt,g,0),h=ct("scroller-end",ce,vt,gt,g,0,p),T=p["offset"+gt.op.d2];let e=M(w(vt,"content")||vt);c=this.markerStart=ct("start",ce,e,gt,g,T,0,st),d=this.markerEnd=ct("end",ce,e,gt,g,T,0,st),st&&(oe=X.quickSetter([c,d],gt.a,je)),wt||y.length&&!0===w(vt,"fixedMarkers")||((e=>{let t=Ke(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"})(bt?W:vt),X.set([p,h],{force3D:!0}),Y=X.quickSetter(p,gt.a,je),I=X.quickSetter(h,gt.a,je))}if(st){let e=st.vars.onUpdate,t=st.vars.onUpdateParams;st.eventCallback("onUpdate",()=>{Et.update(0,0,1),e&&e.apply(st,t||[])})}if(Et.previous=()=>pt[pt.indexOf(Et)-1],Et.next=()=>pt[pt.indexOf(Et)+1],Et.revert=(e,r)=>{if(!r)return Et.kill(!0);let i=!1!==e||!Et.enabled,s=K;i!==Et.isReverted&&(i&&(te=Math.max(Wt(),Et.scroll.rec||0),Nt=Et.progress,se=t&&t.progress()),c&&[c,d,p,h].forEach(e=>e.style.display=i?"none":"block"),i&&(K=Et,Et.update(i)),!ue||Le&&Et.isActive||(i?((e,t,r)=>{It(r);let i=e._gsap;if(i.spacerIsNative)It(i.spacerState);else if(e._gsap.swappedIn){let r=t.parentNode;r&&(r.insertBefore(e,t),r.removeChild(t))}e._gsap.swappedIn=!1})(ue,_,m):Yt(ue,_,Ke(ue),D)),i||Et.update(i),K=s,Et.isReverted=i)},Et.refresh=(i,s,g,v)=>{if((K||!Et.enabled)&&!s)return;if(ue&&i&&ke)return void rt(Ut,"scrollEnd",xt);!ye&&Mt&&Mt(Et),K=Et,r.tween&&!g&&(r.tween.kill(),r.tween=0),j&&j.pause(),Te&&t&&t.revert({kill:!1}).invalidate(),Et.isReverted||Et.revert(!0,!0),Et._subPinOffset=!1;let y,w,T,S,R,Y,I,z,L,H,q,U,V,G=At(),Z=Rt(),$=st?st.duration():ze(vt,gt),J=f<=.01,Q=0,re=v||0,oe=He(g)?g.end:e.end,ae=e.endTrigger||ge,ne=He(g)?g.start:e.start||(0!==e.start&&ge?ue?"0 0":"0 100%":0),le=Et.pinnedContainer=e.pinnedContainer&&M(e.pinnedContainer,Et),ce=ge&&Math.max(0,pt.indexOf(Et))||0,de=ce;for(kt&&He(g)&&(U=X.getProperty(p,gt.p),V=X.getProperty(h,gt.p));de--;)Y=pt[de],Y.end||Y.refresh(0,1)||(K=Et),I=Y.pin,!I||I!==ge&&I!==ue&&I!==le||Y.isReverted||(H||(H=[]),H.unshift(Y),Y.revert(!0,!0)),Y!==pt[de]&&(ce--,de--);for(Fe(ne)&&(ne=ne(Et)),ne=Ce(ne,"start",Et),n=Lt(ne,ge,G,gt,Wt(),c,p,Et,Z,Ct,wt,$,st,Et._startClamp&&"_startClamp")||(ue?-.001:0),Fe(oe)&&(oe=oe(Et)),Ne(oe)&&!oe.indexOf("+=")&&(~oe.indexOf(" ")?oe=(Ne(ne)?ne.split(" ")[0]:"")+oe:(Q=lt(oe.substr(2),G),oe=Ne(ne)?ne:(st?X.utils.mapRange(0,st.duration(),st.scrollTrigger.start,st.scrollTrigger.end,n):n)+Q,ae=ge)),oe=Ce(oe,"end",Et),l=Math.max(n,Lt(oe||(ae?"100% 0":$),ae,G,gt,Wt()+Q,d,h,Et,Z,Ct,wt,$,st,Et._endClamp&&"_endClamp"))||-.001,Q=0,de=ce;de--;)Y=pt[de],I=Y.pin,I&&Y.start-Y._pinPush<=n&&!st&&Y.end>0&&(y=Y.end-(Et._startClamp?Math.max(0,Y.start):Y.start),(I===ge&&Y.start-Y._pinPush<n||I===le)&&isNaN(ne)&&(Q+=y*(1-Y.progress)),I===ue&&(re+=y));if(n+=Q,l+=Q,Et._startClamp&&(Et._startClamp+=Q),Et._endClamp&&!ye&&(Et._endClamp=l||-.001,l=Math.min(l,ze(vt,gt))),f=l-n||(n-=.01)&&.001,J&&(Nt=X.utils.clamp(0,1,X.utils.normalize(n,l,te))),Et._pinPush=re,c&&Q&&(y={},y[gt.a]="+="+Q,le&&(y[gt.p]="-="+Wt()),X.set([c,d],y)),!ue||fe&&Et.end>=ze(vt,gt)){if(ge&&Wt()&&!st)for(w=ge.parentNode;w&&w!==W;)w._pinOffset&&(n-=w._pinOffset,l-=w._pinOffset),w=w.parentNode}else y=Ke(ue),S=gt===P,T=Wt(),C=parseFloat(k(gt.a))+re,!$&&l>1&&(q=(bt?N.scrollingElement||F:vt).style,q={style:q,value:q["overflow"+gt.a.toUpperCase()]},bt&&"scroll"!==Ke(W)["overflow"+gt.a.toUpperCase()]&&(q.style["overflow"+gt.a.toUpperCase()]="scroll")),Yt(ue,_,y),b=Xt(ue),w=$e(ue,!0),z=wt&&O(vt,S?E:P)(),ve?(D=[ve+gt.os2,f+re+je],D.t=_,de=ve===Ge?Je(ue,gt)+f+re:0,de&&(D.push(gt.d,de+je),"auto"!==_.style.flexBasis&&(_.style.flexBasis=de+je)),It(D),le&&pt.forEach(e=>{e.pin===le&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),wt&&Wt(te)):(de=Je(ue,gt),de&&"auto"!==_.style.flexBasis&&(_.style.flexBasis=de+je)),wt&&(R={top:w.top+(S?T-n:z)+je,left:w.left+(S?z:T-n)+je,boxSizing:"border-box",position:"fixed"},R.width=R.maxWidth=Math.ceil(w.width)+je,R.height=R.maxHeight=Math.ceil(w.height)+je,R.margin=R.marginTop=R.marginRight=R.marginBottom=R.marginLeft="0",R.padding=y.padding,R.paddingTop=y.paddingTop,R.paddingRight=y.paddingRight,R.paddingBottom=y.paddingBottom,R.paddingLeft=y.paddingLeft,x=((e,t,r)=>{let i,s=[],o=e.length,a=r?8:0;for(;a<o;a+=2)i=e[a],s.push(i,i in t?t[i]:e[a+1]);return s.t=e.t,s})(m,R,Le),ye&&Wt(0)),t?(L=t._initted,ie(1),t.render(t.duration(),!0,!0),A=k(gt.a)-C+f+re,B=Math.abs(f-A)>1,wt&&B&&x.splice(x.length-2,2),t.render(0,!0,!0),L||t.invalidate(!0),t.parent||t.totalTime(t.totalTime()),ie(0)):A=f,q&&(q.value?q.style["overflow"+gt.a.toUpperCase()]=q.value:q.style.removeProperty("overflow-"+gt.a));H&&H.forEach(e=>e.revert(!1,!0)),Et.start=n,Et.end=l,o=a=ye?te:Wt(),st||ye||(o<te&&Wt(te),Et.scroll.rec=0),Et.revert(!1,!0),Bt=_e(),ee&&(Dt=-1,ee.restart(!0)),K=0,t&&ft&&(t._initted||se)&&t.progress()!==se&&t.progress(se||0,!0).render(t.time(),!0,!0),(J||Nt!==Et.progress||st||Te)&&(t&&!ft&&t.totalProgress(st&&n<-.001&&!Nt?X.utils.normalize(n,l,0):Nt,!0),Et.progress=J||(o-n)/f===Nt?0:Nt),ue&&ve&&(_._pinOffset=Math.round(Et.progress*A)),j&&j.invalidate(),isNaN(U)||(U-=X.getProperty(p,gt.p),V-=X.getProperty(h,gt.p),Ht(p,gt,U),Ht(c,gt,U-(v||0)),Ht(h,gt,V),Ht(d,gt,V-(v||0))),J&&!ye&&Et.update(),!pe||ye||u||(u=!0,pe(Et),u=!1)},Et.getVelocity=()=>(Wt()-a)/(_e()-G)*1e3||0,Et.endAnimation=()=>{qe(Et.callbackAnimation),t&&(j?j.progress(1):t.paused()?ft||qe(t,Et.direction<0,1):qe(t,t.reversed()))},Et.labelToScroll=e=>t&&t.labels&&(n||Et.refresh()||n)+t.labels[e]/t.duration()*f||0,Et.getTrailing=e=>{let t=pt.indexOf(Et),r=Et.direction>0?pt.slice(0,t).reverse():pt.slice(t+1);return(Ne(e)?r.filter(t=>t.vars.preventOverlaps===e):r).filter(e=>Et.direction>0?e.end<=n:e.start>=l)},Et.update=(e,i,s)=>{if(st&&!s&&!e)return;let c,d,h,g,u,m,v,y,w=!0===ye?te:Et.scroll(),T=e?0:(w-n)/f,k=T<0?0:T>1?1:T||0,E=Et.progress;if(i&&(a=o,o=st?Wt():w,Ye&&(q=H,H=t&&!ft?t.totalProgress():k)),Pe&&ue&&!K&&!we&&ke&&(!k&&n<w+(w-a)/(_e()-G)*Pe?k=1e-4:1===k&&l>w+(w-a)/(_e()-G)*Pe&&(k=.9999)),k!==E&&Et.enabled){if(c=Et.isActive=!!k&&k<1,d=!!E&&E<1,m=c!==d,u=m||!!k!=!!E,Et.direction=k>E?1:-1,Et.progress=k,u&&!K&&(h=k&&!E?0:1===k?1:1===E?2:3,ft&&(g=!m&&"none"!==Tt[h+1]&&Tt[h+1]||Tt[h],y=t&&("complete"===g||"reset"===g||g in t))),dt&&(m||y)&&(y||he||!t)&&(Fe(dt)?dt(Et):Et.getTrailing(dt).forEach(e=>e.endAnimation())),ft||(!j||K||we?t&&t.totalProgress(k,!(!K||!Bt&&!e)):(j._dp._time-j._start!==j._time&&j.render(j._dp._time-j._start),j.resetTo?j.resetTo("totalProgress",k,t._tTime/t._tDur):(j.vars.totalProgress=k,j.invalidate().restart()))),ue)if(e&&ve&&(_.style[ve+gt.os2]=R),wt){if(u){if(v=!e&&k>E&&l+1>w&&w+1>=ze(vt,gt),Le)if(e||!c&&!v)Ft(ue,_);else{let e=$e(ue,!0),t=w-n;Ft(ue,W,e.top+(gt===P?t:0)+je,e.left+(gt===P?0:t)+je)}It(c||v?x:b),B&&k<1&&c||S(C+(1!==k||v?0:A))}}else S(Re(C+A*k));Ye&&!r.tween&&!K&&!we&&ee.restart(!0),le&&(m||De&&k&&(k<1||!me))&&U(le.targets).forEach(e=>e.classList[c||De?"add":"remove"](le.className)),ne&&!ft&&!e&&ne(Et),u&&!K?(ft&&(y&&("complete"===g?t.pause().totalProgress(1):"reset"===g?t.restart(!0).pause():"restart"===g?t.restart(!0):t[g]()),ne&&ne(Et)),!m&&me||(de&&m&&Ue(Et,de),_t[h]&&Ue(Et,_t[h]),De&&(1===k?Et.kill(!1,1):_t[h]=0),m||(h=1===k?1:3,_t[h]&&Ue(Et,_t[h]))),nt&&!c&&Math.abs(Et.getVelocity())>(We(nt)?nt:2500)&&(qe(Et.callbackAnimation),j?j.progress(1):qe(t,"reverse"===g?1:!k,1))):ft&&ne&&!K&&ne(Et)}if(I){let e=st?w/st.duration()*(st._caScrollDist||0):w;Y(e+(p._isFlipped?1:0)),I(e)}oe&&oe(-w/st.duration()*(st._caScrollDist||0))},Et.enable=(e,t)=>{Et.enabled||(Et.enabled=!0,rt(vt,"resize",mt),bt||rt(vt,"scroll",ut),Mt&&rt(Ut,"refreshInit",Mt),!1!==e&&(Et.progress=Nt=0,o=a=Dt=Wt()),!1!==t&&Et.refresh())},Et.getTween=e=>e&&r?r.tween:j,Et.setPositions=(e,t,r,i)=>{if(st){let r=st.scrollTrigger,i=st.duration(),s=r.end-r.start;e=r.start+s*e/i,t=r.start+s*t/i}Et.refresh(!1,!1,{start:Ee(e,r&&!!Et._startClamp),end:Ee(t,r&&!!Et._endClamp)},i),Et.update()},Et.adjustPinSpacing=e=>{if(D&&e){let t=D.indexOf(gt.d)+1;D[t]=parseFloat(D[t])+e+je,D[1]=parseFloat(D[1])+e+je,It(D)}},Et.disable=(e,t)=>{if(Et.enabled&&(!1!==e&&Et.revert(!0,!0),Et.enabled=Et.isActive=!1,t||j&&j.pause(),te=0,i&&(i.uncache=1),Mt&&it(Ut,"refreshInit",Mt),ee&&(ee.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!bt)){let e=pt.length;for(;e--;)if(pt[e].scroller===vt&&pt[e]!==Et)return;it(vt,"resize",mt),bt||it(vt,"scroll",ut)}},Et.kill=(r,s)=>{Et.disable(r,s),j&&!s&&j.kill(),ce&&delete ht[ce];let o=pt.indexOf(Et);o>=0&&pt.splice(o,1),o===J&&Ot>0&&J--,o=0,pt.forEach(e=>e.scroller===Et.scroller&&(o=1)),o||ye||(Et.scroll.rec=0),t&&(t.scrollTrigger=null,r&&t.revert({kill:!1}),s||t.kill()),c&&[c,d,p,h].forEach(e=>e.parentNode&&e.parentNode.removeChild(e)),be===Et&&(be=0),ue&&(i&&(i.uncache=1),o=0,pt.forEach(e=>e.pin===ue&&o++),o||(i.spacer=0)),e.onKill&&e.onKill(Et)},pt.push(Et),Et.enable(!1,!1),ae&&ae(Et),t&&t.add&&!f){let e=Et.update;Et.update=()=>{Et.update=e,n||l||Et.refresh()},X.delayedCall(.01,Et.update),f=.01,n=l=0}else Et.refresh();ue&&(()=>{if(xe!==St){let e=xe=St;requestAnimationFrame(()=>e===St&&Pt(!0))}})()}static register(e){return z||(X=e||Ye(),De()&&window.document&&Ut.enable(),z=Se),z}static defaults(e){if(e)for(let t in e)at[t]=e[t];return at}static disable(e,t){Se=0,pt.forEach(r=>r[t?"kill":"disable"](e)),it(L,"wheel",ut),it(N,"scroll",ut),clearInterval(j),it(N,"touchcancel",Ae),it(W,"touchstart",Ae),tt(it,N,"pointerdown,touchstart,mousedown",Me),tt(it,N,"pointerup,touchend,mouseup",Oe),q.kill(),Le(it);for(let e=0;e<v.length;e+=3)st(it,v[e],v[e+1]),st(it,v[e],v[e+2])}static enable(){if(L=window,N=document,F=N.documentElement,W=N.body,X&&(U=X.utils.toArray,V=X.utils.clamp,de=X.core.context||Ae,ie=X.core.suppressOverwrites||Ae,pe=L.history.scrollRestoration||"auto",Mt=L.pageYOffset,X.core.globals("ScrollTrigger",Ut),W)){Se=1,he=document.createElement("div"),he.style.height="100vh",he.style.position="absolute",Ct(),Pe(),I.register(X),Ut.isTouch=I.isTouch,ce=I.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ae=1===I.isTouch,rt(L,"wheel",ut),H=[L,N,F,W],X.matchMedia?(Ut.matchMedia=e=>{let t,r=X.matchMedia();for(t in e)r.add(t,e[t]);return r},X.addEventListener("matchMediaInit",()=>Tt()),X.addEventListener("matchMediaRevert",()=>_t()),X.addEventListener("matchMedia",()=>{Pt(0,1),bt("matchMedia")}),X.matchMedia("(orientation: portrait)",()=>(ft(),ft))):console.warn("Requires GSAP 3.11.0 or later"),ft(),rt(N,"scroll",ut);let e,t,r=W.style,i=r.borderTopStyle,s=X.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",e=$e(W),P.m=Math.round(e.top+P.sc())||0,E.m=Math.round(e.left+E.sc())||0,i?r.borderTopStyle=i:r.removeProperty("border-top-style"),j=setInterval(gt,250),X.delayedCall(.5,()=>we=0),rt(N,"touchcancel",Ae),rt(W,"touchstart",Ae),tt(rt,N,"pointerdown,touchstart,mousedown",Me),tt(rt,N,"pointerup,touchend,mouseup",Oe),$=X.utils.checkPrefix("transform"),Dt.push($),z=_e(),q=X.delayedCall(.2,Pt).pause(),te=[N,"visibilitychange",()=>{let e=L.innerWidth,t=L.innerHeight;N.hidden?(Q=e,ee=t):Q===e&&ee===t||mt()},N,"DOMContentLoaded",Pt,L,"load",Pt,L,"resize",mt],Le(rt),pt.forEach(e=>e.enable(0,1)),t=0;t<v.length;t+=3)st(it,v[t],v[t+1]),st(it,v[t],v[t+2])}}static config(e){"limitCallbacks"in e&&(me=!!e.limitCallbacks);let t=e.syncInterval;t&&clearInterval(j)||(j=t)&&setInterval(gt,t),"ignoreMobileResize"in e&&(ae=1===Ut.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Le(it)||Le(rt,e.autoRefreshEvents||"none"),se=-1===(e.autoRefreshEvents+"").indexOf("resize"))}static scrollerProxy(e,t){let r=M(e),i=v.indexOf(r),s=Be(r);~i&&v.splice(i,s?6:2),t&&(s?y.unshift(L,t,W,t,F,t):y.unshift(r,t))}static clearMatchMedia(e){pt.forEach(t=>t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0))}static isInViewport(e,t,r){let i=(Ne(e)?M(e):e).getBoundingClientRect(),s=i[r?"width":"height"]*t||0;return r?i.right-s>0&&i.left+s<L.innerWidth:i.bottom-s>0&&i.top+s<L.innerHeight}static positionInViewport(e,t,r){Ne(e)&&(e=M(e));let i=e.getBoundingClientRect(),s=i[r?"width":"height"],o=null==t?s/2:t in nt?nt[t]*s:~t.indexOf("%")?parseFloat(t)*s/100:parseFloat(t)||0;return r?(i.left+o)/L.innerWidth:(i.top+o)/L.innerHeight}static killAll(e){if(pt.slice(0).forEach(e=>"ScrollSmoother"!==e.vars.id&&e.kill()),!0!==e){let e=vt.killAll||[];vt={},e.forEach(e=>e())}}}Ut.version="3.12.5",Ut.saveStyles=e=>e?U(e).forEach(e=>{if(e&&e.style){let t=wt.indexOf(e);t>=0&&wt.splice(t,5),wt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),X.core.getCache(e),de())}}):wt,Ut.revert=(e,t)=>Tt(!e,t),Ut.create=(e,t)=>new Ut(e,t),Ut.refresh=e=>e?mt():(z||Ut.register())&&Pt(!0),Ut.update=e=>++v.cache&&At(!0===e?2:0),Ut.clearScrollMemory=kt,Ut.maxScroll=(e,t)=>ze(e,t?E:P),Ut.getScrollFunc=(e,t)=>O(M(e),t?E:P),Ut.getById=e=>ht[e],Ut.getAll=()=>pt.filter(e=>"ScrollSmoother"!==e.vars.id),Ut.isScrolling=()=>!!ke,Ut.snapDirectional=et,Ut.addEventListener=(e,t)=>{let r=vt[e]||(vt[e]=[]);~r.indexOf(t)||r.push(t)},Ut.removeEventListener=(e,t)=>{let r=vt[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},Ut.batch=(e,t)=>{let r,i=[],s={},o=t.interval||.016,a=t.batchMax||1e9,n=(e,t)=>{let r=[],i=[],s=X.delayedCall(o,()=>{t(r,i),r=[],i=[]}).pause();return e=>{r.length||s.restart(!0),r.push(e.trigger),i.push(e),a<=r.length&&s.progress(1)}};for(r in t)s[r]="on"===r.substr(0,2)&&Fe(t[r])&&"onRefreshInit"!==r?n(0,t[r]):t[r];return Fe(a)&&(a=a(),rt(Ut,"refresh",()=>a=t.batchMax())),U(e).forEach(e=>{let t={};for(r in s)t[r]=s[r];t.trigger=e,i.push(Ut.create(t))}),i};let Vt,Gt=(e,t,r,i)=>(t>i?e(i):t<0&&e(0),r>i?(i-t)/(r-t):r<0?t/(t-r):1),jt=(e,t)=>{!0===t?e.style.removeProperty("touch-action"):e.style.touchAction=!0===t?"auto":t?"pan-"+t+(I.isTouch?" pinch-zoom":""):"none",e===F&&jt(W,t)},Kt={auto:1,scroll:1},Zt=({event:e,target:t,axis:r})=>{let i,s=(e.changedTouches?e.changedTouches[0]:e).target,o=s._gsap||X.core.getCache(s),a=_e();if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==W&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!Kt[(i=Ke(s)).overflowY]&&!Kt[i.overflowX]);)s=s.parentNode;o._isScroll=s&&s!==t&&!Be(s)&&(Kt[(i=Ke(s)).overflowY]||Kt[i.overflowX]),o._isScrollT=a}(o._isScroll||"x"===r)&&(e.stopPropagation(),e._gsapAllow=!0)},$t=(e,t,r,i)=>I.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:i=i&&Zt,onPress:i,onDrag:i,onScroll:i,onEnable:()=>r&&rt(N,I.eventTypes[0],Qt,!1,!0),onDisable:()=>it(N,I.eventTypes[0],Qt,!0)}),Jt=/(input|label|select|textarea)/i,Qt=e=>{let t=Jt.test(e.target.tagName);(t||Vt)&&(e._gsapAllow=!0,Vt=t)},er=e=>{He(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";let t,r,i,s,o,a,n,l,{normalizeScrollX:c,momentum:d,allowNestedScroll:p,onRelease:h}=e,g=M(e.target)||F,u=X.core.globals().ScrollSmoother,f=u&&u.get(),m=ce&&(e.content&&M(e.content)||f&&!1!==e.content&&!f.smooth()&&f.content()),y=O(g,P),x=O(g,E),b=1,w=(I.isTouch&&L.visualViewport?L.visualViewport.scale*L.visualViewport.width:L.outerWidth)/L.innerWidth,_=0,T=Fe(d)?()=>d(t):()=>d||2.8,k=$t(g,e.type,!0,p),S=()=>s=!1,C=Ae,A=Ae,R=()=>{r=ze(g,P),A=V(ce?1:0,r),c&&(C=V(0,ze(g,E))),i=St},D=()=>{m._gsap.y=Re(parseFloat(m._gsap.y)+y.offset)+"px",m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(m._gsap.y)+", 0, 1)",y.offset=y.cacheID=0},Y=()=>{R(),o.isActive()&&o.vars.scrollY>r&&(y()>r?o.progress(1)&&y(r):o.resetTo("scrollY",r))};return m&&X.set(m,{y:"+=0"}),e.ignoreCheck=e=>ce&&"touchmove"===e.type&&(()=>{if(s){requestAnimationFrame(S);let e=Re(t.deltaY/2),r=A(y.v-e);if(m&&r!==y.v+y.offset){y.offset=r-y.v;let e=Re((parseFloat(m&&m._gsap.y)||0)-y.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+e+", 0, 1)",m._gsap.y=e+"px",y.cacheID=v.cache,At()}return!0}y.offset&&D(),s=!0})()||b>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1,e.onPress=()=>{s=!1;let e=b;b=Re((L.visualViewport&&L.visualViewport.scale||1)/w),o.pause(),e!==b&&jt(g,b>1.01||!c&&"x"),a=x(),n=y(),R(),i=St},e.onRelease=e.onGestureStart=(e,t)=>{if(y.offset&&D(),t){v.cache++;let t,i,s=T();c&&(t=x(),i=t+.05*s*-e.velocityX/.227,s*=Gt(x,t,i,ze(g,E)),o.vars.scrollX=C(i)),t=y(),i=t+.05*s*-e.velocityY/.227,s*=Gt(y,t,i,ze(g,P)),o.vars.scrollY=A(i),o.invalidate().duration(s).play(.01),(ce&&o.vars.scrollY>=r||t>=r-1)&&X.to({},{onUpdate:Y,duration:s})}else l.restart(!0);h&&h(e)},e.onWheel=()=>{o._ts&&o.pause(),_e()-_>1e3&&(i=0,_=_e())},e.onChange=(e,t,r,s,o)=>{if(St!==i&&R(),t&&c&&x(C(s[2]===t?a+(e.startX-e.x):x()+t-s[1])),r){y.offset&&D();let t=o[2]===r,i=t?n+e.startY-e.y:y()+r-o[1],s=A(i);t&&i!==s&&(n+=s-i),y(s)}(r||t)&&At()},e.onEnable=()=>{jt(g,!c&&"x"),Ut.addEventListener("refresh",Y),rt(L,"resize",Y),y.smooth&&(y.target.style.scrollBehavior="auto",y.smooth=x.smooth=!1),k.enable()},e.onDisable=()=>{jt(g,!0),it(L,"resize",Y),Ut.removeEventListener("refresh",Y),k.kill()},e.lockAxis=!1!==e.lockAxis,t=new I(e),t.iOS=ce,ce&&!y()&&y(1),ce&&X.ticker.add(Ae),l=t._dc,o=X.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Wt(y,y(),()=>o.pause())},onUpdate:At,onComplete:l.vars.onComplete}),t};Ut.sort=e=>pt.sort(e||((e,t)=>-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0)))),Ut.observe=e=>new I(e),Ut.normalizeScroll=e=>{if(void 0===e)return oe;if(!0===e&&oe)return oe.enable();if(!1===e)return oe&&oe.kill(),void(oe=e);let t=e instanceof I?e:er(e);return oe&&oe.target===t.target&&oe.kill(),Be(t.target)&&(oe=t),t},Ut.core={_getVelocityProp:A,_inputObserver:$t,_scrollers:v,_proxies:y,bridge:{ss:()=>{ke||bt("scrollStart"),ke=_e()},ref:()=>K}},Ye()&&X.registerPlugin(Ut);export default Ut;export{Ut as ScrollTrigger}; |
/*! | ||
* SplitText 3.12.4 | ||
* SplitText 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* *** DO NOT DEPLOY THIS FILE *** | ||
@@ -13,2 +13,2 @@ * This is a trial version that only works locally and on domains like codepen.io and codesandbox.io. | ||
const D=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;let u,e,t,F,C,i,n=/(?:\r|\n|\t\t)/g,s=/(?:\s\s+)/g,E=String.fromCharCode(160),l=D=>{u=document,e=window,F=F||D||e.gsap||console.warn("Please gsap.registerPlugin(SplitText)"),F&&(i=F.utils.toArray,C=F.core.context||function(){},t=1)},o=function(){return String.fromCharCode.apply(null,arguments)},r=o(103,114,101,101,110,115,111,99,107,46,99,111,109),d=o(103,115,97,112,46,99,111,109),a=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,p=function(D){var u="undefined"!=typeof window,e=0===(u?window.location.href:"").indexOf(o(102,105,108,101,58,47,47))||-1!==D.indexOf(o(108,111,99,97,108,104,111,115,116))||a.test(D)||(u?window.location.hostname:"").split(".").pop()===o(108,111,99,97,108),t=[r,d,o(99,111,100,101,112,101,110,46,105,111),o(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),o(99,111,100,101,112,101,110,46,100,101,118),o(99,111,100,101,112,101,110,46,97,112,112),o(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),o(112,101,110,115,46,99,108,111,117,100),o(99,115,115,45,116,114,105,99,107,115,46,99,111,109),o(99,100,112,110,46,105,111),o(112,101,110,115,46,105,111),o(103,97,110,110,111,110,46,116,118),o(99,111,100,101,99,97,110,121,111,110,46,110,101,116),o(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),o(99,101,114,101,98,114,97,120,46,99,111,46,117,107),o(116,121,109,112,97,110,117,115,46,110,101,116),o(116,119,101,101,110,109,97,120,46,99,111,109),o(112,108,110,107,114,46,99,111),o(104,111,116,106,97,114,46,99,111,109),o(119,101,98,112,97,99,107,98,105,110,46,99,111,109),o(97,114,99,104,105,118,101,46,111,114,103),o(99,111,100,101,115,97,110,100,98,111,120,46,105,111),o(99,115,98,46,97,112,112),o(115,116,97,99,107,98,108,105,116,122,46,99,111,109),o(115,116,97,99,107,98,108,105,116,122,46,105,111),o(99,111,100,105,101,114,46,105,111),o(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),o(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),o(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),o(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),o(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),o(106,115,102,105,100,100,108,101,46,110,101,116)],C=function(){if(u)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",C);else{document.removeEventListener("readystatechange",C);var D="object"==typeof F?F:u&&window.gsap;u&&window.console&&!window._gsapWarned&&"object"==typeof D&&!1!==D.config().trialWarn&&(console.log(o(37,99,87,97,114,110,105,110,103),o(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(o(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"SplitText"+o(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(o(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),o(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},i=t.length;for(setTimeout(C,50);--i>-1;)if(-1!==D.indexOf(t[i]))return!0;return e||!setTimeout((function(){u&&(window.location.href=o(104,116,116,112,115,58,47,47)+r+o(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=SplitText&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),h=D=>e.getComputedStyle(D),B=D=>"absolute"===D.position||!0===D.absolute,A=(D,u)=>{let e,t=u.length;for(;--t>-1;)if(e=u[t],D.substr(0,e.length)===e)return e.length},f=(D="",u)=>{let e=~D.indexOf("++"),t=1;return e&&(D=D.split("++").join("")),()=>"<"+u+" style='position:relative;display:inline-block;'"+(D?" class='"+D+(e?t++:"")+"'>":">")},c=(D,u,e)=>{let t=D.nodeType;if(1===t||9===t||11===t)for(D=D.firstChild;D;D=D.nextSibling)c(D,u,e);else 3!==t&&4!==t||(D.nodeValue=D.nodeValue.split(u).join(e))},g=(D,u)=>{let e=u.length;for(;--e>-1;)D.push(u[e])},x=(D,u,e)=>{let t;for(;D&&D!==u;){if(t=D._next||D.nextSibling,t)return t.textContent.charAt(0)===e;D=D.parentNode||D._parent}},y=D=>{let u,e,t=i(D.childNodes),F=t.length;for(u=0;u<F;u++)e=t[u],e._isSplit?y(e):u&&e.previousSibling&&3===e.previousSibling.nodeType?(e.previousSibling.nodeValue+=3===e.nodeType?e.nodeValue:e.firstChild.nodeValue,D.removeChild(e)):3!==e.nodeType&&(D.insertBefore(e.firstChild,e),D.removeChild(e))},b=(D,u)=>parseFloat(u[D])||0,_=(D,e,t,F,C,i,n)=>{let s,E,l,o,r,d,a,p,A,f,_,w,S=h(D),m=b("paddingLeft",S),v=-999,T=b("borderBottomWidth",S)+b("borderTopWidth",S),N=b("borderLeftWidth",S)+b("borderRightWidth",S),L=b("paddingTop",S)+b("paddingBottom",S),W=b("paddingLeft",S)+b("paddingRight",S),O=b("fontSize",S)*(e.lineThreshold||.2),H=S.textAlign,V=[],R=[],j=[],M=e.wordDelimiter||" ",k=e.tag?e.tag:e.span?"span":"div",P=e.type||e.split||"chars,words,lines",z=C&&~P.indexOf("lines")?[]:null,$=~P.indexOf("words"),q=~P.indexOf("chars"),G=B(e),I=e.linesClass,J=~(I||"").indexOf("++"),K=[],Q="flex"===S.display,U=D.style.display;for(J&&(I=I.split("++").join("")),Q&&(D.style.display="block"),E=D.getElementsByTagName("*"),l=E.length,r=[],s=0;s<l;s++)r[s]=E[s];if(z||G)for(s=0;s<l;s++)o=r[s],d=o.parentNode===D,(d||G||q&&!$)&&(w=o.offsetTop,z&&d&&Math.abs(w-v)>O&&("BR"!==o.nodeName||0===s)&&(a=[],z.push(a),v=w),G&&(o._x=o.offsetLeft,o._y=w,o._w=o.offsetWidth,o._h=o.offsetHeight),z&&((o._isSplit&&d||!q&&d||$&&d||!$&&o.parentNode.parentNode===D&&!o.parentNode._isSplit)&&(a.push(o),o._x-=m,x(o,D,M)&&(o._wordEnd=!0)),"BR"===o.nodeName&&(o.nextSibling&&"BR"===o.nextSibling.nodeName||0===s)&&z.push([])));for(s=0;s<l;s++)if(o=r[s],d=o.parentNode===D,"BR"!==o.nodeName)if(G&&(A=o.style,$||d||(o._x+=o.parentNode._x,o._y+=o.parentNode._y),A.left=o._x+"px",A.top=o._y+"px",A.position="absolute",A.display="block",A.width=o._w+1+"px",A.height=o._h+"px"),!$&&q)if(o._isSplit)for(o._next=E=o.nextSibling,o.parentNode.appendChild(o);E&&3===E.nodeType&&" "===E.textContent;)o._next=E.nextSibling,o.parentNode.appendChild(E),E=E.nextSibling;else o.parentNode._isSplit?(o._parent=o.parentNode,!o.previousSibling&&o.firstChild&&(o.firstChild._isFirst=!0),o.nextSibling&&" "===o.nextSibling.textContent&&!o.nextSibling.nextSibling&&K.push(o.nextSibling),o._next=o.nextSibling&&o.nextSibling._isFirst?null:o.nextSibling,o.parentNode.removeChild(o),r.splice(s--,1),l--):d||(w=!o.nextSibling&&x(o.parentNode,D,M),o.parentNode._parent&&o.parentNode._parent.appendChild(o),w&&o.parentNode.appendChild(u.createTextNode(" ")),"span"===k&&(o.style.display="inline"),V.push(o));else o.parentNode._isSplit&&!o._isSplit&&""!==o.innerHTML?R.push(o):q&&!o._isSplit&&("span"===k&&(o.style.display="inline"),V.push(o));else z||G?(o.parentNode&&o.parentNode.removeChild(o),r.splice(s--,1),l--):$||D.appendChild(o);for(s=K.length;--s>-1;)K[s].parentNode.removeChild(K[s]);if(z){for(G&&(f=u.createElement(k),D.appendChild(f),_=f.offsetWidth+"px",w=f.offsetParent===D?0:D.offsetLeft,D.removeChild(f)),A=D.style.cssText,D.style.cssText="display:none;";D.firstChild;)D.removeChild(D.firstChild);for(p=" "===M&&(!G||!$&&!q),s=0;s<z.length;s++){for(a=z[s],f=u.createElement(k),f.style.cssText="display:block;text-align:"+H+";position:"+(G?"absolute;":"relative;"),I&&(f.className=I+(J?s+1:"")),j.push(f),l=a.length,E=0;E<l;E++)"BR"!==a[E].nodeName&&(o=a[E],f.appendChild(o),p&&o._wordEnd&&f.appendChild(u.createTextNode(" ")),G&&(0===E&&(f.style.top=o._y+"px",f.style.left=m+w+"px"),o.style.top="0px",w&&(o.style.left=o._x-w+"px")));0===l?f.innerHTML=" ":$||q||(y(f),c(f,String.fromCharCode(160)," ")),G&&(f.style.width=_,f.style.height=o._h+"px"),D.appendChild(f)}D.style.cssText=A}G&&(n>D.clientHeight&&(D.style.height=n-L+"px",D.clientHeight<n&&(D.style.height=n+T+"px")),i>D.clientWidth&&(D.style.width=i-W+"px",D.clientWidth<i&&(D.style.width=i+N+"px"))),Q&&(U?D.style.display=U:D.style.removeProperty("display")),g(t,V),$&&g(F,R),g(C,j)},w=(e,t,F,C)=>{let i,l,o,r,d,a,p,h,f=t.tag?t.tag:t.span?"span":"div",g=~(t.type||t.split||"chars,words,lines").indexOf("chars"),x=B(t),y=t.wordDelimiter||" ",b=D=>D===y||D===E&&" "===y,_=" "!==y?"":x?"­ ":" ",w="</"+f+">",S=1,m=t.specialChars?"function"==typeof t.specialChars?t.specialChars:A:null,v=u.createElement("div"),T=e.parentNode;for(T.insertBefore(v,e),v.textContent=e.nodeValue,T.removeChild(e),i=function D(u){let e=u.nodeType,t="";if(1===e||9===e||11===e){if("string"==typeof u.textContent)return u.textContent;for(u=u.firstChild;u;u=u.nextSibling)t+=D(u)}else if(3===e||4===e)return u.nodeValue;return t}(e=v),p=-1!==i.indexOf("<"),!1!==t.reduceWhiteSpace&&(i=i.replace(s," ").replace(n,"")),p&&(i=i.split("<").join("{{LT}}")),d=i.length,l=(" "===i.charAt(0)?_:"")+F(),o=0;o<d;o++)if(a=i.charAt(o),m&&(h=m(i.substr(o),t.specialChars)))a=i.substr(o,h||1),l+=g&&" "!==a?C()+a+"</"+f+">":a,o+=h-1;else if(b(a)&&!b(i.charAt(o-1))&&o){for(l+=S?w:"",S=0;b(i.charAt(o+1));)l+=_,o++;o===d-1?l+=_:")"!==i.charAt(o+1)&&(l+=_+F(),S=1)}else"{"===a&&"{{LT}}"===i.substr(o,6)?(l+=g?C()+"{{LT}}</"+f+">":"{{LT}}",o+=5):a.charCodeAt(0)>=55296&&a.charCodeAt(0)<=56319||i.charCodeAt(o+1)>=65024&&i.charCodeAt(o+1)<=65039?(r=((i.substr(o,12).split(D)||[])[1]||"").length||2,l+=g&&" "!==a?C()+i.substr(o,r)+"</"+f+">":i.substr(o,r),o+=r-1):l+=g&&" "!==a?C()+a+"</"+f+">":a;e.outerHTML=l+(S?w:""),p&&c(T,"{{LT}}","<")},S=(D,u,e,t)=>{let F,C,n=i(D.childNodes),s=n.length,E=B(u);if(3!==D.nodeType||s>1){for(u.absolute=!1,F=0;F<s;F++)C=n[F],C._next=C._isFirst=C._parent=C._wordEnd=null,(3!==C.nodeType||/\S+/.test(C.nodeValue))&&(E&&3!==C.nodeType&&"inline"===h(C).display&&(C.style.display="inline-block",C.style.position="relative"),C._isSplit=!0,S(C,u,e,t));return u.absolute=E,void(D._isSplit=!0)}w(D,u,e,t)};class m{constructor(D,u){t||l(),this.elements=i(D),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=u||{},C(this),p&&this.split(u)}split(D){this.isSplit&&this.revert(),this.vars=D=D||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;let u,e,t,F=this.elements.length,C=D.tag?D.tag:D.span?"span":"div",i=f(D.wordsClass,C),n=f(D.charsClass,C);for(;--F>-1;)t=this.elements[F],this._originals[F]={html:t.innerHTML,style:t.getAttribute("style")},u=t.clientHeight,e=t.clientWidth,S(t,D,i,n),_(t,D,this.chars,this.words,this.lines,e,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this}revert(){let D=this._originals;if(!D)throw"revert() call wasn't scoped properly.";return this.elements.forEach((u,e)=>{u.innerHTML=D[e].html,u.setAttribute("style",D[e].style)}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this}static create(D,u){return new m(D,u)}}m.version="3.12.4",m.register=l;export default m;export{m as SplitText}; | ||
const D=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;let u,e,t,F,C,i,n=/(?:\r|\n|\t\t)/g,s=/(?:\s\s+)/g,E=String.fromCharCode(160),l=D=>{u=document,e=window,F=F||D||e.gsap||console.warn("Please gsap.registerPlugin(SplitText)"),F&&(i=F.utils.toArray,C=F.core.context||function(){},t=1)},o=function(){return String.fromCharCode.apply(null,arguments)},r=o(103,114,101,101,110,115,111,99,107,46,99,111,109),d=o(103,115,97,112,46,99,111,109),a=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,p=function(D){var u="undefined"!=typeof window,e=0===(u?window.location.href:"").indexOf(o(102,105,108,101,58,47,47))||-1!==D.indexOf(o(108,111,99,97,108,104,111,115,116))||a.test(D)||(u?window.location.hostname:"").split(".").pop()===o(108,111,99,97,108),t=[r,d,o(99,111,100,101,112,101,110,46,105,111),o(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),o(99,111,100,101,112,101,110,46,100,101,118),o(99,111,100,101,112,101,110,46,97,112,112),o(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),o(112,101,110,115,46,99,108,111,117,100),o(99,115,115,45,116,114,105,99,107,115,46,99,111,109),o(99,100,112,110,46,105,111),o(112,101,110,115,46,105,111),o(103,97,110,110,111,110,46,116,118),o(99,111,100,101,99,97,110,121,111,110,46,110,101,116),o(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),o(99,101,114,101,98,114,97,120,46,99,111,46,117,107),o(116,121,109,112,97,110,117,115,46,110,101,116),o(116,119,101,101,110,109,97,120,46,99,111,109),o(112,108,110,107,114,46,99,111),o(104,111,116,106,97,114,46,99,111,109),o(119,101,98,112,97,99,107,98,105,110,46,99,111,109),o(97,114,99,104,105,118,101,46,111,114,103),o(99,111,100,101,115,97,110,100,98,111,120,46,105,111),o(99,115,98,46,97,112,112),o(115,116,97,99,107,98,108,105,116,122,46,99,111,109),o(115,116,97,99,107,98,108,105,116,122,46,105,111),o(99,111,100,105,101,114,46,105,111),o(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),o(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),o(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),o(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),o(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),o(106,115,102,105,100,100,108,101,46,110,101,116)],C=function(){if(u)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",C);else{document.removeEventListener("readystatechange",C);var D="object"==typeof F?F:u&&window.gsap;u&&window.console&&!window._gsapWarned&&"object"==typeof D&&!1!==D.config().trialWarn&&(console.log(o(37,99,87,97,114,110,105,110,103),o(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(o(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"SplitText"+o(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(o(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),o(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},i=t.length;for(setTimeout(C,50);--i>-1;)if(-1!==D.indexOf(t[i]))return!0;return e||!setTimeout((function(){u&&(window.location.href=o(104,116,116,112,115,58,47,47)+r+o(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=SplitText&source=trial")}),4e3)}("undefined"!=typeof window?window.location.host:""),h=D=>e.getComputedStyle(D),B=D=>"absolute"===D.position||!0===D.absolute,A=(D,u)=>{let e,t=u.length;for(;--t>-1;)if(e=u[t],D.substr(0,e.length)===e)return e.length},f=(D="",u)=>{let e=~D.indexOf("++"),t=1;return e&&(D=D.split("++").join("")),()=>"<"+u+" style='position:relative;display:inline-block;'"+(D?" class='"+D+(e?t++:"")+"'>":">")},c=(D,u,e)=>{let t=D.nodeType;if(1===t||9===t||11===t)for(D=D.firstChild;D;D=D.nextSibling)c(D,u,e);else 3!==t&&4!==t||(D.nodeValue=D.nodeValue.split(u).join(e))},g=(D,u)=>{let e=u.length;for(;--e>-1;)D.push(u[e])},x=(D,u,e)=>{let t;for(;D&&D!==u;){if(t=D._next||D.nextSibling,t)return t.textContent.charAt(0)===e;D=D.parentNode||D._parent}},y=D=>{let u,e,t=i(D.childNodes),F=t.length;for(u=0;u<F;u++)e=t[u],e._isSplit?y(e):u&&e.previousSibling&&3===e.previousSibling.nodeType?(e.previousSibling.nodeValue+=3===e.nodeType?e.nodeValue:e.firstChild.nodeValue,D.removeChild(e)):3!==e.nodeType&&(D.insertBefore(e.firstChild,e),D.removeChild(e))},b=(D,u)=>parseFloat(u[D])||0,_=(D,e,t,F,C,i,n)=>{let s,E,l,o,r,d,a,p,A,f,_,w,S=h(D),m=b("paddingLeft",S),v=-999,T=b("borderBottomWidth",S)+b("borderTopWidth",S),N=b("borderLeftWidth",S)+b("borderRightWidth",S),L=b("paddingTop",S)+b("paddingBottom",S),W=b("paddingLeft",S)+b("paddingRight",S),O=b("fontSize",S)*(e.lineThreshold||.2),H=S.textAlign,V=[],R=[],j=[],M=e.wordDelimiter||" ",k=e.tag?e.tag:e.span?"span":"div",P=e.type||e.split||"chars,words,lines",z=C&&~P.indexOf("lines")?[]:null,$=~P.indexOf("words"),q=~P.indexOf("chars"),G=B(e),I=e.linesClass,J=~(I||"").indexOf("++"),K=[],Q="flex"===S.display,U=D.style.display;for(J&&(I=I.split("++").join("")),Q&&(D.style.display="block"),E=D.getElementsByTagName("*"),l=E.length,r=[],s=0;s<l;s++)r[s]=E[s];if(z||G)for(s=0;s<l;s++)o=r[s],d=o.parentNode===D,(d||G||q&&!$)&&(w=o.offsetTop,z&&d&&Math.abs(w-v)>O&&("BR"!==o.nodeName||0===s)&&(a=[],z.push(a),v=w),G&&(o._x=o.offsetLeft,o._y=w,o._w=o.offsetWidth,o._h=o.offsetHeight),z&&((o._isSplit&&d||!q&&d||$&&d||!$&&o.parentNode.parentNode===D&&!o.parentNode._isSplit)&&(a.push(o),o._x-=m,x(o,D,M)&&(o._wordEnd=!0)),"BR"===o.nodeName&&(o.nextSibling&&"BR"===o.nextSibling.nodeName||0===s)&&z.push([])));for(s=0;s<l;s++)if(o=r[s],d=o.parentNode===D,"BR"!==o.nodeName)if(G&&(A=o.style,$||d||(o._x+=o.parentNode._x,o._y+=o.parentNode._y),A.left=o._x+"px",A.top=o._y+"px",A.position="absolute",A.display="block",A.width=o._w+1+"px",A.height=o._h+"px"),!$&&q)if(o._isSplit)for(o._next=E=o.nextSibling,o.parentNode.appendChild(o);E&&3===E.nodeType&&" "===E.textContent;)o._next=E.nextSibling,o.parentNode.appendChild(E),E=E.nextSibling;else o.parentNode._isSplit?(o._parent=o.parentNode,!o.previousSibling&&o.firstChild&&(o.firstChild._isFirst=!0),o.nextSibling&&" "===o.nextSibling.textContent&&!o.nextSibling.nextSibling&&K.push(o.nextSibling),o._next=o.nextSibling&&o.nextSibling._isFirst?null:o.nextSibling,o.parentNode.removeChild(o),r.splice(s--,1),l--):d||(w=!o.nextSibling&&x(o.parentNode,D,M),o.parentNode._parent&&o.parentNode._parent.appendChild(o),w&&o.parentNode.appendChild(u.createTextNode(" ")),"span"===k&&(o.style.display="inline"),V.push(o));else o.parentNode._isSplit&&!o._isSplit&&""!==o.innerHTML?R.push(o):q&&!o._isSplit&&("span"===k&&(o.style.display="inline"),V.push(o));else z||G?(o.parentNode&&o.parentNode.removeChild(o),r.splice(s--,1),l--):$||D.appendChild(o);for(s=K.length;--s>-1;)K[s].parentNode.removeChild(K[s]);if(z){for(G&&(f=u.createElement(k),D.appendChild(f),_=f.offsetWidth+"px",w=f.offsetParent===D?0:D.offsetLeft,D.removeChild(f)),A=D.style.cssText,D.style.cssText="display:none;";D.firstChild;)D.removeChild(D.firstChild);for(p=" "===M&&(!G||!$&&!q),s=0;s<z.length;s++){for(a=z[s],f=u.createElement(k),f.style.cssText="display:block;text-align:"+H+";position:"+(G?"absolute;":"relative;"),I&&(f.className=I+(J?s+1:"")),j.push(f),l=a.length,E=0;E<l;E++)"BR"!==a[E].nodeName&&(o=a[E],f.appendChild(o),p&&o._wordEnd&&f.appendChild(u.createTextNode(" ")),G&&(0===E&&(f.style.top=o._y+"px",f.style.left=m+w+"px"),o.style.top="0px",w&&(o.style.left=o._x-w+"px")));0===l?f.innerHTML=" ":$||q||(y(f),c(f,String.fromCharCode(160)," ")),G&&(f.style.width=_,f.style.height=o._h+"px"),D.appendChild(f)}D.style.cssText=A}G&&(n>D.clientHeight&&(D.style.height=n-L+"px",D.clientHeight<n&&(D.style.height=n+T+"px")),i>D.clientWidth&&(D.style.width=i-W+"px",D.clientWidth<i&&(D.style.width=i+N+"px"))),Q&&(U?D.style.display=U:D.style.removeProperty("display")),g(t,V),$&&g(F,R),g(C,j)},w=(e,t,F,C)=>{let i,l,o,r,d,a,p,h,f=t.tag?t.tag:t.span?"span":"div",g=~(t.type||t.split||"chars,words,lines").indexOf("chars"),x=B(t),y=t.wordDelimiter||" ",b=D=>D===y||D===E&&" "===y,_=" "!==y?"":x?"­ ":" ",w="</"+f+">",S=1,m=t.specialChars?"function"==typeof t.specialChars?t.specialChars:A:null,v=u.createElement("div"),T=e.parentNode;for(T.insertBefore(v,e),v.textContent=e.nodeValue,T.removeChild(e),i=function D(u){let e=u.nodeType,t="";if(1===e||9===e||11===e){if("string"==typeof u.textContent)return u.textContent;for(u=u.firstChild;u;u=u.nextSibling)t+=D(u)}else if(3===e||4===e)return u.nodeValue;return t}(e=v),p=-1!==i.indexOf("<"),!1!==t.reduceWhiteSpace&&(i=i.replace(s," ").replace(n,"")),p&&(i=i.split("<").join("{{LT}}")),d=i.length,l=(" "===i.charAt(0)?_:"")+F(),o=0;o<d;o++)if(a=i.charAt(o),m&&(h=m(i.substr(o),t.specialChars)))a=i.substr(o,h||1),l+=g&&" "!==a?C()+a+"</"+f+">":a,o+=h-1;else if(b(a)&&!b(i.charAt(o-1))&&o){for(l+=S?w:"",S=0;b(i.charAt(o+1));)l+=_,o++;o===d-1?l+=_:")"!==i.charAt(o+1)&&(l+=_+F(),S=1)}else"{"===a&&"{{LT}}"===i.substr(o,6)?(l+=g?C()+"{{LT}}</"+f+">":"{{LT}}",o+=5):a.charCodeAt(0)>=55296&&a.charCodeAt(0)<=56319||i.charCodeAt(o+1)>=65024&&i.charCodeAt(o+1)<=65039?(r=((i.substr(o,12).split(D)||[])[1]||"").length||2,l+=g&&" "!==a?C()+i.substr(o,r)+"</"+f+">":i.substr(o,r),o+=r-1):l+=g&&" "!==a?C()+a+"</"+f+">":a;e.outerHTML=l+(S?w:""),p&&c(T,"{{LT}}","<")},S=(D,u,e,t)=>{let F,C,n=i(D.childNodes),s=n.length,E=B(u);if(3!==D.nodeType||s>1){for(u.absolute=!1,F=0;F<s;F++)C=n[F],C._next=C._isFirst=C._parent=C._wordEnd=null,(3!==C.nodeType||/\S+/.test(C.nodeValue))&&(E&&3!==C.nodeType&&"inline"===h(C).display&&(C.style.display="inline-block",C.style.position="relative"),C._isSplit=!0,S(C,u,e,t));return u.absolute=E,void(D._isSplit=!0)}w(D,u,e,t)};class m{constructor(D,u){t||l(),this.elements=i(D),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=u||{},C(this),p&&this.split(u)}split(D){this.isSplit&&this.revert(),this.vars=D=D||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;let u,e,t,F=this.elements.length,C=D.tag?D.tag:D.span?"span":"div",i=f(D.wordsClass,C),n=f(D.charsClass,C);for(;--F>-1;)t=this.elements[F],this._originals[F]={html:t.innerHTML,style:t.getAttribute("style")},u=t.clientHeight,e=t.clientWidth,S(t,D,i,n),_(t,D,this.chars,this.words,this.lines,e,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this}revert(){let D=this._originals;if(!D)throw"revert() call wasn't scoped properly.";return this.elements.forEach((u,e)=>{u.innerHTML=D[e].html,u.setAttribute("style",D[e].style)}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this}static create(D,u){return new m(D,u)}}m.version="3.12.5",m.register=l;export default m;export{m as SplitText}; |
/*! | ||
* TextPlugin 3.12.4 | ||
* TextPlugin 3.12.5 | ||
* https://gsap.com | ||
* | ||
* @license Copyright 2023, GreenSock. All rights reserved. | ||
* @license Copyright 2024, GreenSock. All rights reserved. | ||
* Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. | ||
@@ -10,2 +10,2 @@ * @author: Jack Doyle, jack@greensock.com | ||
let D=/(?:^\s+|\s+$)/g;const u=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function F(D,u,F,E){let e,B=D.firstChild,t=[];for(;B;)3===B.nodeType?(e=(B.nodeValue+"").replace(/^\n+/g,""),E||(e=e.replace(/\s+/g," ")),t.push(...C(e,u,F,E))):"br"===(B.nodeName+"").toLowerCase()?t[t.length-1]+="<br>":t.push(B.outerHTML),B=B.nextSibling;for(e=t.length;e--;)"&"===t[e]&&t.splice(e,1,"&");return t}function C(F,C,E,e){if(F+="",E&&(F=F.trim?F.trim():F.replace(D,"")),C&&""!==C)return F.replace(/>/g,">").replace(/</g,"<").split(C);let B,t,A=[],n=F.length,r=0;for(;r<n;r++)t=F.charAt(r),(t.charCodeAt(0)>=55296&&t.charCodeAt(0)<=56319||F.charCodeAt(r+1)>=65024&&F.charCodeAt(r+1)<=65039)&&(B=((F.substr(r,12).split(u)||[])[1]||"").length||2,t=F.substr(r,B),A.emoji=1,r+=B-1),A.push(">"===t?">":"<"===t?"<":!e||" "!==t||" "!==F.charAt(r-1)&&" "!==F.charAt(r+1)?t:" ");return A}let E,e;const B={version:"3.12.4",name:"text",init(D,u,C){"object"!=typeof u&&(u={value:u});let E,B,t,A,n,r,l,s,i=D.nodeName.toUpperCase(),o=this,{newClass:a,oldClass:p,preserveSpaces:f,rtl:g}=u,d=o.delimiter=u.delimiter||"",h=o.fillChar=u.fillChar||(u.padSpace?" ":"");if(o.svg=D.getBBox&&("TEXT"===i||"TSPAN"===i),!("innerHTML"in D)&&!o.svg)return!1;if(o.target=D,"value"in u){for(t=F(D,d,!1,f),e||(e=document.createElement("div")),e.innerHTML=u.value,B=F(e,d,!1,f),o.from=C._from,!o.from&&!g||g&&o.from||(i=t,t=B,B=i),o.hasClass=!(!a&&!p),o.newClass=g?p:a,o.oldClass=g?a:p,i=t.length-B.length,E=i<0?t:B,i<0&&(i=-i);--i>-1;)E.push(h);if("diff"===u.type){for(A=0,n=[],r=[],l="",i=0;i<B.length;i++)s=B[i],s===t[i]?l+=s:(n[A]=l+s,r[A++]=l+t[i],l="");B=n,t=r,l&&(B.push(l),t.push(l))}u.speed&&C.duration(Math.min(.05/u.speed*E.length,u.maxDuration||9999)),o.rtl=g,o.original=t,o.text=B,o._props.push("text")}else o.text=o.original=[""]},render(D,u){D>1?D=1:D<0&&(D=0),u.from&&(D=1-D);let F,C,E,{text:e,hasClass:B,newClass:t,oldClass:A,delimiter:n,target:r,fillChar:l,original:s,rtl:i}=u,o=e.length,a=(i?1-D:D)*o+.5|0;B&&D?(F=t&&a,C=A&&a!==o,E=(F?"<span class='"+t+"'>":"")+e.slice(0,a).join(n)+(F?"</span>":"")+(C?"<span class='"+A+"'>":"")+n+s.slice(a).join(n)+(C?"</span>":"")):E=e.slice(0,a).join(n)+n+s.slice(a).join(n),u.svg?r.textContent=E:r.innerHTML=" "===l&&~E.indexOf(" ")?E.split(" ").join(" "):E}};B.splitInnerHTML=F,B.emojiSafeSplit=C,B.getText=function D(u){let F=u.nodeType,C="";if(1===F||9===F||11===F){if("string"==typeof u.textContent)return u.textContent;for(u=u.firstChild;u;u=u.nextSibling)C+=D(u)}else if(3===F||4===F)return u.nodeValue;return C},(E||"undefined"!=typeof window&&(E=window.gsap)&&E.registerPlugin&&E)&&E.registerPlugin(B);export default B;export{B as TextPlugin}; | ||
let D=/(?:^\s+|\s+$)/g;const u=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function F(D,u,F,E){let e,B=D.firstChild,t=[];for(;B;)3===B.nodeType?(e=(B.nodeValue+"").replace(/^\n+/g,""),E||(e=e.replace(/\s+/g," ")),t.push(...C(e,u,F,E))):"br"===(B.nodeName+"").toLowerCase()?t[t.length-1]+="<br>":t.push(B.outerHTML),B=B.nextSibling;for(e=t.length;e--;)"&"===t[e]&&t.splice(e,1,"&");return t}function C(F,C,E,e){if(F+="",E&&(F=F.trim?F.trim():F.replace(D,"")),C&&""!==C)return F.replace(/>/g,">").replace(/</g,"<").split(C);let B,t,A=[],n=F.length,r=0;for(;r<n;r++)t=F.charAt(r),(t.charCodeAt(0)>=55296&&t.charCodeAt(0)<=56319||F.charCodeAt(r+1)>=65024&&F.charCodeAt(r+1)<=65039)&&(B=((F.substr(r,12).split(u)||[])[1]||"").length||2,t=F.substr(r,B),A.emoji=1,r+=B-1),A.push(">"===t?">":"<"===t?"<":!e||" "!==t||" "!==F.charAt(r-1)&&" "!==F.charAt(r+1)?t:" ");return A}let E,e;const B={version:"3.12.5",name:"text",init(D,u,C){"object"!=typeof u&&(u={value:u});let E,B,t,A,n,r,l,s,i=D.nodeName.toUpperCase(),o=this,{newClass:a,oldClass:p,preserveSpaces:f,rtl:g}=u,d=o.delimiter=u.delimiter||"",h=o.fillChar=u.fillChar||(u.padSpace?" ":"");if(o.svg=D.getBBox&&("TEXT"===i||"TSPAN"===i),!("innerHTML"in D)&&!o.svg)return!1;if(o.target=D,"value"in u){for(t=F(D,d,!1,f),e||(e=document.createElement("div")),e.innerHTML=u.value,B=F(e,d,!1,f),o.from=C._from,!o.from&&!g||g&&o.from||(i=t,t=B,B=i),o.hasClass=!(!a&&!p),o.newClass=g?p:a,o.oldClass=g?a:p,i=t.length-B.length,E=i<0?t:B,i<0&&(i=-i);--i>-1;)E.push(h);if("diff"===u.type){for(A=0,n=[],r=[],l="",i=0;i<B.length;i++)s=B[i],s===t[i]?l+=s:(n[A]=l+s,r[A++]=l+t[i],l="");B=n,t=r,l&&(B.push(l),t.push(l))}u.speed&&C.duration(Math.min(.05/u.speed*E.length,u.maxDuration||9999)),o.rtl=g,o.original=t,o.text=B,o._props.push("text")}else o.text=o.original=[""]},render(D,u){D>1?D=1:D<0&&(D=0),u.from&&(D=1-D);let F,C,E,{text:e,hasClass:B,newClass:t,oldClass:A,delimiter:n,target:r,fillChar:l,original:s,rtl:i}=u,o=e.length,a=(i?1-D:D)*o+.5|0;B&&D?(F=t&&a,C=A&&a!==o,E=(F?"<span class='"+t+"'>":"")+e.slice(0,a).join(n)+(F?"</span>":"")+(C?"<span class='"+A+"'>":"")+n+s.slice(a).join(n)+(C?"</span>":"")):E=e.slice(0,a).join(n)+n+s.slice(a).join(n),u.svg?r.textContent=E:r.innerHTML=" "===l&&~E.indexOf(" ")?E.split(" ").join(" "):E}};B.splitInnerHTML=F,B.emojiSafeSplit=C,B.getText=function D(u){let F=u.nodeType,C="";if(1===F||9===F||11===F){if("string"==typeof u.textContent)return u.textContent;for(u=u.firstChild;u;u=u.nextSibling)C+=D(u)}else if(3===F||4===F)return u.nodeValue;return C},(E||"undefined"!=typeof window&&(E=window.gsap)&&E.registerPlugin&&E)&&E.registerPlugin(B);export default B;export{B as TextPlugin}; |
@@ -93,6 +93,7 @@ declare namespace gsap { | ||
* @static | ||
* @param {string} [scrollRestoration] | ||
* @memberof ScrollTrigger | ||
* @link https://greensock.com/docs/v3/Plugins/ScrollTrigger/static.clearScrollMemory() | ||
*/ | ||
static clearScrollMemory(): void; | ||
static clearScrollMemory(scrollRestoration?: string): void; | ||
@@ -99,0 +100,0 @@ /** |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1372218
16232