PageSourceSearch

https://openbmb.cn/assets/js/vendor-IEMZZwl2.js

js openbmb.cn collected 2026-10-02 05:49:27 UTC 301,020 bytes, 9 lines download raw bytes

vendor: 41,839 bytes, line 1
1var ig=Object.defineProperty;var rg=(n,t,e)=>t in n?ig(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var B=(n,t,e)=>rg(n,typeof t!="symbol"?t+"":t,e);import{r as A,j as Fn,b as Nt,c as Ls,g as Ph}from"./react-vendor-Dg-XgdGg.js";const ql=A.createContext({});function Ps(n){const t=A.useRef(null);return t.current===null&&(t.current=n()),t.current}const sg=typeof window<"u",Xo=sg?A.useLayoutEffect:A.useEffect,Go=A.createContext(null);function Ql(n,t){n.indexOf(t)===-1&&n.push(t)}function So(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const Pn=(n,t,e)=>e>t?t:e<n?n:e;let Zl=()=>{};const li={},Ch=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),Eh=n=>typeof n=="object"&&n!==null,Mh=n=>/^0[^.\s]+$/u.test(n);function Ah(n){let t;return()=>(t===void 0&&(t=n()),t)}const Je=n=>n,Cs=(...n)=>n.reduce((t,e)=>i=>e(t(i))),ls=(n,t,e)=>{const i=t-n;return i?(e-n)/i:1};class Jl{constructor(){this.subscriptions=[]}add(t){return Ql(this.subscriptions,t),()=>So(this.subscriptions,t)}notify(t,e,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,e,i);else for(let s=0;s<r;s++){const o=this.subscriptions[s];o&&o(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const We=n=>n*1e3,qe=n=>n/1e3,Rh=(n,t)=>t?n*(1e3/t):0,Dh=(n,t,e)=>(((1-3*e+3*t)*n+(3*e-6*t))*n+3*t)*n,og=1e-7,ag=12;function lg(n,t,e,i,r){let s,o,a=0;do o=t+(e-t)/2,s=Dh(o,i,r)-n,s>0?e=o:t=o;while(Math.abs(s)>og&&++a<ag);return o}function Es(n,t,e,i){if(n===t&&e===i)return Je;const r=s=>lg(s,0,1,n,e);return s=>s===0||s===1?s:Dh(r(s),t,i)}const kh=n=>t=>t<=.5?n(2*t)/2:(2-n(2*(1-t)))/2,Oh=n=>t=>1-n(1-t),Vh=Es(.33,1.53,.69,.99),tu=Oh(Vh),Lh=kh(tu),Ih=n=>n>=1?1:(n*=2)<1?.5*tu(n):.5*(2-Math.pow(2,-10*(n-1))),eu=n=>1-Math.sin(Math.acos(n)),Fh=Oh(eu),Bh=kh(eu),ug=Es(.42,0,1,1),cg=Es(0,0,.58,1),Nh=Es(.42,0,.58,1),fg=n=>Array.isArray(n)&&typeof n[0]!="number",zh=n=>Array.isArray(n)&&typeof n[0]=="number",hg={linear:Je,easeIn:ug,easeInOut:Nh,easeOut:cg,circIn:eu,circInOut:Bh,circOut:Fh,backIn:tu,backInOut:Lh,backOut:Vh,anticipate:Ih},dg=n=>typeof n=="string",nc=n=>{if(zh(n)){Zl(n.length===4);const[t,e,i,r]=n;return Es(t,e,i,r)}else if(dg(n))return hg[n];return n},Is=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function pg(n){let t=new Set,e=new Set,i=!1,r=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){s.has(u)&&(l.schedule(u),n()),u(o)}const l={schedule:(u,c=!1,f=!1)=>{const d=f&&i?t:e;return c&&s.add(u),d.add(u),u},cancel:u=>{e.delete(u),s.delete(u)},process:u=>{if(o=u,i){r=!0;return}i=!0;const c=t;t=e,e=c,t.forEach(a),t.clear(),i=!1,r&&(r=!1,l.process(u))}};return l}const mg=40;function jh(n,t){let e=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>e=!0,o=Is.reduce((y,v)=>(y[v]=pg(s),y),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:h,render:d,postRender:p}=o,m=()=>{const y=li.useManualTiming,v=y?r.timestamp:performance.now();e=!1,y||(r.delta=i?1e3/60:Math.max(Math.min(v-r.timestamp,mg),1)),r.timestamp=v,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),f.process(r),h.process(r),d.process(r),p.process(r),r.isProcessing=!1,e&&t&&(i=!1,n(m))},g=()=>{e=!0,i=!0,r.isProcessing||n(m)};return{schedule:Is.reduce((y,v)=>{const T=o[v];return y[v]=(E,x=!1,S=!1)=>(e||g(),T.schedule(E,x,S)),y},{}),cancel:y=>{for(let v=0;v<Is.length;v++)o[Is[v]].cancel(y)},state:r,steps:o}}const{schedule:at,cancel:jn,state:Kt,steps:sa}=jh(typeof requestAnimationFrame<"u"?requestAnimationFrame:Je,!0);let eo;function gg(){eo=void 0}const be={now:()=>(eo===void 0&&be.set(Kt.isProcessing||li.useManualTiming?Kt.timestamp:performance.now()),eo),set:n=>{eo=n,queueMicrotask(gg)}},Wh=n=>t=>typeof t=="string"&&t.startsWith(n),Uh=Wh("--"),yg=Wh("var(--"),nu=n=>yg(n)?_g.test(n.split("/*")[0].trim()):!1,_g=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ic(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const Er={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},us={...Er,transform:n=>Pn(0,1,n)},Fs={...Er,default:1},$r=n=>Math.round(n*1e5)/1e5,iu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vg(n){return n==null}const wg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ru=(n,t)=>e=>!!(typeof e=="string"&&wg.test(e)&&e.startsWith(n)||t&&!vg(e)&&Object.prototype.hasOwnProperty.call(e,t)),Yh=(n,t,e)=>i=>{if(typeof i!="string")return i;const[r,s,o,a]=i.match(iu);return{[n]:parseFloat(r),[t]:parseFloat(s),[e]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Tg=n=>Pn(0,255,n),oa={...Er,transform:n=>Math.round(Tg(n))},Mi={test:ru("rgb","red"),parse:Yh("red","green","blue"),transform:({red:n,green:t,blue:e,alpha:i=1})=>"rgba("+oa.transform(n)+", "+oa.transform(t)+", "+oa.transform(e)+", "+$r(us.transform(i))+")"};function bg(n){let t="",e="",i="",r="";return n.length>5?(t=n.substring(1,3),e=n.substring(3,5),i=n.substring(5,7),r=n.substring(7,9)):(t=n.substring(1,2),e=n.substring(2,3),i=n.substring(3,4),r=n.substring(4,5),t+=t,e+=e,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(e,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Za={test:ru("#"),parse:bg,transform:Mi.transform},Ms=n=>({test:t=>typeof t=="string"&&t.endsWith(n)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${n}`}),kn=Ms("deg"),Sn=Ms("%"),I=Ms("px"),xg=Ms("vh"),Sg=Ms("vw"),rc={...Sn,parse:n=>Sn.parse(n)/100,transform:n=>Sn.transform(n*100)},rr={test:ru("hsl","hue"),parse:Yh("hue","saturation","lightness"),transform:({hue:n,saturation:t,lightness:e,alpha:i=1})=>"hsla("+Math.round(n)+", "+Sn.transform($r(t))+", "+Sn.transform($r(e))+", "+$r(us.transform(i))+")"},Ot={test:n=>Mi.test(n)||Za.test(n)||rr.test(n),parse:n=>Mi.test(n)?Mi.parse(n):rr.test(n)?rr.parse(n):Za.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Mi.transform(n):rr.transform(n),getAnimatableNone:n=>{const t=Ot.parse(n);return t.alpha=0,Ot.transform(t)}},Pg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Cg(n){return isNaN(n)&&typeof n=="string"&&(n.match(iu)?.length||0)+(n.match(Pg)?.length||0)>0}const Hh="number",$h="color",Eg="var",Mg="var(",sc="${}",Ag=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wr(n){const t=n.toString(),e=[],i={color:[],number:[],var:[]},r=[];let s=0;const a=t.replace(Ag,l=>(Ot.test(l)?(i.color.push(s),r.push($h),e.push(Ot.parse(l))):l.startsWith(Mg)?(i.var.push(s),r.push(Eg),e.push(l)):(i.number.push(s),r.push(Hh),e.push(parseFloat(l))),++s,sc)).split(sc);return{values:e,split:a,indexes:i,types:r}}function Rg(n){return wr(n).values}function Xh({split:n,types:t}){const e=n.length;return i=>{let r="";for(let s=0;s<e;s++)if(r+=n[s],i[s]!==void 0){const o=t[s];o===Hh?r+=$r(i[s]):o===$h?r+=Ot.transform(i[s]):r+=i[s]}return r}}function Dg(n){return Xh(wr(n))}const kg=n=>typeof n=="number"?0:Ot.test(n)?Ot.getAnimatableNone(n):n,Og=(n,t)=>typeof n=="number"?t?.trim().endsWith("/")?n:0:kg(n);function Vg(n){const t=wr(n);return Xh(t)(t.values.map((i,r)=>Og(i,t.split[r])))}const fn={test:Cg,parse:Rg,createTransformer:Dg,getAnimatableNone:Vg};function aa(n,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?n+(t-n)*6*e:e<1/2?t:e<2/3?n+(t-n)*(2/3-e)*6:n}function Lg({hue:n,saturation:t,lightness:e,alpha:i}){n/=360,t/=100,e/=100;let r=0,s=0,o=0;if(!t)r=s=o=e;else{const a=e<.5?e*(1+t):e+t-e*t,l=2*e-a;r=aa(l,a,n+1/3),s=aa(l,a,n),o=aa(l,a,n-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:i}}function Po(n,t){return e=>e>0?t:n}const ft=(n,t,e)=>n+(t-n)*e,la=(n,t,e)=>{const i=n*n,r=e*(t*t-i)+i;return r<0?0:Math.sqrt(r)},Ig=[Za,Mi,rr],Fg=n=>Ig.find(t=>t.test(n));function oc(n){const t=Fg(n);if(!t)return!1;let e=t.parse(n);return t===rr&&(e=Lg(e)),e}const ac=(n,t)=>{const e=oc(n),i=oc(t);if(!e||!i)return Po(n,t);const r={...e};return s=>(r.red=la(e.red,i.red,s),r.green=la(e.green,i.green,s),r.blue=la(e.blue,i.blue,s),r.alpha=ft(e.alpha,i.alpha,s),Mi.transform(r))},Ja=new Set(["none","hidden"]);function Bg(n,t){return Ja.has(n)?e=>e<=0?n:t:e=>e>=1?t:n}function Ng(n,t){return e=>ft(n,t,e)}function su(n){return typeof n=="number"?Ng:typeof n=="string"?nu(n)?Po:Ot.test(n)?ac:Wg:Array.isArray(n)?Gh:typeof n=="object"?Ot.test(n)?ac:zg:Po}function Gh(n,t){const e=[...n],i=e.length,r=n.map((s,o)=>su(s)(s,t[o]));return s=>{for(let o=0;o<i;o++)e[o]=r[o](s);return e}}function zg(n,t){const e={...n,...t},i={};for(const r in e)n[r]!==void 0&&t[r]!==void 0&&(i[r]=su(n[r])(n[r],t[r]));return r=>{for(const s in i)e[s]=i[s](r);return e}}function jg(n,t){const e=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const s=t.types[r],o=n.indexes[s][i[s]],a=n.values[o]??0;e[r]=a,i[s]++}return e}const Wg=(n,t)=>{const e=fn.createTransformer(t),i=wr(n),r=wr(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Ja.has(n)&&!r.values.length||Ja.has(t)&&!i.values.length?Bg(n,t):Cs(Gh(jg(i,r),r.values),e):Po(n,t)};function Kh(n,t,e){return typeof n=="number"&&typeof t=="number"&&typeof e=="number"?ft(n,t,e):su(n)(n,t)}const Ug=n=>{const t=({timestamp:e})=>n(e);return{start:(e=!0)=>at.update(t,e),stop:()=>jn(t),now:()=>Kt.isProcessing?Kt.timestamp:be.now()}},qh=(n,t,e=10)=>{let i="";const r=Math.max(Math.round(t/e),2);for(let s=0;s<r;s++)i+=Math.round(n(s/(r-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Co=2e4;function ou(n){let t=0;const e=50;let i=n.next(t);for(;!i.done&&t<Co;)t+=e,i=n.next(t);return t>=Co?1/0:t}function Yg(n,t=100,e){const i=e({...n,keyframes:[0,t]}),r=Math.min(ou(i),Co);return{type:"keyframes",ease:s=>i.next(r*s).value/t,duration:qe(r)}}const xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tl(n,t){return n*Math.sqrt(1-t*t)}const Hg=12;function $g(n,t,e){let i=e;for(let r=1;r<Hg;r++)i=i-n(i)/t(i);return i}const ua=.001;function Xg({duration:n=xt.duration,bounce:t=xt.bounce,velocity:e=xt.velocity,mass:i=xt.mass}){let r,s,o=1-t;o=Pn(xt.minDamping,xt.maxDamping,o),n=Pn(xt.minDuration,xt.maxDuration,qe(n)),o<1?(r=u=>{const c=u*o,f=c*n,h=c-e,d=tl(u,o),p=Math.exp(-f);return ua-h/d*p},s=u=>{const f=u*o*n,h=f*e+e,d=Math.pow(o,2)*Math.pow(u,2)*n,p=Math.exp(-f),m=tl(Math.pow(u,2),o);return(-r(u)+ua>0?-1:1)*((h-d)*p)/m}):(r=u=>{const c=Math.exp(-u*n),f=(u-e)*n+1;return-ua+c*f},s=u=>{const c=Math.exp(-u*n),f=(e-u)*(n*n);return c*f});const a=5/n,l=$g(r,s,a);if(n=We(n),isNaN(l))return{stiffness:xt.stiffness,damping:xt.damping,duration:n};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:n}}}const Gg=["duration","bounce"],Kg=["stiffness","damping","mass"];function lc(n,t){return t.some(e=>n[e]!==void 0)}function qg(n){let t={velocity:xt.velocity,stiffness:xt.stiffness,damping:xt.damping,mass:xt.mass,isResolvedFromDuration:!1,...n};if(!lc(n,Kg)&&lc(n,Gg))if(t.velocity=0,n.visualDuration){const e=n.visualDuration,i=2*Math.PI/(e*1.2),r=i*i,s=2*Pn(.05,1,1-(n.bounce||0))*Math.sqrt(r);t={...t,mass:xt.mass,stiffness:r,damping:s}}else{const e=Xg({...n,velocity:0});t={...t,...e,mass:xt.mass},t.isResolvedFromDuration=!0}return t}function Eo(n=xt.visualDuration,t=xt.bounce){const e=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:t}:n;let{restSpeed:i,restDelta:r}=e;const s=e.keyframes[0],o=e.keyframes[e.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:f,velocity:h,isResolvedFromDuration:d}=qg({...e,velocity:-qe(e.velocity||0)}),p=h||0,m=u/(2*Math.sqrt(l*c)),g=o-s,_=qe(Math.sqrt(l/c)),w=Math.abs(g)<5;i||(i=w?xt.restSpeed.granular:xt.restSpeed.default),r||(r=w?xt.restDelta.granular:xt.restDelta.default);let y,v,T,E,x,S;if(m<1)T=tl(_,m),E=(p+m*_*g)/T,y=P=>{const D=Math.exp(-m*_*P);return o-D*(E*Math.sin(T*P)+g*Math.cos(T*P))},x=m*_*E+g*T,S=m*_*g-E*T,v=P=>Math.exp(-m*_*P)*(x*Math.sin(T*P)+S*Math.cos(T*P));else if(m===1){y=D=>o-Math.exp(-_*D)*(g+(p+_*g)*D);const P=p+_*g;v=D=>Math.exp(-_*D)*(_*P*D-p)}else{const P=_*Math.sqrt(m*m-1);y=O=>{const F=Math.exp(-m*_*O),j=Math.min(P*O,300);return o-F*((p+m*_*g)*Math.sinh(j)+P*g*Math.cosh(j))/P};const D=(p+m*_*g)/P,R=m*_*D-g*P,V=m*_*g-D*P;v=O=>{const F=Math.exp(-m*_*O),j=Math.min(P*O,300);return F*(R*Math.sinh(j)+V*Math.cosh(j))}}const C={calculatedDuration:d&&f||null,velocity:P=>We(v(P)),next:P=>{if(!d&&m<1){const R=Math.exp(-m*_*P),V=Math.sin(T*P),O=Math.cos(T*P),F=o-R*(E*V+g*O),j=We(R*(x*V+S*O));return a.done=Math.abs(j)<=i&&Math.abs(o-F)<=r,a.value=a.done?o:F,a}const D=y(P);if(d)a.done=P>=f;else{const R=We(v(P));a.done=Math.abs(R)<=i&&Math.abs(o-D)<=r}return a.value=a.done?o:D,a},toString:()=>{const P=Math.min(ou(C),Co),D=qh(R=>C.next(P*R).value,P,30);return P+"ms "+D},toTransition:()=>{}};return C}Eo.applyToOptions=n=>{const t=Yg(n,100,Eo);return n.ease=t.ease,n.duration=We(t.duration),n.type="keyframes",n};const Qg=5;function Qh(n,t,e){const i=Math.max(t-Qg,0);return Rh(e-n(i),t-i)}function el({keyframes:n,velocity:t=0,power:e=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=n[0],h={done:!1,value:f},d=S=>a!==void 0&&S<a||l!==void 0&&S>l,p=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let m=e*t;const g=f+m,_=o===void 0?g:o(g);_!==g&&(m=_-f);const w=S=>-m*Math.exp(-S/i),y=S=>_+w(S),v=S=>{const C=w(S),P=y(S);h.done=Math.abs(C)<=u,h.value=h.done?_:P};let T,E;const x=S=>{d(h.value)&&(T=S,E=Eo({keyframes:[h.value,p(h.value)],velocity:Qh(y,S,h.value),damping:r,stiffness:s,restDelta:u,restSpeed:c}))};return x(0),{calculatedDuration:null,next:S=>{let C=!1;return!E&&T===void 0&&(C=!0,v(S),x(S)),T!==void 0&&S>=T?E.next(S-T):(!C&&v(S),h)}}}function Zg(n,t,e){const i=[],r=e||li.mix||Kh,s=n.length-1;for(let o=0;o<s;o++){let a=r(n[o],n[o+1]);if(t){const l=Array.isArray(t)?t[o]||Je:t;a=Cs(l,a)}i.push(a)}return i}function Zh(n,t,{clamp:e=!0,ease:i,mixer:r}={}){const s=n.length;if(Zl(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=n[0]===n[1];n[0]>n[s-1]&&(n=[...n].reverse(),t=[...t].reverse());const a=Zg(t,i,r),l=a.length,u=c=>{if(o&&c<n[0])return t[0];let f=0;if(l>1)for(;f<n.length-2&&!(c<n[f+1]);f++);const h=ls(n[f],n[f+1],c);return a[f](h)};return e?c=>u(Pn(n[0],n[s-1],c)):u}function Jg(n,t){const e=n[n.length-1];for(let i=1;i<=t;i++){const r=ls(0,t,i);n.push(ft(e,1,r))}}function t0(n){const t=[0];return Jg(t,n.length-1),t}function e0(n,t){return n.map(e=>e*t)}function n0(n,t){return n.map(()=>t||Nh).splice(0,n.length-1)}function Xr({duration:n=300,keyframes:t,times:e,ease:i="easeInOut"}){const r=fg(i)?i.map(nc):nc(i),s={done:!1,value:t[0]},o=e0(e&&e.length===t.length?e:t0(t),n),a=Zh(o,t,{ease:Array.isArray(r)?r:n0(t,r)});return{calculatedDuration:n,next:l=>(s.value=a(l),s.done=l>=n,s)}}const i0=n=>n!==null;function Ko(n,{repeat:t,repeatType:e="loop"},i,r=1){const s=n.filter(i0),a=r<0||t&&e!=="loop"&&t%2===1?0:s.length-1;return!a||i===void 0?s[a]:i}const r0={decay:el,inertia:el,tween:Xr,keyframes:Xr,spring:Eo};function Jh(n){typeof n.type=="string"&&(n.type=r0[n.type])}class au{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const s0=n=>n/100;class cs extends au{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==be.now()&&this.tick(be.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Jh(t);const{type:e=Xr,repeat:i=0,repeatDelay:r=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=e||Xr;l!==Xr&&typeof a[0]!="number"&&(this.mixKeyframes=Cs(s0,Kh(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=ou(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=u}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:i,totalDuration:r,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return i.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:h,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const _=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?_<0:_>r;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,v=i;if(f){const S=Math.min(this.currentTime,r)/a;let C=Math.floor(S),P=S%1;!P&&S>=1&&(P=1),P===1&&C--,C=Math.min(C,f+1),!!(C%2)&&(h==="reverse"?(P=1-P,d&&(P-=d/a)):h==="mirror"&&(v=o)),y=Pn(0,1,P)*a}let T;w?(this.delayState.value=c[0],T=this.delayState):T=v.next(y),s&&!w&&(T.value=s(T.value));let{done:E}=T;!w&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return x&&p!==el&&(T.value=Ko(c,this.options,g,this.speed)),m&&m(T.value),x&&this.finish(),T}then(t,e){return this.finished.then(t,e)}get duration(){return qe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+qe(t)}get time(){return qe(this.currentTime)}set time(t){t=We(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const e=this.generator.next(t).value;return Qh(i=>this.generator.next(i).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(be.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=qe(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Ug,startTime:e}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(be.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function o0(n){for(let t=1;t<n.length;t++)n[t]??(n[t]=n[t-1])}const Ai=n=>n*180/Math.PI,nl=n=>{const t=Ai(Math.atan2(n[1],n[0]));return il(t)},a0={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:nl,rotateZ:nl,skewX:n=>Ai(Math.atan(n[1])),skewY:n=>Ai(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},il=n=>(n=n%360,n<0&&(n+=360),n),uc=nl,cc=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),fc=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),l0={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cc,scaleY:fc,scale:n=>(cc(n)+fc(n))/2,rotateX:n=>il(Ai(Math.atan2(n[6],n[5]))),rotateY:n=>il(Ai(Math.atan2(-n[2],n[0]))),rotateZ:uc,rotate:uc,skewX:n=>Ai(Math.atan(n[4])),skewY:n=>Ai(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function rl(n){return n.includes("scale")?1:0}function sl(n,t){if(!n||n==="none")return rl(t);const e=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,r;if(e)i=l0,r=e;else{const a=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=a0,r=a}if(!r)return rl(t);const s=i[t],o=r[1].split(",").map(c0);return typeof s=="function"?s(o):o[s]}const u0=(n,t)=>{const{transform:e="none"}=getComputedStyle(n);return sl(e,t)};function c0(n){return parseFloat(n.trim())}const Mr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ar=new Set([...Mr,"pathRotation"]),hc=n=>n===Er||n===I,f0=new Set(["x","y","z"]),h0=Mr.filter(n=>!f0.has(n));function d0(n){const t=[];return h0.forEach(e=>{const i=n.getValue(e);i!==void 0&&(t.push([e,i.get()]),i.set(e.startsWith("scale")?1:0))}),t}const Jn={width:({x:n},{paddingLeft:t="0",paddingRight:e="0",boxSizing:i})=>{const r=n.max-n.min;return i==="border-box"?r:r-parseFloat(t)-parseFloat(e)},height:({y:n},{paddingTop:t="0",paddingBottom:e="0",boxSizing:i})=>{const r=n.max-n.min;return i==="border-box"?r:r-parseFloat(t)-parseFloat(e)},top:(n,{top:t})=>parseFloat(t),left:(n,{left:t})=>parseFloat(t),bottom:({y:n},{top:t})=>parseFloat(t)+(n.max-n.min),right:({x:n},{left:t})=>parseFloat(t)+(n.max-n.min),x:(n,{transform:t})=>sl(t,"x"),y:(n,{transform:t})=>sl(t,"y")};Jn.translateX=Jn.x;Jn.translateY=Jn.y;const ki=new Set;let ol=!1,al=!1,ll=!1;function td(){if(al){const n=Array.from(ki).filter(i=>i.needsMeasurement),t=new Set(n.map(i=>i.element)),e=new Map;t.forEach(i=>{const r=d0(i);r.length&&(e.set(i,r),i.render())}),n.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=e.get(i);r&&r.forEach(([s,o])=>{i.getValue(s)?.set(o)})}),n.forEach(i=>i.measureEndState()),n.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}al=!1,ol=!1,ki.forEach(n=>n.complete(ll)),ki.clear()}function ed(){ki.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(al=!0)})}function p0(){ll=!0,ed(),td(),ll=!1}class lu{constructor(t,e,i,r,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ki.add(this),ol||(ol=!0,at.read(ed),at.resolveKeyframes(td))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;if(t[0]===null){const s=r?.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(i&&e){const a=i.readValue(e,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),r&&s===void 0&&r.set(t[0])}o0(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ki.delete(this)}cancel(){this.state==="scheduled"&&(ki.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const m0=n=>n.startsWith("--");function nd(n,t,e){m0(t)?n.style.setProperty(t,e):n.style[t]=e}const g0={};function id(n,t){const e=Ah(n);return()=>g0[t]??e()}const y0=id(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),rd=id(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Br=([n,t,e,i])=>`cubic-bezier(${n}, ${t}, ${e}, ${i})`,dc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Br([0,.65,.55,1]),circOut:Br([.55,0,1,.45]),backIn:Br([.31,.01,.66,-.59]),backOut:Br([.33,1.53,.69,.99])};function sd(n,t){if(n)return typeof n=="function"?rd()?qh(n,t):"ease-out":zh(n)?Br(n):Array.isArray(n)?n.map(e=>sd(e,t)||dc.easeOut):dc[n]}function _0(n,t,e,{delay:i=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:e};l&&(c.offset=l);const f=sd(a,r);Array.isArray(f)&&(c.easing=f);const h={delay:i,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),n.animate(c,h)}function od(n){return typeof n=="function"&&"applyToOptions"in n}function v0({type:n,...t}){return od(n)&&rd()?n.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ad extends au{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:r,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Zl(typeof t.type!="string");const u=v0(t);this.animation=_0(e,i,r,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=Ko(r,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),nd(e,i,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return qe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+qe(t)}get time(){return qe(Number(this.animation.currentTime)||0)}set time(t){const e=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=We(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&y0()?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),Je):r(this)}}const ld={anticipate:Ih,backInOut:Lh,circInOut:Bh};function w0(n){return n in ld}function T0(n){typeof n.ease=="string"&&w0(n.ease)&&(n.ease=ld[n.ease])}const ca=10;class b0 extends ad{constructor(t){T0(t),Jh(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:i,onComplete:r,element:s,...o}=this.options;if(!e)return;if(t!==void 0){e.set(t);return}const a=new cs({...o,autoplay:!1}),l=Math.max(ca,be.now()-this.startTime),u=Pn(0,ca,l-ca),c=a.sample(l).value,{name:f}=this.options;s&&f&&nd(s,f,c),e.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const pc=(n,t)=>t==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(fn.test(n)||n==="0")&&!n.startsWith("url("));function x0(n){const t=n[0];if(n.length===1)return!0;for(let e=0;e<n.length;e++)if(n[e]!==t)return!0}function S0(n,t,e,i){const r=n[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=n[n.length-1],o=pc(r,t),a=pc(s,t);return!o||!a?!1:x0(n)||(e==="spring"||od(e))&&i}function ul(n){n.duration=0,n.type="keyframes"}const ud=new Set(["opacity","clipPath","filter","transform"]),P0=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function C0(n){for(let t=0;t<n.length;t++)if(typeof n[t]=="string"&&P0.test(n[t]))return!0;return!1}const E0=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),M0=Ah(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function A0(n){const{motionValue:t,name:e,repeatDelay:i,repeatType:r,damping:s,type:o,keyframes:a}=n;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return M0()&&e&&(ud.has(e)||E0.has(e)&&C0(a))&&(e!=="transform"||!c)&&!u&&!i&&r!=="mirror"&&s!==0&&o!=="inertia"}const R0=40;class D0 extends au{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=be.now();const h={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...f},d=c?.KeyframeResolver||lu;this.keyframeResolver=new d(a,(p,m,g)=>this.onKeyframesResolved(p,m,h,!g),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,r){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=be.now();let f=!0;S0(t,s,o,a)||(f=!1,(li.instantAnimations||!l)&&c?.(Ko(t,i,e)),t[0]=t[t.length-1],ul(i),i.repeat=0);const d={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>R0?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=f&&!u&&A0(d),m=d.motionValue?.owner?.current;let g;if(p)try{g=new b0({...d,element:m})}catch{g=new cs(d)}else g=new cs(d);g.finished.then(()=>{this.notifyFinished()}).catch(Je),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),p0()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function cd(n,t,e,i=0,r=1){const s=Array.from(n).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=n.size,a=(o-1)*i;return typeof e=="function"?e(s,o):r===1?s*i:a-s*i}const mc=30,k0=n=>!isNaN(parseFloat(n)),Gr={current:void 0};class O0{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const r=be.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=be.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=k0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Jl);const i=this.events[t].add(e);return t==="change"?()=>{i(),at.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Gr.current&&Gr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=be.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>mc)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,mc);return Rh(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ji(n,t){return new O0(n,t)}function fd(n,t){if(n?.inherit&&t){const{inherit:e,...i}=n;return{...t,...i}}return n}function uu(n,t){const e=n?.[t]??n?.default??n;return e!==n?fd(e,n):e}const V0={type:"spring",stiffness:500,damping:25,restSpeed:10},L0=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),I0={type:"keyframes",duration:.8},F0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},B0=(n,{keyframes:t})=>t.length>2?I0:Ar.has(n)?n.startsWith("scale")?L0(t[1]):V0:F0,N0=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function z0(n){for(const t in n)if(!N0.has(t))return!0;return!1}const cu=(n,t,e,i={},r,s)=>o=>{const a=uu(i,n)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-We(l);const c={keyframes:Array.isArray(e)?e:[null,e],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:n,motionValue:t,element:s?void 0:r};z0(a)||Object.assign(c,B0(n,c)),c.duration&&(c.duration=We(c.duration)),c.repeatDelay&&(c.repeatDelay=We(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(ul(c),c.delay===0&&(f=!0)),(li.instantAnimations||li.skipAnimations||r?.shouldSkipAnimations||a.skipAnimations)&&(f=!0,ul(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const h=Ko(c.keyframes,a);if(h!==void 0){at.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new cs(c):new D0(c)},j0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function W0(n){const t=j0.exec(n);if(!t)return[,];const[,e,i,r]=t;return[`--${e??i}`,r]}function hd(n,t,e=1){const[i,r]=W0(n);if(!i)return;const s=window.getComputedStyle(t).getPropertyValue(i);if(s){const o=s.trim();return Ch(o)?parseFloat(o):o}return nu(r)?hd(r,t,e+1):r}function gc(n){const t=[{},{}];return n?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function fu(n,t,e,i){if(typeof t=="function"){const[r,s]=gc(i);t=t(e!==void 0?e:n.custom,r,s)}if(typeof t=="string"&&(t=n.variants&&n.variants[t]),typeof t=="function"){const[r,s]=gc(i);t=t(e!==void 0?e:n.custom,r,s)}return t}function Oi(n,t,e){const i=n.getProps();return fu(i,t,e!==void 0?e:i.custom,n)}const dd=new Set(["width","height","top","left","right","bottom",...Mr]),cl=n=>Array.isArray(n);function U0(n,t,e){n.hasValue(t)?n.getValue(t).set(e):n.addValue(t,ji(e))}function Y0(n){return cl(n)?n[n.length-1]||0:n}function H0(n,t){const e=Oi(n,t);let{transitionEnd:i={},transition:r={},...s}=e||{};s={...s,...i};for(const o in s){const a=Y0(s[o]);U0(n,o,a)}}const zt=n=>!!(n&&n.getVelocity);function $0(n){return!!(zt(n)&&n.add)}function fl(n,t){const e=n.getValue("willChange");if($0(e))return e.add(t);if(!e&&li.WillChange){const i=new li.WillChange("auto");n.addValue("willChange",i),i.add(t)}}function hu(n){return n.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const X0="framerAppearId",pd="data-"+hu(X0);function md(n){return n.props[pd]}function G0({protectedKeys:n,needsAnimating:t},e){const i=n.hasOwnProperty(e)&&t[e]!==!0;return t[e]=!1,i}function gd(n,t,{delay:e=0,transitionOverride:i,type:r}={}){let{transition:s,transitionEnd:o,...a}=t;const l=n.getDefaultTransition();s=s?fd(s,l):l;const u=s?.reduceMotion,c=s?.skipAnimations;i&&(s=i);const f=[],h=r&&n.animationState&&n.animationState.getState()[r],d=s?.path;d&&d.animateVisualElement(n,a,s,e,f);for(const p in a){const m=n.getValue(p,n.latestValues[p]??null),g=a[p];if(g===void 0||h&&G0(h,p))continue;const _={delay:e,...uu(s||{},p)};c&&(_.skipAnimations=!0);const w=m.get();if(w!==void 0&&!m.isAnimating()&&!Array.isArray(g)&&g===w&&!_.velocity){at.update(()=>m.set(g));continue}let y=!1;if(window.MotionHandoffAnimation){const E=md(n);if(E){const x=window.MotionHandoffAnimation(E,p,at);x!==null&&(_.startTime=x,y=!0)}}fl(n,p);const v=u??n.shouldReduceMotion;m.start(cu(p,m,g,v&&dd.has(p)?{type:!1}:_,n,y));const T=m.animation;T&&f.push(T)}if(o){const p=()=>at.update(()=>{o&&H0(n,o)});f.length?Promise.all(f).then(p):p()}return f}function hl(n,t,e={}){const i=Oi(n,t,e.type==="exit"?n.presenceContext?.custom:void 0);let{transition:r=n.getDefaultTransition()||{}}=i||{};e.transitionOverride&&(r=e.transitionOverride);const s=i?()=>Promise.all(gd(n,i,e)):()=>Promise.resolve(),o=n.variantChildren&&n.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=r;return K0(n,t,l,u,c,f,e)}:()=>Promise.resolve(),{when:a}=r;if(a){const[l,u]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>u())}else return Promise.all([s(),o(e.delay)])}function K0(n,t,e=0,i=0,r=0,s=1,o){const a=[];for(const l of n.variantChildren)l.notify("AnimationStart",t),a.push(hl(l,t,{...o,delay:e+(typeof i=="function"?0:i)+cd(n.variantChildren,l,i,r,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function q0(n,t,e={}){n.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(s=>hl(n,s,e));i=Promise.all(r)}else if(typeof t=="string")i=hl(n,t,e);else{const r=typeof t=="function"?Oi(n,t,e.custom):t;i=Promise.all(gd(n,r,e))}return i.then(()=>{n.notify("AnimationComplete",t)})}const Q0={test:n=>n==="auto",parse:n=>n},yd=n=>t=>t.test(n),_d=[Er,I,Sn,kn,Sg,xg,Q0],yc=n=>_d.find(yd(n));function Z0(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Mh(n):!0}const J0=new Set(["brightness","contrast","saturate","opacity"]);function ty(n){const[t,e]=n.slice(0,-1).split("(");if(t==="drop-shadow")return n;const[i]=e.match(iu)||[];if(!i)return n;const r=e.replace(i,"");let s=J0.has(t)?1:0;return i!==e&&(s*=100),t+"("+s+r+")"}const ey=/\b([a-z-]*)\(.*?\)/gu,dl={...fn,getAnimatableNone:n=>{const t=n.match(ey);return t?t.map(ty).join(" "):n}},pl={...fn,getAnimatableNone:n=>{const t=fn.parse(n);return fn.createTransformer(n)(t.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},_c={...Er,transform:Math.round},ny={rotate:kn,pathRotation:kn,rotateX:kn,rotateY:kn,rotateZ:kn,scale:Fs,scaleX:Fs,scaleY:Fs,scaleZ:Fs,skew:kn,skewX:kn,skewY:kn,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:us,originX:rc,originY:rc,originZ:I},Mo={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,...ny,zIndex:_c,fillOpacity:us,strokeOpacity:us,numOctaves:_c},iy={...Mo,color:Ot,backgroundColor:Ot,outlineColor:Ot,fill:Ot,stroke:Ot,borderColor:Ot,borderTopColor:Ot,borderRightColor:Ot,borderBottomColor:Ot,borderLeftColor:Ot,filter:dl,WebkitFilter:dl,mask:pl,WebkitMask:pl},vd=n=>iy[n],ry=new Set([dl,pl]);function wd(n,t){let e=vd(n);return ry.has(e)||(e=fn),e.getAnimatableNone?e.getAnimatableNone(t):void 0}
vendor: 1,699 bytes, line 1
1const sy=new Set(["auto","none","0"]);function oy(n,t,e){let i=0,r;for(;i<n.length&&!r;){const s=n[i];typeof s=="string"&&!sy.has(s)&&wr(s).values.length&&(r=n[i]),i++}if(r&&e)for(const s of t)n[s]=wd(e,r)}class ay extends lu{constructor(t,e,i,r,s){super(t,e,i,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),nu(f))){const h=hd(f,e.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!dd.has(i)||t.length!==2)return;const[r,s]=t,o=yc(r),a=yc(s),l=ic(r),u=ic(s);if(l!==u&&Jn[i]){this.needsMeasurement=!0;return}if(o!==a)if(hc(o)&&hc(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else Jn[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,i=[];for(let r=0;r<t.length;r++)(t[r]===null||Z0(t[r]))&&i.push(r);i.length&&oy(t,i,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Jn[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const r=e[e.length-1];r!==void 0&&t.getValue(i,r).jump(r,!1)}measureEndState(){const{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const r=t.getValue(e);r&&r.jump(this.measuredOrigin,!1);const s=i.length-1,o=i[s];i[s]=Jn[e](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 50,462 bytes, line 1
1h(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}const du=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function pu(n,t,e){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){const r=document.querySelectorAll(n);return r?Array.from(r):[]}return Array.from(n).filter(i=>i!=null)}const ml=(n,t)=>t&&typeof n=="number"?t.transform(n):n;function no(n){return Eh(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:mu}=jh(queueMicrotask,!1),un={x:!1,y:!1};function Td(){return un.x||un.y}function ly(n){return n==="x"||n==="y"?un[n]?null:(un[n]=!0,()=>{un[n]=!1}):un.x||un.y?null:(un.x=un.y=!0,()=>{un.x=un.y=!1})}function bd(n,t){const e=pu(n),i=new AbortController,r={passive:!0,...t,signal:i.signal};return[e,r,()=>i.abort()]}function uy(n){return!(n.pointerType==="touch"||Td())}function cy(n,t,e={}){const[i,r,s]=bd(n,e);return i.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",p)},f=g=>{u&&(u(g),u=void 0),c()},h=g=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,f(g))},d=()=>{a=!0,window.addEventListener("pointerup",h,r),window.addEventListener("pointercancel",h,r)},p=g=>{if(g.pointerType!=="touch"){if(a){l=!0;return}f(g)}},m=g=>{if(!uy(g))return;l=!1;const _=t(o,g);typeof _=="function"&&(u=_,o.addEventListener("pointerleave",p,r))};o.addEventListener("pointerenter",m,r),o.addEventListener("pointerdown",d,r)}),s}const xd=(n,t)=>t?n===t?!0:xd(n,t.parentElement):!1,gu=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,fy=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hy(n){return fy.has(n.tagName)||n.isContentEditable===!0}const dy=new Set(["INPUT","SELECT","TEXTAREA"]);function py(n){return dy.has(n.tagName)||n.isContentEditable===!0}const io=new WeakSet;function vc(n){return t=>{t.key==="Enter"&&n(t)}}function fa(n,t){n.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const my=(n,t)=>{const e=n.currentTarget;if(!e)return;const i=vc(()=>{if(io.has(e))return;fa(e,"down");const r=vc(()=>{fa(e,"up")}),s=()=>fa(e,"cancel");e.addEventListener("keyup",r,t),e.addEventListener("blur",s,t)});e.addEventListener("keydown",i,t),e.addEventListener("blur",()=>e.removeEventListener("keydown",i),t)};function wc(n){return gu(n)&&!Td()}const Tc=new WeakSet;function gy(n,t,e={}){const[i,r,s]=bd(n,e),o=a=>{const l=a.currentTarget;if(!wc(a)||Tc.has(a))return;io.add(l),e.stopPropagation&&Tc.add(a);const u=t(l,a),c={...r,capture:!0},f=(p,m)=>{window.removeEventListener("pointerup",h,c),window.removeEventListener("pointercancel",d,c),io.has(l)&&io.delete(l),wc(p)&&typeof u=="function"&&u(p,{success:m})},h=p=>{f(p,l===window||l===document||e.useGlobalTarget||xd(l,p.target))},d=p=>{f(p,!1)};window.addEventListener("pointerup",h,c),window.addEventListener("pointercancel",d,c)};return i.forEach(a=>{(e.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),no(a)&&(a.addEventListener("focus",u=>my(u,r)),!hy(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function yu(n){return Eh(n)&&"ownerSVGElement"in n}const ro=new WeakMap;let so;const Sd=(n,t,e)=>(i,r)=>r&&r[0]?r[0][n+"Size"]:yu(i)&&"getBBox"in i?i.getBBox()[t]:i[e],yy=Sd("inline","width","offsetWidth"),_y=Sd("block","height","offsetHeight");function vy({target:n,borderBoxSize:t}){ro.get(n)?.forEach(e=>{e(n,{get width(){return yy(n,t)},get height(){return _y(n,t)}})})}function wy(n){n.forEach(vy)}function Ty(){typeof ResizeObserver>"u"||(so=new ResizeObserver(wy))}function by(n,t){so||Ty();const e=pu(n);return e.forEach(i=>{let r=ro.get(i);r||(r=new Set,ro.set(i,r)),r.add(t),so?.observe(i)}),()=>{e.forEach(i=>{const r=ro.get(i);r?.delete(t),r?.size||so?.unobserve(i)})}}const oo=new Set;let sr;function xy(){sr=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};oo.forEach(t=>t(n))},window.addEventListener("resize",sr)}function Sy(n){return oo.add(n),sr||xy(),()=>{oo.delete(n),!oo.size&&typeof sr=="function"&&(window.removeEventListener("resize",sr),sr=void 0)}}function bc(n,t){return typeof n=="function"?Sy(n):by(n,t)}function Py(n){return yu(n)&&n.tagName==="svg"}function Cy(...n){const t=!Array.isArray(n[0]),e=t?0:-1,i=n[0+e],r=n[1+e],s=n[2+e],o=n[3+e],a=Zh(r,s,o);return t?a(i):a}function Ey(n,t,e={}){const i=n.get();let r=null,s=i,o;const a=typeof i=="string"?i.replace(/[\d.-]/g,""):void 0,l=()=>{r&&(r.stop(),r=null),n.animation=void 0},u=()=>{const f=xc(n.get()),h=xc(s);if(f===h){l();return}const d=r?r.getGeneratorVelocity():n.getVelocity();l(),r=new cs({keyframes:[f,h],velocity:d,type:"spring",restDelta:.001,restSpeed:.01,...e,onUpdate:o})},c=()=>{u(),n.animation=r??void 0,n.events.animationStart?.notify(),r?.then(()=>{n.animation=void 0,n.events.animationComplete?.notify()})};if(n.attach((f,h)=>{s=f,o=d=>h(ha(d,a)),at.postRender(c)},l),zt(t)){let f=e.skipInitialAnimation===!0;const h=t.on("change",p=>{f?(f=!1,n.jump(ha(p,a),!1)):n.set(ha(p,a))}),d=n.on("destroy",h);return()=>{h(),d()}}return l}function ha(n,t){return t?n+t:n}function xc(n){return typeof n=="number"?n:parseFloat(n)}const My=[..._d,Ot,fn],Ay=n=>My.find(yd(n)),Sc=()=>({translate:0,scale:1,origin:0,originPoint:0}),or=()=>({x:Sc(),y:Sc()}),Pc=()=>({min:0,max:0}),Bt=()=>({x:Pc(),y:Pc()}),Ry=new WeakMap;function qo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function fs(n){return typeof n=="string"||Array.isArray(n)}const _u=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vu=["initial",..._u];function Qo(n){return qo(n.animate)||vu.some(t=>fs(n[t]))}function Pd(n){return!!(Qo(n)||n.variants)}function Dy(n,t,e){for(const i in t){const r=t[i],s=e[i];if(zt(r))n.addValue(i,r);else if(zt(s))n.addValue(i,ji(r,{owner:n}));else if(s!==r)if(n.hasValue(i)){const o=n.getValue(i);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=n.getStaticValue(i);n.addValue(i,ji(o!==void 0?o:r,{owner:n}))}}for(const i in e)t[i]===void 0&&n.removeValue(i);return t}const Ao={current:null},wu={current:!1},ky=typeof window<"u";function Cd(){if(wu.current=!0,!!ky)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ao.current=n.matches;n.addEventListener("change",t),t()}else Ao.current=!1}const Cc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ro={};function Ed(n){Ro=n}function Oy(){return Ro}class Vy{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,skipAnimations:s,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=lu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=be.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,at.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=e.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=s,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Qo(e),this.isVariantNode=Pd(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const d in h){const p=h[d];u[d]!==void 0&&zt(p)&&p.set(u[d])}}mount(t){if(this.hasBeenMounted)for(const e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=t,Ry.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,i)=>this.bindToMotionValue(i,e)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(wu.current||Cd(),this.shouldReduceMotion=Ao.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),jn(this.notifyUpdate),jn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ud.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=e.accelerate,f=new ad({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:We(c)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const i=Ar.has(t);i&&this.onBindTransform&&this.onBindTransform();const r=e.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&at.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s&&s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ro){const e=Ro[t];if(!e)continue;const{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Bt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let i=0;i<Cc.length;i++){const r=Cc[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,o=t[s];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=Dy(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&e!==void 0&&(i=ji(e===null?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Ch(i)||Mh(i))?i=parseFloat(i):!Ay(i)&&fn.test(e)&&(i=wd(t,e)),this.setBaseTarget(t,zt(i)?i.get():i)),zt(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let i;if(typeof e=="string"||typeof e=="object"){const s=fu(this.props,e,this.presenceContext?.custom);s&&(i=s[t])}if(e&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!zt(r)?r:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,e){return this.events[t]||(this.events[t]=new Jl),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){mu.render(this.render)}}class Md extends Vy{constructor(){super(...arguments),this.KeyframeResolver=ay}sortInstanceNodePosition(t,e){return t.compareDocumentPosition(e)&2?1:-1}getBaseTargetFromProps(t,e){const i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zt(t)&&(this.childSubscription=t.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class hi{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ad({top:n,left:t,right:e,bottom:i}){return{x:{min:t,max:e},y:{min:n,max:i}}}function Ly({x:n,y:t}){return{top:t.min,right:n.max,bottom:t.max,left:n.min}}function Iy(n,t){if(!t)return n;const e=t({x:n.left,y:n.top}),i=t({x:n.right,y:n.bottom});return{top:e.y,left:e.x,bottom:i.y,right:i.x}}function da(n){return n===void 0||n===1}function gl({scale:n,scaleX:t,scaleY:e}){return!da(n)||!da(t)||!da(e)}function bi(n){return gl(n)||Rd(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Rd(n){return Ec(n.x)||Ec(n.y)}function Ec(n){return n&&n!=="0%"}function Do(n,t,e){const i=n-e,r=t*i;return e+r}function Mc(n,t,e,i,r){return r!==void 0&&(n=Do(n,r,i)),Do(n,e,i)+t}function yl(n,t=0,e=1,i,r){n.min=Mc(n.min,t,e,i,r),n.max=Mc(n.max,t,e,i,r)}function Dd(n,{x:t,y:e}){yl(n.x,t.translate,t.scale,t.originPoint),yl(n.y,e.translate,e.scale,e.originPoint)}const Ac=.999999999999,Rc=1.0000000000001;function Fy(n,t,e,i=!1){const r=e.length;if(!r)return;t.x=t.y=1;let s,o;for(let a=0;a<r;a++){s=e[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(vn(n.x,-s.scroll.offset.x),vn(n.y,-s.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Dd(n,o)),i&&bi(s.latestValues)&&ao(n,s.latestValues,s.layout?.layoutBox))}t.x<Rc&&t.x>Ac&&(t.x=1),t.y<Rc&&t.y>Ac&&(t.y=1)}function vn(n,t){n.min+=t,n.max+=t}function Dc(n,t,e,i,r=.5){const s=ft(n.min,n.max,r);yl(n,t,e,s,i)}function kc(n,t){return typeof n=="string"?parseFloat(n)/100*(t.max-t.min):n}function ao(n,t,e){const i=e??n;Dc(n.x,kc(t.x,i.x),t.scaleX,t.scale,t.originX),Dc(n.y,kc(t.y,i.y),t.scaleY,t.scale,t.originY)}function kd(n,t){return Ad(Iy(n.getBoundingClientRect(),t))}function By(n,t,e){const i=kd(n,e),{scroll:r}=t;return r&&(vn(i.x,r.offset.x),vn(i.y,r.offset.y)),i}const Ny={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zy=Mr.length;function jy(n,t,e){let i="",r=!0;for(let o=0;o<zy;o++){const a=Mr[o],l=n[a];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(a.startsWith("scale")?1:0);else{const c=parseFloat(l);u=a.startsWith("scale")?c===1:c===0}if(!u||e){const c=ml(l,Mo[a]);if(!u){r=!1;const f=Ny[a]||a;i+=`${f}(${c}) `}e&&(t[a]=c)}}const s=n.pathRotation;return s&&(r=!1,i+=`rotate(${ml(s,Mo.pathRotation)}) `),i=i.trim(),e?i=e(t,r?"":i):r&&(i="none"),i}function Tu(n,t,e){const{style:i,vars:r,transformOrigin:s}=n;let o=!1,a=!1;for(const l in t){const u=t[l];if(Ar.has(l)){o=!0;continue}else if(Uh(l)){r[l]=u;continue}else{const c=ml(u,Mo[l]);l.startsWith("origin")?(a=!0,s[l]=c):i[l]=c}}if(t.transform||(o||e?i.transform=jy(t,n.transform,e):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;i.transformOrigin=`${l} ${u} ${c}`}}function Od(n,{style:t,vars:e},i,r){const s=n.style;let o;for(o in t)s[o]=t[o];r?.applyProjectionStyles(s,i);for(o in e)s.setProperty(o,e[o])}function Oc(n,t){return t.max===t.min?0:n/(t.max-t.min)*100}const Vr={correct:(n,t)=>{if(!t.target)return n;if(typeof n=="string")if(I.test(n))n=parseFloat(n);else return n;const e=Oc(n,t.target.x),i=Oc(n,t.target.y);return`${e}% ${i}%`}},Wy={correct:(n,{treeScale:t,projectionDelta:e})=>{const i=n,r=fn.parse(n);if(r.length>5)return i;const s=fn.createTransformer(n),o=typeof r[0]!="number"?1:0,a=e.x.scale*t.x,l=e.y.scale*t.y;r[0+o]/=a,r[1+o]/=l;const u=ft(a,l,.5);return typeof r[2+o]=="number"&&(r[2+o]/=u),typeof r[3+o]=="number"&&(r[3+o]/=u),s(r)}},_l={borderRadius:{...Vr,applyTo:[...du]},borderTopLeftRadius:Vr,borderTopRightRadius:Vr,borderBottomLeftRadius:Vr,borderBottomRightRadius:Vr,boxShadow:Wy};function Vd(n,{layout:t,layoutId:e}){return Ar.has(n)||n.startsWith("origin")||(t||e!==void 0)&&(!!_l[n]||n==="opacity")}function bu(n,t,e){const i=n.style,r=t?.style,s={};if(!i)return s;for(const o in i)(zt(i[o])||r&&zt(r[o])||Vd(o,n)||e?.getValue(o)?.liveStyle!==void 0)&&(s[o]=i[o]);return s}function Uy(n){return window.getComputedStyle(n)}class Yy extends Md{constructor(){super(...arguments),this.type="html",this.renderInstance=Od}readValueFromInstance(t,e){if(Ar.has(e))return this.projection?.isProjecting?rl(e):u0(t,e);{const i=Uy(t),r=(Uh(e)?i.getPropertyValue(e):i[e])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return kd(t,e)}build(t,e,i){Tu(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return bu(t,e,i)}}const Hy={offset:"stroke-dashoffset",array:"stroke-dasharray"},$y={offset:"strokeDashoffset",array:"strokeDasharray"};function Xy(n,t,e=1,i=0,r=!0){n.pathLength=1;const s=r?Hy:$y;n[s.offset]=`${-i}`,n[s.array]=`${t} ${e}`}const Gy=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ld(n,{attrX:t,attrY:e,attrScale:i,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(Tu(n,a,u),l){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:f,style:h}=n;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete f.transformBox);for(const d of Gy)f[d]!==void 0&&(h[d]=f[d],delete f[d]);t!==void 0&&(f.x=t),e!==void 0&&(f.y=e),i!==void 0&&(f.scale=i),r!==void 0&&Xy(f,r,s,o,!1)}const Id=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Fd=n=>typeof n=="string"&&n.toLowerCase()==="svg";function Ky(n,t,e,i){Od(n,t,void 0,i);for(const r in t.attrs)n.setAttribute(Id.has(r)?r:hu(r),t.attrs[r])}function Bd(n,t,e){const i=bu(n,t,e);for(const r in n)if(zt(n[r])||zt(t[r])){const s=Mr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[s]=n[r]}return i}class qy extends Md{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Bt}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Ar.has(e)){const i=vd(e);return i&&i.default||0}return e=Id.has(e)?e:hu(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return Bd(t,e,i)}build(t,e,i){Ld(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,r){Ky(t,e,i,r)}mount(t){this.isSVGTag=Fd(t.tagName),super.mount(t)}}const Qy=vu.length;function Nd(n){if(!n)return;if(!n.isControllingVariants){const e=n.parent?Nd(n.parent)||{}:{};return n.props.initial!==void 0&&(e.initial=n.props.initial),e}const t={};for(let e=0;e<Qy;e++){const i=vu[e],r=n.props[i];(fs(r)||r===!1)&&(t[i]=r)}return t}function zd(n,t){if(!Array.isArray(t))return!1;const e=t.length;if(e!==n.length)return!1;for(let i=0;i<e;i++)if(t[i]!==n[i])return!1;return!0}const Zy=[..._u].reverse(),Jy=_u.length;function t_(n){return t=>Promise.all(t.map(({animation:e,options:i})=>q0(n,e,i)))}function e_(n){let t=t_(n),e=Vc(),i=!0,r=!1;const s=u=>(c,f)=>{const h=Oi(n,f,u==="exit"?n.presenceContext?.custom:void 0);if(h){const{transition:d,transitionEnd:p,...m}=h;c={...c,...m,...p}}return c};function o(u){t=u(n)}function a(u){const{props:c}=n,f=Nd(n.parent)||{},h=[],d=new Set;let p={},m=1/0;for(let _=0;_<Jy;_++){const w=Zy[_],y=e[w],v=c[w]!==void 0?c[w]:f[w],T=fs(v),E=w===u?y.isActive:null;E===!1&&(m=_);let x=v===f[w]&&v!==c[w]&&T;if(x&&(i||r)&&n.manuallyAnimateOnMount&&(x=!1),y.protectedKeys={...p},!y.isActive&&E===null||!v&&!y.prevProp||qo(v)||typeof v=="boolean")continue;if(w==="exit"&&y.isActive&&E!==!0){y.prevResolvedValues&&(p={...p,...y.prevResolvedValues});continue}const S=n_(y.prevProp,v);let C=S||w===u&&y.isActive&&!x&&T||_>m&&T,P=!1;const D=Array.isArray(v)?v:[v];let R=D.reduce(s(w),{});E===!1&&(R={});const{prevResolvedValues:V={}}=y,O={...V,...R},F=z=>{C=!0,d.has(z)&&(P=!0,d.delete(z)),y.needsAnimating[z]=!0;const Y=n.getValue(z);Y&&(Y.liveStyle=!1)};for(const z in O){const Y=R[z],b=V[z];if(p.hasOwnProperty(z))continue;let nt=!1;cl(Y)&&cl(b)?nt=!zd(Y,b)||S:nt=Y!==b,nt?Y!=null?F(z):d.add(z):Y!==void 0&&d.has(z)?F(z):y.protectedKeys[z]=!0}y.prevProp=v,y.prevResolvedValues=R,y.isActive&&(p={...p,...R}),(i||r)&&n.blockInitialAnimation&&(C=!1);const j=x&&S;C&&(!j||P)&&h.push(...D.map(z=>{const Y={type:w};if(typeof z=="string"&&(i||r)&&!j&&n.manuallyAnimateOnMount&&n.parent){const{parent:b}=n,nt=Oi(b,z);if(b.enteringChildren&&nt){const{delayChildren:Lt}=nt.transition||{};Y.delay=cd(b.enteringChildren,n,Lt)}}return{animation:z,options:Y}}))}if(d.size){const _={};if(typeof c.initial!="boolean"){const w=Oi(n,Array.isArray(c.initial)?c.initial[0]:c.initial);w&&w.transition&&(_.transition=w.transition)}d.forEach(w=>{const y=n.getBaseTarget(w),v=n.getValue(w);v&&(v.liveStyle=!0),_[w]=y??null}),h.push({animation:_})}let g=!!h.length;return i&&(c.initial===!1||c.initial===c.animate)&&!n.manuallyAnimateOnMount&&(g=!1),i=!1,r=!1,g?t(h):Promise.resolve()}function l(u,c){if(e[u].isActive===c)return Promise.resolve();n.variantChildren?.forEach(h=>h.animationState?.setActive(u,c)),e[u].isActive=c;const f=a(u);for(const h in e)e[h].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>e,reset:()=>{e=Vc(),r=!0}}}function n_(n,t){return typeof t=="string"?t!==n:Array.isArray(t)?!zd(t,n):!1}function vi(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vc(){return{animate:vi(!0),whileInView:vi(),whileHover:vi(),whileTap:vi(),whileDrag:vi(),whileFocus:vi(),exit:vi()}}function vl(n,t){n.min=t.min,n.max=t.max}function an(n,t){vl(n.x,t.x),vl(n.y,t.y)}function Lc(n,t){n.translate=t.translate,n.scale=t.scale,n.originPoint=t.originPoint,n.origin=t.origin}const jd=1e-4,i_=1-jd,r_=1+jd,Wd=.01,s_=0-Wd,o_=0+Wd;function xe(n){return n.max-n.min}function a_(n,t,e){return Math.abs(n-t)<=e}function Ic(n,t,e,i=.5){n.origin=i,n.originPoint=ft(t.min,t.max,n.origin),n.scale=xe(e)/xe(t),n.translate=ft(e.min,e.max,n.origin)-n.originPoint,(n.scale>=i_&&n.scale<=r_||isNaN(n.scale))&&(n.scale=1),(n.translate>=s_&&n.translate<=o_||isNaN(n.translate))&&(n.translate=0)}function Kr(n,t,e,i){Ic(n.x,t.x,e.x,i?i.originX:void 0),Ic(n.y,t.y,e.y,i?i.originY:void 0)}function Fc(n,t,e,i=0){const r=i?ft(e.min,e.max,i):e.min;n.min=r+t.min,n.max=n.min+xe(t)}function l_(n,t,e,i){Fc(n.x,t.x,e.x,i?.x),Fc(n.y,t.y,e.y,i?.y)}function Bc(n,t,e,i=0){const r=i?ft(e.min,e.max,i):e.min;n.min=t.min-r,n.max=n.min+xe(t)}function ko(n,t,e,i){Bc(n.x,t.x,e.x,i?.x),Bc(n.y,t.y,e.y,i?.y)}function Nc(n,t,e,i,r){return n-=t,n=Do(n,1/e,i),r!==void 0&&(n=Do(n,1/r,i)),n}function u_(n,t=0,e=1,i=.5,r,s=n,o=n){if(Sn.test(t)&&(t=parseFloat(t),t=ft(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ft(s.min,s.max,i);n===s&&(a-=t),n.min=Nc(n.min,t,e,a,r),n.max=Nc(n.max,t,e,a,r)}function zc(n,t,[e,i,r],s,o){u_(n,t[e],t[i],t[r],t.scale,s,o)}const c_=["x","scaleX","originX"],f_=["y","scaleY","originY"];function jc(n,t,e,i){zc(n.x,t,c_,e?e.x:void 0,i?i.x:void 0),zc(n.y,t,f_,e?e.y:void 0,i?i.y:void 0)}function Wc(n){return n.translate===0&&n.scale===1}function Ud(n){return Wc(n.x)&&Wc(n.y)}function Uc(n,t){return n.min===t.min&&n.max===t.max}function h_(n,t){return Uc(n.x,t.x)&&Uc(n.y,t.y)}function Yc(n,t){return Math.round(n.min)===Math.round(t.min)&&Math.round(n.max)===Math.round(t.max)}function Yd(n,t){return Yc(n.x,t.x)&&Yc(n.y,t.y)}function Hc(n){return xe(n.x)/xe(n.y)}function $c(n,t){return n.translate===t.translate&&n.scale===t.scale&&n.originPoint===t.originPoint}function gn(n){return[n("x"),n("y")]}function d_(n,t,e){let i="";const r=n.x.translate/t.x,s=n.y.translate/t.y,o=e?.z||0;if((r||s||o)&&(i=`translate3d(${r}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),e){const{transformPerspective:u,rotate:c,pathRotation:f,rotateX:h,rotateY:d,skewX:p,skewY:m}=e;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotate(${f}deg) `),h&&(i+=`rotateX(${h}deg) `),d&&(i+=`rotateY(${d}deg) `),p&&(i+=`skewX(${p}deg) `),m&&(i+=`skewY(${m}deg) `)}const a=n.x.scale*t.x,l=n.y.scale*t.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const p_=du.length,Xc=n=>typeof n=="string"?parseFloat(n):n,Gc=n=>typeof n=="number"||I.test(n);function m_(n,t,e,i,r,s){r?(n.opacity=ft(0,e.opacity??1,g_(i)),n.opacityExit=ft(t.opacity??1,0,y_(i))):s&&(n.opacity=ft(t.opacity??1,e.opacity??1,i));for(let o=0;o<p_;o++){const a=du[o];let l=Kc(t,a),u=Kc(e,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Gc(l)===Gc(u)?(n[a]=Math.max(ft(Xc(l),Xc(u),i),0),(Sn.test(u)||Sn.test(l))&&(n[a]+="%")):n[a]=u}(t.rotate||e.rotate)&&(n.rotate=ft(t.rotate||0,e.rotate||0,i))}function Kc(n,t){return n[t]!==void 0?n[t]:n.borderRadius}const g_=Hd(0,.5,Fh),y_=Hd(.5,.95,Je);function Hd(n,t,e){return i=>i<n?0:i>t?1:e(ls(n,t,i))}function __(n,t,e){const i=zt(n)?n:ji(n);return i.start(cu("",i,t,e)),i.animation}function hs(n,t,e,i={passive:!0}){return n.addEventListener(t,e,i),()=>n.removeEventListener(t,e,i)}const v_=(n,t)=>n.depth-t.depth;class w_{constructor(){this.children=[],this.isDirty=!1}add(t){Ql(this.children,t),this.isDirty=!0}remove(t){So(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(v_),this.isDirty=!1,this.children.forEach(t)}}function T_(n,t){const e=be.now(),i=({timestamp:r})=>{const s=r-e;s>=t&&(jn(i),n(s-t))};return at.setup(i,!0),()=>jn(i)}function lo(n){return zt(n)?n.get():n}class b_{constructor(){this.members=[]}add(t){Ql(this.members,t);for(let e=this.members.length-1;e>=0;e--){const i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;const r=i.instance;(!r||r.isConnected===!1)&&!i.snapshot&&(So(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(So(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){const i=this.members[e];if(i.isPresent!==!1&&i.instance?.isConnected!==!1)return this.promote(i),!0}return!1}promote(t,e){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();const{layoutDependency:r}=i.options,{layoutDependency:s}=t.options;(r===void 0||r!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const uo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},pa=["","X","Y","Z"],x_=1e3;let S_=0;function ma(n,t,e,i){const{latestValues:r}=t;r[n]&&(e[n]=r[n],t.setStaticValue(n,0),i&&(i[n]=0))}function $d(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:t}=n.options;if(!t)return;const e=md(t);if(window.MotionHasOptimisedAnimation(e,"transform")){const{layout:r,layoutId:s}=n.options;window.MotionCancelOptimisedAnimation(e,"transform",at,!(r||s))}const{parent:i}=n;i&&!i.hasCheckedOptimisedAppear&&$d(i)}function Xd({attachResizeListener:n,defaultParent:t,measureScroll:e,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(o={},a=t?.()){this.id=S_++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(E_),this.nodes.forEach(O_),this.nodes.forEach(V_),this.nodes.forEach(M_)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new w_)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Jl),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=yu(o)&&!Py(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),n){let c,f=0;const h=()=>this.root.updateBlockedByResize=!1;at.read(()=>{f=window.innerWidth}),n(o,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,c&&c(),c=T_(h,250),uo.hasAnimatedSinceResize&&(uo.hasAnimatedSinceResize=!1,this.nodes.forEach(Zc)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||N_,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=u.getProps(),_=!this.targetLayout||!Yd(this.targetLayout,d),w=!f&&h;if(this.options.layoutRoot||this.resumeFrom||w||f&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...uu(p,"layout"),onPlay:m,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(c,w,y.path)}else f||Zc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),jn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(L_),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$d(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(R_),this.nodes.forEach(qc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Qc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(D_),this.nodes.forEach(k_),this.nodes.forEach(P_),this.nodes.forEach(C_)):this.nodes.forEach(Qc),this.clearAllSnapshots();const a=be.now();Kt.delta=Pn(0,1e3/60,a-Kt.timestamp),Kt.timestamp=a,Kt.isProcessing=!0,sa.update.process(Kt),sa.preRender.process(Kt),sa.render.process(Kt),Kt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,mu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(A_),this.sharedNodes.forEach(I_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,at.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){at.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xe(this.snapshot.measuredBox.x)&&!xe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Bt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:e(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ud(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||bi(this.latestValues)||c)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),z_(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return Bt();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(j_))){const{scroll:u}=this.root;u&&(vn(a.x,u.offset.x),vn(a.y,u.offset.y))}return a}removeElementScroll(o){const a=Bt();if(an(a,o),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:f}=u;u!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&an(a,o),vn(a.x,c.offset.x),vn(a.y,c.offset.y))}return a}applyTransform(o,a=!1,l){const u=l||Bt();an(u,o);for(let c=0;c<this.path.length;c++){const f=this.path[c];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(vn(u.x,-f.scroll.offset.x),vn(u.y,-f.scroll.offset.y)),bi(f.latestValues)&&ao(u,f.latestValues,f.layout?.layoutBox)}return bi(this.latestValues)&&ao(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(o){const a=Bt();an(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!bi(u.latestValues))continue;let c;u.instance&&(gl(u.latestValues)&&u.updateSnapshot(),c=Bt(),an(c,u.measurePageBox())),jc(a,u.latestValues,u.snapshot?.layoutBox,c)}return bi(this.latestValues)&&jc(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Kt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=Kt.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Bt(),this.targetWithTransforms=Bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),l_(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):an(this.target,this.layout.layoutBox),Dd(this.target,this.targetDelta)):an(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||gl(this.parent.latestValues)||Rd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Bt(),this.relativeTargetOrigin=Bt(),ko(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),an(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Kt.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;an(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Fy(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Bt());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Lc(this.prevProjectionDelta.x,this.projectionDelta.x),Lc(this.prevProjectionDelta.y,this.projectionDelta.y)),Kr(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!$c(this.projectionDelta.x,this.prevProjectionDelta.x)||!$c(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=or(),this.projectionDelta=or(),this.projectionDeltaWithTransform=or()}setAnimationOrigin(o,a=!1,l){const u=this.snapshot,c=u?u.latestValues:{},f={...this.latestValues},h=or();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=Bt(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,g=p!==m,_=this.getStack(),w=!_||_.members.length<=1,y=!!(g&&!w&&this.options.crossfade===!0&&!this.path.some(B_));this.animationProgress=0;let v;const T=l?.interpolateProjection(o);this.mixTargetDelta=E=>{const x=E/1e3,S=T?.(x);S?(h.x.translate=S.x,h.x.scale=ft(o.x.scale,1,x),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=S.y,h.y.scale=ft(o.y.scale,1,x),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(Jc(h.x,o.x,x),Jc(h.y,o.y,x)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ko(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),F_(this.relativeTarget,this.relativeTargetOrigin,d,x),v&&h_(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Bt()),an(v,this.relativeTarget)),g&&(this.animationValues=f,m_(f,c,this.latestValues,x,y,w)),S&&S.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=S.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(jn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=at.update(()=>{uo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ji(0)),this.motionValue.jump(0,!1),this.currentAnimation=__(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(x_),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Gd(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Bt();const f=xe(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=xe(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}an(a,l),ao(a,c),Kr(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new b_),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ma("z",o,u,this.animationValues);for(let c=0;c<pa.length;c++)ma(`rotate${pa[c]}`,o,u,this.animationValues),ma(`skew${pa[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=lo(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=lo(a?.pointerEvents)||""),this.hasProjected&&!bi(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=d_(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),o.transform=f;const{x:h,y:d}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const p in _l){if(c[p]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:_}=_l[p],w=f==="none"?c[p]:m(c[p],u);if(g){const y=g.length;for(let v=0;v<y;v++)o[g[v]]=w}else _?this.options.visualElement.renderState.vars[p]=w:o[p]=w}this.options.layoutId&&(o.pointerEvents=u===this?lo(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(qc),this.root.sharedNodes.clear()}}}function P_(n){n.updateLayout()}function C_(n){const t=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&t&&n.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=n.layout,{animationType:r}=n.options,s=t.source!==n.layout.source;if(r==="size")gn(c=>{const f=s?t.measuredBox[c]:t.layoutBox[c],h=xe(f);f.min=e[c].min,f.max=f.min+h});else if(r==="x"||r==="y"){const c=r==="x"?"y":"x";vl(s?t.measuredBox[c]:t.layoutBox[c],e[c])}else Gd(r,t.layoutBox,e)&&gn(c=>{const f=s?t.measuredBox[c]:t.layoutBox[c],h=xe(e[c]);f.max=f.min+h,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[c].max=n.relativeTarget[c].min+h)});const o=or();Kr(o,e,t.layoutBox);const a=or();s?Kr(a,n.applyTransform(i,!0),t.measuredBox):Kr(a,e,t.layoutBox);const l=!Ud(o);let u=!1;if(!n.resumeFrom){const c=n.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:h}=c;if(f&&h){const d=n.options.layoutAnchor||void 0,p=Bt();ko(p,t.layoutBox,f.layoutBox,d);const m=Bt();ko(m,e,h.layoutBox,d),Yd(p,m)||(u=!0),c.options.layoutRoot&&(n.relativeTarget=m,n.relativeTargetOrigin=p,n.relativeParent=c)}}}n.notifyListeners("didUpdate",{layout:e,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(n.isLead()){const{onExitComplete:e}=n.options;e&&e()}n.options.transition=void 0}function E_(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}
vendor: 9,499 bytes, lines 1-9
1function M_(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function A_(n){n.clearSnapshot()}function qc(n){n.clearMeasurements()}function R_(n){n.isLayoutDirty=!0,n.updateLayout()}function Qc(n){n.isLayoutDirty=!1}function D_(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function k_(n){const{visualElement:t}=n.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),n.resetTransform()}function Zc(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function O_(n){n.resolveTargetDelta()}function V_(n){n.calcProjection()}function L_(n){n.resetSkewAndRotation()}function I_(n){n.removeLeadSnapshot()}function Jc(n,t,e){n.translate=ft(t.translate,0,e),n.scale=ft(t.scale,1,e),n.origin=t.origin,n.originPoint=t.originPoint}function tf(n,t,e,i){n.min=ft(t.min,e.min,i),n.max=ft(t.max,e.max,i)}function F_(n,t,e,i){tf(n.x,t.x,e.x,i),tf(n.y,t.y,e.y,i)}function B_(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const N_={duration:.45,ease:[.4,0,.1,1]},ef=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),nf=ef("applewebkit/")&&!ef("chrome/")?Math.round:Je;function rf(n){n.min=nf(n.min),n.max=nf(n.max)}function z_(n){rf(n.x),rf(n.y)}function Gd(n,t,e){return n==="position"||n==="preserve-aspect"&&!a_(Hc(t),Hc(e),.2)}function j_(n){return n!==n.root&&n.scroll?.wasRoot}const W_=Xd({attachResizeListener:(n,t)=>hs(n,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ga={current:void 0},Kd=Xd({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!ga.current){const n=new W_({});n.mount(window),n.setOptions({layoutScroll:!0}),ga.current=n}return ga.current},resetTransform:(n,t)=>{n.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),As=A.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function sf(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}function U_(...n){return t=>{let e=!1;const i=n.map(r=>{const s=sf(r,t);return!e&&typeof s=="function"&&(e=!0),s});if(e)return()=>{for(let r=0;r<i.length;r++){const s=i[r];typeof s=="function"?s():sf(n[r],null)}}}}function Y_(...n){return A.useCallback(U_(...n),n)}class H_ extends A.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(no(e)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=e.offsetParent,r=no(i)&&i.offsetWidth||0,s=no(i)&&i.offsetHeight||0,o=getComputedStyle(e),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=e.offsetTop,a.left=e.offsetLeft,a.right=r-a.width-a.left,a.bottom=s-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function $_({children:n,isPresent:t,anchorX:e,anchorY:i,root:r,pop:s}){const o=A.useId(),a=A.useRef(null),l=A.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=A.useContext(As),c=n.props?.ref??n?.ref,f=Y_(a,c);return A.useInsertionEffect(()=>{const{width:h,height:d,top:p,left:m,right:g,bottom:_,direction:w}=l.current;if(t||s===!1||!a.current||!h||!d)return;const y=w==="rtl",v=e==="left"?y?`right: ${g}`:`left: ${m}`:y?`left: ${m}`:`right: ${g}`,T=i==="bottom"?`bottom: ${_}`:`top: ${p}`;a.current.dataset.motionPopId=o;const E=document.createElement("style");u&&(E.nonce=u);const x=r??document.head;return x.appendChild(E),E.sheet&&E.sheet.insertRule(`
2          [data-motion-pop-id="${o}"] {
3            position: absolute !important;
4            width: ${h}px !important;
5            height: ${d}px !important;
6            ${v}px !important;
7            ${T}px !important;
8          }
9        `),()=>{a.current?.removeAttribute("data-motion-pop-id"),x.contains(E)&&x.removeChild(E)}},[t]),Fn.jsx(H_,{isPresent:t,childRef:a,sizeRef:l,pop:s,children:s===!1?n:A.cloneElement(n,{ref:f})})}const X_=({children:n,initial:t,isPresent:e,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o,anchorX:a,anchorY:l,root:u})=>{const c=Ps(G_),f=A.useId(),h=A.useRef(e),d=A.useRef(i);Xo(()=>{h.current=e,d.current=i});let p=!0,m=A.useMemo(()=>(p=!1,{id:f,initial:t,isPresent:e,custom:r,onExitComplete:g=>{c.set(g,!0);for(const _ of c.values())if(!_)return;i&&i()},register:g=>(c.set(g,!1),()=>{c.delete(g),!h.current&&!c.size&&d.current?.()})}),[e,c,i]);return s&&p&&(m={...m}),A.useMemo(()=>{c.forEach((g,_)=>c.set(_,!1))},[e]),A.useEffect(()=>{!e&&!c.size&&i&&i()},[e]),n=Fn.jsx($_,{pop:o==="popLayout",isPresent:e,anchorX:a,anchorY:l,root:u,children:n}),Fn.jsx(Go.Provider,{value:m,children:n})};function G_(){return new Map}function qd(n=!0){const t=A.useContext(Go);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:i,register:r}=t,s=A.useId();A.useEffect(()=>{if(n)return r(s)},[n]);const o=A.useCallback(()=>n&&i&&i(s),[s,i,n]);return!e&&i?[!1,o]:[!0]}const Bs=n=>n.key||"";function of(n){const t=[];return A.Children.forEach(n,e=>{A.isValidElement(e)&&t.push(e)}),t}const Tb=({children:n,custom:t,initial:e=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,f]=qd(o),h=A.useMemo(()=>of(n),[n]),d=o&&!c?[]:h.map(Bs),p=A.useRef(!0),m=A.useRef(h),g=Ps(()=>new Map),_=A.useRef(new Set),[w,y]=A.useState(h),[v,T]=A.useState(h);Xo(()=>{p.current=!1,m.current=h;for(let S=0;S<v.length;S++){const C=Bs(v[S]);d.includes(C)?(g.delete(C),_.current.delete(C)):g.get(C)!==!0&&g.set(C,!1)}},[v,d.length,d.join("-")]);const E=[];if(h!==w){let S=[...h];for(let C=0;C<v.length;C++){const P=v[C],D=Bs(P);d.includes(D)||(S.splice(C,0,P),E.push(P))}return s==="wait"&&E.length&&(S=E),T(of(S)),y(h),null}const{forceRender:x}=A.useContext(ql);return Fn.jsx(Fn.Fragment,{children:v.map(S=>{const C=Bs(S),P=o&&!c?!1:h===v||d.includes(C),D=()=>{if(_.current.has(C))return;if(g.has(C))_.current.add(C),g.set(C,!0);else return;let R=!0;g.forEach(V=>{V||(R=!1)}),R&&(x?.(),T(m.current),o&&f?.(),i&&i())};return Fn.jsx(X_,{isPresent:P,initial:!p.current||e?void 0:!1,custom:t,presenceAffectsLayout:r,mode:s,root:u,onExitComplete:P?void 0:D,anchorX:a,anchorY:l,children:S},C)})})},Qd=A.createContext({strict:!1}),af={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let lf=!1;function K_(){if(lf)return;const n={};for(const t in af)n[t]={isEnabled:e=>af[t].some(i=>!!e[i])};Ed(n),lf=!0}function Zd(){return K_(),Oy()}function q_(n){const t=Zd();for(const e in n)t[e]={...t[e],...n[e]};Ed(t)}const Q_=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Oo(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Q_.has(n)}let Jd=n=>!Oo(n);function Z_(n){typeof n=="function"&&(Jd=t=>t.startsWith("on")?!Oo(t):n(t))}try{Z_(require("@emotion/is-prop-valid").default)}catch{}function J_(n,t,e){const i={};for(const r in n)r==="values"&&typeof n.values=="object"||zt(n[r])||(Jd(r)||e===!0&&Oo(r)||!t&&!Oo(r)||n.draggable&&r.startsWith("onDrag"))&&(i[r]=n[r]);return i}const Zo=A.createContext({});function tv(n,t){if(Qo(n)){const{initial:e,animate:i}=n;return{initial:e===!1||fs(e)?e:void 0,animate:fs(i)?i:void 0}}return n.inherit!==!1?t:{}}function ev(n){const{initial:t,animate:e}=tv(n,A.useContext(Zo));return A.useMemo(()=>({initial:t,animate:e}),[uf(t),uf(e)])}function uf(n){return Array.isArray(n)?n.join(" "):n}const xu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tp(n,t,e){for(const i in t)!zt(t[i])&&!Vd(i,e)&&(n[i]=t[i])}function nv({transformTemplate:n},t){return A.useMemo(()=>{const e=xu();return Tu(e,t,n),Object.assign({},e.vars,e.style)},[t])}function iv(n,t){const e=n.style||{},i={};return tp(i,e,n),Object.assign(i,nv(n,t)),i}function rv(n,t){const e={},i=iv(n,t);return n.drag&&n.dragListener!==!1&&(e.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(e.tabIndex=0),e.style=i,e}const ep=()=>({...xu(),attrs:{}});function sv(n,t,e,i){const r=A.useMemo(()=>{const s=ep();return Ld(s,t,Fd(i),n.transformTemplate,n.style),{...s.attrs,style:{...s.style}}},[t]);if(n.style){const s={};tp(s,n.style,n),r.style={...s,...r.style}}return r}const ov=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];
vendor: 23,062 bytes, line 9
9function Su(n){return typeof n!="string"||n.includes("-")?!1:!!(ov.indexOf(n)>-1||/[A-Z]/u.test(n))}function av(n,t,e,{latestValues:i},r,s=!1,o){const l=(o??Su(n)?sv:rv)(t,i,r,n),u=J_(t,typeof n=="string",s),c=n!==A.Fragment?{...u,...l,ref:e}:{},{children:f}=t,h=A.useMemo(()=>zt(f)?f.get():f,[f]);return A.createElement(n,{...c,children:h})}function lv({scrapeMotionValuesFromProps:n,createRenderState:t},e,i,r){return{latestValues:uv(e,i,r,n),renderState:t()}}function uv(n,t,e,i){const r={},s=i(n,{});for(const h in s)r[h]=lo(s[h]);let{initial:o,animate:a}=n;const l=Qo(n),u=Pd(n);t&&u&&!l&&n.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=e?e.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!qo(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const p=fu(n,h[d]);if(p){const{transitionEnd:m,transition:g,..._}=p;for(const w in _){let y=_[w];if(Array.isArray(y)){const v=c?y.length-1:0;y=y[v]}y!==null&&(r[w]=y)}for(const w in m)r[w]=m[w]}}}return r}const np=n=>(t,e)=>{const i=A.useContext(Zo),r=A.useContext(Go),s=()=>lv(n,t,i,r);return e?s():Ps(s)},cv=np({scrapeMotionValuesFromProps:bu,createRenderState:xu}),fv=np({scrapeMotionValuesFromProps:Bd,createRenderState:ep}),hv=Symbol.for("motionComponentSymbol");function dv(n,t,e){const i=A.useRef(e);A.useInsertionEffect(()=>{i.current=e});const r=A.useRef(null);return A.useCallback(s=>{s&&n.onMount?.(s),t&&(s?t.mount(s):t.unmount());const o=i.current;if(typeof o=="function")if(s){const a=o(s);typeof a=="function"&&(r.current=a)}else r.current?(r.current(),r.current=null):o(s);else o&&(o.current=s)},[t])}const ip=A.createContext({});function er(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function pv(n,t,e,i,r,s){const{visualElement:o}=A.useContext(Zo),a=A.useContext(Qd),l=A.useContext(Go),u=A.useContext(As),c=u.reducedMotion,f=u.skipAnimations,h=A.useRef(null),d=A.useRef(!1);i=i||a.renderer,!h.current&&i&&(h.current=i(n,{visualState:t,parent:o,props:e,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:s}),d.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const p=h.current,m=A.useContext(ip);p&&!p.projection&&r&&(p.type==="html"||p.type==="svg")&&mv(h.current,e,r,m);const g=A.useRef(!1);A.useInsertionEffect(()=>{p&&g.current&&p.update(e,l)});const _=e[pd],w=A.useRef(!!_&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Xo(()=>{d.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),w.current&&p.animationState&&p.animationState.animateChanges())}),A.useEffect(()=>{p&&(!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),w.current=!1),p.enteringChildren=void 0)}),p}function mv(n,t,e,i){const{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:f}=t;n.projection=new e(n.latestValues,t["data-framer-portal-id"]?void 0:rp(n.parent)),n.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&er(a),visualElement:n,animationType:typeof s=="string"?s:"both",initialPromotionConfig:i,crossfade:f,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function rp(n){if(n)return n.options.allowProjection!==!1?n.projection:rp(n.parent)}function ya(n,{forwardMotionProps:t=!1,type:e}={},i,r){i&&q_(i);const s=e?e==="svg":Su(n),o=s?fv:cv;function a(u,c){let f;const h={...A.useContext(As),...u,layoutId:gv(u)},{isStatic:d}=h,p=ev(u),m=o(u,d);if(!d&&typeof window<"u"){yv();const g=_v(h);f=g.MeasureLayout,p.visualElement=pv(n,m,h,r,g.ProjectionNode,s)}return Fn.jsxs(Zo.Provider,{value:p,children:[f&&p.visualElement?Fn.jsx(f,{visualElement:p.visualElement,...h}):null,av(n,u,dv(m,p.visualElement,c),m,d,t,s)]})}a.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const l=A.forwardRef(a);return l[hv]=n,l}function gv({layoutId:n}){const t=A.useContext(ql).id;return t&&n!==void 0?t+"-"+n:n}function yv(n,t){A.useContext(Qd).strict}function _v(n){const t=Zd(),{drag:e,layout:i}=t;if(!e&&!i)return{};const r={...e,...i};return{MeasureLayout:e?.isEnabled(n)||i?.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function vv(n,t){if(typeof Proxy>"u")return ya;const e=new Map,i=(s,o)=>ya(s,o,n,t),r=(s,o)=>i(s,o);return new Proxy(r,{get:(s,o)=>o==="create"?i:(e.has(o)||e.set(o,ya(o,void 0,n,t)),e.get(o))})}const wv=(n,t)=>t.isSVG??Su(n)?new qy(t):new Yy(t,{allowProjection:n!==A.Fragment});class Tv extends hi{constructor(t){super(t),t.animationState||(t.animationState=e_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();qo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let bv=0;class xv extends hi{constructor(){super(...arguments),this.id=bv++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&i===!1){if(this.isExitComplete){const{initial:s,custom:o}=this.node.getProps();if(typeof s=="string"||typeof s=="object"&&s!==null&&!Array.isArray(s)){const a=Oi(this.node,s,o);if(a){const{transition:l,transitionEnd:u,...c}=a;for(const f in c)this.node.getValue(f)?.jump(c[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Sv={animation:{Feature:Tv},exit:{Feature:xv}};function Rs(n){return{point:{x:n.pageX,y:n.pageY}}}const Pv=n=>t=>gu(t)&&n(t,Rs(t));function qr(n,t,e,i){return hs(n,t,Pv(e),i)}const sp=({current:n})=>n?n.ownerDocument.defaultView:null,cf=(n,t)=>Math.abs(n-t);function Cv(n,t){const e=cf(n.x,t.x),i=cf(n.y,t.y);return Math.sqrt(e**2+i**2)}const ff=new Set(["auto","scroll"]);class op{constructor(t,e,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ns(this.lastRawMoveEventInfo,this.transformPagePoint));const p=_a(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Cv(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:_}=p,{timestamp:w}=Kt;this.history.push({..._,timestamp:w});const{onStart:y,onMove:v}=this.handlers;m||(y&&y(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=Ns(m,this.transformPagePoint),at.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:g,onSessionEnd:_,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=_a(p.type==="pointercancel"?this.lastMoveEventInfo:Ns(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,y),_&&_(p,y)},!gu(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=r||window;const l=Rs(t),u=Ns(l,this.transformPagePoint),{point:c}=u,{timestamp:f}=Kt;this.history=[{...c,timestamp:f}];const{onSessionStart:h}=e;h&&h(t,_a(u,this.history));const d={passive:!0,capture:!0};this.removeListeners=Cs(qr(this.contextWindow,"pointermove",this.handlePointerMove,d),qr(this.contextWindow,"pointerup",this.handlePointerUp,d),qr(this.contextWindow,"pointercancel",this.handlePointerUp,d)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){const i=getComputedStyle(e);(ff.has(i.overflowX)||ff.has(i.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const e=this.scrollPositions.get(t);if(!e)return;const i=t===window,r=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:r.x-e.x,y:r.y-e.y};s.x===0&&s.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,r),at.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),jn(this.updatePoint)}}function Ns(n,t){return t?{point:t(n.point)}:n}function hf(n,t){return{x:n.x-t.x,y:n.y-t.y}}function _a({point:n},t){return{point:n,delta:hf(n,ap(t)),offset:hf(n,Ev(t)),velocity:Mv(t,.1)}}function Ev(n){return n[0]}function ap(n){return n[n.length-1]}function Mv(n,t){if(n.length<2)return{x:0,y:0};let e=n.length-1,i=null;const r=ap(n);for(;e>=0&&(i=n[e],!(r.timestamp-i.timestamp>We(t)));)e--;if(!i)return{x:0,y:0};i===n[0]&&n.length>2&&r.timestamp-i.timestamp>We(t)*2&&(i=n[1]);const s=qe(r.timestamp-i.timestamp);if(s===0)return{x:0,y:0};const o={x:(r.x-i.x)/s,y:(r.y-i.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Av(n,{min:t,max:e},i){return t!==void 0&&n<t?n=i?ft(t,n,i.min):Math.max(n,t):e!==void 0&&n>e&&(n=i?ft(e,n,i.max):Math.min(n,e)),n}function df(n,t,e){return{min:t!==void 0?n.min+t:void 0,max:e!==void 0?n.max+e-(n.max-n.min):void 0}}function Rv(n,{top:t,left:e,bottom:i,right:r}){return{x:df(n.x,e,r),y:df(n.y,t,i)}}function pf(n,t){let e=t.min-n.min,i=t.max-n.max;return t.max-t.min<n.max-n.min&&([e,i]=[i,e]),{min:e,max:i}}function Dv(n,t){return{x:pf(n.x,t.x),y:pf(n.y,t.y)}}function kv(n,t){let e=.5;const i=xe(n),r=xe(t);return r>i?e=ls(t.min,t.max-i,n.min):i>r&&(e=ls(n.min,n.max-r,t.min)),Pn(0,1,e)}function Ov(n,t){const e={};return t.min!==void 0&&(e.min=t.min-n.min),t.max!==void 0&&(e.max=t.max-n.min),e}const wl=.35;function Vv(n=wl){return n===!1?n=0:n===!0&&(n=wl),{x:mf(n,"left","right"),y:mf(n,"top","bottom")}}function mf(n,t,e){return{min:gf(n,t),max:gf(n,e)}}function gf(n,t){return typeof n=="number"?n:n[t]||0}const Lv=new WeakMap;class Iv{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Bt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=f=>{e&&this.snapToCursor(Rs(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:d,dragPropagation:p,onDragStart:m}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ly(d),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gn(_=>{let w=this.getAxisMotionValue(_).get()||0;if(Sn.test(w)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[_];v&&(w=xe(v)*(parseFloat(w)/100))}}this.originPoint[_]=w}),m&&at.update(()=>m(f,h),!1,!0),fl(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:m,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:_}=h;if(p&&this.currentDirection===null){this.currentDirection=Bv(_),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,_),this.updateAxis("y",h.point,_),this.visualElement.render(),g&&at.update(()=>g(f,h),!1,!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new op(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:sp(this.visualElement),element:this.visualElement.current})}stop(t,e){const i=t||this.latestPointerEvent,r=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!r||!i)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&at.postRender(()=>a(i,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){const{drag:r}=this.getProps();if(!i||!zs(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=Av(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&er(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=Rv(i.layoutBox,t):this.constraints=!1,this.elastic=Vv(e),r!==this.constraints&&!er(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&gn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Ov(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!er(t))return!1;const i=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());const s=By(i,r.root,this.visualElement.getTransformPagePoint());let o=Dv(r.layout.layoutBox,s);if(e){const a=e(Ly(o));this.hasMutatedConstraints=!!a,a&&(o=Ad(a))}return o}startAnimation(t){const{drag:e,dragMomentum:i,dragElastic:r,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=gn(c=>{if(!zs(c,e,this.currentDirection))return;let f=l&&l[c]||{};(o===!0||o===c)&&(f={min:0,max:0});const h=r?200:1e6,d=r?40:1e7,p={type:"inertia",velocity:i?t[c]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,e){const i=this.getAxisMotionValue(t);return fl(this.visualElement,t),i.start(cu(t,i,0,e,this.visualElement,!1))}stopAnimation(){gn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps()[e];return r||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){gn(e=>{const{drag:i}=this.getProps();if(!zs(e,i,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(e);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[e],l=s.get()||0;s.set(t[e]-ft(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!er(e)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};gn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();r[o]=kv({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),gn(o=>{if(!zs(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(ft(l,u,r[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Lv.set(this.visualElement,this);const t=this.visualElement.current,e=qr(t,"pointerdown",u=>{const{drag:c,dragListener:f=!0}=this.getProps(),h=u.target,d=h!==t&&py(h);c&&f&&!d&&this.start(u)});let i;const r=()=>{const{dragConstraints:u}=this.getProps();er(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),i||(i=Fv(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),at.read(r);const a=hs(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(gn(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=u[f].translate,h.set(h.get()+u[f].translate))}),this.visualElement.render())}));return()=>{a(),e(),o(),l&&l(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:o=wl,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function yf(n){let t=!0;return()=>{if(t){t=!1;return}n()}}function Fv(n,t,e){const i=bc(n,yf(e)),r=bc(t,yf(e));return()=>{i(),r()}}function zs(n,t,e){return(t===!0||t===n)&&(e===null||e===n)}function Bv(n,t=10){let e=null;return Math.abs(n.y)>t?e="y":Math.abs(n.x)>t&&(e="x"),e}class Nv extends hi{constructor(t){super(t),this.removeGroupControls=Je,this.removeListeners=Je,this.controls=new Iv(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Je}update(){const{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const va=n=>(t,e)=>{n&&at.update(()=>n(t,e),!1,!0)};class zv extends hi{constructor(){super(...arguments),this.removePointerDownListener=Je}onPointerDown(t){this.session=new op(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sp(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:va(t),onStart:va(e),onMove:va(i),onEnd:(s,o)=>{delete this.session,r&&at.postRender(()=>r(s,o))}}}mount(){this.removePointerDownListener=qr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let wa=!1;class jv extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&r&&i.register(s),wa&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),uo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:i,drag:r,isPresent:s}=this.props,{projection:o}=i;return o&&(o.isPresent=s,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),wa=!0,r||t.layoutDependency!==e||e===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||at.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),mu.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;wa=!0,r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function lp(n){const[t,e]=qd(),i=A.useContext(ql);return Fn.jsx(jv,{...n,layoutGroup:i,switchLayoutGroup:A.useContext(ip),isPresent:t,safeToRemove:e})}const Wv={pan:{Feature:zv},drag:{Feature:Nv,ProjectionNode:Kd,MeasureLayout:lp}};function _f(n,t,e){const{props:i}=n;n.animationState&&i.whileHover&&n.animationState.setActive("whileHover",e==="Start");const r="onHover"+e,s=i[r];s&&at.postRender(()=>s(t,Rs(t)))}class Uv extends hi{mount(){const{current:t}=this.node;t&&(this.unmount=cy(t,(e,i)=>(_f(this.node,i,"Start"),r=>_f(this.node,r,"End"))))}unmount(){}}class Yv extends hi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Cs(hs(this.node.current,"focus",()=>this.onFocus()),hs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function vf(n,t,e){const{props:i}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&i.whileTap&&n.animationState.setActive("whileTap",e==="Start");const r="onTap"+(e==="End"?"":e),s=i[r];s&&at.postRender(()=>s(t,Rs(t)))}class Hv extends hi{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=gy(t,(r,s)=>(vf(this.node,s,"Start"),(o,{success:a})=>vf(this.node,o,a?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}const Tl=new WeakMap,Ta=new WeakMap,$v=n=>{const t=Tl.get(n.target);t&&t(n)},Xv=n=>
9{n.forEach($v)};function Gv({root:n,...t}){const e=n||document;Ta.has(e)||Ta.set(e,{});const i=Ta.get(e),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(Xv,{root:n,...t})),i[r]}function Kv(n,t,e){const i=Gv(t);return Tl.set(n,e),i.observe(n),()=>{Tl.delete(n),i.unobserve(n)}}const qv={some:0,all:1};class Qv extends hi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:r="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:qv[r]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),h=u?c:f;h&&h(l)};this.stopObserver=Kv(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(Zv(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Zv({viewport:n={}},{viewport:t={}}={}){return e=>n[e]!==t[e]}const Jv={inView:{Feature:Qv},tap:{Feature:Hv},focus:{Feature:Yv},hover:{Feature:Uv}},t1={layout:{ProjectionNode:Kd,MeasureLayout:lp}},e1={...Sv,...Jv,...Wv,...t1},n1=vv(e1,wv);function up(n){const t=Ps(()=>ji(n)),{isStatic:e}=A.useContext(As);if(e){const[,i]=A.useState(n);A.useEffect(()=>t.on("change",i),[])}return t}function cp(n,t){const e=up(t()),i=()=>e.set(t());return i(),Xo(()=>{const r=()=>at.preRender(i,!1,!0),s=n.map(o=>o.on("change",r));return()=>{s.forEach(o=>o()),jn(i)}}),e}function i1(n){Gr.current=[],n();const t=cp(Gr.current,n);return Gr.current=void 0,t}function r1(n,t,e,i){if(typeof n=="function")return i1(n);const s=Cy(t,e,i),o=Array.isArray(n)?wf(n,s):wf([n],([l])=>s(l)),a=Array.isArray(n)?void 0:n.accelerate;return a&&!a.isTransformed&&typeof t!="function"&&Array.isArray(e)&&i?.clamp!==!1&&(o.accelerate={...a,times:t,keyframes:e,isTransformed:!0}),o}function wf(n,t){const e=Ps(()=>[]);return cp(n,()=>{e.length=0;const i=n.length;for(let r=0;r<i;r++)e[r]=n[r].get();return t(e)})}function s1(n,t={}){const{isStatic:e}=A.useContext(As),i=()=>zt(n)?n.get():n;if(e)return r1(i);const r=up(i());return A.useInsertionEffect(()=>Ey(r,n,t),[r,JSON.stringify(t)]),r}function bb(n,t={}){return s1(n,{type:"spring",...t})}function xb(){!wu.current&&Cd();const[n]=A.useState(Ao.current);return n}const o1={some:0,all:1};function a1(n,t,{root:e,margin:i,amount:r="some"}={}){const s=pu(n),o=new WeakMap,a=u=>{u.forEach(c=>{const f=o.get(c.target);if(c.isIntersecting!==!!f)if(c.isIntersecting){const h=t(c.target,c);typeof h=="function"?o.set(c.target,h):l.unobserve(c.target)}else typeof f=="function"&&(f(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:e,rootMargin:i,threshold:typeof r=="number"?r:o1[r]});return s.forEach(u=>l.observe(u)),()=>l.disconnect()}function Sb(n,{root:t,margin:e,amount:i,once:r=!1,initial:s=!1}={}){const[o,a]=A.useState(s);return A.useEffect(()=>{if(!n.current||r&&o)return;const l=()=>(a(!0),r?void 0:()=>a(!1)),u={root:t&&t.current||void 0,margin:e,amount:i};return a1(n.current,l,u)},[t,n,e,r,i]),o}const Pb=n1;var l1=Object.defineProperty,Vo=Object.getOwnPropertySymbols,fp=Object.prototype.hasOwnProperty,hp=Object.prototype.propertyIsEnumerable,Tf=(n,t,e)=>t in n?l1(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,bl=(n,t)=>{for(var e in t||(t={}))fp.call(t,e)&&Tf(n,e,t[e]);if(Vo)for(var e of Vo(t))hp.call(t,e)&&Tf(n,e,t[e]);return n},xl=(n,t)=>{var e={};for(var i in n)fp.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&Vo)for(var i of Vo(n))t.indexOf(i)<0&&hp.call(n,i)&&(e[i]=n[i]);return e};var Wi;(n=>{const t=class J{constructor(l,u,c,f){if(this.version=l,this.errorCorrectionLevel=u,this.modules=[],this.isFunction=[],l<J.MIN_VERSION||l>J.MAX_VERSION)throw new RangeError("Version value out of range");if(f<-1||f>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let h=[];for(let p=0;p<this.size;p++)h.push(!1);for(let p=0;p<this.size;p++)this.modules.push(h.slice()),this.isFunction.push(h.slice());this.drawFunctionPatterns();const d=this.addEccAndInterleave(c);if(this.drawCodewords(d),f==-1){let p=1e9;for(let m=0;m<8;m++){this.applyMask(m),this.drawFormatBits(m);const g=this.getPenaltyScore();g<p&&(f=m,p=g),this.applyMask(m)}}r(0<=f&&f<=7),this.mask=f,this.applyMask(f),this.drawFormatBits(f),this.isFunction=[]}static encodeText(l,u){const c=n.QrSegment.makeSegments(l);return J.encodeSegments(c,u)}static encodeBinary(l,u){const c=n.QrSegment.makeBytes(l);return J.encodeSegments([c],u)}static encodeSegments(l,u,c=1,f=40,h=-1,d=!0){if(!(J.MIN_VERSION<=c&&
vendor: 8,393 bytes, line 9
9c<=f&&f<=J.MAX_VERSION)||h<-1||h>7)throw new RangeError("Invalid value");let p,m;for(p=c;;p++){const y=J.getNumDataCodewords(p,u)*8,v=o.getTotalBits(l,p);if(v<=y){m=v;break}if(p>=f)throw new RangeError("Data too long")}for(const y of[J.Ecc.MEDIUM,J.Ecc.QUARTILE,J.Ecc.HIGH])d&&m<=J.getNumDataCodewords(p,y)*8&&(u=y);let g=[];for(const y of l){e(y.mode.modeBits,4,g),e(y.numChars,y.mode.numCharCountBits(p),g);for(const v of y.getData())g.push(v)}r(g.length==m);const _=J.getNumDataCodewords(p,u)*8;r(g.length<=_),e(0,Math.min(4,_-g.length),g),e(0,(8-g.length%8)%8,g),r(g.length%8==0);for(let y=236;g.length<_;y^=253)e(y,8,g);let w=[];for(;w.length*8<g.length;)w.push(0);return g.forEach((y,v)=>w[v>>>3]|=y<<7-(v&7)),new J(p,u,w,h)}getModule(l,u){return 0<=l&&l<this.size&&0<=u&&u<this.size&&this.modules[u][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let c=0;c<this.size;c++)this.setFunctionModule(6,c,c%2==0),this.setFunctionModule(c,6,c%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),u=l.length;for(let c=0;c<u;c++)for(let f=0;f<u;f++)c==0&&f==0||c==0&&f==u-1||c==u-1&&f==0||this.drawAlignmentPattern(l[c],l[f]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const u=this.errorCorrectionLevel.formatBits<<3|l;let c=u;for(let h=0;h<10;h++)c=c<<1^(c>>>9)*1335;const f=(u<<10|c)^21522;r(f>>>15==0);for(let h=0;h<=5;h++)this.setFunctionModule(8,h,i(f,h));this.setFunctionModule(8,7,i(f,6)),this.setFunctionModule(8,8,i(f,7)),this.setFunctionModule(7,8,i(f,8));for(let h=9;h<15;h++)this.setFunctionModule(14-h,8,i(f,h));for(let h=0;h<8;h++)this.setFunctionModule(this.size-1-h,8,i(f,h));for(let h=8;h<15;h++)this.setFunctionModule(8,this.size-15+h,i(f,h));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let c=0;c<12;c++)l=l<<1^(l>>>11)*7973;const u=this.version<<12|l;r(u>>>18==0);for(let c=0;c<18;c++){const f=i(u,c),h=this.size-11+c%3,d=Math.floor(c/3);this.setFunctionModule(h,d,f),this.setFunctionModule(d,h,f)}}drawFinderPattern(l,u){for(let c=-4;c<=4;c++)for(let f=-4;f<=4;f++){const h=Math.max(Math.abs(f),Math.abs(c)),d=l+f,p=u+c;0<=d&&d<this.size&&0<=p&&p<this.size&&this.setFunctionModule(d,p,h!=2&&h!=4)}}drawAlignmentPattern(l,u){for(let c=-2;c<=2;c++)for(let f=-2;f<=2;f++)this.setFunctionModule(l+f,u+c,Math.max(Math.abs(f),Math.abs(c))!=1)}setFunctionModule(l,u,c){this.modules[u][l]=c,this.isFunction[u][l]=!0}addEccAndInterleave(l){const u=this.version,c=this.errorCorrectionLevel;if(l.length!=J.getNumDataCodewords(u,c))throw new RangeError("Invalid argument");const f=J.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][u],h=J.ECC_CODEWORDS_PER_BLOCK[c.ordinal][u],d=Math.floor(J.getNumRawDataModules(u)/8),p=f-d%f,m=Math.floor(d/f);let g=[];const _=J.reedSolomonComputeDivisor(h);for(let y=0,v=0;y<f;y++){let T=l.slice(v,v+m-h+(y<p?0:1));v+=T.length;const E=J.reedSolomonComputeRemainder(T,_);y<p&&T.push(0),g.push(T.concat(E))}let w=[];for(let y=0;y<g[0].length;y++)g.forEach((v,T)=>{(y!=m-h||T>=p)&&w.push(v[y])});return r(w.length==d),w}drawCodewords(l){if(l.length!=Math.floor(J.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let u=0;for(let c=this.size-1;c>=1;c-=2){c==6&&(c=5);for(let f=0;f<this.size;f++)for(let h=0;h<2;h++){const d=c-h,m=(c+1&2)==0?this.size-1-f:f;!this.isFunction[m][d]&&u<l.length*8&&(this.modules[m][d]=i(l[u>>>3],7-(u&7)),u++)}}r(u==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let u=0;u<this.size;u++)for(let c=0;c<this.size;c++){let f;switch(l){case 0:f=(c+u)%2==0;break;case 1:f=u%2==0;break;case 2:f=c%3==0;break;case 3:f=(c+u)%3==0;break;case 4:f=(Math.floor(c/3)+Math.floor(u/2))%2==0;break;case 5:f=c*u%2+c*u%3==0;break;case 6:f=(c*u%2+c*u%3)%2==0;break;case 7:f=((c+u)%2+c*u%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[u][c]&&f&&(this.modules[u][c]=!this.modules[u][c])}}getPenaltyScore(){let l=0;for(let h=0;h<this.size;h++){let d=!1,p=0,m=[0,0,0,0,0,0,0];for(let g=0;g<this.size;g++)this.modules[h][g]==d?(p++,p==5?l+=J.PENALTY_N1:p>5&&l++):(this.finderPenaltyAddHistory(p,m),d||(l+=this.finderPenaltyCountPatterns(m)*J.PENALTY_N3),d=this.modules[h][g],p=1);l+=this.finderPenaltyTerminateAndCount(d,p,m)*J.PENALTY_N3}for(let h=0;h<this.size;h++){let d=!1,p=0,m=[0,0,0,0,0,0,0];for(let g=0;g<this.size;g++)this.modules[g][h]==d?(p++,p==5?l+=J.PENALTY_N1:p>5&&l++):(this.finderPenaltyAddHistory(p,m),d||(l+=this.finderPenaltyCountPatterns(m)*J.PENALTY_N3),d=this.modules[g][h],p=1);l+=this.finderPenaltyTerminateAndCount(d,p,m)*J.PENALTY_N3}for(let h=0;h<this.size-1;h++)for(let d=0;d<this.size-1;d++){const p=this.modules[h][d];p==this.modules[h][d+1]&&p==this.modules[h+1][d]&&p==this.modules[h+1][d+1]&&(l+=J.PENALTY_N2)}let u=0;for(const h of this.modules)u=h.reduce((d,p)=>d+(p?1:0),u);const c=this.size*this.size,f=Math.ceil(Math.abs(u*20-c*10)/c)-1;return r(0<=f&&f<=9),l+=f*J.PENALTY_N4,r(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,u=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let c=[6];for(let f=this.size-7;c.length<l;f-=u)c.splice(1,0,f);return c}}static getNumRawDataModules(l){if(l<J.MIN_VERSION||l>J.MAX_VERSION)throw new RangeError("Version number out of range");let u=(16*l+128)*l+64;if(l>=2){const c=Math.floor(l/7)+2;u-=(25*c-10)*c-55,l>=7&&(u-=36)}return r(208<=u&&u<=29648),u}static getNumDataCodewords(l,u){return Math.floor(J.getNumRawDataModules(l)/8)-J.ECC_CODEWORDS_PER_BLOCK[u.ordinal][l]*J.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let u=[];for(let f=0;f<l-1;f++)u.push(0);u.push(1);let c=1;for(let f=0;f<l;f++){for(let h=0;h<u.length;h++)u[h]=J.reedSolomonMultiply(u[h],c),h+1<u.length&&(u[h]^=u[h+1]);c=J.reedSolomonMultiply(c,2)}return u}static reedSolomonComputeRemainder(l,u){let c=u.map(f=>0);for(const f of l){const h=f^c.shift();c.push(0),u.forEach((d,p)=>c[p]^=J.reedSolomonMultiply(d,h))}return c}static reedSolomonMultiply(l,u){if(l>>>8||u>>>8)throw new RangeError("Byte out of range");let c=0;for(let f=7;f>=0;f--)c=c<<1^(c>>>7)*285,c^=(u>>>f&1)*l;return r(c>>>8==0),c}finderPenaltyCountPatterns(l){const u=l[1];r(u<=this.size*3);const c=u>0&&l[2]==u&&l[3]==u*3&&l[4]==u&&l[5]==u;return(c&&l[0]>=u*4&&l[6]>=u?1:0)+(c&&l[6]>=u*4&&l[0]>=u?1:0)}finderPenaltyTerminateAndCount(l,u,c){return l&&(this.finderPenaltyAddHistory(u,c),u=0),u+=this.size,this.finderPenaltyAddHistory(u,c),this.finderPenaltyCountPatterns(c)}finderPenaltyAddHistory(l,u){u[0]==0&&(l+=this.size),u.pop(),u.unshift(l)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],n.QrCode=t;function e(a,l,u){if(l<0||l>31||a>>>l)throw new RangeError("Value out of range");for(let c=l-1;c>=0;c--)u.push(a>>>c&1)}function i(a,l){return(a>>>l&1)!=0}function r(a){if(!a)throw new Error("Assertion error")}const s=class bt{constructor(l,u,c){if(this.mode=l,this.numChars=u,this.bitData=c,u<0)throw new RangeError("Invalid argument");this.bitData=c.slice()}static makeBytes(l){let u=[];for(const c of l)e(c,8,u);return new bt(bt.Mode.BYTE,l.length,u)}static makeNumeric(l){if(!bt.isNumeric(l))throw new RangeError("String contains 
9non-numeric characters");let u=[];for(let c=0;c<l.length;){const f=Math.min(l.length-c,3);e(parseInt(l.substring(c,c+f),10),f*3+1,u),c+=f}return new bt(bt.Mode.NUMERIC,l.length,u)}static makeAlphanumeric(l){if(!bt.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let u=[],c;for(c=0;c+2<=l.length;c+=2){let f=bt.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c))*45;f+=bt.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c+1)),e(f,11,u)}return c<l.length&&e(bt.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c)),6,u),new bt(bt.Mode.ALPHANUMERIC,l.length,u)}static makeSegments(l){return l==""?[]:bt.isNumeric(l)?[bt.makeNumeric(l)]:bt.isAlphanumeric(l)?[bt.makeAlphanumeric(l)]:[bt.makeBytes(bt.toUtf8ByteArray(l))]}static makeEci(l){let u=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)e(l,8,u);else if(l<16384)e(2,2,u),e(l,14,u);else if(l<1e6)e(6,3,u),e(l,21,u);else throw new RangeError("ECI assignment value out of range");return new bt(bt.Mode.ECI,0,u)}static isNumeric(l){return bt.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return bt.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,u){let c=0;for(const f of l){const h=f.mode.numCharCountBits(u);if(f.numChars>=1<<h)return 1/0;c+=4+h+f.bitData.length}return c}static toUtf8ByteArray(l){l=encodeURI(l);let u=[];for(let c=0;c<l.length;c++)l.charAt(c)!="%"?u.push(l.charCodeAt(c)):(u.push(parseInt(l.substring(c+1,c+3),16)),c+=2);return u}};s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let o=s;n.QrSegment=s})(Wi||(Wi={}));(n=>{(t=>{const e=class{constructor(r,s){this.ordinal=r,this.formatBits=s}};e.LOW=new e(0,1),e.MEDIUM=new e(1,0),e.QUARTILE=new e(2,3),e.HIGH=new e(3,2),t.Ecc=e})(n.QrCode||(n.QrCode={}))})(Wi||(Wi={}));(n=>{(t=>{const e=class{constructor(r,s){this.modeBits=r,this.numBitsCharCount=s}numCharCountBits(r){return this.numBitsCharCount[Math.floor((r+7)/17)]}};e.NUMERIC=new e(1,[10,12,14]),e.ALPHANUMERIC=new e(2,[9,11,13]),e.BYTE=new e(4,[8,16,16]),e.KANJI=new e(8,[8,10,12]),e.ECI=new e(7,[0,0,0]),t.Mode=e})(n.QrSegment||(n.QrSegment={}))})(Wi||(Wi={}));var ar=Wi;var u1={L:ar.QrCode.Ecc.LOW,M:ar.QrCode.Ecc.MEDIUM,Q:ar.QrCode.Ecc.QUARTILE,H:ar.QrCode.Ecc.HIGH},dp=128,pp="L",mp="#FFFFFF",gp="#000000",yp=!1,_p=1,c1=4,f1=0,h1=.1;function vp(n,t=0){const e=[];return n.forEach(function(i,r){let s=null;i.forEach(function(o,a){if(!o&&s!==null){e.push(`M${s+t} ${r+t}h${a-s}v1H${s+t}z`),s=null;return}if(a===i.length-1){if(!o)return;s===null?e.push(`M${a+t},${r+t} h1v1H${a+t}z`):e.push(`M${s+t},${r+t} h${a+1-s}v1H${s+t}z`);return}o&&s===null&&(s=a)})}),e.join("")}function wp(n,t){return n.slice().map((e,i)=>i<t.y||i>=t.y+t.h?e:e.map((r,s)=>s<t.x||s>=t.x+t.w?r:!1))}function d1(n,t,e,i){if(i==null)return null;const r=n.length+e*2,s=Math.floor(t*h1),o=r/t,a=(i.width||s)*o,l=(i.height||s)*o,u=i.x==null?n.length/2-a/2:i.x*o,c=i.y==null?n.length/2-l/2:i.y*o,f=i.opacity==null?1:i.opacity;let h=null;if(i.excavate){let p=Math.floor(u),m=Math.floor(c),g=Math.ceil(a+u-p),_=Math.ceil(l+c-m);h={x:p,y:m,w:g,h:_}}const d=i.crossOrigin;return{x:u,y:c,h:l,w:a,excavation:h,opacity:f,crossOrigin:d}}function p1(n,t){return t!=null?Math.max(Math.floor(t),0):n?c1:f1}function Tp({value:n,level:t,minVersion:e,includeMargin:i,marginSize:r,imageSettings:s,size:o,boostLevel:a}){let l=Nt.useMemo(()=>{const p=(Array.isArray(n)?n:[n]).reduce((m,g)=>(m.push(...ar.QrSegment.makeSegments(g)),m),[]);return ar.QrCode.encodeSegments(p,u1[t],e,void 0,void 0,a)},[n,t,e,a]);const{cells:u,margin:c,numCells:f,calculatedImageSettings:h}=Nt.useMemo(()=>{let d=l.getModules();const p=p1(i,r),m=d.length+p*2,g=d1(d,o,p,s);return{cells:d,margin:p,numCells:m,calculatedImageSettings:g}},[l,o,s,i,r]);return{qrcode:l,margin:c,cells:u,numCells:f,calculatedImageSettings:h}}var m1=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),g1=Nt.forwardRef(function(t,e){const i=t,{value:r,size:s=dp,level:o=pp,bgColor:a=mp,fgColor:l=gp,includeMargin:u=yp,minVersion:c=_p,boostLevel:f,marginSize:h,imageSettings:d}=i,m=xl(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:g}=m,_=xl(m,["style"]),w=d?.src,y=Nt.useRef(null),v=Nt.useRef(null),T=Nt.useCallback(O=>{y.current=O,typeof e=="function"?e(O):e&&(e.current=O)},[e]),[E,x]=Nt.useState(!1),{margin:S,cells:C,numCells:P,calculatedImageSettings:D}=Tp({value:r,level:o,minVersion:c,boostLevel:f,includeMargin:u,marginSize:h,imageSettings:d,size:s});Nt.useEffect(()=>{if(y.current!=null){const O=y.current,F=O.getContext("2d");if(!F)return;let j=C;const N=v.current,z=D!=null&&N!==null&&N.complete&&N.naturalHeight!==0&&N.naturalWi
9dth!==0;z&&D.excavation!=null&&(j=wp(C,D.excavation));const Y=window.devicePixelRatio||1;O.height=O.width=s*Y;const b=s/P*Y;F.scale(b,b),F.fillStyle=a,F.fillRect(0,0,P,P),F.fillStyle=l,m1?F.fill(new Path2D(vp(j,S))):C.forEach(function(nt,Lt){nt.forEach(function(Re,ht){Re&&F.fillRect(ht+S,Lt+S,1,1)})}),D&&(F.globalAlpha=D.opacity),z&&F.drawImage(N,D.x+S,D.y+S,D.w,D.h)}}),Nt.useEffect(()=>{x(!1)},[w]);const R=bl({height:s,width:s},g);let V=null;return w!=null&&(V=Nt.createElement("img",{src:w,key:w,style:{display:"none"},onLoad:()=>{x(!0)},ref:v,crossOrigin:D?.crossOrigin})),Nt.createElement(Nt.Fragment,null,Nt.createElement("canvas",bl({style:R,height:s,width:s,ref:T,role:"img"},_)),V)});g1.displayName="QRCodeCanvas";var y1=Nt.forwardRef(function(t,e){const i=t,{value:r,size:s=dp,level:o=pp,bgColor:a=mp,fgColor:l=gp,includeMargin:u=yp,minVersion:c=_p,boostLevel:f,title:h,marginSize:d,imageSettings:p}=i,m=xl(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:g,cells:_,numCells:w,calculatedImageSettings:y}=Tp({value:r,level:o,minVersion:c,boostLevel:f,includeMargin:u,marginSize:d,imageSettings:p,size:s});let v=_,T=null;p!=null&&y!=null&&(y.excavation!=null&&(v=wp(_,y.excavation)),T=Nt.createElement("image",{href:p.src,height:y.h,width:y.w,x:y.x+g,y:y.y+g,preserveAspectRatio:"none",opacity:y.opacity,crossOrigin:y.crossOrigin}));const E=vp(v,g);return Nt.createElement("svg",bl({height:s,width:s,viewBox:`0 0 ${w} ${w}`,ref:e,role:"img"},m),!!h&&Nt.createElement("title",null,h),Nt.createElement("path",{fill:a,d:`M0,0 h${w}v${w}H0z`,shapeRendering:"crispEdges"}),Nt.createElement("path",{fill:l,d:E,shapeRendering:"crispEdges"}),T)});y1.displayName="QRCodeSVG";function On(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function bp(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t}var Ue={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ds={duration:.5,overwrite:!1,delay:0},Pu,Qt,pt,Qe=1e8,ct=1/Qe,Sl=Math.PI*2,_1=Sl/4,v1=0,xp=Math.sqrt,w1=Math.cos,T1=Math.sin,Ht=function(t){return typeof t=="string"},St=function(t){return typeof t=="function"},Wn=function(t){return typeof t=="number"},Cu=function(t){return typeof t>"u"},Cn=function(t){return typeof t=="object"},Pe=function(t){return t!==!1},Eu=function(){return typeof window<"u"},js=function(t){return St(t)||Ht(t)},Sp=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},he=Array.isArray,b1=/random\([^)]+\)/g,x1=/,\s*/g,bf=/(?:-?\.?\d|\.)+/gi,Pp=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,lr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ba=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Cp=/[+-]=-?[.\d]+/,S1=/[^,'"\[\]\s]+/gi,P1=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,yt,yn,Pl,Mu,Ye={},Lo={},Ep,Mp=function(t){return(Lo=Tr(t,Ye))&&Ae},Au=function(t,e){},ps=function(t,e){return!e&&void 0},Ap=function(t,e){return t&&(Ye[t]=e)&&Lo&&(Lo[t]=e)||Ye},ms=function(){return 0},C1={suppressEvents:!0,isStart:!0,kill:!1},co={suppressEvents:!0,kill:!1},E1={suppressEvents:!0},Ru={},si=[],Cl={},Rp,Ie={},xa={},xf=30,fo=[],Du="",ku=function(t){var e=t[0],i,r;if(Cn(e)||St(e)||(t=[t]),!(i=(e._gsap||{}).harness)){for(r=fo.length;r--&&!fo[r].targetTest(e););i=fo[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Zp(t[r],i)))||t.splice(r,1);return t},Vi=function(t){return t._gsap||ku(Ze(t))[0]._gsap},Dp=function(t,e,i){return(i=t[e])&&St(i)?t[e]():Cu(i)&&t.getAttribute&&t.getAttribute(e)||i},Ce=function(t,e){return(t=t.split(",")).forEach(e)||t},Mt=function(t){return Math.round(t*1e5)/1e5||0},gt=function(t){return Math.round(t*1e7)/1e7||0},fr=function(t,e){var i=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),i==="+"?t+r:i==="-"?t-r:i==="*"?t*r:t/r},M1=function(t,e){for(var i=e.length,r=0;t.indexOf(e[r])<0&&++r<i;);return r<i},Io=function(){var t=si.length,e=si.slice(0),i,r;for(Cl={},si.length=0,i=0;i<t;i++)r=e[i],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Ou=function(t){return!!(t._initted||t._startAt||t.add)}
vendor: 4,244 bytes, line 9
9,kp=function(t,e,i,r){si.length&&!Qt&&Io(),t.render(e,i,!!(Qt&&e<0&&Ou(t))),si.length&&!Qt&&Io()},Op=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(S1).length<2?e:Ht(t)?t.trim():t},Vp=function(t){return t},He=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},A1=function(t){return function(e,i){for(var r in i)r in e||r==="duration"&&t||r==="ease"||(e[r]=i[r])}},Tr=function(t,e){for(var i in e)t[i]=e[i];return t},Sf=function n(t,e){for(var i in e)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=Cn(e[i])?n(t[i]||(t[i]={}),e[i]):e[i]);return t},Fo=function(t,e){var i={},r;for(r in t)r in e||(i[r]=t[r]);return i},Qr=function(t){var e=t.parent||yt,i=t.keyframes?A1(he(t.keyframes)):He;if(Pe(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},R1=function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0},Lp=function(t,e,i,r,s){var o=t[r],a;if(s)for(a=e[s];o&&o[s]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[r]=e,e._prev=o,e.parent=e._dp=t,e},Jo=function(t,e,i,r){i===void 0&&(i="_first"),r===void 0&&(r="_last");var s=e._prev,o=e._next;s?s._next=o:t[i]===e&&(t[i]=o),o?o._prev=s:t[r]===e&&(t[r]=s),e._next=e._prev=e.parent=null},ui=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Li=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},D1=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},El=function(t,e,i,r){return t._startAt&&(Qt?t._startAt.revert(co):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},k1=function n(t){return!t||t._ts&&n(t.parent)},Pf=function(t){return t._repeat?br(t._tTime,t=t.duration()+t._rDelay)*t:0},br=function(t,e){var i=Math.floor(t=gt(t/e));return t&&i===t?i-1:i},Bo=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ta=function(t){return t._end=gt(t._start+(t._tDur/Math.abs(t._ts||t._rts||ct)||0))},ea=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=gt(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ta(t),i._dirty||Li(i,t)),t},Ip=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=Bo(t.rawTime(),e),(!e._dur||Ds(0,e.totalDuration(),i)-e._tTime>ct)&&e.render(i,!0)),Li(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-ct}},wn=function(t,e,i,r){return e.parent&&ui(e),e._start=gt((Wn(i)?i:i||t!==yt?Xe(t,i,e):t._time)+e._delay),e._end=gt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Lp(t,e,"_first","_last",t._sort?"_start":0),Ml(e)||(t._recent=e),r||Ip(t,e),t._ts<0&&ea(t,t._tTime),t},Fp=function(t,e){return(Ye.ScrollTrigger||Au("scrollTrigger",e))&&Ye.ScrollTrigger.create(e,t)},Bp=function(t,e,i,r,s){if(Lu(t,e,s),!t._initted)return 1;if(!i&&t._pt&&!Qt&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&Rp!==Be.frame)return si.push(t),t._lazy=[s,r],1},O1=function n(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||n(e))},Ml=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},V1=function(t,e,i,r){var s=t.ratio,o=e<0||!e&&(!t._start&&O1(t)&&!(!t._initted&&Ml(t))||(t._ts<0||t._dp._ts<0)&&!Ml(t))?0:1,a=t._rDelay,l=0,u,c,f;if(a&&t._repeat&&(l=Ds(0,t._tDur,e),c=br(l,a),t._yoyo&&c&1&&(o=1-o),c!==br(t._tTime,a)&&(s=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==s||Qt||r||t._zTime===ct||!e&&t._zTime){if(!t._initted&&Bp(t,e,r,i,l))return;for(f=t._zTime,t._zTime=e||(i?ct:0),i||(i=e&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,u=t._pt;u;)u.r(o,u.d),u=u._next;e<0&&El(t,e,i,!0),t._onUpdate&&!i&&ze(t,"onUpdate"),l&&t._repeat&&!i&&t.parent&&ze(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&ui(t,1),!i&&!Qt&&(ze(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},L1=function(t,e,i){var r;if(i>e)for(r=t._first;r&&r._start<=i;){if(r.data==="isPause"&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=i;){if(r.data==="isPause"&&r._start<e)return r;r=r._prev}}
vendor: 4,255 bytes, line 9
9,xr=function(t,e,i,r){var s=t._repeat,o=gt(e)||0,a=t._tTime/t._tDur;return a&&!r&&(t._time*=o/t._dur),t._dur=o,t._tDur=s?s<0?1e10:gt(o*(s+1)+t._rDelay*s):o,a>0&&!r&&ea(t,t._tTime=t._tDur*a),t.parent&&ta(t),i||Li(t.parent,t),t},Cf=function(t){return t instanceof le?Li(t):xr(t,t._dur)},I1={_start:0,endTime:ms,totalDuration:ms},Xe=function n(t,e,i){var r=t.labels,s=t._recent||I1,o=t.duration()>=Qe?s.endTime(!1):t._dur,a,l,u;return Ht(e)&&(isNaN(e)||e in r)?(l=e.charAt(0),u=e.substr(-1)==="%",a=e.indexOf("="),l==="<"||l===">"?(a>=0&&(e=e.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(e.substr(1))||0)*(u?(a<0?s:i).totalDuration()/100:1)):a<0?(e in r||(r[e]=o),r[e]):(l=parseFloat(e.charAt(a-1)+e.substr(a+1)),u&&i&&(l=l/100*(he(i)?i[0]:i).totalDuration()),a>1?n(t,e.substr(0,a-1),i)+l:o+l)):e==null?o:+e},Zr=function(t,e,i){var r=Wn(e[1]),s=(r?2:1)+(t<2?0:1),o=e[s],a,l;if(r&&(o.duration=e[1]),o.parent=i,t){for(a=o,l=i;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=Pe(l.vars.inherit)&&l.parent;o.immediateRender=Pe(a.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new At(e[0],o,e[s+1])},di=function(t,e){return t||t===0?e(t):e},Ds=function(t,e,i){return i<t?t:i>e?e:i},ae=function(t,e){return!Ht(t)||!(e=P1.exec(t))?"":e[1]},F1=function(t,e,i){return di(i,function(r){return Ds(t,e,r)})},Al=[].slice,Np=function(t,e){return t&&Cn(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Cn(t[0]))&&!t.nodeType&&t!==yn},B1=function(t,e,i){return i===void 0&&(i=[]),t.forEach(function(r){var s;return Ht(r)&&!e||Np(r,1)?(s=i).push.apply(s,Ze(r)):i.push(r)})||i},Ze=function(t,e,i){return pt&&!e&&pt.selector?pt.selector(t):Ht(t)&&!i&&(Pl||!Sr())?Al.call((e||Mu).querySelectorAll(t),0):he(t)?B1(t,i):Np(t)?Al.call(t,0):t?[t]:[]},Rl=function(t){return t=Ze(t)[0]||ps("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return Ze(e,i.querySelectorAll?i:i===t?ps("Invalid scope")||Mu.createElement("div"):t)}},zp=function(t){return t.sort(function(){return .5-Math.random()})},jp=function(t){if(St(t))return t;var e=Cn(t)?t:{each:t},i=Ii(e.ease),r=e.from||0,s=parseFloat(e.base)||0,o={},a=r>0&&r<1,l=isNaN(r)||a,u=e.axis,c=r,f=r;return Ht(r)?c=f={center:.5,edges:.5,end:1}[r]||0:!a&&l&&(c=r[0],f=r[1]),function(h,d,p){var m=(p||e).length,g=o[m],_,w,y,v,T,E,x,S,C;if(!g){if(C=e.grid==="auto"?0:(e.grid||[1,Qe])[1],!C){for(x=-Qe;x<(x=p[C++].getBoundingClientRect().left)&&C<m;);C<m&&C--}for(g=o[m]=[],_=l?Math.min(C,m)*c-.5:r%C,w=C===Qe?0:l?m*f/C-.5:r/C|0,x=0,S=Qe,E=0;E<m;E++)y=E%C-_,v=w-(E/C|0),g[E]=T=u?Math.abs(u==="y"?v:y):xp(y*y+v*v),T>x&&(x=T),T<S&&(S=T);r==="random"&&zp(g),g.max=x-S,g.min=S,g.v=m=(parseFloat(e.amount)||parseFloat(e.each)*(C>m?m-1:u?u==="y"?m/C:C:Math.max(C,m/C))||0)*(r==="edges"?-1:1),g.b=m<0?s-m:s,g.u=ae(e.amount||e.each)||0,i=i&&m<0?Q1(i):i}return m=(g[h]-g.min)/g.max||0,gt(g.b+(i?i(m):m)*g.v)+g.u}},Dl=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var r=gt(Math.round(parseFloat(i)/t)*t*e);return(r-r%1)/e+(Wn(i)?0:ae(i))}},Wp=function(t,e){var i=he(t),r,s;return!i&&Cn(t)&&(r=i=t.radius||Qe,t.values?(t=Ze(t.values),(s=!Wn(t[0]))&&(r*=r)):t=Dl(t.increment)),di(e,i?St(t)?function(o){return s=t(o),Math.abs(s-o)<=r?s:o}:function(o){for(var a=parseFloat(s?o.x:o),l=parseFloat(s?o.y:0),u=Qe,c=0,f=t.length,h,d;f--;)s?(h=t[f].x-a,d=t[f].y-l,h=h*h+d*d):h=Math.abs(t[f]-a),h<u&&(u=h,c=f);return c=!r||u<=r?t[c]:o,s||c===o||Wn(o)?c:c+ae(o)}:Dl(t))},Up=function(t,e,i,r){return di(he(t)?!e:i===!0?!!(i=0):!r,function(){return he(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(r=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+i*.99))/i)*i*r)/r})},N1=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(r){return e.reduce(function(s,o){return o(s)},r)}},z1=function(t,e){return function(i){return t(parseFloat(i))+(e||ae(i))}},j1=function(t,e,i){return Hp(t,e,0,1,i)},Yp=function(t,e,i){return di(i,function(r){return t[~~e(r)]})},W1=function n(t,e,i){var r=e-t;return he(t)?Yp(t,n(0,t.length),e):di(i,function(s){return(r+(s-t)%r)%r+t})},U1=function n(t,e,i){var r=e-t,s=r*2;return he(t)?Yp(t,n(0,t.length-1),e):di(i,function(o){return o=(s+(o-t)%s)%s||
vendor: 4,242 bytes, line 9
90,t+(o>r?s-o:o)})},gs=function(t){return t.replace(b1,function(e){var i=e.indexOf("[")+1,r=e.substring(i||7,i?e.indexOf("]"):e.length-1).split(x1);return Up(i?r:+r[0],i?0:+r[1],+r[2]||1e-5)})},Hp=function(t,e,i,r,s){var o=e-t,a=r-i;return di(s,function(l){return i+((l-t)/o*a||0)})},Y1=function n(t,e,i,r){var s=isNaN(t+e)?0:function(d){return(1-d)*t+d*e};if(!s){var o=Ht(t),a={},l,u,c,f,h;if(i===!0&&(r=1)&&(i=null),o)t={p:t},e={p:e};else if(he(t)&&!he(e)){for(c=[],f=t.length,h=f-2,u=1;u<f;u++)c.push(n(t[u-1],t[u]));f--,s=function(p){p*=f;var m=Math.min(h,~~p);return c[m](p-m)},i=e}else r||(t=Tr(he(t)?[]:{},t));if(!c){for(l in e)Vu.call(a,t,l,"get",e[l]);s=function(p){return Bu(p,a)||(o?t.p:t)}}}return di(i,s)},Ef=function(t,e,i){var r=t.labels,s=Qe,o,a,l;for(o in r)a=r[o]-e,a<0==!!i&&a&&s>(a=Math.abs(a))&&(l=o,s=a);return l},ze=function(t,e,i){var r=t.vars,s=r[e],o=pt,a=t._ctx,l,u,c;if(s)return l=r[e+"Params"],u=r.callbackScope||t,i&&si.length&&Io(),a&&(pt=a),c=l?s.apply(u,l):s.call(u),pt=o,c},Nr=function(t){return ui(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Qt),t.progress()<1&&ze(t,"onInterrupt"),t},ur,$p=[],Xp=function(t){if(t)if(t=!t.name&&t.default||t,Eu()||t.headless){var e=t.name,i=St(t),r=e&&!i&&t.init?function(){this._props=[]}:t,s={init:ms,render:Bu,add:Vu,kill:aw,modifier:ow,rawVars:0},o={targetTest:0,get:0,getSetter:Fu,aliases:{},register:0};if(Sr(),t!==r){if(Ie[e])return;He(r,He(Fo(t,s),o)),Tr(r.prototype,Tr(s,Fo(t,o))),Ie[r.prop=e]=r,t.targetTest&&(fo.push(r),Ru[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Ap(e,r),t.register&&t.register(Ae,r,Ee)}else $p.push(t)},ut=255,zr={aqua:[0,ut,ut],lime:[0,ut,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ut],navy:[0,0,128],white:[ut,ut,ut],olive:[128,128,0],yellow:[ut,ut,0],orange:[ut,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ut,0,0],pink:[ut,192,203],cyan:[0,ut,ut],transparent:[ut,ut,ut,0]},Sa=function(t,e,i){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(i-e)*t*6:t<.5?i:t*3<2?e+(i-e)*(2/3-t)*6:e)*ut+.5|0},Gp=function(t,e,i){var r=t?Wn(t)?[t>>16,t>>8&ut,t&ut]:0:zr.black,s,o,a,l,u,c,f,h,d,p;if(!r){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),zr[t])r=zr[t];else if(t.charAt(0)==="#"){if(t.length<6&&(s=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+s+s+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return r=parseInt(t.substr(1,6),16),[r>>16,r>>8&ut,r&ut,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),r=[t>>16,t>>8&ut,t&ut]}else if(t.substr(0,3)==="hsl"){if(r=p=t.match(bf),!e)l=+r[0]%360/360,u=+r[1]/100,c=+r[2]/100,o=c<=.5?c*(u+1):c+u-c*u,s=c*2-o,r.length>3&&(r[3]*=1),r[0]=Sa(l+1/3,s,o),r[1]=Sa(l,s,o),r[2]=Sa(l-1/3,s,o);else if(~t.indexOf("="))return r=t.match(Pp),i&&r.length<4&&(r[3]=1),r}else r=t.match(bf)||zr.transparent;r=r.map(Number)}return e&&!p&&(s=r[0]/ut,o=r[1]/ut,a=r[2]/ut,f=Math.max(s,o,a),h=Math.min(s,o,a),c=(f+h)/2,f===h?l=u=0:(d=f-h,u=c>.5?d/(2-f-h):d/(f+h),l=f===s?(o-a)/d+(o<a?6:0):f===o?(a-s)/d+2:(s-o)/d+4,l*=60),r[0]=~~(l+.5),r[1]=~~(u*100+.5),r[2]=~~(c*100+.5)),i&&r.length<4&&(r[3]=1),r},Kp=function(t){var e=[],i=[],r=-1;return t.split(oi).forEach(function(s){var o=s.match(lr)||[];e.push.apply(e,o),i.push(r+=o.length+1)}),e.c=i,e},Mf=function(t,e,i){var r="",s=(t+r).match(oi),o=e?"hsla(":"rgba(",a=0,l,u,c,f;if(!s)return t;if(s=s.map(function(h){return(h=Gp(h,e,1))&&o+(e?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),i&&(c=Kp(t),l=i.c,l.join(r)!==c.c.join(r)))for(u=t.replace(oi,"1").split(lr),f=u.length-1;a<f;a++)r+=u[a]+(~l.indexOf(a)?s.shift()||o+"0,0,0,0)":(c.length?c:s.length?s:i).shift());if(!u)for(u=t.split(oi),f=u.length-1;a<f;a++)r+=u[a]+s[a];return r+u[f]},oi=(function(){var n="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in zr)n+="|"+t+"\\b";return new RegExp(n+")","gi")})(),H1=/hsl[a]?\(/,qp=function(t){var e=t.join(" "),i;if(oi.lastIndex=0,oi.test(e))return i=H1.test(e),t[1]=Mf(t[1],i),t[0]=Mf(t[0],i,Kp(t[1])),!0},ys,Be=(function(){var n=Date.now,t=500,e=33,i=n(),r=i,s=1e3/240,o=s,a=[],l,u,c,f,h,d,p=function m(g){var _=n()-r,w=g===!0,y,v,T,E;if((_>t||_<0)&&(i+=_-e),r+=_,T=r-i,y=T-o,(y>0||w)&&(E=++f.frame,h=T-f.time*1e3,f.time=T=T/1e3,o+=y+(y>
vendor: 11,145 bytes, line 9
9=s?4:s-y),v=1),w||(l=u(m)),v)for(d=0;d<a.length;d++)a[d](T,h,E,g)};return f={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(g){return h/(1e3/(g||60))},wake:function(){Ep&&(!Pl&&Eu()&&(yn=Pl=window,Mu=yn.document||{},Ye.gsap=Ae,(yn.gsapVersions||(yn.gsapVersions=[])).push(Ae.version),Mp(Lo||yn.GreenSockGlobals||!yn.gsap&&yn||{}),$p.forEach(Xp)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(g){return setTimeout(g,o-f.time*1e3+1|0)},ys=1,p(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),ys=0,u=ms},lagSmoothing:function(g,_){t=g||1/0,e=Math.min(_||33,t)},fps:function(g){s=1e3/(g||240),o=f.time*1e3+s},add:function(g,_,w){var y=_?function(v,T,E,x){g(v,T,E,x),f.remove(y)}:g;return f.remove(g),a[w?"unshift":"push"](y),Sr(),y},remove:function(g,_){~(_=a.indexOf(g))&&a.splice(_,1)&&d>=_&&d--},_listeners:a},f})(),Sr=function(){return!ys&&Be.wake()},et={},$1=/^[\d.\-M][\d.\-,\s]/,X1=/["']/g,G1=function(t){for(var e={},i=t.substr(1,t.length-3).split(":"),r=i[0],s=1,o=i.length,a,l,u;s<o;s++)l=i[s],a=s!==o-1?l.lastIndexOf(","):l.length,u=l.substr(0,a),e[r]=isNaN(u)?u.replace(X1,"").trim():+u,r=l.substr(a+1).trim();return e},K1=function(t){var e=t.indexOf("(")+1,i=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<i?t.indexOf(")",i+1):i)},q1=function(t){var e=(t+"").split("("),i=et[e[0]];return i&&e.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[G1(e[1])]:K1(t).split(",").map(Op)):et._CE&&$1.test(t)?et._CE("",t):i},Q1=function(t){return function(e){return 1-t(1-e)}},Ii=function(t,e){return t&&(St(t)?t:et[t]||q1(t))||e},Xi=function(t,e,i,r){i===void 0&&(i=function(l){return 1-e(1-l)}),r===void 0&&(r=function(l){return l<.5?e(l*2)/2:1-e((1-l)*2)/2});var s={easeIn:e,easeOut:i,easeInOut:r},o;return Ce(t,function(a){et[a]=Ye[a]=s,et[o=a.toLowerCase()]=i;for(var l in s)et[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=et[a+"."+l]=s[l]}),s},Qp=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},Pa=function n(t,e,i){var r=e>=1?e:1,s=(i||(t?.3:.45))/(e<1?e:1),o=s/Sl*(Math.asin(1/r)||0),a=function(c){return c===1?1:r*Math.pow(2,-10*c)*T1((c-o)*s)+1},l=t==="out"?a:t==="in"?function(u){return 1-a(1-u)}:Qp(a);return s=Sl/s,l.config=function(u,c){return n(t,u,c)},l},Ca=function n(t,e){e===void 0&&(e=1.70158);var i=function(o){return o?--o*o*((e+1)*o+e)+1:0},r=t==="out"?i:t==="in"?function(s){return 1-i(1-s)}:Qp(i);return r.config=function(s){return n(t,s)},r};Ce("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,t){var e=t<5?t+1:t;Xi(n+",Power"+(e-1),t?function(i){return Math.pow(i,e)}:function(i){return i},function(i){return 1-Math.pow(1-i,e)},function(i){return i<.5?Math.pow(i*2,e)/2:1-Math.pow((1-i)*2,e)/2})});et.Linear.easeNone=et.none=et.Linear.easeIn;Xi("Elastic",Pa("in"),Pa("out"),Pa());(function(n,t){var e=1/t,i=2*e,r=2.5*e,s=function(a){return a<e?n*a*a:a<i?n*Math.pow(a-1.5/t,2)+.75:a<r?n*(a-=2.25/t)*a+.9375:n*Math.pow(a-2.625/t,2)+.984375};Xi("Bounce",function(o){return 1-s(1-o)},s)})(7.5625,2.75);Xi("Expo",function(n){return Math.pow(2,10*(n-1))*n+n*n*n*n*n*n*(1-n)});Xi("Circ",function(n){return-(xp(1-n*n)-1)});Xi("Sine",function(n){return n===1?1:-w1(n*_1)+1});Xi("Back",Ca("in"),Ca("out"),Ca());et.SteppedEase=et.steps=Ye.SteppedEase={config:function(t,e){t===void 0&&(t=1);var i=1/t,r=t+(e?0:1),s=e?1:0,o=1-ct;return function(a){return((r*Ds(0,o,a)|0)+s)*i}}};ds.ease=et["quad.out"];Ce("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(n){return Du+=n+","+n+"Params,"});var Zp=function(t,e){this.id=v1++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Dp,this.set=e?e.getSetter:Fu},_s=(function(){function n(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,xr(this,+e.duration,1,1),this.data=e.data,pt&&(this._ctx=pt,pt.data.push(this)),ys||Be.wake()}var t=n.prototype;return t.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},t.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,xr(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,r){if(Sr(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(ea(this,i),!s._dp||s.parent||Ip(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&wn(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===ct||!this._initted&&this._dur&&i||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),kp(this,i,r)),this},t.time=function(i,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+Pf(this))%(this._dur+this._rDelay)||(i?this._dur:0),r):this._time},t.totalProgress=function(i,r){return arguments.length?this.totalTime(this.totalDuration()*i,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(i,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+Pf(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,r){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*s,r):this._repeat?br(this._tTime,s)+1:1},t.timeScale=function(i,r){if(!arguments.length)return this._rts===-ct?0:this._rts;if(this._rts===i)return this;var s=this.parent&&this._ts?Bo(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-ct?0:this._rts,this.totalTime(Ds(-Math.abs(this._delay),this.totalDuration(),s),r!==!1),ta(this),D1(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Sr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==ct&&(this._tTime-=ct)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=gt(i);var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&wn(r,this,this._start-this._delay),this}return this._start},t.endTime=function(i){return this._start+(Pe(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var r=this.parent||this._dp;return r?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Bo(r.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=E1);var r=Qt;return Qt=i,Ou(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),Qt=r,this},t.globalTime=function(i){for(var r=this,s=arguments.length?i:r.rawTime();r;)s=r._start+s/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(i):s},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,Cf(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var r=this._time;return this._rDelay=i,Cf(this),r?this.time(r):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,r){return this.totalTime(Xe(this,i),Pe(r))},t.restart=function(i,r){return this.play().totalTime(i?-this._delay:0,Pe(r)),this._dur||(this._zTime=-ct),this},t.play=function(i,r){return i!=null&&this.seek(i,r),this.reversed(!1).paused(!1)},t.reverse=function(i,r){return i!=null&&this.seek(i||this.totalDuration(),r),this.reversed(!0).paused(!1)},t.pause=function(i,r){return i!=null&&this.seek(i,r),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-ct:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-ct,this},t.isActive=function(){var i=this.parent||this._dp,r=this._start,s;return!!(!i||this._ts&&this._initted&&i.isActive()&&(s=i.rawTime(!0))>=r&&s<this.endTime(!0)-ct)},t.eventCallback=function(i,r,s){var o=this.vars;return arguments.length>1?(r?(o[i]=r,s&&(o[i+"Params"]=s),i==="onUpdate"&&(this._onUpdate=r)):delete o[i],this):o[i]},t.then=function(i){var r=this,s=r._prom;return new Promise(function(o){var a=St(i)?i:Vp,l=function(){var c=r.then;r.then=null,s&&s(),St(a)&&(a=a(r))&&(a.then||a===r)&&(r.then=c),o(a),r.then=c};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?l():r._prom=l})},t.kill=function(){Nr(this)},n})();He(_s.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-ct,_prom:0,_ps:!1,_rts:1});var le=(function(n){bp(t,n);function t(i,r){var s;return i===void 0&&(i={}),s=n.call(this,i)||this,s.labels={},s.smoothChildTiming=!!i.smoothChildTiming,s.autoRemoveChildren=!!i.autoRemoveChildren,s._sort=Pe(i.sortChildren),yt&&wn(i.parent||yt,On(s),r),i.reversed&&s.reverse(),i.paused&&s.paused(!0),i.scrollTrigger&&Fp(On(s),i.scrollTrigger),s}var e=t.prototype;return e.to=function(r,s,o){return Zr(0,arguments,this),this},e.from=function(r,s,o){return Zr(1,arguments,this),this},e.fromTo=function(r,s,o,a){return Zr(2,arguments,this),this},e.set=function(r,s,o){return s.duration=0,s.parent=this,Qr(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new At(r,s,Xe(this,o),1),this},e.call=function(r,s,o){return wn(this,At.delayedCall(0,r,s),o)},e.staggerTo=function(r,s,o,a,l,u,c){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new At(r,o,Xe(this,l)),this},e.staggerFrom=function(r,s,o,a,l,u,c){return o.runBackwards=1,Qr(o).immediateRender=Pe(o.immediateRender),this.staggerTo(r,s,o,a,l,u,c)},e.staggerFromTo=function(r,s,o,a,l,u,c,f){return a.startAt=o,Qr(a).immediateRender=Pe(a.immediateRender),this.staggerTo(r,s,a,l,u,c,f)},e.render=function(r,s,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=r<=0?0:gt(r),f=this._zTime<0!=r<0&&(this._initted||!u),h,d,p,m,g,_,w,y,v,T,E,x;if(this!==yt&&c>l&&r>=0&&(c=l),c!==this._tTime||o||f){if(a!==this._time&&u&&(c+=this._time-a,r+=this._time-a),h=c,v=this._start,y=this._ts,_=!y,f&&(u||(a=this._zTime),(r||!s)&&(this._zTime=r)),this._repeat){if(E=this._yoyo,g=u+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(g*100+r,s,o);if(h=gt(c%g),c===l?(m=this._repeat,h=u):(T=gt(c/g),m=~~T,m&&m===T&&(h=u,m--),h>u&&(h=u)),T=br(this._tTime,g),!a&&this._tTime&&T!==m&&this._tTime-T*g-this._dur<=0&&(T=m),E&&m&1&&(h=u-h,x=1),m!==T&&!this._lock){var S=E&&T&1,C=S===(E&&m&1);
vendor: 14,377 bytes, line 9
9if(m<T&&(S=!S),a=S?0:c%u?u:c,this._lock=1,this.render(a||(x?0:gt(m*g)),s,!u)._lock=0,this._tTime=c,!s&&this.parent&&ze(this,"onRepeat"),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1,T=m),a&&a!==this._time||_!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,C&&(this._lock=2,a=S?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!_)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=L1(this,gt(a),gt(h)),w&&(c-=h-(h=w._start))),this._tTime=c,this._time=h,this._act=!!y,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,a=0),!a&&c&&u&&!s&&!T&&(ze(this,"onStart"),this._tTime!==c))return this;if(h>=a&&r>=0)for(d=this._first;d;){if(p=d._next,(d._act||h>=d._start)&&d._ts&&w!==d){if(d.parent!==this)return this.render(r,s,o);if(d.render(d._ts>0?(h-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(h-d._start)*d._ts,s,o),h!==this._time||!this._ts&&!_){w=0,p&&(c+=this._zTime=-ct);break}}d=p}else{d=this._last;for(var P=r<0?r:h;d;){if(p=d._prev,(d._act||P<=d._end)&&d._ts&&w!==d){if(d.parent!==this)return this.render(r,s,o);if(d.render(d._ts>0?(P-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(P-d._start)*d._ts,s,o||Qt&&Ou(d)),h!==this._time||!this._ts&&!_){w=0,p&&(c+=this._zTime=P?-ct:ct);break}}d=p}}if(w&&!s&&(this.pause(),w.render(h>=a?0:-ct)._zTime=h>=a?1:-1,this._ts))return this._start=v,ta(this),this.render(r,s,o);this._onUpdate&&!s&&ze(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&a)&&(v===this._start||Math.abs(y)!==Math.abs(this._ts))&&(this._lock||((r||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&ui(this,1),!s&&!(r<0&&!a)&&(c||a||!l)&&(ze(this,c===l&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(r,s){var o=this;if(Wn(s)||(s=Xe(this,s,r)),!(r instanceof _s)){if(he(r))return r.forEach(function(a){return o.add(a,s)}),this;if(Ht(r))return this.addLabel(r,s);if(St(r))r=At.delayedCall(0,r);else return this}return this!==r?wn(this,r,s):this},e.getChildren=function(r,s,o,a){r===void 0&&(r=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-Qe);for(var l=[],u=this._first;u;)u._start>=a&&(u instanceof At?s&&l.push(u):(o&&l.push(u),r&&l.push.apply(l,u.getChildren(!0,s,o)))),u=u._next;return l},e.getById=function(r){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===r)return s[o]},e.remove=function(r){return Ht(r)?this.removeLabel(r):St(r)?this.killTweensOf(r):(r.parent===this&&Jo(this,r),r===this._recent&&(this._recent=this._last),Li(this))},e.totalTime=function(r,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=gt(Be.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),n.prototype.totalTime.call(this,r,s),this._forcing=0,this):this._tTime},e.addLabel=function(r,s){return this.labels[r]=Xe(this,s),this},e.removeLabel=function(r){return delete this.labels[r],this},e.addPause=function(r,s,o){var a=At.delayedCall(0,s||ms,o);return a.data="isPause",this._hasPause=1,wn(this,a,Xe(this,r))},e.removePause=function(r){var s=this._first;for(r=Xe(this,r);s;)s._start===r&&s.data==="isPause"&&ui(s),s=s._next},e.killTweensOf=function(r,s,o){for(var a=this.getTweensOf(r,o),l=a.length;l--;)ti!==a[l]&&a[l].kill(r,s);return this},e.getTweensOf=function(r,s){for(var o=[],a=Ze(r),l=this._first,u=Wn(s),c;l;)l instanceof At?M1(l._targets,a)&&(u?(!ti||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&o.push(l):(c=l.getTweensOf(a,s)).length&&o.push.apply(o,c),l=l._next;return o},e.tweenTo=function(r,s){s=s||{};var o=this,a=Xe(o,r),l=s,u=l.startAt,c=l.onStart,f=l.onStartParams,h=l.immediateRender,d,p=At.to(o,He({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale())||ct,onStart:function(){if(o.pause(),!d){var g=s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale());p._dur!==g&&xr(p,g,0,1).render(p._time,!0,!0),d=1}c&&c.apply(p,f||[])}},s));return h?p.render(0):p},e.tweenFromTo=function(r,s,o){return this.tweenTo(s,He({startAt:{time:Xe(this,r)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(r){return r===void 0&&(r=this._time),Ef(this,Xe(this,r))},e.previousLabel=function(r){return r===void 0&&(r=this._time),Ef(this,Xe(this,r),1)},e.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+ct)},e.shiftChildren=function(r,s,o){o===void 0&&(o=0);var a=this._first,l=this.labels,u;for(r=gt(r);a;)a._start>=o&&(a._start+=r,a._end+=r),a=a._next;if(s)for(u in l)l[u]>=o&&(l[u]+=r);return Li(this)},e.invalidate=function(r){var s=this._first;for(this._lock=0;s;)s.invalidate(r),s=s._next;return n.prototype.invalidate.call(this,r)},e.clear=function(r){r===void 0&&(r=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Li(this)},e.totalDuration=function(r){var s=0,o=this,a=o._last,l=Qe,u,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-r:r));if(o._dirty){for(f=o.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,wn(o,a,c-a._delay,1)._lock=0):l=c,c<0&&a._ts&&(s-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=gt(c/o._ts),o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),a._end>s&&a._ts&&(s=a._end),a=u;xr(o,o===yt&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(r){if(yt._ts&&(kp(yt,Bo(r,yt)),Rp=Be.frame),Be.frame>=xf){xf+=Ue.autoSleep||120;var s=yt._first;if((!s||!s._ts)&&Ue.autoSleep&&Be._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||Be.sleep()}}},t})(_s);He(le.prototype,{_lock:0,_hasPause:0,_forcing:0});var Z1=function(t,e,i,r,s,o,a){var l=new Ee(this._pt,t,e,0,1,rm,null,s),u=0,c=0,f,h,d,p,m,g,_,w;for(l.b=i,l.e=r,i+="",r+="",(_=~r.indexOf("random("))&&(r=gs(r)),o&&(w=[i,r],o(w,t,e),i=w[0],r=w[1]),h=i.match(ba)||[];f=ba.exec(r);)p=f[0],m=r.substring(u,f.index),d?d=(d+1)%5:m.substr(-5)==="rgba("&&(d=1),p!==h[c++]&&(g=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:m||c===1?m:",",s:g,c:p.charAt(1)==="="?fr(g,p)-g:parseFloat(p)-g,m:d&&d<4?Math.round:0},u=ba.lastIndex);return l.c=u<r.length?r.substring(u,r.length):"",l.fp=a,(Cp.test(r)||_)&&(l.e=0),this._pt=l,l},Vu=function(t,e,i,r,s,o,a,l,u,c){St(r)&&(r=r(s||0,t,o));var f=t[e],h=i!=="get"?i:St(f)?u?t[e.indexOf("set")||!St(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():f,d=St(f)?u?iw:nm:Iu,p;if(Ht(r)&&(~r.indexOf("random(")&&(r=gs(r)),r.charAt(1)==="="&&(p=fr(h,r)+(ae(h)||0),(p||p===0)&&(r=p))),!c||h!==r||kl)return!isNaN(h*r)&&r!==""?(p=new Ee(this._pt,t,e,+h||0,r-(h||0),typeof f=="boolean"?sw:im,0,d),u&&(p.fp=u),a&&p.modifier(a,this,t),this._pt=p):(!f&&!(e in t)&&Au(e,r),Z1.call(this,t,e,h,r,d,l||Ue.stringFilter,u))},J1=function(t,e,i,r,s){if(St(t)&&(t=Jr(t,s,e,i,r)),!Cn(t)||t.style&&t.nodeType||he(t)||Sp(t))return Ht(t)?Jr(t,s,e,i,r):t;var o={},a;for(a in t)o[a]=Jr(t[a],s,e,i,r);return o},Jp=function(t,e,i,r,s,o){var a,l,u,c;if(Ie[t]&&(a=new Ie[t]).init(s,a.rawVars?e[t]:J1(e[t],r,s,o,i),i,r,o)!==!1&&(i._pt=l=new Ee(i._pt,s,t,0,1,a.render,a,0,a.priority),i!==ur))for(u=i._ptLookup[i._targets.indexOf(s)],c=a._props.length;c--;)u[a._props[c]]=l;return a},ti,kl,Lu=function n(t,e,i){var r=t.vars,s=r.ease,o=r.startAt,a=r.immediateRender,l=r.lazy,u=r.onUpdate,c=r.runBackwards,f=r.yoyoEase,h=r.keyframes,d=r.autoRevert,p=t._dur,m=t._startAt,g=t._targets,_=t.parent,w=_&&_.data==="nested"?_.vars.targets:g,y=t._overwrite==="auto"&&!Pu,v=t.timeline,T=r.easeReverse||f,E,x,S,C,P,D,R,V,O,F,j,N,z;if(v&&(!h||!s)&&(s="none"),t._ease=Ii(s,ds.ease),t._rEase=T&&(Ii(T)||t._ease),t._from=!v&&!!r.runBackwards,t._from&&(t.ratio=1),!v||h&&!r.stagger){if(V=g[0]?Vi(g[0]).harness:0,N=V&&r[V.prop],E=Fo(r,Ru),m&&(m._zTime<0&&m.progress(1),e<0&&c&&a&&!d?m.render(-1,!0):m.revert(c&&p?co:C1),m._lazy=0),o){if(ui(t._startAt=At.set(g,He({data:"isStart",overwrite:!1,parent:_,immediateRender:!0,lazy:!m&&Pe(l),startAt:null,delay:0,onUpdate:u&&function(){return ze(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(Qt||!a&&!d)&&t._startAt.revert(co),a&&p&&e<=0&&i<=0){e&&(t._zTime=e);return}}else if(c&&p&&!m){if(e&&(a=!1),S=He({overwrite:!1,data:"isFromStart",lazy:a&&!m&&Pe(l),immediateRender:a,stagger:0,parent:_},E),N&&(S[V.prop]=N),ui(t._startAt=At.set(g,S)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(Qt?t._startAt.revert(co):t._startAt.render(-1,!0)),t._zTime=e,!a)n(t._startAt,ct,ct);else if(!e)return}for(t._pt=t._ptCache=0,l=p&&Pe(l)||l&&!p,x=0;x<g.length;x++){if(P=g[x],R=P._gsap||ku(g)[x]._gsap,t._ptLookup[x]=F={},Cl[R.id]&&si.length&&Io(),j=w===g?x:w.indexOf(P),V&&(O=new V).init(P,N||E,t,j,w)!==!1&&(t._pt=C=new Ee(t._pt,P,O.name,0,1,O.render,O,0,O.priority),O._props.forEach(function(Y){F[Y]=C}),O.priority&&(D=1)),!V||N)for(S in E)Ie[S]&&(O=Jp(S,E,t,j,P,w))?O.priority&&(D=1):F[S]=C=Vu.call(t,P,S,"get",E[S],j,w,0,r.stringFilter);t._op&&t._op[x]&&t.kill(P,t._op[x]),y&&t._pt&&(ti=t,yt.killTweensOf(P,F,t.globalTime(e)),z=!t.parent,ti=0),t._pt&&l&&(Cl[R.id]=1)}D&&sm(t),t._onInit&&t._onInit(t)}t._onUpdate=u,t._initted=(!t._op||t._pt)&&!z,h&&e<=0&&v.render(Qe,!0,!0)},tw=function(t,e,i,r,s,o,a,l){var u=(t._pt&&t._ptCache||(t._ptCache={}))[e],c,f,h,d;if(!u)for(u=t._ptCache[e]=[],h=t._ptLookup,d=t._targets.length;d--;){if(c=h[d][e],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==e&&c.fp!==e;)c=c._next;if(!c)return kl=1,t.vars[e]="+=0",Lu(t,a),kl=0,l?ps(e+" not eligible for reset. Try splitting into individual properties"):1;u.push(c)}for(d=u.length;d--;)f=u[d],c=f._pt||f,c.s=(r||r===0)&&!s?r:c.s+(r||0)+o*c.c,c.c=i-c.s,f.e&&(f.e=Mt(i)+ae(f.e)),f.b&&(f.b=c.s+ae(f.b))},ew=function(t,e){var i=t[0]?Vi(t[0]).harness:0,r=i&&i.aliases,s,o,a,l;if(!r)return e;s=Tr({},e);for(o in r)if(o in s)for(l=r[o].split(","),a=l.length;a--;)s[l[a]]=s[o];return s},nw=function(t,e,i,r){var s=e.ease||r||"power1.inOut",o,a;if(he(e))a=i[t]||(i[t]=[]),e.forEach(function(l,u){return a.push({t:u/(e.length-1)*100,v:l,e:s})});else for(o in e)a=i[o]||(i[o]=[]),o==="ease"||a.push({t:parseFloat(t),v:e[o],e:s})},Jr=function(t,e,i,r,s){return St(t)?t.call(e,i,r,s):Ht(t)&&~t.indexOf("random(")?gs(t):t},tm=Du+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",em={};Ce(tm+",id,stagger,delay,duration,paused,scrollTrigger",function(n){return em[n]=1});var At=(function(n){bp(t,n);function t(i,r,s,o){var a;typeof r=="number"&&(s.duration=r,r=s,s=null),a=n.call(this,o?r:Qr(r))||this;var l=a.vars,u=l.duration,c=l.delay,f=l.immediateRender,h=l.stagger,d=l.overwrite,p=l.keyframes,m=l.defaults,g=l.scrollTrigger,_=r.parent||yt,w=(he(i)||Sp(i)?Wn(i[0]):"length"in r)?[i]:Ze(i),y,v,T,E,x,S,C,P;if(a._targets=w.length?ku(w):ps("GSAP target "+i+" not found. https://gsap.com",!Ue.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,p||h||js(u)||js(c)){r=a.vars;var D=r.easeReverse||r.yoyoEase;if(y=a.timeline=new le({data:"nested",defaults:m||{},targets:_&&_.data==="nested"?_.vars.targets:w}),y.kill(),y.parent=y._dp=On(a),y._start=0,h||js(u)||js(c)){if(E=w.length,C=h&&jp(h),Cn(h))for(x in h)~tm.indexOf(x)&&(P||(P={}),P[x]=h[x]);for(v=0;v<E;v++)T=Fo(r,em),T.stagger=0,D&&(T.easeReverse=D),P&&Tr(T,P),S=w[v],T.duration=+Jr(u,On(a),v,S,w),T.delay=(+Jr(c,On(a),v,S,w)||0)-a._delay,!h&&E===1&&T.delay&&(a._delay=c=T.delay,a._start+=c,T.delay=0),y.to(S,T,C?C(v,S,w):0),y._ease=et.none;y.duration()?u=c=0:a.timeline=0}else if(p){Qr(He(y.vars.defaults,{ease:"none"})),y._ease=Ii(p.ease||r.ease||"none");var R=0,V,O,F;if(he(p))p.forEach(function(j){return y.to(w,j,">")}),y.duration();else{T={};for(x in p)x==="ease"||x==="easeEach"||nw(x,p[x],T,p.easeEach);for(x in T)for(V=T[x].sort(function(j,N){return j.t-N.t}),R=0,v=0;v<V.length;v++)O=V[v],F={ease:O.e,duration:(O.t-(v?V[v-1].t:0))/100*u},F[x]=O.v,y.to(w,F,R),R+=F.duration;y.duration()<u&&y.to({},{duration:u-y.duration()})}}u||a.duration(u=y.duration())}else a.timeline=0;return d===!0&&!Pu&&(ti=On(a),yt.killTweensOf(w),ti=0),wn(_,On(a),s),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(f||!u&&!p&&a._start===gt(_._time)&&Pe(f)&&k1(On(a))&&_.data!=="nested")&&(a._tTime=-ct,a.render(Math.max(0,-c)||0)),g&&Fp(On(a),g),a}var e=t.prototype;return e.render=function(r,s,o){var a=this._time,l=this._tDur,u=this._dur,c=r<0,f=r>l-ct&&!c?l:r<ct?0:r,h,d,p,m,g,_,w,y;if(!u)V1(this,r,s,o);else if(f!==this._tTime||!r||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,y=this.timeline,this._repeat){if(m=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(m*100+r,s,o);if(h=gt(f%m),f===l?(p=this._repeat,h=u):(g=gt(f/m),p=~~g,p&&p===g?(h=u,p--):h>u&&(h=u)),_=this._yoyo&&p&1,_&&(h=u-h),g=br(this._tTime,m),h===a&&!o&&this._initted&&p===g)return this._tTime=f,this;p!==g&&this.vars.repeatRefresh&&!_&&!this._lock&&h!==m&&this._initted&&(this._lock=o=1,this.render(gt(m*p),!0).invalidate()._lock=0)}if(!this._initted){if(Bp(this,c?r:h,o,s,f))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&p!==g))return this;if(u!==this._dur)return this.render(r,s,o)}if(this._rEase){var v=h<a;if(v!==this._inv){var T=v?a:u-a;this._inv=v,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=a,this._invRecip=T?(v?-1:1)/T:0,this._invScale=v?-this.ratio:1-this.ratio,this._invEase=v?this._rEase:this._ease}this.ratio=w=this._invRatio+this._invScale*this._invEase((h-this._invTime)*this._invRecip)}else this.ratio=w=this._ease(h/u);if(this._from&&(this.ratio=w=1-w),this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),!a&&f&&!s&&!g&&(ze(this,"onStart"),this._tTime!==f))return this;for(d=this._pt;d;)d.r(w,d.d),d=d._next;y&&y.render(r<0?r:y._dur*y._ease(h/this._dur),s,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!s&&(c&&El(this,r,s,o),ze(this,"onUpdate")),this._repeat&&p!==g&&this.vars.onRepeat&&!s&&this.parent&&ze(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&El(this,r,!0,!0),(r||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&ui(this,1),!s&&!(c&&!a)&&(f||a||_)&&(ze(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets}
vendor: 10,740 bytes, line 9
9,e.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),n.prototype.invalidate.call(this,r)},e.resetTo=function(r,s,o,a,l){ys||Be.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Lu(this,u),c=this._ease(u/this._dur),tw(this,r,s,o,a,c,u,l)?this.resetTo(r,s,o,a,1):(ea(this,0),this.parent||Lp(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(r,s){if(s===void 0&&(s="all"),!r&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Nr(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Qt),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(r,s,ti&&ti.vars.overwrite!==!0)._first||Nr(this),this.parent&&o!==this.timeline.totalDuration()&&xr(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=r?Ze(r):a,u=this._ptLookup,c=this._pt,f,h,d,p,m,g,_;if((!s||s==="all")&&R1(a,l))return s==="all"&&(this._pt=0),Nr(this);for(f=this._op=this._op||[],s!=="all"&&(Ht(s)&&(m={},Ce(s,function(w){return m[w]=1}),s=m),s=ew(a,s)),_=a.length;_--;)if(~l.indexOf(a[_])){h=u[_],s==="all"?(f[_]=s,p=h,d={}):(d=f[_]=f[_]||{},p=s);for(m in p)g=h&&h[m],g&&((!("kill"in g.d)||g.d.kill(m)===!0)&&Jo(this,g,"_pt"),delete h[m]),d!=="all"&&(d[m]=1)}return this._initted&&!this._pt&&c&&Nr(this),this},t.to=function(r,s){return new t(r,s,arguments[2])},t.from=function(r,s){return Zr(1,arguments)},t.delayedCall=function(r,s,o,a){return new t(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(r,s,o){return Zr(2,arguments)},t.set=function(r,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new t(r,s)},t.killTweensOf=function(r,s,o){return yt.killTweensOf(r,s,o)},t})(_s);He(At.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Ce("staggerTo,staggerFrom,staggerFromTo",function(n){At[n]=function(){var t=new le,e=Al.call(arguments,0);return e.splice(n==="staggerFromTo"?5:4,0,0),t[n].apply(t,e)}});var Iu=function(t,e,i){return t[e]=i},nm=function(t,e,i){return t[e](i)},iw=function(t,e,i,r){return t[e](r.fp,i)},rw=function(t,e,i){return t.setAttribute(e,i)},Fu=function(t,e){return St(t[e])?nm:Cu(t[e])&&t.setAttribute?rw:Iu},im=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},sw=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},rm=function(t,e){var i=e._pt,r="";if(!t&&e.b)r=e.b;else if(t===1&&e.e)r=e.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+r,i=i._next;r+=e.c}e.set(e.t,e.p,r,e)},Bu=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},ow=function(t,e,i,r){for(var s=this._pt,o;s;)o=s._next,s.p===r&&s.modifier(t,e,i),s=o},aw=function(t){for(var e=this._pt,i,r;e;)r=e._next,e.p===t&&!e.op||e.op===t?Jo(this,e,"_pt"):e.dep||(i=1),e=r;return!i},lw=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r)},sm=function(t){for(var e=t._pt,i,r,s,o;e;){for(i=e._next,r=s;r&&r.pr>e.pr;)r=r._next;(e._prev=r?r._prev:o)?e._prev._next=e:s=e,(e._next=r)?r._prev=e:o=e,e=i}t._pt=s},Ee=(function(){function n(e,i,r,s,o,a,l,u,c){this.t=i,this.s=s,this.c=o,this.p=r,this.r=a||im,this.d=l||this,this.set=u||Iu,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=n.prototype;return t.modifier=function(i,r,s){this.mSet=this.mSet||this.set,this.set=lw,this.m=i,this.mt=s,this.tween=r},n})();Ce(Du+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(n){return Ru[n]=1});Ye.TweenMax=Ye.TweenLite=At;Ye.TimelineLite=Ye.TimelineMax=le;yt=new le({sortChildren:!1,defaults:ds,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ue.stringFilter=qp;var Fi=[],ho={},uw=[],Af=0,cw=0,Ea=function(t){return(ho[t]||uw).map(function(e){return e()})},Ol=function(){var t=Date.now(),e=[];t-Af>2&&(Ea("matchMediaInit"),Fi.forEach(function(i){var r=i.queries,s=i.conditions,o,a,l,u;for(a in r)o=yn.matchMedia(r[a]).matches,o&&(l=1),o!==s[a]&&(s[a]=o,u=1);u&&(i.revert(),l&&e.push(i))}),Ea("matchMediaRevert"),e.forEach(function(i){return i.onMatch(i,function(r){return i.add(null,r)})}),Af=t,Ea("matchMedia"))},om=(function(){function n(e,i){this.selector=i&&Rl(i),this.data=[],this._r=[],this.isReverted=!1,this.id=cw++,e&&this.add(e)}var t=n.prototype;return t.add=function(i,r,s){St(i)&&(s=r,r=i,i=St);var o=this,a=function(){var u=pt,c=o.selector,f;return u&&u!==o&&u.data.push(o),s&&(o.selector=Rl(s)),pt=o,f=r.apply(o,arguments),St(f)&&o._r.push(f),pt=u,o.selector=c,o.isReverted=!1,f};return o.last=a,i===St?a(o,function(l){return o.add(null,l)}):i?o[i]=a:a},t.ignore=function(i){var r=pt;pt=null,i(this),pt=r},t.getTweens=function(){var i=[];return this.data.forEach(function(r){return r instanceof n?i.push.apply(i,r.getTweens()):r instanceof At&&!(r.parent&&r.parent.data==="nested")&&i.push(r)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,r){var s=this;if(i?(function(){for(var a=s.getTweens(),l=s.data.length,u;l--;)u=s.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return a.splice(a.indexOf(c),1)}));for(a.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(i)}),l=s.data.length;l--;)u=s.data[l],u instanceof le?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof At)&&u.revert&&u.revert(i);s._r.forEach(function(c){return c(i,s)}),s.isReverted=!0})():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var o=Fi.length;o--;)Fi[o].id===this.id&&Fi.splice(o,1)},t.revert=function(i){this.kill(i||{})},n})(),fw=(function(){function n(e){this.contexts=[],this.scope=e,pt&&pt.data.push(this)}var t=n.prototype;return t.add=function(i,r,s){Cn(i)||(i={matches:i});var o=new om(0,s||this.scope),a=o.conditions={},l,u,c;pt&&!o.selector&&(o.selector=pt.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=i;for(u in i)u==="all"?c=1:(l=yn.matchMedia(i[u]),l&&(Fi.indexOf(o)<0&&Fi.push(o),(a[u]=l.matches)&&(c=1),l.addListener?l.addListener(Ol):l.addEventListener("change",Ol)));return c&&r(o,function(f){return o.add(null,f)}),this},t.revert=function(i){this.kill(i||{})},t.kill=function(i){this.contexts.forEach(function(r){return r.kill(i,!0)})},n})(),No={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(function(r){return Xp(r)})},timeline:function(t){return new le(t)},getTweensOf:function(t,e){return yt.getTweensOf(t,e)},getProperty:function(t,e,i,r){Ht(t)&&(t=Ze(t)[0]);var s=Vi(t||{}).get,o=i?Vp:Op;return i==="native"&&(i=""),t&&(e?o((Ie[e]&&Ie[e].get||s)(t,e,i,r)):function(a,l,u){return o((Ie[a]&&Ie[a].get||s)(t,a,l,u))})},quickSetter:function(t,e,i){if(t=Ze(t),t.length>1){var r=t.map(function(c){return Ae.quickSetter(c,e,i)}),s=r.length;return function(c){for(var f=s;f--;)r[f](c)}}t=t[0]||{};var o=Ie[e],a=Vi(t),l=a.harness&&(a.harness.aliases||{})[e]||e,u=o?function(c){var f=new o;ur._pt=0,f.init(t,i?c+i:c,ur,0,[t]),f.render(1,f),ur._pt&&Bu(1,ur)}:a.set(t,l);return o?u:function(c){return u(t,l,i?c+i:c,a,1)}},quickTo:function(t,e,i){var r,s=Ae.to(t,He((r={},r[e]="+=0.1",r.paused=!0,r.stagger=0,r),i||{})),o=function(l,u,c){return s.resetTo(e,l,u,c)};return o.tween=s,o},isTweening:function(t){return yt.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ii(t.ease,ds.ease)),Sf(ds,t||{})},config:function(t){return Sf(Ue,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,r=t.plugins,s=t.defaults,o=t.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!Ie[a]&&!Ye[a]&&ps(e+" effect requires "+a+" plugin.")}),xa[e]=function(a,l,u){return i(Ze(a),He(l||{},s),u)},o&&(le.prototype[e]=function(a,l,u){return this.add(xa[e](a,Cn(l)?l:(u=l)&&{},this),u)})},registerEase:function(t,e){et[t]=Ii(e)},parseEase:function(t,e){return arguments.length?Ii(t,e):et},getById:function(t){return yt.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var i=new le(t),r,s;for(i.smoothChildTiming=Pe(t.smoothChildTiming),yt.remove(i),i._dp=0,i._time=i._tTime=yt._time,r=yt._first;r;)s=r._next,(e||!(!r._dur&&r instanceof At&&r.vars.onComplete===r._targets[0]))&&wn(i,r,r._start-r._delay),r=s;return wn(yt,i,0),i},context:function(t,e){return t?new om(t,e):pt},matchMedia:function(t){return new fw(t)},matchMediaRefresh:function(){return Fi.forEach(function(t){var e=t.conditions,i,r;for(r in e)e[r]&&(e[r]=!1,i=1);i&&t.revert()})||Ol()},addEventListener:function(t,e){var i=ho[t]||(ho[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=ho[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1)},utils:{wrap:W1,wrapYoyo:U1,distribute:jp,random:Up,snap:Wp,normalize:j1,getUnit:ae,clamp:F1,splitColor:Gp,toArray:Ze,selector:Rl,mapRange:Hp,pipe:N1,unitize:z1,interpolate:Y1,shuffle:zp},install:Mp,effects:xa,ticker:Be,updateRoot:le.updateRoot,plugins:Ie,globalTimeline:yt,core:{PropTween:Ee,globals:Ap,Tween:At,Timeline:le,Animation:_s,getCache:Vi,_removeLinkedListItem:Jo,reverting:function(){return Qt},context:function(t){return t&&pt&&(pt.data.push(t),t._ctx=pt),pt},suppressOverwrites:function(t){return Pu=t}}};Ce("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return No[n]=At[n]});Be.add(le.updateRoot);ur=No.to({},{duration:0});var hw=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},dw=function(t,e){var i=t._targets,r,s,o;for(r in e)for(s=i.length;s--;)o=t._ptLookup[s][r],o&&(o=o.d)&&(o._pt&&(o=hw(o,r)),o&&o.modifier&&o.modifier(e[r],t,i[s],r))},Ma=function(t,e){return{name:t,headless:1,rawVars:1,init:function(r,s,o){o._onInit=function(a){var l,u;if(Ht(s)&&(l={},Ce(s,function(c){return l[c]=1}),s=l),e){l={};for(u in s)l[u]=e(s[u]);s=l}dw(a,s)}}}},Ae=No.registerPlugin({name:"attr",init:function(t,e,i,r,s){var o,a,l;this.tween=i;for(o in e)l=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(l||0)+"",e[o],r,s,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(t,e){for(var i=e._pt;i;)Qt?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",headless:1,init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},Ma("roundProps",Dl),Ma("modifiers"),Ma("snap",Wp))||No;At.version=le.version=Ae.version="3.15.0";Ep=1;Eu()&&Sr();var pw=et.Power0,mw=et.Power1,gw=et.Power2,yw=et.Power3,_w=et.Power4,vw=et.Linear,
vendor: 4,126 bytes, line 9
9ww=et.Quad,Tw=et.Cubic,bw=et.Quart,xw=et.Quint,Sw=et.Strong,Pw=et.Elastic,Cw=et.Back,Ew=et.SteppedEase,Mw=et.Bounce,Aw=et.Sine,Rw=et.Expo,Dw=et.Circ;var Rf,ei,hr,Nu,Ri,Df,zu,kw=function(){return typeof window<"u"},Un={},xi=180/Math.PI,dr=Math.PI/180,Qi=Math.atan2,kf=1e8,ju=/([A-Z])/g,Ow=/(left|right|width|margin|padding|x)/i,Vw=/[\s,\(]\S/,Tn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Vl=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Lw=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Iw=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Fw=function(t,e){return e.set(e.t,e.p,t===1?e.e:t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Bw=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},am=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},lm=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Nw=function(t,e,i){return t.style[e]=i},zw=function(t,e,i){return t.style.setProperty(e,i)},jw=function(t,e,i){return t._gsap[e]=i},Ww=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},Uw=function(t,e,i,r,s){var o=t._gsap;o.scaleX=o.scaleY=i,o.renderTransform(s,o)},Yw=function(t,e,i,r,s){var o=t._gsap;o[e]=i,o.renderTransform(s,o)},_t="transform",Me=_t+"Origin",Hw=function n(t,e){var i=this,r=this.target,s=r.style,o=r._gsap;if(t in Un&&s){if(this.tfm=this.tfm||{},t!=="transform")t=Tn[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return i.tfm[a]=Vn(r,a)}):this.tfm[t]=o.x?o[t]:Vn(r,t),t===Me&&(this.tfm.zOrigin=o.zOrigin);else return Tn.transform.split(",").forEach(function(a){return n.call(i,a,e)});if(this.props.indexOf(_t)>=0)return;o.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Me,e,"")),t=_t}(s||e)&&this.props.push(t,e,s[t])},um=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},$w=function(){var t=this.props,e=this.target,i=e.style,r=e._gsap,s,o;for(s=0;s<t.length;s+=3)t[s+1]?t[s+1]===2?e[t[s]](t[s+2]):e[t[s]]=t[s+2]:t[s+2]?i[t[s]]=t[s+2]:i.removeProperty(t[s].substr(0,2)==="--"?t[s]:t[s].replace(ju,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)r[o]=this.tfm[o];r.svg&&(r.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),s=zu(),(!s||!s.isStart)&&!i[_t]&&(um(i),r.zOrigin&&i[Me]&&(i[Me]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},cm=function(t,e){var i={target:t,props:[],revert:$w,save:Hw};return t._gsap||Ae.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(r){return i.save(r)}),i},fm,Ll=function(t,e){var i=ei.createElementNS?ei.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ei.createElement(t);return i&&i.style?i:ei.createElement(t)},je=function n(t,e,i){var r=getComputedStyle(t);return r[e]||r.getPropertyValue(e.replace(ju,"-$1").toLowerCase())||r.getPropertyValue(e)||!i&&n(t,Pr(e)||e,1)||""},Of="O,Moz,ms,Ms,Webkit".split(","),Pr=function(t,e,i){var r=e||Ri,s=r.style,o=5;if(t in s&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Of[o]+t in s););return o<0?null:(o===3?"ms":o>=0?Of[o]:"")+t},Il=function(){kw()&&window.document&&(Rf=window,ei=Rf.document,hr=ei.documentElement,Ri=Ll("div")||{style:{}},Ll("div"),_t=Pr(_t),Me=_t+"Origin",Ri.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",fm=!!Pr("perspective"),zu=Ae.core.reverting,Nu=1)},Vf=function(t){var e=t.ownerSVGElement,i=Ll("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=t.cloneNode(!0),s;r.style.display="block",i.appendChild(r),hr.appendChild(i);try{s=r.getBBox()}catch{}return i.removeChild(r),hr.removeChild(i),s},Lf=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},hm=function(t){var e,i;try{e=t.getBBox()}catch{e=Vf(t),i=1}return e&&(e.width||e.height)||i||(e=Vf(t)),e&&!e.width&&!e.x&&!e.y?{x:+Lf(t,["x","cx","x1"])||0,y:+Lf(t,["y","cy","y1"])||0,width:0,height:0}:e},dm=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&hm(t))},ci=function(t,e){if(e){var i=t.style,r;
vendor: 4,287 bytes, line 9
9e in Un&&e!==Me&&(e=_t),i.removeProperty?(r=e.substr(0,2),(r==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),i.removeProperty(r==="--"?e:e.replace(ju,"-$1").toLowerCase())):i.removeAttribute(e)}},ni=function(t,e,i,r,s,o){var a=new Ee(t._pt,e,i,0,1,o?lm:am);return t._pt=a,a.b=r,a.e=s,t._props.push(i),a},If={deg:1,rad:1,turn:1},Xw={grid:1,flex:1},fi=function n(t,e,i,r){var s=parseFloat(i)||0,o=(i+"").trim().substr((s+"").length)||"px",a=Ri.style,l=Ow.test(e),u=t.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,h=r==="px",d=r==="%",p,m,g,_;if(r===o||!s||If[r]||If[o])return s;if(o!=="px"&&!h&&(s=n(t,e,i,"px")),_=t.getCTM&&dm(t),(d||o==="%")&&(Un[e]||~e.indexOf("adius")))return p=_?t.getBBox()[l?"width":"height"]:t[c],Mt(d?s/p*f:s/100*p);if(a[l?"width":"height"]=f+(h?o:r),m=r!=="rem"&&~e.indexOf("adius")||r==="em"&&t.appendChild&&!u?t:t.parentNode,_&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===ei||!m.appendChild)&&(m=ei.body),g=m._gsap,g&&d&&g.width&&l&&g.time===Be.time&&!g.uncache)return Mt(s/g.width*f);if(d&&(e==="height"||e==="width")){var w=t.style[e];t.style[e]=f+r,p=t[c],w?t.style[e]=w:ci(t,e)}else(d||o==="%")&&!Xw[je(m,"display")]&&(a.position=je(t,"position")),m===t&&(a.position="static"),m.appendChild(Ri),p=Ri[c],m.removeChild(Ri),a.position="absolute";return l&&d&&(g=Vi(m),g.time=Be.time,g.width=m[c]),Mt(h?p*s/f:p&&s?f/p*s:0)},Vn=function(t,e,i,r){var s;return Nu||Il(),e in Tn&&e!=="transform"&&(e=Tn[e],~e.indexOf(",")&&(e=e.split(",")[0])),Un[e]&&e!=="transform"?(s=ws(t,r),s=e!=="transformOrigin"?s[e]:s.svg?s.origin:jo(je(t,Me))+" "+s.zOrigin+"px"):(s=t.style[e],(!s||s==="auto"||r||~(s+"").indexOf("calc("))&&(s=zo[e]&&zo[e](t,e,i)||je(t,e)||Dp(t,e)||(e==="opacity"?1:0))),i&&!~(s+"").trim().indexOf(" ")?fi(t,e,s,i)+i:s},Gw=function(t,e,i,r){if(!i||i==="none"){var s=Pr(e,t,1),o=s&&je(t,s,1);o&&o!==i?(e=s,i=o):e==="borderColor"&&(i=je(t,"borderTopColor"))}var a=new Ee(this._pt,t.style,e,0,1,rm),l=0,u=0,c,f,h,d,p,m,g,_,w,y,v,T;if(a.b=i,a.e=r,i+="",r+="",r.substring(0,6)==="var(--"&&(r=je(t,r.substring(4,r.indexOf(")")))),r==="auto"&&(m=t.style[e],t.style[e]=r,r=je(t,e)||r,m?t.style[e]=m:ci(t,e)),c=[i,r],qp(c),i=c[0],r=c[1],h=i.match(lr)||[],T=r.match(lr)||[],T.length){for(;f=lr.exec(r);)g=f[0],w=r.substring(l,f.index),p?p=(p+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(p=1),g!==(m=h[u++]||"")&&(d=parseFloat(m)||0,v=m.substr((d+"").length),g.charAt(1)==="="&&(g=fr(d,g)+v),_=parseFloat(g),y=g.substr((_+"").length),l=lr.lastIndex-y.length,y||(y=y||Ue.units[e]||v,l===r.length&&(r+=y,a.e+=y)),v!==y&&(d=fi(t,e,m,y)||0),a._pt={_next:a._pt,p:w||u===1?w:",",s:d,c:_-d,m:p&&p<4||e==="zIndex"?Math.round:0});a.c=l<r.length?r.substring(l,r.length):""}else a.r=e==="display"&&r==="none"?lm:am;return Cp.test(r)&&(a.e=0),this._pt=a,a},Ff={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Kw=function(t){var e=t.split(" "),i=e[0],r=e[1]||"50%";return(i==="top"||i==="bottom"||r==="left"||r==="right")&&(t=i,i=r,r=t),e[0]=Ff[i]||i,e[1]=Ff[r]||r,e.join(" ")},qw=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i=e.t,r=i.style,s=e.u,o=i._gsap,a,l,u;if(s==="all"||s===!0)r.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)a=s[u],Un[a]&&(l=1,a=a==="transformOrigin"?Me:_t),ci(i,a);l&&(ci(i,_t),o&&(o.svg&&i.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",ws(i,1),o.uncache=1,um(r)))}},zo={clearProps:function(t,e,i,r,s){if(s.data!=="isFromStart"){var o=t._pt=new Ee(t._pt,e,i,0,0,qw);return o.u=r,o.pr=-10,o.tween=s,t._props.push(i),1}}},vs=[1,0,0,1,0,0],pm={},mm=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},Bf=function(t){var e=je(t,_t);return mm(e)?vs:e.substr(7).match(Pp).map(Mt)},Wu=function(t,e){var i=t._gsap||Vi(t),r=t.style,s=Bf(t),o,a,l,u;return i.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?vs:s):(s===vs&&!t.offsetParent&&t!==hr&&!i.svg&&(l=r.display,r.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,a=t.nextElementSibling,hr.appendChild(t)),s=Bf(t),l?r.display=l:ci(t,"display"),u&&(a?o.insertBefore(t,a):o?o.appendChild(t):hr.removeChild(t))),e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)}
vendor: 5,219 bytes, line 9
9,Fl=function(t,e,i,r,s,o){var a=t._gsap,l=s||Wu(t,!0),u=a.xOrigin||0,c=a.yOrigin||0,f=a.xOffset||0,h=a.yOffset||0,d=l[0],p=l[1],m=l[2],g=l[3],_=l[4],w=l[5],y=e.split(" "),v=parseFloat(y[0])||0,T=parseFloat(y[1])||0,E,x,S,C;i?l!==vs&&(x=d*g-p*m)&&(S=v*(g/x)+T*(-m/x)+(m*w-g*_)/x,C=v*(-p/x)+T*(d/x)-(d*w-p*_)/x,v=S,T=C):(E=hm(t),v=E.x+(~y[0].indexOf("%")?v/100*E.width:v),T=E.y+(~(y[1]||y[0]).indexOf("%")?T/100*E.height:T)),r||r!==!1&&a.smooth?(_=v-u,w=T-c,a.xOffset=f+(_*d+w*m)-_,a.yOffset=h+(_*p+w*g)-w):a.xOffset=a.yOffset=0,a.xOrigin=v,a.yOrigin=T,a.smooth=!!r,a.origin=e,a.originIsAbsolute=!!i,t.style[Me]="0px 0px",o&&(ni(o,a,"xOrigin",u,v),ni(o,a,"yOrigin",c,T),ni(o,a,"xOffset",f,a.xOffset),ni(o,a,"yOffset",h,a.yOffset)),t.setAttribute("data-svg-origin",v+" "+T)},ws=function(t,e){var i=t._gsap||new Zp(t);if("x"in i&&!e&&!i.uncache)return i;var r=t.style,s=i.scaleX<0,o="px",a="deg",l=getComputedStyle(t),u=je(t,Me)||"0",c,f,h,d,p,m,g,_,w,y,v,T,E,x,S,C,P,D,R,V,O,F,j,N,z,Y,b,nt,Lt,Re,ht,$t;return c=f=h=m=g=_=w=y=v=0,d=p=1,i.svg=!!(t.getCTM&&dm(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(r[_t]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[_t]!=="none"?l[_t]:"")),r.scale=r.rotate=r.translate="none"),x=Wu(t,i.svg),i.svg&&(i.uncache?(z=t.getBBox(),u=i.xOrigin-z.x+"px "+(i.yOrigin-z.y)+"px",N=""):N=!e&&t.getAttribute("data-svg-origin"),Fl(t,N||u,!!N||i.originIsAbsolute,i.smooth!==!1,x)),T=i.xOrigin||0,E=i.yOrigin||0,x!==vs&&(D=x[0],R=x[1],V=x[2],O=x[3],c=F=x[4],f=j=x[5],x.length===6?(d=Math.sqrt(D*D+R*R),p=Math.sqrt(O*O+V*V),m=D||R?Qi(R,D)*xi:0,w=V||O?Qi(V,O)*xi+m:0,w&&(p*=Math.abs(Math.cos(w*dr))),i.svg&&(c-=T-(T*D+E*V),f-=E-(T*R+E*O))):($t=x[6],Re=x[7],b=x[8],nt=x[9],Lt=x[10],ht=x[11],c=x[12],f=x[13],h=x[14],S=Qi($t,Lt),g=S*xi,S&&(C=Math.cos(-S),P=Math.sin(-S),N=F*C+b*P,z=j*C+nt*P,Y=$t*C+Lt*P,b=F*-P+b*C,nt=j*-P+nt*C,Lt=$t*-P+Lt*C,ht=Re*-P+ht*C,F=N,j=z,$t=Y),S=Qi(-V,Lt),_=S*xi,S&&(C=Math.cos(-S),P=Math.sin(-S),N=D*C-b*P,z=R*C-nt*P,Y=V*C-Lt*P,ht=O*P+ht*C,D=N,R=z,V=Y),S=Qi(R,D),m=S*xi,S&&(C=Math.cos(S),P=Math.sin(S),N=D*C+R*P,z=F*C+j*P,R=R*C-D*P,j=j*C-F*P,D=N,F=z),g&&Math.abs(g)+Math.abs(m)>359.9&&(g=m=0,_=180-_),d=Mt(Math.sqrt(D*D+R*R+V*V)),p=Mt(Math.sqrt(j*j+$t*$t)),S=Qi(F,j),w=Math.abs(S)>2e-4?S*xi:0,v=ht?1/(ht<0?-ht:ht):0),i.svg&&(N=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!mm(je(t,_t)),N&&t.setAttribute("transform",N))),Math.abs(w)>90&&Math.abs(w)<270&&(s?(d*=-1,w+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,w+=w<=0?180:-180)),e=e||i.uncache,i.x=c-((i.xPercent=c&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+o,i.y=f-((i.yPercent=f&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+o,i.z=h+o,i.scaleX=Mt(d),i.scaleY=Mt(p),i.rotation=Mt(m)+a,i.rotationX=Mt(g)+a,i.rotationY=Mt(_)+a,i.skewX=w+a,i.skewY=y+a,i.transformPerspective=v+o,(i.zOrigin=parseFloat(u.split(" ")[2])||!e&&i.zOrigin||0)&&(r[Me]=jo(u)),i.xOffset=i.yOffset=0,i.force3D=Ue.force3D,i.renderTransform=i.svg?Zw:fm?gm:Qw,i.uncache=0,i},jo=function(t){return(t=t.split(" "))[0]+" "+t[1]},Aa=function(t,e,i){var r=ae(e);return Mt(parseFloat(e)+parseFloat(fi(t,"x",i+"px",r)))+r},Qw=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,gm(t,e)},wi="0deg",Lr="0px",Ti=") ",gm=function(t,e){var i=e||this,r=i.xPercent,s=i.yPercent,o=i.x,a=i.y,l=i.z,u=i.rotation,c=i.rotationY,f=i.rotationX,h=i.skewX,d=i.skewY,p=i.scaleX,m=i.scaleY,g=i.transformPerspective,_=i.force3D,w=i.target,y=i.zOrigin,v="",T=_==="auto"&&t&&t!==1||_===!0;if(y&&(f!==wi||c!==wi)){var E=parseFloat(c)*dr,x=Math.sin(E),S=Math.cos(E),C;E=parseFloat(f)*dr,C=Math.cos(E),o=Aa(w,o,x*C*-y),a=Aa(w,a,-Math.sin(E)*-y),l=Aa(w,l,S*C*-y+y)}g!==Lr&&(v+="perspective("+g+Ti),(r||s)&&(v+="translate("+r+"%, "+s+"%) "),(T||o!==Lr||a!==Lr||l!==Lr)&&(v+=l!==Lr||T?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+Ti),u!==wi&&(v+="rotate("+u+Ti),c!==wi&&(v+="rotateY("+c+Ti),f!==wi&&(v+="rotateX("+f+Ti),(h!==wi||d!==wi)&&(v+="skew("+h+", "+d+Ti),(p!==1||m!==1)&&(v+="scale("+p+", "+m+Ti),w.style[_t]=v||"translate(0, 0)"},Zw=function(t,e){var i=e||this,r=i.xPercent,s=i.yPercent,o=i.x,a=i.y,l=i.rotation,u=i.skewX,c=i.skewY,f=i.scaleX,h=i.scaleY,d=i.target,p=i.xOrigin,m=i.yOrigin,g=i.xOffset,_=i.yOffset,w=i.forceCSS,y=parseFloat(o),v=parseFloat(a),T,E,x,S,C;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=dr,u*=dr,T=Math.cos(l)*f,E=Math.sin(l)*f,x=Math.sin(l-u)*-h,S=Math.cos(l-u)*h,u&&(c*=dr,C=Math.tan(u-c),C=Math.sqrt(1+C*C),x*=C,S*=C,c&&(C=Math.tan(c),C=Math.sqrt(1+C*C),T*=C,E*=C)),T=Mt(T),E=Mt(E),x=Mt(x),S=Mt(S)):(T=f,S=h,E=x=0),(y&&!~(o+"").indexOf("px")||v&&!~(a+"").indexOf("px"))&&(y=fi(d,"x",o,"px"),v=fi(d,"y",a,"px")),(p||m||g||_)&&(y=Mt(y+p-(p*T+m*x)+g),v=Mt(v+m-(p*E+m*S)+_)),(r||s)&&(C=d.getBBox(),y=Mt(y+r/100*C.width),v=Mt(v+s/100*C.height)),C="matrix("+T+","+E+","+x+","+S+","+y+","+v+")",d.setAttribute("transform",C),w&&(d.style[_t]=C)}
vendor: 4,424 bytes, line 9
9,Jw=function(t,e,i,r,s){var o=360,a=Ht(s),l=parseFloat(s)*(a&&~s.indexOf("rad")?xi:1),u=l-r,c=r+u+"deg",f,h;return a&&(f=s.split("_")[1],f==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),f==="cw"&&u<0?u=(u+o*kf)%o-~~(u/o)*o:f==="ccw"&&u>0&&(u=(u-o*kf)%o-~~(u/o)*o)),t._pt=h=new Ee(t._pt,e,i,r,u,Lw),h.e=c,h.u="deg",t._props.push(i),h},Nf=function(t,e){for(var i in e)t[i]=e[i];return t},tT=function(t,e,i){var r=Nf({},i._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=i.style,a,l,u,c,f,h,d,p;r.svg?(u=i.getAttribute("transform"),i.setAttribute("transform",""),o[_t]=e,a=ws(i,1),ci(i,_t),i.setAttribute("transform",u)):(u=getComputedStyle(i)[_t],o[_t]=e,a=ws(i,1),o[_t]=u);for(l in Un)u=r[l],c=a[l],u!==c&&s.indexOf(l)<0&&(d=ae(u),p=ae(c),f=d!==p?fi(i,l,u,p):parseFloat(u),h=parseFloat(c),t._pt=new Ee(t._pt,a,l,f,h-f,Vl),t._pt.u=p||0,t._props.push(l));Nf(a,r)};Ce("padding,margin,Width,Radius",function(n,t){var e="Top",i="Right",r="Bottom",s="Left",o=(t<3?[e,i,r,s]:[e+s,e+i,r+i,r+s]).map(function(a){return t<2?n+a:"border"+a+n});zo[t>1?"border"+n:n]=function(a,l,u,c,f){var h,d;if(arguments.length<4)return h=o.map(function(p){return Vn(a,p,u)}),d=h.join(" "),d.split(h[0]).length===5?h[0]:d;h=(c+"").split(" "),d={},o.forEach(function(p,m){return d[p]=h[m]=h[m]||h[(m-1)/2|0]}),a.init(l,d,f)}});var Uu={name:"css",register:Il,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,s){var o=this._props,a=t.style,l=i.vars.startAt,u,c,f,h,d,p,m,g,_,w,y,v,T,E,x,S,C;Nu||Il(),this.styles=this.styles||cm(t),S=this.styles.props,this.tween=i;for(m in e)if(m!=="autoRound"&&(c=e[m],!(Ie[m]&&Jp(m,e,i,r,t,s)))){if(d=typeof c,p=zo[m],d==="function"&&(c=c.call(i,r,t,s),d=typeof c),d==="string"&&~c.indexOf("random(")&&(c=gs(c)),p)p(this,t,m,c,i)&&(x=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(m)+"").trim(),c+="",oi.lastIndex=0,oi.test(u)||(g=ae(u),_=ae(c),_?g!==_&&(u=fi(t,m,u,_)+_):g&&(c+=g)),this.add(a,"setProperty",u,c,r,s,0,0,m),o.push(m),S.push(m,0,a[m]);else if(d!=="undefined"){if(l&&m in l?(u=typeof l[m]=="function"?l[m].call(i,r,t,s):l[m],Ht(u)&&~u.indexOf("random(")&&(u=gs(u)),ae(u+"")||u==="auto"||(u+=Ue.units[m]||ae(Vn(t,m))||""),(u+"").charAt(1)==="="&&(u=Vn(t,m))):u=Vn(t,m),h=parseFloat(u),w=d==="string"&&c.charAt(1)==="="&&c.substr(0,2),w&&(c=c.substr(2)),f=parseFloat(c),m in Tn&&(m==="autoAlpha"&&(h===1&&Vn(t,"visibility")==="hidden"&&f&&(h=0),S.push("visibility",0,a.visibility),ni(this,a,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=Tn[m],~m.indexOf(",")&&(m=m.split(",")[0]))),y=m in Un,y){if(this.styles.save(m),C=c,d==="string"&&c.substring(0,6)==="var(--"){if(c=je(t,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var P=t.style.perspective;t.style.perspective=c,c=je(t,"perspective"),P?t.style.perspective=P:ci(t,"perspective")}f=parseFloat(c)}if(v||(T=t._gsap,T.renderTransform&&!e.parseTransform||ws(t,e.parseTransform),E=e.smoothOrigin!==!1&&T.smooth,v=this._pt=new Ee(this._pt,a,_t,0,1,T.renderTransform,T,0,-1),v.dep=1),m==="scale")this._pt=new Ee(this._pt,T,"scaleY",T.scaleY,(w?fr(T.scaleY,w+f):f)-T.scaleY||0,Vl),this._pt.u=0,o.push("scaleY",m),m+="X";else if(m==="transformOrigin"){S.push(Me,0,a[Me]),c=Kw(c),T.svg?Fl(t,c,0,E,0,this):(_=parseFloat(c.split(" ")[2])||0,_!==T.zOrigin&&ni(this,T,"zOrigin",T.zOrigin,_),ni(this,a,m,jo(u),jo(c)));continue}else if(m==="svgOrigin"){Fl(t,c,1,E,0,this);continue}else if(m in pm){Jw(this,T,m,h,w?fr(h,w+c):c);continue}else if(m==="smoothOrigin"){ni(this,T,"smooth",T.smooth,c);continue}else if(m==="force3D"){T[m]=c;continue}else if(m==="transform"){tT(this,c,t);continue}}else m in a||(m=Pr(m)||m);if(y||(f||f===0)&&(h||h===0)&&!Vw.test(c)&&m in a)g=(u+"").substr((h+"").length),f||(f=0),_=ae(c)||(m in Ue.units?Ue.units[m]:g),g!==_&&(h=fi(t,m,u,_)),this._pt=new Ee(this._pt,y?T:a,m,h,(w?fr(h,w+f):f)-h,!y&&(_==="px"||m==="zIndex")&&e.autoRound!==!1?Bw:Vl),this._pt.u=_||0,y&&C!==c?(this._pt.b=u,this._pt.e=C,this._pt.r=Fw):g!==_&&_!=="%"&&(this._pt.b=u,this._pt.r=Iw);else if(m in a)Gw.call(this,t,m,u,w?w+c:c);else if(m in t)this.add(t,m,u||t[m],w?w+c:c,r,s);else if(m!=="parseTransform"){Au(m,c);continue}y||(m in a?S.push(m,0,a[m]):typeof t[m]=="function"?S.push(m,2,t[m]()):S.push(m,1,u||t[m])),o.push(m)}}x&&sm(this)},render:function(t,e){if(e.tween._time||!zu())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()}
vendor: 5,384 bytes, line 9
9,get:Vn,aliases:Tn,getSetter:function(t,e,i){var r=Tn[e];return r&&r.indexOf(",")<0&&(e=r),e in Un&&e!==Me&&(t._gsap.x||Vn(t,"x"))?i&&Df===i?e==="scale"?Ww:jw:(Df=i||{})&&(e==="scale"?Uw:Yw):t.style&&!Cu(t.style[e])?Nw:~e.indexOf("-")?zw:Fu(t,e)},core:{_removeProperty:ci,_getMatrix:Wu}};Ae.utils.checkPrefix=Pr;Ae.core.getStyleSaver=cm;(function(n,t,e,i){var r=Ce(n+","+t+","+e,function(s){Un[s]=1});Ce(t,function(s){Ue.units[s]="deg",pm[s]=1}),Tn[r[13]]=n+","+t,Ce(i,function(s){var o=s.split(":");Tn[o[1]]=r[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Ce("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){Ue.units[n]="px"});Ae.registerPlugin(Uu);var Bl=Ae.registerPlugin(Uu)||Ae,eT=Bl.core.Tween;const Mb=Object.freeze(Object.defineProperty({__proto__:null,Back:Cw,Bounce:Mw,CSSPlugin:Uu,Circ:Dw,Cubic:Tw,Elastic:Pw,Expo:Rw,Linear:vw,Power0:pw,Power1:mw,Power2:gw,Power3:yw,Power4:_w,Quad:ww,Quart:bw,Quint:xw,Sine:Aw,SteppedEase:Ew,Strong:Sw,TimelineLite:le,TimelineMax:le,TweenLite:At,TweenMax:eT,default:Bl,gsap:Bl},Symbol.toStringTag,{value:"Module"}));function nT(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function iT(n,t,e){return t&&nT(n.prototype,t),n}var qt,po,Ne,ii,ri,pr,ym,Si,mr,_m,In,ln,vm,wm=function(){return qt||typeof window<"u"&&(qt=window.gsap)&&qt.registerPlugin&&qt},Tm=1,cr=[],K=[],hn=[],ts=Date.now,Nl=function(t,e){return e},rT=function(){var t=mr.core,e=t.bridge||{},i=t._scrollers,r=t._proxies;i.push.apply(i,K),r.push.apply(r,hn),K=i,hn=r,Nl=function(o,a){return e[o](a)}},Bn=function(t,e){return~hn.indexOf(t)&&hn[hn.indexOf(t)+1][e]},gr=function(t){return!!~_m.indexOf(t)},ye=function(t,e,i,r,s){return t.addEventListener(e,i,{passive:r!==!1,capture:!!s})},ge=function(t,e,i,r){return t.removeEventListener(e,i,!!r)},Ws="scrollLeft",Us="scrollTop",zl=function(){return In&&In.isPressed||K.cache++},Wo=function(t,e){var i=function r(s){if(s||s===0){Tm&&(Ne.history.scrollRestoration="manual");var o=In&&In.isPressed;s=r.v=Math.round(s)||(In&&In.iOS?1:0),t(s),r.cacheID=K.cache,o&&Nl("ss",s)}else(e||K.cache!==r.cacheID||Nl("ref"))&&(r.cacheID=K.cache,r.v=t());return r.v+r.offset};return i.offset=0,t&&i},ue={s:Ws,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Wo(function(n){return arguments.length?Ne.scrollTo(n,Vt.sc()):Ne.pageXOffset||ii[Ws]||ri[Ws]||pr[Ws]||0})},Vt={s:Us,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:ue,sc:Wo(function(n){return arguments.length?Ne.scrollTo(ue.sc(),n):Ne.pageYOffset||ii[Us]||ri[Us]||pr[Us]||0})},ve=function(t,e){return(e&&e._ctx&&e._ctx.selector||qt.utils.toArray)(t)[0]||(typeof t=="string"&&qt.config().nullTargetWarn!==!1?void 0:null)},sT=function(t,e){for(var i=e.length;i--;)if(e[i]===t||e[i].contains(t))return!0;return!1},Yn=function(t,e){var i=e.s,r=e.sc;gr(t)&&(t=ii.scrollingElement||ri);var s=K.indexOf(t),o=r===Vt.sc?1:2;!~s&&(s=K.push(t)-1),K[s+o]||ye(t,"scroll",zl);var a=K[s+o],l=a||(K[s+o]=Wo(Bn(t,i),!0)||(gr(t)?r:Wo(function(u){return arguments.length?t[i]=u:t[i]})));return l.target=t,a||(l.smooth=qt.getProperty(t,"scrollBehavior")==="smooth"),l},Uo=function(t,e,i){var r=t,s=t,o=ts(),a=o,l=e||50,u=Math.max(500,l*3),c=function(p,m){var g=ts();m||g-o>l?(s=r,r=p,a=o,o=g):i?r+=p:r=s+(p-s)/(g-a)*(o-a)},f=function(){s=r=i?0:r,a=o=0},h=function(p){var m=a,g=s,_=ts();return(p||p===0)&&p!==r&&c(p),o===a||_-a>u?0:(r+(i?g:-g))/((i?_:o)-m)*1e3};return{update:c,reset:f,getVelocity:h}},Ir=function(t,e){return e&&!t._gsapAllow&&t.cancelable!==!1&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},zf=function(t){var e=Math.max.apply(Math,t),i=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(i)?e:i},bm=function(){mr=qt.core.globals().ScrollTrigger,mr&&mr.core&&rT()},xm=function(t){return qt=t||wm(),!po&&qt&&typeof document<"u"&&document.body&&(Ne=window,ii=document,ri=ii.documentElement,pr=ii.body,_m=[Ne,ii,ri,pr],qt.utils.clamp,vm=qt.core.context||function(){},Si="onpointerenter"in pr?"pointer":"mouse",ym=vt.isTouch=Ne.matchMedia&&Ne.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ne||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ln=vt.eventTypes=("ontouchstart"in ri?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in ri?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Tm=0},500),po=1),mr||bm(),po};ue.op=Vt;K.cache=0;var vt=(function(){function n(e){this.init(e)}var t=n.prototype;return t.init=function(i){po||xm(qt),mr||bm();var r=i.tolerance,s=i.dragMinimum,o=i.type,a=i.target,l=i.lineHeight,u=i.debounce,c=i.preventDefault,f=i.onStop,h=i.onStopDelay,d=i.ignore,p=i.wheelSpeed,m=i.event,g=i.onDragStart,_=i.onDragEnd,w=i.onDrag,y=i.onPress,v=i.onRelease,T=i.onRight,E=i.onLeft,x=i.onUp,S=i.onDown,C=i.onChangeX,P=i.onChangeY,D=i.onChange,R=i.onToggleX,V=i.onToggleY,O=i.onHover,F=i.onHoverEnd,j=i.onMove,N=i.ignoreCheck,z=i.isNormalizer,Y=i.onGestureStart,b=i.onGestureEnd,nt=i.onWheel,Lt=i.onEnable,Re
vendor: 5,377 bytes, line 9
9=i.onDisable,ht=i.onClick,$t=i.scrollSpeed,Zt=i.capture,Rt=i.allowClicks,de=i.lockAxis,Jt=i.onLockAxis;this.target=a=ve(a)||ri,this.vars=i,d&&(d=qt.utils.toArray(d)),r=r||1e-9,s=s||0,p=p||1,$t=$t||1,o=o||"wheel,touch,pointer",u=u!==!1,l||(l=parseFloat(Ne.getComputedStyle(pr).lineHeight)||22);var Hn,pe,me,it,Pt,Se,De,M=this,ke=0,En=0,$n=i.passive||!c&&i.passive!==!1,wt=Yn(a,ue),Mn=Yn(a,Vt),Xn=wt(),pi=Mn(),jt=~o.indexOf("touch")&&!~o.indexOf("pointer")&&ln[0]==="pointerdown",Gn=gr(a),Ct=a.ownerDocument||ii,en=[0,0,0],$e=[0,0,0],An=0,Rr=function(){return An=ts()},Dt=function(U,rt){return(M.event=U)&&d&&sT(U.target,d)||rt&&jt&&U.pointerType!=="touch"||N&&N(U,rt)},ks=function(){M._vx.reset(),M._vy.reset(),pe.pause(),f&&f(M)},Rn=function(){var U=M.deltaX=zf(en),rt=M.deltaY=zf($e),k=Math.abs(U)>=r,H=Math.abs(rt)>=r;D&&(k||H)&&D(M,U,rt,en,$e),k&&(T&&M.deltaX>0&&T(M),E&&M.deltaX<0&&E(M),C&&C(M),R&&M.deltaX<0!=ke<0&&R(M),ke=M.deltaX,en[0]=en[1]=en[2]=0),H&&(S&&M.deltaY>0&&S(M),x&&M.deltaY<0&&x(M),P&&P(M),V&&M.deltaY<0!=En<0&&V(M),En=M.deltaY,$e[0]=$e[1]=$e[2]=0),(it||me)&&(j&&j(M),me&&(g&&me===1&&g(M),w&&w(M),me=0),it=!1),Se&&!(Se=!1)&&Jt&&Jt(M),Pt&&(nt(M),Pt=!1),Hn=0},Gi=function(U,rt,k){en[k]+=U,$e[k]+=rt,M._vx.update(U),M._vy.update(rt),u?Hn||(Hn=requestAnimationFrame(Rn)):Rn()},Ki=function(U,rt){de&&!De&&(M.axis=De=Math.abs(U)>Math.abs(rt)?"x":"y",Se=!0),De!=="y"&&(en[2]+=U,M._vx.update(U,!0)),De!=="x"&&($e[2]+=rt,M._vy.update(rt,!0)),u?Hn||(Hn=requestAnimationFrame(Rn)):Rn()},Kn=function(U){if(!Dt(U,1)){U=Ir(U,c);var rt=U.clientX,k=U.clientY,H=rt-M.x,W=k-M.y,$=M.isDragging;M.x=rt,M.y=k,($||(H||W)&&(Math.abs(M.startX-rt)>=s||Math.abs(M.startY-k)>=s))&&(me||(me=$?2:1),$||(M.isDragging=!0),Ki(H,W))}},mi=M.onPress=function(X){Dt(X,1)||X&&X.button||(M.axis=De=null,pe.pause(),M.isPressed=!0,X=Ir(X),ke=En=0,M.startX=M.x=X.clientX,M.startY=M.y=X.clientY,M._vx.reset(),M._vy.reset(),ye(z?a:Ct,ln[1],Kn,$n,!0),M.deltaX=M.deltaY=0,y&&y(M))},Z=M.onRelease=function(X){if(!Dt(X,1)){ge(z?a:Ct,ln[1],Kn,!0);var U=!isNaN(M.y-M.startY),rt=M.isDragging,k=rt&&(Math.abs(M.x-M.startX)>3||Math.abs(M.y-M.startY)>3),H=Ir(X);!k&&U&&(M._vx.reset(),M._vy.reset(),c&&Rt&&qt.delayedCall(.08,function(){if(ts()-An>300&&!X.defaultPrevented){if(X.target.click)X.target.click();else if(Ct.createEvent){var W=Ct.createEvent("MouseEvents");W.initMouseEvent("click",!0,!0,Ne,1,H.screenX,H.screenY,H.clientX,H.clientY,!1,!1,!1,!1,0,null),X.target.dispatchEvent(W)}}})),M.isDragging=M.isGesturing=M.isPressed=!1,f&&rt&&!z&&pe.restart(!0),me&&Rn(),_&&rt&&_(M),v&&v(M,k)}},gi=function(U){return U.touches&&U.touches.length>1&&(M.isGesturing=!0)&&Y(U,M.isDragging)},nn=function(){return(M.isGesturing=!1)||b(M)},rn=function(U){if(!Dt(U)){var rt=wt(),k=Mn();Gi((rt-Xn)*$t,(k-pi)*$t,1),Xn=rt,pi=k,f&&pe.restart(!0)}},sn=function(U){if(!Dt(U)){U=Ir(U,c),nt&&(Pt=!0);var rt=(U.deltaMode===1?l:U.deltaMode===2?Ne.innerHeight:1)*p;Gi(U.deltaX*rt,U.deltaY*rt,0),f&&!z&&pe.restart(!0)}},yi=function(U){if(!Dt(U)){var rt=U.clientX,k=U.clientY,H=rt-M.x,W=k-M.y;M.x=rt,M.y=k,it=!0,f&&pe.restart(!0),(H||W)&&Ki(H,W)}},qi=function(U){M.event=U,O(M)},Dn=function(U){M.event=U,F(M)},Dr=function(U){return Dt(U)||Ir(U,c)&&ht(M)};pe=M._dc=qt.delayedCall(h||.25,ks).pause(),M.deltaX=M.deltaY=0,M._vx=Uo(0,50,!0),M._vy=Uo(0,50,!0),M.scrollX=wt,M.scrollY=Mn,M.isDragging=M.isGesturing=M.isPressed=!1,vm(this),M.enable=function(X){return M.isEnabled||(ye(Gn?Ct:a,"scroll",zl),o.indexOf("scroll")>=0&&ye(Gn?Ct:a,"scroll",rn,$n,Zt),o.indexOf("wheel")>=0&&ye(a,"wheel",sn,$n,Zt),(o.indexOf("touch")>=0&&ym||o.indexOf("pointer")>=0)&&(ye(a,ln[0],mi,$n,Zt),ye(Ct,ln[2],Z),ye(Ct,ln[3],Z),Rt&&ye(a,"click",Rr,!0,!0),ht&&ye(a,"click",Dr),Y&&ye(Ct,"gesturestart",gi),b&&ye(Ct,"gestureend",nn),O&&ye(a,Si+"enter",qi),F&&ye(a,Si+"leave",Dn),j&&ye(a,Si+"move",yi)),M.isEnabled=!0,M.isDragging=M.isGesturing=M.isPressed=it=me=!1,M._vx.reset(),M._vy.reset(),Xn=wt(),pi=Mn(),X&&X.type&&mi(X),Lt&&Lt(M)),M},M.disable=function(){M.isEnabled&&(cr.filter(function(X){return X!==M&&gr(X.target)}).length||ge(Gn?Ct:a,"scroll",zl),M.isPressed&&(M._vx.reset(),M._vy.reset(),ge(z?a:Ct,ln[1],Kn,!0)),ge(Gn?Ct:a,"scroll",rn,Zt),ge(a,"wheel",sn,Zt),ge(a,ln[0],mi,Zt),ge(Ct,ln[2],Z),ge(Ct,ln[3],Z),ge(a,"click",Rr,!0),ge(a,"click",Dr),ge(Ct,"gesturestart",gi),ge(Ct,"gestureend",nn),ge(a,Si+"enter",qi),ge(a,Si+"leave",Dn),ge(a,Si+"move",yi),M.isEnabled=M.isPressed=M.isDragging=!1,Re&&Re(M))},M.kill=M.revert=function(){M.disable();var X=cr.indexOf(M);X>=0&&cr.splice(X,1),In===M&&(In=0)},cr.push(M),z&&gr(a)&&(In=M),M.enable(m)},iT(n,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),n})();vt.version="3.15.0";vt.create=function(n){return new vt(n)};vt.register=xm;vt.getAll=function(){return cr.slice()};vt.getById=function(n){return cr.filter(function(t){return t.vars.id===n})[0]};wm()&&qt.registerPlugin(vt);const Ab=Object.freeze(Object.defineProperty({__proto__:null,Observer:vt,_getProxyProp:Bn,_getScrollFunc:Yn,_getTarget:ve,_getVelocityProp:Uo,_horizontal:ue,_isViewport:gr,get _proxies(){return hn},get _scrollers(){return K},_vertical:Vt,default:vt},Symbol.toStringTag,{value:"Module"}));var L,nr,q,ot,Fe,st,Yu,Yo,Ts,es,jr,Ys,ie,na,jl,we,jf,Wf,ir,Sm,Ra,Pm,_e,Wl,Cm,Em,Zn,Ul,Hu,yr,$u,ns,Yl,Da,Hs=1,re=Date.now,ka=re(),tn=0,Wr=0,Uf=function(t,e,
vendor: 4,643 bytes, line 9
9i){var r=Le(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return i["_"+e+"Clamp"]=r,r?t.substr(6,t.length-7):t},Yf=function(t,e){return e&&(!Le(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},oT=function n(){return Wr&&requestAnimationFrame(n)},Hf=function(){return na=1},$f=function(){return na=0},_n=function(t){return t},Ur=function(t){return Math.round(t*1e5)/1e5||0},Mm=function(){return typeof window<"u"},Am=function(){return L||Mm()&&(L=window.gsap)&&L.registerPlugin&&L},Ui=function(t){return!!~Yu.indexOf(t)},Rm=function(t){return(t==="Height"?$u:q["inner"+t])||Fe["client"+t]||st["client"+t]},Dm=function(t){return Bn(t,"getBoundingClientRect")||(Ui(t)?function(){return vo.width=q.innerWidth,vo.height=$u,vo}:function(){return Ln(t)})},aT=function(t,e,i){var r=i.d,s=i.d2,o=i.a;return(o=Bn(t,"getBoundingClientRect"))?function(){return o()[r]}:function(){return(e?Rm(s):t["client"+s])||0}},lT=function(t,e){return!e||~hn.indexOf(t)?Dm(t):function(){return vo}},bn=function(t,e){var i=e.s,r=e.d2,s=e.d,o=e.a;return Math.max(0,(i="scroll"+r)&&(o=Bn(t,i))?o()-Dm(t)()[s]:Ui(t)?(Fe[i]||st[i])-Rm(r):t[i]-t["offset"+r])},$s=function(t,e){for(var i=0;i<ir.length;i+=3)(!e||~e.indexOf(ir[i+1]))&&t(ir[i],ir[i+1],ir[i+2])},Le=function(t){return typeof t=="string"},ce=function(t){return typeof t=="function"},Yr=function(t){return typeof t=="number"},Pi=function(t){return typeof t=="object"},Fr=function(t,e,i){return t&&t.progress(e?0:1)&&i&&t.pause()},Zi=function(t,e,i){if(t.enabled){var r=t._ctx?t._ctx.add(function(){return e(t,i)}):e(t,i);r&&r.totalTime&&(t.callbackAnimation=r)}},Ji=Math.abs,km="left",Om="top",Xu="right",Gu="bottom",Bi="width",Ni="height",is="Right",rs="Left",ss="Top",os="Bottom",kt="padding",Ge="margin",Cr="Width",Ku="Height",Ft="px",Ke=function(t){return q.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},uT=function(t){var e=Ke(t).position;t.style.position=e==="absolute"||e==="fixed"?e:"relative"},Xf=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},Ln=function(t,e){var i=e&&Ke(t)[jl]!=="matrix(1, 0, 0, 1, 0, 0)"&&L.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=t.getBoundingClientRect?t.getBoundingClientRect():t.scrollingElement.getBoundingClientRect();return i&&i.progress(0).kill(),r},Ho=function(t,e){var i=e.d2;return t["offset"+i]||t["client"+i]||0},Vm=function(t){var e=[],i=t.labels,r=t.duration(),s;for(s in i)e.push(i[s]/r);return e},cT=function(t){return function(e){return L.utils.snap(Vm(t),e)}},qu=function(t){var e=L.utils.snap(t),i=Array.isArray(t)&&t.slice(0).sort(function(r,s){return r-s});return i?function(r,s,o){o===void 0&&(o=.001);var a;if(!s)return e(r);if(s>0){for(r-=o,a=0;a<i.length;a++)if(i[a]>=r)return i[a];return i[a-1]}else for(a=i.length,r+=o;a--;)if(i[a]<=r)return i[a];return i[0]}:function(r,s,o){o===void 0&&(o=.001);var a=e(r);return!s||Math.abs(a-r)<o||a-r<0==s<0?a:e(s<0?r-t:r+t)}},fT=function(t){return function(e,i){return qu(Vm(t))(e,i.direction)}},Xs=function(t,e,i,r){return i.split(",").forEach(function(s){return t(e,s,r)})},Yt=function(t,e,i,r,s){return t.addEventListener(e,i,{passive:!r,capture:!!s})},Ut=function(t,e,i,r){return t.removeEventListener(e,i,!!r)},Gs=function(t,e,i){i=i&&i.wheelHandler,i&&(t(e,"wheel",i),t(e,"touchmove",i))},Gf={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ks={toggleActions:"play",anticipatePin:0},$o={top:0,left:0,center:.5,bottom:1,right:1},mo=function(t,e){if(Le(t)){var i=t.indexOf("="),r=~i?+(t.charAt(i-1)+1)*parseFloat(t.substr(i+1)):0;~i&&(t.indexOf("%")>i&&(r*=e/100),t=t.substr(0,i-1)),t=r+(t in $o?$o[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},qs=function(t,e,i,r,s,o,a,l){var u=s.startColor,c=s.endColor,f=s.fontSize,h=s.indent,d=s.fontWeight,p=ot.createElement("div"),m=Ui(i)||Bn(i,"pinType")==="fixed",g=t.indexOf("scroller")!==-1,_=m?st:i.tagName==="IFRAME"?i.contentDocument.body:i,w=t.indexOf("start")!==-1,y=w?u:c,v="border-color:"+y+";font-size:"+f+";color:"+y+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return v+="position:"+((g||l)&&m?"fixed;":"absolute;"),(g||l||!m)&&(v+=(r===Vt?Xu:Gu)+":"+(o+parseFloat(h))+"px;"),a&&(v+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=w,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=v,p.innerText=e||e===0?t+"-"+e:t,_.children[0]?_.insertBefore(p,_.children[0]):_.appendChild(p),p._offset=p["offset"+r.op.d2],go(p,0,r,w),p}
vendor: 14,744 bytes, line 9
9,go=function(t,e,i,r){var s={display:"block"},o=i[r?"os2":"p2"],a=i[r?"p2":"os2"];t._isFlipped=r,s[i.a+"Percent"]=r?-100:0,s[i.a]=r?"1px":0,s["border"+o+Cr]=1,s["border"+a+Cr]=0,s[i.p]=e+"px",L.set(t,s)},G=[],Hl={},bs,Kf=function(){return re()-tn>34&&(bs||(bs=requestAnimationFrame(Nn)))},tr=function(){(!_e||!_e.isPressed||_e.startX>st.clientWidth)&&(K.cache++,_e?bs||(bs=requestAnimationFrame(Nn)):Nn(),tn||Hi("scrollStart"),tn=re())},Oa=function(){Em=q.innerWidth,Cm=q.innerHeight},Hr=function(t){K.cache++,(t===!0||!ie&&!Pm&&!ot.fullscreenElement&&!ot.webkitFullscreenElement&&(!Wl||Em!==q.innerWidth||Math.abs(q.innerHeight-Cm)>q.innerHeight*.25))&&Yo.restart(!0)},Yi={},hT=[],Lm=function n(){return Ut(Q,"scrollEnd",n)||Di(!0)},Hi=function(t){return Yi[t]&&Yi[t].map(function(e){return e()})||hT},Ve=[],Im=function(t){for(var e=0;e<Ve.length;e+=5)(!t||Ve[e+4]&&Ve[e+4].query===t)&&(Ve[e].style.cssText=Ve[e+1],Ve[e].getBBox&&Ve[e].setAttribute("transform",Ve[e+2]||""),Ve[e+3].uncache=1)},Fm=function(){return K.forEach(function(t){return ce(t)&&++t.cacheID&&(t.rec=t())})},Qu=function(t,e){var i;for(we=0;we<G.length;we++)i=G[we],i&&(!e||i._ctx===e)&&(t?i.kill(1):i.revert(!0,!0));ns=!0,e&&Im(e),e||Hi("revert")},Bm=function(t,e){K.cache++,(e||!Te)&&K.forEach(function(i){return ce(i)&&i.cacheID++&&(i.rec=0)}),Le(t)&&(q.history.scrollRestoration=Hu=t)},Te,zi=0,qf,dT=function(){if(qf!==zi){var t=qf=zi;requestAnimationFrame(function(){return t===zi&&Di(!0)})}},Nm=function(){st.appendChild(yr),$u=!_e&&yr.offsetHeight||q.innerHeight,st.removeChild(yr)},Qf=function(t){return Ts(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},Di=function(t,e){if(Fe=ot.documentElement,st=ot.body,Yu=[q,ot,Fe,st],tn&&!t&&!ns){Yt(Q,"scrollEnd",Lm);return}Nm(),Te=Q.isRefreshing=!0,ns||Fm();var i=Hi("refreshInit");Sm&&Q.sort(),e||Qu(),K.forEach(function(r){ce(r)&&(r.smooth&&(r.target.style.scrollBehavior="auto"),r(0))}),G.slice(0).forEach(function(r){return r.refresh()}),ns=!1,G.forEach(function(r){if(r._subPinOffset&&r.pin){var s=r.vars.horizontal?"offsetWidth":"offsetHeight",o=r.pin[s];r.revert(!0,1),r.adjustPinSpacing(r.pin[s]-o),r.refresh()}}),Yl=1,Qf(!0),G.forEach(function(r){var s=bn(r.scroller,r._dir),o=r.vars.end==="max"||r._endClamp&&r.end>s,a=r._startClamp&&r.start>=s;(o||a)&&r.setPositions(a?s-1:r.start,o?Math.max(a?s:r.start+1,s):r.end,!0)}),Qf(!1),Yl=0,i.forEach(function(r){return r&&r.render&&r.render(-1)}),K.forEach(function(r){ce(r)&&(r.smooth&&requestAnimationFrame(function(){return r.target.style.scrollBehavior="smooth"}),r.rec&&r(r.rec))}),Bm(Hu,1),Yo.pause(),zi++,Te=2,Nn(2),G.forEach(function(r){return ce(r.vars.onRefresh)&&r.vars.onRefresh(r)}),Te=Q.isRefreshing=!1,Hi("refresh")},$l=0,yo=1,as,Nn=function(t){if(t===2||!Te&&!ns){Q.isUpdating=!0,as&&as.update(0);var e=G.length,i=re(),r=i-ka>=50,s=e&&G[0].scroll();if(yo=$l>s?-1:1,Te||($l=s),r&&(tn&&!na&&i-tn>200&&(tn=0,Hi("scrollEnd")),jr=ka,ka=i),yo<0){for(we=e;we-- >0;)G[we]&&G[we].update(0,r);yo=1}else for(we=0;we<e;we++)G[we]&&G[we].update(0,r);Q.isUpdating=!1}bs=0},Xl=[km,Om,Gu,Xu,Ge+os,Ge+is,Ge+ss,Ge+rs,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],_o=Xl.concat([Bi,Ni,"boxSizing","max"+Cr,"max"+Ku,"position",Ge,kt,kt+ss,kt+is,kt+os,kt+rs]),pT=function(t,e,i){_r(i);var r=t._gsap;if(r.spacerIsNative)_r(r.spacerState);else if(t._gsap.swappedIn){var s=e.parentNode;s&&(s.insertBefore(t,e),s.removeChild(e))}t._gsap.swappedIn=!1},Va=function(t,e,i,r){if(!t._gsap.swappedIn){for(var s=Xl.length,o=e.style,a=t.style,l;s--;)l=Xl[s],o[l]=i[l];o.position=i.position==="absolute"?"absolute":"relative",i.display==="inline"&&(o.display="inline-block"),a[Gu]=a[Xu]="auto",o.flexBasis=i.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[Bi]=Ho(t,ue)+Ft,o[Ni]=Ho(t,Vt)+Ft,o[kt]=a[Ge]=a[Om]=a[km]="0",_r(r),a[Bi]=a["max"+Cr]=i[Bi],a[Ni]=a["max"+Ku]=i[Ni],a[kt]=i[kt],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},mT=/([A-Z])/g,_r=function(t){if(t){var e=t.t.style,i=t.length,r=0,s,o;for((t.t._gsap||L.core.getCache(t.t)).uncache=1;r<i;r+=2)o=t[r+1],s=t[r],o?e[s]=o:e[s]&&e.removeProperty(s.replace(mT,"-$1").toLowerCase())}},Qs=function(t){for(var e=_o.length,i=t.style,r=[],s=0;s<e;s++)r.push(_o[s],i[_o[s]]);return r.t=t,r},gT=function(t,e,i){for(var r=[],s=t.length,o=i?8:0,a;o<s;o+=2)a=t[o],r.push(a,a in e?e[a]:t[o+1]);return r.t=t.t,r},vo={left:0,top:0},Zf=function(t,e,i,r,s,o,a,l,u,c,f,h,d,p){ce(t)&&(t=t(l)),Le(t)&&t.substr(0,3)==="max"&&(t=h+(t.charAt(4)==="="?mo("0"+t.substr(3),i):0));var m=d?d.time():0,g,_,w;if(d&&d.seek(0),isNaN(t)||(t=+t),Yr(t))d&&(t=L.utils.mapRange(d.scrollTrigger.start,d.scrollTrigger.end,0,h,t)),a&&go(a,i,r,!0);else{ce(e)&&(e=e(l));var y=(t||"0").split(" "),v,T,E,x;w=ve(e,l)||st,v=Ln(w)||{},(!v||!v.left&&!v.top)&&Ke(w).display==="none"&&(x=w.style.display,w.style.display="block",v=Ln(w),x?w.style.display=x:w.style.removeProperty("display")),T=mo(y[0],v[r.d]),E=mo(y[1]||"0",i),t=v[r.p]-u[r.p]-c+T+s-E,a&&go(a,E,r,i-E<20||a._isStart&&E>20),i-=i-E}if(p&&(l[p]=t||-.001,t<0&&(t=0)),o){var S=t+i,C=o._isStart;g="scroll"+r.d2,go(o,S,r,C&&S>20||!C&&(f?Math.max(st[g],Fe[g]):o.parentNode[g])<=S+1),f&&(u=Ln(a),f&&(o.style[r.op.p]=u[r.op.p]-r.op.m-o._offset+Ft))}return d&&w&&(g=Ln(w),d.seek(h),_=Ln(w),d._caScrollDist=g[r.p]-_[r.p],t=t/d._caScrollDist*h),d&&d.seek(m),d?t:Math.round(t)},yT=/(webkit|moz|length|cssText|inset)/i,Jf=function(t,e,i,r){if(t.parentNode!==e){var s=t.style,o,a;if(e===st){t._stOrig=s.cssText,a=Ke(t);for(o in a)!+o&&!yT.test(o)&&a[o]&&typeof s[o]=="string"&&o!=="0"&&(s[o]=a[o]);s.top=i,s.left=r}else s.cssText=t._stOrig;L.core.getCache(t).uncache=1,e.appendChild(t)}},zm=function(t,e,i){var r=e,s=r;return function(o){var a=Math.round(t());return a!==r&&a!==s&&Math.abs(a-r)>3&&Math.abs(a-s)>3&&(o=a,i&&i()),s=r,r=Math.round(o),r}},Zs=function(t,e,i){var r={};r[e.p]="+="+i,L.set(t,r)},th=function(t,e){var i=Yn(t,e),r="_scroll"+e.p2,s=function o(a,l,u,c,f){var h=o.tween,d=l.onComplete,p={};u=u||i();var m=zm(i,u,function(){h.kill(),o.tween=0});return f=c&&f||0,c=c||a-u,h&&h.kill(),l[r]=a,l.inherit=!1,l.modifiers=p,p[r]=function(){return m(u+c*h.ratio+f*h.ratio*h.ratio)},l.onUpdate=function(){K.cache++,o.tween&&Nn()},l.onComplete=function(){o.tween=0,d&&d.call(h)},h=o.tween=L.to(t,l),h};return t[r]=i,i.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},Yt(t,"wheel",i.wheelHandler),Q.isTouch&&Yt(t,"touchmove",i.wheelHandler),s},Q=(function(){function n(e,i){nr||n.register(L),Ul(this),this.init(e,i)}var t=n.prototype;return t.init=function(i,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Wr){this.update=this.refresh=this.kill=_n;return}i=Xf(Le(i)||Yr(i)||i.nodeType?{trigger:i}:i,Ks);var s=i,o=s.onUpdate,a=s.toggleClass,l=s.id,u=s.onToggle,c=s.onRefresh,f=s.scrub,h=s.trigger,d=s.pin,p=s.pinSpacing,m=s.invalidateOnRefresh,g=s.anticipatePin,_=s.onScrubComplete,w=s.onSnapComplete,y=s.once,v=s.snap,T=s.pinReparent,E=s.pinSpacer,x=s.containerAnimation,S=s.fastScrollEnd,C=s.preventOverlaps,P=i.horizontal||i.containerAnimation&&i.horizontal!==!1?ue:Vt,D=!f&&f!==0,R=ve(i.scroller||q),V=L.core.getCache(R),O=Ui(R),F=("pinType"in i?i.pinType:Bn(R,"pinType")||O&&"fixed")==="fixed",j=[i.onEnter,i.onLeave,i.onEnterBack,i.onLeaveBack],N=D&&i.toggleActions.split(" "),z="markers"in i?i.markers:Ks.markers,Y=O?0:parseFloat(Ke(R)["border"+P.p2+Cr])||0,b=this,nt=i.onRefreshInit&&function(){return i.onRefreshInit(b)},Lt=aT(R,O,P),Re=lT(R,O),ht=0,$t=0,Zt=0,Rt=Yn(R,P),de,Jt,Hn,pe,me,it,Pt,Se,De,M,ke,En,$n,wt,Mn,Xn,pi,jt,Gn,Ct,en,$e,An,Rr,Dt,ks,Rn,Gi,Ki,Kn,mi,Z,gi,nn,rn,sn,yi,qi,Dn;if(b._startClamp=b._endClamp=!1,b._dir=P,g*=45,b.scroller=R,b.scroll=x?x.time.bind(x):Rt,pe=Rt(),b.vars=i,r=r||i.animation,"refreshPriority"in i&&(Sm=1,i.refreshPriority===-9999&&(as=b)),V.tweenScroll=V.tweenScroll||{top:th(R,Vt),left:th(R,ue)},b.tweenTo=de=V.tweenScroll[P.p],b.scrubDuration=function(k){gi=Yr(k)&&k,gi?Z?Z.duration(k):Z=L.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:gi,paused:!0,onComplete:function(){return _&&_(b)}}):(Z&&Z.progress(1).kill(),Z=0)},r&&(r.vars.lazy=!1,r._initted&&!b.isReverted||r.vars.immediateRender!==!1&&i.immediateRender!==!1&&r.duration()&&r.render(0,!0,!0),b.animation=r.pause(),r.scrollTrigger=b,b.scrubDuration(f),Kn=0,l||(l=r.vars.id)),v&&((!Pi(v)||v.push)&&(v={snapTo:v}),"scrollBehavior"in st.style&&L.set(O?[st,Fe]:R,{scrollBehavior:"auto"}),K.forEach(function(k){return ce(k)&&k.target===(O?ot.scrollingElement||Fe:R)&&(k.smooth=!1)}),Hn=ce(v.snapTo)?v.snapTo:v.snapTo==="labels"?cT(r):v.snapTo==="labelsDirectional"?fT(r):v.directional!==!1?function(k,H){return qu(v.snapTo)(k,re()-$t<500?0:H.direction)}:L.utils.snap(v.snapTo),nn=v.duration||{min:.1,max:2},nn=Pi(nn)?es(nn.min,nn.max):es(nn,nn),rn=L.delayedCall(v.delay||gi/2||.1,function(){var k=Rt(),H=re()-$t<500,W=de.tween;if((H||Math.abs(b.getVelocity())<10)&&!W&&!na&&ht!==k){var $=(k-it)/wt,Wt=r&&!D?r.totalProgress():$,tt=H?0:(Wt-mi)/(re()-jr)*1e3||0,Et=L.utils.clamp(-$,1-$,Ji(tt/2)*tt/.185),te=$+(v.inertia===!1?0:Et),Tt,dt,lt=v,on=lt.onStart,mt=lt.onInterrupt,Oe=lt.onComplete;if(Tt=Hn(te,b),Yr(Tt)||(Tt=te),dt=Math.max(0,Math.round(it+Tt*wt)),k<=Pt&&k>=it&&dt!==k){if(W&&!W._initted&&W.data<=Ji(dt-k))return;v.inertia===!1&&(Et=Tt-$),de(dt,{duration:nn(Ji(Math.max(Ji(te-Wt),Ji(Tt-Wt))*.185/tt/.05||0)),ease:v.ease||"power3",data:Ji(dt-k),onInterrupt:function(){return rn.restart(!0)&&mt&&Zi(b,mt)},onComplete:function(){b.update(),ht=Rt(),r&&!D&&(Z?Z.resetTo("totalProgress",Tt,r._tTime/r._tDur):r.progress(Tt)),Kn=mi=r&&!D?r.totalProgress():b.progress,w&&w(b),Oe&&Zi(b,Oe)}},k,Et*wt,dt-k-Et*wt),on&&Zi(b,on,de.tween)}}else b.isActive&&ht!==k&&rn.restart(!0)}).pause()),l&&(Hl[l]=b),h=b.trigger=ve(h||d!==!0&&d),Dn=h&&h._gsap&&h._gsap.stRevert,Dn&&(Dn=Dn(b)),d=d===!0?h:ve(d),Le(a)&&(a={targets:h,className:a}),d&&(p===!1||p===Ge||(p=!p&&d.parentNode&&d.parentNode.style&&Ke(d.parentNode).display==="flex"?!1:kt),b.pin=d,Jt=L.core.getCache(d),Jt.spacer?Mn=Jt.pinState:(E&&(E=ve(E),E&&!E.nodeType&&(E=E.current||E.nativeElement),Jt.spacerIsNative=!!E,E&&(Jt.spacerState=Qs(E))),Jt.spacer=jt=E||ot.createElement("div"),jt.classList.add("pin-spacer"),l&&jt.classList.add("pin-spacer-"+l),Jt.pinState=Mn=Qs(d)),i.force3D!==!1&&L.set(d,{force3D:!0}),b.spacer=jt=Jt.spacer,Ki=Ke(d),Rr=Ki[p+P.os2],Ct=L.getProperty(d),en=L.quickSetter(d,P.a,Ft),Va(d,jt,Ki),pi=Qs(d)),z){En=Pi(z)?Xf(z,Gf):Gf,M=qs("scroller-start",l,R,P,En,0),ke=qs("scroller-end",l,R,P,En,0,M),Gn=M["offset"+P.op.d2];var Dr=ve(Bn(R,"content")||R);Se=this.markerStart=qs("start",l,Dr,P,En,Gn,0,x),De=this.markerEnd=qs("end",l,Dr,P,En,Gn,0,x),x&&(qi=L.quickSetter([Se,De],P.a,Ft)),!F&&!(hn.length&&Bn(R,"fixedMarkers")===!0)&&(uT(O?st:R),L.set([M,ke],{force3D:!0}),ks=L.quickSetter(M,P.a,Ft),Gi=L.quickSetter(ke,P.a,Ft))}if(x){var X=x.vars.onUpdate,U=x.vars.onUpdateParams;x.eventCallback("onUpdate",function(){b.update(0,0,1),X&&X.apply(x,U||[])})}if(b.previous=function(){return G[G.indexOf(b)-1]},b.next=function(){return G[G.indexOf(b)+1]},b.revert=function(k,H){if(!H)return b.kill(!0);var W=k!==!1||!b.enabled,$=ie;W!==b.isReverted&&(W&&(sn=Math.max(Rt(),b.scroll.rec||0),Zt=b.progress,yi=r&&r.progress()),Se&&[Se,De,M,ke].forEach(function(Wt){return Wt.style.display=W?"none":"block"}),W&&(ie=b,b.update(W)),d&&(!T||!b.isActive)&&(W?pT(d,jt,Mn):Va(d,jt,Ke(d),Dt)),W||b.update(W),ie=$,b.isReverted=W)},b.refresh=function(k,H,W,$){if(!((ie||!b.enabled)&&!H)){if(d&&k&&tn){Yt(n,"scrollEnd",Lm);return}!Te&&nt&&nt(b),ie=b,de.tween&&!W&&(de.tween.kill(),de.tween=0),Z&&Z.pause(),m&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(qn){return qn.vars.immediateRender&&qn.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),b.isReverted||b.revert(!0,!0),b._subPinOffset=!1;var Wt=Lt(),tt=Re(),Et=x?x.duration():bn(R,P),te=wt<=.01||!wt,Tt=0,dt=$||0,lt=Pi(W)?W.end:i.end,on=i.endTrigger||h,mt=Pi(W)?W.start:i.start||(i.start===0||!h?0:d?"0 0":"0 100%"),Oe=b.pinnedContainer=i.pinnedContainer&&ve(i.pinnedContainer,b),dn=h&&Math.max(0,G.indexOf(b))||0,Xt=dn,Gt,ee,_i,Os,ne,It,pn,ra,ec,kr,mn,Or,Vs;for(z&&Pi(W)&&(Or=L.getProperty(M,P.p),Vs=L.getProperty(ke,P.p));Xt-- >0;)It=G[Xt],It.end||It.refresh(0,1)||(ie=b),pn=It.pin,pn&&(pn===h||pn===d||pn===Oe)&&!It.isReverted&&(kr||(kr=[]),kr.unshift(It),It.revert(!0,!0)),It!==G[Xt]&&(dn--,Xt--);for(ce(mt)&&(mt=mt(b)),mt=Uf(mt,"start",b),it=Zf(mt,h,Wt,P,Rt(),Se,M,b,tt,Y,F,Et,x,b._startClamp&&"_startClamp")||(d?-.001:0),ce(lt)&&(lt=lt(b)),Le(lt)&&!lt.indexOf("+=")&&(~lt.indexOf(" ")?lt=(Le(mt)?mt.split(" ")[0]:"")+lt:(Tt=mo(lt.substr(2),Wt),lt=Le(mt)?mt:(x?L.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,it):it)+Tt,on=h)),lt=Uf(lt,"end",b),Pt=Math.max(it,Zf(lt||(on?"100% 0":Et),on,Wt,P,Rt()+Tt,De,ke,b,tt,Y,F,Et,x,b._endClamp&&"_endClamp"))||-.001,Tt=0,Xt=dn;Xt--;)It=G[Xt]||{},pn=It.pin,pn&&It.start-It._pinPush<=it&&!x&&It.end>0&&(Gt=It.end-(b._startClamp?Math.max(0,It.start):It.start),(pn===h&&It.start-It._pinPush<it||pn===Oe)&&isNaN(mt)&&(Tt+=Gt*(1-It.progress)),pn===d&&(dt+=Gt));if(it+=Tt,Pt+=Tt,b._startClamp&&(b._startClamp+=Tt),b._endClamp&&!Te&&(b._endClamp=Pt||-.001,Pt=Math.min(Pt,bn(R,P))),wt=Pt-it||(it-=.01)&&.001,te&&(Zt=L.utils.clamp(0,1,L.utils.normalize(it,Pt,sn))),b._pinPush=dt,Se&&Tt&&(Gt={},Gt[P.a]="+="+Tt,Oe&&(Gt[P.p]="-="+Rt()),L.set([Se,De],Gt)),d&&!(Yl&&b.end>=bn(R,P)))Gt=Ke(d),Os=P===Vt,_i=Rt(),$e=parseFloat(Ct(P.a))+dt,!Et&&Pt>1&&(mn=(O?ot.scrollingElement||Fe:R).style,mn={style:mn,value:mn["overflow"+P.a.toUpperCase()]},O&&Ke(st)["overflow"+P.a.toUpperCase()]!=="scroll"&&(mn.style["overflow"+P.a.toUpperCase()]="scroll")),Va(d,jt,Gt),pi=Qs(d),ee=Ln(d,!0),ra=F&&Yn(R,Os?ue:Vt)(),p?(Dt=[p+P.os2,wt+dt+Ft],Dt.t=jt,Xt=p===kt?Ho(d,P)+wt+dt:0,Xt&&(Dt.push(P.d,Xt+Ft),jt.style.flexBasis!=="auto"&&(jt.style.flexBasis=Xt+Ft)),_r(Dt),Oe&&G.forEach(function(qn){qn.pin===Oe&&qn.vars.pinSpacing!==!1&&(qn._subPinOffset=!0)}),F&&Rt(sn)):(Xt=Ho(d,P),Xt&&jt.style.flexBasis!=="auto"&&(jt.style.flexBasis=Xt+Ft)),F&&(ne={top:ee.top+(Os?_i-it:ra)+Ft,left:ee.left+(Os?ra:_i-it)+Ft,boxSizing:"border-box",position:"fixed"},ne[Bi]=ne["max"+Cr]=Math.ceil(ee.width)+Ft,ne[Ni]=ne["max"+Ku]=Math.ceil(ee.height)+Ft,ne[Ge]=ne[Ge+ss]=ne[Ge+is]=ne[Ge+os]=ne[Ge+rs]="0",ne[kt]=Gt[kt],ne[kt+ss]=Gt[kt+ss],ne[kt+is]=Gt[kt+is],ne[kt+os]=Gt[kt+os],ne[kt+rs]=Gt[kt+rs],Xn=gT(Mn,ne,T),Te&&Rt(0)),r?(ec=r._initted,Ra(1),r.render(r.duration(),!0,!0),An=Ct(P.a)-$e+wt+dt,Rn=Math.abs(wt-An)>
vendor: 10,128 bytes, line 9
91,F&&Rn&&Xn.splice(Xn.length-2,2),r.render(0,!0,!0),ec||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),Ra(0)):An=wt,mn&&(mn.value?mn.style["overflow"+P.a.toUpperCase()]=mn.value:mn.style.removeProperty("overflow-"+P.a));else if(h&&Rt()&&!x)for(ee=h.parentNode;ee&&ee!==st;)ee._pinOffset&&(it-=ee._pinOffset,Pt-=ee._pinOffset),ee=ee.parentNode;kr&&kr.forEach(function(qn){return qn.revert(!1,!0)}),b.start=it,b.end=Pt,pe=me=Te?sn:Rt(),!x&&!Te&&(pe<sn&&Rt(sn),b.scroll.rec=0),b.revert(!1,!0),$t=re(),rn&&(ht=-1,rn.restart(!0)),ie=0,r&&D&&(r._initted||yi)&&r.progress()!==yi&&r.progress(yi||0,!0).render(r.time(),!0,!0),(te||Zt!==b.progress||x||m||r&&!r._initted)&&(r&&!D&&(r._initted||Zt||r.vars.immediateRender!==!1)&&r.totalProgress(x&&it<-.001&&!Zt?L.utils.normalize(it,Pt,0):Zt,!0),b.progress=te||(pe-it)/wt===Zt?0:Zt),d&&p&&(jt._pinOffset=Math.round(b.progress*An)),Z&&Z.invalidate(),isNaN(Or)||(Or-=L.getProperty(M,P.p),Vs-=L.getProperty(ke,P.p),Zs(M,P,Or),Zs(Se,P,Or-($||0)),Zs(ke,P,Vs),Zs(De,P,Vs-($||0))),te&&!Te&&b.update(),c&&!Te&&!$n&&($n=!0,c(b),$n=!1)}},b.getVelocity=function(){return(Rt()-me)/(re()-jr)*1e3||0},b.endAnimation=function(){Fr(b.callbackAnimation),r&&(Z?Z.progress(1):r.paused()?D||Fr(r,b.direction<0,1):Fr(r,r.reversed()))},b.labelToScroll=function(k){return r&&r.labels&&(it||b.refresh()||it)+r.labels[k]/r.duration()*wt||0},b.getTrailing=function(k){var H=G.indexOf(b),W=b.direction>0?G.slice(0,H).reverse():G.slice(H+1);return(Le(k)?W.filter(function($){return $.vars.preventOverlaps===k}):W).filter(function($){return b.direction>0?$.end<=it:$.start>=Pt})},b.update=function(k,H,W){if(!(x&&!W&&!k)){var $=Te===!0?sn:b.scroll(),Wt=k?0:($-it)/wt,tt=Wt<0?0:Wt>1?1:Wt||0,Et=b.progress,te,Tt,dt,lt,on,mt,Oe,dn;if(H&&(me=pe,pe=x?Rt():$,v&&(mi=Kn,Kn=r&&!D?r.totalProgress():tt)),g&&d&&!ie&&!Hs&&tn&&(!tt&&it<$+($-me)/(re()-jr)*g?tt=1e-4:tt===1&&Pt>$+($-me)/(re()-jr)*g&&(tt=.9999)),tt!==Et&&b.enabled){if(te=b.isActive=!!tt&&tt<1,Tt=!!Et&&Et<1,mt=te!==Tt,on=mt||!!tt!=!!Et,b.direction=tt>Et?1:-1,b.progress=tt,on&&!ie&&(dt=tt&&!Et?0:tt===1?1:Et===1?2:3,D&&(lt=!mt&&N[dt+1]!=="none"&&N[dt+1]||N[dt],dn=r&&(lt==="complete"||lt==="reset"||lt in r))),C&&(mt||dn)&&(dn||f||!r)&&(ce(C)?C(b):b.getTrailing(C).forEach(function(_i){return _i.endAnimation()})),D||(Z&&!ie&&!Hs?(Z._dp._time-Z._start!==Z._time&&Z.render(Z._dp._time-Z._start),Z.resetTo?Z.resetTo("totalProgress",tt,r._tTime/r._tDur):(Z.vars.totalProgress=tt,Z.invalidate().restart())):r&&r.totalProgress(tt,!!(ie&&($t||k)))),d){if(k&&p&&(jt.style[p+P.os2]=Rr),!F)en(Ur($e+An*tt));else if(on){if(Oe=!k&&tt>Et&&Pt+1>$&&$+1>=bn(R,P),T)if(!k&&(te||Oe)){var Xt=Ln(d,!0),Gt=$-it;Jf(d,st,Xt.top+(P===Vt?Gt:0)+Ft,Xt.left+(P===Vt?0:Gt)+Ft)}else Jf(d,jt);_r(te||Oe?Xn:pi),Rn&&tt<1&&te||en($e+(tt===1&&!Oe?An:0))}}v&&!de.tween&&!ie&&!Hs&&rn.restart(!0),a&&(mt||y&&tt&&(tt<1||!Da))&&Ts(a.targets).forEach(function(_i){return _i.classList[te||y?"add":"remove"](a.className)}),o&&!D&&!k&&o(b),on&&!ie?(D&&(dn&&(lt==="complete"?r.pause().totalProgress(1):lt==="reset"?r.restart(!0).pause():lt==="restart"?r.restart(!0):r[lt]()),o&&o(b)),(mt||!Da)&&(u&&mt&&Zi(b,u),j[dt]&&Zi(b,j[dt]),y&&(tt===1?b.kill(!1,1):j[dt]=0),mt||(dt=tt===1?1:3,j[dt]&&Zi(b,j[dt]))),S&&!te&&Math.abs(b.getVelocity())>(Yr(S)?S:2500)&&(Fr(b.callbackAnimation),Z?Z.progress(1):Fr(r,lt==="reverse"?1:!tt,1))):D&&o&&!ie&&o(b)}if(Gi){var ee=x?$/x.duration()*(x._caScrollDist||0):$;ks(ee+(M._isFlipped?1:0)),Gi(ee)}qi&&qi(-$/x.duration()*(x._caScrollDist||0))}},b.enable=function(k,H){b.enabled||(b.enabled=!0,Yt(R,"resize",Hr),O||Yt(R,"scroll",tr),nt&&Yt(n,"refreshInit",nt),k!==!1&&(b.progress=Zt=0,pe=me=ht=Rt()),H!==!1&&b.refresh())},b.getTween=function(k){return k&&de?de.tween:Z},b.setPositions=function(k,H,W,$){if(x){var Wt=x.scrollTrigger,tt=x.duration(),Et=Wt.end-Wt.start;k=Wt.start+Et*k/tt,H=Wt.start+Et*H/tt}b.refresh(!1,!1,{start:Yf(k,W&&!!b._startClamp),end:Yf(H,W&&!!b._endClamp)},$),b.update()},b.adjustPinSpacing=function(k){if(Dt&&k){var H=Dt.indexOf(P.d)+1;Dt[H]=parseFloat(Dt[H])+k+Ft,Dt[1]=parseFloat(Dt[1])+k+Ft,_r(Dt)}},b.disable=function(k,H){if(k!==!1&&b.revert(!0,!0),b.enabled&&(b.enabled=b.isActive=!1,H||Z&&Z.pause(),sn=0,Jt&&(Jt.uncache=1),nt&&Ut(n,"refreshInit",nt),rn&&(rn.pause(),de.tween&&de.tween.kill()&&(de.tween=0)),!O)){for(var W=G.length;W--;)if(G[W].scroller===R&&G[W]!==b)return;Ut(R,"resize",Hr),O||Ut(R,"scroll",tr)}},b.kill=function(k,H){b.disable(k,H),Z&&!H&&Z.kill(),l&&delete Hl[l];var W=G.indexOf(b);W>=0&&G.splice(W,1),W===we&&yo>0&&we--,W=0,G.forEach(function($){return $.scroller===b.scroller&&(W=1)}),W||Te||(b.scroll.rec=0),r&&(r.scrollTrigger=null,k&&r.revert({kill:!1}),H||r.kill()),Se&&[Se,De,M,ke].forEach(function($){return $.parentNode&&$.parentNode.removeChild($)}),as===b&&(as=0),d&&(Jt&&(Jt.uncache=1),W=0,G.forEach(function($){return $.pin===d&&W++}),W||(Jt.spacer=0)),i.onKill&&i.onKill(b)},G.push(b),b.enable(!1,!1),Dn&&Dn(b),r&&r.add&&!wt){var rt=b.update;b.update=function(){b.update=rt,K.cache++,it||Pt||b.refresh()},L.delayedCall(.01,b.update),wt=.01,it=Pt=0}else b.refresh();d&&dT()},n.register=function(i){return nr||(L=i||Am(),Mm()&&window.document&&n.enable(),nr=Wr),nr},n.defaults=function(i){if(i)for(var r in i)Ks[r]=i[r];return Ks},n.disable=function(i,r){Wr=0,G.forEach(function(o){return o[r?"kill":"disable"](i)}),Ut(q,"wheel",tr),Ut(ot,"scroll",tr),clearInterval(Ys),Ut(ot,"touchcancel",_n),Ut(st,"touchstart",_n),Xs(Ut,ot,"pointerdown,touchstart,mousedown",Hf),Xs(Ut,ot,"pointerup,touchend,mouseup",$f),Yo.kill(),$s(Ut);for(var s=0;s<K.length;s+=3)Gs(Ut,K[s],K[s+1]),Gs(Ut,K[s],K[s+2])},n.enable=function(){if(q=window,ot=document,Fe=ot.documentElement,st=ot.body,L){if(Ts=L.utils.toArray,es=L.utils.clamp,Ul=L.core.context||_n,Ra=L.core.suppressOverwrites||_n,Hu=q.history.scrollRestoration||"auto",$l=q.pageYOffset||0,L.core.globals("ScrollTrigger",n),st){Wr=1,yr=document.createElement("div"),yr.style.height="100vh",yr.style.position="absolute",Nm(),oT(),vt.register(L),n.isTouch=vt.isTouch,Zn=vt.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Wl=vt.isTouch===1,Yt(q,"wheel",tr),Yu=[q,ot,Fe,st],L.matchMedia&&(n.matchMedia=function(c){var f=L.matchMedia(),h;for(h in c)f.add(h,c[h]);return f},L.addEventListener("matchMediaInit",function(){Fm(),Qu()}),L.addEventListener("matchMediaRevert",function(){return Im()}),L.addEventListener("matchMedia",function(){Di(0,1),Hi("matchMedia")}),L.matchMedia().add("(orientation: portrait)",function(){return Oa(),Oa})),Oa(),Yt(ot,"scroll",tr);var i=st.hasAttribute("style"),r=st.style,s=r.borderTopStyle,o=L.core.Animation.prototype,a,l;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",a=Ln(st),Vt.m=Math.round(a.top+Vt.sc())||0,ue.m=Math.round(a.left+ue.sc())||0,s?r.borderTopStyle=s:r.removeProperty("border-top-style"),i||(st.setAttribute("style",""),st.removeAttribute("style")),Ys=setInterval(Kf,250),L.delayedCall(.5,function(){return Hs=0}),Yt(ot,"touchcancel",_n),Yt(st,"touchstart",_n),Xs(Yt,ot,"pointerdown,touchstart,mousedown",Hf),Xs(Yt,ot,"pointerup,touchend,mouseup",$f),jl=L.utils.checkPrefix("transform"),_o.push(jl),nr=re(),Yo=L.delayedCall(.2,Di).pause(),ir=[ot,"visibilitychange",function(){var c=q.innerWidth,f=q.innerHeight;ot.hidden?(jf=c,Wf=f):(jf!==c||Wf!==f)&&Hr()},ot,"DOMContentLoaded",Di,q,"load",Di,q,"resize",Hr],$s(Yt),G.forEach(function(c){return c.enable(0,1)}),l=0;l<K.length;l+=3)Gs(Ut,K[l],K[l+1]),Gs(Ut,K[l],K[l+2])}else if(ot){var u=function c(){n.enable(),ot.removeEventListener("DOMContentLoaded",c)};ot.addEventListener("DOMContentLoaded",u)}}},n.config=function(i){"limitCallbacks"in i&&(Da=!!i.limitCallbacks);var r=i.syncInterval;r&&clearInterval(Ys)||(Ys=r)&&setInterval(Kf,r),"ignoreMobileResize"in i&&(Wl=n.isTouch===1&&i.ignoreMobileResize),"autoRefreshEvents"in i&&($s(Ut)||$s(Yt,i.autoRefreshEvents||"none"),Pm=(i.autoRefreshEvents+"").indexOf("resize")===-1)},n.scrollerProxy=function(i,r){var s=ve(i),o=K.indexOf(s),a=Ui(s);~o&&K.splice(o,a?6:2),r&&(a?hn.unshift(q,r,st,r,Fe,r):hn.unshift(s,r))},n.clearMatchMedia=function(i){G.forEach(function(r){return r._ctx&&r._ctx.query===i&&r._ctx.kill(!0,!0)})},n.isInViewport=function(i,r,s){var o=(Le(i)?ve(i):i).getBoundingClientRect(),a=o[s?Bi:Ni]*r||0;return s?o.right-a>0&&o.left+a<q.innerWidth:o.bottom-a>0&&o.top+a<q.innerHeight},n.positionInViewport=function(i,r,s){Le(i)&&(i=ve(i));var o=i.getBoundingClientRect(),a=o[s?Bi:Ni],l=r==null?a/2:r in $o?$o[r]*a:~r.indexOf("%")?parseFloat(r)*a/100:parseFloat(r)||0;return s?(o.left+l)/q.innerWidth:(o.top+l)/q.innerHeight},n.killAll=function(i){if(G.slice(0).forEach(function(s){return s.vars.id!=="ScrollSmoother"&&s.kill()}),i!==!0){var r=Yi.killAll||[];Yi={},r.forEach(function(s){return s()})}},n})();Q.version="3.15.0";Q.saveStyles=function(n){return n?Ts(n).forEach(function(t){if(t&&t.style){var e=Ve.indexOf(t);e>=0&&Ve.splice(e,5),Ve.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),L.core.getCache(t),Ul())}}):Ve};Q.revert=function(n,t){return Qu(!n,t)};Q.create=function(n,t){return new Q(n,t)};Q.refresh=function(n){return n?Hr(!0):(nr||Q.register())&&Di(!0)};Q.update=function(n){return++K.cache&&Nn(n===!0?2:0)};Q.clearScrollMemory=Bm;Q.maxScroll=function(n,t){return bn(n,t?ue:Vt)};Q.getScrollFunc=function(n,t){return Yn(ve(n),t?ue:Vt)};Q.getById=function(n){return Hl[n]};Q.getAll=function(){return G.filter(function(n){return n.vars.id!=="ScrollSmoother"})};Q.isScrolling=function(){return!!tn};Q.snapDirectional=qu;Q.addEventListener=function(n,t){var e=Yi[n]||(Yi[n]=[]);~e.indexOf(t)||e.push(t)};Q.removeEventListener=function(n,t){var e=Yi[n],i=e&&e.indexOf(t);i>=0&&e.splice(i,1)};Q.batch=function(n,t){var e=[],i={},r=t.interval||.016,s=t.batchMax||1e9,o=function(u,c){var f=[],h=[],d=L.delayedCall(r,function(){c(f,h),f=[],h=[]}).pause();return function(p){f.length||d.restart(!0),f.push(p.trigger),h.push(p),s<=f.length&&d.progress(1)}},a;for(a in t)i[a]=a.substr(0,2)==="on"&&ce(t[a])&&a!=="onRefreshInit"?o(a,t[a]):t[a];return ce(s)&&(s=s(),Yt(Q,"refresh",function(){return s=t.batchMax()}
vendor: 4,119 bytes, line 9
9)),Ts(n).forEach(function(l){var u={};for(a in i)u[a]=i[a];u.trigger=l,e.push(Q.create(u))}),e};var eh=function(t,e,i,r){return e>r?t(r):e<0&&t(0),i>r?(r-e)/(i-e):i<0?e/(e-i):1},La=function n(t,e){e===!0?t.style.removeProperty("touch-action"):t.style.touchAction=e===!0?"auto":e?"pan-"+e+(vt.isTouch?" pinch-zoom":""):"none",t===Fe&&n(st,e)},Js={auto:1,scroll:1},_T=function(t){var e=t.event,i=t.target,r=t.axis,s=(e.changedTouches?e.changedTouches[0]:e).target,o=s._gsap||L.core.getCache(s),a=re(),l;if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==st&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(Js[(l=Ke(s)).overflowY]||Js[l.overflowX]));)s=s.parentNode;o._isScroll=s&&s!==i&&!Ui(s)&&(Js[(l=Ke(s)).overflowY]||Js[l.overflowX]),o._isScrollT=a}(o._isScroll||r==="x")&&(e.stopPropagation(),e._gsapAllow=!0)},jm=function(t,e,i,r){return vt.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:r=r&&_T,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return i&&Yt(ot,vt.eventTypes[0],ih,!1,!0)},onDisable:function(){return Ut(ot,vt.eventTypes[0],ih,!0)}})},vT=/(input|label|select|textarea)/i,nh,ih=function(t){var e=vT.test(t.target.tagName);(e||nh)&&(t._gsapAllow=!0,nh=e)},wT=function(t){Pi(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e=t,i=e.normalizeScrollX,r=e.momentum,s=e.allowNestedScroll,o=e.onRelease,a,l,u=ve(t.target)||Fe,c=L.core.globals().ScrollSmoother,f=c&&c.get(),h=Zn&&(t.content&&ve(t.content)||f&&t.content!==!1&&!f.smooth()&&f.content()),d=Yn(u,Vt),p=Yn(u,ue),m=1,g=(vt.isTouch&&q.visualViewport?q.visualViewport.scale*q.visualViewport.width:q.outerWidth)/q.innerWidth,_=0,w=ce(r)?function(){return r(a)}:function(){return r||2.8},y,v,T=jm(u,t.type,!0,s),E=function(){return v=!1},x=_n,S=_n,C=function(){l=bn(u,Vt),S=es(Zn?1:0,l),i&&(x=es(0,bn(u,ue))),y=zi},P=function(){h._gsap.y=Ur(parseFloat(h._gsap.y)+d.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",d.offset=d.cacheID=0},D=function(){if(v){requestAnimationFrame(E);var z=Ur(a.deltaY/2),Y=S(d.v-z);if(h&&Y!==d.v+d.offset){d.offset=Y-d.v;var b=Ur((parseFloat(h&&h._gsap.y)||0)-d.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+b+", 0, 1)",h._gsap.y=b+"px",d.cacheID=K.cache,Nn()}return!0}d.offset&&P(),v=!0},R,V,O,F,j=function(){C(),R.isActive()&&R.vars.scrollY>l&&(d()>l?R.progress(1)&&d(l):R.resetTo("scrollY",l))};return h&&L.set(h,{y:"+=0"}),t.ignoreCheck=function(N){return Zn&&N.type==="touchmove"&&D()||m>1.05&&N.type!=="touchstart"||a.isGesturing||N.touches&&N.touches.length>1},t.onPress=function(){v=!1;var N=m;m=Ur((q.visualViewport&&q.visualViewport.scale||1)/g),R.pause(),N!==m&&La(u,m>1.01?!0:i?!1:"x"),V=p(),O=d(),C(),y=zi},t.onRelease=t.onGestureStart=function(N,z){if(d.offset&&P(),!z)F.restart(!0);else{K.cache++;var Y=w(),b,nt;i&&(b=p(),nt=b+Y*.05*-N.velocityX/.227,Y*=eh(p,b,nt,bn(u,ue)),R.vars.scrollX=x(nt)),b=d(),nt=b+Y*.05*-N.velocityY/.227,Y*=eh(d,b,nt,bn(u,Vt)),R.vars.scrollY=S(nt),R.invalidate().duration(Y).play(.01),(Zn&&R.vars.scrollY>=l||b>=l-1)&&L.to({},{onUpdate:j,duration:Y})}o&&o(N)},t.onWheel=function(){R._ts&&R.pause(),re()-_>1e3&&(y=0,_=re())},t.onChange=function(N,z,Y,b,nt){if(zi!==y&&C(),z&&i&&p(x(b[2]===z?V+(N.startX-N.x):p()+z-b[1])),Y){d.offset&&P();var Lt=nt[2]===Y,Re=Lt?O+N.startY-N.y:d()+Y-nt[1],ht=S(Re);Lt&&Re!==ht&&(O+=ht-Re),d(ht)}(Y||z)&&Nn()},t.onEnable=function(){La(u,i?!1:"x"),Q.addEventListener("refresh",j),Yt(q,"resize",j),d.smooth&&(d.target.style.scrollBehavior="auto",d.smooth=p.smooth=!1),T.enable()},t.onDisable=function(){La(u,!0),Ut(q,"resize",j),Q.removeEventListener("refresh",j),T.kill()},t.lockAxis=t.lockAxis!==!1,a=new vt(t),a.iOS=Zn,Zn&&!d()&&d(1),Zn&&L.ticker.add(_n),F=a._dc,R=L.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:i?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:zm(d,d(),function(){return R.pause()})},onUpdate:Nn,onComplete:F.vars.onComplete}),a};Q.sort=function(n){if(ce(n))return G.sort(n);var t=q.pageYOffset||0;
9return Q.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+q.innerHeight}),G.sort(n||function(e,i){return(e.vars.refreshPriority||0)*-1e6+(e.vars.containerAnimation?1e6:e._sortY)-((i.vars.containerAnimation?1e6:i._sortY)+(i.vars.refreshPriority||0)*-1e6)})};Q.observe=function(n){return new vt(n)};Q.normalizeScroll=function(n){if(typeof n>"u")return _e;if(n===!0&&_e)return _e.enable();if(n===!1){_e&&_e.kill(),_e=n;return}var t=n instanceof vt?n:wT(n);return _e&&_e.target===t.target&&_e.kill(),Ui(t.target)&&(_e=t),t};Q.core={_getVelocityProp:Uo,_inputObserver:jm,_scrollers:K,_proxies:hn,bridge:{ss:function(){tn||Hi("scrollStart"),tn=re()},ref:function(){return ie}}};Am()&&L.registerPlugin(Q);const Rb=Object.freeze(Object.defineProperty({__proto__:null,ScrollTrigger:Q,default:Q},Symbol.toStringTag,{value:"Module"}));var fe,Wm,zn,xn,ai,Um,vr,to,Ym=function(){return typeof window<"u"},Hm=function(){return fe||Ym()&&(fe=window.gsap)&&fe.registerPlugin&&fe},$m=function(t){return typeof t=="string"},rh=function(t){return typeof t=="function"},xs=function(t,e){var i=e==="x"?"Width":"Height",r="scroll"+i,s="client"+i;return t===zn||t===xn||t===ai?Math.max(xn[r],ai[r])-(zn["inner"+i]||xn[s]||ai[s]):t[r]-t["offset"+i]},Ss=function(t,e){var i="scroll"+(e==="x"?"Left":"Top");return t===zn&&(t.pageXOffset!=null?i="page"+e.toUpperCase()+"Offset":t=xn[i]!=null?xn:ai),function(){return t[i]}},TT=function(t,e,i,r){if(rh(t)&&(t=t(e,i,r)),typeof t!="object")return $m(t)&&t!=="max"&&t.charAt(1)!=="="?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var s={},o;for(o in t)s[o]=o!=="onAutoKill"&&rh(t[o])?t[o](e,i,r):t[o];return s},Xm=function(t,e){if(t=Um(t)[0],!t||!t.getBoundingClientRect)return{x:0,y:0};var i=t.getBoundingClientRect(),r=!e||e===zn||e===ai,s=r?{top:xn.clientTop-(zn.pageYOffset||xn.scrollTop||ai.scrollTop||0),left:xn.clientLeft-(zn.pageXOffset||xn.scrollLeft||ai.scrollLeft||0)}:e.getBoundingClientRect(),o={x:i.left-s.left,y:i.top-s.top};return!r&&e&&(o.x+=Ss(e,"x")(),o.y+=Ss(e,"y")()),o},sh=function(t,e,i,r,s){return!isNaN(t)&&typeof t!="object"?parseFloat(t)-s:$m(t)&&t.charAt(1)==="="?parseFloat(t.substr(2))*(t.charAt(0)==="-"?-1:1)+r-s:t==="max"?xs(e,i)-s:Math.min(xs(e,i),Xm(t,e)[i]-s)},Gl=function(){fe=Hm(),Ym()&&fe&&typeof document<"u"&&document.body&&(zn=window,ai=document.body,xn=document.documentElement,Um=fe.utils.toArray,fe.config({autoKillThreshold:7}),vr=fe.config(),Wm=1)},$i={version:"3.15.0",name:"scrollTo",rawVars:1,register:function(t){fe=t,Gl()},init:function(t,e,i,r,s){Wm||Gl();var o=this,a=fe.getProperty(t,"scrollSnapType");o.isWin=t===zn,o.target=t,o.tween=i,e=TT(e,r,t,s),o.vars=e,o.autoKill=!!("autoKill"in e?e:vr).autoKill,o.getX=Ss(t,"x"),o.getY=Ss(t,"y"),o.x=o.xPrev=o.getX(),o.y=o.yPrev=o.getY(),to||(to=fe.core.globals().ScrollTrigger),fe.getProperty(t,"scrollBehavior")==="smooth"&&fe.set(t,{scrollBehavior:"auto"}),a&&a!=="none"&&(o.snap=1,o.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),e.x!=null?(o.add(o,"x",o.x,sh(e.x,t,"x",o.x,e.offsetX||0),r,s),o._props.push("scrollTo_x")):o.skipX=1,e.y!=null?(o.add(o,"y",o.y,sh(e.y,t,"y",o.y,e.offsetY||0),r,s),o._props.push("scrollTo_y")):o.skipY=1},render:function(t,e){for(var i=e._pt,r=e.target,s=e.tween,o=e.autoKill,a=e.xPrev,l=e.yPrev,u=e.isWin,c=e.snap,f=e.snapInline,h,d,p,m,g;i;)i.r(t,i.d),i=i._next;h=u||!e.skipX?e.getX():a,d=u||!e.skipY?e.getY():l,p=d-l,m=h-a,g=vr.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),o&&(!e.skipX&&(m>g||m<-g)&&h<xs(r,"x")&&(e.skipX=1),!e.skipY&&(p>g||p<-g)&&d<xs(r,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(s.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(s,e.vars.onAutoKillParams||[]))),u?zn.scrollTo(e.skipX?h:e.x,e.skipY?d:e.y):(e.skipY||(r.scrollTop=e.y),e.skipX||(r.scrollLeft=e.x)),c&&(t===1||t===0)&&(d=r.scrollTop,h=r.scrollLeft,f?r.style.scrollSnapType=f:r.style.removeProperty("scroll-snap-type"),r.scrollTop=d+1,r.scrollLeft=h+1,r.scrollTop=d,r.scrollLeft=h),e.xPrev=e.x,e.yPrev=e.y,to&&to.update()},kill:function(t){var e=t==="scrollTo",i=this._props.indexOf(t);return(e||t==="scrollTo_x")&&(this.skipX=1),(e||t==="scrollTo_y")&&(this.skipY=1),i>-1&&this._props.splice(i,1),!this._props.length}};$i.max=xs;$i.getOffset=Xm;$i.buildGetter=Ss;$i.config=function(n){vr||Gl()||(vr=fe.config());for(var t in n)vr[t]=n[t]};Hm()&&fe.registerPlugin($i);const Db=Object.freeze(Object.defineProperty({__proto__:null,ScrollToPlugin:$i,default:$i},Symbol.toStringTag,{value:"Module"}));var oh="1.3.25";function Gm(n,t,e){return Math.max(n,Math.min(t,e))}function bT(n,t,e){return(1-e)*n+e*t}function xT(n,t,e,i){return bT(n,t,1-Math.exp(-e*i))}function ST(n,t){return(n%t+t)%t}var PT=class{constructor(){B(this,"isRunning",!1);B(this,"value",0);B(this,"from",0);B(this,"to",0);B(this,"currentTime",0);B(this,"lerp");B(this,"duration");B(this,"easing");B(this,"onUpdate")}advance(n){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=n;const e=Gm(0,this.currentTime/this.duration,1);t=e>=1;const i=t?1:this.easing(e);this.value=this.from+(this.to-this.from)*i}else this.lerp?(this.value=xT(this.value,this.to,this.lerp*60,n),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(n,t,{lerp:e,duration:i,easing:r,onStart:s,onUpdate:o}){this.from=this.value=n,this.to=t,this.lerp=e,this.duration=i,this.easing=r,this.currentTime=0,this.isRunning=!0,s?.(),this.onUpdate=o}};function CT(n,t){let e;return function(...i){clearTimeout(e),e=setTimeout(()=>{e=void 0,n.apply(this,i)},t)}}var ET=class{constructor(n,t,{autoResize:e=!0,debounce:i=250}={}){B(this,"width",0);B(this,"height",0);B(this,"scrollHeight",0);B(this,"scrollWidth",0);B(this,"debouncedResize");B(this,"wrapperResizeObserver");B(this,"contentResizeObserver");B(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});B(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});B(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=n,this.content=t,e&&(this.debouncedResize=CT(this.resize,i),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Km=class{constructor(){B(this,"events",{})}emit(n,...t){const e=this.events[n]||[];for(let i=0,r=e.length;i<r;i++)e[i]?.(...t)}on(n,t){return this.events[n]?this.events[n].push(t):this.events[n]=[t],()=>{this.events[n]=this.events[n]?.filter(e=>t!==e)}}off(n,t){this.events[n]=this.events[n]?.filter(e=>t!==e)}destroy(){this.events={}}};const MT=100/6,Qn={passive:!1};function ah(n,t){return n===1?MT:n===2?t:1}var AT=class{constructor(n,t={wheelMultiplier:1,touchMultiplier:1}){B(this,"touchStart",{x:0,y:0});B(this,"lastDelta",{x:0,y:0});B(this,"window",{width:0,height:0});B(this,"emitter",new Km);B(this,"onTouchStart",n=>{const{clientX:t,clientY:e}=n.targetTouches?n.targetTouches[0]:n;this.touchStart.x=t,this.touchStart.y=e,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:n})});B(this,"onTouchMove",n=>{const{clientX:t,clientY:e}=n.targetTouches?n.targetTouches[0]:n,i=-(t-this.touchStart.x)*this.options.touchMultiplier,r=-(e-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=e,this.lastDelta={x:i,y:r},this.emitter.emit("scroll",{deltaX:i,deltaY:r,event:n})});B(this,"onTouchEnd",n=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:n})});B(this,"onWheel",n=>{let{deltaX:t,deltaY:e,deltaMode:i}=n;const r=ah(i,this.window.width),s=ah(i,this.window.height);t*=r,e*=s,t*=this.options.wheelMultiplier,e*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:e,event:n})});B(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=n,this.options=t,window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Qn),this.element.addEventListener("touchstart",this.onTouchStart,Qn),this.element.addEventListener("touchmove",this.onTouchMove,Qn),this.element.addEventListener("touchend",this.onTouchEnd,Qn)}on(n,t){return this.emitter.on(n,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize),this.element.removeEventListener("wheel",this.onWheel,Qn),this.element.removeEventListener("touchstart",this.onTouchStart,Qn),this.element.removeEventListener("touchmove",this.onTouchMove,Qn),this.element.removeEventListener("touchend",this.onTouchEnd,Qn)}};const lh=n=>Math.min(1,1.001-2**(-10*n));var RT=class{constructor({wrapper:n=window,content:t=document.documentElement,eventsTarget:e=n,smoothWheel:i=!0,syncTouch:r=!1,syncTouchLerp:s=.075,touchInertiaExponent:o=1.7,duration:a,easing:l,lerp:u=.1,infinite:c=!1,orientation:f="vertical",gestureOrientation:h=f==="horizontal"?"both":"vertical",touchMultiplier:d=1,wheelMultiplier:p=1,autoResize:m=!0,prevent:g,virtualScroll:_,overscroll:w=!0,autoRaf:y=!1,anchors:v=!1,autoToggle:T=!1,allowNestedScroll:E=!1,__experimental__naiveDimensions:x=!1,naiveDimensions:S=x,stopInertiaOnNavigate:C=!1}={}){B(this,"_isScrolling",!1);B(this,"_isStopped",!1);B(this,"_isLocked",!1);B(this,"_preventNextNativeScrollEvent",!1);B(this,"_resetVelocityTimeout",null);B(this,"_rafId",null);B(this,"_isDraggingSelection",!1);B(this,"isTouching");B(this,"isIos");B(this,"time",0);B(this,"userData",{});B(this,"lastVelocity",0);B(this,"velocity",0);B(this,"direction",0);B(this,"options");B(this,"targetScroll");B(this,"animatedScroll");B(this,"animate",new PT);B(this,"emitter",new Km);B(this,"dimensions");B(this,"virtualScroll");B(this,"onScrollEnd",n=>{n instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&n.stopPropagation()});B(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});B(this,"onTransitionEnd",n=>{n.propertyName?.includes("overflow")&&n.target===this.rootElement&&this.checkOverflow()});B(this,"onClick",n=>{const t=n.composedPath().filter(i=>i instanceof HTMLAnchorElement&&i.href).map(i=>
vendor: 4,879 bytes, line 9
9new URL(i.href)),e=new URL(window.location.href);if(this.options.anchors){const i=t.find(r=>e.host===r.host&&e.pathname===r.pathname&&r.hash);if(i){const r=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,s=decodeURIComponent(i.hash);this.scrollTo(s,r);return}}if(this.options.stopInertiaOnNavigate&&t.some(i=>e.host===i.host&&e.pathname!==i.pathname)){this.reset();return}});B(this,"onPointerDown",n=>{n.button===1&&this.reset()});B(this,"onVirtualScroll",n=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(n)===!1)return;const{deltaX:t,deltaY:e,event:i}=n;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:e,event:i}),i.ctrlKey||i.lenisStopPropagation)return;const r=i.type.includes("touch"),s=i.type.includes("wheel");if(r&&this.isIos&&(i.type==="touchstart"&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(i)),this._isDraggingSelection)){i.type==="touchend"&&(this._isDraggingSelection=!1);return}this.isTouching=i.type==="touchstart"||i.type==="touchmove";const o=t===0&&e===0;if(this.options.syncTouch&&r&&i.type==="touchstart"&&o&&!this.isStopped&&!this.isLocked){this.reset();return}const a=this.options.gestureOrientation==="vertical"&&e===0||this.options.gestureOrientation==="horizontal"&&t===0;if(o||a)return;let l=i.composedPath();l=l.slice(0,l.indexOf(this.rootElement));const u=this.options.prevent,c=Math.abs(t)>=Math.abs(e)?"horizontal":"vertical";if(l.find(p=>p instanceof HTMLElement&&(typeof u=="function"&&u?.(p)||p.hasAttribute?.("data-lenis-prevent")||c==="vertical"&&p.hasAttribute?.("data-lenis-prevent-vertical")||c==="horizontal"&&p.hasAttribute?.("data-lenis-prevent-horizontal")||r&&p.hasAttribute?.("data-lenis-prevent-touch")||s&&p.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.hasNestedScroll(p,{deltaX:t,deltaY:e}))))return;if(this.isStopped||this.isLocked){i.cancelable&&i.preventDefault();return}if(!(this.options.syncTouch&&r||this.options.smoothWheel&&s)){this.isScrolling="native",this.animate.stop(),i.lenisStopPropagation=!0;return}let f=e;this.options.gestureOrientation==="both"?f=Math.abs(e)>Math.abs(t)?e:t:this.options.gestureOrientation==="horizontal"&&(f=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&e>0||this.animatedScroll===this.limit&&e<0))&&(i.lenisStopPropagation=!0),i.cancelable&&i.preventDefault();const h=r&&this.options.syncTouch,d=r&&i.type==="touchend";d&&(f=Math.sign(f)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+f,{programmatic:!1,...h?{lerp:d?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});B(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const n=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-n,this.direction=Math.sign(this.animatedScroll-n),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});B(this,"raf",n=>{const t=n-(this.time||n);this.time=n,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))});window.lenisVersion=oh,window.lenis||(window.lenis={}),window.lenis.version=oh,f==="horizontal"&&(window.lenis.horizontal=!0),r===!0&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),(!n||n===document.documentElement)&&(n=window),typeof a=="number"&&typeof l!="function"?l=lh:typeof l=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:n,content:t,eventsTarget:e,smoothWheel:i,syncTouch:r,syncTouchLerp:s,touchInertiaExponent:o,duration:a,easing:l,lerp:u,infinite:c,gestureOrientation:h,orientation:f,touchMultiplier:d,wheelMultiplier:p,autoResize:m,prevent:g,virtualScroll:_,overscroll:w,autoRaf:y,anchors:v,autoToggle:T,allowNestedScroll:E,naiveDimensions:S,stopInertiaOnNavigate:C},this.dimensions=new ET(n,t,{autoResize:m}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown),this.virtualScroll=ne
9w AT(e,{touchMultiplier:d,wheelMultiplier:p}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(n,t){return this.emitter.on(n,t)}off(n,t){return this.emitter.off(n,t)}get overflow(){const n=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[n]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(n){this.isHorizontal?this.options.wrapper.scrollTo({left:n,behavior:"instant"}):this.options.wrapper.scrollTo({top:n,behavior:"instant"})}isTouchOnSelectionHandle(n){const t=window.getSelection();if(!t||t.isCollapsed||t.rangeCount===0)return!1;const e=n.targetTouches[0]??n.changedTouches[0];if(!e)return!1;const i=t.getRangeAt(0).getClientRects();if(i.length===0)return!1;const r=i[0],s=i[i.length-1],o=40,a=Math.hypot(e.clientX-r.left,e.clientY-r.top)<=o,l=Math.hypot(e.clientX-s.right,e.clientY-s.bottom)<=o;return a||l}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(n,{offset:t=0,immediate:e=!1,lock:i=!1,programmatic:r=!0,lerp:s=r?this.options.lerp:void 0,duration:o=r?this.options.duration:void 0,easing:a=r?this.options.easing:void 0,onStart:l,onComplete:u,force:c=!1,userData:f}={}){if((this.isStopped||this.isLocked)&&!c)return;let h=n,d=t;if(typeof h=="string"&&["top","left","start","#"].includes(h))h=0;else if(typeof h=="string"&&["bottom","right","end"].includes(h))h=this.limit;else{let p=null;if(typeof h=="string"?(p=h.startsWith("#")?document.getElementById(h.slice(1)):document.querySelector(h),p||h==="#top"&&(h=0)):h instanceof HTMLElement&&h?.nodeType&&(p=h),p){if(this.options.wrapper!==window){const v=this.rootElement.getBoundingClientRect();d-=this.isHorizontal?v.left:v.top}const m=p.getBoundingClientRect(),g=getComputedStyle(p),_=this.isHorizontal?Number.parseFloat(g.scrollMarginLeft):Number.parseFloat(g.scrollMarginTop),w=getComputedStyle(this.rootElement),y=this.isHorizontal?Number.parseFloat(w.scrollPaddingLeft):Number.parseFloat(w.scrollPaddingTop);h=(this.isHorizontal?m.left:m.top)+this.animatedScroll-(Number.isNaN(_)?0:_)-(Number.isNaN(y)?0:y)}}if(typeof h=="number"){if(h+=d,this.options.infinite){if(r){this.targetScroll=this.animatedScroll=this.scroll;const p=h-this.animatedScroll;p>this.limit/2?h-=this.limit:p<-this.limit/2&&(h+=this.limit)}}else h=Gm(0,h,this.limit);if(h===this.targetScroll){l?.(this),u?.(this);return}if(this.userData=f??{},e){this.animatedScroll=this.targetScroll=h,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}r||(this.targetScroll=h),typeof o=="number"&&typeof a!="function"?a=lh:typeof a=="function"&&typeof o!="number"&&(o=1),this.animate.fromTo(this.animatedScroll,h,{duration:o,easing:a,lerp:s,onStart:()=>
9{i&&(this.isLocked=!0),this.isScrolling="smooth",l?.(this)},onUpdate:(p,m)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=p-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=p,this.setScroll(this.scroll),r&&(this.targetScroll=p),m||this.emit(),m&&(this.reset(),this.emit(),u?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(n,{deltaX:t,deltaY:e}){const i=Date.now();n._lenis||(n._lenis={});const r=n._lenis;let s,o,a,l,u,c,f,h,d,p;if(i-(r.time??0)>2e3){r.time=Date.now();const E=window.getComputedStyle(n);if(r.computedStyle=E,s=["auto","overlay","scroll"].includes(E.overflowX),o=["auto","overlay","scroll"].includes(E.overflowY),u=["auto"].includes(E.overscrollBehaviorX),c=["auto"].includes(E.overscrollBehaviorY),r.hasOverflowX=s,r.hasOverflowY=o,!(s||o))return!1;f=n.scrollWidth,h=n.scrollHeight,d=n.clientWidth,p=n.clientHeight,a=f>d,l=h>p,r.isScrollableX=a,r.isScrollableY=l,r.scrollWidth=f,r.scrollHeight=h,r.clientWidth=d,r.clientHeight=p,r.hasOverscrollBehaviorX=u,r.hasOverscrollBehaviorY=c}else a=r.isScrollableX,l=r.isScrollableY,s=r.hasOverflowX,o=r.hasOverflowY,f=r.scrollWidth,h=r.scrollHeight,d=r.clientWidth,p=r.clientHeight,u=r.hasOverscrollBehaviorX,c=r.hasOverscrollBehaviorY;if(!(s&&a||o&&l))return!1;const m=Math.abs(t)>=Math.abs(e)?"horizontal":"vertical";let g,_,w,y,v,T;if(m==="horizontal")g=Math.round(n.scrollLeft),_=f-d,w=t,y=s,v=a,T=u;else if(m==="vertical")g=Math.round(n.scrollTop),_=h-p,w=e,y=o,v=l,T=c;else return!1;return!T&&(g>=_||g<=0)?!0:(w>0?g<_:g>0)&&y&&v}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const n=this.options.wrapper;return this.isHorizontal?n.scrollX??n.scrollLeft:n.scrollY??n.scrollTop}get scroll(){return this.options.infinite?ST(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(n){this._isScrolling!==n&&(this._isScrolling=n,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(n){this._isStopped!==n&&(this._isStopped=n,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(n){this._isLocked!==n&&(this._isLocked=n,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let n="lenis";return this.options.autoToggle&&(n+=" lenis-autoToggle"),this.isStopped&&(n+=" lenis-stopped"),this.isLocked&&(n+=" lenis-locked"),this.isScrolling&&(n+=" lenis-scrolling"),this.isScrolling==="smooth"&&(n+=" lenis-smooth"),n}updateClassName(){this.cleanUpClassName(),this.className.split(" ").forEach(n=>{this.rootElement.classList.add(n)})}cleanUpClassName(){for(const n of Array.from(this.rootElement.classList))(n==="lenis"||n.startsWith("lenis-"))&&this.rootElement.classList.remove(n)}};const kb=Object.freeze(Object.defineProperty({__proto__:null,default:RT},Symbol.toStringTag,{value:"Module"}));var DT=function(n){return function(t,e){var i=A.useRef(!1);n(function(){return function(){i.current=!1}},[]),n(function(){if(!i.current)i.current=!0;else return t()},e)}},cn=function(){return cn=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},cn.apply(this,arguments)};function qm(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(e[i[r]]=n[i[r]]);return e}function kT(n,t,e,i){function r(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function a(c){try{u(i.next(c))}catch(f){o(f)}}function l(c){try{u(i.throw(c))}catch(f){o(f)}}function u(c){c.done?s(c.value):r(c.value).then(a,l)}u((i=i.apply(n,t||[])).next())})}function OT(n,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(e=0)),e;)try{if(i=1,r&&(s=u[0]&2?r.return:u[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;switch(r=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,r=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(s=e.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){e.label=u[1];break}if(u[0]===6&&e.label<s[1]){e.label=s[1],s=u;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(u);break}s[2]&&e.ops.pop(),e.trys.pop();continue}u=t.call(n,e)}catch(c){u=[6,c],r=0}finally{i=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function se(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var i=e.call(n),r,s=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return s}function oe(n,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return n.concat(s||Array.prototype.slice.call(t))}var VT=function(n){return typeof n=="function"},Ci=function(n){var t=A.useRef(n);t.current=A.useMemo(function(){return n},[n]);var e=A.useRef(void 0);return e.current||(e.current=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return t.current.apply(this,i)}),e.current};const Kl=DT(A.useEffect);var Qm=function(n,t){var e=t.manual,i=t.ready,r=i===void 0?!0:i,s=t.defaultParams,o=s===void 0?[]:s,a=t.refreshDeps,l=a===void 0?[]:a,u=t.refreshDepsAction,c=A.useRef(!1);return c.current=!1,Kl(function(){!e&&r&&(c.current=!0,n.run.apply(n,oe([],se(o),!1)))},[r]),Kl(function(){c.current||e||(c.current=!0,u?u():n.refresh())},oe([],se(l),!1)),{onBefore:function(){if(!r)return{stopNow:!0}}}};Qm.onInit=function(n){var t=n.ready,e=t===void 0?!0:t,i=n.manual;return{loading:!i&&e}};function LT(n,t){if(n===t)return!0;for(var e=0;e<n.length;e++)if(!Object.is(n[e],t[e]))return!1;return!0}var Zm=function(n,t){var e=A.useRef({deps:t,obj:void 0,initialized:!1}).current;return(e.initialized===!1||!LT(e.deps,t))&&(e.deps=t,e.obj=n(),e.initialized=!0),e.obj};function Jm(n){var t=A.useRef(n);return t.current=n,t}var Zu=function(n){var t=Jm(n);A.useEffect(function(){return function(){t.current()}},[])},wo=new Map,IT=function(n,t,e){var i=wo.get(n);i?.timer&&clearTimeout(i.timer);var r=void 0;t>-1&&(r=setTimeout(function(){wo.delete(n)},t)),wo.set(n,cn(cn({},e),{timer:r}))},FT=function(n){return wo.get(n)},To=new Map,BT=function(n){return To.get(n)},NT=function(n,t){To.set(n,t),t.then(function(e){return To.delete(n),e}).catch(function(){To.delete(n)})},Ei={}
9,zT=function(n,t){Ei[n]&&Ei[n].forEach(function(e){return e(t)})},Ia=function(n,t){return Ei[n]||(Ei[n]=[]),Ei[n].push(t),function(){var i=Ei[n].indexOf(t);Ei[n].splice(i,1)}},jT=function(n,t){var e=t.cacheKey,i=t.cacheTime,r=i===void 0?300*1e3:i,s=t.staleTime,o=s===void 0?0:s,a=t.setCache,l=t.getCache,u=A.useRef(void 0),c=A.useRef(void 0),f=function(d,p){a?a(p):IT(d,r,p),zT(d,p.data)},h=function(d,p){return p===void 0&&(p=[]),l?l(p):FT(d)};return Zm(function(){if(e){var d=h(e);d&&Object.hasOwnProperty.call(d,"data")&&(n.state.data=d.data,n.state.params=d.params,(o===-1||Date.now()-d.time<=o)&&(n.state.loading=!1)),u.current=Ia(e,function(p){n.setState({data:p})})}},[]),Zu(function(){var d;(d=u.current)===null||d===void 0||d.call(u)}),e?{onBefore:function(d){var p=h(e,d);return!p||!Object.hasOwnProperty.call(p,"data")?{}:o===-1||Date.now()-p.time<=o?{loading:!1,data:p?.data,error:void 0,returnNow:!0}:{data:p?.data,error:void 0}},onRequest:function(d,p){var m=BT(e);return m&&m!==c.current?{servicePromise:m}:(m=d.apply(void 0,oe([],se(p),!1)),c.current=m,NT(e,m),{servicePromise:m})},onSuccess:function(d,p){var m;e&&((m=u.current)===null||m===void 0||m.call(u),f(e,{data:d,params:p,time:Date.now()}),u.current=Ia(e,function(g){n.setState({data:g})}))},onMutate:function(d){var p;e&&((p=u.current)===null||p===void 0||p.call(u),f(e,{data:d,params:n.state.params,time:Date.now()}),u.current=Ia(e,function(m){n.setState({data:m})}))}}:{}},Fa,uh;function Ju(){if(uh)return Fa;uh=1;function n(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}return Fa=n,Fa}var Ba,ch;function WT(){if(ch)return Ba;ch=1;var n=typeof Ls=="object"&&Ls&&Ls.Object===Object&&Ls;return Ba=n,Ba}var Na,fh;function tg(){if(fh)return Na;fh=1;var n=WT(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return Na=e,Na}var za,hh;function UT(){if(hh)return za;hh=1;var n=tg(),t=function(){return n.Date.now()};return za=t,za}var ja,dh;function YT(){if(dh)return ja;dh=1;var n=/\s/;function t(e){for(var i=e.length;i--&&n.test(e.charAt(i)););return i}return ja=t,ja}var Wa,ph;function HT(){if(ph)return Wa;ph=1;var n=YT(),t=/^\s+/;function e(i){return i&&i.slice(0,n(i)+1).replace(t,"")}return Wa=e,Wa}var Ua,mh;function eg(){if(mh)return Ua;mh=1;var n=tg(),t=n.Symbol;return Ua=t,Ua}var Ya,gh;function $T(){if(gh)return Ya;gh=1;var n=eg(),t=Object.prototype,e=t.hasOwnProperty,i=t.toString,r=n?n.toStringTag:void 0;function s(o){var a=e.call(o,r),l=o[r];try{o[r]=void 0;var u=!0}catch{}var c=i.call(o);return u&&(a?o[r]=l:delete o[r]),c}return Ya=s,Ya}var Ha,yh;function XT(){if(yh)return Ha;yh=1;var n=Object.prototype,t=n.toString;function e(i){return t.call(i)}return Ha=e,Ha}var $a,_h;function GT(){if(_h)return $a;_h=1;var n=eg(),t=$T(),e=XT(),i="[object Null]",r="[object Undefined]",s=n?n.toStringTag:void 0;function o(a){return a==null?a===void 0?r:i:s&&s in Object(a)?t(a):e(a)}return $a=o,$a}var Xa,vh;function KT(){if(vh)return Xa;vh=1;function n(t){return t!=null&&typeof t=="object"}return Xa=n,Xa}var Ga,wh;function qT(){if(wh)return Ga;wh=1;var n=GT(),t=KT(),e="[object Symbol]";function i(r){return typeof r=="symbol"||t(r)&&n(r)==e}return Ga=i,Ga}var Ka,Th;function QT(){if(Th)return Ka;Th=1;var n=HT(),t=Ju(),e=qT(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt;function l(u){if(typeof u=="number")return u;if(e(u))return i;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=n(u);var f=s.test(u);return f||o.test(u)?a(u.slice(2),f?2:8):r.test(u)?i:+u}return Ka=l,Ka}var qa,bh;function ng(){if(bh)return qa;bh=1;var n=Ju(),t=UT(),e=QT(),i="Expected a function",r=Math.max,s=Math.min;function o(a,l,u){var c,f,h,d,p,m,g=0,_=!1,w=!1,y=!0;if(typeof a!="function")throw new TypeError(i);l=e(l)||0,n(u)&&(_=!!u.leading,w="maxWait"in u,h=w?r(e(u.maxWait)||0,l):h,y="trailing"in u?!!u.trailing:y);function v(V){var O=c,F=f;return c=f=void 0,g=V,d=a.apply(F,O),d}function T(V){return g=V,p=setTimeout(S,l),_?v(V):d}function E(V){var O=V-m,F=V-g,j=l-O;return w?s(j,h-F):j}function x(V){var O=V-m,F=V-g;return m===void 0||O>=l||O<0||w&&F>=h}function S(){var V=t();if(x(V))return C(V);p=setTimeout(S,E(V))}function C(V){return p=void 0,y&&c?v(V):(c=f=void 0,d)}function P(){p!==void 0&&clearTimeout(p),g=0,c=m=f=p=void 0}function D(){return p===void 0?d:C(t())}function R(){var V=t(),O=x(V);if(c=arguments,f=this,m=V,O){if(p===void 0)return T(m);if(w)return clearTimeout(p),p=setTimeout(S,l),v(m)}return p===void 0&&(p=setTimeout(S,l)),d}return R.cancel=P,R.flush=D,R}return qa=o,qa}var ZT=ng();const JT=Ph(ZT);var tb=function(n,t){var e=t.debounceWait,i=t.debounceLeading,r=t.debounceTrailing,s=t.debounceMaxWait,o=A.useRef(void 0),a=A.useMemo(function(){var l={};return i!==void 0&&(l.leading=i),r!==void 0&&(l.trailing=r),s!==void 0&&(l.maxWait=s),l},[i,r,s]);return A.useEffect(function(){if(e){var l=n.runAsync.bind(n);return o.current=JT(function(u){u()},e,a),n.runAsync=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return new Promise(function(f,h){var d;(d=o.current)===null||d===void 0||d.call(o,function(){l.apply(void 0,oe([],se(u),!1)).then(f).catch(h)})})},function(){var u;(u=o.current)===null||u===void 0||u.cancel(),n.runAsync=l}}},[e,a]),e?{onCancel:function(){var l;(l=o.current)===null||l===void 0||l.cancel()}}:{}},eb=function(n,t){var e=t.loadingDelay,i=t.ready,r=A.useRef(void 0);if(!e)return{};var s=function(){r.current&&clearTimeout(r.current)};return{onBefore:function(){return s(),i!==!1&&(r.current=setTimeout(function(){n.setState({loading:!0})},e)),{loading:!1}},onFinally:function(){s()},onCancel:function(){s()}}},ia=!!(typeof window<"u"&&window.document&&window.document.createElement);function tc(){return ia?document.visibilityState!=="hidden":!0}var bo=new Set;function nb(n){return bo.add(n),function(){bo.has(n)&&bo.delete(n)}}if(ia){var ib=function(){tc()&&bo.forEach(function(n){return n()})};window.addEventListener("visibilitychange",ib,!1)}var rb=function(n,t){var e=t.pollingInterval,i=t.pollingWhenHidden,r=i===void 0?!0:i,s=t.pollingErrorRetryCount,o=s===void 0?-1:s,a=A.useRef(void 0),l=A.useRef(void 0),u=A.useRef(0),c=function(){var f;a.current&&clearTimeout(a.current),(f=l.current)===null||f===void 0||f.call(l)};return Kl(function(){e||c()},[e]),e?{onBefore:function(){c()},onError:function(){u.current+=1},onSuccess:function(){u.current=0},onFinally:function(){o===-1||o!==-1&&u.current<=o?a.current=setTimeout(function(){!r&&!tc()?l.current=nb(function(){n.refresh()}):n.refresh()},e):u.current=0},onCancel:function(){c()}}:{}}
9;function sb(n,t){var e=!1;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];e||(e=!0,n.apply(void 0,oe([],se(i),!1)),setTimeout(function(){e=!1},t))}}var ob=function(){return ia&&typeof navigator.onLine<"u"?navigator.onLine:!0},xo=new Set;function ab(n){return xo.add(n),function(){xo.has(n)&&xo.delete(n)}}if(ia){var xh=function(){!tc()||!ob()||xo.forEach(function(n){return n()})};window.addEventListener("visibilitychange",xh,!1),window.addEventListener("focus",xh,!1)}var lb=function(n,t){var e=t.refreshOnWindowFocus,i=t.focusTimespan,r=i===void 0?5e3:i,s=A.useRef(void 0),o=function(){var a;(a=s.current)===null||a===void 0||a.call(s)};return A.useEffect(function(){if(e){var a=sb(n.refresh.bind(n),r);s.current=ab(function(){a()})}return function(){o()}},[e,r]),Zu(function(){o()}),{}},ub=function(n,t){var e=t.retryInterval,i=t.retryCount,r=A.useRef(void 0),s=A.useRef(0),o=A.useRef(!1);return i?{onBefore:function(){o.current||(s.current=0),o.current=!1,r.current&&clearTimeout(r.current)},onSuccess:function(){s.current=0},onError:function(){if(s.current+=1,i===-1||s.current<=i){var a=e??Math.min(1e3*Math.pow(2,s.current),3e4);r.current=setTimeout(function(){o.current=!0,n.refresh()},a)}else s.current=0},onCancel:function(){s.current=0,r.current&&clearTimeout(r.current)}}:{}},Qa,Sh;function cb(){if(Sh)return Qa;Sh=1;var n=ng(),t=Ju(),e="Expected a function";function i(r,s,o){var a=!0,l=!0;if(typeof r!="function")throw new TypeError(e);return t(o)&&(a="leading"in o?!!o.leading:a,l="trailing"in o?!!o.trailing:l),n(r,s,{leading:a,maxWait:s,trailing:l})}return Qa=i,Qa}var fb=cb();const hb=Ph(fb);var db=function(n,t){var e=t.throttleWait,i=t.throttleLeading,r=t.throttleTrailing,s=A.useRef(void 0),o={};return i!==void 0&&(o.leading=i),r!==void 0&&(o.trailing=r),A.useEffect(function(){if(e){var a=n.runAsync.bind(n);return s.current=hb(function(l){l()},e,o),n.runAsync=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new Promise(function(c,f){var h;(h=s.current)===null||h===void 0||h.call(s,function(){a.apply(void 0,oe([],se(l),!1)).then(c).catch(f)})})},function(){var l;n.runAsync=a,(l=s.current)===null||l===void 0||l.cancel()}}},[e,i,r]),e?{onCancel:function(){var a;(a=s.current)===null||a===void 0||a.cancel()}}:{}},pb=function(n){A.useEffect(function(){var t=n?.();if(!(t&&typeof t=="object"&&typeof t.then=="function"))return t},[])},mb=function(){var n=se(A.useState({}),2),t=n[1];return Ci(function(){return t({})})},gb=(function(){function n(t,e,i,r){r===void 0&&(r={}),this.serviceRef=t,this.options=e,this.subscribe=i,this.initState=r,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=cn(cn(cn({},this.state),{loading:!e.manual}),r)}return n.prototype.setState=function(t){t===void 0&&(t={}),this.state=cn(cn({},this.state),t),this.subscribe()},n.prototype.runPluginHandler=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=this.pluginImpls.map(function(s){var o;return(o=s[t])===null||o===void 0?void 0:o.call.apply(o,oe([s],se(e),!1))}).filter(Boolean);return Object.assign.apply(Object,oe([{}],se(r),!1))},n.prototype.runAsync=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return kT(this,void 0,void 0,function(){var i,r,s,o,a,l,u,c,f,h,d,p,m,g,_,w,y,v,T,E,x;return OT(this,function(S){switch(S.label){case 0:if(this.count+=1,i=this.count,r=this.runPluginHandler("onBefore",t),s=r.stopNow,o=s===void 0?!1:s,a=r.returnNow,l=a===void 0?!1:a,u=qm(r,["stopNow","returnNow"]),o)return[2,Promise.resolve(u.data)];if(this.setState(cn({loading:!0,params:t},u)),l)return[2,Promise.resolve(u.data)];(m=(p=this.options).onBefore)===null||m===void 0||m.call(p,t),S.label=1;case 1:return S.trys.push([1,3,,4]),c=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,c||(c=(d=this.serviceRef).current.apply(d,oe([],se(t),!1))),[4,c];case 2:return f=S.sent(),i!==this.count?[2,new Promise(function(){})]:(this.setState({data:f,error:void 0,loading:!1}),(_=(g=this.options).onSuccess)===null||_===void 0||_.call(g,f,t),this.runPluginHandler("onSuccess",f,t),(y=(w=this.options).onFinally)===null||y===void 0||y.call(w,t,f,void 0),i===this.count&&this.runPluginHandler("onFinally",t,f,void 0),[2,f]);case 3:if(h=S.sent(),i!==this.count)return[2,new Promise(function(){})];throw this.setState({error:h,loading:!1}),(T=(v=this.options).onError)===null||T===void 0||T.call(v,h,t),this.runPluginHandler("onError",h,t),
9(x=(E=this.options).onFinally)===null||x===void 0||x.call(E,t,void 0,h),i===this.count&&this.runPluginHandler("onFinally",t,void 0,h),h;case 4:return[2]}})})},n.prototype.run=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];this.runAsync.apply(this,oe([],se(e),!1)).catch(function(r){t.options.onError})},n.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},n.prototype.refresh=function(){this.run.apply(this,oe([],se(this.state.params||[]),!1))},n.prototype.refreshAsync=function(){return this.runAsync.apply(this,oe([],se(this.state.params||[]),!1))},n.prototype.mutate=function(t){var e=VT(t)?t(this.state.data):t;this.runPluginHandler("onMutate",e),this.setState({data:e})},n})();function yb(n,t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var i=t.manual,r=i===void 0?!1:i,s=t.ready,o=s===void 0?!0:s,a=qm(t,["manual","ready"]),l=cn({manual:r,ready:o},a),u=Jm(n),c=mb(),f=Zm(function(){var h=e.map(function(d){var p;return(p=d?.onInit)===null||p===void 0?void 0:p.call(d,l)}).filter(Boolean);return new gb(u,l,c,Object.assign.apply(Object,oe([{}],se(h),!1)))},[]);return f.options=l,f.pluginImpls=e.map(function(h){return h(f,l)}),pb(function(){if(!r&&o){var h=f.state.params||t.defaultParams||[];f.run.apply(f,oe([],se(h),!1))}}),Zu(function(){f.cancel()}),{loading:f.state.loading,data:f.state.data,error:f.state.error,params:f.state.params||[],cancel:Ci(f.cancel.bind(f)),refresh:Ci(f.refresh.bind(f)),refreshAsync:Ci(f.refreshAsync.bind(f)),run:Ci(f.run.bind(f)),runAsync:Ci(f.runAsync.bind(f)),mutate:Ci(f.mutate.bind(f))}}function Ob(n,t,e){return yb(n,t,oe(oe([],se([]),!1),[tb,eb,rb,lb,db,Qm,jT,ub],!1))}export{Tb as A,Ab as O,y1 as Q,Q as S,Ob as a,xb as b,up as c,bb as d,Rb as e,Db as f,Bl as g,Mb as i,kb as l,Pb as m,Sb as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.