@lucideproxy/svg 0.0.11 → 0.0.13

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.

Potentially problematic release.


This version of @lucideproxy/svg might be problematic. Click here for more details.

Files changed (45) hide show
  1. package/{a8k4tx.js → 33q3me.js} +3 -3
  2. package/assets/AccountPage-8CUJ5Nl2-f31360a8.js +1 -0
  3. package/assets/{AiPage-BZXMRebk-18b1874f.css → AiPage-BZXMRebk-f31360a8.css} +1 -1
  4. package/assets/AiPage-BhRFcFU5-f31360a8.js +1 -0
  5. package/assets/ChatPage-BRsjA5RT-f31360a8.js +1 -0
  6. package/assets/{ChatPage-kuNik1U7-18b1874f.css → ChatPage-kuNik1U7-f31360a8.css} +1 -1
  7. package/assets/DarkVeil-BLvPerYu-f31360a8.js +1 -0
  8. package/assets/{GamesPage-Btpg86D--18b1874f.css → GamesPage-Btpg86D--f31360a8.css} +1 -1
  9. package/assets/GamesPage-tLQo6u8e-f31360a8.js +1 -0
  10. package/assets/PlusPage-B00AXMWx-f31360a8.js +1 -0
  11. package/assets/SettingsPage-DwI1QaYs-f31360a8.js +1 -0
  12. package/assets/boot-VCMiiFks-f31360a8.js +1 -0
  13. package/assets/{emoji-BAJ2KL4a-18b1874f.js → emoji-BAJ2KL4a-f31360a8.js} +1 -1
  14. package/assets/{fingerprint-BEH1UDAC-18b1874f.js → fingerprint-BEH1UDAC-f31360a8.js} +1 -1
  15. package/assets/index-CJ2xskg3-f31360a8.js +1 -0
  16. package/assets/{index-CvoBgwVP-18b1874f.css → index-CvoBgwVP-f31360a8.css} +1 -1
  17. package/assets/{markdown-rngvaYIh-18b1874f.js → markdown-rngvaYIh-f31360a8.js} +1 -1
  18. package/assets/{motion-ClYBgd9J-18b1874f.js → motion-ClYBgd9J-f31360a8.js} +1 -1
  19. package/assets/{proxy-runtime-1NyFshf9-18b1874f.js → proxy-runtime-1NyFshf9-f31360a8.js} +3 -3
  20. package/index.html +6 -6
  21. package/index.svg +6 -6
  22. package/logo.svg +6 -6
  23. package/package.json +1 -1
  24. package/{jor7t/0i9vot.js → s02vs/ct6ewh.js} +6 -6
  25. package/{jor7t/lola5t.wasm → s02vs/uyaafa.wasm} +0 -0
  26. package/{fblcd/20n893.js → x8b15/90fiaz.js} +8 -8
  27. package/{fblcd/fw7t1x.js → x8b15/9gjnnr.js} +1 -1
  28. package/{fblcd/mudkek.js → x8b15/ar9ve0.js} +1 -1
  29. package/assets/AccountPage-C8mc2E_l-18b1874f.js +0 -1
  30. package/assets/AiPage-PNcWZDfx-18b1874f.js +0 -1
  31. package/assets/ChatPage-BSQ-JSaP-18b1874f.js +0 -1
  32. package/assets/DarkVeil-BLvPerYu-18b1874f.js +0 -1
  33. package/assets/GamesPage-Dv5PF-mT-18b1874f.js +0 -1
  34. package/assets/PlusPage-zPJG-_80-18b1874f.js +0 -1
  35. package/assets/SettingsPage-Cz6ofsoi-18b1874f.js +0 -1
  36. package/assets/boot-BUEpvDei-18b1874f.js +0 -1
  37. package/assets/index-BLh6EiPH-18b1874f.js +0 -1
  38. /package/assets/{AccountPage-fg4fizGa-18b1874f.css → AccountPage-fg4fizGa-f31360a8.css} +0 -0
  39. /package/assets/{PlusPage-vOvT9Zss-18b1874f.css → PlusPage-vOvT9Zss-f31360a8.css} +0 -0
  40. /package/assets/{fingerprint-Y5nV5FVa-18b1874f.js → fingerprint-Y5nV5FVa-f31360a8.js} +0 -0
  41. /package/assets/{livekit-DqpdvE-G-18b1874f.js → livekit-DqpdvE-G-f31360a8.js} +0 -0
  42. /package/assets/{markdown-dIRGbAJA-18b1874f.css → markdown-dIRGbAJA-f31360a8.css} +0 -0
  43. /package/assets/{ogl-BWe_HKY6-18b1874f.js → ogl-BWe_HKY6-f31360a8.js} +0 -0
  44. /package/assets/{react-CKawGOZZ-18b1874f.js → react-CKawGOZZ-f31360a8.js} +0 -0
  45. /package/assets/{settings-page-B-LiQw8a-18b1874f.css → settings-page-B-LiQw8a-f31360a8.css} +0 -0
@@ -1,4 +1,4 @@
1
- import{r as w,j as z}from"./react-CKawGOZZ-18b1874f.js";const hn=w.createContext({});function yt(t){const e=w.useRef(null);return e.current===null&&(e.current=t()),e.current}const Xo=typeof window<"u",me=Xo?w.useLayoutEffect:w.useEffect,ge=w.createContext(null);function fn(t,e){t.indexOf(e)===-1&&t.push(e)}function oe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function _o([...t],e,n){const s=e<0?t.length+e:e;if(s>=0&&s<t.length){const i=n<0?t.length+n:n,[r]=t.splice(e,1);t.splice(i,0,r)}return t}const tt=(t,e,n)=>n>e?e:n<t?t:n;let dn=()=>{};const at={},si=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ii=t=>typeof t=="object"&&t!==null,oi=t=>/^0[^.\s]+$/u.test(t);function ri(t){let e;return()=>(e===void 0&&(e=t()),e)}const G=t=>t,Ut=(...t)=>t.reduce((e,n)=>s=>n(e(s))),Ot=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class pn{constructor(){this.subscriptions=[]}add(e){return fn(this.subscriptions,e),()=>oe(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 U=t=>t*1e3,$=t=>t/1e3,ai=(t,e)=>e?t*(1e3/e):0,li=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Yo=1e-7,qo=12;function Zo(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=li(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Yo&&++a<qo);return o}function Kt(t,e,n,s){if(t===e&&n===s)return G;const i=r=>Zo(r,0,1,t,n);return r=>r===0||r===1?r:li(i(r),e,s)}const ci=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ui=t=>e=>1-t(1-e),hi=Kt(.33,1.53,.69,.99),mn=ui(hi),fi=ci(mn),di=t=>t>=1?1:(t*=2)<1?.5*mn(t):.5*(2-Math.pow(2,-10*(t-1))),gn=t=>1-Math.sin(Math.acos(t)),pi=ui(gn),mi=ci(gn),Jo=Kt(.42,0,1,1),Qo=Kt(0,0,.58,1),gi=Kt(.42,0,.58,1),tr=t=>Array.isArray(t)&&typeof t[0]!="number",yi=t=>Array.isArray(t)&&typeof t[0]=="number",er={linear:G,easeIn:Jo,easeInOut:gi,easeOut:Qo,circIn:gn,circInOut:mi,circOut:pi,backIn:mn,backInOut:fi,backOut:hi,anticipate:di},nr=t=>typeof t=="string",jn=t=>{if(yi(t)){dn(t.length===4);const[e,n,s,i]=t;return Kt(e,n,s,i)}else if(nr(t))return er[t];return t},Gt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function sr(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){r.has(c)&&(l.schedule(c),t()),c(o)}const l={schedule:(c,u=!1,h=!1)=>{const d=h&&s?e:n;return u&&r.add(c),d.add(c),c},cancel:c=>{n.delete(c),r.delete(c)},process:c=>{if(o=c,s){i=!0;return}s=!0;const u=e;e=n,n=u,e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(c))}};return l}const ir=40;function vi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Gt.reduce((v,T)=>(v[T]=sr(r),v),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:f,render:d,postRender:p}=o,y=()=>{const v=at.useManualTiming,T=v?i.timestamp:performance.now();n=!1,v||(i.delta=s?1e3/60:Math.max(Math.min(T-i.timestamp,ir),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),f.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},m=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:Gt.reduce((v,T)=>{const b=o[T];return v[T]=(M,V=!1,P=!1)=>(n||m(),b.schedule(M,V,P)),v},{}),cancel:v=>{for(let T=0;T<Gt.length;T++)o[Gt[T]].cancel(v)},state:i,steps:o}}const{schedule:E,cancel:it,state:j,steps:Se}=vi(typeof requestAnimationFrame<"u"?requestAnimationFrame:G,!0);let Zt;function or(){Zt=void 0}const N={now:()=>(Zt===void 0&&N.set(j.isProcessing||at.useManualTiming?j.timestamp:performance.now()),Zt),set:t=>{Zt=t,queueMicrotask(or)}},xi=t=>e=>typeof e=="string"&&e.startsWith(t),Ti=xi("--"),rr=xi("var(--"),yn=t=>rr(t)?ar.test(t.split("/*")[0].trim()):!1,ar=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Nn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const bt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},jt={...bt,transform:t=>tt(0,1,t)},Ht={...bt,default:1},Et=t=>Math.round(t*1e5)/1e5,vn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lr(t){return t==null}const cr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xn=(t,e)=>n=>!!(typeof n=="string"&&cr.test(n)&&n.startsWith(t)||e&&!lr(n)&&Object.prototype.hasOwnProperty.call(n,e)),wi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(vn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ur=t=>tt(0,255,t),Pe={...bt,transform:t=>Math.round(ur(t))},ft={test:xn("rgb","red"),parse:wi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Pe.transform(t)+", "+Pe.transform(e)+", "+Pe.transform(n)+", "+Et(jt.transform(s))+")"};function hr(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 je={test:xn("#"),parse:hr,transform:ft.transform},$t=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),st=$t("deg"),Q=$t("%"),S=$t("px"),fr=$t("vh"),dr=$t("vw"),Wn={...Q,parse:t=>Q.parse(t)/100,transform:t=>Q.transform(t*100)},Tt={test:xn("hsl","hue"),parse:wi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Q.transform(Et(e))+", "+Q.transform(Et(n))+", "+Et(jt.transform(s))+")"},k={test:t=>ft.test(t)||je.test(t)||Tt.test(t),parse:t=>ft.test(t)?ft.parse(t):Tt.test(t)?Tt.parse(t):je.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ft.transform(t):Tt.transform(t),getAnimatableNone:t=>{const e=k.parse(t);return e.alpha=0,k.transform(e)}},pr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function mr(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(vn))==null?void 0:e.length)||0)+(((n=t.match(pr))==null?void 0:n.length)||0)>0}const Si="number",Pi="color",gr="var",yr="var(",Un="${}",vr=/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 Pt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(vr,l=>(k.test(l)?(s.color.push(r),i.push(Pi),n.push(k.parse(l))):l.startsWith(yr)?(s.var.push(r),i.push(gr),n.push(l)):(s.number.push(r),i.push(Si),n.push(parseFloat(l))),++r,Un)).split(Un);return{values:n,split:a,indexes:s,types:i}}function xr(t){return Pt(t).values}function bi({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===Si?i+=Et(s[r]):o===Pi?i+=k.transform(s[r]):i+=s[r]}return i}}function Tr(t){return bi(Pt(t))}const wr=t=>typeof t=="number"?0:k.test(t)?k.getAnimatableNone(t):t,Sr=(t,e)=>typeof t=="number"?e!=null&&e.trim().endsWith("/")?t:0:wr(t);function Pr(t){const e=Pt(t);return bi(e)(e.values.map((s,i)=>Sr(s,e.split[i])))}const _={test:mr,parse:xr,createTransformer:Tr,getAnimatableNone:Pr};function be(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 br({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,l=2*n-a;i=be(l,a,t+1/3),r=be(l,a,t),o=be(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function re(t,e){return n=>n>0?e:t}const D=(t,e,n)=>t+(e-t)*n,Ae=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Ar=[je,ft,Tt],Vr=t=>Ar.find(e=>e.test(t));function Kn(t){const e=Vr(t);if(!e)return!1;let n=e.parse(t);return e===Tt&&(n=br(n)),n}const $n=(t,e)=>{const n=Kn(t),s=Kn(e);if(!n||!s)return re(t,e);const i={...n};return r=>(i.red=Ae(n.red,s.red,r),i.green=Ae(n.green,s.green,r),i.blue=Ae(n.blue,s.blue,r),i.alpha=D(n.alpha,s.alpha,r),ft.transform(i))},Ne=new Set(["none","hidden"]);function Cr(t,e){return Ne.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Mr(t,e){return n=>D(t,e,n)}function Tn(t){return typeof t=="number"?Mr:typeof t=="string"?yn(t)?re:k.test(t)?$n:Rr:Array.isArray(t)?Ai:typeof t=="object"?k.test(t)?$n:Dr:re}function Ai(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Tn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Dr(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Tn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Er(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 Rr=(t,e)=>{const n=_.createTransformer(e),s=Pt(t),i=Pt(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?Ne.has(t)&&!i.values.length||Ne.has(e)&&!s.values.length?Cr(t,e):Ut(Ai(Er(s,i),i.values),n):re(t,e)};function Vi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):Tn(t)(t,e)}const Lr=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>it(e),now:()=>j.isProcessing?j.timestamp:N.now()}},Ci=(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)})`},ae=2e4;function wn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ae;)e+=n,s=t.next(e);return e>=ae?1/0:e}function kr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(wn(s),ae);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:$(i)}}const L={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function We(t,e){return t*Math.sqrt(1-e*e)}const Ir=12;function Br(t,e,n){let s=n;for(let i=1;i<Ir;i++)s=s-t(s)/e(s);return s}const Ve=.001;function Fr({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:s=L.mass}){let i,r,o=1-e;o=tt(L.minDamping,L.maxDamping,o),t=tt(L.minDuration,L.maxDuration,$(t)),o<1?(i=c=>{const u=c*o,h=u*t,f=u-n,d=We(c,o),p=Math.exp(-h);return Ve-f/d*p},r=c=>{const h=c*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-h),y=We(Math.pow(c,2),o);return(-i(c)+Ve>0?-1:1)*((f-d)*p)/y}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-Ve+u*h},r=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Br(i,r,a);if(t=U(t),isNaN(l))return{stiffness:L.stiffness,damping:L.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const Or=["duration","bounce"],jr=["stiffness","damping","mass"];function zn(t,e){return e.some(n=>t[n]!==void 0)}function Nr(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!zn(t,jr)&&zn(t,Or))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*tt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:r}}else{const n=Fr({...t,velocity:0});e={...e,...n,mass:L.mass},e.isResolvedFromDuration=!0}return e}function le(t=L.visualDuration,e=L.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:h,velocity:f,isResolvedFromDuration:d}=Nr({...n,velocity:-$(n.velocity||0)}),p=f||0,y=c/(2*Math.sqrt(l*u)),m=o-r,g=$(Math.sqrt(l/u)),x=Math.abs(m)<5;s||(s=x?L.restSpeed.granular:L.restSpeed.default),i||(i=x?L.restDelta.granular:L.restDelta.default);let v,T,b,M,V,P;if(y<1)b=We(g,y),M=(p+y*g*m)/b,v=A=>{const R=Math.exp(-y*g*A);return o-R*(M*Math.sin(b*A)+m*Math.cos(b*A))},V=y*g*M+m*b,P=y*g*m-M*b,T=A=>Math.exp(-y*g*A)*(V*Math.sin(b*A)+P*Math.cos(b*A));else if(y===1){v=R=>o-Math.exp(-g*R)*(m+(p+g*m)*R);const A=p+g*m;T=R=>Math.exp(-g*R)*(g*A*R-p)}else{const A=g*Math.sqrt(y*y-1);v=Y=>{const nt=Math.exp(-y*g*Y),q=Math.min(A*Y,300);return o-nt*((p+y*g*m)*Math.sinh(q)+A*m*Math.cosh(q))/A};const R=(p+y*g*m)/A,F=y*g*R-m*A,et=y*g*m-R*A;T=Y=>{const nt=Math.exp(-y*g*Y),q=Math.min(A*Y,300);return nt*(F*Math.sinh(q)+et*Math.cosh(q))}}const C={calculatedDuration:d&&h||null,velocity:A=>U(T(A)),next:A=>{if(!d&&y<1){const F=Math.exp(-y*g*A),et=Math.sin(b*A),Y=Math.cos(b*A),nt=o-F*(M*et+m*Y),q=U(F*(V*et+P*Y));return a.done=Math.abs(q)<=s&&Math.abs(o-nt)<=i,a.value=a.done?o:nt,a}const R=v(A);if(d)a.done=A>=h;else{const F=U(T(A));a.done=Math.abs(F)<=s&&Math.abs(o-R)<=i}return a.value=a.done?o:R,a},toString:()=>{const A=Math.min(wn(C),ae),R=Ci(F=>C.next(A*F).value,A,30);return A+"ms "+R},toTransition:()=>{}};return C}le.applyToOptions=t=>{const e=kr(t,100,le);return t.ease=e.ease,t.duration=U(e.duration),t.type="keyframes",t};const Wr=5;function Mi(t,e,n){const s=Math.max(e-Wr,0);return ai(n-t(s),e-s)}function Ue({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=P=>a!==void 0&&P<a||l!==void 0&&P>l,p=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let y=n*e;const m=h+y,g=o===void 0?m:o(m);g!==m&&(y=g-h);const x=P=>-y*Math.exp(-P/s),v=P=>g+x(P),T=P=>{const C=x(P),A=v(P);f.done=Math.abs(C)<=c,f.value=f.done?g:A};let b,M;const V=P=>{d(f.value)&&(b=P,M=le({keyframes:[f.value,p(f.value)],velocity:Mi(v,P,f.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return V(0),{calculatedDuration:null,next:P=>{let C=!1;return!M&&b===void 0&&(C=!0,T(P),V(P)),b!==void 0&&P>=b?M.next(P-b):(!C&&T(P),f)}}}function Ur(t,e,n){const s=[],i=n||at.mix||Vi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||G:e;a=Ut(l,a)}s.push(a)}return s}function Di(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(dn(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=Ur(e,s,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const f=Ot(t[h],t[h+1],u);return a[h](f)};return n?u=>c(tt(t[0],t[r-1],u)):c}function Kr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Ot(0,e,s);t.push(D(n,1,i))}}function $r(t){const e=[0];return Kr(e,t.length-1),e}function zr(t,e){return t.map(n=>n*e)}function Gr(t,e){return t.map(()=>e||gi).splice(0,t.length-1)}function Rt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=tr(s)?s.map(jn):jn(s),r={done:!1,value:e[0]},o=zr(n&&n.length===e.length?n:$r(e),t),a=Di(o,e,{ease:Array.isArray(i)?i:Gr(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Hr=t=>t!==null;function ye(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Hr),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Xr={decay:Ue,inertia:Ue,tween:Rt,keyframes:Rt,spring:le};function Ei(t){typeof t.type=="string"&&(t.type=Xr[t.type])}class Sn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const _r=t=>t/100;class ce extends Sn{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=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Ei(e);const{type:n=Rt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||Rt;l!==Rt&&typeof a[0]!="number"&&(this.mixKeyframes=Ut(_r,Vi(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=wn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}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:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:y,finalKeyframe:m}=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 g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,T=s;if(h){const P=Math.min(this.currentTime,i)/a;let C=Math.floor(P),A=P%1;!A&&P>=1&&(A=1),A===1&&C--,C=Math.min(C,h+1),!!(C%2)&&(f==="reverse"?(A=1-A,d&&(A-=d/a)):f==="mirror"&&(T=o)),v=tt(0,1,A)*a}let b;x?(this.delayState.value=u[0],b=this.delayState):b=T.next(v),r&&!x&&(b.value=r(b.value));let{done:M}=b;!x&&l!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return V&&p!==Ue&&(b.value=ye(u,this.options,m,this.speed)),y&&y(b.value),V&&this.finish(),b}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=U(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(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return Mi(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(N.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=$(this.currentTime))}play(){var i,r;if(this.isStopped)return;const{driver:e=Lr,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(r=(i=this.options).onPlay)==null||r.call(i);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(N.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}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){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Yr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const dt=t=>t*180/Math.PI,Ke=t=>{const e=dt(Math.atan2(t[1],t[0]));return $e(e)},qr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ke,rotateZ:Ke,skewX:t=>dt(Math.atan(t[1])),skewY:t=>dt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},$e=t=>(t=t%360,t<0&&(t+=360),t),Gn=Ke,Hn=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:Hn,scaleY:Xn,scale:t=>(Hn(t)+Xn(t))/2,rotateX:t=>$e(dt(Math.atan2(t[6],t[5]))),rotateY:t=>$e(dt(Math.atan2(-t[2],t[0]))),rotateZ:Gn,rotate:Gn,skewX:t=>dt(Math.atan(t[4])),skewY:t=>dt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ze(t){return t.includes("scale")?1:0}function Ge(t,e){if(!t||t==="none")return ze(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=qr,i=a}if(!i)return ze(e);const r=s[e],o=i[1].split(",").map(Qr);return typeof r=="function"?r(o):o[r]}const Jr=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ge(n,e)};function Qr(t){return parseFloat(t.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vt=new Set([...At,"pathRotation"]),_n=t=>t===bt||t===S,ta=new Set(["x","y","z"]),ea=At.filter(t=>!ta.has(t));function na(t){const e=[];return ea.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const rt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ge(e,"x"),y:(t,{transform:e})=>Ge(e,"y")};rt.translateX=rt.x;rt.translateY=rt.y;const pt=new Set;let He=!1,Xe=!1,_e=!1;function Ri(){if(Xe){const t=Array.from(pt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=na(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))==null||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Xe=!1,He=!1,pt.forEach(t=>t.complete(_e)),pt.clear()}function Li(){pt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Xe=!0)})}function sa(){_e=!0,Li(),Ri(),_e=!1}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?(pt.add(this),He||(He=!0,E.read(Li),E.resolveKeyframes(Ri))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i==null?void 0:i.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}Yr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),pt.delete(this)}cancel(){this.state==="scheduled"&&(pt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ia=t=>t.startsWith("--");function ki(t,e,n){ia(e)?t.style.setProperty(e,n):t.style[e]=n}const oa={};function Ii(t,e){const n=ri(t);return()=>oa[e]??n()}const ra=Ii(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Bi=Ii(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Mt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Yn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mt([0,.65,.55,1]),circOut:Mt([.55,0,1,.45]),backIn:Mt([.31,.01,.66,-.59]),backOut:Mt([.33,1.53,.69,.99])};function Fi(t,e){if(t)return typeof t=="function"?Bi()?Ci(t,e):"ease-out":yi(t)?Mt(t):Array.isArray(t)?t.map(n=>Fi(n,e)||Yn.easeOut):Yn[t]}function aa(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=Fi(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 c&&(f.pseudoElement=c),t.animate(u,f)}function Oi(t){return typeof t=="function"&&"applyToOptions"in t}function la({type:t,...e}){return Oi(t)&&Bi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ji extends Sn{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:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,dn(typeof e.type!="string");const c=la(e);this.animation=aa(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=ye(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),ki(n,s,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}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(){var n,s,i;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).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=U(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,rangeStart:n,rangeEnd:s,observe:i}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&ra()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),G):i(this)}}const Ni={anticipate:di,backInOut:fi,circInOut:mi};function ca(t){return t in Ni}function ua(t){typeof t.ease=="string"&&ca(t.ease)&&(t.ease=Ni[t.ease])}const Ce=10;class ha extends ji{constructor(e){ua(e),Ei(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 ce({...o,autoplay:!1}),l=Math.max(Ce,N.now()-this.startTime),c=tt(0,Ce,l-Ce),u=a.sample(l).value,{name:h}=this.options;r&&h&&ki(r,h,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const qn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(_.test(t)||t==="0")&&!t.startsWith("url("));function fa(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 da(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=qn(i,e),a=qn(r,e);return!o||!a?!1:fa(t)||(n==="spring"||Oi(n))&&s}function Ye(t){t.duration=0,t.type="keyframes"}const Wi=new Set(["opacity","clipPath","filter","transform"]),pa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ma(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&pa.test(t[e]))return!0;return!1}const ga=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ya=ri(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function va(t){var h;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!(((h=e==null?void 0:e.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return ya()&&n&&(Wi.has(n)||ga.has(n)&&ma(a))&&(n!=="transform"||!u)&&!c&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const xa=40;class Ta extends Sn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){var p;super(),this.stop=()=>{var y,m;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(m=this.keyframeResolver)==null||m.cancel()},this.createdAt=N.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...h},d=(u==null?void 0:u.KeyframeResolver)||Pn;this.keyframeResolver=new d(a,(y,m,g)=>this.onKeyframesResolved(y,m,f,!g),l,c,u),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(e,n,s,i){var g,x;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=N.now();let h=!0;da(e,r,o,a)||(h=!1,(at.instantAnimations||!l)&&(u==null||u(ye(e,s,n))),e[0]=e[e.length-1],Ye(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>xa?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},p=h&&!c&&va(d),y=(x=(g=d.motionValue)==null?void 0:g.owner)==null?void 0:x.current;let m;if(p)try{m=new ha({...d,element:y})}catch{m=new ce(d)}else m=new ce(d);m.finished.then(()=>{this.notifyFinished()}).catch(G),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.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(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function Ui(t,e,n,s=0,i=1){const r=Array.from(t).sort((c,u)=>c.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 Zn=30,wa=t=>!isNaN(parseFloat(t)),Lt={current:void 0};class Sa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var r;const i=N.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new pn);const s=this.events[e].add(n);return e==="change"?()=>{s(),E.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){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(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Lt.current&&Lt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Zn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zn);return ai(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gt(t,e){return new Sa(t,e)}function Ki(t,e){if(t!=null&&t.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function bn(t,e){const n=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return n!==t?Ki(n,t):n}const Pa={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},Va={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ca=(t,{keyframes:e})=>e.length>2?Aa:Vt.has(t)?t.startsWith("scale")?ba(e[1]):Pa:Va,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)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-U(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,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,Ca(t,u)),u.duration&&(u.duration=U(u.duration)),u.repeatDelay&&(u.repeatDelay=U(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ye(u),u.delay===0&&(h=!0)),(at.instantAnimations||at.skipAnimations||i!=null&&i.shouldSkipAnimations||a.skipAnimations)&&(h=!0,Ye(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=ye(u.keyframes,a);if(f!==void 0){E.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new ce(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 si(o)?parseFloat(o):o}return yn(i)?$i(i,e,n+1):i}function Jn(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Vn(t,e,n,s){if(typeof e=="function"){const[i,r]=Jn(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Jn(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function mt(t,e,n){const s=t.getProps();return Vn(s,e,n!==void 0?n:s.custom,t)}const zi=new Set(["width","height","top","left","right","bottom",...At]),qe=t=>Array.isArray(t);function La(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,gt(n))}function ka(t){return qe(t)?t[t.length-1]||0:t}function Ia(t,e){const n=mt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=ka(r[o]);La(t,o,a)}}const B=t=>!!(t&&t.getVelocity);function Ba(t){return!!(B(t)&&t.add)}function Ze(t,e){const n=t.getValue("willChange");if(Ba(n))return n.add(e);if(!n&&at.WillChange){const s=new at.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Cn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Fa="framerAppearId",Gi="data-"+Cn(Fa);function Hi(t){return t.props[Gi]}function Oa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Xi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const l=t.getDefaultTransition();r=r?Ki(r,l):l;const c=r==null?void 0:r.reduceMotion,u=r==null?void 0:r.skipAnimations;s&&(r=s);const h=[],f=i&&t.animationState&&t.animationState.getState()[i],d=r==null?void 0:r.path;d&&d.animateVisualElement(t,a,r,n,h);for(const p in a){const y=t.getValue(p,t.latestValues[p]??null),m=a[p];if(m===void 0||f&&Oa(f,p))continue;const g={delay:n,...bn(r||{},p)};u&&(g.skipAnimations=!0);const x=y.get();if(x!==void 0&&!y.isAnimating()&&!Array.isArray(m)&&m===x&&!g.velocity){E.update(()=>y.set(m));continue}let v=!1;if(window.MotionHandoffAnimation){const M=Hi(t);if(M){const V=window.MotionHandoffAnimation(M,p,E);V!==null&&(g.startTime=V,v=!0)}}Ze(t,p);const T=c??t.shouldReduceMotion;y.start(An(p,y,m,T&&zi.has(p)?{type:!1}:g,t,v));const b=y.animation;b&&h.push(b)}if(o){const p=()=>E.update(()=>{o&&Ia(t,o)});h.length?Promise.all(h).then(p):p()}return h}function Je(t,e,n={}){var l;const s=mt(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Xi(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:f}=i;return ja(t,e,c,u,h,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[r,o]:[o,r];return c().then(()=>u())}else return Promise.all([r(),o(n.delay)])}function ja(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Je(l,e,{...o,delay:n+(typeof s=="function"?0:s)+Ui(t.variantChildren,l,s,i,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Na(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Je(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Je(t,e,n);else{const i=typeof e=="function"?mt(t,e,n.custom):e;s=Promise.all(Xi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Wa={test:t=>t==="auto",parse:t=>t},_i=t=>e=>e.test(t),Yi=[bt,S,Q,st,dr,fr,Wa],Qn=t=>Yi.find(_i(t));function Ua(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||oi(t):!0}const Ka=new Set(["brightness","contrast","saturate","opacity"]);function $a(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(vn)||[];if(!s)return t;const i=n.replace(s,"");let r=Ka.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const za=/\b([a-z-]*)\(.*?\)/gu,Qe={..._,getAnimatableNone:t=>{const e=t.match(za);return e?e.map($a).join(" "):t}},tn={..._,getAnimatableNone:t=>{const e=_.parse(t);return _.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},ts={...bt,transform:Math.round},Ga={rotate:st,pathRotation:st,rotateX:st,rotateY:st,rotateZ:st,scale:Ht,scaleX:Ht,scaleY:Ht,scaleZ:Ht,skew:st,skewX:st,skewY:st,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:jt,originX:Wn,originY:Wn,originZ:S},ue={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...Ga,zIndex:ts,fillOpacity:jt,strokeOpacity:jt,numOctaves:ts},Ha={...ue,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:Qe,WebkitFilter:Qe,mask:tn,WebkitMask:tn},qi=t=>Ha[t],Xa=new Set([Qe,tn]);function Zi(t,e){let n=qi(t);return Xa.has(n)||(n=_),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const _a=new Set(["auto","none","0"]);function Ya(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!_a.has(r)&&Pt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Zi(n,i)}class qa 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(),yn(h))){const f=$i(h,n.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!zi.has(s)||e.length!==2)return;const[i,r]=e,o=Qn(i),a=Qn(r),l=Nn(i),c=Nn(r);if(l!==c&&rt[s]){this.needsMeasurement=!0;return}if(o!==a)if(_n(o)&&_n(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else rt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ua(e[i]))&&s.push(i);s.length&&Ya(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=rt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{e.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Ji(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=(n==null?void 0:n[t])??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const en=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Jt(t){return ii(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Mn}=vi(queueMicrotask,!1),X={x:!1,y:!1};function Qi(){return X.x||X.y}function Za(t){return t==="x"||t==="y"?X[t]?null:(X[t]=!0,()=>{X[t]=!1}):X.x||X.y?null:(X.x=X.y=!0,()=>{X.x=X.y=!1})}function to(t,e){const n=Ji(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Ja(t){return!(t.pointerType==="touch"||Qi())}function Qa(t,e,n={}){const[s,i,r]=to(t,n);return s.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",p)},h=m=>{c&&(c(m),c=void 0),u()},f=m=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,h(m))},d=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=m=>{if(m.pointerType!=="touch"){if(a){l=!0;return}h(m)}},y=m=>{if(!Ja(m))return;l=!1;const g=e(o,m);typeof g=="function"&&(c=g,o.addEventListener("pointerleave",p,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",d,i)}),r}const eo=(t,e)=>e?t===e?!0:eo(t,e.parentElement):!1,Dn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,tl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function el(t){return tl.has(t.tagName)||t.isContentEditable===!0}const nl=new Set(["INPUT","SELECT","TEXTAREA"]);function sl(t){return nl.has(t.tagName)||t.isContentEditable===!0}const Qt=new WeakSet;function es(t){return e=>{e.key==="Enter"&&t(e)}}function Me(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const il=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=es(()=>{if(Qt.has(n))return;Me(n,"down");const i=es(()=>{Me(n,"up")}),r=()=>Me(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 ns(t){return Dn(t)&&!Qi()}const ss=new WeakSet;function ol(t,e,n={}){const[s,i,r]=to(t,n),o=a=>{const l=a.currentTarget;if(!ns(a)||ss.has(a))return;Qt.add(l),n.stopPropagation&&ss.add(a);const c=e(l,a),u={...i,capture:!0},h=(p,y)=>{window.removeEventListener("pointerup",f,u),window.removeEventListener("pointercancel",d,u),Qt.has(l)&&Qt.delete(l),ns(p)&&typeof c=="function"&&c(p,{success:y})},f=p=>{h(p,l===window||l===document||n.useGlobalTarget||eo(l,p.target))},d=p=>{h(p,!1)};window.addEventListener("pointerup",f,u),window.addEventListener("pointercancel",d,u)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Jt(a)&&(a.addEventListener("focus",c=>il(c,i)),!el(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function En(t){return ii(t)&&"ownerSVGElement"in t}const te=new WeakMap;let ot;const no=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:En(s)&&"getBBox"in s?s.getBBox()[e]:s[n],rl=no("inline","width","offsetWidth"),al=no("block","height","offsetHeight");function ll({target:t,borderBoxSize:e}){var n;(n=te.get(t))==null||n.forEach(s=>{s(t,{get width(){return rl(t,e)},get height(){return al(t,e)}})})}function cl(t){t.forEach(ll)}function ul(){typeof ResizeObserver>"u"||(ot=new ResizeObserver(cl))}function hl(t,e){ot||ul();const n=Ji(t);return n.forEach(s=>{let i=te.get(s);i||(i=new Set,te.set(s,i)),i.add(e),ot==null||ot.observe(s)}),()=>{n.forEach(s=>{const i=te.get(s);i==null||i.delete(e),i!=null&&i.size||ot==null||ot.unobserve(s)})}}const ee=new Set;let wt;function fl(){wt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};ee.forEach(e=>e(t))},window.addEventListener("resize",wt)}function dl(t){return ee.add(t),wt||fl(),()=>{ee.delete(t),!ee.size&&typeof wt=="function"&&(window.removeEventListener("resize",wt),wt=void 0)}}function is(t,e){return typeof t=="function"?dl(t):hl(t,e)}function pl(t){return En(t)&&t.tagName==="svg"}function ml(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],r=t[2+n],o=t[3+n],a=Di(i,r,o);return e?a(s):a}const gl=[...Yi,k,_],yl=t=>gl.find(_i(t)),os=()=>({translate:0,scale:1,origin:0,originPoint:0}),St=()=>({x:os(),y:os()}),rs=()=>({min:0,max:0}),I=()=>({x:rs(),y:rs()}),vl=new WeakMap;function ve(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Nt(t){return typeof t=="string"||Array.isArray(t)}const Rn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ln=["initial",...Rn];function xe(t){return ve(t.animate)||Ln.some(e=>Nt(t[e]))}function so(t){return!!(xe(t)||t.variants)}function xl(t,e,n){for(const s in e){const i=e[s],r=n[s];if(B(i))t.addValue(s,i);else if(B(r))t.addValue(s,gt(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,gt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const nn={current:null},io={current:!1},Tl=typeof window<"u";function wl(){if(io.current=!0,!!Tl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nn.current=t.matches;t.addEventListener("change",e),e()}else nn.current=!1}const as=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let he={};function oo(t){he=t}function Sl(){return he}class Pl{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=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 d=N.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,E.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},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=l,this.blockInitialAnimation=!!o,this.isControllingVariants=xe(n),this.isVariantNode=so(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const p=f[d];c[d]!==void 0&&B(p)&&p.set(c[d])}}mount(e){var n,s;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,vl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,r)=>this.bindToMotionValue(r,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(io.current||wl(),this.shouldReduceMotion=nn.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),it(this.notifyUpdate),it(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.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&&Wi.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,h=new ji({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:U(u)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=Vt.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||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in he){const n=he[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):I()}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<as.length;s++){const i=as[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=xl(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}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}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=gt(n===null?void 0:n,{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"&&(si(s)||oi(s))?s=parseFloat(s):!yl(s)&&_.test(n)&&(s=Zi(e,n)),this.setBaseTarget(e,B(s)?s.get():s)),B(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var r;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=Vn(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!B(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new pn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Mn.render(this.render)}}class ro extends Pl{constructor(){super(...arguments),this.KeyframeResolver=qa}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;B(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class lt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ao({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function bl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Al(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 De(t){return t===void 0||t===1}function sn({scale:t,scaleX:e,scaleY:n}){return!De(t)||!De(e)||!De(n)}function ht(t){return sn(t)||lo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function lo(t){return ls(t.x)||ls(t.y)}function ls(t){return t&&t!=="0%"}function fe(t,e,n){const s=t-n,i=e*s;return n+i}function cs(t,e,n,s,i){return i!==void 0&&(t=fe(t,i,s)),fe(t,n,s)+e}function on(t,e=0,n=1,s,i){t.min=cs(t.min,e,n,s,i),t.max=cs(t.max,e,n,s,i)}function co(t,{x:e,y:n}){on(t.x,e.translate,e.scale,e.originPoint),on(t.y,n.translate,n.scale,n.originPoint)}const us=.999999999999,hs=1.0000000000001;function Vl(t,e,n,s=!1){var a;const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let l=0;l<i;l++){r=n[l],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&&(J(t.x,-r.scroll.offset.x),J(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,co(t,o)),s&&ht(r.latestValues)&&ne(t,r.latestValues,(a=r.layout)==null?void 0:a.layoutBox))}e.x<hs&&e.x>us&&(e.x=1),e.y<hs&&e.y>us&&(e.y=1)}function J(t,e){t.min+=e,t.max+=e}function fs(t,e,n,s,i=.5){const r=D(t.min,t.max,i);on(t,e,n,r,s)}function ds(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function ne(t,e,n){const s=n??t;fs(t.x,ds(e.x,s.x),e.scaleX,e.scale,e.originX),fs(t.y,ds(e.y,s.y),e.scaleY,e.scale,e.originY)}function uo(t,e){return ao(Al(t.getBoundingClientRect(),e))}function Cl(t,e,n){const s=uo(t,n),{scroll:i}=e;return i&&(J(s.x,i.offset.x),J(s.y,i.offset.y)),s}const Ml={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dl=At.length;function El(t,e,n){let s="",i=!0;for(let o=0;o<Dl;o++){const a=At[o],l=t[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=en(l,ue[a]);if(!c){i=!1;const h=Ml[a]||a;s+=`${h}(${u}) `}n&&(e[a]=u)}}const r=t.pathRotation;return r&&(i=!1,s+=`rotate(${en(r,ue.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function kn(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(Vt.has(l)){o=!0;continue}else if(Ti(l)){i[l]=c;continue}else{const u=en(c,ue[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||n?s.transform=El(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}function ho(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i==null||i.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function ps(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ct={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=ps(t,e.target.x),s=ps(t,e.target.y);return`${n}% ${s}%`}},Rl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=_.parse(t);if(i.length>5)return s;const r=_.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=D(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}},rn={borderRadius:{...Ct,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomLeftRadius:Ct,borderBottomRightRadius:Ct,boxShadow:Rl};function fo(t,{layout:e,layoutId:n}){return Vt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!rn[t]||t==="opacity")}function In(t,e,n){var o;const s=t.style,i=e==null?void 0:e.style,r={};if(!s)return r;for(const a in s)(B(s[a])||i&&B(i[a])||fo(a,t)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=s[a]);return r}function Ll(t){return window.getComputedStyle(t)}class kl extends ro{constructor(){super(...arguments),this.type="html",this.renderInstance=ho}readValueFromInstance(e,n){var s;if(Vt.has(n))return(s=this.projection)!=null&&s.isProjecting?ze(n):Jr(e,n);{const i=Ll(e),r=(Ti(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return uo(e,n)}build(e,n,s){kn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return In(e,n,s)}}const Il={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bl={offset:"strokeDashoffset",array:"strokeDasharray"};function Fl(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Il:Bl;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const Ol=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function po(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(kn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete h.transformBox);for(const d of Ol)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Fl(h,i,r,o,!1)}const mo=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"]),go=t=>typeof t=="string"&&t.toLowerCase()==="svg";function jl(t,e,n,s){ho(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(mo.has(i)?i:Cn(i),e.attrs[i])}function yo(t,e,n){const s=In(t,e,n);for(const i in t)if(B(t[i])||B(e[i])){const r=At.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Nl extends ro{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=I}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Vt.has(n)){const s=qi(n);return s&&s.default||0}return n=mo.has(n)?n:Cn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return yo(e,n,s)}build(e,n,s){po(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){jl(e,n,s,i)}mount(e){this.isSVGTag=go(e.tagName),super.mount(e)}}const Wl=Ln.length;function vo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?vo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Wl;n++){const s=Ln[n],i=t.props[s];(Nt(i)||i===!1)&&(e[s]=i)}return e}function xo(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 Ul=[...Rn].reverse(),Kl=Rn.length;function $l(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Na(t,n,s)))}function zl(t){let e=$l(t),n=ms(),s=!0,i=!1;const r=c=>(u,h)=>{var d;const f=mt(t,h,c==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:y,...m}=f;u={...u,...m,...y}}return u};function o(c){e=c(t)}function a(c){const{props:u}=t,h=vo(t.parent)||{},f=[],d=new Set;let p={},y=1/0;for(let g=0;g<Kl;g++){const x=Ul[g],v=n[x],T=u[x]!==void 0?u[x]:h[x],b=Nt(T),M=x===c?v.isActive:null;M===!1&&(y=g);let V=T===h[x]&&T!==u[x]&&b;if(V&&(s||i)&&t.manuallyAnimateOnMount&&(V=!1),v.protectedKeys={...p},!v.isActive&&M===null||!T&&!v.prevProp||ve(T)||typeof T=="boolean")continue;if(x==="exit"&&v.isActive&&M!==!0){v.prevResolvedValues&&(p={...p,...v.prevResolvedValues});continue}const P=Gl(v.prevProp,T);let C=P||x===c&&v.isActive&&!V&&b||g>y&&b,A=!1;const R=Array.isArray(T)?T:[T];let F=R.reduce(r(x),{});M===!1&&(F={});const{prevResolvedValues:et={}}=v,Y={...et,...F},nt=O=>{C=!0,d.has(O)&&(A=!0,d.delete(O)),v.needsAnimating[O]=!0;const K=t.getValue(O);K&&(K.liveStyle=!1)};for(const O in Y){const K=F[O],ct=et[O];if(p.hasOwnProperty(O))continue;let vt=!1;qe(K)&&qe(ct)?vt=!xo(K,ct)||P:vt=K!==ct,vt?K!=null?nt(O):d.add(O):K!==void 0&&d.has(O)?nt(O):v.protectedKeys[O]=!0}v.prevProp=T,v.prevResolvedValues=F,v.isActive&&(p={...p,...F}),(s||i)&&t.blockInitialAnimation&&(C=!1);const q=V&&P;C&&(!q||A)&&f.push(...R.map(O=>{const K={type:x};if(typeof O=="string"&&(s||i)&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:ct}=t,vt=mt(ct,O);if(ct.enteringChildren&&vt){const{delayChildren:Ho}=vt.transition||{};K.delay=Ui(ct.enteringChildren,t,Ho)}}return{animation:O,options:K}}))}if(d.size){const g={};if(typeof u.initial!="boolean"){const x=mt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(g.transition=x.transition)}d.forEach(x=>{const v=t.getBaseTarget(x),T=t.getValue(x);T&&(T.liveStyle=!0),g[x]=v??null}),f.push({animation:g})}let m=!!f.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,i=!1,m?e(f):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=t.variantChildren)==null||f.forEach(d=>{var p;return(p=d.animationState)==null?void 0:p.setActive(c,u)}),n[c].isActive=u;const h=a(c);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ms(),i=!0}}}function Gl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!xo(e,t):!1}function ut(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ms(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}function an(t,e){t.min=e.min,t.max=e.max}function H(t,e){an(t.x,e.x),an(t.y,e.y)}function gs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const To=1e-4,Hl=1-To,Xl=1+To,wo=.01,_l=0-wo,Yl=0+wo;function W(t){return t.max-t.min}function ql(t,e,n){return Math.abs(t-e)<=n}function ys(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Hl&&t.scale<=Xl||isNaN(t.scale))&&(t.scale=1),(t.translate>=_l&&t.translate<=Yl||isNaN(t.translate))&&(t.translate=0)}function kt(t,e,n,s){ys(t.x,e.x,n.x,s?s.originX:void 0),ys(t.y,e.y,n.y,s?s.originY:void 0)}function vs(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+W(e)}function Zl(t,e,n,s){vs(t.x,e.x,n.x,s==null?void 0:s.x),vs(t.y,e.y,n.y,s==null?void 0:s.y)}function xs(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+W(e)}function de(t,e,n,s){xs(t.x,e.x,n.x,s==null?void 0:s.x),xs(t.y,e.y,n.y,s==null?void 0:s.y)}function Ts(t,e,n,s,i){return t-=e,t=fe(t,1/n,s),i!==void 0&&(t=fe(t,1/i,s)),t}function Jl(t,e=0,n=1,s=.5,i,r=t,o=t){if(Q.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=Ts(t.min,e,n,a,i),t.max=Ts(t.max,e,n,a,i)}function ws(t,e,[n,s,i],r,o){Jl(t,e[n],e[s],e[i],e.scale,r,o)}const Ql=["x","scaleX","originX"],tc=["y","scaleY","originY"];function Ss(t,e,n,s){ws(t.x,e,Ql,n?n.x:void 0,s?s.x:void 0),ws(t.y,e,tc,n?n.y:void 0,s?s.y:void 0)}function Ps(t){return t.translate===0&&t.scale===1}function So(t){return Ps(t.x)&&Ps(t.y)}function bs(t,e){return t.min===e.min&&t.max===e.max}function ec(t,e){return bs(t.x,e.x)&&bs(t.y,e.y)}function As(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Po(t,e){return As(t.x,e.x)&&As(t.y,e.y)}function Vs(t){return W(t.x)/W(t.y)}function Cs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Z(t){return[t("x"),t("y")]}function nc(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0: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:c,rotate:u,pathRotation:h,rotateX:f,rotateY:d,skewX:p,skewY:y}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),d&&(s+=`rotateY(${d}deg) `),p&&(s+=`skewX(${p}deg) `),y&&(s+=`skewY(${y}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const bo=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],sc=bo.length,Ms=t=>typeof t=="string"?parseFloat(t):t,Ds=t=>typeof t=="number"||S.test(t);function ic(t,e,n,s,i,r){i?(t.opacity=D(0,n.opacity??1,oc(s)),t.opacityExit=D(e.opacity??1,0,rc(s))):r&&(t.opacity=D(e.opacity??1,n.opacity??1,s));for(let o=0;o<sc;o++){const a=bo[o];let l=Es(e,a),c=Es(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Ds(l)===Ds(c)?(t[a]=Math.max(D(Ms(l),Ms(c),s),0),(Q.test(c)||Q.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}function Es(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const oc=Ao(0,.5,pi),rc=Ao(.5,.95,G);function Ao(t,e,n){return s=>s<t?0:s>e?1:n(Ot(t,e,s))}function ac(t,e,n){const s=B(t)?t:gt(t);return s.start(An("",s,e,n)),s.animation}function Wt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}const lc=(t,e)=>t.depth-e.depth;class cc{constructor(){this.children=[],this.isDirty=!1}add(e){fn(this.children,e),this.isDirty=!0}remove(e){oe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(lc),this.isDirty=!1,this.children.forEach(e)}}function uc(t,e){const n=N.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(it(s),t(r-e))};return E.setup(s,!0),()=>it(s)}function se(t){return B(t)?t.get():t}class hc{constructor(){this.members=[]}add(e){fn(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&&(oe(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(oe(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){var n;for(let s=this.members.indexOf(e)-1;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(e,n){var i;const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:r}=s.options,{layoutDependency:o}=e.options;(r===void 0||r!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),(i=e.root)!=null&&i.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var n,s,i,r,o;(s=(n=e.options).onExitComplete)==null||s.call(n),(o=(i=e.resumingFrom)==null?void 0:(r=i.options).onExitComplete)==null||o.call(r)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(e=this.lead)!=null&&e.snapshot&&(this.lead.snapshot=void 0)}}const ie={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ee=["","X","Y","Z"],fc=1e3;let dc=0;function Re(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Vo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Hi(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&&Vo(s)}function Co({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=dc++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(gc),this.nodes.forEach(Sc),this.nodes.forEach(Pc),this.nodes.forEach(yc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new cc)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new pn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=En(o)&&!pl(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;E.read(()=>{h=window.innerWidth}),t(o,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=uc(f,250),ie.hasAnimatedSinceResize&&(ie.hasAnimatedSinceResize=!1,this.nodes.forEach(ks)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Mc,{onLayoutAnimationStart:y,onLayoutAnimationComplete:m}=c.getProps(),g=!this.targetLayout||!Po(this.targetLayout,d),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...bn(p,"layout"),onPlay:y,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(u,x,v.path)}else h||ks(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),it(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(bc),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&&Vo(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:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(xc),this.nodes.forEach(Rs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ls);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Tc),this.nodes.forEach(wc),this.nodes.forEach(pc),this.nodes.forEach(mc)):this.nodes.forEach(Ls),this.clearAllSnapshots();const a=N.now();j.delta=tt(0,1e3/60,a-j.timestamp),j.timestamp=a,j.isProcessing=!0,Se.update.process(j),Se.preRender.process(j),Se.render.process(j),j.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vc),this.sharedNodes.forEach(Ac)}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&&!W(this.snapshot.measuredBox.x)&&!W(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=I()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!So(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||ht(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Dc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return I();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(Ec))){const{scroll:u}=this.root;u&&(J(a.x,u.offset.x),J(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=I();if(H(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:f}=u;u!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&H(a,o),J(a.x,h.offset.x),J(a.y,h.offset.y))}return a}applyTransform(o,a=!1,l){var u,h;const c=l||I();H(c,o);for(let f=0;f<this.path.length;f++){const d=this.path[f];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(J(c.x,-d.scroll.offset.x),J(c.y,-d.scroll.offset.y)),ht(d.latestValues)&&ne(c,d.latestValues,(u=d.layout)==null?void 0:u.layoutBox)}return ht(this.latestValues)&&ne(c,this.latestValues,(h=this.layout)==null?void 0:h.layoutBox),c}removeTransform(o){var l;const a=I();H(a,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!ht(u.latestValues))continue;let h;u.instance&&(sn(u.latestValues)&&u.updateSnapshot(),h=I(),H(h,u.measurePageBox())),Ss(a,u.latestValues,(l=u.snapshot)==null?void 0:l.layoutBox,h)}return ht(this.latestValues)&&Ss(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!==j.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=j.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!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=I(),this.targetWithTransforms=I()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):H(this.target,this.layout.layoutBox),co(this.target,this.targetDelta)):H(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||sn(this.parent.latestValues)||lo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),de(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),H(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===j.timestamp&&(l=!1),l)return;const{layout:c,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||!(c||u))return;H(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Vl(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=I());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gs(this.prevProjectionDelta.x,this.projectionDelta.x),gs(this.prevProjectionDelta.y,this.projectionDelta.y)),kt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Cs(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=St(),this.projectionDelta=St(),this.projectionDeltaWithTransform=St()}setAnimationOrigin(o,a=!1,l){const c=this.snapshot,u=c?c.latestValues:{},h={...this.latestValues},f=St();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=I(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,g=this.getStack(),x=!g||g.members.length<=1,v=!!(m&&!x&&this.options.crossfade===!0&&!this.path.some(Cc));this.animationProgress=0;let T;const b=l==null?void 0:l.interpolateProjection(o);this.mixTargetDelta=M=>{const V=M/1e3,P=b==null?void 0:b(V);P?(f.x.translate=P.x,f.x.scale=D(o.x.scale,1,V),f.x.origin=o.x.origin,f.x.originPoint=o.x.originPoint,f.y.translate=P.y,f.y.scale=D(o.y.scale,1,V),f.y.origin=o.y.origin,f.y.originPoint=o.y.originPoint):(Is(f.x,o.x,V),Is(f.y,o.y,V)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(de(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Vc(this.relativeTarget,this.relativeTargetOrigin,d,V),T&&ec(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=I()),H(T,this.relativeTarget)),m&&(this.animationValues=h,ic(h,u,this.latestValues,V,v,x)),P&&P.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=P.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(it(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{ie.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=gt(0)),this.motionValue.jump(0,!1),this.currentAnimation=ac(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Mo(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||I();const h=W(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=W(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}H(a,l),ne(a,u),kt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new hc),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Re("z",o,c,this.animationValues);for(let u=0;u<Ee.length;u++)Re(`rotate${Ee[u]}`,o,c,this.animationValues),Re(`skew${Ee[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=se(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=se(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ht(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=nc(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),o.transform=h;const{x:f,y:d}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in rn){if(u[p]===void 0)continue;const{correct:y,applyTo:m,isCSSVariable:g}=rn[p],x=h==="none"?u[p]:y(u[p],c);if(m){const v=m.length;for(let T=0;T<v;T++)o[m[T]]=x}else g?this.options.visualElement.renderState.vars[p]=x:o[p]=x}this.options.layoutId&&(o.pointerEvents=c===this?se(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Rs),this.root.sharedNodes.clear()}}}function pc(t){t.updateLayout()}function mc(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=e.source!==t.layout.source;if(r==="size")Z(h=>{const f=o?e.measuredBox[h]:e.layoutBox[h],d=W(f);f.min=s[h].min,f.max=f.min+d});else if(r==="x"||r==="y"){const h=r==="x"?"y":"x";an(o?e.measuredBox[h]:e.layoutBox[h],s[h])}else Mo(r,e.layoutBox,s)&&Z(h=>{const f=o?e.measuredBox[h]:e.layoutBox[h],d=W(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=St();kt(a,s,e.layoutBox);const l=St();o?kt(l,t.applyTransform(i,!0),e.measuredBox):kt(l,s,e.layoutBox);const c=!So(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=t.options.layoutAnchor||void 0,y=I();de(y,e.layoutBox,f.layoutBox,p);const m=I();de(m,s,d.layoutBox,p),Po(y,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=y,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function gc(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 yc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function vc(t){t.clearSnapshot()}function Rs(t){t.clearMeasurements()}function xc(t){t.isLayoutDirty=!0,t.updateLayout()}function Ls(t){t.isLayoutDirty=!1}function Tc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function wc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ks(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Sc(t){t.resolveTargetDelta()}function Pc(t){t.calcProjection()}function bc(t){t.resetSkewAndRotation()}function Ac(t){t.removeLeadSnapshot()}function Is(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 Bs(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function Vc(t,e,n,s){Bs(t.x,e.x,n.x,s),Bs(t.y,e.y,n.y,s)}function Cc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Mc={duration:.45,ease:[.4,0,.1,1]},Fs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Os=Fs("applewebkit/")&&!Fs("chrome/")?Math.round:G;function js(t){t.min=Os(t.min),t.max=Os(t.max)}function Dc(t){js(t.x),js(t.y)}function Mo(t,e,n){return t==="position"||t==="preserve-aspect"&&!ql(Vs(e),Vs(n),.2)}function Ec(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Rc=Co({attachResizeListener:(t,e)=>Wt(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Le={current:void 0},Do=Co({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Le.current){const t=new Rc({});t.mount(window),t.setOptions({layoutScroll:!0}),Le.current=t}return Le.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Te=w.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Ns(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Lc(...t){return e=>{let n=!1;const s=t.map(i=>{const r=Ns(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():Ns(t[i],null)}}}}function kc(...t){return w.useCallback(Lc(...t),t)}class Ic extends w.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(Jt(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=Jt(s)&&s.offsetWidth||0,r=Jt(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 Bc({children:t,isPresent:e,anchorX:n,anchorY:s,root:i,pop:r}){var f;const o=w.useId(),a=w.useRef(null),l=w.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=w.useContext(Te),u=((f=t.props)==null?void 0:f.ref)??(t==null?void 0:t.ref),h=kc(a,u);return w.useInsertionEffect(()=>{const{width:d,height:p,top:y,left:m,right:g,bottom:x,direction:v}=l.current;if(e||r===!1||!a.current||!d||!p)return;const T=v==="rtl",b=n==="left"?T?`right: ${g}`:`left: ${m}`:T?`left: ${m}`:`right: ${g}`,M=s==="bottom"?`bottom: ${x}`:`top: ${y}`;a.current.dataset.motionPopId=o;const V=document.createElement("style");c&&(V.nonce=c);const P=i??document.head;return P.appendChild(V),V.sheet&&V.sheet.insertRule(`
1
+ import{r as w,j as z}from"./react-CKawGOZZ-f31360a8.js";const hn=w.createContext({});function yt(t){const e=w.useRef(null);return e.current===null&&(e.current=t()),e.current}const Xo=typeof window<"u",me=Xo?w.useLayoutEffect:w.useEffect,ge=w.createContext(null);function fn(t,e){t.indexOf(e)===-1&&t.push(e)}function oe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function _o([...t],e,n){const s=e<0?t.length+e:e;if(s>=0&&s<t.length){const i=n<0?t.length+n:n,[r]=t.splice(e,1);t.splice(i,0,r)}return t}const tt=(t,e,n)=>n>e?e:n<t?t:n;let dn=()=>{};const at={},si=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ii=t=>typeof t=="object"&&t!==null,oi=t=>/^0[^.\s]+$/u.test(t);function ri(t){let e;return()=>(e===void 0&&(e=t()),e)}const G=t=>t,Ut=(...t)=>t.reduce((e,n)=>s=>n(e(s))),Ot=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class pn{constructor(){this.subscriptions=[]}add(e){return fn(this.subscriptions,e),()=>oe(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 U=t=>t*1e3,$=t=>t/1e3,ai=(t,e)=>e?t*(1e3/e):0,li=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Yo=1e-7,qo=12;function Zo(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=li(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Yo&&++a<qo);return o}function Kt(t,e,n,s){if(t===e&&n===s)return G;const i=r=>Zo(r,0,1,t,n);return r=>r===0||r===1?r:li(i(r),e,s)}const ci=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ui=t=>e=>1-t(1-e),hi=Kt(.33,1.53,.69,.99),mn=ui(hi),fi=ci(mn),di=t=>t>=1?1:(t*=2)<1?.5*mn(t):.5*(2-Math.pow(2,-10*(t-1))),gn=t=>1-Math.sin(Math.acos(t)),pi=ui(gn),mi=ci(gn),Jo=Kt(.42,0,1,1),Qo=Kt(0,0,.58,1),gi=Kt(.42,0,.58,1),tr=t=>Array.isArray(t)&&typeof t[0]!="number",yi=t=>Array.isArray(t)&&typeof t[0]=="number",er={linear:G,easeIn:Jo,easeInOut:gi,easeOut:Qo,circIn:gn,circInOut:mi,circOut:pi,backIn:mn,backInOut:fi,backOut:hi,anticipate:di},nr=t=>typeof t=="string",jn=t=>{if(yi(t)){dn(t.length===4);const[e,n,s,i]=t;return Kt(e,n,s,i)}else if(nr(t))return er[t];return t},Gt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function sr(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){r.has(c)&&(l.schedule(c),t()),c(o)}const l={schedule:(c,u=!1,h=!1)=>{const d=h&&s?e:n;return u&&r.add(c),d.add(c),c},cancel:c=>{n.delete(c),r.delete(c)},process:c=>{if(o=c,s){i=!0;return}s=!0;const u=e;e=n,n=u,e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(c))}};return l}const ir=40;function vi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Gt.reduce((v,T)=>(v[T]=sr(r),v),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:f,render:d,postRender:p}=o,y=()=>{const v=at.useManualTiming,T=v?i.timestamp:performance.now();n=!1,v||(i.delta=s?1e3/60:Math.max(Math.min(T-i.timestamp,ir),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),f.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},m=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:Gt.reduce((v,T)=>{const b=o[T];return v[T]=(M,V=!1,P=!1)=>(n||m(),b.schedule(M,V,P)),v},{}),cancel:v=>{for(let T=0;T<Gt.length;T++)o[Gt[T]].cancel(v)},state:i,steps:o}}const{schedule:E,cancel:it,state:j,steps:Se}=vi(typeof requestAnimationFrame<"u"?requestAnimationFrame:G,!0);let Zt;function or(){Zt=void 0}const N={now:()=>(Zt===void 0&&N.set(j.isProcessing||at.useManualTiming?j.timestamp:performance.now()),Zt),set:t=>{Zt=t,queueMicrotask(or)}},xi=t=>e=>typeof e=="string"&&e.startsWith(t),Ti=xi("--"),rr=xi("var(--"),yn=t=>rr(t)?ar.test(t.split("/*")[0].trim()):!1,ar=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Nn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const bt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},jt={...bt,transform:t=>tt(0,1,t)},Ht={...bt,default:1},Et=t=>Math.round(t*1e5)/1e5,vn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lr(t){return t==null}const cr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xn=(t,e)=>n=>!!(typeof n=="string"&&cr.test(n)&&n.startsWith(t)||e&&!lr(n)&&Object.prototype.hasOwnProperty.call(n,e)),wi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(vn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ur=t=>tt(0,255,t),Pe={...bt,transform:t=>Math.round(ur(t))},ft={test:xn("rgb","red"),parse:wi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Pe.transform(t)+", "+Pe.transform(e)+", "+Pe.transform(n)+", "+Et(jt.transform(s))+")"};function hr(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 je={test:xn("#"),parse:hr,transform:ft.transform},$t=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),st=$t("deg"),Q=$t("%"),S=$t("px"),fr=$t("vh"),dr=$t("vw"),Wn={...Q,parse:t=>Q.parse(t)/100,transform:t=>Q.transform(t*100)},Tt={test:xn("hsl","hue"),parse:wi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Q.transform(Et(e))+", "+Q.transform(Et(n))+", "+Et(jt.transform(s))+")"},k={test:t=>ft.test(t)||je.test(t)||Tt.test(t),parse:t=>ft.test(t)?ft.parse(t):Tt.test(t)?Tt.parse(t):je.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ft.transform(t):Tt.transform(t),getAnimatableNone:t=>{const e=k.parse(t);return e.alpha=0,k.transform(e)}},pr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function mr(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(vn))==null?void 0:e.length)||0)+(((n=t.match(pr))==null?void 0:n.length)||0)>0}const Si="number",Pi="color",gr="var",yr="var(",Un="${}",vr=/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 Pt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(vr,l=>(k.test(l)?(s.color.push(r),i.push(Pi),n.push(k.parse(l))):l.startsWith(yr)?(s.var.push(r),i.push(gr),n.push(l)):(s.number.push(r),i.push(Si),n.push(parseFloat(l))),++r,Un)).split(Un);return{values:n,split:a,indexes:s,types:i}}function xr(t){return Pt(t).values}function bi({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===Si?i+=Et(s[r]):o===Pi?i+=k.transform(s[r]):i+=s[r]}return i}}function Tr(t){return bi(Pt(t))}const wr=t=>typeof t=="number"?0:k.test(t)?k.getAnimatableNone(t):t,Sr=(t,e)=>typeof t=="number"?e!=null&&e.trim().endsWith("/")?t:0:wr(t);function Pr(t){const e=Pt(t);return bi(e)(e.values.map((s,i)=>Sr(s,e.split[i])))}const _={test:mr,parse:xr,createTransformer:Tr,getAnimatableNone:Pr};function be(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 br({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,l=2*n-a;i=be(l,a,t+1/3),r=be(l,a,t),o=be(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function re(t,e){return n=>n>0?e:t}const D=(t,e,n)=>t+(e-t)*n,Ae=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Ar=[je,ft,Tt],Vr=t=>Ar.find(e=>e.test(t));function Kn(t){const e=Vr(t);if(!e)return!1;let n=e.parse(t);return e===Tt&&(n=br(n)),n}const $n=(t,e)=>{const n=Kn(t),s=Kn(e);if(!n||!s)return re(t,e);const i={...n};return r=>(i.red=Ae(n.red,s.red,r),i.green=Ae(n.green,s.green,r),i.blue=Ae(n.blue,s.blue,r),i.alpha=D(n.alpha,s.alpha,r),ft.transform(i))},Ne=new Set(["none","hidden"]);function Cr(t,e){return Ne.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Mr(t,e){return n=>D(t,e,n)}function Tn(t){return typeof t=="number"?Mr:typeof t=="string"?yn(t)?re:k.test(t)?$n:Rr:Array.isArray(t)?Ai:typeof t=="object"?k.test(t)?$n:Dr:re}function Ai(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Tn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Dr(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Tn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Er(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 Rr=(t,e)=>{const n=_.createTransformer(e),s=Pt(t),i=Pt(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?Ne.has(t)&&!i.values.length||Ne.has(e)&&!s.values.length?Cr(t,e):Ut(Ai(Er(s,i),i.values),n):re(t,e)};function Vi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):Tn(t)(t,e)}const Lr=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>it(e),now:()=>j.isProcessing?j.timestamp:N.now()}},Ci=(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)})`},ae=2e4;function wn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ae;)e+=n,s=t.next(e);return e>=ae?1/0:e}function kr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(wn(s),ae);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:$(i)}}const L={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function We(t,e){return t*Math.sqrt(1-e*e)}const Ir=12;function Br(t,e,n){let s=n;for(let i=1;i<Ir;i++)s=s-t(s)/e(s);return s}const Ve=.001;function Fr({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:s=L.mass}){let i,r,o=1-e;o=tt(L.minDamping,L.maxDamping,o),t=tt(L.minDuration,L.maxDuration,$(t)),o<1?(i=c=>{const u=c*o,h=u*t,f=u-n,d=We(c,o),p=Math.exp(-h);return Ve-f/d*p},r=c=>{const h=c*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-h),y=We(Math.pow(c,2),o);return(-i(c)+Ve>0?-1:1)*((f-d)*p)/y}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-Ve+u*h},r=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Br(i,r,a);if(t=U(t),isNaN(l))return{stiffness:L.stiffness,damping:L.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const Or=["duration","bounce"],jr=["stiffness","damping","mass"];function zn(t,e){return e.some(n=>t[n]!==void 0)}function Nr(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!zn(t,jr)&&zn(t,Or))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*tt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:r}}else{const n=Fr({...t,velocity:0});e={...e,...n,mass:L.mass},e.isResolvedFromDuration=!0}return e}function le(t=L.visualDuration,e=L.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:h,velocity:f,isResolvedFromDuration:d}=Nr({...n,velocity:-$(n.velocity||0)}),p=f||0,y=c/(2*Math.sqrt(l*u)),m=o-r,g=$(Math.sqrt(l/u)),x=Math.abs(m)<5;s||(s=x?L.restSpeed.granular:L.restSpeed.default),i||(i=x?L.restDelta.granular:L.restDelta.default);let v,T,b,M,V,P;if(y<1)b=We(g,y),M=(p+y*g*m)/b,v=A=>{const R=Math.exp(-y*g*A);return o-R*(M*Math.sin(b*A)+m*Math.cos(b*A))},V=y*g*M+m*b,P=y*g*m-M*b,T=A=>Math.exp(-y*g*A)*(V*Math.sin(b*A)+P*Math.cos(b*A));else if(y===1){v=R=>o-Math.exp(-g*R)*(m+(p+g*m)*R);const A=p+g*m;T=R=>Math.exp(-g*R)*(g*A*R-p)}else{const A=g*Math.sqrt(y*y-1);v=Y=>{const nt=Math.exp(-y*g*Y),q=Math.min(A*Y,300);return o-nt*((p+y*g*m)*Math.sinh(q)+A*m*Math.cosh(q))/A};const R=(p+y*g*m)/A,F=y*g*R-m*A,et=y*g*m-R*A;T=Y=>{const nt=Math.exp(-y*g*Y),q=Math.min(A*Y,300);return nt*(F*Math.sinh(q)+et*Math.cosh(q))}}const C={calculatedDuration:d&&h||null,velocity:A=>U(T(A)),next:A=>{if(!d&&y<1){const F=Math.exp(-y*g*A),et=Math.sin(b*A),Y=Math.cos(b*A),nt=o-F*(M*et+m*Y),q=U(F*(V*et+P*Y));return a.done=Math.abs(q)<=s&&Math.abs(o-nt)<=i,a.value=a.done?o:nt,a}const R=v(A);if(d)a.done=A>=h;else{const F=U(T(A));a.done=Math.abs(F)<=s&&Math.abs(o-R)<=i}return a.value=a.done?o:R,a},toString:()=>{const A=Math.min(wn(C),ae),R=Ci(F=>C.next(A*F).value,A,30);return A+"ms "+R},toTransition:()=>{}};return C}le.applyToOptions=t=>{const e=kr(t,100,le);return t.ease=e.ease,t.duration=U(e.duration),t.type="keyframes",t};const Wr=5;function Mi(t,e,n){const s=Math.max(e-Wr,0);return ai(n-t(s),e-s)}function Ue({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=P=>a!==void 0&&P<a||l!==void 0&&P>l,p=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let y=n*e;const m=h+y,g=o===void 0?m:o(m);g!==m&&(y=g-h);const x=P=>-y*Math.exp(-P/s),v=P=>g+x(P),T=P=>{const C=x(P),A=v(P);f.done=Math.abs(C)<=c,f.value=f.done?g:A};let b,M;const V=P=>{d(f.value)&&(b=P,M=le({keyframes:[f.value,p(f.value)],velocity:Mi(v,P,f.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return V(0),{calculatedDuration:null,next:P=>{let C=!1;return!M&&b===void 0&&(C=!0,T(P),V(P)),b!==void 0&&P>=b?M.next(P-b):(!C&&T(P),f)}}}function Ur(t,e,n){const s=[],i=n||at.mix||Vi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||G:e;a=Ut(l,a)}s.push(a)}return s}function Di(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(dn(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=Ur(e,s,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const f=Ot(t[h],t[h+1],u);return a[h](f)};return n?u=>c(tt(t[0],t[r-1],u)):c}function Kr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Ot(0,e,s);t.push(D(n,1,i))}}function $r(t){const e=[0];return Kr(e,t.length-1),e}function zr(t,e){return t.map(n=>n*e)}function Gr(t,e){return t.map(()=>e||gi).splice(0,t.length-1)}function Rt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=tr(s)?s.map(jn):jn(s),r={done:!1,value:e[0]},o=zr(n&&n.length===e.length?n:$r(e),t),a=Di(o,e,{ease:Array.isArray(i)?i:Gr(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Hr=t=>t!==null;function ye(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Hr),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Xr={decay:Ue,inertia:Ue,tween:Rt,keyframes:Rt,spring:le};function Ei(t){typeof t.type=="string"&&(t.type=Xr[t.type])}class Sn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const _r=t=>t/100;class ce extends Sn{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=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Ei(e);const{type:n=Rt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||Rt;l!==Rt&&typeof a[0]!="number"&&(this.mixKeyframes=Ut(_r,Vi(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=wn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}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:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:d,type:p,onUpdate:y,finalKeyframe:m}=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 g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,T=s;if(h){const P=Math.min(this.currentTime,i)/a;let C=Math.floor(P),A=P%1;!A&&P>=1&&(A=1),A===1&&C--,C=Math.min(C,h+1),!!(C%2)&&(f==="reverse"?(A=1-A,d&&(A-=d/a)):f==="mirror"&&(T=o)),v=tt(0,1,A)*a}let b;x?(this.delayState.value=u[0],b=this.delayState):b=T.next(v),r&&!x&&(b.value=r(b.value));let{done:M}=b;!x&&l!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return V&&p!==Ue&&(b.value=ye(u,this.options,m,this.speed)),y&&y(b.value),V&&this.finish(),b}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=U(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(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return Mi(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(N.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=$(this.currentTime))}play(){var i,r;if(this.isStopped)return;const{driver:e=Lr,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(r=(i=this.options).onPlay)==null||r.call(i);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(N.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}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){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Yr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const dt=t=>t*180/Math.PI,Ke=t=>{const e=dt(Math.atan2(t[1],t[0]));return $e(e)},qr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ke,rotateZ:Ke,skewX:t=>dt(Math.atan(t[1])),skewY:t=>dt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},$e=t=>(t=t%360,t<0&&(t+=360),t),Gn=Ke,Hn=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:Hn,scaleY:Xn,scale:t=>(Hn(t)+Xn(t))/2,rotateX:t=>$e(dt(Math.atan2(t[6],t[5]))),rotateY:t=>$e(dt(Math.atan2(-t[2],t[0]))),rotateZ:Gn,rotate:Gn,skewX:t=>dt(Math.atan(t[4])),skewY:t=>dt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ze(t){return t.includes("scale")?1:0}function Ge(t,e){if(!t||t==="none")return ze(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=qr,i=a}if(!i)return ze(e);const r=s[e],o=i[1].split(",").map(Qr);return typeof r=="function"?r(o):o[r]}const Jr=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ge(n,e)};function Qr(t){return parseFloat(t.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vt=new Set([...At,"pathRotation"]),_n=t=>t===bt||t===S,ta=new Set(["x","y","z"]),ea=At.filter(t=>!ta.has(t));function na(t){const e=[];return ea.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const rt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ge(e,"x"),y:(t,{transform:e})=>Ge(e,"y")};rt.translateX=rt.x;rt.translateY=rt.y;const pt=new Set;let He=!1,Xe=!1,_e=!1;function Ri(){if(Xe){const t=Array.from(pt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=na(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))==null||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Xe=!1,He=!1,pt.forEach(t=>t.complete(_e)),pt.clear()}function Li(){pt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Xe=!0)})}function sa(){_e=!0,Li(),Ri(),_e=!1}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?(pt.add(this),He||(He=!0,E.read(Li),E.resolveKeyframes(Ri))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i==null?void 0:i.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}Yr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),pt.delete(this)}cancel(){this.state==="scheduled"&&(pt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ia=t=>t.startsWith("--");function ki(t,e,n){ia(e)?t.style.setProperty(e,n):t.style[e]=n}const oa={};function Ii(t,e){const n=ri(t);return()=>oa[e]??n()}const ra=Ii(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Bi=Ii(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Mt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Yn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mt([0,.65,.55,1]),circOut:Mt([.55,0,1,.45]),backIn:Mt([.31,.01,.66,-.59]),backOut:Mt([.33,1.53,.69,.99])};function Fi(t,e){if(t)return typeof t=="function"?Bi()?Ci(t,e):"ease-out":yi(t)?Mt(t):Array.isArray(t)?t.map(n=>Fi(n,e)||Yn.easeOut):Yn[t]}function aa(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=Fi(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 c&&(f.pseudoElement=c),t.animate(u,f)}function Oi(t){return typeof t=="function"&&"applyToOptions"in t}function la({type:t,...e}){return Oi(t)&&Bi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ji extends Sn{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:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,dn(typeof e.type!="string");const c=la(e);this.animation=aa(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=ye(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),ki(n,s,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}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(){var n,s,i;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).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=U(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,rangeStart:n,rangeEnd:s,observe:i}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&ra()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),G):i(this)}}const Ni={anticipate:di,backInOut:fi,circInOut:mi};function ca(t){return t in Ni}function ua(t){typeof t.ease=="string"&&ca(t.ease)&&(t.ease=Ni[t.ease])}const Ce=10;class ha extends ji{constructor(e){ua(e),Ei(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 ce({...o,autoplay:!1}),l=Math.max(Ce,N.now()-this.startTime),c=tt(0,Ce,l-Ce),u=a.sample(l).value,{name:h}=this.options;r&&h&&ki(r,h,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const qn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(_.test(t)||t==="0")&&!t.startsWith("url("));function fa(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 da(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=qn(i,e),a=qn(r,e);return!o||!a?!1:fa(t)||(n==="spring"||Oi(n))&&s}function Ye(t){t.duration=0,t.type="keyframes"}const Wi=new Set(["opacity","clipPath","filter","transform"]),pa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ma(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&pa.test(t[e]))return!0;return!1}const ga=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ya=ri(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function va(t){var h;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!(((h=e==null?void 0:e.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return ya()&&n&&(Wi.has(n)||ga.has(n)&&ma(a))&&(n!=="transform"||!u)&&!c&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const xa=40;class Ta extends Sn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){var p;super(),this.stop=()=>{var y,m;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(m=this.keyframeResolver)==null||m.cancel()},this.createdAt=N.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...h},d=(u==null?void 0:u.KeyframeResolver)||Pn;this.keyframeResolver=new d(a,(y,m,g)=>this.onKeyframesResolved(y,m,f,!g),l,c,u),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(e,n,s,i){var g,x;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=N.now();let h=!0;da(e,r,o,a)||(h=!1,(at.instantAnimations||!l)&&(u==null||u(ye(e,s,n))),e[0]=e[e.length-1],Ye(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>xa?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},p=h&&!c&&va(d),y=(x=(g=d.motionValue)==null?void 0:g.owner)==null?void 0:x.current;let m;if(p)try{m=new ha({...d,element:y})}catch{m=new ce(d)}else m=new ce(d);m.finished.then(()=>{this.notifyFinished()}).catch(G),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.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(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function Ui(t,e,n,s=0,i=1){const r=Array.from(t).sort((c,u)=>c.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 Zn=30,wa=t=>!isNaN(parseFloat(t)),Lt={current:void 0};class Sa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var r;const i=N.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new pn);const s=this.events[e].add(n);return e==="change"?()=>{s(),E.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){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(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Lt.current&&Lt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Zn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zn);return ai(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gt(t,e){return new Sa(t,e)}function Ki(t,e){if(t!=null&&t.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function bn(t,e){const n=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return n!==t?Ki(n,t):n}const Pa={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},Va={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ca=(t,{keyframes:e})=>e.length>2?Aa:Vt.has(t)?t.startsWith("scale")?ba(e[1]):Pa:Va,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)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-U(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,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,Ca(t,u)),u.duration&&(u.duration=U(u.duration)),u.repeatDelay&&(u.repeatDelay=U(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ye(u),u.delay===0&&(h=!0)),(at.instantAnimations||at.skipAnimations||i!=null&&i.shouldSkipAnimations||a.skipAnimations)&&(h=!0,Ye(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=ye(u.keyframes,a);if(f!==void 0){E.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new ce(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 si(o)?parseFloat(o):o}return yn(i)?$i(i,e,n+1):i}function Jn(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Vn(t,e,n,s){if(typeof e=="function"){const[i,r]=Jn(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Jn(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function mt(t,e,n){const s=t.getProps();return Vn(s,e,n!==void 0?n:s.custom,t)}const zi=new Set(["width","height","top","left","right","bottom",...At]),qe=t=>Array.isArray(t);function La(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,gt(n))}function ka(t){return qe(t)?t[t.length-1]||0:t}function Ia(t,e){const n=mt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=ka(r[o]);La(t,o,a)}}const B=t=>!!(t&&t.getVelocity);function Ba(t){return!!(B(t)&&t.add)}function Ze(t,e){const n=t.getValue("willChange");if(Ba(n))return n.add(e);if(!n&&at.WillChange){const s=new at.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Cn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Fa="framerAppearId",Gi="data-"+Cn(Fa);function Hi(t){return t.props[Gi]}function Oa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Xi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const l=t.getDefaultTransition();r=r?Ki(r,l):l;const c=r==null?void 0:r.reduceMotion,u=r==null?void 0:r.skipAnimations;s&&(r=s);const h=[],f=i&&t.animationState&&t.animationState.getState()[i],d=r==null?void 0:r.path;d&&d.animateVisualElement(t,a,r,n,h);for(const p in a){const y=t.getValue(p,t.latestValues[p]??null),m=a[p];if(m===void 0||f&&Oa(f,p))continue;const g={delay:n,...bn(r||{},p)};u&&(g.skipAnimations=!0);const x=y.get();if(x!==void 0&&!y.isAnimating()&&!Array.isArray(m)&&m===x&&!g.velocity){E.update(()=>y.set(m));continue}let v=!1;if(window.MotionHandoffAnimation){const M=Hi(t);if(M){const V=window.MotionHandoffAnimation(M,p,E);V!==null&&(g.startTime=V,v=!0)}}Ze(t,p);const T=c??t.shouldReduceMotion;y.start(An(p,y,m,T&&zi.has(p)?{type:!1}:g,t,v));const b=y.animation;b&&h.push(b)}if(o){const p=()=>E.update(()=>{o&&Ia(t,o)});h.length?Promise.all(h).then(p):p()}return h}function Je(t,e,n={}){var l;const s=mt(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Xi(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:f}=i;return ja(t,e,c,u,h,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[r,o]:[o,r];return c().then(()=>u())}else return Promise.all([r(),o(n.delay)])}function ja(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Je(l,e,{...o,delay:n+(typeof s=="function"?0:s)+Ui(t.variantChildren,l,s,i,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Na(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Je(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Je(t,e,n);else{const i=typeof e=="function"?mt(t,e,n.custom):e;s=Promise.all(Xi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Wa={test:t=>t==="auto",parse:t=>t},_i=t=>e=>e.test(t),Yi=[bt,S,Q,st,dr,fr,Wa],Qn=t=>Yi.find(_i(t));function Ua(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||oi(t):!0}const Ka=new Set(["brightness","contrast","saturate","opacity"]);function $a(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(vn)||[];if(!s)return t;const i=n.replace(s,"");let r=Ka.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const za=/\b([a-z-]*)\(.*?\)/gu,Qe={..._,getAnimatableNone:t=>{const e=t.match(za);return e?e.map($a).join(" "):t}},tn={..._,getAnimatableNone:t=>{const e=_.parse(t);return _.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},ts={...bt,transform:Math.round},Ga={rotate:st,pathRotation:st,rotateX:st,rotateY:st,rotateZ:st,scale:Ht,scaleX:Ht,scaleY:Ht,scaleZ:Ht,skew:st,skewX:st,skewY:st,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:jt,originX:Wn,originY:Wn,originZ:S},ue={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...Ga,zIndex:ts,fillOpacity:jt,strokeOpacity:jt,numOctaves:ts},Ha={...ue,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:Qe,WebkitFilter:Qe,mask:tn,WebkitMask:tn},qi=t=>Ha[t],Xa=new Set([Qe,tn]);function Zi(t,e){let n=qi(t);return Xa.has(n)||(n=_),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const _a=new Set(["auto","none","0"]);function Ya(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!_a.has(r)&&Pt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Zi(n,i)}class qa 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(),yn(h))){const f=$i(h,n.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!zi.has(s)||e.length!==2)return;const[i,r]=e,o=Qn(i),a=Qn(r),l=Nn(i),c=Nn(r);if(l!==c&&rt[s]){this.needsMeasurement=!0;return}if(o!==a)if(_n(o)&&_n(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else rt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ua(e[i]))&&s.push(i);s.length&&Ya(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=rt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{e.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Ji(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=(n==null?void 0:n[t])??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const en=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Jt(t){return ii(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Mn}=vi(queueMicrotask,!1),X={x:!1,y:!1};function Qi(){return X.x||X.y}function Za(t){return t==="x"||t==="y"?X[t]?null:(X[t]=!0,()=>{X[t]=!1}):X.x||X.y?null:(X.x=X.y=!0,()=>{X.x=X.y=!1})}function to(t,e){const n=Ji(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Ja(t){return!(t.pointerType==="touch"||Qi())}function Qa(t,e,n={}){const[s,i,r]=to(t,n);return s.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",p)},h=m=>{c&&(c(m),c=void 0),u()},f=m=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,h(m))},d=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=m=>{if(m.pointerType!=="touch"){if(a){l=!0;return}h(m)}},y=m=>{if(!Ja(m))return;l=!1;const g=e(o,m);typeof g=="function"&&(c=g,o.addEventListener("pointerleave",p,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",d,i)}),r}const eo=(t,e)=>e?t===e?!0:eo(t,e.parentElement):!1,Dn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,tl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function el(t){return tl.has(t.tagName)||t.isContentEditable===!0}const nl=new Set(["INPUT","SELECT","TEXTAREA"]);function sl(t){return nl.has(t.tagName)||t.isContentEditable===!0}const Qt=new WeakSet;function es(t){return e=>{e.key==="Enter"&&t(e)}}function Me(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const il=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=es(()=>{if(Qt.has(n))return;Me(n,"down");const i=es(()=>{Me(n,"up")}),r=()=>Me(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 ns(t){return Dn(t)&&!Qi()}const ss=new WeakSet;function ol(t,e,n={}){const[s,i,r]=to(t,n),o=a=>{const l=a.currentTarget;if(!ns(a)||ss.has(a))return;Qt.add(l),n.stopPropagation&&ss.add(a);const c=e(l,a),u={...i,capture:!0},h=(p,y)=>{window.removeEventListener("pointerup",f,u),window.removeEventListener("pointercancel",d,u),Qt.has(l)&&Qt.delete(l),ns(p)&&typeof c=="function"&&c(p,{success:y})},f=p=>{h(p,l===window||l===document||n.useGlobalTarget||eo(l,p.target))},d=p=>{h(p,!1)};window.addEventListener("pointerup",f,u),window.addEventListener("pointercancel",d,u)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Jt(a)&&(a.addEventListener("focus",c=>il(c,i)),!el(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function En(t){return ii(t)&&"ownerSVGElement"in t}const te=new WeakMap;let ot;const no=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:En(s)&&"getBBox"in s?s.getBBox()[e]:s[n],rl=no("inline","width","offsetWidth"),al=no("block","height","offsetHeight");function ll({target:t,borderBoxSize:e}){var n;(n=te.get(t))==null||n.forEach(s=>{s(t,{get width(){return rl(t,e)},get height(){return al(t,e)}})})}function cl(t){t.forEach(ll)}function ul(){typeof ResizeObserver>"u"||(ot=new ResizeObserver(cl))}function hl(t,e){ot||ul();const n=Ji(t);return n.forEach(s=>{let i=te.get(s);i||(i=new Set,te.set(s,i)),i.add(e),ot==null||ot.observe(s)}),()=>{n.forEach(s=>{const i=te.get(s);i==null||i.delete(e),i!=null&&i.size||ot==null||ot.unobserve(s)})}}const ee=new Set;let wt;function fl(){wt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};ee.forEach(e=>e(t))},window.addEventListener("resize",wt)}function dl(t){return ee.add(t),wt||fl(),()=>{ee.delete(t),!ee.size&&typeof wt=="function"&&(window.removeEventListener("resize",wt),wt=void 0)}}function is(t,e){return typeof t=="function"?dl(t):hl(t,e)}function pl(t){return En(t)&&t.tagName==="svg"}function ml(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],r=t[2+n],o=t[3+n],a=Di(i,r,o);return e?a(s):a}const gl=[...Yi,k,_],yl=t=>gl.find(_i(t)),os=()=>({translate:0,scale:1,origin:0,originPoint:0}),St=()=>({x:os(),y:os()}),rs=()=>({min:0,max:0}),I=()=>({x:rs(),y:rs()}),vl=new WeakMap;function ve(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Nt(t){return typeof t=="string"||Array.isArray(t)}const Rn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ln=["initial",...Rn];function xe(t){return ve(t.animate)||Ln.some(e=>Nt(t[e]))}function so(t){return!!(xe(t)||t.variants)}function xl(t,e,n){for(const s in e){const i=e[s],r=n[s];if(B(i))t.addValue(s,i);else if(B(r))t.addValue(s,gt(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,gt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const nn={current:null},io={current:!1},Tl=typeof window<"u";function wl(){if(io.current=!0,!!Tl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nn.current=t.matches;t.addEventListener("change",e),e()}else nn.current=!1}const as=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let he={};function oo(t){he=t}function Sl(){return he}class Pl{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=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 d=N.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,E.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},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=l,this.blockInitialAnimation=!!o,this.isControllingVariants=xe(n),this.isVariantNode=so(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const p=f[d];c[d]!==void 0&&B(p)&&p.set(c[d])}}mount(e){var n,s;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,vl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,r)=>this.bindToMotionValue(r,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(io.current||wl(),this.shouldReduceMotion=nn.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),it(this.notifyUpdate),it(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.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&&Wi.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,h=new ji({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:U(u)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=Vt.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||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in he){const n=he[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):I()}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<as.length;s++){const i=as[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=xl(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}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}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=gt(n===null?void 0:n,{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"&&(si(s)||oi(s))?s=parseFloat(s):!yl(s)&&_.test(n)&&(s=Zi(e,n)),this.setBaseTarget(e,B(s)?s.get():s)),B(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var r;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=Vn(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!B(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new pn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Mn.render(this.render)}}class ro extends Pl{constructor(){super(...arguments),this.KeyframeResolver=qa}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;B(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class lt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ao({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function bl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Al(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 De(t){return t===void 0||t===1}function sn({scale:t,scaleX:e,scaleY:n}){return!De(t)||!De(e)||!De(n)}function ht(t){return sn(t)||lo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function lo(t){return ls(t.x)||ls(t.y)}function ls(t){return t&&t!=="0%"}function fe(t,e,n){const s=t-n,i=e*s;return n+i}function cs(t,e,n,s,i){return i!==void 0&&(t=fe(t,i,s)),fe(t,n,s)+e}function on(t,e=0,n=1,s,i){t.min=cs(t.min,e,n,s,i),t.max=cs(t.max,e,n,s,i)}function co(t,{x:e,y:n}){on(t.x,e.translate,e.scale,e.originPoint),on(t.y,n.translate,n.scale,n.originPoint)}const us=.999999999999,hs=1.0000000000001;function Vl(t,e,n,s=!1){var a;const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let l=0;l<i;l++){r=n[l],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&&(J(t.x,-r.scroll.offset.x),J(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,co(t,o)),s&&ht(r.latestValues)&&ne(t,r.latestValues,(a=r.layout)==null?void 0:a.layoutBox))}e.x<hs&&e.x>us&&(e.x=1),e.y<hs&&e.y>us&&(e.y=1)}function J(t,e){t.min+=e,t.max+=e}function fs(t,e,n,s,i=.5){const r=D(t.min,t.max,i);on(t,e,n,r,s)}function ds(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function ne(t,e,n){const s=n??t;fs(t.x,ds(e.x,s.x),e.scaleX,e.scale,e.originX),fs(t.y,ds(e.y,s.y),e.scaleY,e.scale,e.originY)}function uo(t,e){return ao(Al(t.getBoundingClientRect(),e))}function Cl(t,e,n){const s=uo(t,n),{scroll:i}=e;return i&&(J(s.x,i.offset.x),J(s.y,i.offset.y)),s}const Ml={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dl=At.length;function El(t,e,n){let s="",i=!0;for(let o=0;o<Dl;o++){const a=At[o],l=t[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=en(l,ue[a]);if(!c){i=!1;const h=Ml[a]||a;s+=`${h}(${u}) `}n&&(e[a]=u)}}const r=t.pathRotation;return r&&(i=!1,s+=`rotate(${en(r,ue.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function kn(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(Vt.has(l)){o=!0;continue}else if(Ti(l)){i[l]=c;continue}else{const u=en(c,ue[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||n?s.transform=El(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}function ho(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i==null||i.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function ps(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ct={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=ps(t,e.target.x),s=ps(t,e.target.y);return`${n}% ${s}%`}},Rl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=_.parse(t);if(i.length>5)return s;const r=_.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=D(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}},rn={borderRadius:{...Ct,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomLeftRadius:Ct,borderBottomRightRadius:Ct,boxShadow:Rl};function fo(t,{layout:e,layoutId:n}){return Vt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!rn[t]||t==="opacity")}function In(t,e,n){var o;const s=t.style,i=e==null?void 0:e.style,r={};if(!s)return r;for(const a in s)(B(s[a])||i&&B(i[a])||fo(a,t)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=s[a]);return r}function Ll(t){return window.getComputedStyle(t)}class kl extends ro{constructor(){super(...arguments),this.type="html",this.renderInstance=ho}readValueFromInstance(e,n){var s;if(Vt.has(n))return(s=this.projection)!=null&&s.isProjecting?ze(n):Jr(e,n);{const i=Ll(e),r=(Ti(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return uo(e,n)}build(e,n,s){kn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return In(e,n,s)}}const Il={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bl={offset:"strokeDashoffset",array:"strokeDasharray"};function Fl(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Il:Bl;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const Ol=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function po(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(kn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete h.transformBox);for(const d of Ol)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Fl(h,i,r,o,!1)}const mo=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"]),go=t=>typeof t=="string"&&t.toLowerCase()==="svg";function jl(t,e,n,s){ho(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(mo.has(i)?i:Cn(i),e.attrs[i])}function yo(t,e,n){const s=In(t,e,n);for(const i in t)if(B(t[i])||B(e[i])){const r=At.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Nl extends ro{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=I}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Vt.has(n)){const s=qi(n);return s&&s.default||0}return n=mo.has(n)?n:Cn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return yo(e,n,s)}build(e,n,s){po(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){jl(e,n,s,i)}mount(e){this.isSVGTag=go(e.tagName),super.mount(e)}}const Wl=Ln.length;function vo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?vo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Wl;n++){const s=Ln[n],i=t.props[s];(Nt(i)||i===!1)&&(e[s]=i)}return e}function xo(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 Ul=[...Rn].reverse(),Kl=Rn.length;function $l(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Na(t,n,s)))}function zl(t){let e=$l(t),n=ms(),s=!0,i=!1;const r=c=>(u,h)=>{var d;const f=mt(t,h,c==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:y,...m}=f;u={...u,...m,...y}}return u};function o(c){e=c(t)}function a(c){const{props:u}=t,h=vo(t.parent)||{},f=[],d=new Set;let p={},y=1/0;for(let g=0;g<Kl;g++){const x=Ul[g],v=n[x],T=u[x]!==void 0?u[x]:h[x],b=Nt(T),M=x===c?v.isActive:null;M===!1&&(y=g);let V=T===h[x]&&T!==u[x]&&b;if(V&&(s||i)&&t.manuallyAnimateOnMount&&(V=!1),v.protectedKeys={...p},!v.isActive&&M===null||!T&&!v.prevProp||ve(T)||typeof T=="boolean")continue;if(x==="exit"&&v.isActive&&M!==!0){v.prevResolvedValues&&(p={...p,...v.prevResolvedValues});continue}const P=Gl(v.prevProp,T);let C=P||x===c&&v.isActive&&!V&&b||g>y&&b,A=!1;const R=Array.isArray(T)?T:[T];let F=R.reduce(r(x),{});M===!1&&(F={});const{prevResolvedValues:et={}}=v,Y={...et,...F},nt=O=>{C=!0,d.has(O)&&(A=!0,d.delete(O)),v.needsAnimating[O]=!0;const K=t.getValue(O);K&&(K.liveStyle=!1)};for(const O in Y){const K=F[O],ct=et[O];if(p.hasOwnProperty(O))continue;let vt=!1;qe(K)&&qe(ct)?vt=!xo(K,ct)||P:vt=K!==ct,vt?K!=null?nt(O):d.add(O):K!==void 0&&d.has(O)?nt(O):v.protectedKeys[O]=!0}v.prevProp=T,v.prevResolvedValues=F,v.isActive&&(p={...p,...F}),(s||i)&&t.blockInitialAnimation&&(C=!1);const q=V&&P;C&&(!q||A)&&f.push(...R.map(O=>{const K={type:x};if(typeof O=="string"&&(s||i)&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:ct}=t,vt=mt(ct,O);if(ct.enteringChildren&&vt){const{delayChildren:Ho}=vt.transition||{};K.delay=Ui(ct.enteringChildren,t,Ho)}}return{animation:O,options:K}}))}if(d.size){const g={};if(typeof u.initial!="boolean"){const x=mt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(g.transition=x.transition)}d.forEach(x=>{const v=t.getBaseTarget(x),T=t.getValue(x);T&&(T.liveStyle=!0),g[x]=v??null}),f.push({animation:g})}let m=!!f.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,i=!1,m?e(f):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=t.variantChildren)==null||f.forEach(d=>{var p;return(p=d.animationState)==null?void 0:p.setActive(c,u)}),n[c].isActive=u;const h=a(c);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ms(),i=!0}}}function Gl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!xo(e,t):!1}function ut(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ms(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}function an(t,e){t.min=e.min,t.max=e.max}function H(t,e){an(t.x,e.x),an(t.y,e.y)}function gs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const To=1e-4,Hl=1-To,Xl=1+To,wo=.01,_l=0-wo,Yl=0+wo;function W(t){return t.max-t.min}function ql(t,e,n){return Math.abs(t-e)<=n}function ys(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Hl&&t.scale<=Xl||isNaN(t.scale))&&(t.scale=1),(t.translate>=_l&&t.translate<=Yl||isNaN(t.translate))&&(t.translate=0)}function kt(t,e,n,s){ys(t.x,e.x,n.x,s?s.originX:void 0),ys(t.y,e.y,n.y,s?s.originY:void 0)}function vs(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+W(e)}function Zl(t,e,n,s){vs(t.x,e.x,n.x,s==null?void 0:s.x),vs(t.y,e.y,n.y,s==null?void 0:s.y)}function xs(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+W(e)}function de(t,e,n,s){xs(t.x,e.x,n.x,s==null?void 0:s.x),xs(t.y,e.y,n.y,s==null?void 0:s.y)}function Ts(t,e,n,s,i){return t-=e,t=fe(t,1/n,s),i!==void 0&&(t=fe(t,1/i,s)),t}function Jl(t,e=0,n=1,s=.5,i,r=t,o=t){if(Q.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=Ts(t.min,e,n,a,i),t.max=Ts(t.max,e,n,a,i)}function ws(t,e,[n,s,i],r,o){Jl(t,e[n],e[s],e[i],e.scale,r,o)}const Ql=["x","scaleX","originX"],tc=["y","scaleY","originY"];function Ss(t,e,n,s){ws(t.x,e,Ql,n?n.x:void 0,s?s.x:void 0),ws(t.y,e,tc,n?n.y:void 0,s?s.y:void 0)}function Ps(t){return t.translate===0&&t.scale===1}function So(t){return Ps(t.x)&&Ps(t.y)}function bs(t,e){return t.min===e.min&&t.max===e.max}function ec(t,e){return bs(t.x,e.x)&&bs(t.y,e.y)}function As(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Po(t,e){return As(t.x,e.x)&&As(t.y,e.y)}function Vs(t){return W(t.x)/W(t.y)}function Cs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Z(t){return[t("x"),t("y")]}function nc(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0: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:c,rotate:u,pathRotation:h,rotateX:f,rotateY:d,skewX:p,skewY:y}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),d&&(s+=`rotateY(${d}deg) `),p&&(s+=`skewX(${p}deg) `),y&&(s+=`skewY(${y}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const bo=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],sc=bo.length,Ms=t=>typeof t=="string"?parseFloat(t):t,Ds=t=>typeof t=="number"||S.test(t);function ic(t,e,n,s,i,r){i?(t.opacity=D(0,n.opacity??1,oc(s)),t.opacityExit=D(e.opacity??1,0,rc(s))):r&&(t.opacity=D(e.opacity??1,n.opacity??1,s));for(let o=0;o<sc;o++){const a=bo[o];let l=Es(e,a),c=Es(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Ds(l)===Ds(c)?(t[a]=Math.max(D(Ms(l),Ms(c),s),0),(Q.test(c)||Q.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}function Es(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const oc=Ao(0,.5,pi),rc=Ao(.5,.95,G);function Ao(t,e,n){return s=>s<t?0:s>e?1:n(Ot(t,e,s))}function ac(t,e,n){const s=B(t)?t:gt(t);return s.start(An("",s,e,n)),s.animation}function Wt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}const lc=(t,e)=>t.depth-e.depth;class cc{constructor(){this.children=[],this.isDirty=!1}add(e){fn(this.children,e),this.isDirty=!0}remove(e){oe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(lc),this.isDirty=!1,this.children.forEach(e)}}function uc(t,e){const n=N.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(it(s),t(r-e))};return E.setup(s,!0),()=>it(s)}function se(t){return B(t)?t.get():t}class hc{constructor(){this.members=[]}add(e){fn(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&&(oe(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(oe(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){var n;for(let s=this.members.indexOf(e)-1;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(e,n){var i;const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:r}=s.options,{layoutDependency:o}=e.options;(r===void 0||r!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),(i=e.root)!=null&&i.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var n,s,i,r,o;(s=(n=e.options).onExitComplete)==null||s.call(n),(o=(i=e.resumingFrom)==null?void 0:(r=i.options).onExitComplete)==null||o.call(r)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(e=this.lead)!=null&&e.snapshot&&(this.lead.snapshot=void 0)}}const ie={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ee=["","X","Y","Z"],fc=1e3;let dc=0;function Re(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Vo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Hi(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&&Vo(s)}function Co({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=dc++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(gc),this.nodes.forEach(Sc),this.nodes.forEach(Pc),this.nodes.forEach(yc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new cc)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new pn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=En(o)&&!pl(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;E.read(()=>{h=window.innerWidth}),t(o,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=uc(f,250),ie.hasAnimatedSinceResize&&(ie.hasAnimatedSinceResize=!1,this.nodes.forEach(ks)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Mc,{onLayoutAnimationStart:y,onLayoutAnimationComplete:m}=c.getProps(),g=!this.targetLayout||!Po(this.targetLayout,d),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...bn(p,"layout"),onPlay:y,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(u,x,v.path)}else h||ks(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),it(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(bc),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&&Vo(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:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(xc),this.nodes.forEach(Rs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ls);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Tc),this.nodes.forEach(wc),this.nodes.forEach(pc),this.nodes.forEach(mc)):this.nodes.forEach(Ls),this.clearAllSnapshots();const a=N.now();j.delta=tt(0,1e3/60,a-j.timestamp),j.timestamp=a,j.isProcessing=!0,Se.update.process(j),Se.preRender.process(j),Se.render.process(j),j.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vc),this.sharedNodes.forEach(Ac)}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&&!W(this.snapshot.measuredBox.x)&&!W(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=I()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!So(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||ht(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Dc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return I();const a=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(Ec))){const{scroll:u}=this.root;u&&(J(a.x,u.offset.x),J(a.y,u.offset.y))}return a}removeElementScroll(o){var l;const a=I();if(H(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:f}=u;u!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&H(a,o),J(a.x,h.offset.x),J(a.y,h.offset.y))}return a}applyTransform(o,a=!1,l){var u,h;const c=l||I();H(c,o);for(let f=0;f<this.path.length;f++){const d=this.path[f];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(J(c.x,-d.scroll.offset.x),J(c.y,-d.scroll.offset.y)),ht(d.latestValues)&&ne(c,d.latestValues,(u=d.layout)==null?void 0:u.layoutBox)}return ht(this.latestValues)&&ne(c,this.latestValues,(h=this.layout)==null?void 0:h.layoutBox),c}removeTransform(o){var l;const a=I();H(a,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!ht(u.latestValues))continue;let h;u.instance&&(sn(u.latestValues)&&u.updateSnapshot(),h=I(),H(h,u.measurePageBox())),Ss(a,u.latestValues,(l=u.snapshot)==null?void 0:l.layoutBox,h)}return ht(this.latestValues)&&Ss(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!==j.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=j.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!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=I(),this.targetWithTransforms=I()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):H(this.target,this.layout.layoutBox),co(this.target,this.targetDelta)):H(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||sn(this.parent.latestValues)||lo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),de(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),H(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===j.timestamp&&(l=!1),l)return;const{layout:c,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||!(c||u))return;H(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Vl(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=I());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gs(this.prevProjectionDelta.x,this.projectionDelta.x),gs(this.prevProjectionDelta.y,this.projectionDelta.y)),kt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Cs(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=St(),this.projectionDelta=St(),this.projectionDeltaWithTransform=St()}setAnimationOrigin(o,a=!1,l){const c=this.snapshot,u=c?c.latestValues:{},h={...this.latestValues},f=St();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=I(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,g=this.getStack(),x=!g||g.members.length<=1,v=!!(m&&!x&&this.options.crossfade===!0&&!this.path.some(Cc));this.animationProgress=0;let T;const b=l==null?void 0:l.interpolateProjection(o);this.mixTargetDelta=M=>{const V=M/1e3,P=b==null?void 0:b(V);P?(f.x.translate=P.x,f.x.scale=D(o.x.scale,1,V),f.x.origin=o.x.origin,f.x.originPoint=o.x.originPoint,f.y.translate=P.y,f.y.scale=D(o.y.scale,1,V),f.y.origin=o.y.origin,f.y.originPoint=o.y.originPoint):(Is(f.x,o.x,V),Is(f.y,o.y,V)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(de(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Vc(this.relativeTarget,this.relativeTargetOrigin,d,V),T&&ec(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=I()),H(T,this.relativeTarget)),m&&(this.animationValues=h,ic(h,u,this.latestValues,V,v,x)),P&&P.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=P.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(it(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{ie.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=gt(0)),this.motionValue.jump(0,!1),this.currentAnimation=ac(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Mo(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||I();const h=W(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=W(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}H(a,l),ne(a,u),kt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new hc),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Re("z",o,c,this.animationValues);for(let u=0;u<Ee.length;u++)Re(`rotate${Ee[u]}`,o,c,this.animationValues),Re(`skew${Ee[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=se(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=se(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ht(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=nc(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),o.transform=h;const{x:f,y:d}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in rn){if(u[p]===void 0)continue;const{correct:y,applyTo:m,isCSSVariable:g}=rn[p],x=h==="none"?u[p]:y(u[p],c);if(m){const v=m.length;for(let T=0;T<v;T++)o[m[T]]=x}else g?this.options.visualElement.renderState.vars[p]=x:o[p]=x}this.options.layoutId&&(o.pointerEvents=c===this?se(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Rs),this.root.sharedNodes.clear()}}}function pc(t){t.updateLayout()}function mc(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=e.source!==t.layout.source;if(r==="size")Z(h=>{const f=o?e.measuredBox[h]:e.layoutBox[h],d=W(f);f.min=s[h].min,f.max=f.min+d});else if(r==="x"||r==="y"){const h=r==="x"?"y":"x";an(o?e.measuredBox[h]:e.layoutBox[h],s[h])}else Mo(r,e.layoutBox,s)&&Z(h=>{const f=o?e.measuredBox[h]:e.layoutBox[h],d=W(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=St();kt(a,s,e.layoutBox);const l=St();o?kt(l,t.applyTransform(i,!0),e.measuredBox):kt(l,s,e.layoutBox);const c=!So(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=t.options.layoutAnchor||void 0,y=I();de(y,e.layoutBox,f.layoutBox,p);const m=I();de(m,s,d.layoutBox,p),Po(y,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=y,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function gc(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 yc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function vc(t){t.clearSnapshot()}function Rs(t){t.clearMeasurements()}function xc(t){t.isLayoutDirty=!0,t.updateLayout()}function Ls(t){t.isLayoutDirty=!1}function Tc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function wc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ks(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Sc(t){t.resolveTargetDelta()}function Pc(t){t.calcProjection()}function bc(t){t.resetSkewAndRotation()}function Ac(t){t.removeLeadSnapshot()}function Is(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 Bs(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function Vc(t,e,n,s){Bs(t.x,e.x,n.x,s),Bs(t.y,e.y,n.y,s)}function Cc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Mc={duration:.45,ease:[.4,0,.1,1]},Fs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Os=Fs("applewebkit/")&&!Fs("chrome/")?Math.round:G;function js(t){t.min=Os(t.min),t.max=Os(t.max)}function Dc(t){js(t.x),js(t.y)}function Mo(t,e,n){return t==="position"||t==="preserve-aspect"&&!ql(Vs(e),Vs(n),.2)}function Ec(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Rc=Co({attachResizeListener:(t,e)=>Wt(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Le={current:void 0},Do=Co({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Le.current){const t=new Rc({});t.mount(window),t.setOptions({layoutScroll:!0}),Le.current=t}return Le.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Te=w.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Ns(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Lc(...t){return e=>{let n=!1;const s=t.map(i=>{const r=Ns(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():Ns(t[i],null)}}}}function kc(...t){return w.useCallback(Lc(...t),t)}class Ic extends w.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(Jt(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=Jt(s)&&s.offsetWidth||0,r=Jt(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 Bc({children:t,isPresent:e,anchorX:n,anchorY:s,root:i,pop:r}){var f;const o=w.useId(),a=w.useRef(null),l=w.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=w.useContext(Te),u=((f=t.props)==null?void 0:f.ref)??(t==null?void 0:t.ref),h=kc(a,u);return w.useInsertionEffect(()=>{const{width:d,height:p,top:y,left:m,right:g,bottom:x,direction:v}=l.current;if(e||r===!1||!a.current||!d||!p)return;const T=v==="rtl",b=n==="left"?T?`right: ${g}`:`left: ${m}`:T?`left: ${m}`:`right: ${g}`,M=s==="bottom"?`bottom: ${x}`:`top: ${y}`;a.current.dataset.motionPopId=o;const V=document.createElement("style");c&&(V.nonce=c);const P=i??document.head;return P.appendChild(V),V.sheet&&V.sheet.insertRule(`
2
2
  [data-motion-pop-id="${o}"] {
3
3
  position: absolute !important;
4
4
  width: ${d}px !important;