agent-lookout 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/PRIVACY.md +164 -25
- package/README.md +46 -43
- package/SECURITY.md +29 -10
- package/dist/assets/{HistoryPanel-oSXRXEdv.js → HistoryPanel-Cr6VQlz-.js} +1 -1
- package/dist/assets/SessionPanel-YVGY4vbo.js +1 -0
- package/dist/assets/index-BRNSMV9A.css +1 -0
- package/dist/assets/index-DlDz48ci.js +9 -0
- package/dist/assets/motion-DlYOyClL.js +9 -0
- package/dist/cli/agent-lookout.js +4 -4
- package/dist/cli/{chunk-LZ62RW3N.js → chunk-AHCLJEYU.js} +1 -1
- package/dist/cli/{chunk-JSBQMY3Q.js → chunk-CMDNRNYP.js} +1 -1
- package/dist/cli/{chunk-I6Q35DHC.js → chunk-XV7BYWVY.js} +17 -0
- package/dist/cli/{mcpServer-HJSH3WIS.js → mcpServer-33QB6COH.js} +5 -5
- package/dist/cli/{startCommand-3LYUYPG4.js → startCommand-XUZHHWZG.js} +2881 -623
- package/dist/index.html +3 -3
- package/docs/API.md +150 -68
- package/docs/GUIDE.md +248 -94
- package/docs/INSTALL.md +8 -6
- package/package.json +5 -1
- package/dist/assets/SessionPanel-DcJvw0F8.js +0 -1
- package/dist/assets/index-B_1Its0R.css +0 -1
- package/dist/assets/index-DLPmOXDe.js +0 -3
- package/dist/assets/motion-BAhdRuCw.js +0 -9
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{r as T,j as q}from"./react-C2DiJaR6.js";const rn=T.createContext({});function ce(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const jo=typeof window<"u",Mt=jo?T.useLayoutEffect:T.useEffect,he=T.createContext(null);function an(t,e){t.indexOf(e)===-1&&t.push(e)}function te(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const et=(t,e,n)=>n>e?e:n<t?t:n;let fe=()=>{};const tt={},ln=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ni=t=>typeof t=="object"&&t!==null,un=t=>/^0[^.\s]+$/u.test(t);function si(t){let e;return()=>(e===void 0&&(e=t()),e)}const _=t=>t,Ot=(...t)=>t.reduce((e,n)=>s=>n(e(s))),Dt=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class ee{constructor(){this.subscriptions=[]}add(e){return an(this.subscriptions,e),()=>this.remove(e)}remove(e){te(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const K=t=>t*1e3,$=t=>t/1e3,ii=(t,e)=>e?t*(1e3/e):0,oi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,No=1e-7,Uo=12;function Wo(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=oi(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>No&&++a<Uo);return o}function jt(t,e,n,s){if(t===e&&n===s)return _;const i=r=>Wo(r,0,1,t,n);return r=>r===0||r===1?r:oi(i(r),e,s)}const ri=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ai=t=>e=>1-t(1-e),li=jt(.33,1.53,.69,.99),cn=ai(li),ui=ri(cn),ci=t=>t>=1?1:(t*=2)<1?.5*cn(t):.5*(2-Math.pow(2,-10*(t-1))),hn=t=>1-Math.sin(Math.acos(t)),hi=ai(hn),fi=ri(hn),$o=jt(.42,0,1,1),Ko=jt(0,0,.58,1),fn=jt(.42,0,.58,1),zo=t=>Array.isArray(t)&&typeof t[0]!="number",di=t=>Array.isArray(t)&&typeof t[0]=="number",Go={linear:_,easeIn:$o,easeInOut:fn,easeOut:Ko,circIn:hn,circInOut:fi,circOut:hi,backIn:cn,backInOut:ui,backOut:li,anticipate:ci},Ho=t=>typeof t=="string",jn=t=>{if(di(t)){fe(t.length===4);const[e,n,s,i]=t;return jt(e,n,s,i)}else if(Ho(t))return Go[t];return t},L={delta:0,timestamp:0,isProcessing:!1};let Gt;function _o(){Gt=void 0}const B={now:()=>(Gt===void 0&&B.set(L.isProcessing||tt.useManualTiming?L.timestamp:performance.now()),Gt),set:t=>{Gt=t,queueMicrotask(_o)}},vt=t=>Math.round(t*1e5)/1e5,mi=t=>e=>typeof e=="string"&&e.startsWith(t),pi=mi("--"),Xo=mi("var(--"),dn=t=>Xo(t)?Yo.test(t.split("/*")[0].trim()):!1,Yo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Nn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Tt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Et={...Tt,transform:t=>et(0,1,t)},Wt={...Tt,default:1},mn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Zo(t){return t==null}const qo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pn=(t,e)=>n=>!!(typeof n=="string"&&qo.test(n)&&n.startsWith(t)||e&&!Zo(n)&&Object.prototype.hasOwnProperty.call(n,e)),gi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(mn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Jo=t=>et(0,255,t),ve={...Tt,transform:t=>Math.round(Jo(t))},at={test:pn("rgb","red"),parse:gi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ve.transform(t)+", "+ve.transform(e)+", "+ve.transform(n)+", "+vt(Et.transform(s))+")"};function Qo(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Be={test:pn("#"),parse:Qo,transform:at.transform},Nt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Q=Nt("deg"),J=Nt("%"),w=Nt("px"),tr=Nt("vh"),er=Nt("vw"),Un={...J,parse:t=>J.parse(t)/100,transform:t=>J.transform(t*100)},pt={test:pn("hsl","hue"),parse:gi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+J.transform(vt(e))+", "+J.transform(vt(n))+", "+vt(Et.transform(s))+")"},k={test:t=>at.test(t)||Be.test(t)||pt.test(t),parse:t=>at.test(t)?at.parse(t):pt.test(t)?pt.parse(t):Be.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?at.transform(t):pt.transform(t),getAnimatableNone:t=>{const e=k.parse(t);return e.alpha=0,k.transform(e)}},nr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,yi=new RegExp(mn.source),vi=new RegExp(nr.source,"i");function sr(t){return isNaN(t)&&typeof t=="string"&&(yi.test(t)||vi.test(t))}const xi="number",Ti="color",ir="var",or="var(",Wn="${}",rr=/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 ar(t){const e=t.toString();return yi.test(e)||vi.test(e)}function Rt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(rr,c=>(k.test(c)?(s.color.push(r),i.push(Ti),n.push(k.parse(c))):c.startsWith(or)?(s.var.push(r),i.push(ir),n.push(c)):(s.number.push(r),i.push(xi),n.push(parseFloat(c))),++r,Wn)).split(Wn);return{values:n,split:a,indexes:s,types:i}}function lr(t){return Rt(t).values}function Si({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],s[r]!==void 0){const o=e[r];o===xi?i+=vt(s[r]):o===Ti?i+=k.transform(s[r]):i+=s[r]}return i}}function ur(t){return Si(Rt(t))}const cr=t=>typeof t=="number"?0:k.test(t)?k.getAnimatableNone(t):t,hr=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:cr(t);function fr(t){const e=Rt(t);return Si(e)(e.values.map((s,i)=>hr(s,e.split[i])))}const U={test:sr,parse:lr,createTransformer:ur,getAnimatableNone:fr};function xe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function dr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=xe(c,a,t+1/3),r=xe(c,a,t),o=xe(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function ne(t,e){return n=>n>0?e:t}const D=(t,e,n)=>t+(e-t)*n,Te=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},mr=[Be,at,pt],pr=t=>mr.find(e=>e.test(t));function $n(t){const e=pr(t);if(!e)return!1;let n=e.parse(t);return e===pt&&(n=dr(n)),n}const Kn=(t,e)=>{const n=$n(t),s=$n(e);if(!n||!s)return ne(t,e);const i={...n};return r=>(i.red=Te(n.red,s.red,r),i.green=Te(n.green,s.green,r),i.blue=Te(n.blue,s.blue,r),i.alpha=D(n.alpha,s.alpha,r),at.transform(i))},Fe=new Set(["none","hidden"]);function gr(t,e){return Fe.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function yr(t,e){return n=>D(t,e,n)}function gn(t){return typeof t=="number"?yr:typeof t=="string"?dn(t)?ne:k.test(t)?Kn:Tr:Array.isArray(t)?Pi:typeof t=="object"?k.test(t)?Kn:vr:ne}function Pi(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>gn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function vr(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=gn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function xr(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const Tr=(t,e)=>{const n=U.createTransformer(e),s=Rt(t),i=Rt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Fe.has(t)&&!i.values.length||Fe.has(e)&&!s.values.length?gr(t,e):Ot(Pi(xr(s,i),i.values),n):ne(t,e)},zn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Sr(t,e){const n=zn.exec(t);if(!n)return;const s=zn.exec(e);if(!s||n[2]!==s[2])return;const i=n[2],r=parseFloat(n[1]),o=parseFloat(s[1]);return a=>vt(D(r,o,a))+i}function yn(t,e,n){if(typeof t=="number"&&typeof e=="number"&&typeof n=="number")return D(t,e,n);if(typeof t=="string"&&typeof e=="string"){const i=Sr(t,e);if(i)return i}return gn(t)(t,e)}const $t=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Pr(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new Set;let o={delta:0,timestamp:0,isProcessing:!1};function a(l){r.has(l)&&(n.add(l),t()),l(o)}const c={schedule:(l,u=!1,h=!1)=>{const m=h&&s?e:n;return u&&r.add(l),m.add(l),l},cancel:l=>{n.delete(l),r.delete(l)},process:l=>{if(o=l,s){i=!0;return}s=!0;const u=e;e=n,n=u,e.forEach(a),e.clear(),s=!1,i&&(i=!1,c.process(l))}};return c}const wr=40;function wi(t,e,n={delta:0,timestamp:0,isProcessing:!1}){let s=!1,i=!0;const r=()=>s=!0,o=$t.reduce((x,S)=>(x[S]=Pr(r),x),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:h,preRender:f,render:m,postRender:d}=o,y=()=>{const x=tt.useManualTiming,S=x?n.timestamp:performance.now();s=!1,x||(n.delta=i?1e3/60:Math.max(Math.min(S-n.timestamp,wr),1)),n.timestamp=S,n.isProcessing=!0,a.process(n),c.process(n),l.process(n),u.process(n),h.process(n),f.process(n),m.process(n),d.process(n),n.isProcessing=!1,s&&e&&(i=!1,t(y))},p=()=>{s=!0,i=!0,n.isProcessing||t(y)};return{schedule:$t.reduce((x,S)=>{const A=o[S];return x[S]=(C,g=!1,v=!1)=>(s||p(),A.schedule(C,g,v)),x},{}),cancel:x=>{for(let S=0;S<$t.length;S++)o[$t[S]].cancel(x)},state:n,steps:o}}const{schedule:E,cancel:st,steps:Se}=wi(typeof requestAnimationFrame<"u"?requestAnimationFrame:_,!0,L),br=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>st(e),now:()=>L.isProcessing?L.timestamp:B.now()}},bi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},vn=2e4;function xn(t,e=50,n=vn,s){let i=0,r=t.next(i);for(;!r.done&&i<n;)i+=e,r=t.next(i);return i>=n?1/0:i}function Ar(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(xn(s),vn);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:$(i)}}const I={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},Ai=t=>t<0?1/Math.max(1+t,I.minDamping):Math.max(1-t,I.minDamping);function Ci(t,e){if(!(t>1))return 1;const n=Math.sqrt(t*t-1),s=t-n,i=t+n,r=2*n*Math.exp(-e)*(1+e);return Vi(o=>i*Math.exp(-s*o)-s*Math.exp(-i*o)-r,o=>Math.exp(-i*o)-Math.exp(-s*o),e)/e}function Oe(t,e){return t*Math.sqrt(1-e*e)}const Cr=12;function Vi(t,e,n){let s=n;for(let i=1;i<Cr;i++)s=s-t(s)/e(s);return s}const Pe=.001;function Vr({duration:t=I.duration,bounce:e=I.bounce}){let n,s;const i=Ai(e);t=et(I.minDuration,I.maxDuration,$(t)),i<1?(n=l=>{const u=l*i,h=u*t,f=Oe(l,i),m=Math.exp(-h);return Pe-u/f*m},s=l=>{const h=l*i*t,f=i*i*l*l*t,m=Math.exp(-h),d=Oe(l*l,i);return(-n(l)+Pe>0?-1:1)*-f*m/d}):(n=l=>{const u=Math.exp(-l*t),h=l*t+1;return-Pe+u*h},s=l=>{const u=Math.exp(-l*t),h=-l*(t*t);return u*h});const r=5/t,o=Vi(n,s,r),a=o*Ci(i,o*t),c=a*a;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:K(t)}}const je=(t,e)=>(e?t>=0:t>0)&&t<1/0;function we(t,e){if(je(t,e))return t}function Mr(t){const e=we(t.stiffness),n=we(t.damping,!0),s=we(t.mass),i={...t,stiffness:e??I.stiffness,damping:n??I.damping,mass:s??I.mass,isResolvedFromDuration:!1,isTimeDefined:(e??n??s)===void 0&&(t.duration!==void 0||t.bounce!==void 0)};if(i.isTimeDefined){if(t.visualDuration){const r=Ai(t.bounce||0),o=2*Math.PI/(t.visualDuration*1.2)*Ci(r,2*Math.PI/1.2);i.stiffness=o*o,i.damping=2*r*Math.sqrt(i.stiffness)}else Object.assign(i,Vr(i)),i.isResolvedFromDuration=!0;(!je(i.stiffness)||!je(i.damping,!0))&&(i.stiffness=I.stiffness,i.damping=I.damping)}return i}function se(t=I.visualDuration,e=I.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],r={done:!1,value:s},{stiffness:o,damping:a,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:h}=Mr({...n}),f=g=>h?0:-$(g),m=a/(2*Math.sqrt(o*c)),d=$(Math.sqrt(o/c)),y=m*d,p={target:i,delta:i-s,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},b=()=>{const g=Math.abs(p.delta)<5;p.restSpeed=n.restSpeed||(g?I.restSpeed.granular:I.restSpeed.default),p.restDelta=n.restDelta||(g?I.restDelta.granular:I.restDelta.default)};b();let P,x,S;if(m<1){const g=Oe(d,m),v={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};S=()=>{v.A=(p.velocity+y*p.delta)/g,v.sinC=y*v.A+p.delta*g,v.cosC=y*p.delta-v.A*g};const V=M=>{M!==v.t&&(v.t=M,v.env=Math.exp(-y*M),v.sin=Math.sin(g*M),v.cos=Math.cos(g*M))};P=M=>(V(M),p.target-v.env*(v.A*v.sin+p.delta*v.cos)),x=M=>(V(M),v.env*(v.sinC*v.sin+v.cosC*v.cos))}else if(m===1){P=v=>p.target-Math.exp(-d*v)*(p.delta+(p.velocity+d*p.delta)*v);const g={C:0};S=()=>{g.C=p.velocity+d*p.delta},x=v=>Math.exp(-d*v)*(d*g.C*v-p.velocity)}else{const g=d*Math.sqrt(m*m-1),v=y-g,V=y+g,M=h?1/0:300/g,W=(N,ft)=>Math.exp(ft>M?-N*M-y*(ft-M):-N*ft),z={S:0,F:0};S=()=>{const N=(p.velocity+y*p.delta)/g;z.S=(p.delta+N)/2,z.F=(p.delta-N)/2},P=N=>p.target-z.S*W(v,N)-z.F*W(V,N),x=N=>v*z.S*W(v,N)+V*z.F*W(V,N)}S();const A=u&&l||null,C={calculatedDuration:A,retarget:(g,v)=>{p.target=g[g.length-1],p.delta=p.target-g[0],p.velocity=f(v),n.restSpeed&&n.restDelta||b(),C.calculatedDuration=A,r.done=!1,S()},velocity:g=>K(x(g)),next:g=>{const v=P(g);if(u)r.done=g>=l;else{const V=K(x(g));r.done=Math.abs(V)<=p.restSpeed&&Math.abs(p.target-v)<=p.restDelta}return r.value=r.done?p.target:v,r},toString:()=>{const g=Math.min(xn(C),vn),v=bi(V=>C.next(g*V).value,g,30);return g+"ms "+v},toTransition:()=>{}};return C}se.applyToOptions=t=>{const e=Ar(t,100,se);return t.ease=e.ease,t.duration=K(e.duration),t.type="keyframes",t};function Ne({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},m=g=>g<a||g>c,d=g=>a===void 0?c:c===void 0||Math.abs(a-g)<Math.abs(c-g)?a:c;let y=n*e;const p=h+y,b=o===void 0?p:o(p);b!==p&&(y=b-h);const P=g=>-y*Math.exp(-g/s),x=g=>{const v=P(g);f.done=Math.abs(v)<=l,f.value=f.done?b:b+v};let S,A;const C=g=>{m(f.value)&&(S=g,A=se({keyframes:[f.value,d(f.value)],velocity:-P(g)/s*1e3,damping:i,stiffness:r,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:g=>{let v=!1;return!A&&S===void 0&&(v=!0,x(g),C(g)),S!==void 0&&g>=S?A.next(g-S):(!v&&x(g),f)}}}function Dr(t,e,n){const s=[],i=n||tt.mix||yn,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||_:e;a=Ot(c,a)}s.push(a)}return s}function Er(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(fe(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Dr(e,s,i),c=a.length,l=u=>{if(o&&u<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const f=Dt(t[h],t[h+1],u);return a[h](f)};return n?u=>l(et(t[0],t[r-1],u)):l}function Rr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Dt(0,e,s);t.push(D(n,1,i))}}function Lr(t){const e=[0];return Rr(e,t.length-1),e}function kr(t,e){return t.map(n=>n*e)}function Ir(t,e){return t.map(()=>e||fn).splice(0,t.length-1)}function At({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=zo(s)?s.map(jn):jn(s)||fn,r={done:!1,value:e[0]};if(e.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){const[c,l]=e,u=c===l?void 0:(tt.mix||yn)(c,l);return{calculatedDuration:t,next:h=>(r.value=u?u(i(t>0?et(0,1,h/t):1)):l,r.done=h>=t,r)}}const o=kr(n&&n.length===e.length?n:Lr(e),t),a=Er(o,e,{ease:Array.isArray(i)?i:Ir(e,i)});return{calculatedDuration:t,next:c=>(r.value=a(c),r.done=c>=t,r)}}const Br=5;function Fr(t,e,n){const s=Math.max(e-Br,0);return ii(n-t(s),e-s)}function Or(t,e,n=0){return e<=0?n:t.velocity?t.velocity(e):Fr(s=>t.next(s).value,e,t.next(e).value)}const jr=t=>t!==null;function de(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(jr),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Nr={decay:Ne,inertia:Ne,tween:At,keyframes:At,spring:se};function Mi(t){typeof t.type=="string"&&(t.type=Nr[t.type])}function Di(t,e){return{kind:t,animation:e,timestamp:B.now(),frameTimestamp:L.timestamp,frameIsProcessing:L.isProcessing}}function Ei(t,e,n){const s=globalThis.__MOTION_INSPECT__;if(s)try{s({...Di("animation-start",t),options:n?{...e,...n}:e})}catch{}}function Ur(t,e){const n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Di("layout-animation-start",t),node:e})}catch{}}class Tn{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,n){return this.finished.then(e,n)}}const Wr=t=>t/100;class ie extends Tn{constructor(e){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:n}=this.options;n&&n.updatedAt!==B.now()&&this.tick(B.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Ei(this,this.options)}initAnimation(){const{options:e}=this;Mi(e);const{type:n=At,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const c=n||At;c!==At&&typeof a[0]!="number"&&(this.mixKeyframes=Ot(Wr,yn(a[0],a[1])),a=[0,100]);const l=c(a===e.keyframes?e:{...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=xn(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:m,type:d,onUpdate:y,finalKeyframe:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),P=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,S=s;if(h){const v=Math.min(this.currentTime,i)/a;let V=Math.floor(v),M=v%1;!M&&v>=1&&(M=1),M===1&&V--,V=Math.min(V,h+1),V%2&&(f==="reverse"?(M=1-M,m&&(M-=m/a)):f==="mirror"&&(S=o)),x=et(0,1,M)*a}let A;P?(this.delayState.value=u[0],A=this.delayState):A=S.next(x),r&&!P&&(A.value=r(A.value));let{done:C}=A;!P&&c!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const g=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return g&&d!==Ne&&(A.value=de(u,this.options,p,this.speed)),y&&y(A.value),g&&this.finish(),A}then(e,n){return this.finished.then(e,n)}get duration(){return $(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+$(e)}get time(){return $(this.currentTime)}set time(e){e=K(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return Or(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(B.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=$(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=br,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),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(B.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(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}const $r=new Set(["brightness","contrast","saturate","opacity"]);function Kr(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(mn)||[];if(!s)return t;const i=n.replace(s,"");let r=$r.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const zr=/\b([a-z-]*)\(.*?\)/gu,Ue={...U,getAnimatableNone:t=>{const e=t.match(zr);return e?e.map(Kr).join(" "):t}},We={...U,getAnimatableNone:t=>{const e=U.parse(t);return U.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Gn={...Tt,transform:Math.round},Gr={rotate:Q,pathRotation:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:Wt,scaleX:Wt,scaleY:Wt,scaleZ:Wt,skew:Q,skewX:Q,skewY:Q,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Et,originX:Un,originY:Un,originZ:w},oe={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w,...Gr,zIndex:Gn,fillOpacity:Et,strokeOpacity:Et,numOctaves:Gn},Hr={...oe,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:Ue,WebkitFilter:Ue,mask:We,WebkitMask:We},Ri=t=>Hr[t],_r=new Set([Ue,We]);function Sn(t,e){let n=Ri(t);return _r.has(n)||(n=U),n.getAnimatableNone?n.getAnimatableNone(e):void 0}function Xr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const lt=t=>t*180/Math.PI,$e=t=>{const e=lt(Math.atan2(t[1],t[0]));return Ke(e)},Yr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:$e,rotateZ:$e,skewX:t=>lt(Math.atan(t[1])),skewY:t=>lt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ke=t=>(t=t%360,t<0&&(t+=360),t),Hn=$e,_n=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Xn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Zr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_n,scaleY:Xn,scale:t=>(_n(t)+Xn(t))/2,rotateX:t=>Ke(lt(Math.atan2(t[6],t[5]))),rotateY:t=>Ke(lt(Math.atan2(-t[2],t[0]))),rotateZ:Hn,rotate:Hn,skewX:t=>lt(Math.atan(t[4])),skewY:t=>lt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Lt(t){return t.includes("scale")?1:0}function ze(t,e){if(!t||t==="none")return Lt(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Zr,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Yr,i=a}if(!i)return Lt(e);const r=s[e],o=i[1].split(",").map(Jr);return typeof r=="function"?r(o):o[r]}const qr=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return ze(n,e)};function Jr(t){return parseFloat(t.trim())}const St=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nt=new Set([...St,"pathRotation"]),Yn=t=>t===Tt||t===w,Qr=new Set(["x","y","z"]),ta=St.filter(t=>!Qr.has(t));function ea(t){const e=[];return ta.forEach(n=>{const s=t.getValue(n);if(s!==void 0){const i=s.get(),r=n.startsWith("scale")?1:0;if(i===r)return;e.push([n,i]),s.set(r)}}),e}const na=new Set(["bottom","right"]);function Zn(t,e,n,s,i,r){const o=parseFloat(t);if(!isNaN(o))return o;const{min:a,max:c}=e()[n],l=c-a;return r==="border-box"?l:l-parseFloat(s)-parseFloat(i)}const ut={width:({width:t,paddingLeft:e="0",paddingRight:n="0",boxSizing:s},i)=>Zn(t,i,"x",e,n,s),height:({height:t,paddingTop:e="0",paddingBottom:n="0",boxSizing:s},i)=>Zn(t,i,"y",e,n,s),top:({top:t})=>parseFloat(t),left:({left:t})=>parseFloat(t),bottom:({top:t},e)=>{const{y:n}=e();return parseFloat(t)+(n.max-n.min)},right:({left:t},e)=>{const{x:n}=e();return parseFloat(t)+(n.max-n.min)},x:({transform:t})=>ze(t,"x"),y:({transform:t})=>ze(t,"y")};ut.translateX=ut.x;ut.translateY=ut.y;const ct=new Set;let Ge=!1,He=!1,_e=!1;function Li(){if(He){const t=[],e=new Set,n=new Set;ct.forEach(i=>{i.needsMeasurement&&(t.push(i),e.add(i.element),na.has(i.name)&&n.add(i.element))});const s=new Map;n.forEach(i=>{const r=ea(i);r.length&&(s.set(i,r),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const r=s.get(i);r&&r.forEach(([o,a])=>{i.getValue(o)?.set(a)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}He=!1,Ge=!1,ct.forEach(t=>t.complete(_e)),ct.clear()}function ki(){ct.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(He=!0)})}function sa(){_e=!0,ki(),Li(),_e=!1}function ia(t,e,n){if(typeof t=="string"){if(ln(t)||un(t))return parseFloat(t);if(!U.test(t)&&U.test(n))return Sn(e,n)}return t??void 0}class Pn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ct.add(this),Ge||(Ge=!0,E.read(ki),E.resolveKeyframes(Li))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=ia(s.readValue(n,o),n,o);a!==void 0&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}Xr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ct.delete(this)}cancel(){this.state==="scheduled"&&(ct.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const oa=t=>t.startsWith("--");function Ii(t,e,n){oa(e)?t.style.setProperty(e,n):t.style[e]=n}const ra={};function Bi(t,e){const n=si(t);return()=>ra[e]??n()}const aa=Bi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Fi=Bi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,qn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bt([0,.65,.55,1]),circOut:bt([.55,0,1,.45]),backIn:bt([.31,.01,.66,-.59]),backOut:bt([.33,1.53,.69,.99])};function Oi(t,e){if(t)return typeof t=="function"?Fi()?bi(t,e):"ease-out":di(t)?bt(t):Array.isArray(t)?t.map(n=>Oi(n,e)||qn.easeOut):qn[t]}function la(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[e]:n};c&&(u.offset=c);const h=Oi(a,i);Array.isArray(h)&&(u.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),t.animate(u,f)}function ji(t){return typeof t=="function"&&"applyToOptions"in t}function ua({type:t,...e}){return ji(t)&&Fi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ni extends Tn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,fe(typeof e.type!="string");const l=ua(e);this.animation=la(n,s,i,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=de(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Ii(n,s,u),this.animation.cancel()}c?.(),this.notifyFinished()},Ei(this,e,l)}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:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return $(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+$(e)}get time(){return $(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=K(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:n,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&aa()?(this.animation.timeline=e,n?.(this.animation),_):s(this)}}const Ui={anticipate:ci,backInOut:ui,circInOut:fi};function ca(t){return t in Ui}function ha(t){typeof t.ease=="string"&&ca(t.ease)&&(t.ease=Ui[t.ease])}const be=10;class fa extends Ni{constructor(e){ha(e),Mi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new ie({...o,autoplay:!1}),c=Math.max(be,B.now()-this.startTime),l=et(0,be,c-be),u=a.sample(c).value,{name:h}=this.options;r&&h&&Ii(r,h,u),n.setWithVelocity(a.sample(Math.max(0,c-l)).value,u,l),a.stop()}}const Jn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(U.test(t)||t==="0")&&!t.startsWith("url("));function da(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ma(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Jn(i,e),a=Jn(r,e);return!o||!a?!1:da(t)||(n==="spring"||ji(n))&&s}function Xe(t){t.duration=0,t.type="keyframes"}const Ye=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),pa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ga(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&pa.test(t[e]))return!0;return!1}const Qn=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ya=si(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function va(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!n||!(Ye.has(n)||Qn.has(n)))return!1;const c=e?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return ya()&&(Ye.has(n)||Qn.has(n)&&ga(a))&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const xa=40;class Ta extends Tn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=B.now();const{keyframes:n,name:s,motionValue:i,element:r}=e,o=e;o.autoplay??(o.autoplay=!0),o.delay??(o.delay=0),o.type??(o.type="keyframes"),o.repeat??(o.repeat=0),o.repeatDelay??(o.repeatDelay=0),o.repeatType??(o.repeatType="loop");const a=r?.KeyframeResolver||Pn;this.keyframeResolver=new a(n,(c,l,u)=>this.onKeyframesResolved(c,l,o,!u),s,i,r),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:c,isHandoff:l,onUpdate:u}=s;this.resolvedAt=B.now();let h=!0;ma(e,r,o,a)||(h=!1,(tt.instantAnimations||!c)&&u?.(de(e,s,n)),e[0]=e[e.length-1],Xe(s),s.repeat=0);const f=i?this.resolvedAt?this.resolvedAt-this.createdAt>xa?this.resolvedAt:this.createdAt:this.createdAt:void 0,{onComplete:m}=s;s.startTime??(s.startTime=f),s.finalKeyframe=n,s.keyframes=e,s.onComplete=()=>{m?.(),this.notifyFinished()};const d=h&&!l&&va(s);let y;if(d){s.element=s.motionValue?.owner?.current;try{y=new fa(s)}catch{y=new ie(s)}}else y=new ie(s);this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this._animation.finished:super.finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),sa()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Wi(t,e,n,s=0,i=1){const r=Array.from(t).sort((l,u)=>l.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const ts=30,Sa=t=>!isNaN(parseFloat(t));class Pa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=B.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=B.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Sa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){var s;return e==="change"?this.onChangeSubscribe(n):((s=this.events)[e]||(s[e]=new ee)).add(n)}onChangeSubscribe(e){const{events:n}=this;return!n.change&&!this.changeSubscriber?this.changeSubscriber=e:(n.change||(n.change=new ee,n.change.add(this.changeSubscriber),this.changeSubscriber=void 0),n.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:n.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){E.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){const{current:e,changeSubscriber:n}=this;n?n(e):this.events.change?.notify(e)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=B.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ts)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ts);return ii(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0;let s=!1,i;i=e(()=>{s=!0,this.events.animationComplete?.notify(),this.animation===i&&this.clearAnimation(),n()}),s||(this.animation=i),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xt(t,e){return new Pa(t,e)}function wn(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function bn(t,e){const n=t?.[e]??t?.default??t;return n!==t?wn(n,t):n}const wa={type:"spring",stiffness:500,damping:25,restSpeed:10},ba=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Aa={type:"keyframes",duration:.8},Ca={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Va=(t,{keyframes:e})=>e.length>2?Aa:nt.has(t)?t.startsWith("scale")?ba(e[1]):wa:Ca,Ma=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Da(t){for(const e in t)if(!Ma.has(e))return!0;return!1}const An=(t,e,n,s={},i,r)=>o=>{const a=bn(s,t)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-K(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Da(a)||Object.assign(u,Va(t,u)),u.duration&&(u.duration=K(u.duration)),u.repeatDelay&&(u.repeatDelay=K(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Xe(u),u.delay===0&&(h=!0)),(tt.instantAnimations||tt.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,Xe(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=de(u.keyframes,a);if(f!==void 0){E.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new ie(u):new Ta(u)},Ea=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ra(t){const e=Ea.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function $i(t,e,n=1){const[s,i]=Ra(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ln(o)?parseFloat(o):o}return dn(i)?$i(i,e,n+1):i}function La(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Ki(t,e,n,s){const i=r=>typeof r=="function"?r(n!==void 0?n:t.custom,...La(s)):r;return e=i(e),typeof e=="string"&&(e=t.variants&&t.variants[e]),i(e)}function ht(t,e,n){return Ki(t.getProps(),e,n,t)}const zi=(t,e)=>e==="exit"?t.presenceContext?.custom:void 0,Gi=new Set(["width","height","top","left","right","bottom",...St]),ka=t=>Array.isArray(t);function Ia(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,xt(n))}function Ba(t){return ka(t)?t[t.length-1]||0:t}function Fa(t,e){const n=ht(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Ba(r[o]);Ia(t,o,a)}}const F=t=>!!(t&&t.getVelocity);function Oa(t){return!!(F(t)&&t.add)}function Ze(t,e){const n=t.getValue("willChange");if(Oa(n))return n.add(e);if(!n&&tt.WillChange){const s=new tt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Cn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const ja="framerAppearId",Hi="data-"+Cn(ja);function _i(t){return t.props[Hi]}const Na=typeof window<"u";function Ua({protectedKeys:t,needsAnimating:e},n){const s=n in t&&!e[n];return e[n]=!1,s}function Xi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const c=t.getDefaultTransition();r=r?wn(r,c):c;const l=r?.reduceMotion,u=r?.skipAnimations;s&&(r=s);const h=[],f=i&&t.animationState?.getState()[i],m=r?.path;m&&m.animateVisualElement(t,a,r,n,h);for(const d in a){const y=t.getValue(d,t.latestValues[d]??null),p=a[d];if(p===void 0||f&&Ua(f,d))continue;const b={delay:n,...bn(r||{},d)};u&&(b.skipAnimations=!0);const P=y.get();if(P!==void 0&&!y.isAnimating()&&!Array.isArray(p)&&p===P&&!b.velocity){E.update(()=>y.set(p));continue}let x=!1;if(Na&&window.MotionHandoffAnimation){const C=_i(t);if(C){const g=window.MotionHandoffAnimation(C,d,E);g!==null&&(b.startTime=g,x=!0)}}Ze(t,d);const S=l??t.shouldReduceMotion;y.start(An(d,y,p,S&&Gi.has(d)?{type:!1}:b,t,x));const A=y.animation;A&&h.push(A)}if(o){const d=()=>E.update(()=>{o&&Fa(t,o)});h.length?Promise.all(h).then(d):d()}return h}function qe(t,e,n={}){const s=ht(t,e,zi(t,n.type)),i=n.transitionOverride||(s?.transition??(t.getDefaultTransition()||{})),r=()=>Promise.all(s?Xi(t,s,n):[]),o=(c=0)=>{const{variantChildren:l}=t,{delayChildren:u=0,staggerChildren:h,staggerDirection:f}=i,m=[];return l?.forEach(d=>{d.notify("AnimationStart",e),m.push(qe(d,e,{...n,delay:c+(typeof u=="function"?0:u)+Wi(l,d,u,h,f)}).then(()=>d.notify("AnimationComplete",e)))}),Promise.all(m)},{when:a}=i;return a?a==="beforeChildren"?r().then(()=>o()):o().then(r):Promise.all([r(),o(n.delay)])}function Wa(t,e,n={}){return t.notify("AnimationStart",e),(Array.isArray(e)?Promise.all(e.map(i=>qe(t,i,n))):typeof e=="string"?qe(t,e,n):Promise.all(Xi(t,ht(t,e,n.custom),n))).then(()=>{t.notify("AnimationComplete",e)})}const $a={test:t=>t==="auto",parse:t=>t},Ka=t=>e=>e.test(t),za=[Tt,w,J,Q,er,tr,$a],es=t=>za.find(Ka(t));function Ga(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||un(t):!0}const Ha=new Set(["auto","none","0"]);function _a(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Ha.has(r)&&ar(r)&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]!==i&&(t[r]=Sn(n,i))}class Xa extends Pn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),dn(h))){const f=$i(h,n.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Gi.has(s)||e.length!==2)return;const[i,r]=e;if(typeof i=="number"&&typeof r=="number")return;const o=es(i),a=es(r),c=Nn(i),l=Nn(r);if(c!==l&&ut[s]){this.needsMeasurement=!0;return}if(o!==a)if(Yn(o)&&Yn(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else ut[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ga(e[i]))&&s.push(i);s.length&&_a(e,s,n)}measure(){const{element:e,name:n}=this;return ut[n](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&this.motionValue?.jump(i,!1)}measureEndState(){const{element:e,unresolvedKeyframes:n}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);const s=n.length-1,i=n[s];n[s]=this.measure(),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([r,o])=>{e.getValue(r).set(o)}),this.resolveNoneKeyframes()}}const Vn=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Ht(t){return ni(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}function Mn(t){return ni(t)&&"ownerSVGElement"in t}const Je=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Yi(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Ya={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Za=St.length;function qa(t,e,n){let s="",i=!0;for(let o=0;o<Za;o++){const a=St[o],c=t[a];if(c===void 0)continue;let l=!0;if(typeof c=="number")l=c===(a.startsWith("scale")?1:0);else{const u=parseFloat(c);l=a.startsWith("scale")?u===1:u===0}if(!l||n){const u=Je(c,oe[a]);if(!l){i=!1;const h=Ya[a]||a;s+=`${h}(${u}) `}n&&(e[a]=u)}}const r=t.pathRotation;return r&&(i=!1,s+=`rotate(${Je(r,oe.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Dn(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const c in e){const l=e[c];if(nt.has(c)){o=!0;continue}else if(pi(c)){i[c]=l;continue}else{const u=Je(l,oe[c]);c.startsWith("origin")?(a=!0,r[c]=u):s[c]=u}}if(e.transform||(o||n?s.transform=qa(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=r;s.transformOrigin=`${c} ${l} ${u}`}}const Ja={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qa={offset:"strokeDashoffset",array:"strokeDasharray"};function tl(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Ja:Qa;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const Zi=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function qi(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},c,l,u){if(Dn(t,a,l),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;for(const m of Zi)h[m]!==void 0&&(f[m]=h[m],delete h[m]);(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&tl(h,i,r,o,!1)}function Ji({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function el({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function nl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Ae(t){return t===void 0||t===1}function Qe({scale:t,scaleX:e,scaleY:n}){return!Ae(t)||!Ae(e)||!Ae(n)}function rt(t){return Qe(t)||Qi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Qi(t){return ns(t.x)||ns(t.y)}function ns(t){return t&&t!=="0%"}function re(t,e,n){const s=t-n,i=e*s;return n+i}function ss(t,e,n,s,i){return i!==void 0&&(t=re(t,i,s)),re(t,n,s)+e}function tn(t,e=0,n=1,s,i){t.min=ss(t.min,e,n,s,i),t.max=ss(t.max,e,n,s,i)}function to(t,{x:e,y:n}){tn(t.x,e.translate,e.scale,e.originPoint),tn(t.y,n.translate,n.scale,n.originPoint)}const is=.999999999999,os=1.0000000000001;function sl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(Z(t.x,-r.scroll.offset.x),Z(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,to(t,o)),s&&rt(r.latestValues)&&_t(t,r.latestValues,r.layout?.layoutBox))}e.x<os&&e.x>is&&(e.x=1),e.y<os&&e.y>is&&(e.y=1)}function Z(t,e){t.min+=e,t.max+=e}function rs(t,e,n,s,i=.5){const r=D(t.min,t.max,i);tn(t,e,n,r,s)}function as(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function _t(t,e,n){const s=n??t;rs(t.x,as(e.x,s.x),e.scaleX,e.scale,e.originX),rs(t.y,as(e.y,s.y),e.scaleY,e.scale,e.originY)}function eo(t,e){return Ji(nl(t.getBoundingClientRect(),e))}function il(t,e,n){const s=eo(t,n),{scroll:i}=e;return i&&(Z(s.x,i.offset.x),Z(s.y,i.offset.y)),s}const{schedule:En}=wi(queueMicrotask,!1),H={x:!1,y:!1};function no(){return H.x||H.y}function ol(t){return t==="x"||t==="y"?H[t]?null:(H[t]=!0,()=>{H[t]=!1}):H.x||H.y?null:(H.x=H.y=!0,()=>{H.x=H.y=!1})}function so(t,e){const n=Yi(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function rl(t){return!(t.pointerType==="touch"||no())}function al(t,e,n={}){const[s,i,r]=so(t,n);return s.forEach(o=>{let a=!1,c=!1,l;const u=()=>{o.removeEventListener("pointerleave",d)},h=p=>{l&&(l(p),l=void 0),u()},f=p=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(p))},m=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},d=p=>{if(p.pointerType!=="touch"){if(a){c=!0;return}h(p)}},y=p=>{if(!rl(p))return;c=!1;const b=e(o,p);typeof b=="function"&&(l=b,o.addEventListener("pointerleave",d,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",m,i)}),r}const io=(t,e)=>e?t===e?!0:io(t,e.parentElement):!1,Rn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ll=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ul(t){return ll.has(t.tagName)||t.isContentEditable===!0}const cl=new Set(["INPUT","SELECT","TEXTAREA"]);function hl(t){return cl.has(t.tagName)||t.isContentEditable===!0}const Xt=new WeakSet;function ls(t){return e=>{e.key==="Enter"&&t(e)}}function Ce(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const fl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=ls(()=>{if(Xt.has(n))return;Ce(n,"down");const i=ls(()=>{Ce(n,"up")}),r=()=>Ce(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function us(t){return Rn(t)&&!no()}const cs=new WeakSet;function dl(t,e,n={}){const[s,i,r]=so(t,n),o=a=>{const c=a.currentTarget;if(!us(a)||cs.has(a))return;Xt.add(c),n.stopPropagation&&cs.add(a);const l=e(c,a),u={...i,capture:!0},h=(d,y)=>{window.removeEventListener("pointerup",f,u),window.removeEventListener("pointercancel",m,u),Xt.has(c)&&Xt.delete(c),us(d)&&typeof l=="function"&&l(d,{success:y})},f=d=>{h(d,c===window||c===document||n.useGlobalTarget||io(c,d.target))},m=d=>{h(d,!1)};window.addEventListener("pointerup",f,u),window.addEventListener("pointercancel",m,u)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Ht(a)&&(a.addEventListener("focus",l=>fl(l,i)),!ul(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}const Yt=new WeakMap;let Zt;const oo=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:Mn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],ml=oo("inline","width","offsetWidth"),pl=oo("block","height","offsetHeight");function gl({target:t,borderBoxSize:e}){Yt.get(t)?.forEach(n=>{n(t,{get width(){return ml(t,e)},get height(){return pl(t,e)}})})}function yl(t){t.forEach(gl)}function vl(){typeof ResizeObserver>"u"||(Zt=new ResizeObserver(yl))}function xl(t,e){Zt||vl();const n=Yi(t);return n.forEach(s=>{let i=Yt.get(s);i||(i=new Set,Yt.set(s,i)),i.add(e),Zt?.observe(s)}),()=>{n.forEach(s=>{const i=Yt.get(s);i?.delete(e),i?.size||Zt?.unobserve(s)})}}const qt=new Set;let gt;function Tl(){gt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};qt.forEach(e=>e(t))},window.addEventListener("resize",gt)}function Sl(t){return qt.add(t),gt||Tl(),()=>{qt.delete(t),!qt.size&&typeof gt=="function"&&(window.removeEventListener("resize",gt),gt=void 0)}}function hs(t,e){return typeof t=="function"?Sl(t):xl(t,e)}function Pl(t){return Mn(t)&&t.tagName==="svg"}const fs=t=>typeof t=="number"?t:parseFloat(t),ds=()=>({translate:0,scale:1,origin:0,originPoint:0}),yt=()=>({x:ds(),y:ds()}),ms=()=>({min:0,max:0}),R=()=>({x:ms(),y:ms()}),wl=new WeakMap;function me(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function kt(t){return typeof t=="string"||Array.isArray(t)}const Ln=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ps=["initial",...Ln];function pe(t){if(me(t.animate))return!0;for(let e=0;e<ps.length;e++)if(kt(t[ps[e]]))return!0;return!1}function ro(t){return!!(pe(t)||t.variants)}function bl(t,e,n){for(const s in e){const i=e[s],r=n[s];if(F(i))t.addValue(s,i);else if(F(r))t.addValue(s,xt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,xt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const en={current:null},ao={current:!1},Al=typeof window<"u";function Cl(){if(ao.current=!0,!!Al)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>en.current=t.matches;t.addEventListener("change",e),e()}else en.current=!1}const gs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ae={};function lo(t){ae=t}function Vl(){return ae}class Ml{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},c={}){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=Pn,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 m=B.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,E.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=pe(n),this.isVariantNode=ro(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in f){const d=f[m];l[m]!==void 0&&F(d)&&d.set(l[m])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];if(this.current=e,wl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let n=this;do n=n.props.inherit!==!1&&n.parent;while(n&&!n.isVariantNode);if(n){const{variantChildren:s}=n;s.add(this),this.removeFromVariantTree=()=>s.delete(this)}}this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ao.current||Cl(),this.shouldReduceMotion=en.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(),st(this.notifyUpdate),st(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Ye.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:c,ease:l,duration:u}=n.accelerate,h=new Ni({element:this.current,name:e,keyframes:a,times:c,ease:l,duration:K(u)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=nt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&E.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ae){const n=ae[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<gs.length;s++){const i=gs[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=bl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,n){const s=this.values.get(e);if(n!==s){s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n);const i=n.get();i!==void 0&&(this.latestValues[e]=i)}}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=xt(n??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(ln(s)||un(s))?s=parseFloat(s):typeof s!="number"&&!U.test(s)&&U.test(n)&&(s=Sn(e,n)),this.setBaseTarget(e,F(s)?s.get():s)),F(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}on(e,n){return this.events[e]||(this.events[e]=new ee),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){En.render(this.render)}}class uo extends Ml{constructor(){super(...arguments),this.KeyframeResolver=Xa}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class it{constructor(e){this.isMounted=!1,this.node=e}update(){}}function co(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}const It={};function ho(t,{layout:e,layoutId:n}){return nt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!It[t]||t==="opacity")}function kn(t,e,n){const s=t.style,i=e?.style,r={};if(!s)return r;for(const o in s)(F(s[o])||i&&F(i[o])||ho(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function Dl(t){return window.getComputedStyle(t)}class El extends uo{constructor(){super(...arguments),this.type="html",this.renderInstance=co}mount(e){fe(!!e.style),super.mount(e)}readValueFromInstance(e,n){if(nt.has(n))return this.projection?.isProjecting?Lt(n):qr(e,n);{const s=Dl(e),i=(pi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return eo(e,n)}build(e,n,s){Dn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return kn(e,n,s)}}const fo=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"]),mo=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Rl(t,e,n,s){co(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(fo.has(i)?i:Cn(i),e.attrs[i])}function po(t,e,n){const s=kn(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const r=St.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Ll extends uo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=R}getBaseTargetFromProps(e,n){return nt.has(n)?super.getBaseTargetFromProps(e,n)??Lt(n):e[n]}getDefaultValue(e){return nt.has(e)?this.latestValues[e]??Lt(e):void 0}readValueFromInstance(e,n){if(nt.has(n)){const s=Ri(n);return s&&s.default||0}if(Zi.includes(n)){const i=getComputedStyle(e)[n];if(typeof i=="string"&&i)return i.trim()}return n=fo.has(n)?n:Cn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return po(e,n,s)}build(e,n,s){qi(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Rl(e,n,s,i)}mount(e){this.isSVGTag=mo(e.tagName),super.mount(e)}}function go(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const kl=[...Ln].reverse();function Il(t){let e=a=>Promise.all(a.map(({animation:c,options:l})=>Wa(t,c,l))),n=ys(),s=!0,i=!1;function r(a){const{props:c,parent:l,manuallyAnimateOnMount:u}=t,h=s||i,f=[],m=new Set;let d={},y=1/0,p=t;do p=p.props.inherit!==!1&&p.parent;while(p&&!p.isControllingVariants);if(kl.forEach((P,x)=>{const S=n[P],A=c[P],C=p&&p.props[P],g=A!==void 0?A:kt(C)||C===!1?C:void 0,v=kt(g),V=P===a?S.isActive:null;V===!1&&(y=x);const M=v&&A===void 0&&!(h&&u);if(S.protectedKeys={...d},!S.isActive&&V===null||!g&&!S.prevProp||me(g)||typeof g=="boolean")return;if(P==="exit"&&S.isActive&&V!==!0){d={...d,...S.prevResolvedValues};return}const W=Bl(S.prevProp,g);let z=W||v&&(V&&!M||x>y),N=!1;const ft=Array.isArray(g)?g:[g];let dt={};if(V!==!1)for(const O of ft){const{transition:X,transitionEnd:ot,...Ut}=ht(t,O,zi(t,P))||{};dt={...dt,...Ut,...ot}}const{prevResolvedValues:Fn}=S;for(const O in{...Fn,...dt}){if(O in d)continue;const X=dt[O],ot=Fn[O],Ut=Array.isArray(X)&&Array.isArray(ot)?!go(X,ot)||W:X!==ot;if(Ut&&X==null)m.add(O);else if(Ut||X!==void 0&&m.has(O)){z=!0,m.delete(O)&&(N=!0),S.needsAnimating[O]=!0;const On=t.getValue(O);On&&(On.liveStyle=!1)}else S.protectedKeys[O]=!0}if(S.prevProp=g,S.prevResolvedValues=dt,S.isActive&&(d={...d,...dt}),z&&(!(M&&W)||N))for(const O of ft){const X={type:P};if(typeof O=="string"&&h&&u&&l?.enteringChildren){const ot=ht(l,O)?.transition?.delayChildren;X.delay=Wi(l.enteringChildren,t,ot)}f.push({animation:O,options:X})}}),m.size){const{initial:P}=c,x={},S=typeof P!="boolean"&&ht(t,Array.isArray(P)?P[0]:P,t.presenceContext?.custom);S&&S.transition&&(x.transition=S.transition),m.forEach(A=>{const C=t.getValue(A);C&&(C.liveStyle=!0);const g=S&&!Array.isArray(P)?S[A]:void 0,v=t.getBaseTargetFromProps(c,A);x[A]=(g!==void 0?g:v!==void 0&&!F(v)?v:t.initialValues[A]===void 0?t.baseTarget[A]:void 0)??null}),f.push({animation:x})}const b=h&&t.blockInitialAnimation||s&&!u&&(c.initial===!1||c.initial===c.animate);return s=i=!1,!b&&f.length?e(f):Promise.resolve()}function o(a,c){if(n[a].isActive===c)return Promise.resolve();t.variantChildren?.forEach(u=>u.animationState?.setActive(a,c)),n[a].isActive=c;const l=r(a);for(const u in n)n[u].protectedKeys={};return l}return{animateChanges:r,setActive:o,setAnimateFunction:a=>{e=a(t)},getState:()=>n,reset:()=>{n=ys(),i=!0}}}function Bl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!go(e,t):!1}function ys(){const t={};for(const e of Ln)t[e]={isActive:e==="animate",protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return t}function nn(t,e){t.min=e.min,t.max=e.max}function G(t,e){nn(t.x,e.x),nn(t.y,e.y)}function vs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const yo=1e-4,Fl=1-yo,Ol=1+yo,vo=.01,jl=0-vo,Nl=0+vo;function j(t){return t.max-t.min}function Ul(t,e,n){return Math.abs(t-e)<=n}function xs(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=j(n)/j(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Fl&&t.scale<=Ol||isNaN(t.scale))&&(t.scale=1),(t.translate>=jl&&t.translate<=Nl||isNaN(t.translate))&&(t.translate=0)}function Ct(t,e,n,s){xs(t.x,e.x,n.x,s?s.originX:void 0),xs(t.y,e.y,n.y,s?s.originY:void 0)}function Ts(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+j(e)}function Wl(t,e,n,s){Ts(t.x,e.x,n.x,s?.x),Ts(t.y,e.y,n.y,s?.y)}function Ss(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+j(e)}function le(t,e,n,s){Ss(t.x,e.x,n.x,s?.x),Ss(t.y,e.y,n.y,s?.y)}function Ps(t,e,n,s,i){return t-=e,t=re(t,1/n,s),i!==void 0&&(t=re(t,1/i,s)),t}function $l(t,e=0,n=1,s=.5,i,r=t,o=t){if(J.test(e)&&(e=parseFloat(e),e=D(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=D(r.min,r.max,s);t===r&&(a-=e),t.min=Ps(t.min,e,n,a,i),t.max=Ps(t.max,e,n,a,i)}function ws(t,e,[n,s,i],r,o){$l(t,e[n],e[s],e[i],e.scale,r,o)}const Kl=["x","scaleX","originX"],zl=["y","scaleY","originY"];function bs(t,e,n,s){ws(t.x,e,Kl,n?n.x:void 0,s?s.x:void 0),ws(t.y,e,zl,n?n.y:void 0,s?s.y:void 0)}function As(t){return t.translate===0&&t.scale===1}function xo(t){return As(t.x)&&As(t.y)}function Cs(t,e){return t.min===e.min&&t.max===e.max}function Gl(t,e){return Cs(t.x,e.x)&&Cs(t.y,e.y)}function Vs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function To(t,e){return Vs(t.x,e.x)&&Vs(t.y,e.y)}function Ms(t){return j(t.x)/j(t.y)}function Ds(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Y(t){return[t("x"),t("y")]}function Es(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Pt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=Es(t,e.target.x),s=Es(t,e.target.y);return`${n}% ${s}%`}},Hl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=U.parse(t);if(i.length>5)return s;const r=U.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=c;const l=D(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),r(i)}};function _l(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:u,pathRotation:h,rotateX:f,rotateY:m,skewX:d,skewY:y}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),m&&(s+=`rotateY(${m}deg) `),d&&(s+=`skewX(${d}deg) `),y&&(s+=`skewY(${y}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const Xl=Vn.length,Rs=t=>typeof t=="number"||w.test(t);function Yl(t,e,n,s,i,r){i?(t.opacity=D(0,n.opacity??1,Zl(s)),t.opacityExit=D(e.opacity??1,0,ql(s))):r&&(t.opacity=D(e.opacity??1,n.opacity??1,s));for(let o=0;o<Xl;o++){const a=Vn[o];let c=Ls(e,a),l=Ls(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Rs(c)===Rs(l)?(t[a]=Math.max(D(fs(c),fs(l),s),0),(J.test(l)||J.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}function Ls(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Zl=So(0,.5,hi),ql=So(.5,.95,_);function So(t,e,n){return s=>s<t?0:s>e?1:n(Dt(t,e,s))}function Jl(t,e,n){const s=F(t)?t:xt(t);return s.start(An("",s,e,n)),s.animation}function Bt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}const Ql=(t,e)=>t.depth-e.depth;class tu{constructor(){this.children=[],this.isDirty=!1}add(e){an(this.children,e),this.isDirty=!0}remove(e){te(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ql),this.isDirty=!1,this.children.forEach(e)}}function eu(t,e){const n=B.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(st(s),t(r-e))};return E.setup(s,!0),()=>st(s)}function Jt(t){return F(t)?t.get():t}class nu{constructor(){this.members=[]}add(e){an(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(te(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(te(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:r}=e.options;(i===void 0||i!==r)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const su={borderRadius:{...Pt,applyTo:[...Vn]},borderTopLeftRadius:Pt,borderTopRightRadius:Pt,borderBottomLeftRadius:Pt,borderBottomRightRadius:Pt,boxShadow:Hl},Qt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(It,{...su,...It});const Ve=["","X","Y","Z"],iu=1e3;let ou=0;function Me(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Po(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=_i(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",E,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Po(s)}function wo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=ou++,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.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(lu),this.nodes.forEach(pu),this.nodes.forEach(gu),this.nodes.forEach(uu)},this.resolvedRelativeTargetAt=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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new tu)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ee),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Mn(o)&&!Pl(o),this.instance=o;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;E.read(()=>{h=window.innerWidth}),t(o,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,u&&u(),u=eu(f,250),Qt.hasAnimatedSinceResize&&(Qt.hasAnimatedSinceResize=!1,this.nodes.forEach(Bs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const d=this.options.transition||l.getDefaultTransition()||Su,{onLayoutAnimationStart:y,onLayoutAnimationComplete:p}=l.getProps(),b=!this.targetLayout||!To(this.targetLayout,m),P=!h&&f;if(this.options.layoutRoot||this.resumeFrom||P||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...bn(d,"layout"),onPlay:y,onComplete:p};(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,P,x.path)}else h||Bs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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(),st(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(yu),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&&Po(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(hu),this.nodes.forEach(ks);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Is);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fu),this.nodes.forEach(du),this.nodes.forEach(mu),this.nodes.forEach(ru),this.nodes.forEach(au)):this.nodes.forEach(Is),this.clearAllSnapshots();const a=B.now();L.delta=et(0,1e3/60,a-L.timestamp),L.timestamp=a,L.isProcessing=!0,Se.update.process(L),Se.preRender.process(L),Se.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,En.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cu),this.sharedNodes.forEach(vu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!j(this.snapshot.measuredBox.x)&&!j(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=R()),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 c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!xo(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;o&&this.instance&&(a||rt(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),Pu(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return R();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(wu))){const{scroll:l}=this.root;l&&(Z(a.x,l.offset.x),Z(a.y,l.offset.y))}return a}removeElementScroll(o){const a=R();if(G(a,o),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:u,options:h}=l;l!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&G(a,o),Z(a.x,u.offset.x),Z(a.y,u.offset.y))}return a}applyTransform(o,a=!1,c){const l=c||R();G(l,o);for(let u=0;u<this.path.length;u++){const h=this.path[u];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(Z(l.x,-h.scroll.offset.x),Z(l.y,-h.scroll.offset.y)),rt(h.latestValues)&&_t(l,h.latestValues,h.layout?.layoutBox)}return rt(this.latestValues)&&_t(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(o){const a=R();G(a,o);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!rt(l.latestValues))continue;let u;l.instance&&(Qe(l.latestValues)&&l.updateSnapshot(),u=R(),G(u,l.measurePageBox())),bs(a,l.latestValues,l.snapshot?.layoutBox,u)}return rt(this.latestValues)&&bs(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!==L.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 c=!!this.resumingFrom||this!==a;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=L.timestamp;const f=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=R(),this.targetWithTransforms=R()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Wl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):G(this.target,this.layout.layoutBox),to(this.target,this.targetDelta)):G(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Qe(this.parent.latestValues)||Qi(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,c){this.relativeParent=o,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),le(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),G(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===L.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;G(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;sl(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=R());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vs(this.prevProjectionDelta.x,this.projectionDelta.x),vs(this.prevProjectionDelta.y,this.projectionDelta.y)),Ct(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ds(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ds(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}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=yt(),this.projectionDelta=yt(),this.projectionDeltaWithTransform=yt()}setAnimationOrigin(o,a=!1,c){const l=this.snapshot,u=l?l.latestValues:{},h={...this.latestValues},f=yt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=R(),d=l?l.source:void 0,y=this.layout?this.layout.source:void 0,p=d!==y,b=this.getStack(),P=!b||b.members.length<=1,x=!!(p&&!P&&this.options.crossfade===!0&&!this.path.some(Tu));this.animationProgress=0;let S;const A=c?.interpolateProjection(o);this.mixTargetDelta=C=>{const g=C/1e3,v=A?.(g);v?(f.x.translate=v.x,f.x.scale=D(o.x.scale,1,g),f.x.origin=o.x.origin,f.x.originPoint=o.x.originPoint,f.y.translate=v.y,f.y.scale=D(o.y.scale,1,g),f.y.origin=o.y.origin,f.y.originPoint=o.y.originPoint):(Fs(f.x,o.x,g),Fs(f.y,o.y,g)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(le(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),xu(this.relativeTarget,this.relativeTargetOrigin,m,g),S&&Gl(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=R()),G(S,this.relativeTarget)),p&&(this.animationValues=h,Yl(h,u,this.latestValues,g,x,P)),v&&v.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=v.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=g},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(st(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{Qt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Jl(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()}}),Ur(this.currentAnimation,this),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(iu),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead(),{targetWithTransforms:a,layout:c,latestValues:l}=o;let{target:u}=o;if(!(!a||!u||!c)){if(this!==o&&this.layout&&c&&bo(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||R();const h=j(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+h;const f=j(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+f}G(a,u),_t(a,l),Ct(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new nu),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.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:c}={}){const l=this.getStack();l&&l.promote(this,c),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:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Me("z",o,l,this.animationValues);for(let u=0;u<Ve.length;u++)Me(`rotate${Ve[u]}`,o,l,this.animationValues),Me(`skew${Ve[u]}`,o,l,this.animationValues);o.render();for(const u in l)o.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Jt(a?.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Jt(a?.pointerEvents)||""),this.hasProjected&&!rt(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let h=_l(this.projectionDeltaWithTransform,this.treeScale,u);c&&(h=c(u,h)),o.transform=h;const{x:f,y:m}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,l.animationValues?o.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const d in It){if(u[d]===void 0)continue;const{correct:y,applyTo:p,isCSSVariable:b}=It[d],P=h==="none"?u[d]:y(u[d],l);if(p){const x=p.length;for(let S=0;S<x;S++)o[p[S]]=P}else b?this.options.visualElement.renderState.vars[d]=P:o[d]=P}this.options.layoutId&&(o.pointerEvents=l===this?Jt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(ks),this.root.sharedNodes.clear()}}}function ru(t){t.updateLayout()}function au(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,r=e.source!==t.layout.source;if(i==="size")Y(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],f=j(h);h.min=n[u].min,h.max=h.min+f});else if(i==="x"||i==="y"){const u=i==="x"?"y":"x";nn(r?e.measuredBox[u]:e.layoutBox[u],n[u])}else bo(i,e.layoutBox,n)&&Y(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],f=j(n[u]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const o=yt();Ct(o,n,e.layoutBox);const a=yt();r?Ct(a,t.applyTransform(s,!0),e.measuredBox):Ct(a,n,e.layoutBox);const c=!xo(o);let l=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const m=t.options.layoutAnchor||void 0,d=R();le(d,e.layoutBox,h.layoutBox,m);const y=R();le(y,n,f.layoutBox,m),To(d,y)||(l=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=d,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function lu(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function uu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function cu(t){t.clearSnapshot()}function ks(t){t.clearMeasurements()}function hu(t){t.isLayoutDirty=!0,t.updateLayout()}function Is(t){t.isLayoutDirty=!1}function fu(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function du(t){t.relativeTarget&&t.relativeParent?.isLayoutDirty&&(t.currentAnimation?t.isLayoutDirty=!0:(t.targetDelta=void 0,t.removeRelativeTarget()))}function mu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Bs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function pu(t){t.resolveTargetDelta()}function gu(t){t.calcProjection()}function yu(t){t.resetSkewAndRotation()}function vu(t){t.removeLeadSnapshot()}function Fs(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Os(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function xu(t,e,n,s){Os(t.x,e.x,n.x,s),Os(t.y,e.y,n.y,s)}function Tu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Su={duration:.45,ease:[.4,0,.1,1]},js=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ns=js("applewebkit/")&&!js("chrome/")?Math.round:_;function Us(t){t.min=Ns(t.min),t.max=Ns(t.max)}function Pu(t){Us(t.x),Us(t.y)}function bo(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ul(Ms(e),Ms(n),.2)}function wu(t){return t!==t.root&&t.scroll?.wasRoot}const bu=wo({attachResizeListener:(t,e)=>Bt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),De={current:void 0},Ao=wo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!De.current){const t=new bu({});t.mount(window),t.setOptions({layoutScroll:!0}),De.current=t}return De.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Ft=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Ws(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Au(...t){return e=>{let n=!1;const s=t.map(i=>{const r=Ws(i,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():Ws(t[i],null)}}}}function Cu(...t){return T.useCallback(Au(...t),t)}class Vu extends T.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(Ht(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=Ht(s)&&s.offsetWidth||0,r=Ht(s)&&s.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function Mu({children:t,isPresent:e,anchorX:n,anchorY:s,root:i,pop:r}){const o=T.useId(),a=T.useRef(null),c=T.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:l}=T.useContext(Ft),u=r!==!1?t.props?.ref??t?.ref:void 0,h=Cu(a,u);return T.useInsertionEffect(()=>{const{width:f,height:m,top:d,left:y,right:p,bottom:b,direction:P}=c.current;if(e||r===!1||!a.current||!f||!m)return;const x=P==="rtl",S=n==="left"?x?`right: ${p}`:`left: ${y}`:x?`left: ${y}`:`right: ${p}`,A=s==="bottom"?`bottom: ${b}`:`top: ${d}`;a.current.dataset.motionPopId=o;const C=document.createElement("style");l&&(C.nonce=l);const g=i??document.head;return g.appendChild(C),C.sheet&&C.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${o}"] {
|
|
3
|
-
position: absolute !important;
|
|
4
|
-
width: ${f}px !important;
|
|
5
|
-
height: ${m}px !important;
|
|
6
|
-
${S}px !important;
|
|
7
|
-
${A}px !important;
|
|
8
|
-
}
|
|
9
|
-
`),()=>{a.current?.removeAttribute("data-motion-pop-id"),g.contains(C)&&g.removeChild(C)}},[e]),q.jsx(Vu,{isPresent:e,childRef:a,sizeRef:c,pop:r,children:r===!1?t:T.cloneElement(t,{ref:h})})}const Du=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o,anchorX:a,anchorY:c,root:l})=>{const u=ce(Eu),h=T.useId(),f=T.useRef(n),m=T.useRef(s);Mt(()=>{f.current=n,m.current=s});let d=!0,y=T.useMemo(()=>(d=!1,{id:h,initial:e,isPresent:n,custom:i,onExitComplete:p=>{u.set(p,!0);for(const b of u.values())if(!b)return;s&&s()},register:p=>(u.set(p,!1),()=>{u.delete(p),!f.current&&!u.size&&m.current?.()})}),[n,u,s]);return r&&d&&(y={...y}),T.useMemo(()=>{u.forEach((p,b)=>u.set(b,!1))},[n]),T.useEffect(()=>{!n&&!u.size&&s&&s()},[n]),t=q.jsx(Mu,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:c,root:l,children:t}),q.jsx(he.Provider,{value:y,children:t})};function Eu(){return new Map}function Co(t=!0){const e=T.useContext(he);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=T.useId();T.useEffect(()=>{if(t)return i(r)},[t]);const o=T.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const wt=t=>t.key||"";function $s(t){const e=[];return T.Children.forEach(t,n=>{T.isValidElement(n)&&e.push(n)}),e}const Wc=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",anchorY:c="top",root:l})=>{const[u,h]=Co(o),f=T.useMemo(()=>$s(t),[t]),m=o&&!u?[]:f.map(wt),d=T.useRef(!0),y=ce(()=>new Map),p=T.useRef(new Set),[b,P]=T.useState(f),[x,S]=T.useState(f);Mt(()=>{o&&!u&&!x.length&&h?.()},[u,o,x.length,h]),Mt(()=>{d.current=!1;for(let g=0;g<x.length;g++){const v=wt(x[g]);m.includes(v)?(y.delete(v),p.current.delete(v)):y.get(v)!==!0&&y.set(v,!1)}},[x,m.length,m.join("-")]);const A=[];if(f!==b){let g=[...f],v=0;for(const V of x){const M=m.indexOf(wt(V));M===-1?(g.splice(v++,0,V),A.push(V)):v=M+A.length+1}return A.every(V=>y.get(wt(V)))?g=f:r==="wait"&&(g=A),S($s(g)),P(f),null}const{forceRender:C}=T.useContext(rn);return q.jsx(q.Fragment,{children:x.map(g=>{const v=wt(g),V=o&&!u?!1:f===x||m.includes(v),M=()=>{if(p.current.has(v))return;if(y.has(v))p.current.add(v),y.set(v,!0);else return;let W=!0;y.forEach(z=>{z||(W=!1)}),W&&(C?.(),P([]),o&&h?.(),s&&s())};return q.jsx(Du,{isPresent:V,initial:!d.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:r,root:l,onExitComplete:V?void 0:M,anchorX:a,anchorY:c,children:g},v)})})},Vo=T.createContext({strict:!1}),Ks={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 zs=!1;function Ru(){if(zs)return;const t={};for(const e in Ks)t[e]={isEnabled:n=>Ks[e].some(s=>!!n[s])};lo(t),zs=!0}function Mo(){return Ru(),Vl()}function Lu(t){const e=Mo();for(const n in t)e[n]={...e[n],...t[n]};lo(e)}function $c({children:t,...e}){const n=T.useContext(Ft);e={...n,...e},e.transition=wn(e.transition,n.transition),e.isStatic=ce(()=>e.isStatic);const s=T.useMemo(()=>e,[JSON.stringify(e.transition),e.transformPagePoint,e.reducedMotion,e.skipAnimations,e.isValidProp]);return q.jsx(Ft.Provider,{value:s,children:t})}const ge=T.createContext({});function ku(t,e){if(pe(t)){const{initial:n,animate:s}=t;return{initial:n===!1||kt(n)?n:void 0,animate:kt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Iu(t){const{initial:e,animate:n}=ku(t,T.useContext(ge));return T.useMemo(()=>({initial:e,animate:n}),[Gs(e),Gs(n)])}function Gs(t){return Array.isArray(t)?t.join(" "):t}const In=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Do(t,e,n){for(const s in e)!F(e[s])&&!ho(s,n)&&(t[s]=e[s])}function Bu({transformTemplate:t},e){return T.useMemo(()=>{const n=In();return Dn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Fu(t,e){const n=t.style||{},s={};return Do(s,n,t),Object.assign(s,Bu(t,e)),s}function Ou(t,e){const n={},s=Fu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Eo=()=>({...In(),attrs:{}});function ju(t,e,n,s){const i=T.useMemo(()=>{const r=Eo();return qi(r,e,mo(s),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Do(r,t.style,t),i.style={...r,...i.style}}return i}const Nu=new Set(["animate","exit","variants","initial","style","values","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 ue(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Nu.has(t)}function Uu(t,e){return t.startsWith("on")?!ue(t):e?.(t)??!ue(t)}function Wu(t,e,n,s){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||F(t[r])||(Uu(r,s)||n===!0&&ue(r)||!e&&!ue(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}const $u=["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"];function Bn(t){return typeof t!="string"||t.includes("-")?!1:!!($u.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ku(t,e,n,{latestValues:s},i,r=!1,o,a){const l=(o??Bn(t)?ju:Ou)(e,s,i,t),u=Wu(e,typeof t=="string",r,a),h=t!==T.Fragment?{...u,...l,ref:n}:{},{children:f}=e,m=T.useMemo(()=>F(f)?f.get():f,[f]);return T.createElement(t,{...h,children:m})}function zu({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Gu(n,s,i,t),renderState:e()}}function Gu(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=Jt(r[f]);let{initial:o,animate:a}=t;const c=pe(t),l=ro(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const h=u?a:o;if(h&&typeof h!="boolean"&&!me(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const d=Ki(t,f[m]);if(d){const{transitionEnd:y,transition:p,...b}=d;for(const P in b){let x=b[P];if(Array.isArray(x)){const S=u?x.length-1:0;x=x[S]}x!==null&&(i[P]=x)}for(const P in y)i[P]=y[P]}}}return i}const Ro=t=>(e,n)=>{const s=T.useContext(ge),i=T.useContext(he),r=()=>zu(t,e,s,i);return n?r():ce(r)},Hu=Ro({scrapeMotionValuesFromProps:kn,createRenderState:In}),_u=Ro({scrapeMotionValuesFromProps:po,createRenderState:Eo}),Xu=Symbol.for("motionComponentSymbol");function Yu(t,e,n){const s=T.useRef(n);T.useInsertionEffect(()=>{s.current=n});const i=T.useRef(null);return T.useCallback(r=>{r&&t.onMount?.(r),e&&(r?e.mount(r):e.unmount());const o=s.current;if(typeof o=="function")if(r){const a=o(r);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[e])}const Lo=T.createContext({});function mt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Zu(t,e,n,s,i,r){const{visualElement:o}=T.useContext(ge),a=T.useContext(Vo),c=T.useContext(he),l=T.useContext(Ft),u=l.reducedMotion,h=l.skipAnimations,f=T.useRef(null),m=T.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:r}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const d=f.current,y=T.useContext(Lo);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&qu(f.current,n,i,y);const p=T.useRef(!1);T.useInsertionEffect(()=>{d&&p.current&&d.update(n,c)});const b=n[Hi],P=T.useRef(!!b&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return Mt(()=>{!m.current||!d||(d.animationState?.animateChanges(),d.enteringChildren=void 0)},[]),Mt(()=>{m.current=!0,d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),P.current&&d.animationState&&d.animationState.animateChanges())}),T.useEffect(()=>{d&&(!P.current&&d.animationState&&d.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),P.current=!1),d.enteringChildren=void 0)}),d}function qu(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ko(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&mt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function ko(t){if(t)return t.options.allowProjection!==!1?t.projection:ko(t.parent)}function Ee(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&Lu(s);const r=n?n==="svg":Bn(t),o=r?_u:Hu;function a(l,u){let h;const f={...T.useContext(Ft),...l,layoutId:Ju(l)},{isStatic:m,isValidProp:d}=f,y=Iu(l),p=o(l,m);if(!m&&typeof window<"u"){Qu();const b=tc(f);h=b.MeasureLayout,y.visualElement=Zu(t,p,f,i,b.ProjectionNode,r)}return q.jsxs(ge.Provider,{value:y,children:[h&&y.visualElement?q.jsx(h,{visualElement:y.visualElement,...f}):null,Ku(t,l,Yu(p,y.visualElement,u),p,m,e,r,d)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=T.forwardRef(a);return c[Xu]=t,c}function Ju({layoutId:t}){const e=T.useContext(rn).id;return e&&t!==void 0?e+"-"+t:t}function Qu(t,e){T.useContext(Vo).strict}function tc(t){const e=Mo(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function ec(t,e){if(typeof Proxy>"u")return Ee;const n=new Map,s=(r,o)=>Ee(r,o,t,e),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,Ee(o,void 0,t,e)),n.get(o))})}const nc=(t,e)=>e.isSVG??Bn(t)?new Ll(e):new El(e,{allowProjection:t!==T.Fragment});class sc extends it{constructor(e){super(e),e.animationState||(e.animationState=Il(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();me(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ic=0;class oc extends it{constructor(){super(...arguments),this.id=ic++}update(){const{presenceContext:e,prevPresenceContext:n,animationState:s}=this.node;if(!e||!s)return;const{isPresent:i,onExitComplete:r}=e,o=n?.isPresent;if(i===o)return;if(i&&o===!1){if(this.exit===!0){const{initial:c}=this.node.getProps();if(c&&!Array.isArray(c)){const{transition:l,transitionEnd:u,...h}=ht(this.node,c)||{};for(const f in h)this.node.getValue(f)?.jump(h[f])}this.node.blockInitialAnimation=!1,s.reset(),s.animateChanges()}else s.setActive("exit",!1);this.exit=void 0;return}const a=this.exit=s.setActive("exit",!i);r&&!i&&a.then(()=>{this.exit===a&&(this.exit=!0,r(this.id))})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const rc={animation:{Feature:sc},exit:{Feature:oc}};function ye(t){return{point:{x:t.pageX,y:t.pageY}}}const ac=t=>e=>Rn(e)&&t(e,ye(e));function Vt(t,e,n,s){return Bt(t,e,ac(n),s)}const Io=({current:t})=>t?t.ownerDocument.defaultView:null,Hs=(t,e)=>Math.abs(t-e);function lc(t,e){const n=Hs(t.x,e.x),s=Hs(t.y,e.y);return Math.sqrt(n**2+s**2)}const _s=new Set(["auto","scroll"]);class Bo{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!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=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Kt(this.lastRawMoveEventInfo,this.transformPagePoint));const d=Re(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,p=lc(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!p)return;const{point:b}=d;this.history.push({...b,timestamp:B.now()});const{onStart:P,onMove:x}=this.handlers;y||(P&&P(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,y)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=Kt(y,this.transformPagePoint),this.hasPendingMove=!0,E.update(this.updatePoint,!0)},this.handlePointerUp=(d,y)=>{this.hasPendingMove&&this.updatePoint(),this.end();const{onEnd:p,onSessionEnd:b,resumeAnimation:P}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Re(d.type==="pointercancel"?this.lastMoveEventInfo:Kt(y,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),b&&b(d,x)},!Rn(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const c=ye(e),l=Kt(c,this.transformPagePoint),{point:u}=l,{timestamp:h}=L;this.history=[{...u,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,Re(l,this.history));const m={passive:!0,capture:!0};this.removeListeners=Ot(Vt(this.contextWindow,"pointermove",this.handlePointerMove,m),Vt(this.contextWindow,"pointerup",this.handlePointerUp,m),Vt(this.contextWindow,"pointercancel",this.handlePointerUp,m)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(_s.has(s.overflowX)||_s.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.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(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),E.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),st(this.updatePoint)}}function Kt(t,e){return e?{point:e(t.point)}:t}function Xs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Re({point:t},e){return{point:t,delta:Xs(t,Fo(e)),offset:Xs(t,uc(e)),velocity:cc(e,.1)}}function uc(t){return t[0]}function Fo(t){return t[t.length-1]}function cc(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Fo(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>K(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>K(e)*2&&(s=t[1]);const r=$(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function hc(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?D(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?D(n,t,s.max):Math.min(t,n)),t}function Ys(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function fc(t,{top:e,left:n,bottom:s,right:i}){return{x:Ys(t.x,n,i),y:Ys(t.y,e,s)}}function Zs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function dc(t,e){return{x:Zs(t.x,e.x),y:Zs(t.y,e.y)}}function mc(t,e){let n=.5;const s=j(t),i=j(e);return i>s?n=Dt(e.min,e.max-s,t.min):s>i&&(n=Dt(t.min,t.max-i,e.min)),et(0,1,n)}function pc(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const sn=.35;function gc(t=sn){return t===!1?t=0:t===!0&&(t=sn),{x:qs(t,"left","right"),y:qs(t,"top","bottom")}}function qs(t,e,n){return{min:Js(t,e),max:Js(t,n)}}function Js(t,e){return typeof t=="number"?t:t[e]||0}const yc=new WeakMap;class vc{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=R(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=h=>{n&&this.snapToCursor(h),this.stopAnimation()},o=(h,f)=>{const{drag:m,dragPropagation:d,onDragStart:y}=this.getProps();if(m&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ol(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(b=>{let P=this.getAxisMotionValue(b).get()||0;if(J.test(P)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[b];S&&(P=j(S)*(parseFloat(P)/100))}}this.originPoint[b]=P}),y&&E.update(()=>y(h,f),!1,!0),Ze(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:d,onDirectionLock:y,onDrag:p}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:b}=f;if(d&&this.currentDirection===null){this.currentDirection=Tc(b),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),p&&E.update(()=>p(h,f),!1,!0)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Bo(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Io(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&E.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!zt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=hc(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&mt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=fc(s.layoutBox,e):this.constraints=!1,this.elastic=gc(n),i!==this.constraints&&!mt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Y(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=pc(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!mt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const r=il(s,i.root,this.visualElement.getTransformPagePoint());let o=dc(i.layout.layoutBox,r);if(n){const a=n(el(o));this.hasMutatedConstraints=!!a,a&&(o=Ji(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Y(u=>{if(!zt(u,n,this.currentDirection))return;let h=c&&c[u]||{};(o===!0||o===u)&&(h={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,d={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ze(this.visualElement,e),s.start(An(e,s,0,n,this.visualElement,!1))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:n}){const{drag:s}=this.getProps(),i={x:e,y:n},r=this.visualElement.getTransformPagePoint()?.(i)||i,o=this.visualElement.measureViewportBox();Y(a=>{if(!zt(a,s,this.currentDirection))return;const c=this.getAxisMotionValue(a),{min:l,max:u}=o[a];c.set((c.get()||0)+r[a]-D(l,u,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!mt(n)||!s||!this.constraints)return;this.stopAnimation();const i=this.constraints,r={x:0,y:0};Y(a=>{const c=this.getAxisMotionValue(a).get();r[a]=mc({min:c,max:c},i[a])});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Y(a=>{const c=this.getAxisMotionValue(a);if(!zt(a,e,null)||!c.get())return;const{min:l,max:u}=this.constraints[a];c.set(D(l,u,r[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;yc.set(this.visualElement,this);const e=this.visualElement.current,n=Vt(e,"pointerdown",l=>{const{drag:u,dragListener:h=!0}=this.getProps(),f=l.target,m=f!==e&&hl(f);u&&h&&!m&&this.start(l)});let s;const i=()=>{const{dragConstraints:l}=this.getProps();mt(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),s||(s=xc(e,l.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),E.read(i);const a=Bt(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Y(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=l[h].translate,f.set(f.get()+l[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),o(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=sn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Qs(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function xc(t,e,n){const s=hs(t,Qs(n)),i=hs(e,Qs(n));return()=>{s(),i()}}function zt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Tc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Sc extends it{constructor(e){super(e),this.removeGroupControls=_,this.removeListeners=_,this.controls=new vc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Le=t=>(e,n)=>{t&&E.update(()=>t(e,n),!1,!0)};class Pc extends it{constructor(){super(...arguments),this.removePointerDownListener=_}onPointerDown(e){this.session=new Bo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Io(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Le(e),onStart:Le(n),onMove:Le(s),onEnd:(r,o)=>{delete this.session,i&&E.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=Vt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ke=!1;class wc extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),ke&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Qt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),ke=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||E.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),En.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;ke=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Oo(t){const[e,n]=Co(),s=T.useContext(rn);return q.jsx(wc,{...t,layoutGroup:s,switchLayoutGroup:T.useContext(Lo),isPresent:e,safeToRemove:n})}const bc={pan:{Feature:Pc},drag:{Feature:Sc,ProjectionNode:Ao,MeasureLayout:Oo}};function ti(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&E.postRender(()=>r(e,ye(e)))}class Ac extends it{mount(){const{current:e}=this.node;e&&(this.unmount=al(e,(n,s)=>(ti(this.node,s,"Start"),i=>ti(this.node,i,"End"))))}unmount(){}}class Cc extends it{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Ot(Bt(this.node.current,"focus",()=>this.onFocus()),Bt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ei(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&E.postRender(()=>r(e,ye(e)))}class Vc extends it{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=dl(e,(i,r)=>(ei(this.node,r,"Start"),(o,{success:a})=>ei(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const on=new WeakMap,Ie=new WeakMap,Mc=t=>{const e=on.get(t.target);e&&e(t)},Dc=t=>{t.forEach(Mc)};function Ec({root:t,...e}){const n=t||document;Ie.has(n)||Ie.set(n,{});const s=Ie.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Dc,{root:t,...e})),s[i]}function Rc(t,e,n){const s=Ec(e);return on.set(t,n),s.observe(t),()=>{on.delete(t),s.unobserve(t)}}const Lc={some:0,all:1};class kc extends it{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Lc[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=l?u:h;f&&f(c)};this.stopObserver=Rc(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ic(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Ic({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Bc={inView:{Feature:kc},tap:{Feature:Vc},focus:{Feature:Cc},hover:{Feature:Ac}},Fc={layout:{ProjectionNode:Ao,MeasureLayout:Oo}},Oc={...rc,...Bc,...bc,...Fc},jc=ec(Oc,nc),Kc=jc;export{Wc as A,$c as M,Kc as m};
|