1import{j as d,L as P,r as E,D as Vn,G as Ct,w as An,H as Cn}from"./chunk-4WY6JWTD-DoFnijRJ.js";import{T as C,c as Mn}from"./Typography-CTmNgK65.js";import{c as Be,B as L}from"./Button-YErYcH1Q.js";import{s as Qe}from"./contact-CSiHNkJP.js";import{i as jn,A as _e,u as Pn}from"./index-CRZFzdAp.js";import{c as de,r as Mt,h as Fn,d as jt,i as Ge,e as k,f as Q,g as we,j as J,n as Pt,p as Ft,t as kt,k as kn,l as Dn,v as Nn,o as In,q as En,s as Rn,w as et,x as tt,y as On,z as Kn,A as _,B as Ln,C as Bn,D as he,E as nt,F as Dt,G as _n,H as Gn,I as Un,J as Nt,K as Wn,N as zn,O as Hn,Q as $n,S as qn,T as It,U as Et,V as Rt,W as Ot,m as H}from"./RevealItem-dZ-Nr-lK.js";import{A as Yn}from"./arrow-right-tEiTFG_I.js";import{n as fe,i as Kt,e as st,a as Xn,b as Zn,c as Jn,d as Qn,f as es}from"./Hero-CEExwoB0.js";import"./Input-DWsPyFT8.js";import"./index.esm-lY66E3nC.js";import"./BlurredCircles-CPkiorLi.js";import"./Reveal-BXLbXze6.js";const ts=({})=>d.jsxs("div",{className:"relative w-full flex flex-col gap-y-10 p-4 md:p-10 md:pb-20 z-10",children:[d.jsx("div",{children:d.jsx("img",{src:"/CulturePulse_logo.svg",alt:"Logo"})}),d.jsxs("div",{className:"flex flex-col md:flex-row gap-10 w-[165px]",children:[d.jsx("img",{src:"/DIANA_network.png",alt:"Logo"}),d.jsx("img",{src:"/DIANA_innovator.png",alt:"Logo"}),d.jsx("img",{src:"/CDL_Estonia.png",alt:"Logo"})]}),d.jsxs("div",{className:"flex flex-col md:flex-row justify-between gap-y-10",children:[d.jsxs("div",{className:"flex flex-col gap-y-3 w-auto md:w-1/5 items-start",children:[d.jsx(C,{variant:"bodySmall",className:"text-gray-300",children:"Company"}),d.jsx(P,{to:"/about-us",children:d.jsx(C,{children:"About Us"})}),d.jsx(P,{to:"/careers",children:d.jsx(C,{children:"Careers"})}),d.jsx(P,{to:"/insights",children:d.jsx(C,{children:"Insights"})})]}),d.jsxs("div",{className:"flex flex-col gap-y-3 w-auto md:w-1/5 items-start",children:[d.jsx(C,{variant:"bodySmall",className:"text-gray-300",children:"Solutions"}),d.jsx(P,{to:"/government",children:d.jsx(C,{children:"Government"})}),d.jsx(P,{to:"/ARES",children:d.jsx(C,{children:"ARES"})}),d.jsx(P,{to:"/business",children:d.jsx(C,{children:"Business"})}),d.jsx(P,{to:"/technology",children:d.jsx(C,{children:"Technology"})})]}),d.jsxs("div",{className:"flex flex-col gap-y-3 w-auto md:w-1/5 items-start",children:[d.jsx(C,{variant:"bodySmall",className:"text-gray-300",children:"Support"}),d.jsx(P,{to:"/contact",children:d.jsx(C,{children:"Contact"})})]}),d.jsxs("div",{className:"flex flex-col gap-y-3 w-auto md:w-1/5 items-start",children:[d.jsx(C,{variant:"bodySmall",className:"text-gray-300",children:"Follow Us"}),d.jsx(P,{to:"https://www.linkedin.com/company/culturepulse-ai",target:"_blank",children:d.jsx(C,{children:"LinkedIn"})}),d.jsx(P,{to:"https://www.instagram.com/culturepulseai",target:"_blank",children:d.jsx(C,{children:"Instagram"})}),d.jsx(P,{to:"https://x.com/culturepulseai",target:"_blank",children:d.jsx(C,{children:"X"})}),d.jsx(P,{to:"https://www.youtube.com/@culturepulseai",target:"_blank",children:d.jsx(C,{children:"YouTube"})})]}),d.jsxs("div",{className:"flex flex-col gap-y-3 w-auto md:w-1/5 items-start",children:[d.jsx(C,{variant:"bodySmall",className:"text-gray-300",children:"Legal"}),d.jsx(P,{to:"/CulturePulse_Privacy_Policy.pdf",target:"_blank",children:d.jsx(C,{children:"Privacy policy"})})]})]}),d.jsx("div",{children:d.jsx(C,{variant:"bodySmall",className:"text-gray-300",children:"© 2025 CulturePulse. All rights reserved."})})]});const ns=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],ss=Be("menu",ns);const is=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],it=Be("search",is);const rs=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],rt=Be("x",rs),B=({to:t,onClick:e,className:n,children:s})=>d.jsx(P,{className:Mn("transition-colors ease-out duration-300 hover:text-gray-400 focus:outline-none focus-visible:ring-2 focus-visible:rounded-2xl focus-visible:ring-cyan-600 cursor-pointer",n),to:t,onClick:e,children:d.jsx(C,{variant:"titlePage",mobileVariant:"smallHeading",children:s})});function as(t,e){t.indexOf(e)===-1&&t.push(e)}function os(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const K={},Lt=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Bt=t=>/^0[^.\s]+$/u.test(t);function Ue(t){let e;return()=>(e===void 0&&(e=t()),e)}const ls=(t,e)=>n=>e(t(n)),me=(...t)=>t.reduce(ls),_t=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Gt{constructor(){this.subscriptions=[]}add(e){return as(this.subscriptions,e),()=>os(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 a=this.subscriptions[r];a&&a(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const U=t=>t*1e3,R=t=>t/1e3;function Ut(t,e){return e?t*(1e3/e):0}const cs=t=>Array.isArray(t)&&typeof t[0]!="number",se=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function us(t,e){let n=new Set,s=new Set,i=!1,r=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(l){a.has(l)&&(u.schedule(l),t()),l(o)}const u={schedule:(l,h=!1,f=!1)=>{const b=f&&i?n:s;return h&&a.add(l),b.has(l)||b.add(l),l},cancel:l=>{s.delete(l),a.delete(l)},process:l=>{if(o=l,i){r=!0;return}
vendor: 21,383 bytes, line 1
1i=!0,[n,s]=[s,n],n.forEach(c),n.clear(),i=!1,r&&(r=!1,u.process(l))}};return u}const ds=40;function Wt(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,a=se.reduce((y,V)=>(y[V]=us(r),y),{}),{setup:o,read:c,resolveKeyframes:u,preUpdate:l,update:h,preRender:f,render:m,postRender:b}=a,T=()=>{const y=K.useManualTiming?i.timestamp:performance.now();n=!1,K.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(y-i.timestamp,ds),1)),i.timestamp=y,i.isProcessing=!0,o.process(i),c.process(i),u.process(i),l.process(i),h.process(i),f.process(i),m.process(i),b.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(T))},v=()=>{n=!0,s=!0,i.isProcessing||t(T)};return{schedule:se.reduce((y,V)=>{const g=a[V];return y[V]=(S,M=!1,x=!1)=>(n||v(),g.schedule(S,M,x)),y},{}),cancel:y=>{for(let V=0;V<se.length;V++)a[se[V]].cancel(y)},state:i,steps:a}}const{schedule:O,cancel:Se,state:ae}=Wt(typeof requestAnimationFrame<"u"?requestAnimationFrame:fe,!0);let ie;function hs(){ie=void 0}const D={now:()=>(ie===void 0&&D.set(ae.isProcessing||K.useManualTiming?ae.timestamp:performance.now()),ie),set:t=>{ie=t,queueMicrotask(hs)}};function pe(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 fs({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,a=0;if(!e)i=r=a=n;else{const o=n<.5?n*(1+e):n+e-n*e,c=2*n-o;i=pe(c,o,t+1/3),r=pe(c,o,t),a=pe(c,o,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(a*255),alpha:s}}function oe(t,e){return n=>n>0?e:t}const ge=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ms=[Fn,Mt,jt],ps=t=>ms.find(e=>e.test(t));function at(t){const e=ps(t);if(!e)return!1;let n=e.parse(t);return e===jt&&(n=fs(n)),n}const ot=(t,e)=>{const n=at(t),s=at(e);if(!n||!s)return oe(t,e);const i={...n};return r=>(i.red=ge(n.red,s.red,r),i.green=ge(n.green,s.green,r),i.blue=ge(n.blue,s.blue,r),i.alpha=de(n.alpha,s.alpha,r),Mt.transform(i))},Ve=new Set(["none","hidden"]);function gs(t,e){return Ve.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ys(t,e){return n=>de(t,e,n)}function We(t){return typeof t=="number"?ys:typeof t=="string"?Ge(t)?oe:k.test(t)?ot:bs:Array.isArray(t)?zt:typeof t=="object"?k.test(t)?ot:xs:oe}function zt(t,e){const n=[...t],s=n.length,i=t.map((r,a)=>We(r)(r,e[a]));return r=>{for(let a=0;a<s;a++)n[a]=i[a](r);return n}}function xs(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=We(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function vs(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],a=t.indexes[r][s[r]],o=t.values[a]??0;n[i]=o,s[r]++}return n}const bs=(t,e)=>{const n=Q.createTransformer(e),s=we(t),i=we(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?Ve.has(t)&&!i.values.length||Ve.has(e)&&!s.values.length?gs(t,e):me(zt(vs(s,i),i.values),n):oe(t,e)};function Ht(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?de(t,e,n):We(t)(t,e)}const Ts=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>O.update(e,n),stop:()=>Se(e),now:()=>ae.isProcessing?ae.timestamp:D.now()}},$t=(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)})`},le=2e4;function ze(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<le;)e+=n,s=t.next(e);return e>=le?1/0:e}function ws(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(ze(s),le);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:R(i)}}const Ss=5;function qt(t,e,n){const s=Math.max(e-Ss,0);return Ut(n-t(s),e-s)}const A={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},ye=.001;function Vs({duration:t=A.duration,bounce:e=A.bounce,velocity:n=A.velocity,mass:s=A.mass}){let i,r,a=1-e;a=J(A.minDamping,A.maxDamping,a),t=J(A.minDuration,A.maxDuration,R(t)),a<1?(i=u=>{const l=u*a,h=l*t,f=l-n,m=Ae(u,a),b=Math.exp(-h);return ye-f/m*b},r=u=>{const h=u*a*t,f=h*n+n,m=Math.pow(a,2)*Math.pow(u,2)*t,b=Math.exp(-h),T=Ae(Math.pow(u,2),a);return(-i(u)+ye>0?-1:1)*((f-m)*b)/T}):(i=u=>{const l=Math.exp(-u*t),h=(u-n)*t+1;return-ye+l*h},r=u=>{const l=Math.exp(-u*t),h=(n-u)*(t*t);return l*h});const o=5/t,c=Cs(i,r,o);if(t=U(t),isNaN(c))return{stiffness:A.stiffness,damping:A.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:a*2*Math.sqrt(s*u),duration:t}}}const As=12;function Cs(t,e,n){let s=n;for(let i=1;i<As;i++)s=s-t(s)/e(s);return s}function Ae(t,e){return t*Math.sqrt(1-e*e)}const Ms=["duration","bounce"],js=["stiffness","damping","mass"];function lt(t,e){return e.some(n=>t[n]!==void 0)}function Ps(t){let e={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...t};if(!lt(t,js)&<(t,Ms))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*J(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:A.mass,stiffness:i,damping:r}}else{const n=Vs(t);e={...e,...n,mass:A.mass},e.isResolvedFromDuration=!0}return e}function ce(t=A.visualDuration,e=A.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],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:r},{stiffness:c,damping:u,mass:l,duration:h,velocity:f,isResolvedFromDuration:m}=Ps({...n,velocity:-R(n.velocity||0)}),b=f||0,T=u/(2*Math.sqrt(c*l)),v=a-r,p=R(Math.sqrt(c/l)),w=Math.abs(v)<5;s||(s=w?A.restSpeed.granular:A.restSpeed.default),i||(i=w?A.restDelta.granular:A.restDelta.default);let y;if(T<1){const g=Ae(p,T);y=S=>{const M=Math.exp(-T*p*S);return a-M*((b+T*p*v)/g*Math.sin(g*S)+v*Math.cos(g*S))}}else if(T===1)y=g=>a-Math.exp(-p*g)*(v+(b+p*v)*g);else{const g=p*Math.sqrt(T*T-1);y=S=>{const M=Math.exp(-T*p*S),x=Math.min(g*S,300);return a-M*((b+T*p*v)*Math.sinh(x)+g*v*Math.cosh(x))/g}}const V={calculatedDuration:m&&h||null,next:g=>{const S=y(g);if(m)o.done=g>=h;else{let M=g===0?b:0;T<1&&(M=g===0?U(b):qt(y,g,S));const x=Math.abs(M)<=s,F=Math.abs(a-S)<=i;o.done=x&&F}return o.value=o.done?a:S,o},toString:()=>{const g=Math.min(ze(V),le),S=$t(M=>V.next(g*M).value,g,30);return g+"ms "+S},toTransition:()=>{}};return V}ce.applyToOptions=t=>{const e=ws(t,100,ce);return t.ease=e.ease,t.duration=U(e.duration),t.type="keyframes",t};function Ce({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:c,restDelta:u=.5,restSpeed:l}){const h=t[0],f={done:!1,value:h},m=x=>o!==void 0&&x<o||c!==void 0&&x>c,b=x=>o===void 0?c:c===void 0||Math.abs(o-x)<Math.abs(c-x)?o:c;let T=n*e;const v=h+T,p=a===void 0?v:a(v);p!==v&&(T=p-h);const w=x=>-T*Math.exp(-x/s),y=x=>p+w(x),V=x=>{const F=w(x),N=y(x);f.done=Math.abs(F)<=u,f.value=f.done?p:N};let g,S;const M=x=>{m(f.value)&&(g=x,S=ce({keyframes:[f.value,b(f.value)],velocity:qt(y,x,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:l}))};return M(0),{calculatedDuration:null,next:x=>{let F=!1;return!S&&g===void 0&&(F=!0,V(x),M(x)),g!==void 0&&x>=g?S.next(x-g):(!F&&V(x),f)}}}function Fs(t,e,n){const s=[],i=n||K.mix||Ht,r=t.length-1;for(let a=0;a<r;a++){let o=i(t[a],t[a+1]);if(e){const c=Array.isArray(e)?e[a]||fe:e;o=me(c,o)}s.push(o)}return s}function ks(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(Kt(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=Fs(e,s,i),c=o.length,u=l=>{if(a&&l<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(l<t[h+1]);h++);const f=_t(t[h],t[h+1],l);return o[h](f)};return n?l=>u(J(t[0],t[r-1],l)):u}function Ds(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=_t(0,e,s);t.push(de(n,1,i))}}function Ns(t){const e=[0];return Ds(e,t.length-1),e}function Is(t,e){return t.map(n=>n*e)}function Es(t,e){return t.map(()=>e||Xn).splice(0,t.length-1)}function ne({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=cs(s)?s.map(st):st(s),r={done:!1,value:e[0]},a=Is(n&&n.length===e.length?n:Ns(e),t),o=ks(a,e,{ease:Array.isArray(i)?i:Es(e,i)});return{calculatedDuration:t,next:c=>(r.value=o(c),r.done=c>=t,r)}}const Rs=t=>t!==null;function He(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Rs),o=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!o||s===void 0?r[o]:s}const Os={decay:Ce,inertia:Ce,tween:ne,keyframes:ne,spring:ce};function Yt(t){typeof t.type=="string"&&(t.type=Os[t.type])}class $e{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 Ks=t=>t/100;class qe extends $e{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==D.now()&&this.tick(D.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;Yt(e);const{type:n=ne,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:a=0}=e;let{keyframes:o}=e;const c=n||ne;c!==ne&&typeof o[0]!="number"&&(this.mixKeyframes=me(Ks,Ht(o[0],o[1])),o=[0,100]);const u=c({...e,keyframes:o});r==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...o].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=ze(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}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:a,resolvedDuration:o,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:h,repeatType:f,repeatDelay:m,type:b,onUpdate:T,finalKeyframe:v}=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 p=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let y=this.currentTime,V=s;if(h){const x=Math.min(this.currentTime,i)/o;let F=Math.floor(x),N=x%1;!N&&x>=1&&(N=1),N===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(f==="reverse"?(N=1-N,m&&(N-=m/o)):f==="mirror"&&(V=a)),y=J(0,1,N)*o}const g=w?{done:!1,value:l[0]}:V.next(y);r&&(g.value=r(g.value));let{done:S}=g;!w&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return M&&b!==Ce&&(g.value=He(l,this.options,v,this.speed)),T&&T(g.value),M&&this.finish(),g}then(e,n){return this.finished.then(e,n)}get duration(){return R(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+R(e)}get time(){return R(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(D.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=R(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Ts,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(D.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 Ls(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const $=t=>t*180/Math.PI,Me=t=>{const e=$(Math.atan2(t[1],t[0]));return je(e)},Bs={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Me,rotateZ:Me,skewX:t=>$(Math.atan(t[1])),skewY:t=>$(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},je=t=>(t=t%360,t<0&&(t+=360),t),ct=Me,ut=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),dt=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),_s={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ut,scaleY:dt,scale:t=>(ut(t)+dt(t))/2,rotateX:t=>je($(Math.atan2(t[6],t[5]))),rotateY:t=>je($(Math.atan2(-t[2],t[0]))),rotateZ:ct,rotate:ct,skewX:t=>$(Math.atan(t[4])),skewY:t=>$(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Pe(t){return t.includes("scale")?1:0}function Fe(t,e){if(!t||t==="none")return Pe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=_s,i=n;else{const o=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Bs,i=o}if(!i)return Pe(e);const r=s[e],a=i[1].split(",").map(Us);return typeof r=="function"?r(a):a[r]}const Gs=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Fe(n,e)};function Us(t){return parseFloat(t.trim())}const ht=t=>t===Pt||t===Ft,Ws=new Set(["x","y","z"]),zs=kt.filter(t=>!Ws.has(t));function Hs(t){const e=[];return zs.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const G={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-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})=>Fe(e,"x"),y:(t,{transform:e})=>Fe(e,"y")};G.translateX=G.x;G.translateY=G.y;const q=new Set;let ke=!1,De=!1,Ne=!1;function Xt(){if(De){const t=Array.from(q).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Hs(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,a])=>{s.getValue(r)?.set(a)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}De=!1,ke=!1,q.forEach(t=>t.complete(Ne)),q.clear()}function Zt(){q.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(De=!0)})}function $s(){Ne=!0,Zt(),Xt(),Ne=!1}class Ye{constructor(e,n,s,i,r,a=!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=a}scheduleResolve(){this.state="scheduled",this.isAsync?(q.add(this),ke||(ke=!0,O.read(Zt),O.resolveKeyframes(Xt))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const o=s.readValue(n,a);o!=null&&(e[0]=o)}e[0]===void 0&&(e[0]=a),i&&r===void 0&&i.set(e[0])}Ls(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),q.delete(this)}cancel(){this.state==="scheduled"&&(q.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const qs=t=>t.startsWith("--");function Ys(t,e,n){qs(e)?t.style.setProperty(e,n):t.style[e]=n}const Xs=Ue(()=>window.ScrollTimeline!==void 0),Zs={};function Js(t,e){const n=Ue(t);return()=>Zs[e]??n()}const Jt=Js(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),te=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ft={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:te([0,.65,.55,1]),circOut:te([.55,0,1,.45]),backIn:te([.31,.01,.66,-.59]),backOut:te([.33,1.53,.69,.99])};function Qt(t,e){if(t)return typeof t=="function"?Jt()?$t(t,e):"ease-out":Zn(t)?te(t):Array.isArray(t)?t.map(n=>Qt(n,e)||ft.easeOut):ft[t]}function Qs(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const h=Qt(o,i);Array.isArray(h)&&(l.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:a==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(l,f)}function en(t){return typeof t=="function"&&"applyToOptions"in t}function ei({type:t,...e}){return en(t)&&Jt()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ti extends $e{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:a=!1,finalKeyframe:o,onComplete:c}=e;this.isPseudoElement=!!r,this.allowFlatten=a,this.options=e,Kt(typeof e.type!="string");const u=ei(e);this.animation=Qs(n,s,i,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const l=He(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(l):Ys(n,s,l),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return R(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+R(e)}get time(){return R(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=U(e)}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,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Xs()?(this.animation.timeline=e,fe):n(this)}}const tn={anticipate:es,backInOut:Qn,circInOut:Jn};function ni(t){return t in tn}function si(t){typeof t.ease=="string"&&ni(t.ease)&&(t.ease=tn[t.ease])}const xe=10;class ii extends ti{constructor(e){si(e),Yt(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...a}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const o=new qe({...a,autoplay:!1}),c=Math.max(xe,D.now()-this.startTime),u=J(0,xe,c-xe);n.setWithVelocity(o.sample(Math.max(0,c-u)).value,o.sample(c).value,u),o.stop()}}const mt=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Q.test(t)||t==="0")&&!t.startsWith("url("));function ri(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 ai(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],a=mt(i,e),o=mt(r,e);return!a||!o?!1:ri(t)||(n==="spring"||en(n))&&s}function Ie(t){t.duration=0,t.type="keyframes"}const oi=new Set(["opacity","clipPath","filter","transform"]),li=Ue(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ci(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return li()&&n&&oi.has(n)&&(n!=="transform"||!u)&&!c&&!s&&i!=="mirror"&&r!==0&&a!=="inertia"}const ui=40;class di extends $e{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:r=0,repeatType:a="loop",keyframes:o,name:c,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=D.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:a,name:c,motionValue:u,element:l,...h},m=l?.KeyframeResolver||Ye;this.keyframeResolver=new m(o,(b,T,v)=>this.onKeyframesResolved(b,T,f,!v),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:a,velocity:o,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=D.now(),ai(e,r,a,o)||((K.instantAnimations||!c)&&l?.(He(e,s,n)),e[0]=e[e.length-1],Ie(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ui?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},m=!u&&ci(f)?new ii({...f,element:f.motionValue.owner.current}):new qe(f);m.finished.then(()=>this.notifyFinished()).catch(fe),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),$s()),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()}}const hi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fi(t){const e=hi.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function nn(t,e,n=1){const[s,i]=fi(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const a=r.trim();return Lt(a)?parseFloat(a):a}return Ge(i)?nn(i,e,n+1):i}function sn(t,e){return t?.[e]??t?.default??t}const rn=new Set(["width","height","top","left","right","bottom",...kt]),mi={test:t=>t==="auto",parse:t=>t},an=t=>e=>e.test(t),on=[Pt,Ft,kn,Dn,Nn,In,mi],pt=t=>on.find(an(t));function pi(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Bt(t):!0}const gi=new Set(["brightness","contrast","saturate","opacity"]);function yi(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(En)||[];if(!s)return t;const i=n.replace(s,"");let r=gi.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const xi=/\b([a-z-]*)\(.*?\)/gu,Ee={...Q,getAnimatableNone:t=>{const e=t.match(xi);return e?e.map(yi).join(" "):t}},vi={...Rn,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:Ee,WebkitFilter:Ee},ln=t=>vi[t];function cn(t,e){let n=ln(t);return n!==Ee&&(n=Q),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const bi=new Set(["auto","none","0"]);function Ti(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!bi.has(r)&&we(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=cn(n,i)}class wi extends Ye{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 l=0;l<e.length;l++){let h=e[l];if(typeof h=="string"&&(h=h.trim(),Ge(h))){const f=nn(h,n.current);f!==void 0&&(e[l]=f),l===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!rn.has(s)||e.length!==2)return;const[i,r]=e,a=pt(i),o=pt(r),c=et(i),u=et(r);if(c!==u&&G[s]){this.needsMeasurement=!0;return}if(a!==o)if(ht(a)&&ht(o))for(let l=0;l<e.length;l++){const h=e[l];typeof h=="string"&&(e[l]=parseFloat(h))}else G[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||pi(e[i]))&&s.push(i);s.length&&Ti(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=G[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,a=s[r];s[r]=G[n](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 4,504 bytes, line 1
1h(([o,c])=>{e.getValue(o).set(c)}),this.resolveNoneKeyframes()}}function Si(t,e,n){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)}const gt=30,Vi=t=>!isNaN(parseFloat(t));class Ai{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=D.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=D.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Vi(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 Gt);const s=this.events[e].add(n);return e==="change"?()=>{s(),O.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=D.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>gt)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,gt);return Ut(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 ue(t,e){return new Ai(t,e)}const{schedule:Ci}=Wt(queueMicrotask,!1),Mi={y:!1};function ji(){return Mi.y}function un(t,e){const n=Si(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function yt(t){return!(t.pointerType==="touch"||ji())}function Pi(t,e,n={}){const[s,i,r]=un(t,n),a=o=>{if(!yt(o))return;const{target:c}=o,u=e(c,o);if(typeof u!="function"||!c)return;const l=h=>{yt(h)&&(u(h),c.removeEventListener("pointerleave",l))};c.addEventListener("pointerleave",l,i)};return s.forEach(o=>{o.addEventListener("pointerenter",a,i)}),r}const dn=(t,e)=>e?t===e?!0:dn(t,e.parentElement):!1,Fi=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ki=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Di(t){return ki.has(t.tagName)||t.isContentEditable===!0}const re=new WeakSet;function xt(t){return e=>{e.key==="Enter"&&t(e)}}function ve(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ni=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=xt(()=>{if(re.has(n))return;ve(n,"down");const i=xt(()=>{ve(n,"up")}),r=()=>ve(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 vt(t){return Fi(t)&&!0}function Ii(t,e,n={}){const[s,i,r]=un(t,n),a=o=>{const c=o.currentTarget;if(!vt(o))return;re.add(c);const u=e(c,o),l=(m,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),re.has(c)&&re.delete(c),vt(m)&&typeof u=="function"&&u(m,{success:b})},h=m=>{l(m,c===window||c===document||n.useGlobalTarget||dn(c,m.target))},f=m=>{l(m,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};
1return s.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),jn(o)&&(o.addEventListener("focus",u=>Ni(u,i)),!Di(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),r}const Ei=[...on,k,Q],Ri=t=>Ei.find(an(t));function Oi({children:t,features:e,strict:n=!1}){const[,s]=E.useState(!be(e)),i=E.useRef(void 0);if(!be(e)){const{renderer:r,...a}=e;i.current=r,tt(a)}return E.useEffect(()=>{be(e)&&e().then(({renderer:r,...a})=>{tt(a),i.current=r,s(!0)})},[]),d.jsx(On.Provider,{value:{renderer:i.current,strict:n},children:t})}function be(t){return typeof t=="function"}function Ki({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Li(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 Bi(t,e){return Ki(Li(t.getBoundingClientRect(),e))}const bt=()=>({min:0,max:0}),hn=()=>({x:bt(),y:bt()}),Re={current:null},fn={current:!1};function _i(){if(fn.current=!0,!!Kn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Re.current=t.matches;t.addEventListener("change",e),e()}else Re.current=!1}const Gi=new WeakMap;function Ui(t,e,n){for(const s in e){const i=e[s],r=n[s];if(_(i))t.addValue(s,i);else if(_(r))t.addValue(s,ue(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const a=t.getValue(s);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(s);t.addValue(s,ue(a!==void 0?a:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Tt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Wi{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ye,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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 f=D.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,O.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.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=Ln(n),this.isVariantNode=Bn(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const m=h[f];c[f]!==void 0&&_(m)&&m.set(c[f])}}mount(e){this.current=e,Gi.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:(fn.current||_i(),this.shouldReduceMotion=Re.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Se(this.notifyUpdate),Se(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){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=he.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&O.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),n.owner&&n.stop()})}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 nt){const n=nt[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];
vendor: 11,216 bytes, line 1
1r.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):hn()}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<Tt.length;s++){const i=Tt[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,a=e[r];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Ui(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=ue(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"&&(Lt(s)||Bt(s))?s=parseFloat(s):!Ri(s)&&Q.test(n)&&(s=cn(e,n)),this.setBaseTarget(e,_(s)?s.get():s)),_(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=Dt(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&&!_(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 Gt),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Ci.render(this.render)}}class mn extends Wi{constructor(){super(...arguments),this.KeyframeResolver=wi}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[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;_(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function pn(t,{style:e,vars:n},s,i){const r=t.style;let a;for(a in e)r[a]=e[a];i?.applyProjectionStyles(r,s);for(a in n)r.setProperty(a,n[a])}function zi(t){return window.getComputedStyle(t)}class Hi extends mn{constructor(){super(...arguments),this.type="html",this.renderInstance=pn}readValueFromInstance(e,n){if(he.has(n))return this.projection?.isProjecting?Pe(n):Gs(e,n);{const s=zi(e),i=(_n(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Bi(e,n)}build(e,n,s){Gn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Un(e,n,s)}}const gn=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"]);function $i(t,e,n,s){pn(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(gn.has(i)?i:Nt(i),e.attrs[i])}class qi extends mn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=hn}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(he.has(n)){const s=ln(n);return s&&s.default||0}return n=gn.has(n)?n:Nt(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Wn(e,n,s)}build(e,n,s){zn(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){$i(e,n,s,i)}mount(e){this.isSVGTag=Hn(e.tagName),super.mount(e)}}const Yi=(t,e)=>e.isSVG??$n(t)?new qi(e):new Hi(e,{allowProjection:t!==E.Fragment});function Z(t,e,n){const s=t.getProps();return Dt(s,e,n!==void 0?n:s.custom,t)}const Oe=t=>Array.isArray(t);function Xi(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ue(n))}function Zi(t){return Oe(t)?t[t.length-1]||0:t}function Ji(t,e){const n=Z(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const a in r){const o=Zi(r[a]);Xi(t,a,o)}}function Qi(t){return!!(_(t)&&t.add)}function er(t,e){const n=t.getValue("willChange");if(Qi(n))return n.add(e);if(!n&&K.WillChange){const s=new K.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function tr(t){return t.props[qn]}const nr=t=>t!==null;function sr(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(nr),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[r]}const ir={type:"spring",stiffness:500,damping:25,restSpeed:10},rr=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ar={type:"keyframes",duration:.8},or={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lr=(t,{keyframes:e})=>e.length>2?ar:he.has(t)?t.startsWith("scale")?rr(e[1]):ir:or;function cr({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:a,repeatDelay:o,from:c,elapsed:u,...l}){return!!Object.keys(l).length}const ur=(t,e,n,s={},i,r)=>a=>{const o=sn(s,t)||{},c=o.delay||s.delay||0;let{elapsed:u=0}=s;u=u-U(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:f=>{e.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:r?void 0:i};cr(o)||Object.assign(l,lr(t,l)),l.duration&&(l.duration=U(l.duration)),l.repeatDelay&&(l.repeatDelay=U(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let h=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(Ie(l),l.delay===0&&(h=!0)),(K.instantAnimations||K.skipAnimations)&&(h=!0,Ie(l),l.delay=0),l.allowFlatten=!o.type&&!o.ease,h&&!r&&e.get()!==void 0){const f=sr(l.keyframes,o);if(f!==void 0){O.update(()=>{l.onUpdate(f),l.onComplete()});return}}return o.isSync?new qe(l):new di(l)};function dr({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function yn(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:a,...o}=e;s&&(r=s);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const l in o){const h=t.getValue(l,t.latestValues[l]??null),f=o[l];if(f===void 0||u&&dr(u,l))continue;const m={delay:n,...sn(r||{},l)},b=h.get();if(b!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===b&&!m.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const p=tr(t);if(p){const w=window.MotionHandoffAnimation(p,l,O);w!==null&&(m.startTime=w,T=!0)}}er(t,l),h.start(ur(l,h,f,t.shouldReduceMotion&&rn.has(l)?{type:!1}:m,t,T));const v=h.animation;v&&c.push(v)}return a&&Promise.all(c).then(()=>{O.update(()=>{a&&Ji(t,a)})}),c}function xn(t,e,n,s=0,i=1){const r=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),a=t.size,o=(a-1)*s;return typeof n=="function"?n(r,a):i===1?r*s:o-r*s}function Ke(t,e,n={}){const s=Z(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(yn(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:h}=i;return hr(t,e,c,u,l,h,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[c,u]=o==="beforeChildren"?[r,a]:[a,r];return c().then(()=>u())}else return Promise.all([r(),a(n.delay)])}function hr(t,e,n=0,s=0,i=0,r=1,a){const o=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),o.push(Ke(c,e,{...a,delay:n+(typeof s=="function"?0:s)+xn(t.variantChildren,c,s,i,r)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(o)}function fr(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Ke(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Ke(t,e,n);else{const i=typeof e=="function"?Z(t,e,n.custom):e;s=Promise.all(yn(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function vn(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 mr=Et.length;function bn(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?bn(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<mr;n++){const s=Et[n],i=t.props[s];(It(i)||i===!1)&&(e[s]=i)}return e}const pr=[...Ot].reverse(),gr=Ot.length;function yr(t){return e=>Promise.all(e.map(({animation:n,options:s})=>fr(t,n,s)))}function xr(t){let e=yr(t),n=wt(),s=!0;const i=c=>(u,l)=>{const h=Z(t,l,c==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:m,...b}=h;u={...u,...b,...m}}return u};function r(c){e=c(t)}function a(c){const{props:u}=t,l=bn(t.parent)||{},h=[],f=new Set;let m={},b=1/0;for(let v=0;v<gr;v++){const p=pr[v],w=n[p],y=u[p]!==void 0?u[p]:l[p],V=It(y),g=p===c?w.isActive:null;g===!1&&(b=v);let S=y===l[p]&&y!==u[p]&&V;if(S&&s&&t.manuallyAnimateOnMount&&(S=!1),w.protectedKeys={...m},!w.isActive&&g===null||!y&&!w.prevProp||Rt(y)||typeof y=="boolean")continue;const M=vr(w.prevProp,y);let x=M||p===c&&w.isActive&&!S&&V||v>b&&V,F=!1;const N=Array.isArray(y)?y:[y];let Y=N.reduce(i(p),{});g===!1&&(Y={});const{prevResolvedValues:Xe={}}=w,wn={...Xe,...Y},Ze=j=>{x=!0,f.has(j)&&(F=!0,f.delete(j)),w.needsAnimating[j]=!0;const I=t.getValue(j);I&&(I.liveStyle=!1)};for(const j in wn){const I=Y[j],W=Xe[j];if(m.hasOwnProperty(j))continue;let X=!1;Oe(I)&&Oe(W)?X=!vn(I,W):X=I!==W,X?I!=null?Ze(j):f.add(j):I!==void 0&&f.has(j)?Ze(j):w.protectedKeys[j]=!0}w.prevProp=y,w.prevResolvedValues=Y,w.isActive&&(m={...m,...Y}),s&&t.blockInitialAnimation&&(x=!1);const Je=S&&M;x&&(!Je||F)&&h.push(...N.map(j=>{const I={type:p};if(typeof j=="string"&&s&&!Je&&t.manuallyAnimateOnMount&&t.parent){const{parent:W}=t,X=Z(W,j);if(W.enteringChildren&&X){const{delayChildren:Sn}=X.transition||{};I.delay=xn(W.enteringChildren,t,Sn)}}return{animation:j,options:I}}))}
1if(f.size){const v={};if(typeof u.initial!="boolean"){const p=Z(t,Array.isArray(u.initial)?u.initial[0]:u.initial);p&&p.transition&&(v.transition=p.transition)}f.forEach(p=>{const w=t.getBaseTarget(p),y=t.getValue(p);y&&(y.liveStyle=!0),v[p]=w??null}),h.push({animation:v})}let T=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(T=!1),s=!1,T?e(h):Promise.resolve()}function o(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(c,u)),n[c].isActive=u;const l=a(c);for(const h in n)n[h].protectedKeys={};return l}return{animateChanges:a,setActive:o,setAnimateFunction:r,getState:()=>n,reset:()=>{n=wt()}}}function vr(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!vn(e,t):!1}function z(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wt(){return{animate:z(!0),whileInView:z(),whileHover:z(),whileTap:z(),whileDrag:z(),whileFocus:z(),exit:z()}}class ee{constructor(e){this.isMounted=!1,this.node=e}update(){}}class br extends ee{constructor(e){super(e),e.animationState||(e.animationState=xr(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Rt(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 Tr=0;class wr extends ee{constructor(){super(...arguments),this.id=Tr++}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;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Sr={animation:{Feature:br},exit:{Feature:wr}};function St(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Tn(t){return{point:{x:t.pageX,y:t.pageY}}}function Vt(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&&O.postRender(()=>r(e,Tn(e)))}class Vr extends ee{mount(){const{current:e}=this.node;e&&(this.unmount=Pi(e,(n,s)=>(Vt(this.node,s,"Start"),i=>Vt(this.node,i,"End"))))}unmount(){}}class Ar extends ee{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=me(St(this.node.current,"focus",()=>this.onFocus()),St(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function At(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&&O.postRender(()=>r(e,Tn(e)))}class Cr extends ee{mount(){const{current:e}=this.node;e&&(this.unmount=Ii(e,(n,s)=>(At(this.node,s,"Start"),(i,{success:r})=>At(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Le=new WeakMap,Te=new WeakMap,Mr=t=>{const e=Le.get(t.target);e&&e(t)},jr=t=>{t.forEach(Mr)};function Pr({root:t,...e}){const n=t||document;Te.has(n)||Te.set(n,{});const s=Te.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(jr,{root:t,...e})),s[i]}function Fr(t,e,n){const s=Pr(e);return Le.set(t,n),s.observe(t),()=>{Le.delete(t),s.unobserve(t)}}const kr={some:0,all:1};class Dr extends ee{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,a={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:kr[i]},o=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:h}=this.node.getProps(),f=u?l:h;f&&f(c)};return Fr(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Nr(e,n))&&this.startObserver()}unmount(){}}function Nr({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Ir={inView:{Feature:Dr},tap:{Feature:Cr},focus:{Feature:Ar},hover:{Feature:Vr}},Er={renderer:Yi,...Sr,...Ir},Rr=({})=>{const[t,e]=E.useState(!1),[n,s]=E.useState(!1),[i,r]=E.useState("menu"),[a,o]=E.useState(""),c=Vn(),u=Ct();E.useEffect(()=>{let f=0;setTimeout(()=>{n?(document.documentElement.style.scrollbarGutter="stable",f=window.scrollY,document.body.style.width="100%",document.body.style.position="fixed",document.body.style.top=`-${f}px`):(f=Math.abs(parseInt(document.body.style.top||"0",10)),document.body.style.width="",document.body.style.position="",document.body.style.top="",t&&window.scrollTo(0,f))},500)},[n]);const l=()=>{e(!0),s(!1),setTimeout(()=>{r("menu"),o("")},500)},h=()=>{c(`/search?q=${encodeURIComponent(a)}`),l()};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"bg-[black]/10 backdrop-blur-[10px] rounded-4xl w-[calc(100%-32px)] md:w-[calc(100%-80p
1x)] flex justify-between items-center fixed top-4 md:top-8 ml-4 md:ml-10 pl-2 md:px-6 md:py-4 z-11",children:[d.jsx(P,{to:"/",children:d.jsxs("div",{className:"cursor-pointer",children:[d.jsx("img",{src:"/CulturePulse_logo.svg",alt:"Logo",className:"hidden md:block"}),d.jsx("img",{src:"/CulturePulse_symbol.svg",alt:"Symbol",className:"block md:hidden"})]})}),d.jsxs("div",{className:"flex items-center gap-x-4",children:[d.jsx(L,{className:"hidden md:block",onClick:()=>{u.pathname==="/contact"?Qe():c("/contact#form")},children:"Talk to us"}),d.jsx(L,{variant:"nav",prefixIcon:d.jsx(it,{}),className:"hidden md:block",onClick:()=>{e(!1),r("search"),s(!0)}}),d.jsx(L,{variant:"nav",prefixIcon:d.jsx(ss,{}),onClick:()=>{e(!1),s(!0)}})]})]}),d.jsx(_e,{initial:!1,custom:t,children:n?d.jsx(H.div,{initial:{y:"-100%"},animate:{y:0},variants:{exit:f=>({y:"-100%",transition:{delay:.25,duration:f?.75:.5,ease:[.5,0,.75,0]}})},exit:"exit",transition:{delay:.25,duration:.75,ease:[.5,0,.75,0],opacity:{duration:1.5,ease:"linear"}},className:"bg-black w-screen h-dvh fixed top-0 z-11 overflow-hidden",children:d.jsxs(H.div,{className:"relative h-full p-4 md:px-10 md:pt-[65px]",exit:{y:"100%",transition:{delay:.25,duration:.75,ease:[.5,0,.75,0]}},children:[d.jsxs("div",{className:"flex justify-end md:justify-between gap-x-4",children:[i==="menu"?d.jsx(L,{variant:"secondary",prefixIcon:d.jsx(it,{}),iconOnly:!0,className:"md:hidden",onClick:()=>r("search")}):null,d.jsx(L,{variant:"secondary",prefixIcon:d.jsx(rt,{}),iconOnly:!0,onClick:()=>l()}),d.jsx(C,{variant:"bodyBase",className:"text-gray-300 hidden md:block",children:i==="menu"?"Menu":"Search"})]}),d.jsx(H.div,{initial:{opacity:0,y:125},animate:{opacity:1,y:0},transition:{delay:1.1,duration:.5,opacity:{delay:1,duration:.75}},children:i==="menu"?d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"h-[calc(100dvh-16px-40px-40px-40px-56px-16px)] md:h-[calc(100dvh-65px-40px-40px-40px)] flex flex-col items-end gap-y-4 md:gap-y-6 text-right mt-10 overflow-y-auto nice-scrollbar pr-2",children:[d.jsx(B,{to:"/",onClick:()=>s(!1),children:"Home"}),d.jsx(B,{to:"/government",onClick:()=>s(!1),children:"Government"}),d.jsx(B,{to:"/ARES",onClick:()=>s(!1),children:"ARES"}),d.jsx(B,{to:"/business",onClick:()=>s(!1),children:"Business"}),d.jsx(B,{to:"/technology",onClick:()=>s(!1),children:"Technology"}),d.jsx(B,{to:"/insights",onClick:()=>s(!1),children:"Insights"}),d.jsx(B,{to:"/about-us",onClick:()=>s(!1),children:"About Us"}),d.jsx(B,{to:"/contact",onClick:()=>s(!1),children:"Contact"})]}),d.jsx(L,{className:"md:hidden mt-10",onClick:()=>{u.pathname==="/contact"?Qe():c("/contact#form"),s(!1)},children:"Talk to us"})]}):d.jsxs("div",{className:"w-full h-[calc(100dvh-112px)] md:h-[calc(100dvh-121px)] flex flex-col md:flex-row gap-x-8 mt-10 md:mt-0 items-center justify-between",children:[d.jsxs("div",{className:"relative w-full text-[24px] font-medium leading-[140%] -tracking-[2%] md:text-[64px] md:font-medium md:leading-[120%] md:-tracking-[1.28px] h-auto min-[768px]:h-[231px] min-[778px]:h-[154px] min-[1184px]:h-auto",children:[a?null:d.jsx("div",{className:"absolute pointer-events-none text-gray-400 ",children:"What are you looking for today?"}),d.jsx("input",{className:"w-full focus:outline-none focus-visible:outline-none",autoFocus:!0,value:a,onChange:f=>{o(f.target.value)},onKeyDown:f=>{f.key==="Escape"||f.code==="Esc"?a.length>0?o(""):l():(f.key==="Enter"||f.code==="Enter")&&a.length>0&&h()}})]}),d.jsxs("div",{className:"flex gap-x-8 items-center w-full md:w-auto",children:[a?d.jsx(L,{variant:"secondary",prefixIcon:d.jsx(rt,{}),iconOnly:!0,className:"hidden md:block",onClick:()=>{o("")}}):null,d.jsx(L,{suffixIcon:d.jsx(Yn,{}),onClick:()=>{a.length>0&&h()},children:"Search"})]})]})}),d.jsx(H.div,{initial:{y:"100%"},animate:{y:"0%",transition:{delay:.25,duration:.75,ease:[.5,0,.75,0]}},className:`absolute top-0 left-0 w-screen h-full pointer-events-none -z-1 2 ${i==="search"?"hidden md:block":""} 3 `,style:{backgroundImage:"url(/Grid.png)",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center"}})]})}):null})]})},Or={initial:{opacity:0,y:"10vh",transition:{delay:1,duration:.5}}
3,animate:{opacity:1,y:0,transition:{delay:.5,duration:.5}},exit:{opacity:.5,y:"-10vh",transition:{delay:0,duration:.5}}},Kr=({children:t})=>{const e=E.useRef(null),n=Pn();return E.useLayoutEffect(()=>{if(n)window.scrollTo(0,0);else{const s=window.scrollY;e.current&&(e.current.style.height=`calc(100dvh + ${s}px)`,e.current.style.overflow="hidden",e.current.style.position="fixed",e.current.style.top=`-${s}px`,e.current.style.left="0",e.current.style.right="0",e.current.style.zIndex="0")}},[n]),d.jsxs("div",{ref:e,className:"relative",children:[d.jsx(H.div,{initial:"initial",animate:"animate",exit:"exit",variants:Or,children:d.jsx(_e,{initial:n,children:t})}),n&&d.jsx(H.div,{initial:{y:"100%"},animate:{y:"-100%"},transition:{duration:1,ease:[.64,0,.36,1]},className:"fixed inset-0 bg-[black] z-1000 pointer-events-none"})]})},Jr=An(function(){const e=Cn(),n=Ct();return d.jsxs(Oi,{features:Er,children:[d.jsx(Rr,{}),d.jsx(_e,{mode:"popLayout",initial:!1,children:d.jsx(H.div,{children:d.jsx(Kr,{children:d.jsxs(E.Fragment,{children:[d.jsx("div",{className:"px-4 md:px-10",children:e}),d.jsx(ts,{})]},n.pathname)})},n.pathname)})]})});export{Jr as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.