PageSourceSearch

https://destini.ai/assets/index-B40885wD.js

js destini.ai collected 2026-10-05 12:09:19 UTC 152,387 bytes, 11 lines download raw bytes

vendor: 7,771 bytes, lines 1-6
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CosmicCanvas-CheDbLfd.js","assets/index-Bj_V9Is2.js","assets/index-jXZE__wZ.js","assets/utils-BB1SQE6n.js","assets/Combination-B5UZjfX-.js","assets/x-DA1vm-qO.js","assets/createLucideIcon-CWIq_39t.js"])))=>i.map(i=>d[i]);
2import{r as g,j as d,L as wt,e as Kt,_ as br}from"./index-Bj_V9Is2.js";import{d as wr,e as Pe,P as Wt,b as Mt,a as fn,c as Sr,f as Pr}from"./index-jXZE__wZ.js";import{a as Ar,u as mn,c as _t}from"./utils-BB1SQE6n.js";import{P as Cr,h as Er,R as Dr,a as Vr,F as Mr,D as Rr}from"./Combination-B5UZjfX-.js";import{X as jr}from"./x-DA1vm-qO.js";function kr(t){const e=Ir(t),n=g.forwardRef((s,i)=>{const{children:r,...o}=s,a=g.Children.toArray(r),l=a.find(Lr);if(l){const c=l.props.children,u=a.map(h=>h===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:h);return d.jsx(e,{...o,ref:i,children:g.isValidElement(c)?g.cloneElement(c,void 0,u):null})}return d.jsx(e,{...o,ref:i,children:r})});return n.displayName=`${t}.Slot`,n}function Ir(t){const e=g.forwardRef((n,s)=>{const{children:i,...r}=n;if(g.isValidElement(i)){const o=Fr(i),a=Or(r,i.props);return i.type!==g.Fragment&&(a.ref=s?Ar(s,o):o),g.cloneElement(i,a)}return g.Children.count(i)>1?g.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Nr=Symbol("radix.slottable");function Lr(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Nr}function Or(t,e){const n={...e};for(const s in e){const i=t[s],r=e[s];/^on[A-Z]/.test(s)?i&&r?n[s]=(...a)=>{const l=r(...a);return i(...a),l}:i&&(n[s]=i):s==="style"?n[s]={...i,...r}:s==="className"&&(n[s]=[i,r].filter(Boolean).join(" "))}return{...t,...n}}function Fr(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var xe="Dialog",[ci]=Sr(xe),[Br,X]=ci(xe),ui=t=>{const{__scopeDialog:e,children:n,open:s,defaultOpen:i,onOpenChange:r,modal:o=!0}=t,a=g.useRef(null),l=g.useRef(null),[c,u]=wr({prop:s,defaultProp:i??!1,onChange:r,caller:xe});return d.jsx(Br,{scope:e,triggerRef:a,contentRef:l,contentId:Pe(),titleId:Pe(),descriptionId:Pe(),open:c,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(h=>!h),[u]),modal:o,children:n})};ui.displayName=xe;var hi="DialogTrigger",di=g.forwardRef((t,e)=>{const{__scopeDialog:n,...s}=t,i=X(hi,n),r=mn(e,i.triggerRef);return d.jsx(Wt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":yn(i.open),...s,ref:r,onClick:Mt(t.onClick,i.onOpenToggle)})});di.displayName=hi;var pn="DialogPortal",[Wr,fi]=ci(pn,{forceMount:void 0}),mi=t=>{const{__scopeDialog:e,forceMount:n,children:s,container:i}=t,r=X(pn,e);return d.jsx(Wr,{scope:e,forceMount:n,children:g.Children.map(s,o=>d.jsx(fn,{present:n||r.open,children:d.jsx(Cr,{asChild:!0,container:i,children:o})}))})};mi.displayName=pn;var ae="DialogOverlay",pi=g.forwardRef((t,e)=>{const n=fi(ae,t.__scopeDialog),{forceMount:s=n.forceMount,...i}=t,r=X(ae,t.__scopeDialog);return r.modal?d.jsx(fn,{present:s||r.open,children:d.jsx(Ur,{...i,ref:e})}):null});pi.displayName=ae;var _r=kr("DialogOverlay.RemoveScroll"),Ur=g.forwardRef((t,e)=>{const{__scopeDialog:n,...s}=t,i=X(ae,n);return d.jsx(Dr,{as:_r,allowPinchZoom:!0,shards:[i.contentRef],children:d.jsx(Wt.div,{"data-state":yn(i.open),...s,ref:e,style:{pointerEvents:"auto",...s.style}})})}),gt="DialogContent",gi=g.forwardRef((t,e)=>{const n=fi(gt,t.__scopeDialog),{forceMount:s=n.forceMount,...i}=t,r=X(gt,t.__scopeDialog);return d.jsx(fn,{present:s||r.open,children:r.modal?d.jsx(Hr,{...i,ref:e}):d.jsx($r,{...i,ref:e})})});gi.displayName=gt;var Hr=g.forwardRef((t,e)=>{const n=X(gt,t.__scopeDialog),s=g.useRef(null),i=mn(e,n.contentRef,s);return g.useEffect(()=>{const r=s.current;if(r)return Er(r)},[]),d.jsx(yi,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Mt(t.onCloseAutoFocus,r=>{r.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Mt(t.onPointerDownOutside,r=>{const o=r.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&r.preventDefault()}),onFocusOutside:Mt(t.onFocusOutside,r=>r.preventDefault())})}),$r=g.forwardRef((t,e)=>{const n=X(gt,t.__scopeDialog),s=g.useRef(!1),i=g.useRef(!1);return d.jsx(yi,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{t.onCloseAutoFocus?.(r),r.defaultPrevented||(s.current||n.triggerRef.current?.focus(),r.preventDefault()),s.current=!1,i.current=!1},onInteractOutside:r=>{t.onInteractOutside?.(r),r.defaultPrevented||(s.current=!0,r.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=r.target;n.triggerRef.current?.contains(o)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&i.current&&r.preventDefault()}})}),yi=g.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:r,...o}=t,a=X(gt,n),l=g.useRef(null),c=mn(e,l);return Vr(),d.jsxs(d.Fragment,{children:[d.jsx(Mr,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:i,onUnmountAutoFocus:r,children:d.jsx(Rr,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":yn(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(Gr,{titleId:a.titleId}),d.jsx(Kr,{contentRef:l,descriptionId:a.descriptionId})]})]})}),gn="DialogTitle",xi=g.forwardRef((t,e)=>{const{__scopeDialog:n,...s}=t,i=X(gn,n);return d.jsx(Wt.h2,{id:i.titleId,...s,ref:e})});xi.displayName=gn;var vi="DialogDescription",Ti=g.forwardRef((t,e)=>{const{__scopeDialog:n,...s}=t,i=X(vi,n);return d.jsx(Wt.p,{id:i.descriptionId,...s,ref:e})});Ti.displayName=vi;var bi="DialogClose",wi=g.forwardRef((t,e)=>{const{__scopeDialog:n,...s}=t,i=X(bi,n);return d.jsx(Wt.button,{type:"button",...s,ref:e,onClick:Mt(t.onClick,()=>i.onOpenChange(!1))})});wi.displayName=bi;function yn(t){return t?"open":"closed"}var Si="DialogTitleWarning",[wd,Pi]=Pr(Si,{contentName:gt,titleName:gn,docsSlug:"dialog"}),Gr=({titleId:t})=>{const e=Pi(Si),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
3
4If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
5
6For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return g.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},zr="DialogDescriptionWarning",Kr=({contentRef:t,descriptionId:e})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pi(zr).contentName}}.`;return g.useEffect(()=>{const i=t.current?.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(s))},[s,t,e]),null},Yr=ui,Xr=di,qr=mi,Ai=pi,Ci=gi,Ei=xi,Di=Ti,Zr=wi;const Qr=Yr,Jr=Xr,ta=qr,Vi=g.forwardRef(({className:t,...e},n)=>d.jsx(Ai,{ref:n,className:_t("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));Vi.displayName=Ai.displayName;const Mi=g.forwardRef(({className:t,children:e,...n},s)=>d.jsxs(ta,{children:[d.jsx(Vi,{}),d.jsxs(Ci,{ref:s,className:_t("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",t),...n,children:[e,d.jsxs(Zr,{className:"absolute right-4 top-4 roun
6ded-sm opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(jr,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Mi.displayName=Ci.displayName;const Ri=({className:t,...e})=>d.jsx("div",{className:_t("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});Ri.displayName="DialogHeader";const ji=g.forwardRef(({className:t,...e},n)=>d.jsx(Ei,{ref:n,className:_t("text-lg font-semibold leading-none tracking-tight",t),...e}));ji.displayName=Ei.displayName;const ki=g.forwardRef(({className:t,...e},n)=>d.jsx(Di,{ref:n,className:_t("text-sm text-muted-foreground",t),...e}));ki.displayName=Di.displayName;function $n(t){const e=document.getElementById(t);e&&window.scrollTo({top:e.offsetTop,behavior:"smooth"})}const ea=[{l:"Engine API",id:"engine"},{l:"Sectors",id:"sectors"},{l:"Vision",id:"vision"}];function na(){const[t,e]=g.useState(0),[n,s]=g.useState(!1);return g.useEffect(()=>{const i=()=>{const r=document.documentElement.scrollHeight-window.innerHeight;e(r>0?window.scrollY/r:0)};return i(),window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]),d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed left-0 top-0 z-50 h-px w-full bg-white/10",children:d.jsx("div",{className:"h-full bg-white",style:{width:`${t*100}%`}})}),d.jsxs("header",{className:"fixed left-0 right-0 top-0 z-50 flex items-center justify-between px-6 py-5 md:px-10",style:{mixBlendMode:"difference"},children:[d.jsx("a",{href:"#hero",onClick:i=>{i.preventDefault(),$n("hero")},className:"font-mono-hud text-white tracking-[0.3em]",children:"DESTINI.AI"}),d.jsxs("nav",{className:"hidden gap-8 md:flex",children:[ea.map(i=>d.jsx("button",{onClick:()=>$n(i.id),className:"font-mono-hud text-white/80 transition hover:text-white",children:i.l},i.id)),d.jsx(wt,{to:"/destini",className:"font-mono-hud text-white/80 transition hover:text-white",children:"Destini.ai Personal App →"})]}),d.jsxs(Qr,{open:n,onOpenChange:s,children:[d.jsx(Jr,{asChild:!0,children:d.jsx("button",{className:"font-mono-hud rounded-sm border border-white/60 px-3 py-1.5 text-white transition hover:bg-white hover:text-black",children:"Work with us ↗"})}
6),d.jsxs(Mi,{className:"border-foreground/20 bg-background text-foreground",style:{mixBlendMode:"normal"},children:[d.jsxs(Ri,{children:[d.jsx(ji,{className:"font-mono-hud tracking-[0.2em]",children:"JOIN THE SIGNAL"}),d.jsxs(ki,{className:"text-foreground/70",children:["Destini.ai is a space for innovators, pattern-seekers, and bold thinkers — engineers, researchers, designers, and visionaries shaping the statistical layer of time.",d.jsx("br",{}),d.jsx("br",{}),"If you carry great ideas, want to collaborate on groundbreaking work, or simply want to build something meaningful with us — we'd love to hear from you."]})]}),d.jsxs("div",{className:"mt-2 flex flex-col gap-2",children:[d.jsx("div",{className:"font-mono-hud text-xs text-foreground/50 tracking-[0.2em]",children:"REACH OUT"}),d.jsx("a",{href:"mailto:[email protected]",className:"font-mono-hud inline-flex w-fit items-center gap-2 border border-foreground/40 px-4 py-2 text-foreground transition hover:bg-foreground hover:text-background",children:"[email protected] ↗"})]})]})]})]})]})}function Yt(t,e,n,s=1){return t+Math.sin(n*5e-4*s)*e}function sa(t){const e=t<0?"-":"+",n=Math.abs(t),s=Math.floor(n),i=Math.floor((n-s)*60);return`${e}${String(s).padStart(2,"0")}° ${String(i).padStart(2,"0")}′`}function ia(){const[t,e]=g.useState(""),[n,s]=g.useState({ra:"",dec:"",lat:"",lon:""});return g.useEffect(()=>{let i=0;const r=()=>{e(new Date().toISOString().slice(11,19)+" UTC");const a=performance.now(),l=Yt(14.5,.4,a,1),c=Yt(-62.5,.6,a,.6),u=Yt(23.18,.05,a,.4),h=Yt(75.78,.05,a,.4);s({ra:`RA ${l.toFixed(2)}h`,dec:`DEC ${sa(c)}`,lat:`LAT ${u.toFixed(2)}°N`,lon:`LON ${h.toFixed(2)}°E`}),i=requestAnimationFrame(r)};return i=requestAnimationFrame(r),()=>cancelAnimationFrame(i)},[]),d.jsxs("div",{className:"pointer-events-none fixed inset-0 z-30 hidden md:block",children:[d.jsxs("div",{className:"font-mono-hud absolute left-6 bottom-6 leading-loose text-foreground/65",children:[d.jsxs("div",{children:[n.lat," · ",n.lon]}),d.jsx("div",{children:"OBSERVATORY · TEMPORAL FRAME"}),d.jsx("div",{children:t})]}),d.jsxs("div",{className:"font-mono-hud absolute right-6 bottom-6 text-right leading-loose text-foreground/65",children:[d.jsxs("div",{children:[n.ra," · ",n.dec]}),d.jsx("div",{children:"CELESTIAL REFERENCE"}),d.jsx("div",{children:"SIGNAL ⏵ STREAMING"})]}),d.jsx("div",{className:"font-mono-hud absolute right-6 top-24 text-right text-foreground/45",children:"SYSTEM ⏵ DESTINI / OBSERVE"})]})}const Gn="█▓▒░#%&@*+-=<>/\\";function Ut({text:t,className:e="",as:n="h2",delay:s=0,duration:i=900}){const[r,o]=g.useState("");return g.useEffect(()=>{let a=0;const l=performance.now()+s,c=u=>{if(u<l){a=requestAnimationFrame(c);return}const h=Math.min(1,(u-l)/i),f=Math.floor(h*t.length);let m="";for(let p=0;p<t.length;p++)p<f||t[p]===" "?m+=t[p]:m+=Gn[Math.floor(Math.random()*Gn.length)];o(m),h<1?a=requestAnimationFrame(c):o(t)};return a=requestAnimationFrame(c),()=>cancelAnimationFrame(a)},[t]),g.createElement(n,{className:e},r||t)}function Nt({children:t,className:e=""}){return d.jsxs("div",{className:`group relative isolate ${e}`,tabIndex:-1,children:[d.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -inset-x-6 -inset-y-4 -z-10 rounded-sm opacity-0 backdrop-blur-md transition-[opacity,backdrop-filter] duration-300 ease-out group-hover:opacity-100 group-hover:bg-background/60 group-focus-within:opacity-100 group-focus-within:bg-background/60 group-active:opacity-100 group-active:bg-background/60 md:-inset-x-10 md:-inset-y-6",style:{maskImage:"radial-gradient(120% 95% at 50% 50%, black 55%, transparent 100%)",WebkitMaskImage:"radial-gradient(120% 95% at 50% 50%, black 55%, transparent 100%)"}}),d.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -inset-x-3 -inset-y-2 -z-10 border border-foreground
6/15 opacity-0 transition-opacity duration-300 ease-out group-hover:opacity-100 group-focus-within:opacity-100 group-active:opacity-100 md:-inset-x-5 md:-inset-y-3"}),t]})}function oa(){return d.jsxs("section",{id:"hero",className:"relative flex min-h-screen flex-col justify-between px-6 pb-12 pt-28 md:px-16 md:pb-16 md:pt-32",children:[d.jsx("div",{className:"font-mono-hud text-foreground/50",children:"PHASE 00 · CHRONOMETER"}),d.jsxs(Nt,{className:"relative z-10 max-w-3xl",children:[d.jsx(Ut,{as:"h1",text:"The statistical layer of time.",className:"text-balance text-5xl leading-[1.02] md:text-7xl lg:text-[5.5rem]",duration:1200}),d.jsx("p",{className:"mt-8 max-w-xl text-base text-foreground/70 md:text-lg",children:"Destini.ai reads the patterns of the cosmos as a measurable signal — a scientific layer that supports clearer judgement and better decisions."}),d.jsxs("div",{className:"font-mono-hud mt-10 flex flex-wrap gap-x-6 gap-y-2 text-foreground/60",children:[d.jsx("span",{children:"PATTERNS"}),d.jsx("span",{children:"·"}),d.jsx("span",{children:"SIGNAL"}),d.jsx("span",{children:"·"}),d.jsx("span",{children:"SCIENTIFIC"}),d.jsx("span",{children:"·"}),d.jsx("span",{children:"DECISIONS"})]}),d.jsx("a",{href:"#layer",className:"font-mono-hud mt-10 inline-flex items-center gap-3 border border-foreground
6/60 px-5 py-2.5 text-foreground transition hover:bg-foreground hover:text-background",children:"Enter ↓"})]}),d.jsxs("div",{className:"font-mono-hud flex items-center justify-between text-foreground/50",children:[d.jsx("span",{children:"SCROLL ↓"}),d.jsx("span",{className:"hidden md:inline",children:"DESTINI.AI · 2026"})]})]})}const Ii=g.createContext({});function ra(t){const e=g.useRef(null);return e.current===null&&(e.current=t()),e.current}const aa=typeof window<"u",la=aa?g.useLayoutEffect:g.useEffect,xn=g.createContext(null);function vn(t,e){t.indexOf(e)===-1&&t.push(e)}function le(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const et=(t,e,n)=>n>e?e:n<t?t:n;let Tn=()=>{};const ot={},Ni=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Li=t=>typeof t=="object"&&t!==null,Oi=t=>/^0[^.\s]+$/u.test(t);function Fi(t){let e;return()=>(e===void 0&&(e=t()),e)}const G=t=>t,Ht=(...t)=>t.reduce((e,n)=>s=>n(e(s))),Lt=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class bn{constructor(){this.subscriptions=[]}add(e){return vn(this.subscriptions,e),()=>le(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const U=t=>t*1e3,$=t=>t/1e3,Bi=(t,e)=>e?t*(1e3/e):0,Wi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ca=1e-7,ua=12;function ha(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Wi(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>ca&&++a<ua);return o}function $t(t,e,n,s){if(t===e&&n===s)return G;const i=r=>ha(r,0,1,t,n);return r=>r===0||r===1?r:Wi(i(r),e,s)}const _i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ui=t=>e=>1-t(1-e),Hi=$t(.33,1.53,.69,.99),wn=Ui(Hi),$i=_i(wn),Gi=t=>t>=1?1:(t*=2)<1?.5*wn(t):.5*(2-Math.pow(2,-10*(t-1))),Sn=t=>1-Math.sin(Math.acos(t)),zi=Ui(Sn),Ki=_i(Sn),da=$t(.42,0,1,1),fa=$t(0,0,.58,1),Yi=$t(.42,0,.58,1),ma=t=>Array.isArray(t)&&typeof t[0]!="number",Xi=t=>Array.isArray(t)&&typeof t[0]=="number",pa={linear:G,easeIn:da,easeInOut:Yi,easeOut:fa,circIn:Sn,circInOut:Ki,circOut:zi,backIn:wn,backInOut:$i,backOut:Hi,anticipate:Gi},ga=t=>typeof t=="string",zn=t=>{if(Xi(t)){Tn(t.length===4);const[e,n,s,i]=t;return $t(e,n,s,i)}else if(ga(t))return pa[t];return t},Xt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ya(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,h=!1,f=!1)=>{const p=f&&i?n:s;return h&&o.add(u),p.add(u),u},cancel:u=>{s.delete(u),o.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0;const h=n;n=s,s=h,n.forEach(l),n.clear(),i=!1,r&&(r=!1,c.process(u))}};return c}const xa=40;function qi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Xt.reduce((b,S)=>(b[S]=ya(r),b),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:f,render:m,postRender:p}=o,y=()=>{const b=ot.useManualTiming,S=b?i.timestamp:performance.now();n=!1,b||(i.delta=s?1e3/60:Math.max(Math.min(S-i.timestamp,xa),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),f.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},x=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:Xt.reduce((b,S)=>{const C=o[S];return b[S]=(M,E=!1,A=!1)=>(n||x(),C.schedule(M,E,A)),b},{}),cancel:b=>{for(let S=0;S<Xt.length;S++)o[Xt[S]].cancel(b)},state:i,steps:o}}const{schedule:V,cancel:rt,state:O,steps:Ae}=qi(typeof requestAnimationFrame<"u"?requestAnimationFrame:G,!0);let Jt;function va(){Jt=void 0}const B={now:()=>(Jt===void 0&&B.set(O.isProcessing||ot.useManualTiming?O.timestamp:performance.now()),Jt),set:t=>{Jt=t,queueMicrotask(va)}},Zi=t=>e=>typeof e=="string"&&e.startsWith(t),Qi=Zi("--"),Ta=Zi("var(--"),Pn=t=>Ta(t)?ba.test(t.split("/*")[0].trim()):!1,ba=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Kn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const At={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ot={...At,transform:t=>et(0,1,t)},qt={...At,default:1},Rt=t=>Math.round(t*1e5)/1e5,An=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wa(t){return t==null}const Sa=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cn=(t,e)=>n=>!!(typeof n=="string"&&Sa.test(n)&&n.startsWith(t)||e&&!wa(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ji=(t,e,n)=>s=>
vendor: 37,183 bytes, line 6
6{if(typeof s!="string")return s;const[i,r,o,a]=s.match(An);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Pa=t=>et(0,255,t),Ce={...At,transform:t=>Math.round(Pa(t))},dt={test:Cn("rgb","red"),parse:Ji("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Ce.transform(t)+", "+Ce.transform(e)+", "+Ce.transform(n)+", "+Rt(Ot.transform(s))+")"};function Aa(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const _e={test:Cn("#"),parse:Aa,transform:dt.transform},Gt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),st=Gt("deg"),tt=Gt("%"),w=Gt("px"),Ca=Gt("vh"),Ea=Gt("vw"),Yn={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(t*100)},vt={test:Cn("hsl","hue"),parse:Ji("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+tt.transform(Rt(e))+", "+tt.transform(Rt(n))+", "+Rt(Ot.transform(s))+")"},k={test:t=>dt.test(t)||_e.test(t)||vt.test(t),parse:t=>dt.test(t)?dt.parse(t):vt.test(t)?vt.parse(t):_e.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?dt.transform(t):vt.transform(t),getAnimatableNone:t=>{const e=k.parse(t);return e.alpha=0,k.transform(e)}},Da=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Va(t){return isNaN(t)&&typeof t=="string"&&(t.match(An)?.length||0)+(t.match(Da)?.length||0)>0}const to="number",eo="color",Ma="var",Ra="var(",Xn="${}",ja=/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 St(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(ja,l=>(k.test(l)?(s.color.push(r),i.push(eo),n.push(k.parse(l))):l.startsWith(Ra)?(s.var.push(r),i.push(Ma),n.push(l)):(s.number.push(r),i.push(to),n.push(parseFloat(l))),++r,Xn)).split(Xn);return{values:n,split:a,indexes:s,types:i}}function ka(t){return St(t).values}function no({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],s[r]!==void 0){const o=e[r];o===to?i+=Rt(s[r]):o===eo?i+=k.transform(s[r]):i+=s[r]}return i}}function Ia(t){return no(St(t))}const Na=t=>typeof t=="number"?0:k.test(t)?k.getAnimatableNone(t):t,La=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Na(t);function Oa(t){const e=St(t);return no(e)(e.values.map((s,i)=>La(s,e.split[i])))}const Y={test:Va,parse:ka,createTransformer:Ia,getAnimatableNone:Oa};function Ee(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Fa({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Ee(l,a,t+1/3),r=Ee(l,a,t),o=Ee(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function ce(t,e){return n=>n>0?e:t}const D=(t,e,n)=>t+(e-t)*n,De=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Ba=[_e,dt,vt],Wa=t=>Ba.find(e=>e.test(t));function qn(t){const e=Wa(t);if(!e)return!1;let n=e.parse(t);return e===vt&&(n=Fa(n)),n}const Zn=(t,e)=>{const n=qn(t),s=qn(e);if(!n||!s)return ce(t,e);const i={...n};return r=>(i.red=De(n.red,s.red,r),i.green=De(n.green,s.green,r),i.blue=De(n.blue,s.blue,r),i.alpha=D(n.alpha,s.alpha,r),dt.transform(i))},Ue=new Set(["none","hidden"]);function _a(t,e){return Ue.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Ua(t,e){return n=>D(t,e,n)}function En(t){return typeof t=="number"?Ua:typeof t=="string"?Pn(t)?ce:k.test(t)?Zn:Ga:Array.isArray(t)?so:typeof t=="object"?k.test(t)?Zn:Ha:ce}function so(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>En(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Ha(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=En(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function $a(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const Ga=(t,e)=>{const n=Y.createTransformer(e),s=St(t),i=St(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ue.has(t)&&!i.values.length||Ue.has(e)&&!s.values.length?_a(t,e):Ht(so($a(s,i),i.values),n):ce(t,e)};function io(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):En(t)(t,e)}const za=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>V.update(e,n),stop:()=>rt(e),now:()=>O.isProcessing?O.timestamp:B.now()}},oo=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ue=2e4;function Dn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ue;)e+=n,s=t.next(e);return e>=ue?1/0:e}function Ka(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Dn(s),ue);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:$(i)}}const R={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function He(t,e){return t*Math.sqrt(1-e*e)}const Ya=12;function Xa(t,e,n){let s=n;for(let i=1;i<Ya;i++)s=s-t(s)/e(s);return s}const Ve=.001;function qa({duration:t=R.duration,bounce:e=R.bounce,velocity:n=R.velocity,mass:s=R.mass}){let i,r,o=1-e;o=et(R.minDamping,R.maxDamping,o),t=et(R.minDuration,R.maxDuration,$(t)),o<1?(i=c=>{const u=c*o,h=u*t,f=u-n,m=He(c,o),p=Math.exp(-h);return Ve-f/m*p},r=c=>{const h=c*o*t,f=h*n+n,m=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-h),y=He(Math.pow(c,2),o);return(-i(c)+Ve>0?-1:1)*((f-m)*p)/y}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-Ve+u*h},r=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Xa(i,r,a);if(t=U(t),isNaN(l))return{stiffness:R.stiffness,damping:R.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const Za=["duration","bounce"],Qa=["stiffness","damping","mass"];function Qn(t,e){return e.some(n=>t[n]!==void 0)}function Ja(t){let e={velocity:R.velocity,stiffness:R.stiffness,damping:R.damping,mass:R.mass,isResolvedFromDuration:!1,...t};if(!Qn(t,Qa)&&Qn(t,Za))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*et(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:R.mass,stiffness:i,damping:r}}else{const n=qa({...t,velocity:0});e={...e,...n,mass:R.mass},e.isResolvedFromDuration=!0}return e}function he(t=R.visualDuration,e=R.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:h,velocity:f,isResolvedFromDuration:m}=Ja({...n,velocity:-$(n.velocity||0)}),p=f||0,y=c/(2*Math.sqrt(l*u)),x=o-r,v=$(Math.sqrt(l/u)),T=Math.abs(x)<5;s||(s=T?R.restSpeed.granular:R.restSpeed.default),i||(i=T?R.restDelta.granular:R.restDelta.default);let b,S,C,M,E,A;if(y<1)C=He(v,y),M=(p+y*v*x)/C,b=P=>{const j=Math.exp(-y*v*P);return o-j*(M*Math.sin(C*P)+x*Math.cos(C*P))},E=y*v*M+x*C,A=y*v*x-M*C,S=P=>Math.exp(-y*v*P)*(E*Math.sin(C*P)+A*Math.cos(C*P));else if(y===1){b=j=>o-Math.exp(-v*j)*(x+(p+v*x)*j);const P=p+v*x;S=j=>Math.exp(-v*j)*(v*P*j-p)}else{const P=v*Math.sqrt(y*y-1);b=q=>{const nt=Math.exp(-y*v*q),Z=Math.min(P*q,300);return o-nt*((p+y*v*x)*Math.sinh(Z)+P*x*Math.cosh(Z))/P};const j=(p+y*v*x)/P,_=y*v*j-x*P,lt=y*v*x-j*P;S=q=>{const nt=Math.exp(-y*v*q),Z=Math.min(P*q,300);return nt*(_*Math.sinh(Z)+lt*Math.cosh(Z))}}const N={calculatedDuration:m&&h||null,velocity:P=>U(S(P)),next:P=>{if(!m&&y<1){const _=Math.exp(-y*v*P),lt=Math.sin(C*P),q=Math.cos(C*P),nt=o-_*(M*lt+x*q),Z=U(_*(E*lt+A*q));return a.done=Math.abs(Z)<=s&&Math.abs(o-nt)<=i,a.value=a.done?o:nt,a}const j=b(P);if(m)a.done=P>=h;else{const _=U(S(P));a.done=Math.abs(_)<=s&&Math.abs(o-j)<=i}return a.value=a.done?o:j,a},toString:()=>{const P=Math.min(Dn(N),ue),j=oo(_=>N.next(P*_).value,P,30);return P+"ms "+j},toTransition:()=>{}};return N}he.applyToOptions=t=>{const e=Ka(t,100,he);return t.ease=e.ease,t.duration=U(e.duration),t.type="keyframes",t};const tl=5;function ro(t,e,n){const s=Math.max(e-tl,0);return Bi(n-t(s),e-s)}function $e({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},m=A=>a!==void 0&&A<a||l!==void 0&&A>l,p=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let y=n*e;const x=h+y,v=o===void 0?x:o(x);v!==x&&(y=v-h);const T=A=>-y*Math.exp(-A/s),b=A=>v+T(A),S=A=>{const N=T(A),P=b(A);f.done=Math.abs(N)<=c,f.value=f.done?v:P};let C,M;const E=A=>{m(f.value)&&(C=A,M=he({keyframes:[f.value,p(f.value)],velocity:ro(b,A,f.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:A=>{let N=!1;return!M&&C===void 0&&(N=!0,S(A),E(A)),C!==void 0&&A>=C?M.next(A-C):(!N&&S(A),f)}}}function el(t,e,n){const s=[],i=n||ot.mix||io,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||G:e;a=Ht(l,a)}s.push(a)}return s}function nl(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(Tn(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=el(e,s,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const f=Lt(t[h],t[h+1],u);return a[h](f)};return n?u=>c(et(t[0],t[r-1],u)):c}function sl(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Lt(0,e,s);t.push(D(n,1,i))}}function il(t){const e=[0];return sl(e,t.length-1),e}function ol(t,e){return t.map(n=>n*e)}function rl(t,e){return t.map(()=>e||Yi).splice(0,t.length-1)}function jt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ma(s)?s.map(zn):zn(s),r={done:!1,value:e[0]},o=ol(n&&n.length===e.length?n:il(e),t),a=nl(o,e,{ease:Array.isArray(i)?i:rl(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const al=t=>t!==null;function ve(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(al),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const ll={decay:$e,inertia:$e,tween:jt,keyframes:jt,spring:he};function ao(t){typeof t.type=="string"&&(t.type=ll[t.type])}class Vn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const cl=t=>t/100;class de extends Vn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==B.now()&&this.tick(B.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ao(e);const{type:n=jt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||jt;l!==jt&&typeof a[0]!="number"&&(this.mixKeyframes=Ht(cl,io(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Dn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:m,type:p,onUpdate:y,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let b=this.currentTime,S=s;if(h){const A=Math.min(this.currentTime,i)/a;let N=Math.floor(A),P=A%1;!P&&A>=1&&(P=1),P===1&&N--,N=Math.min(N,h+1),N%2&&(f==="reverse"?(P=1-P,m&&(P-=m/a)):f==="mirror"&&(S=o)),b=et(0,1,P)*a}let C;T?(this.delayState.value=u[0],C=this.delayState):C=S.next(b),r&&!T&&(C.value=r(C.value));let{done:M}=C;!T&&l!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return E&&p!==$e&&(C.value=ve(u,this.options,x,this.speed)),y&&y(C.value),E&&this.finish(),C}then(e,n){return this.finished.then(e,n)}get duration(){return $(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+$(e)}get time(){return $(this.currentTime)}set time(e){e=U(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return ro(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(B.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=$(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=za,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(B.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function ul(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ft=t=>t*180/Math.PI,Ge=t=>{const e=ft(Math.atan2(t[1],t[0]));return ze(e)},hl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ge,rotateZ:Ge,skewX:t=>ft(Math.atan(t[1])),skewY:t=>ft(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ze=t=>(t=t%360,t<0&&(t+=360),t),Jn=Ge,ts=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),es=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),dl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ts,scaleY:es,scale:t=>(ts(t)+es(t))/2,rotateX:t=>ze(ft(Math.atan2(t[6],t[5]))),rotateY:t=>ze(ft(Math.atan2(-t[2],t[0]))),rotateZ:Jn,rotate:Jn,skewX:t=>ft(Math.atan(t[4])),skewY:t=>ft(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ke(t){return t.includes("scale")?1:0}function Ye(t,e){if(!t||t==="none")return Ke(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=dl,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=hl,i=a}if(!i)return Ke(e);const r=s[e],o=i[1].split(",").map(ml);return typeof r=="function"?r(o):o[r]}const fl=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ye(n,e)};function ml(t){return parseFloat(t.trim())}const Ct=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Et=new Set([...Ct,"pathRotation"]),ns=t=>t===At||t===w,pl=new Set(["x","y","z"]),gl=Ct.filter(t=>!pl.has(t));function yl(t){const e=[];return gl.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const it={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ye(e,"x"),y:(t,{transform:e})=>Ye(e,"y")};it.translateX=it.x;it.translateY=it.y;const mt=new Set;let Xe=!1,qe=!1,Ze=!1;function lo(){if(qe){const t=Array.from(mt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=yl(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}qe=!1,Xe=!1,mt.forEach(t=>t.complete(Ze)),mt.clear()}function co(){mt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(qe=!0)})}function xl(){Ze=!0,co(),lo(),Ze=!1}class Mn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(mt.add(this),Xe||(Xe=!0,V.read(co),V.resolveKeyframes(lo))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}ul(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),mt.delete(this)}cancel(){this.state==="scheduled"&&(mt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const vl=t=>t.startsWith("--");function uo(t,e,n){vl(e)?t.style.setProperty(e,n):t.style[e]=n}const Tl={};function ho(t,e){const n=Fi(t);return()=>Tl[e]??n()}const bl=ho(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),fo=ho(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Vt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ss={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vt([0,.65,.55,1]),circOut:Vt([.55,0,1,.45]),backIn:Vt([.31,.01,.66,-.59]),backOut:Vt([.33,1.53,.69,.99])};function mo(t,e){if(t)return typeof t=="function"?fo()?oo(t,e):"ease-out":Xi(t)?Vt(t):Array.isArray(t)?t.map(n=>mo(n,e)||ss.easeOut):ss[t]}function wl(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=mo(a,i);Array.isArray(h)&&(u.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(u,f)}function po(t){return typeof t=="function"&&"applyToOptions"in t}function Sl({type:t,...e}){return po(t)&&fo()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class go extends Vn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,Tn(typeof e.type!="string");const c=Sl(e);this.animation=wl(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=ve(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),uo(n,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return $(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+$(e)}get time(){return $(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=U(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&bl()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),G):i(this)}}const yo={anticipate:Gi,backInOut:$i,circInOut:Ki};function Pl(t){return t in yo}function Al(t){typeof t.ease=="string"&&Pl(t.ease)&&(t.ease=yo[t.ease])}const Me=10;class Cl extends go{constructor(e){Al(e),ao(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new de({...o,autoplay:!1}),l=Math.max(Me,B.now()-this.startTime),c=et(0,Me,l-Me),u=a.sample(l).value,{name:h}=this.options;r&&h&&uo(r,h,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const is=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Y.test(t)||t==="0")&&!t.startsWith("url("));function El(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Dl(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=is(i,e),a=is(r,e);return!o||!a?!1:El(t)||(n==="spring"||po(n))&&s}function Qe(t){t.duration=0,t.type="keyframes"}const xo=new Set(["opacity","clipPath","filter","transform"]),Vl=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ml(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Vl.test(t[e]))return!0;return!1}const Rl=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),jl=Fi(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function kl(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return jl()&&n&&(xo.has(n)||Rl.has(n)&&Ml(a))&&(n!=="transform"||!u)&&!c&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const Il=40;class Nl extends Vn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=B.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...h},m=u?.KeyframeResolver||Mn;this.keyframeResolver=new m(a,(p,y,x)=>this.onKeyframesResolved(p,y,f,!x),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=B.now();let h=!0;Dl(e,r,o,a)||(h=!1,(ot.instantAnimations||!l)&&u?.(ve(e,s,n)),e[0]=e[e.length-1],Qe(s),s.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Il?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},p=h&&!c&&kl(m),y=m.motionValue?.owner?.current;let x;if(p)try{x=new Cl({...m,element:y})}catch{x=new de(m)}else x=new de(m);x.finished.then(()=>{this.notifyFinished()}).catch(G),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),xl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function vo(t,e,n,s=0,i=1){const r=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const os=30,Ll=t=>!isNaN(parseFloat(t));class Ol{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=B.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=B.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ll(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new bn);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=B.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>os)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,os);return Bi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pt(t,e){return new Ol(t,e)}function To(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function Rn(t,e){const n=t?.[e]??t?.default??t;return n!==t?To(n,t):n}const Fl={type:"spring",stiffness:500,damping:25,restSpeed:10},Bl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Wl={type:"keyframes",duration:.8},_l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ul=(t,{keyframes:e})=>e.length>2?Wl:Et.has(t)?t.startsWith("scale")?Bl(e[1]):Fl:_l,Hl=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function $l(t){for(const e in t)if(!Hl.has(e))return!0;return!1}const jn=(t,e,n,s={},i,r)=>o=>{const a=Rn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-U(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};$l(a)||Object.assign(u,Ul(t,u)),u.duration&&(u.duration=U(u.duration)),u.repeatDelay&&(u.repeatDelay=U(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Qe(u),u.delay===0&&(h=!0)),(ot.instantAnimations||ot.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,Qe(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=ve(u.keyframes,a);if(f!==void 0){V.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new de(u):new Nl(u)},Gl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zl(t){const e=Gl.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function bo(t,e,n=1){const[s,i]=zl(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Ni(o)?parseFloat(o):o}return Pn(i)?bo(i,e,n+1):i}function rs(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function kn(t,e,n,s){if(typeof e=="function"){const[i,r]=rs(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=rs(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function pt(t,e,n){const s=t.getProps();return kn(s,e,n!==void 0?n:s.custom,t)}const wo=new Set(["width","height","top","left","right","bottom",...Ct]),Je=t=>Array.isArray(t);function Kl(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Pt(n))}function Yl(t){return Je(t)?t[t.length-1]||0:t}function Xl(t,e){const n=pt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Yl(r[o]);Kl(t,o,a)}}const F=t=>!!(t&&t.getVelocity);function ql(t){return!!(F(t)&&t.add)}function tn(t,e){const n=t.getValue("willChange");if(ql(n))return n.add(e);if(!n&&ot.WillChange){const s=new ot.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function In(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Zl="framerAppearId",So="data-"+In(Zl);function Po(t){return t.props[So]}function Ql({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Ao(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const l=t.getDefaultTransition();r=r?To(r,l):l;const c=r?.reduceMotion,u=r?.skipAnimations;s&&(r=s);const h=[],f=i&&t.animationState&&t.animationState.getState()[i],m=r?.path;m&&m.animateVisualElement(t,a,r,n,h);for(const p in a){const y=t.getValue(p,t.latestValues[p]??null),x=a[p];if(x===void 0||f&&Ql(f,p))continue;const v={delay:n,...Rn(r||{},p)};u&&(v.skipAnimations=!0);const T=y.get();if(T!==void 0&&!y.isAnimating()&&!Array.isArray(x)&&x===T&&!v.velocity){V.update(()=>y.set(x));continue}let b=!1;if(window.MotionHandoffAnimation){const M=Po(t);if(M){const E=window.MotionHandoffAnimation(M,p,V);E!==null&&(v.startTime=E,b=!0)}}tn(t,p);const S=c??t.shouldReduceMotion;y.start(jn(p,y,x,S&&wo.has(p)?{type:!1}:v,t,b));const C=y.animation;C&&h.push(C)}if(o){const p=()=>V.update(()=>{o&&Xl(t,o)});h.length?Promise.all(h).then(p):p()}return h}function en(t,e,n={}){const s=pt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Ao(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=i;return Jl(t,e,l,c,u,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[r,o]:[o,r];return l().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function Jl(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(en(l,e,{...o,delay:n+(typeof s=="function"?0:s)+vo(t.variantChildren,l,s,i,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function tc(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>en(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=en(t,e,n);else{const i=typeof e=="function"?pt(t,e,n.custom):e;s=Promise.all(Ao(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const ec={test:t=>t==="auto",parse:t=>t},Co=t=>e=>e.test(t),Eo=[At,w,tt,st,Ea,Ca,ec],as=t=>Eo.find(Co(t));function nc(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Oi(t):!0}const sc=new Set(["brightness","contrast","saturate","opacity"]);function ic(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(An)||[];if(!s)return t;const i=n.replace(s,"");let r=sc.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const oc=/\b([a-z-]*)\(.*?\)/gu,nn={...Y,getAnimatableNone:t=>{const e=t.match(oc);return e?e.map(ic).join(" "):t}},sn={...Y,getAnimatableNone:t=>{const e=Y.parse(t);return Y.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},ls={...At,transform:Math.round},rc={rotate:st,pathRotation:st,rotateX:st,rotateY:st,rotateZ:st,scale:qt,scaleX:qt,scaleY:qt,scaleZ:qt,skew:st,skewX:st,skewY:st,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Ot,originX:Yn,originY:Yn,originZ:w},fe={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w,...rc,zIndex:ls,fillOpacity:Ot,strokeOpacity:Ot,numOctaves:ls},ac={...fe,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:nn,WebkitFilter:nn,mask:sn,WebkitMask:sn},Do=t=>ac[t],lc=new Set([nn,sn]);function Vo(t,e){let n=Do(t);return lc.has(n)||(n=Y),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,699 bytes, line 6
6const cc=new Set(["auto","none","0"]);function uc(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!cc.has(r)&&St(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Vo(n,i)}class hc extends Mn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),Pn(h))){const f=bo(h,n.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!wo.has(s)||e.length!==2)return;const[i,r]=e,o=as(i),a=as(r),l=Kn(i),c=Kn(r);if(l!==c&&it[s]){this.needsMeasurement=!0;return}if(o!==a)if(ns(o)&&ns(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else it[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||nc(e[i]))&&s.push(i);s.length&&uc(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=it[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=it[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 79,043 bytes, line 6
6h(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Mo(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const on=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function dc(t){return Li(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Nn}=qi(queueMicrotask,!1),K={x:!1,y:!1};function Ro(){return K.x||K.y}function fc(t){return t==="x"||t==="y"?K[t]?null:(K[t]=!0,()=>{K[t]=!1}):K.x||K.y?null:(K.x=K.y=!0,()=>{K.x=K.y=!1})}function jo(t,e){const n=Mo(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function mc(t){return!(t.pointerType==="touch"||Ro())}function pc(t,e,n={}){const[s,i,r]=jo(t,n);return s.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",p)},h=x=>{c&&(c(x),c=void 0),u()},f=x=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,h(x))},m=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=x=>{if(x.pointerType!=="touch"){if(a){l=!0;return}h(x)}},y=x=>{if(!mc(x))return;l=!1;const v=e(o,x);typeof v=="function"&&(c=v,o.addEventListener("pointerleave",p,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",m,i)}),r}const ko=(t,e)=>e?t===e?!0:ko(t,e.parentElement):!1,Ln=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,gc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yc(t){return gc.has(t.tagName)||t.isContentEditable===!0}const xc=new Set(["INPUT","SELECT","TEXTAREA"]);function vc(t){return xc.has(t.tagName)||t.isContentEditable===!0}const te=new WeakSet;function cs(t){return e=>{e.key==="Enter"&&t(e)}}function Re(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Tc=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=cs(()=>{if(te.has(n))return;Re(n,"down");const i=cs(()=>{Re(n,"up")}),r=()=>Re(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function us(t){return Ln(t)&&!Ro()}const hs=new WeakSet;function bc(t,e,n={}){const[s,i,r]=jo(t,n),o=a=>{const l=a.currentTarget;if(!us(a)||hs.has(a))return;te.add(l),n.stopPropagation&&hs.add(a);const c=e(l,a),u=(m,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),te.has(l)&&te.delete(l),us(m)&&typeof c=="function"&&c(m,{success:p})},h=m=>{u(m,l===window||l===document||n.useGlobalTarget||ko(l,m.target))},f=m=>{u(m,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),dc(a)&&(a.addEventListener("focus",c=>Tc(c,i)),!yc(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function On(t){return Li(t)&&"ownerSVGElement"in t}const ee=new WeakMap;let ne;const Io=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:On(s)&&"getBBox"in s?s.getBBox()[e]:s[n],wc=Io("inline","width","offsetWidth"),Sc=Io("block","height","offsetHeight");function Pc({target:t,borderBoxSize:e}){ee.get(t)?.forEach(n=>{n(t,{get width(){return wc(t,e)},get height(){return Sc(t,e)}})})}function Ac(t){t.forEach(Pc)}function Cc(){typeof ResizeObserver>"u"||(ne=new ResizeObserver(Ac))}function Ec(t,e){ne||Cc();const n=Mo(t);return n.forEach(s=>{let i=ee.get(s);i||(i=new Set,ee.set(s,i)),i.add(e),ne?.observe(s)}),()=>{n.forEach(s=>{const i=ee.get(s);i?.delete(e),i?.size||ne?.unobserve(s)})}}const se=new Set;let Tt;function Dc(){Tt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};se.forEach(e=>e(t))},window.addEventListener("resize",Tt)}function Vc(t){return se.add(t),Tt||Dc(),()=>{se.delete(t),!se.size&&typeof Tt=="function"&&(window.removeEventListener("resize",Tt),Tt=void 0)}}function ds(t,e){return typeof t=="function"?Vc(t):Ec(t,e)}function Mc(t){return On(t)&&t.tagName==="svg"}const Rc=[...Eo,k,Y],jc=t=>Rc.find(Co(t)),fs=()=>({translate:0,scale:1,origin:0,originPoint:0}),bt=()=>({x:fs(),y:fs()}),ms=()=>({min:0,max:0}),I=()=>({x:ms(),y:ms()}),kc=new WeakMap;function Te(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ft(t){return typeof t=="string"||Array.isArray(t)}const Fn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Bn=["initial",...Fn];function be(t){return Te(t.animate)||Bn.some(e=>Ft(t[e]))}function No(t){return!!(be(t)||t.variants)}function Ic(t,e,n){for(const s in e){const i=e[s],r=n[s];if(F(i))t.addValue(s,i);else if(F(r))t.addValue(s,Pt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,Pt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const rn={current:null},Lo={current:!1},Nc=typeof window<"u";function Lc(){if(Lo.current=!0,!!Nc)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rn.current=t.matches;t.addEventListener("change",e),e()}else rn.current=!1}const ps=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let me={};function Oo(t){me=t}function Oc(){return me}class Fc{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Mn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=B.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,V.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=be(n),this.isVariantNode=No(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in f){const p=f[m];c[m]!==void 0&&F(p)&&p.set(c[m])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,kc.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Lo.current||Lc(),this.shouldReduceMotion=rn.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(),rt(this.notifyUpdate),rt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&xo.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,h=new go({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:U(u)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=Et.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&V.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in me){const n=me[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):I()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ps.length;s++){const i=ps[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Ic(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Pt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Ni(s)||Oi(s))?s=parseFloat(s):!jc(s)&&Y.test(n)&&(s=Vo(e,n)),this.setBaseTarget(e,F(s)?s.get():s)),F(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=kn(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!F(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new bn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Nn.render(this.render)}}class Fo extends Fc{constructor(){super(...arguments),this.KeyframeResolver=hc}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class at{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Bo({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Bc({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Wc(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function je(t){return t===void 0||t===1}function an({scale:t,scaleX:e,scaleY:n}){return!je(t)||!je(e)||!je(n)}function ht(t){return an(t)||Wo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Wo(t){return gs(t.x)||gs(t.y)}function gs(t){return t&&t!=="0%"}function pe(t,e,n){const s=t-n,i=e*s;return n+i}function ys(t,e,n,s,i){return i!==void 0&&(t=pe(t,i,s)),pe(t,n,s)+e}function ln(t,e=0,n=1,s,i){t.min=ys(t.min,e,n,s,i),t.max=ys(t.max,e,n,s,i)}function _o(t,{x:e,y:n}){ln(t.x,e.translate,e.scale,e.originPoint),ln(t.y,n.translate,n.scale,n.originPoint)}const xs=.999999999999,vs=1.0000000000001;function _c(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(J(t.x,-r.scroll.offset.x),J(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,_o(t,o)),s&&ht(r.latestValues)&&ie(t,r.latestValues,r.layout?.layoutBox))}e.x<vs&&e.x>xs&&(e.x=1),e.y<vs&&e.y>xs&&(e.y=1)}function J(t,e){t.min+=e,t.max+=e}function Ts(t,e,n,s,i=.5){const r=D(t.min,t.max,i);ln(t,e,n,r,s)}function bs(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function ie(t,e,n){const s=n??t;Ts(t.x,bs(e.x,s.x),e.scaleX,e.scale,e.originX),Ts(t.y,bs(e.y,s.y),e.scaleY,e.scale,e.originY)}function Uo(t,e){return Bo(Wc(t.getBoundingClientRect(),e))}function Uc(t,e,n){const s=Uo(t,n),{scroll:i}=e;return i&&(J(s.x,i.offset.x),J(s.y,i.offset.y)),s}const Hc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$c=Ct.length;function Gc(t,e,n){let s="",i=!0;for(let o=0;o<$c;o++){const a=Ct[o],l=t[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=on(l,fe[a]);if(!c){i=!1;const h=Hc[a]||a;s+=`${h}(${u}) `}n&&(e[a]=u)}}const r=t.pathRotation;return r&&(i=!1,s+=`rotate(${on(r,fe.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Wn(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(Et.has(l)){o=!0;continue}else if(Qi(l)){i[l]=c;continue}else{const u=on(c,fe[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||n?s.transform=Gc(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}function Ho(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function ws(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Dt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=ws(t,e.target.x),s=ws(t,e.target.y);return`${n}% ${s}%`}},zc={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Y.parse(t);if(i.length>5)return s;const r=Y.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=D(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}},cn={borderRadius:{...Dt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Dt,borderTopRightRadius:Dt,borderBottomLeftRadius:Dt,borderBottomRightRadius:Dt,boxShadow:zc};function $o(t,{layout:e,layoutId:n}){return Et.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!cn[t]||t==="opacity")}function _n(t,e,n){const s=t.style,i=e?.style,r={};if(!s)return r;for(const o in s)(F(s[o])||i&&F(i[o])||$o(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function Kc(t){return window.getComputedStyle(t)}class Yc extends Fo{constructor(){super(...arguments),this.type="html",this.renderInstance=Ho}readValueFromInstance(e,n){if(Et.has(n))return this.projection?.isProjecting?Ke(n):fl(e,n);{const s=Kc(e),i=(Qi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Uo(e,n)}build(e,n,s){Wn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return _n(e,n,s)}}const Xc={offset:"stroke-dashoffset",array:"stroke-dasharray"},qc={offset:"strokeDashoffset",array:"strokeDasharray"};function Zc(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Xc:qc;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const Qc=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Go(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(Wn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const m of Qc)h[m]!==void 0&&(f[m]=h[m],delete h[m]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Zc(h,i,r,o,!1)}const zo=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"]),Ko=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Jc(t,e,n,s){Ho(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(zo.has(i)?i:In(i),e.attrs[i])}function Yo(t,e,n){const s=_n(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const r=Ct.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class tu extends Fo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=I}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Et.has(n)){const s=Do(n);return s&&s.default||0}return n=zo.has(n)?n:In(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Yo(e,n,s)}build(e,n,s){Go(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Jc(e,n,s,i)}mount(e){this.isSVGTag=Ko(e.tagName),super.mount(e)}}const eu=Bn.length;function Xo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Xo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<eu;n++){const s=Bn[n],i=t.props[s];(Ft(i)||i===!1)&&(e[s]=i)}return e}function qo(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const nu=[...Fn].reverse(),su=Fn.length;function iu(t){return e=>Promise.all(e.map(({animation:n,options:s})=>tc(t,n,s)))}function ou(t){let e=iu(t),n=Ss(),s=!0,i=!1;const r=c=>(u,h)=>{const f=pt(t,h,c==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:m,transitionEnd:p,...y}=f;u={...u,...y,...p}}return u};function o(c){e=c(t)}function a(c){const{props:u}=t,h=Xo(t.parent)||{},f=[],m=new Set;let p={},y=1/0;for(let v=0;v<su;v++){const T=nu[v],b=n[T],S=u[T]!==void 0?u[T]:h[T],C=Ft(S),M=T===c?b.isActive:null;M===!1&&(y=v);let E=S===h[T]&&S!==u[T]&&C;if(E&&(s||i)&&t.manuallyAnimateOnMount&&(E=!1),b.protectedKeys={...p},!b.isActive&&M===null||!S&&!b.prevProp||Te(S)||typeof S=="boolean")continue;if(T==="exit"&&b.isActive&&M!==!0){b.prevResolvedValues&&(p={...p,...b.prevResolvedValues});continue}const A=ru(b.prevProp,S);let N=A||T===c&&b.isActive&&!E&&C||v>y&&C,P=!1;const j=Array.isArray(S)?S:[S];let _=j.reduce(r(T),{});M===!1&&(_={});const{prevResolvedValues:lt={}}=b,q={...lt,..._},nt=L=>{N=!0,m.has(L)&&(P=!0,m.delete(L)),b.needsAnimating[L]=!0;const H=t.getValue(L);H&&(H.liveStyle=!1)};for(const L in q){const H=_[L],ct=lt[L];if(p.hasOwnProperty(L))continue;let yt=!1;Je(H)&&Je(ct)?yt=!qo(H,ct)||A:yt=H!==ct,yt?H!=null?nt(L):m.add(L):H!==void 0&&m.has(L)?nt(L):b.protectedKeys[L]=!0}b.prevProp=S,b.prevResolvedValues=_,b.isActive&&(p={...p,..._}),(s||i)&&t.blockInitialAnimation&&(N=!1);const Z=E&&A;N&&(!Z||P)&&f.push(...j.map(L=>{const H={type:T};if(typeof L=="string"&&(s||i)&&!Z&&t.manuallyAnimateOnMount&&t.parent){const{parent:ct}=t,yt=pt(ct,L);if(ct.enteringChildren&&yt){const{delayChildren:Tr}=yt.transition||{};H.delay=vo(ct.enteringChildren,t,Tr)}}return{animation:L,options:H}}))}if(m.size){const v={};if(typeof u.initial!="boolean"){const T=pt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);T&&T.transition&&(v.transition=T.transition)}m.forEach(T=>{const b=t.getBaseTarget(T),S=t.getValue(T);S&&(S.liveStyle=!0),v[T]=b??null}),f.push({animation:v})}let x=!!f.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(x=!1),s=!1,i=!1,x?e(f):Promise.resolve()}function l(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(c,u)),n[c].isActive=u;const h=a(c);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ss(),i=!0}}}function ru(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!qo(e,t):!1}function ut(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ss(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}function un(t,e){t.min=e.min,t.max=e.max}function z(t,e){un(t.x,e.x),un(t.y,e.y)}function Ps(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Zo=1e-4,au=1-Zo,lu=1+Zo,Qo=.01,cu=0-Qo,uu=0+Qo;function W(t){return t.max-t.min}function hu(t,e,n){return Math.abs(t-e)<=n}function As(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=au&&t.scale<=lu||isNaN(t.scale))&&(t.scale=1),(t.translate>=cu&&t.translate<=uu||isNaN(t.translate))&&(t.translate=0)}function kt(t,e,n,s){As(t.x,e.x,n.x,s?s.originX:void 0),As(t.y,e.y,n.y,s?s.originY:void 0)}function Cs(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+W(e)}function du(t,e,n,s){Cs(t.x,e.x,n.x,s?.x),Cs(t.y,e.y,n.y,s?.y)}function Es(t,e,n,s=0){const i=s?D(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+W(e)}function ge(t,e,n,s){Es(t.x,e.x,n.x,s?.x),Es(t.y,e.y,n.y,s?.y)}function Ds(t,e,n,s,i){return t-=e,t=pe(t,1/n,s),i!==void 0&&(t=pe(t,1/i,s)),t}function fu(t,e=0,n=1,s=.5,i,r=t,o=t){if(tt.test(e)&&(e=parseFloat(e),e=D(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=D(r.min,r.max,s);t===r&&(a-=e),t.min=Ds(t.min,e,n,a,i),t.max=Ds(t.max,e,n,a,i)}function Vs(t,e,[n,s,i],r,o){fu(t,e[n],e[s],e[i],e.scale,r,o)}const mu=["x","scaleX","originX"],pu=["y","scaleY","originY"];function Ms(t,e,n,s){Vs(t.x,e,mu,n?n.x:void 0,s?s.x:void 0),Vs(t.y,e,pu,n?n.y:void 0,s?s.y:void 0)}function Rs(t){return t.translate===0&&t.scale===1}function Jo(t){return Rs(t.x)&&Rs(t.y)}function js(t,e){return t.min===e.min&&t.max===e.max}function gu(t,e){return js(t.x,e.x)&&js(t.y,e.y)}function ks(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tr(t,e){return ks(t.x,e.x)&&ks(t.y,e.y)}function Is(t){return W(t.x)/W(t.y)}function Ns(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Q(t){return[t("x"),t("y")]}function yu(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,pathRotation:h,rotateX:f,rotateY:m,skewX:p,skewY:y}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotate(${h}deg) `),f&&(s+=`rotateX(${f}deg) `),m&&(s+=`rotateY(${m}deg) `),p&&(s+=`skewX(${p}deg) `),y&&(s+=`skewY(${y}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const er=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],xu=er.length,Ls=t=>typeof t=="string"?parseFloat(t):t,Os=t=>typeof t=="number"||w.test(t);function vu(t,e,n,s,i,r){i?(t.opacity=D(0,n.opacity??1,Tu(s)),t.opacityExit=D(e.opacity??1,0,bu(s))):r&&(t.opacity=D(e.opacity??1,n.opacity??1,s));for(let o=0;o<xu;o++){const a=er[o];let l=Fs(e,a),c=Fs(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Os(l)===Os(c)?(t[a]=Math.max(D(Ls(l),Ls(c),s),0),(tt.test(c)||tt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}function Fs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Tu=nr(0,.5,zi),bu=nr(.5,.95,G);function nr(t,e,n){return s=>s<t?0:s>e?1:n(Lt(t,e,s))}function wu(t,e,n){const s=F(t)?t:Pt(t);return s.start(jn("",s,e,n)),s.animation}function Bt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Su=(t,e)=>t.depth-e.depth;class Pu{constructor(){this.children=[],this.isDirty=!1}add(e){vn(this.children,e),this.isDirty=!0}remove(e){le(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Su),this.isDirty=!1,this.children.forEach(e)}}function Au(t,e){const n=B.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(rt(s),t(r-e))};return V.setup(s,!0),()=>rt(s)}function oe(t){return F(t)?t.get():t}class Cu{constructor(){this.members=[]}add(e){vn(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(le(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(le(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:r}=e.options;(i===void 0||i!==r)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const re={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ke=["","X","Y","Z"],Eu=1e3;let Du=0;function Ie(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function sr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Po(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&sr(s)}function ir({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=Du++,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(Ru),this.nodes.forEach(Ou),this.nodes.forEach(Fu),this.nodes.forEach(ju)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Pu)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new bn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=On(o)&&!Mc(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;V.read(()=>{h=window.innerWidth}),t(o,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,u&&u(),u=Au(f,250),re.hasAnimatedSinceResize&&(re.hasAnimatedSinceResize=!1,this.nodes.forEach(_s)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||Hu,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=c.getProps(),v=!this.targetLayout||!tr(this.targetLayout,m),T=!h&&f;if(this.options.layoutRoot||this.resumeFrom||T||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Rn(p,"layout"),onPlay:y,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(u,T,b.path)}else h||_s(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),rt(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(Bu),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(Iu),this.nodes.forEach(Bs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ws);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Nu),this.nodes.forEach(Lu),this.nodes.forEach(Vu),this.nodes.forEach(Mu)):this.nodes.forEach(Ws),this.clearAllSnapshots();const a=B.now();O.delta=et(0,1e3/60,a-O.timestamp),O.timestamp=a,O.isProcessing=!0,Ae.update.process(O),Ae.preRender.process(O),Ae.render.process(O),O.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Nn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ku),this.sharedNodes.forEach(Wu)}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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=I()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Jo(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||ht(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),$u(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return I();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Gu))){const{scroll:c}=this.root;c&&(J(a.x,c.offset.x),J(a.y,c.offset.y))}return a}removeElementScroll(o){const a=I();if(z(a,o),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;c!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&z(a,o),J(a.x,u.offset.x),J(a.y,u.offset.y))}return a}applyTransform(o,a=!1,l){const c=l||I();z(c,o);for(let u=0;u<this.path.length;u++){const h=this.path[u];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(J(c.x,-h.scroll.offset.x),J(c.y,-h.scroll.offset.y)),ht(h.latestValues)&&ie(c,h.latestValues,h.layout?.layoutBox)}return ht(this.latestValues)&&ie(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(o){const a=I();z(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!ht(c.latestValues))continue;let u;c.instance&&(an(c.latestValues)&&c.updateSnapshot(),u=I(),z(u,c.measurePageBox())),Ms(a,c.latestValues,c.snapshot?.layoutBox,u)}return ht(this.latestValues)&&Ms(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==O.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=O.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=I(),this.targetWithTransforms=I()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),du(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):z(this.target,this.layout.layoutBox),_o(this.target,this.targetDelta)):z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||an(this.parent.latestValues)||Wo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),ge(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===O.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;z(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;_c(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=I());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ps(this.prevProjectionDelta.x,this.projectionDelta.x),Ps(this.prevProjectionDelta.y,this.projectionDelta.y)),kt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ns(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ns(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bt(),this.projectionDelta=bt(),this.projectionDeltaWithTransform=bt()}setAnimationOrigin(o,a=!1,l){const c=this.snapshot,u=c?c.latestValues:{},h={...this.latestValues},f=bt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=I(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,x=p!==y,v=this.getStack(),T=!v||v.members.length<=1,b=!!(x&&!T&&this.options.crossfade===!0&&!this.path.some(Uu));this.animationProgress=0;let S;const C=l?.interpolateProjection(o);this.mixTargetDelta=M=>{const E=M/1e3,A=C?.(E);A?(f.x.translate=A.x,f.x.scale=D(o.x.scale,1,E),f.x.origin=o.x.origin,f.x.originPoint=o.x.originPoint,f.y.translate=A.y,f.y.scale=D(o.y.scale,1,E),f.y.origin=o.y.origin,f.y.originPoint=o.y.originPoint):(Us(f.x,o.x,E),Us(f.y,o.y,E)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ge(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),_u(this.relativeTarget,this.relativeTargetOrigin,m,E),S&&gu(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=I()),z(S,this.relativeTarget)),x&&(this.animationValues=h,vu(h,u,this.latestValues,E,b,T)),A&&A.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=A.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(rt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{re.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pt(0)),this.motionValue.jump(0,!1),this.currentAnimation=wu(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Eu),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&or(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||I();const h=W(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=W(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}z(a,l),ie(a,u),kt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Cu),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Ie("z",o,c,this.animationValues);for(let u=0;u<ke.length;u++)Ie(`rotate${ke[u]}`,o,c,this.animationValues),Ie(`skew${ke[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=oe(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=oe(a?.pointerEvents)||""),this.hasProjected&&!ht(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=yu(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),o.transform=h;const{x:f,y:m}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in cn){if(u[p]===void 0)continue;const{correct:y,applyTo:x,isCSSVariable:v}=cn[p],T=h==="none"?u[p]:y(u[p],c);if(x){const b=x.length;for(let S=0;S<b;S++)o[x[S]]=T}else v?this.options.visualElement.renderState.vars[p]=T:o[p]=T}this.options.layoutId&&(o.pointerEvents=c===this?oe(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Bs),this.root.sharedNodes.clear()}}}function Vu(t){t.updateLayout()}function Mu(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,r=e.source!==t.layout.source;if(i==="size")Q(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],f=W(h);h.min=n[u].min,h.max=h.min+f});else if(i==="x"||i==="y"){const u=i==="x"?"y":"x";un(r?e.measuredBox[u]:e.layoutBox[u],n[u])}else or(i,e.layoutBox,n)&&Q(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],f=W(n[u]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const o=bt();kt(o,n,e.layoutBox);const a=bt();r?kt(a,t.applyTransform(s,!0),e.measuredBox):kt(a,n,e.layoutBox);const l=!Jo(o);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const m=t.options.layoutAnchor||void 0,p=I();ge(p,e.layoutBox,h.layoutBox,m);const y=I();ge(y,n,f.layoutBox,m),tr(p,y)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=p,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Ru(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ju(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ku(t){t.clearSnapshot()}function Bs(t){t.clearMeasurements()}function Iu(t){t.isLayoutDirty=!0,t.updateLayout()}function Ws(t){t.isLayoutDirty=!1}function Nu(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function Lu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function _s(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ou(t){t.resolveTargetDelta()}function Fu(t){t.calcProjection()}function Bu(t){t.resetSkewAndRotation()}function Wu(t){t.removeLeadSnapshot()}function Us(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Hs(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function _u(t,e,n,s){Hs(t.x,e.x,n.x,s),Hs(t.y,e.y,n.y,s)}function Uu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Hu={duration:.45,ease:[.4,0,.1,1]},$s=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Gs=$s("applewebkit/")&&!$s("chrome/")?Math.round:G;function zs(t){t.min=Gs(t.min),t.max=Gs(t.max)}function $u(t){zs(t.x),zs(t.y)}function or(t,e,n){return t==="position"||t==="preserve-aspect"&&!hu(Is(e),Is(n),.2)}function Gu(t){return t!==t.root&&t.scroll?.wasRoot}const zu=ir({attachResizeListener:(t,e)=>Bt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ne={current:void 0},rr=ir({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ne.current){const t=new zu({});t.mount(window),t.setOptions({layoutScroll:!0}),Ne.current=t}return Ne.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),ar=g.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Ku(t=!0){const e=g.useContext(xn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=g.useId();g.useEffect(()=>{if(t)return i(r)},[t]);const o=g.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const lr=g.createContext({strict:!1}),Ks={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Ys=!1;function Yu(){if(Ys)return;const t={};for(const e in Ks)t[e]={isEnabled:n=>Ks[e].some(s=>!!n[s])};Oo(t),Ys=!0}function cr(){return Yu(),Oc()}function Xu(t){const e=cr();for(const n in t)e[n]={...e[n],...t[n]};Oo(e)}const qu=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 ye(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||qu.has(t)}let ur=t=>!ye(t);function Zu(t){typeof t=="function"&&(ur=e=>e.startsWith("on")?!ye(e):t(e))}try{Zu(require("@emotion/is-prop-valid").default)}catch{}function Qu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||F(t[i])||(ur(i)||n===!0&&ye(i)||!e&&!ye(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const we=g.createContext({});function Ju(t,e){if(be(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Ft(n)?n:void 0,animate:Ft(s)?s:void 0}}return t.inherit!==!1?e:{}}function th(t){const{initial:e,animate:n}=Ju(t,g.useContext(we));return g.useMemo(()=>({initial:e,animate:n}),[Xs(e),Xs(n)])}function Xs(t){return Array.isArray(t)?t.join(" "):t}const Un=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function hr(t,e,n){for(const s in e)!F(e[s])&&!$o(s,n)&&(t[s]=e[s])}function eh({transformTemplate:t},e){return g.useMemo(()=>{const n=Un();return Wn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function nh(t,e){const n=t.style||{},s={};return hr(s,n,t),Object.assign(s,eh(t,e)),s}function sh(t,e){const n={},s=nh(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const dr=()=>({...Un(),attrs:{}});function ih(t,e,n,s){const i=g.useMemo(()=>{const r=dr();return Go(r,e,Ko(s),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};hr(r,t.style,t),i.style={...r,...i.style}}return i}const oh=["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 Hn(t){return typeof t!="string"||t.includes("-")?!1:!!(oh.indexOf(t)>-1||/[A-Z]/u.test(t))}function rh(t,e,n,{latestValues:s},i,r=!1,o){const l=(o??Hn(t)?ih:sh)(e,s,i,t),c=Qu(e,typeof t=="string",r),u=t!==g.Fragment?{...c,...l,ref:n}:{},{children:h}=e,f=g.useMemo(()=>F(h)?h.get():h,[h]);return g.createElement(t,{...u,children:f})}function ah({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:lh(n,s,i,t),renderState:e()}}function lh(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=oe(r[f]);let{initial:o,animate:a}=t;const l=be(t),c=No(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const h=u?a:o;if(h&&typeof h!="boolean"&&!Te(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const p=kn(t,f[m]);if(p){const{transitionEnd:y,transition:x,...v}=p;for(const T in v){let b=v[T];if(Array.isArray(b)){const S=u?b.length-1:0;b=b[S]}b!==null&&(i[T]=b)}for(const T in y)i[T]=y[T]}}}return i}const fr=t=>(e,n)=>{const s=g.useContext(we),i=g.useContext(xn),r=()=>ah(t,e,s,i);return n?r():ra(r)},ch=fr({scrapeMotionValuesFromProps:_n,createRenderState:Un}),uh=fr({scrapeMotionValuesFromProps:Yo,createRenderState:dr}),hh=Symbol.for("motionComponentSymbol");function dh(t,e,n){const s=g.useRef(n);g.useInsertionEffect(()=>{s.current=n});const i=g.useRef(null);return g.useCallback(r=>{r&&t.onMount?.(r),e&&(r?e.mount(r):e.unmount());const o=s.current;if(typeof o=="function")if(r){const a=o(r);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[e])}const mr=g.createContext({});function xt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function fh(t,e,n,s,i,r){const{visualElement:o}=g.useContext(we),a=g.useContext(lr),l=g.useContext(xn),c=g.useContext(ar),u=c.reducedMotion,h=c.skipAnimations,f=g.useRef(null),m=g.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:r}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const p=f.current,y=g.useContext(mr);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&mh(f.current,n,i,y);const x=g.useRef(!1);g.useInsertionEffect(()=>{p&&x.current&&p.update(n,l)});const v=n[So],T=g.useRef(!!v&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return la(()=>{m.current=!0,p&&(x.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),T.current&&p.animationState&&p.animationState.animateChanges())}),g.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),T.current=!1),p.enteringChildren=void 0)}),p}function mh(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:pr(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&xt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function pr(t){if(t)return t.options.allowProjection!==!1?t.projection:pr(t.parent)}function Le(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&Xu(s);const r=n?n==="svg":Hn(t),o=r?uh:ch;function a(c,u){let h;const f={...g.useContext(ar),...c,layoutId:ph(c)},{isStatic:m}=f,p=th(c),y=o(c,m);if(!m&&typeof window<"u"){gh();const x=yh(f);h=x.MeasureLayout,p.visualElement=fh(t,y,f,i,x.ProjectionNode,r)}return d.jsxs(we.Provider,{value:p,children:[h&&p.visualElement?d.jsx(h,{visualElement:p.visualElement,...f}):null,rh(t,c,dh(y,p.visualElement,u),y,m,e,r)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=g.forwardRef(a);return l[hh]=t,l}function ph({layoutId:t}){const e=g.useContext(Ii).id;return e&&t!==void 0?e+"-"+t:t}function gh(t,e){g.useContext(lr).strict}function yh(t){const e=cr(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function xh(t,e){if(typeof Proxy>"u")return Le;const n=new Map,s=(r,o)=>Le(r,o,t,e),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,Le(o,void 0,t,e)),n.get(o))})}const vh=(t,e)=>e.isSVG??Hn(t)?new tu(e):new Yc(e,{allowProjection:t!==g.Fragment});class Th extends at{constructor(e){super(e),e.animationState||(e.animationState=ou(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Te(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let bh=0;class wh extends at{constructor(){super(...arguments),this.id=bh++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;if(e&&s===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"||typeof r=="object"&&r!==null&&!Array.isArray(r)){const a=pt(this.node,r,o);if(a){const{transition:l,transitionEnd:c,...u}=a;for(const h in u)this.node.getValue(h)?.jump(u[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Sh={animation:{Feature:Th},exit:{Feature:wh}};function zt(t){return{point:{x:t.pageX,y:t.pageY}}}const Ph=t=>e=>Ln(e)&&t(e,zt(e));function It(t,e,n,s){return Bt(t,e,Ph(n),s)}const gr=({current:t})=>t?t.ownerDocument.defaultView:null,qs=(t,e)=>Math.abs(t-e);function Ah(t,e){const n=qs(t.x,e.x),s=qs(t.y,e.y);return Math.sqrt(n**2+s**2)}const Zs=new Set(["auto","scroll"]);class yr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Zt(this.lastRawMoveEventInfo,this.transformPagePoint));const m=Oe(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=Ah(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!y)return;const{point:x}=m,{timestamp:v}=O;this.history.push({...x,timestamp:v});const{onStart:T,onMove:b}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=p,this.lastMoveEventInfo=Zt(p,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Oe(m.type==="pointercancel"?this.lastMoveEventInfo:Zt(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,T),x&&x(m,T)},!Ln(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const l=zt(e),c=Zt(l,this.transformPagePoint),{point:u}=c,{timestamp:h}=O;this.history=[{...u,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,Oe(c,this.history)),this.removeListeners=Ht(It(this.contextWindow,"pointermove",this.handlePointerMove),It(this.contextWindow,"pointerup",this.handlePointerUp),It(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Zs.has(s.overflowX)||Zs.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),V.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),rt(this.updatePoint)}}function Zt(t,e){return e?{point:e(t.point)}:t}function Qs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Oe({point:t},e){return{point:t,delta:Qs(t,xr(e)),offset:Qs(t,Ch(e)),velocity:Eh(e,.1)}}function Ch(t){return t[0]}function xr(t){return t[t.length-1]}function Eh(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=xr(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>U(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>U(e)*2&&(s=t[1]);const r=$(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Dh(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?D(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?D(n,t,s.max):Math.min(t,n)),t}function Js(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Vh(t,{top:e,left:n,bottom:s,right:i}){return{x:Js(t.x,n,i),y:Js(t.y,e,s)}}function ti(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Mh(t,e){return{x:ti(t.x,e.x),y:ti(t.y,e.y)}}function Rh(t,e){let n=.5;const s=W(t),i=W(e);return i>s?n=Lt(e.min,e.max-s,t.min):s>i&&(n=Lt(t.min,t.max-i,e.min)),et(0,1,n)}function jh(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const hn=.35;function kh(t=hn){return t===!1?t=0:t===!0&&(t=hn),{x:ei(t,"left","right"),y:ei(t,"top","bottom")}}function ei(t,e,n){return{min:ni(t,e),max:ni(t,n)}}function ni(t,e){return typeof t=="number"?t:t[e]||0}const Ih=new WeakMap;class Nh{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=I(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=h=>{n&&this.snapToCursor(zt(h).point),this.stopAnimation()},o=(h,f)=>{const{drag:m,dragPropagation:p,onDragStart:y}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fc(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Q(v=>{let T=this.getAxisMotionValue(v).get()||0;if(tt.test(T)){const{projection:b}=this.visualElement;if(b&&b.layout){const S=b.layout.layoutBox[v];S&&(T=W(S)*(parseFloat(T)/100))}}this.originPoint[v]=T}),y&&V.update(()=>y(h,f),!1,!0),tn(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:y,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:v}=f;if(p&&this.currentDirection===null){this.currentDirection=Oh(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),x&&V.update(()=>x(h,f),!1,!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new yr(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:gr(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&V.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Qt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=Dh(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&xt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Vh(s.layoutBox,e):this.constraints=!1,this.elastic=kh(n),i!==this.constraints&&!xt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Q(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=jh(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!xt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const r=Uc(s,i.root,this.visualElement.getTransformPagePoint());let o=Mh(i.layout.layoutBox,r);if(n){const a=n(Bc(o));this.hasMutatedConstraints=!!a,a&&(o=Bo(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Q(u=>{if(!Qt(u,n,this.currentDirection))return;let h=l&&l[u]||{};(o===!0||o===u)&&(h={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,p={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return tn(this.visualElement,e),s.start(jn(e,s,0,n,this.visualElement,!1))}stopAnimation(){Q(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Q(n=>{const{drag:s}=this.getProps();if(!Qt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=r.get()||0;r.set(e[n]-D(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!xt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Q(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Rh({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Q(o=>{if(!Qt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(D(l,c,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Ih.set(this.visualElement,this);const e=this.visualElement.current,n=It(e,"pointerdown",c=>{const{drag:u,dragListener:h=!0}=this.getProps(),f=c.target,m=f!==e&&vc(f);u&&h&&!m&&this.start(c)});let s;const i=()=>{const{dragConstraints:c}=this.getProps();xt(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),s||(s=Lh(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),V.read(i);const a=Bt(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Q(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=c[h].translate,f.set(f.get()+c[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),o(),l&&l(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=hn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function si(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function Lh(t,e,n){const s=ds(t,si(n)),i=ds(e,si(n));return()=>{s(),i()}}function Qt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Oh(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Fh extends at{constructor(e){super(e),this.removeGroupControls=G,this.removeListeners=G,this.controls=new Nh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||G}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Fe=t=>(e,n)=>{t&&V.update(()=>t(e,n),!1,!0)};class Bh extends at{constructor(){super(...arguments),this.removePointerDownListener=G}onPointerDown(e){this.session=new yr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Fe(e),onStart:Fe(n),onMove:Fe(s),onEnd:(r,o)=>{delete this.session,i&&V.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=It(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Be=!1;class Wh extends g.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),Be&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),re.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Be=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||V.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),Nn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Be=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function vr(t){const[e,n]=Ku(),s=g.useContext(Ii);return d.jsx(Wh,{...t,layoutGroup:s,switchLayoutGroup:g.useContext(mr),isPresent:e,safeToRemove:n})}const _h={pan:{Feature:Bh},drag:{Feature:Fh,ProjectionNode:rr,MeasureLayout:vr}};function ii(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&V.postRender(()=>r(e,zt(e)))}class Uh extends at{mount(){const{current:e}=this.node;e&&(this.unmount=pc(e,(n,s)=>(ii(this.node,s,"Start"),i=>ii(this.node,i,"End"))))}unmount(){}}class Hh extends at{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ht(Bt(this.node.current,"focus",()=>this.onFocus()),Bt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function oi(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&V.postRender(()=>r(e,zt(e)))}class $h extends at{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=bc(e,(i,r)=>(oi(this.node,r,"Start"),(o,{success:a})=>oi(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const dn=new WeakMap,We=new WeakMap,Gh=t=>{const e=dn.get(t.target);e&&e(t)},zh=t=>{t.forEach(Gh)};function Kh({root:t,...e}){const n=t||document;We.has(n)||We.set(n,{});const s=We.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(zh,{root:t,...e})),s[i]}function Yh(t,e,n){const s=Kh(e);return dn.set(t,n),s.observe(t),()=>{dn.delete(t),s.unobserve(t)}}const Xh={some:0,all:1};class qh extends at{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Xh[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};this.stopObserver=Yh(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;
6["amount","margin","root"].some(Zh(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Zh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Qh={inView:{Feature:qh},tap:{Feature:$h},focus:{Feature:Hh},hover:{Feature:Uh}},Jh={layout:{ProjectionNode:rr,MeasureLayout:vr}},td={...Sh,...Qh,..._h,...Jh},Se=xh(td,vh),ed=["Everything that exists traces back to the structure of the universe — and every stage of it is governed by time.","Human behaviour, and the decisions it produces, move in cycles.","Where there are cycles, there is signal. Where there is signal, it can be observed, measured, and modelled.","Destini.ai turns that observation into a statistical layer — a quiet input behind better judgement."];function nd(){return d.jsxs("section",{id:"layer",className:"relative flex min-h-screen flex-col justify-center px-6 py-32 md:px-16",children:[d.jsx("div",{className:"font-mono-hud mb-8 text-foreground/50",children:"PHASE 01 · THE LAYER"}),d.jsx(Ut,{as:"h2",text:"We treat the sky as data.",className:"max-w-4xl text-4xl leading-[1.05] md:text-6xl"}),d.jsx(Nt,{className:"mt-16 max-w-3xl",children:d.jsx("div",{className:"space-y-10",children:ed.map((t,e)=>d.jsx(Se.p,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-15%"},transition:{duration:.8,delay:e*.12,ease:[.2,.65,.3,1]},className:"text-lg leading-relaxed text-foreground/85 md:text-2xl",children:t},e))})})]})}const ri=["Astronomical time","Fine-grain dasha resolution","Pattern & signal model","Interpretation","Decision signal"];function sd(){return d.jsxs("section",{id:"engine",className:"relative flex min-h-screen flex-col justify-center px-6 py-32 md:px-16",children:[d.jsx("div",{className:"font-mono-hud mb-8 text-foreground/50",children:"PHASE 02 · ENGINE"}),d.jsx(Ut,{as:"h2",text:"The Prana Dasha Interpretation Engine.",className:"max-w-4xl text-4xl leading-[1.05] md:text-6xl"}),d.jsx(Nt,{className:"mt-10 max-w-3xl",children:d.jsxs("p",{className:"text-lg text-foreground/85 md:text-xl",children:["Prana Dasha is the finest-grain layer of Vedic time — it shifts every few minutes. Calculating it is known. ",d.jsx("span",{className:"italic",children:"Interpreting"})," it into a usable signal is our innovation at our patented API engine — never made before."]})}),d.jsxs("div",{className:"mt-16",children:[d.jsx("div",{className:"font-mono-hud mb-4 text-foreground/50",children:"PIPELINE"}),d.jsx("div",{className:"flex flex-col gap-3 md:flex-row md:items-stretch md:gap-0",children:ri.map((t,e)=>d.jsxs("div",{className:"flex flex-1 items-stretch",children:[d.jsx(Se.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-10%"},transition:{delay:e*.18,duration:.6},className:"font-mono-hud flex flex-1 items-center justify-center border border-foreground
6/30 px-4 py-5 text-center text-foreground/80",children:t}),e<ri.length-1&&d.jsx("div",{className:"font-mono-hud hidden items-center px-2 text-foreground/50 md:flex",children:"→"})]},t))})]}),d.jsxs("div",{className:"mt-16 grid gap-10 md:grid-cols-2 md:gap-16",children:[d.jsx(Nt,{children:d.jsxs("p",{className:"text-base leading-relaxed text-foreground/70 md:text-lg",children:[d.jsx("span",{className:"font-mono-hud mr-3 text-foreground/50",children:"NOTE"}),"Observation over prophecy. Patterns over belief. Every signal is computed, reasoned, and expressed as guidance — not certainty."]})}),d.jsxs("div",{className:"relative border border-foreground/30 bg-background/40 backdrop-blur-sm",children:[d.jsxs("div",{className:"font-mono-hud flex items-center justify-between border-b border-foreground/20 px-4 py-2 text-foreground/60",children:[d.jsx("span",{children:"TERMINAL"}),d.jsx("span",{children:"destini://signal"})]}),d.jsx("pre",{className:"font-mono-hud overflow-x-auto p-4 text-[0.7rem] leading-relaxed text-foreground/85",children:`$ GET /signal
7→ {
8    "window":    "<temporal-slice>",
9    "signal":    "<computed-pattern>",
10    "reasoning": "<interpretation>"
11  }`})]})]})]})}const id=[{name:"AI based Fin-Tech Services",line:"A timing-aware signal layered onto how risk and opportunity are read.",motif:d.jsxs("svg",{viewBox:"0 0 100 100",className:"h-full w-full",children:[d.jsx("circle",{cx:"50",cy:"50",r:"38",fill:"none",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.4"}),d.jsx("circle",{cx:"50",cy:"50",r:"24",fill:"none",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.6"}),d.jsx("circle",{cx:"50",cy:"50",r:"10",fill:"currentColor",opacity:"0.9"}),d.jsx("path",{d:"M50 12 L50 88 M12 50 L88 50",stroke:"currentColor",strokeWidth:"0.4",opacity:"0.3"})]})},{name:"Personal Life",line:"Navigate life's turning points with precision. Visit destini.ai for your personal AI companion.",motif:d.jsxs("svg",{viewBox:"0 0 100 100",className:"h-full w-full",children:[d.jsx("circle",{cx:"50",cy:"35",r:"14",fill:"none",stroke:"currentColor",strokeWidth:"0.8",opacity:"0.7"}),d.jsx("path",{d:"M22 88 Q 22 58 50 58 Q 78 58 78 88",fill:"none",stroke:"currentColor",strokeWidth:"0.8",opacity:"0.7"}),d.jsx("circle",{cx:"50",cy:"35",r:"4",fill:"currentColor",opacity:"0.9"})]}),link:"/destini",linkLabel:"VISIT DESTINI →"},{name:"Consumer Decision Analytics",line:"A timing-aware signal layered onto how consumers choose — surfacing intent, hesitation, and the moments decisions tip.",motif:d.jsxs("svg",{viewBox:"0 0 100 100",className:"h-full w-full",children:[[20,50,80].map((t,e)=>[20,50,80].map((n,s)=>d.jsx("circle",{cx:t,cy:n,r:"1.5",fill:"currentColor",opacity:(e+s)%2===0?.9:.4},`${e}-${s}`))),d.jsx("path",{d:"M20 20 L50 50 L80 20 M50 50 L50 80",fill:"none",stroke:"currentColor",strokeWidth:"0.5",opacity:"0.5"}),d.jsx("circle",{cx:"50",cy:"50",r:"18",fill:"none",stroke:"currentColor",strokeWidth:"0.4",opacity:"0.3"})]})},{name:"Health Management with Prana AI",line:"A bio-rhythmic signal mapped to your vital patterns — Prana AI reads the flow of energy and time to guide preventive, personalised health decisions.",motif:d.jsxs("svg",{viewBox:"0 0 100 100",className:"h-full w-full",children:[d.jsx("path",{d:"M50 15 C 30 15, 15 30, 15 50 C 15 70, 30 85, 50 85 C 70 85, 85 70, 85 50 C 85 30, 70 15, 50 15",fill:"none",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.5"}),d.jsx("path",{d:"M50 25 C 35 25, 25 35, 25 50 C 25 65, 35 75, 50 75 C 65 75, 75 65, 75 50 C 75 35, 65 25, 50 25",fill:"none",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.7"}),d.jsx("circle",{cx:"50",cy:"50",r:"6",fill:"currentColor",opacity:"0.9"}),d.jsx("path",{d:"M50 10 L50 20 M50 80 L50 90 M10 50 L20 50 M80 50 L90 50",stroke:"currentColor",strokeWidth:"0.4",opacity:"0.4"})]})},{name:"Good Governance with AI",line:"A cyclical pattern added as one more input to policy and judgement.",motif:d.jsxs("svg",{viewBox:"0 0 100 100",className:"h-full w-full",children:[d.jsx("path",{d:"M5 70 Q 25 30 50 60 T 95 40",fill:"none",stroke:"currentColor",strokeWidth:"0.8"}),d.jsx("path",{d:"M5 80 Q 25 50 50 70 T 95 55",fill:"none",stroke:"currentColor",strokeWidth:"0.4",opacity:"0.5"}),[15,35,55,75].map(t=>
11d.jsx("circle",{cx:t,cy:"50",r:"1.2",fill:"currentColor"},t))]})},{name:"Strategy with AI",line:"Timing and regime cues, as a supporting signal for strategic decisions.",motif:d.jsxs("svg",{viewBox:"0 0 100 100",className:"h-full w-full",children:[Array.from({length:12}).map((t,e)=>{const n=8+e*7,s=20+Math.abs(Math.sin(e*.9))*50;return d.jsx("line",{x1:n,y1:50-s/2,x2:n,y2:50+s/2,stroke:"currentColor",strokeWidth:"0.8",opacity:.6},e)}),d.jsx("line",{x1:"0",y1:"50",x2:"100",y2:"50",stroke:"currentColor",strokeWidth:"0.3",opacity:"0.4"})]})}];function od(){return d.jsxs("section",{id:"sectors",className:"relative flex min-h-screen flex-col justify-center px-6 py-32 md:px-16",children:[d.jsx("div",{className:"font-mono-hud mb-8 text-foreground/50",children:"PHASE 03 · SECTORS"}),d.jsx(Ut,{as:"h2",text:"Where the layer applies.",className:"max-w-4xl text-4xl leading-[1.05] md:text-6xl"}),d.jsx("div",{className:"mt-16 grid gap-6 md:grid-cols-3",children:id.map((t,e)=>d.jsxs(Se.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-10%"},transition:{delay:e*.15,duration:.7}
11,className:"group flex h-full flex-col border border-foreground/25 bg-background/30 p-8 backdrop-blur-sm transition hover:border-foreground/60",children:[d.jsx("div",{className:"text-foreground/80 h-24 w-24",children:t.motif}),d.jsx("h3",{className:"mt-8 text-2xl md:text-3xl",children:t.name}),d.jsx("p",{className:"font-mono-hud mt-4 leading-relaxed text-foreground/70",style:{letterSpacing:"0.08em"},children:t.line}),t.link&&d.jsx(wt,{to:t.link,className:"font-mono-hud mt-6 inline-block self-start border border-foreground/40 px-4 py-2 text-xs text-foreground/80 transition hover:border-foreground hover:bg-foreground hover:text-background",style:{letterSpacing:"0.12em"},children:t.linkLabel})]},t.name))}),d.jsx("p",{className:"font-mono-hud mt-16 text-center text-foreground/60",children:"ONE SUPPLEMENTARY LAYER · IT SUPPORTS DECISIONS — IT DOES NOT REPLACE THEM"})]})}const rd=[{label:"VISION",text:"To empower people and institutions to realize their true potential — fostering critical thinking and conscious decisions by turning the patterns of time into a clear, scientific layer of judgement."},{label:"MISSION",text:"To prove the ancient Vedic sciences as pure science — using advanced AI and synthesized algorithms to transform them into a statistical signal layer that bridges timeless knowledge with modern decisions across life, business, and government."},{label:"WHO WE ARE",text:"An intuitive AI based research and development org, started with challenging astrology to be pseudoscience, but eventually using it to be the most foundational algorithm of every life on earth. We observe the patterns and develop suitable algorithms and systems that can help businesses at multiple domain levels."}];function ad(){return d.jsxs("section",{id:"vision",className:"relative flex min-h-screen flex-col justify-center px-6 py-32 md:px-16",children:[d.jsx("div",{className:"font-mono-hud mb-8 text-foreground/50",children:"PHASE 04 · VISION"}),d.jsx(Ut,{as:"h2",text:"Our vision.",className:"text-5xl leading-[1.02] md:text-7xl"}),d.jsx(Nt,{className:"mt-16 max-w-5xl",children:d.jsx("div",{className:"grid gap-12 md:gap-16",children:rd.map((t,e)=>d.jsxs(Se.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-10%"},transition:{delay:e*.12,duration:.7}
11,className:"grid gap-3 border-t border-foreground/20 pt-8 md:grid-cols-[160px_1fr] md:gap-12",children:[d.jsx("div",{className:"font-mono-hud text-foreground/60",children:t.label}),d.jsx("p",{className:"text-xl leading-relaxed text-foreground/90 md:text-2xl",children:t.text})]},t.label))})}),d.jsxs("div",{className:"mt-20 flex flex-wrap items-center gap-5",children:[d.jsx("a",{href:"mailto:[email protected]",className:"font-mono-hud inline-flex items-center gap-3 border border-foreground bg-foreground px-6 py-3 text-background transition hover:bg-transparent hover:text-foreground",children:"Work with us →"}),d.jsx(wt,{to:"/destini",className:"font-mono-hud inline-flex items-center gap-2 text-foreground/70 underline-offset-4 transition hover:text-foreground hover:underline",children:"See the app →"})]})]})}function ld(){return d.jsx("footer",{className:"relative border-t border-foreground/15 px-6 py-12 md:px-16",children:d.jsxs("div",{className:"flex flex-col gap-6 md:flex-row md:items-end md:justify-between",children:[d.jsxs("div",{children:[d.jsx("div",{className:"font-mono-hud text-foreground tracking-[0.3em]",children:"DESTINI.AI"}),d.jsx("div",{className:"mt-2 text-sm text-foreground/60",children:"The statistical layer of time."})]}),d.jsxs("div",{className:"font-mono-hud flex flex-wrap gap-6 text-foreground/60",children:[d.jsx("a",{href:"#layer",className:"hover:text-foreground",children:"Layer"}),d.jsx("a",{href:"#engine",className:"hover:text-foreground",children:"Engine"}),d.jsx("a",{href:"#sectors",className:"hover:text-foreground",children:"Sectors"}),d.jsx("a",{href:"#vision",className:"hover:text-foreground",children:"Vision"}),d.jsx(wt,{to:"/destini",className:"hover:text-foreground",children:"Destini.ai personal app →"}),d.jsx(wt,{to:"/blog",className:"hover:text-foreground",children:"Blog"}),d.jsx(wt,{to:"/contact",className:"hover:text-foreground",children:"Contact"})]}),d.jsx("div",{className:"font-mono-hud text-foreground/40",children:"© 2026"})]})})}const ai=t=>{let e;const n=new Set,s=(c,u)=>{const h=typeof c=="function"?c(e):c;if(!Object.is(h,e)){const f=e;e=u??(typeof h!="object"||h===null)?h:Object.assign({},e,h),n.forEach(m=>m(e,f))}},i=()=>e,a={setState:s,getState:i,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=e=t(s,i,a);return a},cd=(t=>t?ai(t):ai),ud=t=>t;function hd(t,e=ud){const n=Kt.useSyncExternalStore(t.subscribe,Kt.useCallback(()=>e(t.getState()),[t,e]),Kt.useCallback(()=>e(t.getInitialState()),[t,e]));return Kt.useDebugValue(n),n}const li=t=>{const e=cd(t),n=s=>hd(e,s);return Object.assign(n,e),n},dd=(t=>t?li(t):li),fd=dd(t=>({phase:0,mouseX:0,mouseY:0,reducedMotion:!1,setPhase:e=>t({phase:e}),setMouse:(e,n)=>t({mouseX:e,mouseY:n}),setReducedMotion:e=>t({reducedMotion:e})}));function md(){const t=fd(e=>e.setPhase);g.useEffect(()=>{let e=0,n=0,s=0;const i=()=>{const o=document.documentElement.scrollHeight-window.innerHeight;s=(o>0?window.scrollY/o:0)*4},r=()=>{n+=(s-n)*.1,t(n),e=requestAnimationFrame(r)};return i(),n=s,t(n),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),e=requestAnimationFrame(r),()=>{cancelAnimationFrame(e),window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}},[t])}function pd(){md();const[t,e]=g.useState(null);return g.useEffect(()=>{let n=!1;return br(()=>import("./CosmicCanvas-CheDbLfd.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(s=>{n||e(()=>s.CosmicCanvas)}),()=>{n=!0}},[]),d.jsxs(d.Fragment,{children:[t?d.jsx(t,{}):d.jsx("div",{className:"fixed inset-0 z-0 bg-background"}),d.jsx("div",{className:"scanlines"}),d.jsx("div",{className:"grain-overlay"}),d.jsx(na,{}),d.jsx(ia,{}),d.jsxs("main",{className:"relative z-10",children:[d.jsx(oa,{}),d.jsx(nd,{}),d.jsx(sd,{}),d.jsx(od,{}),d.jsx(ad,{}),d.jsx(ld,{})]})]})}const Pd=Object.freeze(Object.defineProperty({__proto__:null,component:pd},Symbol.toStringTag,{value:"Module"}));export{cd as c,Pd as i,fd as u};

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