PageSourceSearch

https://vagle.ai/assets/Landing-BrvXfSlY.js

js vagle.ai collected 2026-10-05 13:12:15 UTC 160,594 bytes, 9 lines download raw bytes

vendor: 23,290 bytes, line 1
1import{c as de,j as o,X as Wr,a as Vs}from"./index-CbtKD9GF.js";import{b,u as Ur,L as k}from"./vendor-gmoby7Lc.js";import{s as zr,b as $r,S as Kr}from"./SEO-Cf9F0YQU.js";import{S as Hr}from"./settings-jKjOESWq.js";import{G as Ns}from"./git-branch-CtjhufRf.js";import{C as Ds}from"./chart-column-DTz6hlN3.js";import{B as Gr}from"./bot-uO68C_dR.js";import{P as qr}from"./phone-CmQHw2C5.js";import{D as _r}from"./database-B1KK1vU-.js";import"./icons-BYq1EogD.js";const Yr=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],J=de("check",Yr);const Xr=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Zr=de("cpu",Xr);const Qr=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Jr=de("dollar-sign",Qr);const eo=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],to=de("menu",eo);const so=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],no=de("plus",so);const io=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],ro=de("trending-up",io);const oo=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Es=de("zap",oo),Zt=b.createContext({});function Qt(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qn=typeof window<"u",Jn=Qn?b.useLayoutEffect:b.useEffect,rt=b.createContext(null);function Jt(e,t){e.indexOf(t)===-1&&e.push(t)}function Ze(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}const Q=(e,t,s)=>s>t?t:s<e?e:s;let es=()=>{};const ee={},ei=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ti(e){return typeof e=="object"&&e!==null}const si=e=>/^0[^.\s]+$/u.test(e);function ni(e){let t;return()=>(t===void 0&&(t=e()),t)}const K=e=>e,ao=(e,t)=>s=>t(e(s)),Ie=(...e)=>e.reduce(ao),Ne=(e,t,s)=>{const n=t-e;return n===0?1:(s-e)/n};class ts{constructor(){this.subscriptions=[]}add(t){return Jt(this.subscriptions,t),()=>Ze(this.subscriptions,t)}notify(t,s,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,s,n);else for(let a=0;a<i;a++){const r=this.subscriptions[a];r&&r(t,s,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const q=e=>e*1e3,$=e=>e/1e3;function ii(e,t){return t?e*(1e3/t):0}const ri=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,lo=1e-7,co=12;function uo(e,t,s,n,i){let a,r,l=0;do r=t+(s-t)/2,a=ri(r,n,i)-e,a>0?s=r:t=r;while(Math.abs(a)>lo&&++l<co);return r}function Fe(e,t,s,n){if(e===t&&s===n)return K;const i=a=>uo(a,0,1,e,s);return a=>a===0||a===1?a:ri(i(a),t,n)}const oi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ai=e=>t=>1-e(1-t),li=Fe(.33,1.53,.69,.99),ss=ai(li),ci=oi(ss),ui=e=>(e*=2)<1?.5*ss(e):.5*(2-Math.pow(2,-10*(e-1))),ns=e=>1-Math.sin(Math.acos(e)),di=ai(ns),hi=oi(ns),ho=Fe(.42,0,1,1),fo=Fe(0,0,.58,1),fi=Fe(.42,0,.58,1),mo=e=>Array.isArray(e)&&typeof e[0]!="number",mi=e=>Array.isArray(e)&&typeof e[0]=="number",po={linear:K,easeIn:ho,easeInOut:fi,easeOut:fo,circIn:ns,circInOut:hi,circOut:di,backIn:ss,backInOut:ci,backOut:li,anticipate:ui},go=e=>typeof e=="string",Rs=e=>{if(mi(e)){es(e.length===4);const[t,s,n,i]=e;return Fe(t,s,n,i)}else if(go(e))return po[e];return e},We=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function yo(e,t){let s=new Set,n=new Set,i=!1,a=!1;const r=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){r.has(d)&&(u.schedule(d),e()),d(l)}const u={schedule:(d,h=!1,f=!1)=>{const g=f&&i?s:n;return h&&r.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),r.delete(d)},process:d=>{if(l=d,i){a=!0;return}i=!0,[s,n]=[n,s],s.forEach(c),s.clear(),i=!1,a&&(a=!1,u.process(d))}};return u}const xo=40;function pi(e,t){let s=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>s=!0,r=We.reduce((y,A)=>(y[A]=yo(a),y),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:h,preRender:f,render:p,postRender:g}=r,v=()=>{const y=ee.useManualTiming?i.timestamp:performance.now();s=!1,ee.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(y-i.timestamp,xo),1)),i.timestamp=y,i.isProcessing=!0,l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),f.process(i),p.process(i),g.process(i),i.isProcessing=!1,s&&t&&(n=!1,e(v))},w=()=>{s=!0,n=!0,i.isProcessing||e(v)};return{schedule:We.reduce((y,A)=>{const m=r[A];return y[A]=(S,M=!1,P=!1)=>(s||w(),m.schedule(S,M,P)),y},{}),cancel:y=>{for(let A=0;A<We.length;A++)r[We[A]].cancel(y)},state:i,steps:r}}const{schedule:V,cancel:ne,state:F,steps:ut}=pi(typeof requestAnimationFrame<"u"?requestAnimationFrame:K,!0);let Ke;function vo(){Ke=void 0}const O={now:()=>(Ke===void 0&&O.set(F.isProcessing||ee.useManualTiming?F.timestamp:performance.now()),Ke),set:e=>{Ke=e,queueMicrotask(vo)}},gi=e=>t=>typeof t=="string"&&t.startsWith(e),yi=gi("--"),wo=gi("var(--"),is=e=>wo(e)?bo.test(e.split("/*")[0].trim()):!1,bo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ls(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const be={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},De={...be,transform:e=>Q(0,1,e)},Ue={...be,default:1},Ce=e=>Math.round(e*1e5)/1e5,rs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jo(e){return e==null}const To=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,os=(e,t)=>s=>!!(typeof s=="string"&&To.test(s)&&s.startsWith(e)||t&&!jo(s)&&Object.prototype.hasOwnProperty.call(s,t)),xi=(e,t,s)=>n=>{if(typeof n!="string")return n;const[i,a,r,l]=n.match(rs);return{[e]:parseFloat(i),[t]:parseFloat(a),[s]:parseFloat(r),alpha:l!==void 0?parseFloat(l):1}},Ao=e=>Q(0,255,e),dt={...be,transform:e=>Math.round(Ao(e))},le={test:os("rgb","red"),parse:xi("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:n=1})=>"rgba("+dt.transform(e)+", "+dt.transform(t)+", "+dt.transform(s)+", "+Ce(De.transform(n))+")"};function So(e){let t="",s="",n="",i="";return e.length>5?(t=e.substring(1,3),s=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),s=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,s+=s,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Ct={test:os("#"),parse:So,transform:le.transform},Be=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),te=Be("deg"),Z=Be("%"),T=Be("px"),Po=Be("vh"),Co=Be("vw"),Is={...Z,parse:e=>Z.parse(e)/100,transform:e=>Z.transform(e*100)},me={test:os("hsl","hue"),parse:xi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:n=1})=>"hsla("+Math.round(e)+", "+Z.transform(Ce(t))+", "+Z.transform(Ce(s))+", "+Ce(De.transform(n))+")"},E={test:e=>le.test(e)||Ct.test(e)||me.test(e),parse:e=>le.test(e)?le.parse(e):me.test(e)?me.parse(e):Ct.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?le.transform(e):me.transform(e),getAnimatableNone:e=>{const t=E.parse(e);return t.alpha=0,E.transform(t)}},ko=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Mo(e){return isNaN(e)&&typeof e=="string"&&(e.match(rs)?.length||0)+(e.match(ko)?.length||0)>0}const vi="number",wi="color",Vo="var",No="var(",Fs="${}",Do=/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 Ee(e){const t=e.toString(),s=[],n={color:[],number:[],var:[]},i=[];let a=0;const l=t.replace(Do,c=>(E.test(c)?(n.color.push(a),i.push(wi),s.push(E.parse(c))):c.startsWith(No)?(n.var.push(a),i.push(Vo),s.push(c)):(n.number.push(a),i.push(vi),s.push(parseFloat(c))),++a,Fs)).split(Fs);return{values:s,split:l,indexes:n,types:i}}function bi(e){return Ee(e).values}function ji(e){const{split:t,types:s}=Ee(e),n=t.length;return i=>{let a="";for(let r=0;r<n;r++)if(a+=t[r],i[r]!==void 0){const l=s[r];l===vi?a+=Ce(i[r]):l===wi?a+=E.transform(i[r]):a+=i[r]}return a}}const Eo=e=>typeof e=="number"?0:E.test(e)?E.getAnimatableNone(e):e;function Ro(e){const t=bi(e);return ji(e)(t.map(Eo))}const _={test:Mo,parse:bi,createTransformer:ji,getAnimatableNone:Ro};function ht(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function Lo({hue:e,saturation:t,lightness:s,alpha:n}){e/=360,t/=100,s/=100;let i=0,a=0,r=0;if(!t)i=a=r=s;else{const l=s<.5?s*(1+t):s+t-s*t,c=2*s-l;i=ht(c,l,e+1/3),a=ht(c,l,e),r=ht(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(r*255),alpha:n}}function Qe(e,t){return s=>s>0?t:e}const N=(e,t,s)=>e+(t-e)*s,ft=(e,t,s)=>{const n=e*e,i=s*(t*t-n)+n;return i<0?0:Math.sqrt(i)},Io=[Ct,le,me],Fo=e=>Io.find(t=>t.test(e));function Bs(e){const t=Fo(e);if(!t)return!1;let s=t.parse(e);return t===me&&(s=Lo(s)),s}const Os=(e,t)=>{const s=Bs(e),n=Bs(t);if(!s||!n)return Qe(e,t);const i={...s};return a=>(i.red=ft(s.red,n.red,a),i.green=ft(s.green,n.green,a),i.blue=ft(s.blue,n.blue,a),i.alpha=N(s.alpha,n.alpha,a),le.transform(i))},kt=new Set(["none","hidden"]);function Bo(e,t){return kt.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function Oo(e,t){return s=>N(e,t,s)}function as(e){return typeof e=="number"?Oo:typeof e=="string"?is(e)?Qe:E.test(e)?Os:zo:Array.isArray(e)?Ti:typeof e=="object"?E.test(e)?Os:Wo:Qe}function Ti(e,t){const s=[...e],n=s.length,i=e.map((a,r)=>as(a)(a,t[r]));return a=>{for(let r=0;r<n;r++)s[r]=i[r](a);return s}}function Wo(e,t){const s={...e,...t},n={};for(const i in s)e[i]!==void 0&&t[i]!==void 0&&(n[i]=as(e[i])(e[i],t[i]));return i=>{for(const a in n)s[a]=n[a](i);return s}}function Uo(e,t){const s=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],r=e.indexes[a][n[a]],l=e.values[r]??0;s[i]=l,n[a]++}return s}const zo=(e,t)=>{const s=_.createTransformer(t),n=Ee(e),i=Ee(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?kt.has(e)&&!i.values.length||kt.has(t)&&!n.values.length?Bo(e,t):Ie(Ti(Uo(n,i),i.values),s):Qe(e,t)};function Ai(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?N(e,t,s):as(e)(e,t)}const $o=e=>{const t=({timestamp:s})=>e(s);return{start:(s=!0)=>V.update(t,s),stop:()=>ne(t),now:()=>F.isProcessing?F.timestamp:O.now()}},Si=(e,t,s=10)=>{let n="";const i=Math.max(Math.round(t/s),2);for(let a=0;a<i;a++)n+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Je=2e4;function ls(e){let t=0;const s=50;let n=e.next(t);for(;!n.done&&t<Je;)t+=s,n=e.next(t);return t>=Je?1/0:t}function Ko(e,t=100,s){const n=s({...e,keyframes:[0,t]}),i=Math.min(ls(n),Je);return{type:"keyframes",ease:a=>n.next(i*a).value/t,duration:$(i)}}const Ho=5;function Pi(e,t,s){const n=Math.max(t-Ho,0);return ii(s-e(n),t-n)}const D={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},mt=.001;function Go({duration:e=D.duration,bounce:t=D.bounce,velocity:s=D.velocity,mass:n=D.mass}){let i,a,r=1-t;r=Q(D.minDamping,D.maxDamping,r),e=Q(D.minDuration,D.maxDuration,$(e)),r<1?(i=u=>{const d=u*r,h=d*e,f=d-s,p=Mt(u,r),g=Math.exp(-h);return mt-f/p*g},a=u=>{const h=u*r*e,f=h*s+s,p=Math.pow(r,2)*Math.pow(u,2)*e,g=Math.exp(-h),v=Mt(Math.pow(u,2),r);return(-i(u)+mt>0?-1:1)*((f-p)*g)/v}):(i=u=>{const d=Math.exp(-u*e),h=(u-s)*e+1;return-mt+d*h},a=u=>{const d=Math.exp(-u*e),h=(s-u)*(e*e);return d*h});const l=5/e,c=_o(i,a,l);if(e=q(e),isNaN(c))return{stiffness:D.stiffness,damping:D.damping,duration:e};{const u=Math.pow(c,2)*n;return{stiffness:u,damping:r*2*Math.sqrt(n*u),duration:e}}}const qo=12;function _o(e,t,s){let n=s;for(let i=1;i<qo;i++)n=n-e(n)/t(n);return n}function Mt(e,t){return e*Math.sqrt(1-t*t)}const Yo=["duration","bounce"],Xo=["stiffness","damping","mass"];function Ws(e,t){return t.some(s=>e[s]!==void 0)}function Zo(e){let t={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...e};if(!Ws(e,Xo)&&Ws(e,Yo))if(t.velocity=0,e.visualDuration){const s=e.visualDuration,n=2*Math.PI/(s*1.2),i=n*n,a=2*Q(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:D.mass,stiffness:i,damping:a}}else{const s=Go({...e,velocity:0});t={...t,...s,mass:D.mass},t.isResolvedFromDuration=!0}return t}function et(e=D.visualDuration,t=D.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:i}=s;const a=s.keyframes[0],r=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=Zo({...s,velocity:-$(s.velocity||0)}),g=f||0,v=u/(2*Math.sqrt(c*d)),w=r-a,x=$(Math.sqrt(c/d)),j=Math.abs(w)<5;n||(n=j?D.restSpeed.granular:D.restSpeed.default),i||(i=j?D.restDelta.granular:D.restDelta.default);let y;if(v<1){const m=Mt(x,v);y=S=>{const M=Math.exp(-v*x*S);return r-M*((g+v*x*w)/m*Math.sin(m*S)+w*Math.cos(m*S))}}else if(v===1)y=m=>r-Math.exp(-x*m)*(w+(g+x*w)*m);else{const m=x*Math.sqrt(v*v-1);y=S=>{const M=Math.exp(-v*x*S),P=Math.min(m*S,300);return r-M*((g+v*x*w)*Math.sinh(P)+m*w*Math.cosh(P))/m}}const A={calculatedDuration:p&&h||null,next:m=>{const S=y(m);if(p)l.done=m>=h;else{let M=m===0?g:0;v<1&&(M=m===0?q(g):Pi(y,m,S));const P=Math.abs(M)<=n,C=Math.abs(r-S)<=i;l.done=P&&C}return l.value=l.done?r:S,l},toString:()=>{const m=Math.min(ls(A),Je),S=Si(M=>A.next(m*M).value,m,30);return m+"ms "+S},toTransition:()=>{}};return A}et.applyToOptions=e=>{const t=Ko(e,100,et);return e.ease=t.ease,e.duration=q(t.duration),e.type="keyframes",e};function Vt({keyframes:e,velocity:t=0,power:s=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:r,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},p=P=>l!==void 0&&P<l||c!==void 0&&P>c,g=P=>l===void 0?c:c===void 0||Math.abs(l-P)<Math.abs(c-P)?l:c;let v=s*t;const w=h+v,x=r===void 0?w:r(w);x!==w&&(v=x-h);const j=P=>-v*Math.exp(-P/n),y=P=>x+j(P),A=P=>{const C=j(P),R=y(P);f.done=Math.abs(C)<=u,f.value=f.done?x:R};let m,S;const M=P=>{p(f.value)&&(m=P,S=et({keyframes:[f.value,g(f.value)],velocity:Pi(y,P,f.value),damping:i,stiffness:a,restDelta:u,restSpeed:d}))};return M(0),{calculatedDuration:null,next:P=>{let C=!1;return!S&&m===void 0&&(C=!0,A(P),M(P)),m!==void 0&&P>=m?S.next(P-m):(!C&&A(P),f)}}}function Qo(e,t,s){const n=[],i=s||ee.mix||Ai,a=e.length-1;for(let r=0;r<a;r++){let l=i(e[r],e[r+1]);if(t){const c=Array.isArray(t)?t[r]||K:t;l=Ie(c,l)}n.push(l)}return n}function Jo(e,t,{clamp:s=!0,ease:n,mixer:i}={}){const a=e.length;if(es(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const r=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Qo(t,n,i),c=l.length,u=d=>{if(r&&d<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=Ne(e[h],e[h+1],d);return l[h](f)};return s?d=>u(Q(e[0],e[a-1],d)):u}function ea(e,t){const s=e[e.length-1];for(let n=1;n<=t;n++){const i=Ne(0,t,n);e.push(N(s,1,i))}}function ta(e){const t=[0];return ea(t,e.length-1),t}function sa(e,t){return e.map(s=>s*t)}function na(e,t){return e.map(()=>t||fi).splice(0,e.length-1)}function ke({duration:e=300,keyframes:t,times:s,ease:n="easeInOut"}){const i=mo(n)?n.map(Rs):Rs(n),a={done:!1,value:t[0]},r=sa(s&&s.length===t.length?s:ta(t),e),l=Jo(r,t,{ease:Array.isArray(i)?i:na(t,i)});return{calculatedDuration:e,next:c=>(a.value=l(c),a.done=c>=e,a)}}const ia=e=>e!==null;function cs(e,{repeat:t,repeatType:s="loop"},n,i=1){const a=e.filter(ia),l=i<0||t&&s!=="loop"&&t%2===1?0:a.length-1;return!l||n===void 0?a[l]:n}const ra={decay:Vt,inertia:Vt,tween:ke,keyframes:ke,spring:et};function Ci(e){typeof e.type=="string"&&(e.type=ra[e.type])}class us{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,s){return this.finished.then(t,s)}}const oa=e=>e/100;class ds extends us{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ci(t);const{type:s=ke,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:r=0}=t;let{keyframes:l}=t;const c=s||ke;c!==ke&&typeof l[0]!="number"&&(this.mixKeyframes=Ie(oa,Ai(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});a==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=ls(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=u}updateTime(t){const s=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(t,s=!1){const{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:r,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:u=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:p,type:g,onUpdate:v,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),s?this.currentTime=t:this.updateTime(t);const x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),j=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let y=this.currentTime,A=n;if(h){const P=Math.min(this.currentTime,i)/l;let C=Math.floor(P),R=P%1;!R&&P>=1&&(R=1),R===1&&C--,C=Math.min(C,h+1),C%2&&(f==="reverse"?(R=1-R,p&&(R-=p/l)):f==="mirror"&&(A=r)),y=Q(0,1,R)*l}const m=j?{done:!1,value:d[0]}:A.next(y);a&&(m.value=a(m.value));let{done:S}=m;!j&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return M&&g!==Vt&&(m.value=cs(d,this.options,w,this.speed)),v&&v(m.value),M&&this.finish(),m}then(t,s){return this.finished.then(t,s)}get duration(){return $(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+$(t)}get time(){return $(this.currentTime)}set time(t){t=q(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(O.now());const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=$(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=$o,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=s??n),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(O.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function aa(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ce=e=>e*180/Math.PI,Nt=e=>{const t=ce(Math.atan2(e[1],e[0]));return Dt(t)},la={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Nt,rotateZ:Nt,skewX:e=>ce(Math.atan(e[1])),skewY:e=>ce(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Dt=e=>(e=e%360,e<0&&(e+=360),e),Us=Nt,zs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),$s=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ca={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zs,scaleY:$s,scale:e=>(zs(e)+$s(e))/2,rotateX:e=>Dt(ce(Math.atan2(e[6],e[5]))),rotateY:e=>Dt(ce(Math.atan2(-e[2],e[0]))),rotateZ:Us,rotate:Us,skewX:e=>ce(Math.atan(e[4])),skewY:e=>ce(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Et(e){return e.includes("scale")?1:0}function Rt(e,t){if(!e||e==="none")return Et(t);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(s)n=ca,i=s;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=la,i=l}if(!i)return Et(t);const a=n[t],r=i[1].split(",").map(da);return typeof a=="function"?a(r):r[a]}const ua=(e,t)=>{const{transform:s="none"}=getComputedStyle(e);return Rt(s,t)};function da(e){return parseFloat(e.trim())}const je=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Te=new Set(je),Ks=e=>e===be||e===T,ha=new Set(["x","y","z"]),fa=je.filter(e=>!ha.has(e));function ma(e){const t=[];return fa.forEach(s=>{const n=e.getValue(s);n!==void 0&&(t.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),t}const se={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Rt(t,"x"),y:(e,{transform:t})=>Rt(t,"y")};se.translateX=se.x;se.translateY=se.y;const ue=new Set;let Lt=!1,It=!1,Ft=!1;function ki(){if(It){const e=Array.from(ue).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),s=new Map;t.forEach(n=>{const i=ma(n);i.length&&(s.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>
vendor: 1,605 bytes, line 1
1{n.render();const i=s.get(n);i&&i.forEach(([a,r])=>{n.getValue(a)?.set(r)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}It=!1,Lt=!1,ue.forEach(e=>e.complete(Ft)),ue.clear()}function Mi(){ue.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(It=!0)})}function pa(){Ft=!0,Mi(),ki(),Ft=!1}class hs{constructor(t,s,n,i,a,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=n,this.motionValue=i,this.element=a,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(ue.add(this),Lt||(Lt=!0,V.read(Mi),V.resolveKeyframes(ki))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:n,motionValue:i}=this;if(t[0]===null){const a=i?.get(),r=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&s){const l=n.readValue(s,r);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=r),i&&a===void 0&&i.set(t[0])}aa(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ue.delete(this)}cancel(){this.state==="scheduled"&&(ue.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ga=e=>e.startsWith("--");function ya(e,t,s){ga(t)?e.style.setProperty(t,s):e.style[t]=s}const xa={};function Vi(e,t){const s=ni(e);return()=>xa[t]??s()}const va=Vi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ni=Vi(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 8,879 bytes, line 1
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pe=([e,t,s,n])=>`cubic-bezier(${e}, ${t}, ${s}, ${n})`,Hs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pe([0,.65,.55,1]),circOut:Pe([.55,0,1,.45]),backIn:Pe([.31,.01,.66,-.59]),backOut:Pe([.33,1.53,.69,.99])};function Di(e,t){if(e)return typeof e=="function"?Ni()?Si(e,t):"ease-out":mi(e)?Pe(e):Array.isArray(e)?e.map(s=>Di(s,t)||Hs.easeOut):Hs[e]}function wa(e,t,s,{delay:n=0,duration:i=300,repeat:a=0,repeatType:r="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[t]:s};c&&(d.offset=c);const h=Di(l,i);Array.isArray(h)&&(d.easing=h);const f={delay:n,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(d,f)}function Ei(e){return typeof e=="function"&&"applyToOptions"in e}function ba({type:e,...t}){return Ei(e)&&Ni()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ri extends us{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:s,name:n,keyframes:i,pseudoElement:a,allowFlatten:r=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=r,this.options=t,es(typeof t.type!="string");const u=ba(t);this.animation=wa(s,n,i,u,a),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=cs(i,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):ya(s,n,d),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return $(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+$(t)}get time(){return $(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=q(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&va()?(this.animation.timeline=t,K):s(this)}}const Li={anticipate:ui,backInOut:ci,circInOut:hi};function ja(e){return e in Li}function Ta(e){typeof e.ease=="string"&&ja(e.ease)&&(e.ease=Li[e.ease])}const pt=10;class Aa extends Ri{constructor(t){Ta(t),Ci(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:s,onUpdate:n,onComplete:i,element:a,...r}=this.options;if(!s)return;if(t!==void 0){s.set(t);return}const l=new ds({...r,autoplay:!1}),c=Math.max(pt,O.now()-this.startTime),u=Q(0,pt,c-pt);s.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const Gs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_.test(e)||e==="0")&&!e.startsWith("url("));function Sa(e){const t=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==t)return!0}function Pa(e,t,s,n){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],r=Gs(i,t),l=Gs(a,t);return!r||!l?!1:Sa(e)||(s==="spring"||Ei(s))&&n}function Bt(e){e.duration=0,e.type="keyframes"}const Ca=new Set(["opacity","clipPath","filter","transform"]),ka=ni(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ma(e){const{motionValue:t,name:s,repeatDelay:n,repeatType:i,damping:a,type:r}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return ka()&&s&&Ca.has(s)&&(s!=="transform"||!u)&&!c&&!n&&i!=="mirror"&&a!==0&&r!=="inertia"}const Va=40;class Na extends us{constructor({autoplay:t=!0,delay:s=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:r="loop",keyframes:l,name:c,motionValue:u,element:d,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=O.now();const f={autoplay:t,delay:s,type:n,repeat:i,repeatDelay:a,repeatType:r,name:c,motionValue:u,element:d,...h},p=d?.KeyframeResolver||hs;this.keyframeResolver=new p(l,(g,v,w)=>this.onKeyframesResolved(g,v,f,!w),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,s,n,i){this.keyframeResolver=void 0;const{name:a,type:r,velocity:l,delay:c,isHandoff:u,onUpdate:d}=n;this.resolvedAt=O.now(),Pa(t,a,r,l)||((ee.instantAnimations||!c)&&d?.(cs(t,n,s)),t[0]=t[t.length-1],Bt(n),n.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Va?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...n,keyframes:t},p=!u&&Ma(f),g=f.motionValue?.owner?.current,v=p?new Aa({...f,element:g}):new ds(f);v.finished.then(()=>{this.notifyFinished()}).catch(K),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,s){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),pa()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Ii(e,t,s,n=0,i=1){const a=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),r=e.size,l=(r-1)*n;return typeof s=="function"?s(a,r):i===1?a*n:l-a*n}const Da=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ea(e){const t=Da.exec(e);if(!t)return[,];const[,s,n,i]=t;return[`--${s??n}`,i]}function Fi(e,t,s=1){const[n,i]=Ea(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const r=a.trim();return ei(r)?parseFloat(r):r}return is(i)?Fi(i,t,s+1):i}const Ra={type:"spring",stiffness:500,damping:25,restSpeed:10},La=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ia={type:"keyframes",duration:.8},Fa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ba=(e,{keyframes:t})=>t.length>2?Ia:Te.has(e)?e.startsWith("scale")?La(t[1]):Ra:Fa,Oa=e=>e!==null;function Wa(e,{repeat:t,repeatType:s="loop"},n){const i=e.filter(Oa),a=t&&s!=="loop"&&t%2===1?0:i.length-1;return i[a]}function Bi(e,t){if(e?.inherit&&t){const{inherit:s,...n}=e;return{...t,...n}}return e}function fs(e,t){const s=e?.[t]??e?.default??e;return s!==e?Bi(s,e):s}function Ua({when:e,delay:t,delayChildren:s,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:r,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const ms=(e,t,s,n={},i,a)=>r=>{const l=fs(n,e)||{},c=l.delay||n.delay||0;let{elapsed:u=0}=n;u=u-q(c);const d={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{r(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:i};Ua(l)||Object.assign(d,Ba(e,d)),d.duration&&(d.duration=q(d.duration)),d.repeatDelay&&(d.repeatDelay=q(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Bt(d),d.delay===0&&(h=!0)),(ee.instantAnimations||ee.skipAnimations||i?.shouldSkipAnimations)&&(h=!0,Bt(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!a&&t.get()!==void 0){const f=Wa(d.keyframes,l);if(f!==void 0){V.update(()=>{d.onUpdate(f),d.onComplete()});return}}return l.isSync?new ds(d):new Na(d)};function qs(e){const t=[{},{}];
vendor: 21,195 bytes, line 1
1return e?.values.forEach((s,n)=>{t[0][n]=s.get(),t[1][n]=s.getVelocity()}),t}function ps(e,t,s,n){if(typeof t=="function"){const[i,a]=qs(n);t=t(s!==void 0?s:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=qs(n);t=t(s!==void 0?s:e.custom,i,a)}return t}function ve(e,t,s){const n=e.getProps();return ps(n,t,s!==void 0?s:n.custom,e)}const Oi=new Set(["width","height","top","left","right","bottom",...je]),_s=30,za=e=>!isNaN(parseFloat(e));class $a{constructor(t,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const i=O.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=O.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=za(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new ts);const n=this.events[t].add(s);return t==="change"?()=>{n(),V.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_s)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,_s);return ii(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function we(e,t){return new $a(e,t)}const Ot=e=>Array.isArray(e);function Ka(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,we(s))}function Ha(e){return Ot(e)?e[e.length-1]||0:e}function Ga(e,t){const s=ve(e,t);let{transitionEnd:n={},transition:i={},...a}=s||{};a={...a,...n};for(const r in a){const l=Ha(a[r]);Ka(e,r,l)}}const B=e=>!!(e&&e.getVelocity);function qa(e){return!!(B(e)&&e.add)}function Wt(e,t){const s=e.getValue("willChange");if(qa(s))return s.add(t);if(!s&&ee.WillChange){const n=new ee.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function gs(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const _a="framerAppearId",Wi="data-"+gs(_a);function Ui(e){return e.props[Wi]}function Ya({protectedKeys:e,needsAnimating:t},s){const n=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,n}function zi(e,t,{delay:s=0,transitionOverride:n,type:i}={}){let{transition:a,transitionEnd:r,...l}=t;const c=e.getDefaultTransition();a=a?Bi(a,c):c;const u=a?.reduceMotion;n&&(a=n);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const p=e.getValue(f,e.latestValues[f]??null),g=l[f];if(g===void 0||h&&Ya(h,f))continue;const v={delay:s,...fs(a||{},f)},w=p.get();if(w!==void 0&&!p.isAnimating&&!Array.isArray(g)&&g===w&&!v.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const A=Ui(e);if(A){const m=window.MotionHandoffAnimation(A,f,V);m!==null&&(v.startTime=m,x=!0)}}Wt(e,f);const j=u??e.shouldReduceMotion;p.start(ms(f,p,g,j&&Oi.has(f)?{type:!1}:v,e,x));const y=p.animation;y&&d.push(y)}if(r){const f=()=>V.update(()=>{r&&Ga(e,r)});d.length?Promise.all(d).then(f):f()}return d}function Ut(e,t,s={}){const n=ve(e,t,s.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=n||{};s.transitionOverride&&(i=s.transitionOverride);const a=n?()=>Promise.all(zi(e,n,s)):()=>Promise.resolve(),r=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return Xa(e,t,c,u,d,h,s)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[a,r]:[r,a];return c().then(()=>u())}else return Promise.all([a(),r(s.delay)])}function Xa(e,t,s=0,n=0,i=0,a=1,r){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(Ut(c,t,{...r,delay:s+(typeof n=="function"?0:n)+Ii(e.variantChildren,c,n,i,a)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function Za(e,t,s={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(a=>Ut(e,a,s));n=Promise.all(i)}else if(typeof t=="string")n=Ut(e,t,s);else{const i=typeof t=="function"?ve(e,t,s.custom):t;n=Promise.all(zi(e,i,s))}return n.then(()=>{e.notify("AnimationComplete",t)})}const Qa={test:e=>e==="auto",parse:e=>e},$i=e=>t=>t.test(e),Ki=[be,T,Z,te,Co,Po,Qa],Ys=e=>Ki.find($i(e));function Ja(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||si(e):!0}const el=new Set(["brightness","contrast","saturate","opacity"]);function tl(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=s.match(rs)||[];if(!n)return e;const i=s.replace(n,"");let a=el.has(t)?1:0;return n!==s&&(a*=100),t+"("+a+i+")"}const sl=/\b([a-z-]*)\(.*?\)/gu,zt={..._,getAnimatableNone:e=>{const t=e.match(sl);return t?t.map(tl).join(" "):e}},$t={..._,getAnimatableNone:e=>{const t=_.parse(e);return _.createTransformer(e)(t.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},Xs={...be,transform:Math.round},nl={rotate:te,rotateX:te,rotateY:te,rotateZ:te,scale:Ue,scaleX:Ue,scaleY:Ue,scaleZ:Ue,skew:te,skewX:te,skewY:te,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:De,originX:Is,originY:Is,originZ:T},ys={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,fontSize:T,backgroundPositionX:T,backgroundPositionY:T,...nl,zIndex:Xs,fillOpacity:De,strokeOpacity:De,numOctaves:Xs},il={...ys,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:zt,WebkitFilter:zt,mask:$t,WebkitMask:$t},Hi=e=>il[e],rl=new Set([zt,$t]);function Gi(e,t){let s=Hi(e);return rl.has(s)||(s=_),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const ol=new Set(["auto","none","0"]);function al(e,t,s){let n=0,i;for(;n<e.length&&!i;){const a=e[n];typeof a=="string"&&!ol.has(a)&&Ee(a).values.length&&(i=e[n]),n++}if(i&&s)for(const a of t)e[a]=Gi(s,i)}class ll extends hs{constructor(t,s,n,i,a){super(t,s,n,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:n}=this;if(!s||!s.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let h=t[d];if(typeof h=="string"&&(h=h.trim(),is(h))){const f=Fi(h,s.current);f!==void 0&&(t[d]=f),d===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Oi.has(n)||t.length!==2)return;const[i,a]=t,r=Ys(i),l=Ys(a),c=Ls(i),u=Ls(a);if(c!==u&&se[n]){this.needsMeasurement=!0;return}if(r!==l)if(Ks(r)&&Ks(l))for(let d=0;d<t.length;d++){const h=t[d];typeof h=="string"&&(t[d]=parseFloat(h))}else se[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,n=[];for(let i=0;i<t.length;i++)(t[i]===null||Ja(t[i]))&&n.push(i);n.length&&al(t,n,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=se[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const i=s[s.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){const{element:t,name:s,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(s);i&&i.jump(this.measuredOrigin,!1);const a=n.length-1,r=n[a];n[a]=se[s](t.measureViewportBox(),window.getComputedStyle(t.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const cl=new Set(["opacity","clipPath","filter","transform"]);function qi(e,t,s){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const i=s?.[e]??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(n=>n!=null)}const _i=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Kt(e){return ti(e)&&"offsetHeight"in e}const{schedule:xs}=pi(queueMicrotask,!1),G={x:!1,y:!1};function Yi(){return G.x||G.y}function ul(e){return e==="x"||e==="y"?G[e]?null:(G[e]=!0,()=>{G[e]=!1}):G.x||G.y?null:(G.x=G.y=!0,()=>{G.x=G.y=!1})}function Xi(e,t){const s=qi(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[s,i,()=>n.abort()]}function dl(e){return!(e.pointerType==="touch"||Yi())}function hl(e,t,s={}){const[n,i,a]=Xi(e,s);return n.forEach(r=>{let l=!1,c=!1,u;const d=()=>{r.removeEventListener("pointerleave",g)},h=w=>{u&&(u(w),u=void 0),d()},f=w=>{l=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(w))},p=()=>{l=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},g=w=>{if(w.pointerType!=="touch"){if(l){c=!0;return}h(w)}},v=w=>{if(!dl(w))return;c=!1;const x=t(r,w);typeof x=="function"&&(u=x,r.addEventListener("pointerleave",g,i))};r.addEventListener("pointerenter",v,i),r.addEventListener("pointerdown",p,i)}),a}const Zi=(e,t)=>t?e===t?!0:Zi(e,t.parentElement):!1,vs=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,fl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ml(e){return fl.has(e.tagName)||e.isContentEditable===!0}const pl=new Set(["INPUT","SELECT","TEXTAREA"]);function gl(e){return pl.has(e.tagName)||e.isContentEditable===!0}const He=new WeakSet;function Zs(e){return t=>{t.key==="Enter"&&e(t)}}function gt(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const yl=(e,t)=>{const s=e.currentTarget;if(!s)return;const n=Zs(()=>{if(He.has(s))return;gt(s,"down");const i=Zs(()=>{gt(s,"up")}),a=()=>gt(s,"cancel");s.addEventListener("keyup",i,t),s.addEventListener("blur",a,t)});s.addEventListener("keydown",n,t),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),t)};function Qs(e){return vs(e)&&!Yi()}const Js=new WeakSet;function xl(e,t,s={}){const[n,i,a]=Xi(e,s),r=l=>{const c=l.currentTarget;if(!Qs(l)||Js.has(l))return;He.add(c),s.stopPropagation&&Js.add(l);const u=t(c,l),d=(p,g)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),He.has(c)&&He.delete(c),Qs(p)&&typeof u=="function"&&u(p,{success:g})},h=p=>{d(p,c===window||c===document||s.useGlobalTarget||Zi(c,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return n.forEach(l=>{(s.useGlobalTarget?window:l).addEventListener("pointerdown",r,i),Kt(l)&&(l.addEventListener("focus",u=>yl(u,i)),!ml(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),a}function ws(e){return ti(e)&&"ownerSVGElement"in e}const Ge=new WeakMap;let qe;const Qi=(e,t,s)=>(n,i)=>i&&i[0]?i[0][e+"Size"]:ws(n)&&"getBBox"in n?n.getBBox()[t]:n[s],vl=Qi("inline","width","offsetWidth"),wl=Qi("block","height","offsetHeight");function bl({target:e,borderBoxSize:t}){Ge.get(e)?.forEach(s=>{s(e,{get width(){return vl(e,t)},get height(){return wl(e,t)}})})}function jl(e){e.forEach(bl)}function Tl(){typeof ResizeObserver>"u"||(qe=new ResizeObserver(jl))}function Al(e,t){qe||Tl();const s=qi(e);return s.forEach(n=>{let i=Ge.get(n);i||(i=new Set,Ge.set(n,i)),i.add(t),qe?.observe(n)}),()=>{s.forEach(n=>{const i=Ge.get(n);i?.delete(t),i?.size||qe?.unobserve(n)})}}const _e=new Set;let pe;function Sl(){pe=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};_e.forEach(t=>t(e))},window.addEventListener("resize",pe)}function Pl(e){return _e.add(e),pe||Sl(),()=>{_e.delete(e),!_e.size&&typeof pe=="function"&&(window.removeEventListener("resize",pe),pe=void 0)}}function en(e,t){return typeof e=="function"?Pl(e):Al(e,t)}function Cl(e){return ws(e)&&e.tagName==="svg"}const kl=[...Ki,E,_],Ml=e=>kl.find($i(e)),tn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ge=()=>({x:tn(),y:tn()}),sn=()=>({min:0,max:0}),L=()=>({x:sn(),y:sn()}),Vl=new WeakMap;function ot(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Re(e){return typeof e=="string"||Array.isArray(e)}const bs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],js=["initial",...bs];function at(e){return ot(e.animate)||js.some(t=>Re(e[t]))}function Ji(e){return!!(at(e)||e.variants)}function Nl(e,t,s){for(const n in t){const i=t[n],a=s[n];if(B(i))e.addValue(n,i);else if(B(a))e.addValue(n,we(i,{owner:e}));else if(a!==i)if(e.hasValue(n)){const r=e.getValue(n);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=e.getStaticValue(n);e.addValue(n,we(r!==void 0?r:i,{owner:e}))}}for(const n in s)t[n]===void 0&&e.removeValue(n);return t}const Ht={current:null},er={current:!1},Dl=typeof window<"u";function El(){if(er.current=!0,!!Dl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ht.current=e.matches;e.addEventListener("change",t),t()}else Ht.current=!1}const nn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let tt={};function tr(e){tt=e}function Rl(){return tt}class Ll{scrapeMotionValuesFromProps(t,s,n){return{}}constructor({parent:t,props:s,presenceContext:n,reducedMotionConfig:i,skipAnimations:a,blockInitialAnimation:r,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=hs,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 p=O.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,V.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=s.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=s,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=a,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=at(s),this.isVariantNode=Ji(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(s,{},this);for(const p in f){const g=f[p];u[p]!==void 0&&B(g)&&g.set(u[p])}}mount(t){if(this.hasBeenMounted)for(const s in this.initialValues)this.values.get(s)?.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,Vl.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,n)=>this.bindToMotionValue(n,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(er.current||El(),this.shouldReduceMotion=Ht.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ne(this.notifyUpdate),ne(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,s){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),s.accelerate&&cl.has(t)&&this.current instanceof HTMLElement){const{factory:r,keyframes:l,times:c,ease:u,duration:d}=s.accelerate,h=new Ri({element:this.current,name:t,keyframes:l,times:c,ease:u,duration:q(d)}),f=r(h);this.valueSubscriptions.set(t,()=>{f(),h.cancel()});return}const n=Te.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=s.on("change",r=>{this.latestValues[t]=r,this.props.onUpdate&&V.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),s.owner&&s.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in tt){const s=tt[t];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;n<nn.length;n++){const i=nn[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,r=t[a];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Nl(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const n=this.values.get(t);s!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&s!==void 0&&(n=we(s===null?void 0:s,{owner:this}),this.addValue(t,n)),n}readValue(t,s){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);
vendor: 13,965 bytes, line 1
1return n!=null&&(typeof n=="string"&&(ei(n)||si(n))?n=parseFloat(n):!Ml(n)&&_.test(s)&&(n=Gi(t,s)),this.setBaseTarget(t,B(n)?n.get():n)),B(n)?n.get():n}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){const{initial:s}=this.props;let n;if(typeof s=="string"||typeof s=="object"){const a=ps(this.props,s,this.presenceContext?.custom);a&&(n=a[t])}if(s&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!B(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new ts),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}scheduleRenderMicrotask(){xs.render(this.render)}}class sr extends Ll{constructor(){super(...arguments),this.KeyframeResolver=ll}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){const n=t.style;return n?n[s]:void 0}removeValueFromRenderState(t,{vars:s,style:n}){delete s[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;B(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class ie{constructor(t){this.isMounted=!1,this.node=t}update(){}}function nr({top:e,left:t,right:s,bottom:n}){return{x:{min:t,max:s},y:{min:e,max:n}}}function Il({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fl(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function yt(e){return e===void 0||e===1}function Gt({scale:e,scaleX:t,scaleY:s}){return!yt(e)||!yt(t)||!yt(s)}function ae(e){return Gt(e)||ir(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ir(e){return rn(e.x)||rn(e.y)}function rn(e){return e&&e!=="0%"}function st(e,t,s){const n=e-s,i=t*n;return s+i}function on(e,t,s,n,i){return i!==void 0&&(e=st(e,i,n)),st(e,s,n)+t}function qt(e,t=0,s=1,n,i){e.min=on(e.min,t,s,n,i),e.max=on(e.max,t,s,n,i)}function rr(e,{x:t,y:s}){qt(e.x,t.translate,t.scale,t.originPoint),qt(e.y,s.translate,s.scale,s.originPoint)}const an=.999999999999,ln=1.0000000000001;function Bl(e,t,s,n=!1){const i=s.length;if(!i)return;t.x=t.y=1;let a,r;for(let l=0;l<i;l++){a=s[l],r=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&xe(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,rr(e,r)),n&&ae(a.latestValues)&&xe(e,a.latestValues))}t.x<ln&&t.x>an&&(t.x=1),t.y<ln&&t.y>an&&(t.y=1)}function ye(e,t){e.min=e.min+t,e.max=e.max+t}function cn(e,t,s,n,i=.5){const a=N(e.min,e.max,i);qt(e,t,s,a,n)}function xe(e,t){cn(e.x,t.x,t.scaleX,t.scale,t.originX),cn(e.y,t.y,t.scaleY,t.scale,t.originY)}function or(e,t){return nr(Fl(e.getBoundingClientRect(),t))}function Ol(e,t,s){const n=or(e,s),{scroll:i}=t;return i&&(ye(n.x,i.offset.x),ye(n.y,i.offset.y)),n}const Wl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ul=je.length;function zl(e,t,s){let n="",i=!0;for(let a=0;a<Ul;a++){const r=je[a],l=e[r];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(r.startsWith("scale")?1:0);else{const u=parseFloat(l);c=r.startsWith("scale")?u===1:u===0}if(!c||s){const u=_i(l,ys[r]);if(!c){i=!1;const d=Wl[r]||r;n+=`${d}(${u}) `}s&&(t[r]=u)}}return n=n.trim(),s?n=s(t,i?"":n):i&&(n="none"),n}function Ts(e,t,s){const{style:n,vars:i,transformOrigin:a}=e;let r=!1,l=!1;for(const c in t){const u=t[c];if(Te.has(c)){r=!0;continue}else if(yi(c)){i[c]=u;continue}else{const d=_i(u,ys[c]);c.startsWith("origin")?(l=!0,a[c]=d):n[c]=d}}if(t.transform||(r||s?n.transform=zl(t,e.transform,s):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=a;n.transformOrigin=`${c} ${u} ${d}`}}function ar(e,{style:t,vars:s},n,i){const a=e.style;let r;for(r in t)a[r]=t[r];i?.applyProjectionStyles(a,n);for(r in s)a.setProperty(r,s[r])}function un(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Se={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(T.test(e))e=parseFloat(e);else return e;const s=un(e,t.target.x),n=un(e,t.target.y);return`${s}% ${n}%`}},$l={correct:(e,{treeScale:t,projectionDelta:s})=>{const n=e,i=_.parse(e);if(i.length>5)return n;const a=_.createTransformer(e),r=typeof i[0]!="number"?1:0,l=s.x.scale*t.x,c=s.y.scale*t.y;i[0+r]/=l,i[1+r]/=c;const u=N(l,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),a(i)}},_t={borderRadius:{...Se,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomLeftRadius:Se,borderBottomRightRadius:Se,boxShadow:$l};function lr(e,{layout:t,layoutId:s}){return Te.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!_t[e]||e==="opacity")}function As(e,t,s){const n=e.style,i=t?.style,a={};if(!n)return a;for(const r in n)(B(n[r])||i&&B(i[r])||lr(r,e)||s?.getValue(r)?.liveStyle!==void 0)&&(a[r]=n[r]);return a}function Kl(e){return window.getComputedStyle(e)}class Hl extends sr{constructor(){super(...arguments),this.type="html",this.renderInstance=ar}readValueFromInstance(t,s){if(Te.has(s))return this.projection?.isProjecting?Et(s):ua(t,s);{const n=Kl(t),i=(yi(s)?n.getPropertyValue(s):n[s])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:s}){return or(t,s)}build(t,s,n){Ts(t,s,n.transformTemplate)}scrapeMotionValuesFromProps(t,s,n){return As(t,s,n)}}const Gl={offset:"stroke-dashoffset",array:"stroke-dasharray"},ql={offset:"strokeDashoffset",array:"strokeDasharray"};function _l(e,t,s=1,n=0,i=!0){e.pathLength=1;const a=i?Gl:ql;e[a.offset]=`${-n}`,e[a.array]=`${t} ${s}`}const Yl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function cr(e,{attrX:t,attrY:s,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:r=0,...l},c,u,d){if(Ts(e,l,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:f}=e;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=d?.transformBox??"fill-box",delete h.transformBox);for(const p of Yl)h[p]!==void 0&&(f[p]=h[p],delete h[p]);t!==void 0&&(h.x=t),s!==void 0&&(h.y=s),n!==void 0&&(h.scale=n),i!==void 0&&_l(h,i,a,r,!1)}const ur=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"]),dr=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Xl(e,t,s,n){ar(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(ur.has(i)?i:gs(i),t.attrs[i])}function hr(e,t,s){const n=As(e,t,s);for(const i in e)if(B(e[i])||B(t[i])){const a=je.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[a]=e[i]}return n}class Zl extends sr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=L}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(Te.has(s)){const n=Hi(s);return n&&n.default||0}return s=ur.has(s)?s:gs(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,n){return hr(t,s,n)}build(t,s,n){cr(t,s,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,s,n,i){Xl(t,s,n,i)}mount(t){this.isSVGTag=dr(t.tagName),super.mount(t)}}const Ql=js.length;function fr(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?fr(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const t={};for(let s=0;s<Ql;s++){const n=js[s],i=e.props[n];(Re(i)||i===!1)&&(t[n]=i)}return t}function mr(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let n=0;n<s;n++)if(t[n]!==e[n])return!1;return!0}const Jl=[...bs].reverse(),ec=bs.length;function tc(e){return t=>Promise.all(t.map(({animation:s,options:n})=>Za(e,s,n)))}function sc(e){let t=tc(e),s=dn(),n=!0;const i=c=>(u,d)=>{const h=ve(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:p,...g}=h;u={...u,...g,...p}}return u};function a(c){t=c(e)}function r(c){const{props:u}=e,d=fr(e.parent)||{},h=[],f=new Set;let p={},g=1/0;for(let w=0;w<ec;w++){const x=Jl[w],j=s[x],y=u[x]!==void 0?u[x]:d[x],A=Re(y),m=x===c?j.isActive:null;m===!1&&(g=w);let S=y===d[x]&&y!==u[x]&&A;if(S&&n&&e.manuallyAnimateOnMount&&(S=!1),j.protectedKeys={...p},!j.isActive&&m===null||!y&&!j.prevProp||ot(y)||typeof y=="boolean")continue;if(x==="exit"&&j.isActive&&m!==!0){j.prevResolvedValues&&(p={...p,...j.prevResolvedValues});continue}const M=nc(j.prevProp,y);let P=M||x===c&&j.isActive&&!S&&A||w>g&&A,C=!1;const R=Array.isArray(y)?y:[y];let Y=R.reduce(i(x),{});m===!1&&(Y={});const{prevResolvedValues:Ae={}}=j,ct={...Ae,...Y},ks=I=>{P=!0,f.has(I)&&(C=!0,f.delete(I)),j.needsAnimating[I]=!0;const U=e.getValue(I);U&&(U.liveStyle=!1)};for(const I in ct){const U=Y[I],re=Ae[I];if(p.hasOwnProperty(I))continue;let he=!1;Ot(U)&&Ot(re)?he=!mr(U,re):he=U!==re,he?U!=null?ks(I):f.add(I):U!==void 0&&f.has(I)?ks(I):j.protectedKeys[I]=!0}j.prevProp=y,j.prevResolvedValues=Y,j.isActive&&(p={...p,...Y}),n&&e.blockInitialAnimation&&(P=!1);const Ms=S&&M;P&&(!Ms||C)&&h.push(...R.map(I=>{const U={type:x};if(typeof I=="string"&&n&&!Ms&&e.manuallyAnimateOnMount&&e.parent){const{parent:re}=e,he=ve(re,I);if(re.enteringChildren&&he){const{delayChildren:Or}=he.transition||{};U.delay=Ii(re.enteringChildren,e,Or)}}return{animation:I,options:U}}))}if(f.size){const w={};if(typeof u.initial!="boolean"){const x=ve(e,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(w.transition=x.transition)}f.forEach(x=>{const j=e.getBaseTarget(x),y=e.getValue(x);y&&(y.liveStyle=!0),w[x]=j??null}),h.push({animation:w})}let v=!!h.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?t(h):Promise.resolve()}function l(c,u){if(s[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(c,u)),s[c].isActive=u;const d=r(c);for(const h in s)s[h].protectedKeys={};return d}return{animateChanges:r,setActive:l,setAnimateFunction:a,getState:()=>s,reset:()=>{s=dn()}}}function nc(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mr(t,e):!1}function oe(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dn(){return{animate:oe(!0),whileInView:oe(),whileHover:oe(),whileTap:oe(),whileDrag:oe(),whileFocus:oe(),exit:oe()}}function hn(e,t){e.min=t.min,e.max=t.max}function H(e,t){hn(e.x,t.x),hn(e.y,t.y)}function fn(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const pr=1e-4,ic=1-pr,rc=1+pr,gr=.01,oc=0-gr,ac=0+gr;function W(e){return e.max-e.min}function lc(e,t,s){return Math.abs(e-t)<=s}function mn(e,t,s,n=.5){e.origin=n,e.originPoint=N(t.min,t.max,e.origin),e.scale=W(s)/W(t),e.translate=N(s.min,s.max,e.origin)-e.originPoint,(e.scale>=ic&&e.scale<=rc||isNaN(e.scale))&&(e.scale=1),(e.translate>=oc&&e.translate<=ac||isNaN(e.translate))&&(e.translate=0)}function Me(e,t,s,n){mn(e.x,t.x,s.x,n?n.originX:void 0),mn(e.y,t.y,s.y,n?n.originY:void 0)}function pn(e,t,s){e.min=s.min+t.min,e.max=e.min+W(t)}function cc(e,t,s){pn(e.x,t.x,s.x),pn(e.y,t.y,s.y)}function gn(e,t,s){e.min=t.min-s.min,e.max=e.min+W(t)}function nt(e,t,s){gn(e.x,t.x,s.x),gn(e.y,t.y,s.y)}function yn(e,t,s,n,i){return e-=t,e=st(e,1/s,n),i!==void 0&&(e=st(e,1/i,n)),e}function uc(e,t=0,s=1,n=.5,i,a=e,r=e){if(Z.test(t)&&(t=parseFloat(t),t=N(r.min,r.max,t/100)-r.min),typeof t!="number")return;let l=N(a.min,a.max,n);e===a&&(l-=t),e.min=yn(e.min,t,s,l,i),e.max=yn(e.max,t,s,l,i)}function xn(e,t,[s,n,i],a,r){uc(e,t[s],t[n],t[i],t.scale,a,r)}const dc=["x","scaleX","originX"],hc=["y","scaleY","originY"];function vn(e,t,s,n){xn(e.x,t,dc,s?s.x:void 0,n?n.x:void 0),xn(e.y,t,hc,s?s.y:void 0,n?n.y:void 0)}function wn(e){return e.translate===0&&e.scale===1}function yr(e){return wn(e.x)&&wn(e.y)}function bn(e,t){return e.min===t.min&&e.max===t.max}function fc(e,t){return bn(e.x,t.x)&&bn(e.y,t.y)}function jn(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xr(e,t){return jn(e.x,t.x)&&jn(e.y,t.y)}function Tn(e){return W(e.x)/W(e.y)}function An(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function X(e){return[e("x"),e("y")]}function mc(e,t,s){let n="";const i=e.x.translate/t.x,a=e.y.translate/t.y,r=s?.z||0;if((i||a||r)&&(n=`translate3d(${i}px, ${a}px, ${r}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),s){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:f,skewX:p,skewY:g}=s;u&&(n=`perspective(${u}px) ${n}`),d&&(n+=`rotate(${d}deg) `),h&&(n+=`rotateX(${h}deg) `),f&&(n+=`rotateY(${f}deg) `),p&&(n+=`skewX(${p}deg) `),g&&(n+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}const vr=["TopLeft","TopRight","BottomLeft","BottomRight"],pc=vr.length,Sn=e=>typeof e=="string"?parseFloat(e):e,Pn=e=>typeof e=="number"||T.test(e);function gc(e,t,s,n,i,a){i?(e.opacity=N(0,s.opacity??1,yc(n)),e.opacityExit=N(t.opacity??1,0,xc(n))):a&&(e.opacity=N(t.opacity??1,s.opacity??1,n));for(let r=0;r<pc;r++){const l=`border${vr[r]}Radius`;let c=Cn(t,l),u=Cn(s,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Pn(c)===Pn(u)?(e[l]=Math.max(N(Sn(c),Sn(u),n),0),(Z.test(u)||Z.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||s.rotate)&&(e.rotate=N(t.rotate||0,s.rotate||0,n))}function Cn(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const yc=wr(0,.5,di),xc=wr(.5,.95,K);
1function wr(e,t,s){return n=>n<e?0:n>t?1:s(Ne(e,t,n))}function vc(e,t,s){const n=B(e)?e:we(e);return n.start(ms("",n,t,s)),n.animation}function Le(e,t,s,n={passive:!0}){return e.addEventListener(t,s,n),()=>e.removeEventListener(t,s)}const wc=(e,t)=>e.depth-t.depth;class bc{constructor(){this.children=[],this.isDirty=!1}add(t){Jt(this.children,t),this.isDirty=!0}remove(t){Ze(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(wc),this.isDirty=!1,this.children.forEach(t)}}function jc(e,t){const s=O.now(),n=({timestamp:i})=>{const a=i-s;a>=t&&(ne(n),e(a-t))};return V.setup(n,!0),()=>ne(n)}function Ye(e){return B(e)?e.get():e}class Tc{constructor(){this.members=[]}add(t){Jt(this.members,t);for(let s=this.members.length-1;s>=0;s--){const n=this.members[s];if(n===t||n===this.lead||n===this.prevLead)continue;const i=n.instance;i&&i.isConnected===!1&&n.isPresent!==!1&&!n.snapshot&&Ze(this.members,n)}t.scheduleRender()}remove(t){if(Ze(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(i=>t===i);if(s===0)return!1;let n;for(let i=s;i>=0;i--){const a=this.members[i],r=a.instance;if(a.isPresent!==!1&&(!r||r.isConnected!==!1)){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,s){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender();const i=n.options.layoutDependency,a=t.options.layoutDependency;if(!(i!==void 0&&a!==void 0&&i===a)){const c=n.instance;c&&c.isConnected===!1&&!n.snapshot||(t.resumeFrom=n,s&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:l}=t.options;l===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:n}=t;s.onExitComplete&&s.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Xe={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xt=["","X","Y","Z"],Ac=1e3;let Sc=0;function vt(e,t,s,n){const{latestValues:i}=t;i[e]&&(s[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function br(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const s=Ui(t);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",V,!(i||a))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&br(n)}function jr({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(r={},l=t?.()){this.id=Sc++,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(kc),this.nodes.forEach(Dc),this.nodes.forEach(Ec),this.nodes.forEach(Mc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new bc)}addEventListener(r,l){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new ts),this.eventHandlers.get(r).add(l)}notifyListeners(r,...l){const c=this.eventHandlers.get(r);c&&c.notify(...l)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=ws(r)&&!Cl(r),this.instance=r;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let d,h=0;const f=()=>this.root.updateBlockedByResize=!1;V.read(()=>{h=window.innerWidth}),e(r,()=>{const p=window.innerWidth;p!==h&&(h=p,this.root.updateBlockedByResize=!0,d&&d(),d=jc(f,250),Xe.hasAnimatedSinceResize&&(Xe.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 9,081 bytes, line 1
1h(Vn)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Bc,{onLayoutAnimationStart:v,onLayoutAnimationComplete:w}=u.getProps(),x=!this.targetLayout||!xr(this.targetLayout,p),j=!h&&f;if(this.options.layoutRoot||this.resumeFrom||j||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...fs(g,"layout"),onPlay:v,onComplete:w};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(d,j)}else h||Vn(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ne(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(Rc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&br(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(kn);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Mn);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Nc),this.nodes.forEach(Pc),this.nodes.forEach(Cc)):this.nodes.forEach(Mn),this.clearAllSnapshots();const l=O.now();F.delta=Q(0,1e3/60,l-F.timestamp),F.timestamp=l,F.isProcessing=!0,ut.update.process(F),ut.preRender.process(F),ut.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vc),this.sharedNodes.forEach(Lc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=L(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(l=!1),l&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!yr(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;r&&this.instance&&(l||ae(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return r&&(c=this.removeTransform(c)),Oc(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return L();const l=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Wc))){const{scroll:u}=this.root;u&&(ye(l.x,u.offset.x),ye(l.y,u.offset.y))}return l}removeElementScroll(r){const l=L();if(H(l,r),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&H(l,r),ye(l.x,d.offset.x),ye(l.y,d.offset.y))}return l}applyTransform(r,l=!1){const c=L();H(c,r);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&xe(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ae(d.latestValues)&&xe(c,d.latestValues)}return ae(this.latestValues)&&xe(c,this.latestValues),c}removeTransform(r){const l=L();H(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!ae(u.latestValues))continue;Gt(u.latestValues)&&u.updateSnapshot();const d=L(),h=u.measurePageBox();H(d,h),vn(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ae(this.latestValues)&&vn(l,this.latestValues),l}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.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!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!this.layout||!(d||h))return;this.resolvedRelativeTargetAt=F.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=L(),this.targetWithTransforms=L()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),cc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):H(this.target,this.layout.layoutBox),rr(this.target,this.targetDelta)):H(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!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||Gt(this.parent.latestValues)||ir(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,l,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),nt(this.relativeTargetOrigin,l,c),H(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),l=!!this.resumingFrom||this!==r;let c=!0;
vendor: 4,168 bytes, line 1
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===F.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;H(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Bl(this.layoutCorrected,this.treeScale,this.path,l),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=L());const{target:p}=r;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fn(this.prevProjectionDelta.x,this.projectionDelta.x),fn(this.prevProjectionDelta.y,this.projectionDelta.y)),Me(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!An(this.projectionDelta.x,this.prevProjectionDelta.x)||!An(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ge(),this.projectionDelta=ge(),this.projectionDeltaWithTransform=ge()}setAnimationOrigin(r,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=ge();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=L(),p=c?c.source:void 0,g=this.layout?this.layout.source:void 0,v=p!==g,w=this.getStack(),x=!w||w.members.length<=1,j=!!(v&&!x&&this.options.crossfade===!0&&!this.path.some(Fc));this.animationProgress=0;let y;this.mixTargetDelta=A=>{const m=A/1e3;Nn(h.x,r.x,m),Nn(h.y,r.y,m),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ic(this.relativeTarget,this.relativeTargetOrigin,f,m),y&&fc(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=L()),H(y,this.relativeTarget)),v&&(this.animationValues=d,gc(d,u,this.latestValues,m,j,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ne(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{Xe.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=we(0)),this.motionValue.jump(0,!1),this.currentAnimation=vc(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),r.onUpdate&&r.onUpdate(l)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ac),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=r;if(!(!l||!c||!u)){if(this!==r&&this.layout&&u&&Tr(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||L();const h=W(this.layout.layoutBox.x);
vendor: 19,170 bytes, lines 1-9
1c.x.min=r.target.x.min,c.x.max=c.x.min+h;const f=W(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}H(l,c),xe(l,d),Me(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(r,l){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Tc),this.sharedNodes.get(r).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let l=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&vt("z",r,u,this.animationValues);for(let d=0;d<xt.length;d++)vt(`rotate${xt[d]}`,r,u,this.animationValues),vt(`skew${xt[d]}`,r,u,this.animationValues);r.render();for(const d in u)r.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);r.scheduleRender()}applyProjectionStyles(r,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Ye(l?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Ye(l?.pointerEvents)||""),this.hasProjected&&!ae(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=mc(this.projectionDeltaWithTransform,this.treeScale,d);c&&(h=c(d,h)),r.transform=h;const{x:f,y:p}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,u.animationValues?r.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:r.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in _t){if(d[g]===void 0)continue;const{correct:v,applyTo:w,isCSSVariable:x}=_t[g],j=h==="none"?d[g]:v(d[g],u);if(w){const y=w.length;for(let A=0;A<y;A++)r[w[A]]=j}else x?this.options.visualElement.renderState.vars[g]=j:r[g]=j}this.options.layoutId&&(r.pointerEvents=u===this?Ye(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(kn),this.root.sharedNodes.clear()}}}function Pc(e){e.updateLayout()}function Cc(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:n}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?X(d=>{const h=a?t.measuredBox[d]:t.layoutBox[d],f=W(h);h.min=s[d].min,h.max=h.min+f}):Tr(i,t.layoutBox,s)&&X(d=>{const h=a?t.measuredBox[d]:t.layoutBox[d],f=W(s[d]);h.max=h.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const r=ge();Me(r,s,t.layoutBox);const l=ge();a?Me(l,e.applyTransform(n,!0),t.measuredBox):Me(l,s,t.layoutBox);const c=!yr(r);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const p=L();nt(p,t.layoutBox,h.layoutBox);const g=L();nt(g,s,f.layoutBox),xr(p,g)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=p,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:l,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function kc(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Mc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vc(e){e.clearSnapshot()}function kn(e){e.clearMeasurements()}function Mn(e){e.isLayoutDirty=!1}function Nc(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Vn(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Dc(e){e.resolveTargetDelta()}function Ec(e){e.calcProjection()}function Rc(e){e.resetSkewAndRotation()}function Lc(e){e.removeLeadSnapshot()}function Nn(e,t,s){e.translate=N(t.translate,0,s),e.scale=N(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function Dn(e,t,s,n){e.min=N(t.min,s.min,n),e.max=N(t.max,s.max,n)}function Ic(e,t,s,n){Dn(e.x,t.x,s.x,n),Dn(e.y,t.y,s.y,n)}function Fc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Bc={duration:.45,ease:[.4,0,.1,1]},En=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rn=En("applewebkit/")&&!En("chrome/")?Math.round:K;function Ln(e){e.min=Rn(e.min),e.max=Rn(e.max)}function Oc(e){Ln(e.x),Ln(e.y)}function Tr(e,t,s){return e==="position"||e==="preserve-aspect"&&!lc(Tn(t),Tn(s),.2)}function Wc(e){return e!==e.root&&e.scroll?.wasRoot}const Uc=jr({attachResizeListener:(e,t)=>Le(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),wt={current:void 0},Ar=jr({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wt.current){const e=new Uc({});e.mount(window),e.setOptions({layoutScroll:!0}),wt.current=e}return wt.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ss=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function In(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zc(...e){return t=>{let s=!1;const n=e.map(i=>{const a=In(i,t);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():In(e[i],null)}}}}function $c(...e){return b.useCallback(zc(...e),e)}class Kc extends b.Component{getSnapshotBeforeUpdate(t){const s=this.props.childRef.current;if(s&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=s.offsetParent,i=Kt(n)&&n.offsetWidth||0,a=Kt(n)&&n.offsetHeight||0,r=this.props.sizeRef.current;r.height=s.offsetHeight||0,r.width=s.offsetWidth||0,r.top=s.offsetTop,r.left=s.offsetLeft,r.right=i-r.width-r.left,r.bottom=a-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Hc({children:e,isPresent:t,anchorX:s,anchorY:n,root:i,pop:a}){const r=b.useId(),l=b.useRef(null),c=b.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=b.useContext(Ss),d=e.props?.ref??e?.ref,h=$c(l,d);return b.useInsertionEffect(()=>{const{width:f,height:p,top:g,left:v,right:w,bottom:x}=c.current;if(t||a===!1||!l.current||!f||!p)return;const j=s==="left"?`left: ${v}`:`right: ${w}`,y=n==="bottom"?`bottom: ${x}`:`top: ${g}`;l.current.dataset.motionPopId=r;const A=document.createElement("style");u&&(A.nonce=u);const m=i??document.head;return m.appendChild(A),A.sheet&&A.sheet.insertRule(`
2          [data-motion-pop-id="${r}"] {
3            position: absolute !important;
4            width: ${f}px !important;
5            height: ${p}px !important;
6            ${j}px !important;
7            ${y}px !important;
8          }
9        `),()=>{m.contains(A)&&m.removeChild(A)}},[t]),o.jsx(Kc,{isPresent:t,childRef:l,sizeRef:c,pop:a,children:a===!1?e:b.cloneElement(e,{ref:h})})}const Gc=({children:e,initial:t,isPresent:s,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:r,anchorX:l,anchorY:c,root:u})=>{const d=Qt(qc),h=b.useId();let f=!0,p=b.useMemo(()=>(f=!1,{id:h,initial:t,isPresent:s,custom:i,onExitComplete:g=>{d.set(g,!0);for(const v of d.values())if(!v)return;n&&n()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[s,d,n]);return a&&f&&(p={...p}),b.useMemo(()=>{d.forEach((g,v)=>d.set(v,!1))},[s]),b.useEffect(()=>{!s&&!d.size&&n&&n()},[s]),e=o.jsx(Hc,{pop:r==="popLayout",isPresent:s,anchorX:l,anchorY:c,root:u,children:e}),o.jsx(rt.Provider,{value:p,children:e})};function qc(){return new Map}function Sr(e=!0){const t=b.useContext(rt);if(t===null)return[!0,null];const{isPresent:s,onExitComplete:n,register:i}=t,a=b.useId();b.useEffect(()=>{if(e)return i(a)},[e]);const r=b.useCallback(()=>e&&n&&n(a),[a,n,e]);return!s&&n?[!1,r]:[!0]}const ze=e=>e.key||"";function Fn(e){const t=[];return b.Children.forEach(e,s=>{b.isValidElement(s)&&t.push(s)}),t}const _c=({children:e,custom:t,initial:s=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:a="sync",propagate:r=!1,anchorX:l="left",anchorY:c="top",root:u})=>{const[d,h]=Sr(r),f=b.useMemo(()=>Fn(e),[e]),p=r&&!d?[]:f.map(ze),g=b.useRef(!0),v=b.useRef(f),w=Qt(()=>new Map),x=b.useRef(new Set),[j,y]=b.useState(f),[A,m]=b.useState(f);Jn(()=>{g.current=!1,v.current=f;for(let P=0;P<A.length;P++){const C=ze(A[P]);p.includes(C)?(w.delete(C),x.current.delete(C)):w.get(C)!==!0&&w.set(C,!1)}},[A,p.length,p.join("-")]);const S=[];if(f!==j){let P=[...f];for(let C=0;C<A.length;C++){const R=A[C],Y=ze(R);p.includes(Y)||(P.splice(C,0,R),S.push(R))}return a==="wait"&&S.length&&(P=S),m(Fn(P)),y(f),null}const{forceRender:M}=b.useContext(Zt);return o.jsx(o.Fragment,{children:A.map(P=>{const C=ze(P),R=r&&!d?!1:f===A||p.includes(C),Y=()=>{if(x.current.has(C))return;if(x.current.add(C),w.has(C))w.set(C,!0);else return;let Ae=!0;w.forEach(ct=>{ct||(Ae=!1)}),Ae&&(M?.(),m(v.current),r&&h?.(),n&&n())};return o.jsx(Gc,{isPresent:R,initial:!g.current||s?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:u,onExitComplete:R?void 0:Y,anchorX:l,anchorY:c,children:P},C)})})},Pr=b.createContext({strict:!1}),Bn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let On=!1;function Yc(){if(On)return;const e={};for(const t in Bn)e[t]={isEnabled:s=>Bn[t].some(n=>!!s[n])};tr(e),On=!0}function Cr(){return Yc(),Rl()}function Xc(e){const t=Cr();for(const s in e)t[s]={...t[s],...e[s]};tr(t)}const Zc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function it(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Zc.has(e)}let kr=e=>!it(e);function Qc(e){typeof e=="function"&&(kr=t=>t.startsWith("on")?!it(t):e(t))}try{Qc(require("@emotion/is-prop-valid").default)}catch{}function Jc(e,t,s){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(kr(i)||s===!0&&it(i)||!t&&!it(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}const lt=b.createContext({});function eu(e,t){if(at(e)){const{initial:s,animate:n}=e;return{initial:s===!1||Re(s)?s:void 0,animate:Re(n)?n:void 0}}return e.inherit!==!1?t:{}}function tu(e){const{initial:t,animate:s}=eu(e,b.useContext(lt));return b.useMemo(()=>({initial:t,animate:s}),[Wn(t),Wn(s)])}function Wn(e){return Array.isArray(e)?e.join(" "):e}const Ps=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Mr(e,t,s){for(const n in t)!B(t[n])&&!lr(n,s)&&(e[n]=t[n])}function su({transformTemplate:e},t){return b.useMemo(()=>{const s=Ps();return Ts(s,t,e),Object.assign({},s.vars,s.style)},[t])}function nu(e,t){const s=e.style||{},n={};return Mr(n,s,e),Object.assign(n,su(e,t)),n}function iu(e,t){const s={},n=nu(e,t);return e.drag&&e.dragListener!==!1&&(s.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=n,s}const Vr=()=>({...Ps(),attrs:{}});function ru(e,t,s,n){const i=b.useMemo(()=>{const a=Vr();return cr(a,t,dr(n),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Mr(a,e.style,e),i.style={...a,...i.style}}return i}const ou=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cs(e){return typeof e!="string"||e.includes("-")?!1:!!(ou.indexOf(e)>-1||/[A-Z]/u.test(e))}function au(e,t,s,{latestValues:n},i,a=!1,r){const c=(r??Cs(e)?ru:iu)(t,n,i,e),u=Jc(t,typeof e=="string",a),d=e!==b.Fragment?{...u,...c,ref:s}:{},{children:h}=t,f=b.useMemo(()=>B(h)?h.get():h,[h]);return b.createElement(e,{...d,children:f})}function lu({scrapeMotionValuesFromProps:e,createRenderState:t},s,n,i){return{latestValues:cu(s,n,i,e),renderState:t()}}function cu(e,t,s,n){const i={},a=n(e,{});for(const f in a)i[f]=Ye(a[f]);let{initial:r,animate:l}=e;const c=at(e),u=Ji(e);t&&u&&!c&&e.inherit!==!1&&(r===void 0&&(r=t.initial),l===void 0&&(l=t.animate));let d=s?s.initial===!1:!1;d=d||r===!1;const h=d?l:r;if(h&&typeof h!="boolean"&&!ot(h)){const f=Array.isArray(h)?h:[h];for(let p=0;p<f.length;p++){const g=ps(e,f[p]);if(g){const{transitionEnd:v,transition:w,...x}=g;for(const j in x){let y=x[j];if(Array.isArray(y)){const A=d?y.length-1:0;y=y[A]}y!==null&&(i[j]=y)}for(const j in v)i[j]=v[j]}}}return i}const Nr=e=>(t,s)=>{const n=b.useContext(lt),i=b.useContext(rt),a=()=>lu(e,t,n,i);return s?a():Qt(a)},uu=Nr({scrapeMotionValuesFromProps:As,createRenderState:Ps}),du=Nr({scrapeMotionValuesFromProps:hr,createRenderState:Vr}),hu=Symbol.for("motionComponentSymbol");function fu(e,t,s){const n=b.useRef(s);b.useInsertionEffect(()=>{n.current=s});const i=b.useRef(null);return b.useCallback(a=>{a&&e.onMount?.(a),t&&(a?t.mount(a):t.unmount());const r=n.current;if(typeof r=="function")if(a){const l=r(a);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):r(a);else r&&(r.current=a)},[t])}const Dr=b.createContext({});function fe(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mu(e,t,s,n,i,a){const{visualElement:r}=b.useContext(lt),l=b.useContext(Pr),c=b.useContext(rt),u=b.useContext(Ss),d=u.reducedMotion,h=u.skipAnimations,f=b.useRef(null),p=b.useRef(!1);n=n||l.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:r,props:s,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:h,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const g=f.current,v=b.useContext(Dr);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&pu(f.current,s,i,v);const w=b.useRef(!1);b.useInsertionEffect(()=>{g&&w.current&&g.update(s,c)});const x=s[Wi],j=b.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return Jn(()=>{p.current=!0,g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),j.current&&g.animationState&&g.animationState.animateChanges())}),b.useEffect(()=>{g&&(!j.current&&g.animationState&&g.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),j.current=!1),g.enteringChildren=void 0)}),g}function pu(e,t,s,n){const{layoutId:i,layout:a,drag:r,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new s(e.latestValues,t["data-framer-portal-id"]?void 0:Er(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!r||l&&fe(l),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:c,layoutRoot:u})}function Er(e){if(e)return e.options.allowProjection!==!1?e.projection:Er(e.parent)}function bt(e,{forwardMotionProps:t=!1,type:s}={},n,i){n&&Xc(n);const a=s?s==="svg":Cs(e),r=a?du:uu;function l(u,d){let h;const f={...b.useContext(Ss),...u,layoutId:gu(u)},{isStatic:p}=f,g=tu(u),v=r(u,p);if(!p&&Qn){yu();const w=xu(f);h=w.MeasureLayout,g.visualElement=mu(e,v,f,i,w.ProjectionNode,a)}return o.jsxs(lt.Provider,{value:g,children:[h&&g.visualElement?o.jsx(h,{visualElement:g.visualElement,...f}):null,au(e,u,fu(v,g.visualElement,d),v,p,t,a)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=b.forwardRef(l);return c[hu]=e,c}function gu({layoutId:e}){const t=b.useContext(Zt).id;return t&&e!==void 0?t+"-"+e:e}function yu(e,t){b.useContext(Pr).strict}function xu(e){const t=Cr(),{drag:s,layout:n}=t;if(!s&&!n)return{};const i={...s,...n};return{MeasureLayout:s?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function vu(e,t){if(typeof Proxy>"u")return bt;const s=new Map,n=(a,r)=>bt(a,r,e,t),i=(a,r)=>n(a,r);return new Proxy(i,{get:(a,r)=>r==="create"?n:(s.has(r)||s.set(r,bt(r,void 0,e,t)),s.get(r))})}const wu=(e,t)=>t.isSVG??Cs(e)?new Zl(t):new Hl(t,{allowProjection:e!==b.Fragment});class bu extends ie{constructor(t){super(t),t.animationState||(t.animationState=sc(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ot(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ju=0;class Tu extends ie{constructor(){super(...arguments),this.id=ju++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);s&&!t&&i.then(()=>{s(this.id)})}mount(){const{register:t,onExitComplete:s}=this.node.presenceContext||{};
vendor: 15,417 bytes, line 9
9s&&s(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Au={animation:{Feature:bu},exit:{Feature:Tu}};function Oe(e){return{point:{x:e.pageX,y:e.pageY}}}const Su=e=>t=>vs(t)&&e(t,Oe(t));function Ve(e,t,s,n){return Le(e,t,Su(s),n)}const Rr=({current:e})=>e?e.ownerDocument.defaultView:null,Un=(e,t)=>Math.abs(e-t);function Pu(e,t){const s=Un(e.x,t.x),n=Un(e.y,t.y);return Math.sqrt(s**2+n**2)}const zn=new Set(["auto","scroll"]);class Lr{constructor(t,s,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:r=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Tt(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,v=Pu(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!v)return;const{point:w}=p,{timestamp:x}=F;this.history.push({...w,timestamp:x});const{onStart:j,onMove:y}=this.handlers;g||(j&&j(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,p)},this.handlePointerMove=(p,g)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=jt(g,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(p,g)=>{this.end();const{onEnd:v,onSessionEnd:w,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=Tt(p.type==="pointercancel"?this.lastMoveEventInfo:jt(g,this.transformPagePoint),this.history);this.startEvent&&v&&v(p,j),w&&w(p,j)},!vs(t))return;this.dragSnapToOrigin=a,this.handlers=s,this.transformPagePoint=n,this.distanceThreshold=r,this.contextWindow=i||window;const c=Oe(t),u=jt(c,this.transformPagePoint),{point:d}=u,{timestamp:h}=F;this.history=[{...d,timestamp:h}];const{onSessionStart:f}=s;f&&f(t,Tt(u,this.history)),this.removeListeners=Ie(Ve(this.contextWindow,"pointermove",this.handlePointerMove),Ve(this.contextWindow,"pointerup",this.handlePointerUp),Ve(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let s=t.parentElement;for(;s;){const n=getComputedStyle(s);(zn.has(n.overflowX)||zn.has(n.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const s=this.scrollPositions.get(t);if(!s)return;const n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},a={x:i.x-s.x,y:i.y-s.y};a.x===0&&a.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(t,i),V.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ne(this.updatePoint)}}function jt(e,t){return t?{point:t(e.point)}:e}function $n(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Tt({point:e},t){return{point:e,delta:$n(e,Ir(t)),offset:$n(e,Cu(t)),velocity:ku(t,.1)}}function Cu(e){return e[0]}function Ir(e){return e[e.length-1]}function ku(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,n=null;const i=Ir(e);for(;s>=0&&(n=e[s],!(i.timestamp-n.timestamp>q(t)));)s--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&i.timestamp-n.timestamp>q(t)*2&&(n=e[1]);const a=$(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const r={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Mu(e,{min:t,max:s},n){return t!==void 0&&e<t?e=n?N(t,e,n.min):Math.max(e,t):s!==void 0&&e>s&&(e=n?N(s,e,n.max):Math.min(e,s)),e}function Kn(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function Vu(e,{top:t,left:s,bottom:n,right:i}){return{x:Kn(e.x,s,i),y:Kn(e.y,t,n)}}function Hn(e,t){let s=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([s,n]=[n,s]),{min:s,max:n}}function Nu(e,t){return{x:Hn(e.x,t.x),y:Hn(e.y,t.y)}}function Du(e,t){let s=.5;const n=W(e),i=W(t);return i>n?s=Ne(t.min,t.max-n,e.min):n>i&&(s=Ne(e.min,e.max-i,t.min)),Q(0,1,s)}function Eu(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const Yt=.35;function Ru(e=Yt){return e===!1?e=0:e===!0&&(e=Yt),{x:Gn(e,"left","right"),y:Gn(e,"top","bottom")}}function Gn(e,t,s){return{min:qn(e,t),max:qn(e,s)}}function qn(e,t){return typeof e=="number"?e:e[t]||0}const Lu=new WeakMap;class Iu{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=L(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:s=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=h=>{s&&this.snapToCursor(Oe(h).point),this.stopAnimation()},r=(h,f)=>{const{drag:p,dragPropagation:g,onDragStart:v}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ul(p),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),X(x=>{let j=this.getAxisMotionValue(x).get()||0;if(Z.test(j)){const{projection:y}=this.visualElement;if(y&&y.layout){const A=y.layout.layoutBox[x];A&&(j=W(A)*(parseFloat(j)/100))}}this.originPoint[x]=j}),v&&V.update(()=>v(h,f),!1,!0),Wt(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:v,onDrag:w}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=f;if(g&&this.currentDirection===null){this.currentDirection=Bu(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),w&&V.update(()=>w(h,f),!1,!0)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new Lr(t,{onSessionStart:a,onStart:r,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:n,contextWindow:Rr(this.visualElement),element:this.visualElement.current})}stop(t,s){const n=t||this.latestPointerEvent,i=s||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!n)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:l}=this.getProps();l&&V.postRender(()=>l(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,s,n){const{drag:i}=this.getProps();if(!n||!$e(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let r=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=Mu(r,this.constraints[t],this.elastic[t])),a.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:s}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&fe(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=Vu(n.layoutBox,t):this.constraints=!1,this.elastic=Ru(s),i!==this.constraints&&!fe(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&X(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Eu(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!fe(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Ol(n,i.root,this.visualElement.getTransformPagePoint());let r=Nu(i.layout.layoutBox,a);if(s){const l=s(Il(r));this.hasMutatedConstraints=!!l,l&&(r=nr(l))}return r}startAnimation(t){const{drag:s,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:r,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=X(d=>{if(!$e(d,s,this.currentDirection))return;let h=c&&c[d]||{};r&&(h={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:n?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(l)}startAxisValueAnimation(t,s){const n=this.getAxisMotionValue(t);return Wt(this.visualElement,t),n.start(ms(t,n,0,s,this.visualElement,!1))}stopAnimation(){X(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[s];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){X(s=>{const{drag:n}=this.getProps();if(!$e(s,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(s);if(i&&i.layout){const{min:r,max:l}=i.layout.layoutBox[s],c=a.get()||0;a.set(t[s]-N(r,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!fe(s)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};X(r=>{const l=this.getAxisMotionValue(r);if(l&&this.constraints!==!1){const c=l.get();i[r]=Du({min:c,max:c},this.constraints[r])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),X(r=>{if(!$e(r,t,null))return;const l=this.getAxisMotionValue(r),{min:c,max:u}=this.constraints[r];l.set(N(c,u,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Lu.set(this.visualElement,this);const t=this.visualElement.current,s=Ve(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps(),f=u.target,p=f!==t&&gl(f);d&&h&&!p&&this.start(u)});let n;const i=()=>{const{dragConstraints:u}=this.getProps();fe(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),n||(n=Fu(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:a}=this.visualElement,r=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),V.read(i);const l=Le(window,"resize",()=>this.scalePositionWithinConstraints()),c=a.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(X(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=u[h].translate,f.set(f.get()+u[h].translate))}),this.visualElement.render())}));return()=>{l(),s(),r(),c&&c(),n&&n()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:r=Yt,dragMomentum:l=!0}=t;return{...t,drag:s,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:r,dragMomentum:l}}}function _n(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Fu(e,t,s){const n=en(e,_n(s)),i=en(t,_n(s));return()=>{n(),i()}}function $e(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function Bu(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class Ou extends ie{constructor(t){super(t),this.removeGroupControls=K,this.removeListeners=K,this.controls=new Iu(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||K}update(){const{dragControls:t}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};t!==s&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const At=e=>(t,s)=>{e&&V.update(()=>e(t,s),!1,!0)};class Wu extends ie{constructor(){super(...arguments),this.removePointerDownListener=K}onPointerDown(t){this.session=new Lr(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rr(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:At(t),onStart:At(s),onMove:At(n),onEnd:(a,r)=>{delete this.session,i&&V.postRender(()=>i(a,r))}}}mount(){this.removePointerDownListener=Ve(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let St=!1;class Uu extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=t;a&&(s.group&&s.group.add(a),n&&n.register&&i&&n.register(a),St&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Xe.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:n,drag:i,isPresent:a}=this.props,{projection:r}=n;return r&&(r.isPresent=a,t.layoutDependency!==s&&r.setOptions({...r.options,layoutDependency:s}),St=!0,i||t.layoutDependency!==s||s===void 0||t.isPresent!==a?r.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?r.promote():r.relegate()||V.postRender(()=>{const l=r.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),xs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n}=this.props,{projection:i}=t;St=!0,i&&(i.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Fr(e){const[t,s]=Sr(),n=b.useContext(Zt);return o.jsx(Uu,{...e,layoutGroup:n,switchLayoutGroup:b.useContext(Dr),isPresent:t,safeToRemove:s})}const zu={pan:{Feature:Wu},drag:{Feature:Ou,ProjectionNode:Ar,MeasureLayout:Fr}};function Yn(e,t,s){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",s==="Start");const i="onHover"+s,a=n[i];a&&V.postRender(()=>a(t,Oe(t)))}
9class $u extends ie{mount(){const{current:t}=this.node;t&&(this.unmount=hl(t,(s,n)=>(Yn(this.node,n,"Start"),i=>Yn(this.node,i,"End"))))}unmount(){}}class Ku extends ie{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ie(Le(this.node.current,"focus",()=>this.onFocus()),Le(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xn(e,t,s){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",s==="Start");const i="onTap"+(s==="End"?"":s),a=n[i];a&&V.postRender(()=>a(t,Oe(t)))}class Hu extends ie{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:s,propagate:n}=this.node.props;this.unmount=xl(t,(i,a)=>(Xn(this.node,a,"Start"),(r,{success:l})=>Xn(this.node,r,l?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:n?.tap===!1})}unmount(){}}const Xt=new WeakMap,Pt=new WeakMap,Gu=e=>{const t=Xt.get(e.target);t&&t(e)},qu=e=>{e.forEach(Gu)};function _u({root:e,...t}){const s=e||document;Pt.has(s)||Pt.set(s,{});const n=Pt.get(s),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(qu,{root:e,...t})),n[i]}function Yu(e,t,s){const n=_u(t);return Xt.set(e,s),n.observe(e),()=>{Xt.delete(e),n.unobserve(e)}}const Xu={some:0,all:1};class Zu extends ie{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:n,amount:i="some",once:a}=t,r={root:s?s.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Xu[i]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(c)};return Yu(this.node.current,r,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(Qu(t,s))&&this.startObserver()}unmount(){}}function Qu({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const Ju={inView:{Feature:Zu},tap:{Feature:Hu},focus:{Feature:Ku},hover:{Feature:$u}},ed={layout:{ProjectionNode:Ar,MeasureLayout:Fr}},td={...Au,...Ju,...zu,...ed},z=vu(td,wu);function Br(){const[e,t]=b.useState(()=>Zn());return b.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const s=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>t(Zn());return s.addEventListener?s.addEventListener("change",n):s.addListener&&s.addListener(n),()=>{s.removeEventListener?s.removeEventListener("change",n):s.removeListener&&s.removeListener(n)}},[]),e}function Zn(){if(typeof window>"u"||typeof navigator>"u")return!1;try{if(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return!0}catch{}const e=navigator.hardwareConcurrency;if(typeof e=="number"&&e>0&&e<=4)return!0;const t=navigator.deviceMemory;if(typeof t=="number"&&t>0&&t<=4)return!0;const s=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return!!(s&&(s.saveData||typeof s.effectiveType=="string"&&/^(slow-2g|2g|3g)$/.test(s.effectiveType)))}function sd(){const e=b.useRef(null),t=Br();return b.useEffect(()=>{if(t)return;const s=e.current;if(!s)return;const n=s.getContext("2d"),i=()=>{const x=Math.min(window.devicePixelRatio||1,2);s.width=s.clientWidth*x,s.height=s.clientHeight*x,n.setTransform(x,0,0,x,0,0)};i(),window.addEventListener("resize",i);const a=window.matchMedia("(prefers-reduced-motion: reduce)").matches,l=Array.from({length:24}).map(()=>({x:Math.random()*s.clientWidth,y:Math.random()*s.clientHeight,vx:(Math.random()-.5)*(a?0:.18),vy:(Math.random()-.5)*(a?0:.18)})),c=160;let u=0,d=!1,h=!0;const f=()=>{const x=s.clientWidth,j=s.clientHeight;n.clearRect(0,0,x,j);for(const y of l)y.x+=y.vx,y.y+=y.vy,(y.x<0||y.x>x)&&(y.vx*=-1),(y.y<0||y.y>j)&&(y.vy*=-1);for(let y=0;y<l.length;y++)for(let A=y+1;A<l.length;A++){const m=l[y].x-l[A].x,S=l[y].y-l[A].y,M=Math.hypot(m,S);if(M<c){const P=1-M/c;n.strokeStyle=`rgba(102, 126, 234, ${P*.18})`,n.lineWidth=1,n.beginPath(),n.moveTo(l[y].x,l[y].y),n.lineTo(l[A].x,l[A].y),n.stroke()}}for(const y of l)n.fillStyle="rgba(102, 126, 234, 0.45)",n.beginPath(),n.arc(y.x,y.y,1.6,0,Math.PI*2),n.fill();!a&&d&&(u=requestAnimationFrame(f))},p=()=>{a||d||(d=!0,u=requestAnimationFrame(f))},g=()=>{d=!1,cancelAnimationFrame(u)},v=()=>{h&&document.visibilityState==="visible"?p():g()},w=new IntersectionObserver(x=>{h=x[0]?.isIntersecting??!0,v()},{threshold:0});return w.observe(s),document.addEventListener("visibilitychange",v),v(),()=>{window.removeEventListener("resize",i),document.removeEventListener("visibilitychange",v),w.disconnect(),g()}},[t]),o.jsxs("div",{className:`hero-bg${t?" hero-bg-lowend":""}`,"aria-hidden":"true",children:[o.jsx("div",{className:"hero-orb hero-orb-1"}),o.jsx("div",{className:"hero-orb hero-orb-2"}),o.jsx("div",{className:"hero-orb hero-orb-3"}),!t&&o.jsx("canvas",{ref:e,className:"hero-bg-canvas"}),o.jsx("div",{className:"hero-waveform","aria-hidden":"true",children:Array.from({length:t?18:36}).map((s,n)=>o.jsx("span",{className:"hero-wave-bar",style:t?void 0:{animationDelay:`${n*50}ms`,animationDuration:`${1200+n%5*150}ms`}},n))})]})}const pd=()=>{const e=Ur(),t=Br(),[s,n]=b.useState(!1),[i,a]=b.useState(!1),[r,l]=b.useState(!1),[c,u]=b.useState({name:"",email:"",experience:"",source:""}),[d,h]=b.useState(null),[f,p]=b.useState(""),g=b.useMemo(()=>[zr(),$r([{name:"Home",path:"/"}])],[]);b.useEffect(()=>{const m=localStorage.getItem("token");n(!!m)},[]);const v=async()=>
9{if(s){e("/dashboard");return}try{const m=await fetch(Vs.getApiUrl("/api/auth/access-config"));if((m.ok?await m.json():null)?.restrictedMode){l(!0),requestAnimationFrame(()=>{document.getElementById("request-access")?.scrollIntoView({behavior:"smooth"})});return}}catch{}e("/signup")},w=m=>{if(m==="enterprise"){e("/contact-sales?plan=enterprise");return}if(m==="all-access-launch"){e("/billing?product=all-access&currency=USD");return}e(`/payment?plan=${encodeURIComponent(m)}`)},x=async m=>{m.preventDefault(),h("loading"),p("");try{const M=await(await fetch(Vs.getApiUrl("/api/auth/request-access"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)})).json();M.success?(h("success"),p(M.message)):(h("error"),p(M.error||"Something went wrong"))}catch{h("error"),p("Network error. Please try again.")}},j=t?{initial:{opacity:1,y:0},animate:{opacity:1,y:0},transition:{duration:0}}:{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,ease:"easeOut"}},y=t?{animate:{}}:{animate:{transition:{staggerChildren:.1}}},A=(m={})=>t?{}:{initial:{opacity:0,y:24,...m.initial||{}},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.45,...m.transition||{}}};return o.jsxs("div",{className:"landing-page",children:[o.jsx(Kr,{title:"Vagle AI | Voice Agents for Customer Experience and Business Operations",description:"Vagle AI helps commercial businesses improve customer experience and internal coordination with voice agents that handle calls, qualify leads, update systems, route work, and manage follow-ups.",path:"/",schema:g}),o.jsxs("div",{className:"landing-motion-lines","aria-hidden":"true",children:[o.jsx("div",{className:"motion-line down-1"}),o.jsx("div",{className:"motion-line down-2"}),o.jsx("div",{className:"motion-line down-3"}),o.jsx("div",{className:"motion-line down-4"}),o.jsx("div",{className:"motion-line down-5"}),o.jsx("div",{className:"motion-line up-1"}),o.jsx("div",{className:"motion-line up-2"}),o.jsx("div",{className:"motion-line up-3"}),o.jsx("div",{className:"motion-line up-4"})]}),o.jsx("header",{className:"site-header",children:o.jsxs("nav",{className:"site-nav",children:[o.jsxs("div",{className:"nav-brand",children:["Vagle",o.jsx("span",{children:"AI"})]}),o.jsxs("ul",{className:"nav-menu",children:[o.jsx("li",{children:o.jsx(k,{to:"/how-it-works",children:"How It Works"})}),o.jsx("li",{children:o.jsx(k,{to:"/features",children:"Features"})}),o.jsx("li",{children:o.jsx(k,{to:"/use-cases",children:"Use Cases"})}),o.jsx("li",{children:o.jsx(k,{to:"/llm-models",children:"LLM Models"})}),o.jsx("li",{children:o.jsx(k,{to:"/pricing",children:"Pricing"})})]}),o.jsxs("div",{className:"nav-right",children:[!s&&!r&&o.jsxs(o.Fragment,{children:[o.jsx(k,{to:"/login",className:"nav-link-login",children:"Log in"}),o.jsx(k,{to:"/signup",className:"nav-btn",children:"Get started"})]}),o.jsx("button",{className:"nav-mobile-toggle",onClick:()=>a(!i),"aria-label":"Toggle menu",children:i?o.jsx(Wr,{size:22}):o.jsx(to,{size:22})})]})]})}),o.jsx(_c,{children:i&&o.jsxs(z.div,{className:"nav-mobile-menu",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[o.jsx(k,{to:"/how-it-works",onClick:()=>a(!1),children:"How It Works"}),o.jsx(k,{to:"/features",onClick:()=>a(!1),children:"Features"}),o.jsx(k,{to:"/use-cases",onClick:()=>a(!1),children:"Use Cases"}),o.jsx(k,{to:"/llm-models",onClick:()=>a(!1),children:"LLM Models"}),o.jsx(k,{to:"/pricing",onClick:()=>a(!1),children:"Pricing"}),!s&&!r&&o.jsxs(o.Fragment,{children:[o.jsx(k,{to:"/login",onClick:()=>a(!1),children:"Log in"}),o.jsx(k,{to:"/signup",className:"nav-mobile-cta",onClick:()=>a(!1),children:"Get started"})]})]})}),o.jsxs("section",{id:"hero",className:"hero",children:[o.jsx(sd,{}),o.jsxs("div",{className:"container hero-inner",children:[o.jsxs(z.div,{className:"pricing-offer-banner hero-offer-board",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.55,delay:.12},children:[o.jsxs("div",{children:[o.jsx("span",{children:"Launch offer"}),o.jsx("strong",{children:"Unlock every automation feature with All Access"}),o.jsx("p",{children:"Includes Follow-Up Funnels, Multi Agents, Smart Assets, tool workspaces, webhooks, client onboarding, audit logs, and usage visibility. Calling and provider usage remain pay as you go."})]}),o.jsxs("div",{className:"pricing-offer-price",children:[o.jsx("small",{children:"All Access"}),o.jsx("b",{children:"$20/month"}),o.jsx("em",{children:"or $150/year"})]})]}),o.jsxs(z.div,{className:"hero-content",initial:"initial",animate:"animate",variants:y,children:[o.jsxs(z.h1,{variants:j,className:"hero-h1 hero-h1-compact",children:["Build AI Agents That ",o.jsx("span",{className:"accent",children:"Take Action"}),", Not Just Talk"]}),o.jsx(z.p,{variants:j,className:"hero-subtitle",children:"Vagle AI voice agents help customers faster and keep teams aligned by handling calls, updating business systems, routing work, and managing follow-ups."}),o.jsx(z.div,{variants:j,className:"hero-ctas",children:s?o.jsx("button",{onClick:v,className:"btn-primary",children:"Go to Dashboard"}):r?o.jsx("button",{onClick:v,className:"btn-primary",children:"Request Access"}):o.jsxs(o.Fragment,{children:[o.jsx("button",{onClick:v,className:"btn-primary",children:"Get started"}),o.jsx(k,{to:"/contact",className:"btn-secondary",children:"Contact Sales"})]})}),o.jsxs(z.div,{variants:j,className:"hero-backed-by",children:[o.jsx("span",{className:"hero-backed-by-label",children:"Supported and backed by our partners"}),o.jsxs("div",{className:"hero-backed-by-logos",children:[o.jsx("img",{src:"/brand/cartesia-primary-logo.svg",alt:"Cartesia",className:"hero-backed-logo hero-backed-logo--cartesia"}),o.jsx("span",{className:"hero-backed-by-divider","aria-hidden":"true"}),o.jsxs("div",{className:"hero-backed-logo-group hero-backed-logo--sarvam",children:[o.jsx("img",{src:"/brand/sarvam-ai-wordmark.svg",alt:"",className:"hero-backed-logo-icon"}),o.jsx("span",{className:"hero-backed-logo-text",children:"Sarvam AI"})]}),o.jsx("span",{className:"hero-backed-by-divider","aria-hidden":"true"}),o.jsx("div",{className:"hero-backed-logo-group hero-backed-logo--deepgram",children:o.jsx("img",{src:"/brand/deepgram-wordmark.png",alt:"Deepgram",className:"hero-backed-logo hero-backed-logo--deepgram-img"})}),o.jsx("span",{className:"hero-backed-by-divider","aria-hidden":"true"}),o.jsx("div",{className:"hero-backed-logo-group hero-backed-logo--alibaba",children:o.jsx("img",{src:"/brand/alibaba-cloud-logo.svg",alt:"Alibaba Cloud",className:"hero-backed-logo hero-backed-logo--alibaba-img"})})]}),o.jsxs(k,{to:"/blog/vagle-ai-dpiit-startup-india-recognised",className:"hero-dpiit-badge","aria-label":"Read about Vagle AI being recognised by DPIIT Startup India",children:[o.jsx("img",{src:"/brand/startup-india-logo.png",alt:"Startup India",className:"hero-dpiit-logo"}),o.jsx("span",{className:"hero-dpiit-separator","aria-hidden":"true"}),o.jsx("span",{className:"hero-dpiit-text",children:"Recognised by DPIIT"})]})]})]}),o.jsxs("div",{className:"hero-visual-stage",children:[o.jsxs("div",{className:"hero-signal-decor hero-signal-left","aria-hidden":"true",children:[o.jsx("span",{className:"signal-grid"}),o.jsx("span",{className:"signal-orb"}),o.jsx("span",{className:"signal-chip chip-one",children:"STT"}),o.jsx("span",{className:"signal-chip chip-two",children:"42ms"}),o.jsx("span",{className:"voice-chip chip-vad",children:"VAD"}),o.jsxs("span",{className:"voice-meter",children:[o.jsx("i",{}),o.jsx("i",{}),o.jsx("i",{}),o.jsx("i",{}),o.jsx("i",{})]}),o.jsx("span",{className:"signal-wave"})]}),o.jsxs("div",{className:"hero-signal-decor hero-signal-right","aria-hidden":"true",children:[o.jsx("span",{className:"orbit-ring ring-one"}),o.jsx("span",{className:"orbit-ring ring-two"}),o.jsx("span",{className:"orbit-core"}),o.jsx("span",{className:"orbit-node node-one"}),o.jsx("span",{className:"orbit-node node-two"}),o.jsx("span",{className:"signal-chip chip-three",children:"Live"}),o.jsx("span",{className:"voice-chip chip-tts",children:"TTS"}),o.jsx("span",{className:"call-route-line"}),o.jsx("span",{className:"voice-transcript",children:'"Book tomorrow"'})]}),o.jsxs(z.div,{className:"hero-call-mockup",initial:{opacity:0,y:40}
9,animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},children:[o.jsxs("div",{className:"mockup-browser-bar",children:[o.jsxs("div",{className:"browser-dots",children:[o.jsx("span",{className:"dot-red"}),o.jsx("span",{className:"dot-yellow"}),o.jsx("span",{className:"dot-green"})]}),o.jsx("div",{className:"browser-url",children:"app.vagle.ai/live-calls"})]}),o.jsxs("div",{className:"mockup-content",children:[o.jsxs("div",{className:"call-header",children:[o.jsxs("div",{className:"call-info",children:[o.jsx("div",{className:"call-title",children:"AI Agent · Support Call"}),o.jsxs("div",{className:"call-status",children:[o.jsx("span",{className:"status-dot"}),"Live · 00:44"]})]}),o.jsx("div",{className:"latency-badge",children:"Live"})]}),o.jsxs("div",{className:"conversation",children:[o.jsxs("div",{className:"message caller-message",children:[o.jsx("div",{className:"message-label",children:"CALLER"}),o.jsx("div",{className:"message-text",children:"Hi, I need to book a service appointment for tomorrow morning."})]}),o.jsxs("div",{className:"message agent-message",children:[o.jsx("div",{className:"message-label",children:"AI AGENT"}),o.jsx("div",{className:"message-text",children:"Absolutely — 9 AM is available. May I get your name to lock that in?"})]})]}),o.jsxs("div",{className:"metrics-bar",children:[o.jsxs("div",{className:"metric",children:[o.jsx("span",{className:"metric-label",children:"STT"}),o.jsx("span",{className:"metric-value",children:"Streaming"})]}),o.jsxs("div",{className:"metric",children:[o.jsx("span",{className:"metric-label",children:"LLM"}),o.jsx("span",{className:"metric-value",children:"Streaming"})]}),o.jsxs("div",{className:"metric",children:[o.jsx("span",{className:"metric-label",children:"TTS"}),o.jsx("span",{className:"metric-value",children:"Streaming"})]}),o.jsxs("div",{className:"metric total",children:[o.jsx("span",{className:"metric-label",children:"Total"}),o.jsx("span",{className:"metric-value",children:"Low delay"})]})]})]})]})]})]})]}),o.jsx("section",{className:"trusted-section",children:o.jsxs("div",{className:"container",children:[o.jsx("div",{className:"trusted-eyebrow",children:"Process"}),o.jsx("h2",{className:"trusted-title",children:"Infrastructure for agents that listen, decide, and execute"}),o.jsx("p",{className:"trusted-subtitle",children:"Vagle AI connects speech, reasoning, telephony, tools, memory, follow-up logic, and analytics into one production-ready automation workflow."}),o.jsx("div",{className:"provider-marquee","aria-label":"Configurable AI voice providers",children:o.jsx("div",{className:"provider-track",children:(()=>{const m=["OpenAI","Meta","Deepgram","Qwen","Cartesia","ElevenLabs","MiniMax","Sarvam","Azure","Twilio"];return[...m,...m].map((S,M)=>o.jsx("span",{children:S},`${S}-${M}`))})()})}),o.jsxs("div",{className:"process-showcase",children:[o.jsxs(z.div,{className:"process-hero-card",...A({initial:{y:28}}),children:[o.jsx("div",{className:"process-stack-kicker",children:"Production voice pipeline"}),o.jsx("h3",{children:"One stack for every customer action."}),o.jsx("p",{children:"Vagle AI connects speech recognition, LLM reasoning, natural voice output, tool calling, multi-agent routing, transcripts, follow-up funnels, and cost analytics in one workflow."}),o.jsxs("div",{className:"process-stack-points",children:[o.jsx("span",{children:"Listen"}),o.jsx("span",{children:"Reason"}),o.jsx("span",{children:"Act"}),o.jsx("span",{children:"Follow up"})]})]}),o.jsx(z.div,{className:"process-media-card",...A({initial:{y:28},transition:{delay:.08}}),children:o.jsxs("picture",{children:[o.jsx("source",{srcSet:"/images/voice-calling-ai-showcase.webp",type:"image/webp"}),o.jsx("img",{className:"process-showcase-image",src:"/images/voice-calling-ai-showcase.png",alt:"Voice calling AI assistant interface",width:"1024",height:"1024",loading:"lazy",decoding:"async"})]})}),o.jsx("div",{className:"process-review-grid",children:[{Icon:Hr,step:"01",title:"Action Blueprint",role:"Workflow setup",desc:"Map what the agent should collect, decide, update, trigger, send, schedule, and escalate before it goes live."},{Icon:Ns,step:"02",title:"Multi-Agent Routing",role:"Context orchestration",desc:"Route between specialist agents while passing caller details, lead memory, tool results, and handoff context."},{Icon:Ds,step:"03",title:"Launch & Improve",role:"Action analytics",desc:"Track transcripts, latency, cost, recordings, tool results, follow-up status, and outcomes as workflows improve."}].map((m,S)=>o.jsxs(z.div,{className:"process-mini-card",...A({transition:{delay:S*.08}}),children:[o.jsxs("div",{className:"process-mini-label",children:["Step ",m.step]}),o.jsx("p",{children:m.desc}),o.jsxs("div",{className:"process-mini-footer",children:[o.jsx("div",{className:"process-mini-icon",children:o.jsx(m.Icon,{size:20})}),o.jsxs("div",{children:[o.jsx("h3",{children:m.title}),o.jsx("small",{children:m.role})]}),o.jsx("span",{children:m.step})]})]},m.title))})]})]})}),o.jsx("section",{className:"pricing-comparison-section",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"pricing-comparison",children:[o.jsxs("div",{className:"comparison-heading",children:[o.jsx("div",{className:"pricing-eyebrow",children:"Compare"}),o.jsx("h3",{children:"What Vagle AI Includes"}
9),o.jsx("p",{children:"A clear view of the agent infrastructure in one platform, from live calling to tool execution, multi-agent context, follow-up funnels, and cost tracking."})]}),o.jsxs("div",{className:"comparison-table-wrap",children:[o.jsx("table",{className:"comparison-table feature-comparison-table",children:o.jsxs("tbody",{children:[o.jsxs("tr",{className:"comparison-section-row",children:[o.jsx("th",{children:"Capability"}),o.jsx("th",{children:"Included in Vagle AI"}),o.jsx("th",{children:"Business advantage"}),o.jsx("th",{children:"What your team can review"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"AI Voice Agents"}),o.jsx("td",{children:o.jsx("span",{className:"comparison-check",children:o.jsx(J,{size:14})})}),o.jsx("td",{children:"Answer calls, qualify leads, collect details, and decide the next action."}),o.jsx("td",{children:"Call transcript, summary, recording status, intent, and outcome."})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"Multi-Agent Workspace"}),o.jsx("td",{children:o.jsx("span",{className:"comparison-check",children:o.jsx(J,{size:14})})}),o.jsx("td",{children:"Route work between specialist agents without losing caller context or lead memory."}),o.jsx("td",{children:"Agent path, attached knowledge, passed context, routing decision, and fallback path."})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"Follow-up Funnels"}),o.jsx("td",{children:o.jsx("span",{className:"comparison-check",children:o.jsx(J,{size:14})})}),o.jsx("td",{children:"Create scheduled retry journeys that keep acting after the first call ends."}),o.jsx("td",{children:"Attempt history, lead memory, retry status, opt-out, and routed outcome."})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"Tool Workspace"}),o.jsx("td",{children:o.jsx("span",{className:"comparison-check",children:o.jsx(J,{size:14})})}),o.jsx("td",{children:"Let agents call APIs, webhooks, Gmail, Calendar, Sheets, Airtable, Notion, and WhatsApp actions."}),o.jsx("td",{children:"Tool action, payload result, success or failure, saved destination, and execution log."})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"Google Sheets, Airtable, Notion"}),o.jsx("td",{children:o.jsx("span",{className:"comparison-check",children:o.jsx(J,{size:14})})}),o.jsx("td",{children:"Keep lead records, notes, and outcomes updated where your team already works."}),o.jsx("td",{children:"Updated row/page/table, saved fields, detected outcome, and timestamp."})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"Gmail, Calendar, Webhooks"}),o.jsx("td",{children:o.jsx("span",{className:"comparison-check",children:o.jsx(J,{size:14})})}),o.jsx("td",{children:"Send confirmations, schedule appointments, or trigger your own backend workflow."}),o.jsx("td",{children:"Email status, booking details, webhook response, and escalation note."})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"Outbound Campaigns"}),o.jsx("td",{children:o.jsx("span",{className:"comparison-check",children:o.jsx(J,{size:14})})}),o.jsx("td",{children:"Upload leads, call one by one, retry no-answer, and stop on booked or opted-out."}),o.jsx("td",{children:"Campaign progress, contact result, retry count, and final disposition."})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"Cost Transparency"}),o.jsx("td",{children:o.jsx("span",{className:"comparison-check",children:o.jsx(J,{size:14})})}),o.jsx("td",{children:"Estimate and review calling cost by selected configuration and usage."}),o.jsx("td",{children:"LLM, speech-to-text, text-to-speech, platform, and total estimated cost."})]})]})}),o.jsx("p",{className:"comparison-footnote",children:"This section describes Vagle AI product capabilities. Pricing depends on selected configuration and actual connected voice minutes."})]})]})})}),o.jsx("section",{className:"voice-services-section",children:o.jsxs("div",{className:"container",children:[o.jsxs("div",{className:"voice-services-heading",children:[o.jsx("h2",{children:"What Vagle AI Does."}),o.jsx("p",{children:"We help businesses build action-taking AI agents that talk to customers, use tools, share context, trigger workflows, and keep following up until the work is done."})]}),o.jsx("div",{className:"voice-services-grid",children:[{Icon:Gr,title:"Action-Taking Voice Agents",desc:"Deploy natural phone agents that answer calls, follow your rules, collect details, qualify intent, and decide which tool or workflow should run next.",visual:"agent",image:"/images/ai-voice-agents-card.png"},{Icon:qr,title:"Follow-up Funnels",desc:"Build scheduled Day 0, Day 1, Day 3, and custom retry journeys with lead memory, opt-out handling, routed outcomes, and result saving.",visual:"campaign",image:"/images/outbound-call-campaigns-card.png"},{Icon:Ds,title:"Tool and Outcome Intelligence",desc:"Track transcripts, summaries, outcomes, tool calls, webhook responses, latency, cost, recordings, and conversion signals from every workflow.",visual:"intelligence",image:"/images/call-intelligence-card.svg"}].map(m=>o.jsxs(z.div,{className:"voice-service-card",...A(),children:[o.jsxs("div",{className:"voice-service-copy",children:[o.jsx("div",{className:"voice-service-icon",children:o.jsx(m.Icon,{size:26})}),o.jsx("h3",{children:m.title}),o.jsx("p",{children:m.desc})]}),o.jsx("div",{className:`voice-service-visual visual-${m.visual}`,"aria-hidden":"true",children:o.jsxs("picture",{children:[o.jsx("source",{srcSet:m.image.replace(/\.png$/i,".webp"),type:"image/webp"}),o.jsx("img",{src:m.image,alt:"",loading:"lazy",decoding:"async"})]})})]},m.title))})]})}),o.jsx("section",{id:"logos",className:"logos-section",children:o.jsxs("div",{className:"container",children:[o.jsx("p",{className:"logos-label",children:"Works with configurable voice and AI providers"}),o.jsx("div",{className:"logos-grid",children:["OpenAI","Meta","Deepgram","Cartesia","ElevenLabs","MiniMax","Sarvam","Azure","Twilio"].map(m=>o.jsx("div",{className:"logo-pill",children:m},m))})]})}),o.jsx("section",{className:"delay-hurts-section",children:o.jsxs("div",{className:"container",children:[o.jsxs("div",{className:"delay-hurts-header",children:[o.jsx("span",{className:"delay-hurts-label",children:"● Why delay hurts"}),o.jsxs("h2",{className:"delay-hurts-title",children:["The longer you wait, the more expensive it becomes ",o.jsx("span",{className:"accent",children:"to catch up."})]})]}),o.jsx("div",{className:"delay-hurts-bars",children:[{num:"01",label:"Customer calls",bold:"go unanswered",pct:"Missed",tag:"Revenue risk",width:"72%"},{num:"02",label:"Leads need",bold:"timely follow-up",pct:"Delay",tag:"Lead leakage",width:"62%"},{num:"03",label:"Manual updates",bold:"slow the team",pct:"Waste",tag:"Operations drag",width:"58%"},{num:"04",label:"Teams repeat",bold:"the same calls",pct:"Load",tag:"Caller workload",width:"48%"}].map(m=>o.jsxs("div",{className:"delay-bar-row",children:[o.jsxs("div",{className:"delay-bar-left",children:[o.jsxs("span",{className:"delay-bar-num",children:[m.num,"/"]}),o.jsxs("span",{className:"delay-bar-text",children:[m.label," ",o.jsx("strong",{children:m.bold})]})]}),o.jsx("div",{className:"delay-bar-track",children:o.jsx("div",{className:"delay-bar-fill",style:{width:m.width},children:o.jsx("span",{className:"delay-bar-pct",children:m.pct})})}),o.jsx("span",{className:"delay-bar-tag",children:m.tag})]},m.num))})]})}),r&&!s&&o.jsx("section",{id:"request-access",className:"request-access-section",children:o.jsx("div",{className:"container",children:o.jsxs("div",{className:"request-access-card",children:[o.jsx("h2",{children:"Request Early Access"}),o.jsx("p",{children:"We're currently in private beta. Tell us about yourself and we'll review your request."}),d==="success"?o.jsxs("div",{className:"request-access-success",children:[o.jsx(J,{size:24}),o.jsx("p",{children:f})]}):o.jsxs("form",{onSubmit:x,className:"request-access-form",children:[o.jsxs("div",{className:"form-row",children:[o.jsx("input",{type:"text",placeholder:"Your name *",value:c.name,onChange:m=>u(S=>({...S,name:m.target.value})),required:!0,minLength:2}),o.jsx("input",{type:"email",placeholder:"Email address *",value:c.email,onChange:m=>u(S=>({...S,email:m.target.value})),required:!0})]}),o.jsx("textarea",{placeholder:"Tell us about your experience with AI voice agents (optional)",value:c.experience,onChange:m=>u(S=>({...S,experience:m.target.value})),rows:3}
9),o.jsxs("select",{value:c.source,onChange:m=>u(S=>({...S,source:m.target.value})),children:[o.jsx("option",{value:"",children:"How did you find us?"}),o.jsx("option",{value:"google",children:"Google Search"}),o.jsx("option",{value:"twitter",children:"Twitter / X"}),o.jsx("option",{value:"linkedin",children:"LinkedIn"}),o.jsx("option",{value:"friend",children:"Friend / Referral"}),o.jsx("option",{value:"producthunt",children:"Product Hunt"}),o.jsx("option",{value:"other",children:"Other"})]}),d==="error"&&o.jsx("p",{className:"request-access-error",children:f}),o.jsx("button",{type:"submit",className:"btn-primary",disabled:d==="loading",children:d==="loading"?"Submitting...":"Submit Request"})]})]})})}),o.jsx("section",{id:"features",className:"features-section",children:o.jsxs("div",{className:"container",children:[o.jsxs("div",{className:"section-header",children:[o.jsx("h2",{className:"section-title",children:"Everything Your Business Needs"}),o.jsx("p",{className:"section-sub",children:"A complete action layer from the call pipeline to tools, funnels, multi-agent routing, analytics, and billing."})]}),o.jsxs("div",{className:"features-grid",children:[o.jsxs("div",{className:"feature-card",children:[o.jsx("div",{className:"feature-icon",children:o.jsx(Es,{size:28})}),o.jsx("h3",{className:"feature-title",children:"Reliable Call Pipeline"}),o.jsx("p",{className:"feature-desc",children:"Built for real business calls with speech recognition, AI response generation, voice output, call logs, fallback-aware handling, and action triggers."})]}),o.jsxs("div",{className:"feature-card",children:[o.jsx("div",{className:"feature-icon",children:o.jsx(Zr,{size:28})}),o.jsx("h3",{className:"feature-title",children:"Tool Workspace"}),o.jsx("p",{className:"feature-desc",children:"Give agents business tools without artificial workflow limits: APIs, webhooks, Gmail, Calendar, Sheets, Airtable, Notion, WhatsApp, Smart Assets, and custom actions."})]}),o.jsxs("div",{className:"feature-card",children:[o.jsx("div",{className:"feature-icon",children:o.jsx(Ns,{size:28})}),o.jsx("h3",{className:"feature-title",children:"Multi-Agent Context"}),o.jsx("p",{className:"feature-desc",children:"Build main agents and specialist agents that share caller context, lead memory, attached knowledge, selected tools, and handoff summaries."})]}),o.jsxs("div",{className:"feature-card",children:[o.jsx("div",{className:"feature-icon",children:o.jsx(Jr,{size:28})}),o.jsx("h3",{className:"feature-title",children:"Cost Analytics"}),o.jsx("p",{className:"feature-desc",children:"Transparent per-call pricing breakdown. Track spend across STT, LLM, and TTS providers in real-time."})]}),o.jsxs("div",{className:"feature-card",children:[o.jsx("div",{className:"feature-icon",children:o.jsx(_r,{size:28})}),o.jsx("h3",{className:"feature-title",children:"Follow-up Automation"}),o.jsx("p",{className:"feature-desc",children:"Turn leads into structured retry funnels with scheduled calls, outcome routing, lead memory, opt-out handling, and saved results."})]}),o.jsxs("div",{className:"feature-card",children:[o.jsx("div",{className:"feature-icon",children:o.jsx(ro,{size:28})}),o.jsx("h3",{className:"feature-title",children:"Deep Action Logs"}),o.jsx("p",{className:"feature-desc",children:"Track sentiment, outcomes, conversion metrics, tool calls, payload results, follow-up attempts, and recording status across every AI workflow."})]})]})]})}),o.jsx("section",{id:"pricing",className:"pricing-section",children:o.jsxs("div",{className:"container",children:[o.jsxs("div",{className:"pricing-heading",children:[o.jsx("div",{className:"pricing-eyebrow",children:"Pricing"}),o.jsx("h2",{children:"Transparent, usage-based pricing."}),o.jsx("p",{children:"Vagle uses a credit/wallet system for usage. New accounts start with 0 credits unless credits are explicitly granted by the platform admin. Calling cost depends on telephony, speech-to-text, LLM, text-to-speech, recording, region, and configuration."}),o.jsx("p",{className:"pricing-side-note",children:"Agencies can package Vagle as a setup fee plus a monthly platform fee plus usage. Enterprise and agency pricing is quoted based on expected minutes, integrations, workspaces, and support needs."})]}),o.jsxs("div",{className:"pricing-layout",children:[o.jsx("div",{className:"pricing-process",children:[{title:"Cho
9ose Agent",text:"Select inbound, outbound, or hybrid AI calling."},{title:"Use Minutes",text:"Pay only for connected voice minutes and selected configuration."},{title:"Unlock Everything",text:"Activate the full automation workspace with the launch offer."}].map((m,S)=>o.jsxs("div",{className:"pricing-process-card",children:[o.jsx("div",{className:"process-icon",children:S+1}),o.jsxs("div",{className:"process-dots",children:[o.jsx("span",{}),o.jsx("span",{}),o.jsx("span",{})]}),o.jsx("h3",{children:m.title}),o.jsx("p",{children:m.text})]},m.title))}),[{key:"pay-as-you-go",name:"Pay As You Go",desc:"For businesses that want AI calling without a monthly subscription shown on the website.",price:"Usage based",unit:"per connected voice minute",addon:"Buy credits and pay only for connected usage",features:["AI voice agents","Inbound and outbound calling","Transcripts and summaries","Call logs","Basic tools","Cost visibility"]},{key:"all-access-launch",name:"All Access Launch Activation",desc:"For teams that want the full Vagle action layer: follow-ups, multi-agent routing, smart assets, tool workspaces, webhooks, logs, and onboarding.",price:"$20/month",unit:"or $150/year",addon:"Calling usage remains pay as you go",features:["Follow-up Funnels","Multi-agent routing","Smart Assets","Tool workspaces","Webhooks and API keys","Client onboarding","Audit logs","Usage visibility"]}].map(m=>o.jsxs("div",{className:`pricing-plan-card${m.key==="enterprise"?" pricing-plan-enterprise":""}`,children:[o.jsxs("div",{className:"pricing-plan-top",children:[o.jsx("div",{className:"pricing-plan-icon",children:o.jsx(Es,{size:26})}),o.jsxs("div",{className:"pricing-plan-price",children:[m.originalPrice&&o.jsx("small",{className:"pricing-original-price",children:m.originalPrice}),o.jsx("strong",{children:m.price}),o.jsx("span",{children:m.unit})]})]}),o.jsx("h3",{children:m.name}),o.jsx("p",{children:m.desc}),o.jsx("div",{className:"pricing-addon",children:o.jsx("span",{children:m.addon})}),o.jsx("ul",{className:"pricing-features",children:m.features.map(S=>o.jsx("li",{children:S},S))}),o.jsx("button",{type:"button",className:"pricing-cta",onClick:()=>w(m.key),children:m.cta||"Buy now"})]},m.name))]})]})}),o.jsx("section",{className:"voice-faq-section",children:o.jsxs("div",{className:"container",children:[o.jsxs("div",{className:"faq-header",children:[o.jsx("div",{className:"faq-eyebrow",children:"FAQs"}),o.jsx("h2",{children:"FAQs."}),o.jsx("p",{children:"Everything you need to know about using Vagle AI for action-taking agents."})]}),o.jsx("div",{className:"faq-list",children:[{question:"What can Vagle AI do for my business?",answer:"Vagle AI can answer inbound calls, qualify leads, capture customer details, book appointments, route urgent callers, trigger tools, update business systems, and summarize every workflow for your team."},{question:"Can it use my scripts and business rules?",answer:"Yes. You can configure the agent with your call flow, qualification rules, FAQs, handoff logic, tool rules, follow-up conditions, and custom instructions so it follows your process."},{question:"Can agents take actions in my tools?",answer:"Yes. Tool Workspace lets agents call configured tools such as webhooks, APIs, Gmail, Calendar, Sheets, Airtable, Notion, WhatsApp, and Smart Assets while keeping execution logs."},{question:"Can multiple agents share context?",answer:"Yes. Multi-agent workflows can route between main and specialist agents while passing caller context, lead memory, attached knowledge, selected tools, and handoff summaries."},{question:"Which voice and AI providers are supported?",answer:"Supported providers depend on your selected plan and configuration. Vagle works with leading voice, transcription, and AI providers where setup is available."},{question:"Will a human get the context during handoff?",answer:"Yes. Vagle AI keeps the transcript, summary, intent, caller details, and outcome available so your team can continue without asking the caller to repeat everything."},{question:"Can I see the cost of each call?",answer:"Yes. Calls include a pipeline cost breakdown across LLM, speech-to-text, text-to-speech, and platform usage so teams can monitor spend clearly."},{question:"Can it scale for campaigns and support?",answer:"Yes. You can use it for inbound support, outbound follow-ups, reminders, lead qualification, appointment booking, and higher-volume call workflows."}].map(m=>o.jsxs("details",{className:"faq-item",children:[o.jsxs("summary",{children:[o.jsx("span",{children:m.question}),o.jsx(no,{size:24})]}),o.jsx("p",{children:m.answer})]},m.question))})]})}),o.jsx("footer",{className:"footer",children:o.jsxs("div",{className:"container",children:[o.jsxs("div",{className:"footer-grid",children:[o.jsxs("div",{className:"footer-brand",children:[o.jsx("div",{className:"logo",children:"Vagle AI"}
9),o.jsx("p",{children:"White-label-ready infrastructure for action-taking AI agents: voice calls, tool workspace, multi-agent context, follow-up funnels, client portals, logs, API keys, webhooks, and credit-based usage control."})]}),o.jsxs("div",{className:"footer-links",children:[o.jsx("h4",{children:"Product"}),o.jsx(k,{to:"/how-it-works",children:"How It Works"}),o.jsx(k,{to:"/features",children:"Features"}),o.jsx(k,{to:"/use-cases",children:"Use Cases"}),o.jsx(k,{to:"/integrations",children:"Integrations"}),o.jsx(k,{to:"/llm-models",children:"LLM Models"}),o.jsx(k,{to:"/pricing",children:"Pricing"})]}),o.jsxs("div",{className:"footer-links",children:[o.jsx("h4",{children:"Resources"}),o.jsx(k,{to:"/blog",children:"Blog"}),o.jsx(k,{to:"/compare",children:"Compare"}),o.jsx(k,{to:"/faq",children:"FAQ"}),o.jsx(k,{to:"/developers",children:"Developers & API"})]}),o.jsxs("div",{className:"footer-links",children:[o.jsx("h4",{children:"Company"}),o.jsx(k,{to:"/about",children:"About"}),o.jsx(k,{to:"/contact",children:"Contact"})]}),o.jsxs("div",{className:"footer-links",children:[o.jsx("h4",{children:"Legal"}),o.jsx(k,{to:"/privacy",children:"Privacy"}),o.jsx(k,{to:"/terms",children:"Terms"}),o.jsx(k,{to:"/security",children:"Security"}),o.jsx(k,{to:"/acceptable-use",children:"Acceptable Use"})]})]}),o.jsxs("div",{className:"footer-bottom",children:[o.jsx("p",{style:{maxWidth:"60ch",margin:"0 auto 0.5rem",opacity:.8,fontSize:"0.82rem"},children:"Customers are responsible for call consent, recording notices, opt-outs, and lawful use."}),o.jsx("p",{children:"© 2026 Vagle AI. All rights reserved."})]})]})})]})};export{pd as default};

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